From de8ac543b180a5f754190efa1c4b8d5430056860 Mon Sep 17 00:00:00 2001 From: Driss Chelouati Date: Wed, 21 Feb 2024 10:40:11 +0100 Subject: [PATCH] fix(ButtonIcon): rename rounded classes to match props --- .../components/button-icon/button-icon.variants.ts | 8 ++++---- src/plugins/components/button-icon/index.ts | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/plugins/components/button-icon/button-icon.variants.ts b/src/plugins/components/button-icon/button-icon.variants.ts index 9e8ea01..c8d64ab 100644 --- a/src/plugins/components/button-icon/button-icon.variants.ts +++ b/src/plugins/components/button-icon/button-icon.variants.ts @@ -2,10 +2,10 @@ import type { ButtonIconVariant } from './button-icon.types' export const rounded = { none: '', - sm: 'nui-button-rounded', - md: 'nui-button-smooth', - lg: 'nui-button-curved', - 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 ButtonIconVariant<'rounded'> export const size = { diff --git a/src/plugins/components/button-icon/index.ts b/src/plugins/components/button-icon/index.ts index 8a4ca80..54df8b7 100644 --- a/src/plugins/components/button-icon/index.ts +++ b/src/plugins/components/button-icon/index.ts @@ -39,19 +39,19 @@ export default plugin(({ addComponents, theme }) => { {}, }, //Rounded:sm - '&.nui-button-rounded': { + '&.nui-button-rounded-sm': { [`@apply ${config.rounded.sm}`]: {}, }, //Rounded:md - '&.nui-button-smooth': { + '&.nui-button-rounded-md': { [`@apply ${config.rounded.md}`]: {}, }, //Rounded:lg - '&.nui-button-curved': { + '&.nui-button-rounded-lg': { [`@apply ${config.rounded.lg}`]: {}, }, //Rounded:full - '&.nui-button-full': { + '&.nui-button-rounded-full': { [`@apply ${config.rounded.full}`]: {}, }, //Loading