From 1c0efcbede0adbd6cb51ea22796fd03f471aa4ce Mon Sep 17 00:00:00 2001 From: Driss Chelouati Date: Wed, 21 Feb 2024 10:37:07 +0100 Subject: [PATCH] fix(ButtonAction): rename rounded classes to match props --- .../components/button-action/button-action.variants.ts | 8 ++++---- src/plugins/components/button-action/index.ts | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/plugins/components/button-action/button-action.variants.ts b/src/plugins/components/button-action/button-action.variants.ts index 80f0b5c..3ea311a 100644 --- a/src/plugins/components/button-action/button-action.variants.ts +++ b/src/plugins/components/button-action/button-action.variants.ts @@ -2,10 +2,10 @@ import type { ButtonActionVariant } from './button-action.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 ButtonActionVariant<'rounded'> export const color = { diff --git a/src/plugins/components/button-action/index.ts b/src/plugins/components/button-action/index.ts index 225703e..5b04dfd 100644 --- a/src/plugins/components/button-action/index.ts +++ b/src/plugins/components/button-action/index.ts @@ -31,19 +31,19 @@ export default plugin(({ addComponents, theme }) => { [`@apply transition-${config.transition.property} duration-${config.transition.duration}`]: {}, //Rounded:sm - '&.nui-button-rounded': { + '&.nui-button-rounded-sm': { [`@apply rounded-${config.rounded.sm}`]: {}, }, //Rounded:md - '&.nui-button-smooth': { + '&.nui-button-rounded-md': { [`@apply rounded-${config.rounded.md}`]: {}, }, //Rounded:lg - '&.nui-button-curved': { + '&.nui-button-rounded-lg': { [`@apply rounded-${config.rounded.lg}`]: {}, }, //Rounded:full - '&.nui-button-full': { + '&.nui-button-rounded-full': { [`@apply rounded-${config.rounded.full}`]: {}, }, //ButtonAction:loading