Skip to content

Commit

Permalink
feat(Select): config redesign and implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
driss-chelouati committed Dec 8, 2023
1 parent df4e2f7 commit a05f94f
Show file tree
Hide file tree
Showing 7 changed files with 566 additions and 232 deletions.
238 changes: 181 additions & 57 deletions src/plugins/components/select/index.ts

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/plugins/components/select/select.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import * as variants from './select.variants'
*/
export const Select = ({
id,
shape = 'rounded',
rounded = 'sm',
size = 'md',
contrast = 'default',
label,
Expand All @@ -35,7 +35,7 @@ export const Select = ({
'nui-select-wrapper',
contrast && variants.contrast[contrast],
size && variants.size[size],
shape && variants.shape[shape],
rounded && variants.rounded[rounded],
error && !loading && 'nui-select-error',
loading && 'nui-select-loading',
labelFloat && 'nui-select-label-float',
Expand Down Expand Up @@ -99,7 +99,7 @@ export const Select = ({
</div>
`}
<div
class="${['nui-select-chevron', classes?.chevron]
class="${['nui-select-chevron nui-chevron', classes?.chevron]
.filter(Boolean)
.join(' ')}"
>
Expand Down
Loading

0 comments on commit a05f94f

Please sign in to comment.