From b84378cd69e9b03d13ef54f080ff3405f0d4b7bd Mon Sep 17 00:00:00 2001 From: Driss Chelouati Date: Wed, 21 Feb 2024 10:35:43 +0100 Subject: [PATCH] fix(Button): rename rounded classes to match props --- src/plugins/components/button/button.variants.ts | 8 ++++---- src/plugins/components/button/index.ts | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/plugins/components/button/button.variants.ts b/src/plugins/components/button/button.variants.ts index 7ccba4b..f770989 100644 --- a/src/plugins/components/button/button.variants.ts +++ b/src/plugins/components/button/button.variants.ts @@ -9,10 +9,10 @@ export const size = { export const rounded = { none: '', - sm: 'nui-button-rounded', - md: 'nui-button-curved', - lg: 'nui-button-smooth', - full: 'nui-button-full', + sm: 'nui-button-rounded-sm', + md: 'nui-button-rounded-md', + lg: 'nui-button-rounded-lg', + full: 'nui-button-rounded-full', } as const satisfies ButtonVariant<'rounded'> export const variant = { diff --git a/src/plugins/components/button/index.ts b/src/plugins/components/button/index.ts index 5b5e730..9907885 100644 --- a/src/plugins/components/button/index.ts +++ b/src/plugins/components/button/index.ts @@ -133,16 +133,16 @@ export default plugin(({ addComponents, theme }) => { // #endregion // #region Rounded - '&.nui-button-rounded': { + '&.nui-button-rounded-sm': { [`@apply rounded-${config.rounded.small}`]: {}, }, - '&.nui-button-smooth': { + '&.nui-button-rounded-md': { [`@apply rounded-${config.rounded.medium}`]: {}, }, - '&.nui-button-curved': { + '&.nui-button-rounded-lg': { [`@apply rounded-${config.rounded.large}`]: {}, }, - '&.nui-button-full': { + '&.nui-button-rounded-full': { [`@apply rounded-${config.rounded.full}`]: {}, '.nui-button-badge': {