From 64d845a51ef26d9385261119d9cf1077e89e82ae Mon Sep 17 00:00:00 2001 From: Driss Chelouati Date: Wed, 21 Feb 2024 11:18:04 +0100 Subject: [PATCH] fix(Toast): rename rounded classes to match props --- src/plugins/components/toast/index.ts | 6 +++--- src/plugins/components/toast/toast.variants.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/plugins/components/toast/index.ts b/src/plugins/components/toast/index.ts index 40bdda4..9b307de 100644 --- a/src/plugins/components/toast/index.ts +++ b/src/plugins/components/toast/index.ts @@ -194,15 +194,15 @@ export default plugin(({ addComponents, theme }) => { }, }, //Rounded:sm - '&.nui-toast-rounded': { + '&.nui-toast-rounded-sm': { [`@apply rounded-${config.rounded.sm}`]: {}, }, //Rounded:smooth - '&.nui-toast-smooth': { + '&.nui-toast-rounded-md': { [`@apply rounded-${config.rounded.md}`]: {}, }, //Rounded:curved - '&.nui-toast-curved': { + '&.nui-toast-rounded-lg': { [`@apply rounded-${config.rounded.lg}`]: {}, }, //Shadow:borderless diff --git a/src/plugins/components/toast/toast.variants.ts b/src/plugins/components/toast/toast.variants.ts index 5bfc3c2..02e194a 100644 --- a/src/plugins/components/toast/toast.variants.ts +++ b/src/plugins/components/toast/toast.variants.ts @@ -2,9 +2,9 @@ import type { ToastVariant } from './toast.types' export const rounded = { none: '', - sm: 'nui-toast-rounded', - md: 'nui-toast-smooth', - lg: 'nui-toast-curved', + sm: 'nui-toast-rounded-sm', + md: 'nui-toast-rounded-md', + lg: 'nui-toast-rounded-lg', } as const satisfies ToastVariant<'rounded'> export const color = {