From 3faf93033222af890efe9099297c9652aa2360dd Mon Sep 17 00:00:00 2001 From: Lewis Nguyen Date: Wed, 17 Apr 2024 09:58:07 +0700 Subject: [PATCH] v1.2.13 --- lib/components/toast/toast.provider.tsx | 2 ++ lib/customization/styles/components/toast.styles.ts | 8 ++++++++ package.json | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/components/toast/toast.provider.tsx b/lib/components/toast/toast.provider.tsx index 4e133b6..31bc6c7 100644 --- a/lib/components/toast/toast.provider.tsx +++ b/lib/components/toast/toast.provider.tsx @@ -62,6 +62,8 @@ export const ToastProvider = (props: ToastProviderProps) => { const toastContainer = twMerge( theme.toastsContainer({ isTopOrBottom: position === "top" || position === "bottom", + isRighty: position.includes("right"), + isLefty: position.includes("left"), bottom: position.includes("bottom"), top: position.includes("top"), left: !position.includes("right"), diff --git a/lib/customization/styles/components/toast.styles.ts b/lib/customization/styles/components/toast.styles.ts index 5a8c819..d181a14 100644 --- a/lib/customization/styles/components/toast.styles.ts +++ b/lib/customization/styles/components/toast.styles.ts @@ -31,6 +31,14 @@ const toastsContainer = cva( true: ["zn-mx-auto"], false: [], }, + isRighty: { + true: ["zn-items-end"], + false: [], + }, + isLefty: { + true: ["zn-items-start"], + false: [], + }, }, } ); diff --git a/package.json b/package.json index 7ce0ee4..0ecf272 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "zeni-ui", "private": false, - "version": "1.2.12-beta", + "version": "1.2.13-beta", "type": "module", "main": "dist/main.js", "types": "dist/main.d.ts",