From 5949cfdd46ab8d91bf020930b4b52845bf82a6ec Mon Sep 17 00:00:00 2001 From: Driss Chelouati Date: Wed, 21 Feb 2024 10:28:33 +0100 Subject: [PATCH] fix(Autocomplete): rename rounded classes to match props --- .../components/autocomplete/autocomplete.variants.ts | 8 ++++---- src/plugins/components/autocomplete/index.ts | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/plugins/components/autocomplete/autocomplete.variants.ts b/src/plugins/components/autocomplete/autocomplete.variants.ts index 5dc1caa..9b47ae4 100644 --- a/src/plugins/components/autocomplete/autocomplete.variants.ts +++ b/src/plugins/components/autocomplete/autocomplete.variants.ts @@ -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 = { diff --git a/src/plugins/components/autocomplete/index.ts b/src/plugins/components/autocomplete/index.ts index df02a91..38270b3 100644 --- a/src/plugins/components/autocomplete/index.ts +++ b/src/plugins/components/autocomplete/index.ts @@ -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}`]: {}, }, @@ -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}`]: {}, }, @@ -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}`]: {}, }, @@ -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}`]: {},