Skip to content

Commit

Permalink
fix(Autocomplete): rename rounded classes to match props
Browse files Browse the repository at this point in the history
  • Loading branch information
driss-chelouati committed Feb 21, 2024
1 parent 82bde2f commit 5949cfd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/plugins/components/autocomplete/autocomplete.variants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import type { AutocompleteVariant } from './autocomplete.types'

export const rounded = {
none: '',
sm: 'nui-autocomplete-rounded',
md: 'nui-autocomplete-smooth',
lg: 'nui-autocomplete-curved',
full: 'nui-autocomplete-full',
sm: 'nui-autocomplete-rounded-sm',
md: 'nui-autocomplete-rounded-md',
lg: 'nui-autocomplete-rounded-lg',
full: 'nui-autocomplete-rounded-full',
} as const satisfies AutocompleteVariant<'rounded'>

export const size = {
Expand Down
8 changes: 4 additions & 4 deletions src/plugins/components/autocomplete/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export default plugin(({ addComponents, theme }) => {
{},
},
//Rounded:sm
'&.nui-autocomplete-rounded': {
'&.nui-autocomplete-rounded-sm': {
'.nui-autocomplete-input': {
[`@apply rounded-${config.rounded.sm}`]: {},
},
Expand All @@ -204,7 +204,7 @@ export default plugin(({ addComponents, theme }) => {
},
},
//Rounded:md
'&.nui-autocomplete-smooth': {
'&.nui-autocomplete-rounded-md': {
'.nui-autocomplete-input': {
[`@apply rounded-${config.rounded.md}`]: {},
},
Expand All @@ -215,7 +215,7 @@ export default plugin(({ addComponents, theme }) => {
},
},
//Rounded:lg
'&.nui-autocomplete-curved': {
'&.nui-autocomplete-rounded-lg': {
'.nui-autocomplete-input': {
[`@apply rounded-${config.rounded.lg}`]: {},
},
Expand All @@ -226,7 +226,7 @@ export default plugin(({ addComponents, theme }) => {
},
},
//Rounded:full
'&.nui-autocomplete-full': {
'&.nui-autocomplete-rounded-full': {
'.nui-autocomplete-input, .nui-autocomplete-multiple .nui-autocomplete-multiple-list-item':
{
[`@apply rounded-${config.rounded.full}`]: {},
Expand Down

0 comments on commit 5949cfd

Please sign in to comment.