@vendure-io/ui 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vendure-io/ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "React component library for Vendure, built on shadcn/ui and Tailwind v4",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"homepage": "https://github.com/vendurehq/design/tree/main/packages/ui",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@base-ui/react": "^1.2.0",
|
|
47
|
-
"@vendure-io/design-tokens": "^1.0
|
|
47
|
+
"@vendure-io/design-tokens": "^1.1.0",
|
|
48
48
|
"class-variance-authority": "^0.7.1",
|
|
49
49
|
"clsx": "^2.1.1",
|
|
50
50
|
"cmdk": "^1.1.1",
|
|
@@ -10,6 +10,7 @@ const Toaster = ({ ...props }: ToasterProps) => {
|
|
|
10
10
|
return (
|
|
11
11
|
<Sonner
|
|
12
12
|
theme={theme as ToasterProps["theme"]}
|
|
13
|
+
position="top-center"
|
|
13
14
|
className="toaster group"
|
|
14
15
|
icons={{
|
|
15
16
|
success: (
|
|
@@ -39,6 +40,10 @@ const Toaster = ({ ...props }: ToasterProps) => {
|
|
|
39
40
|
toastOptions={{
|
|
40
41
|
classNames: {
|
|
41
42
|
toast: "cn-toast",
|
|
43
|
+
// [vendure] Override Sonner's hardcoded #3f3f3f description colour
|
|
44
|
+
// with our semantic muted-foreground token for consistent contrast.
|
|
45
|
+
// See: https://github.com/vendurehq/design/issues/5
|
|
46
|
+
description: "!text-muted-foreground",
|
|
42
47
|
},
|
|
43
48
|
}}
|
|
44
49
|
{...props}
|