@moontra/moonui 6.10.0 → 6.11.0
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/dist/hooks/index.global.js +6 -1
- package/dist/hooks/index.global.js.map +1 -1
- package/dist/index.global.js +365 -52
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/ui/__tests__/preset-color-shadowing.test.ts +71 -0
- package/src/components/ui/__tests__/semantic-token-usage.test.ts +120 -0
- package/src/components/ui/__tests__/toast.test.tsx +6 -3
- package/src/components/ui/__tests__/tooltip.test.tsx +8 -4
- package/src/components/ui/toast.tsx +4 -4
- package/src/components/ui/tooltip.tsx +3 -3
- package/src/styles/tokens.css +43 -2
- package/tailwind-preset.js +17 -7
- package/src/use-toast.ts +0 -32
package/dist/index.mjs
CHANGED
|
@@ -6907,10 +6907,10 @@ var tooltipVariants = cva(
|
|
|
6907
6907
|
variant: {
|
|
6908
6908
|
default: "bg-primary text-primary-foreground",
|
|
6909
6909
|
secondary: "bg-secondary text-secondary-foreground",
|
|
6910
|
-
success: "bg-
|
|
6911
|
-
warning: "bg-
|
|
6910
|
+
success: "bg-success text-success-foreground border-success",
|
|
6911
|
+
warning: "bg-warning text-warning-foreground border-warning",
|
|
6912
6912
|
destructive: "bg-destructive text-destructive-foreground",
|
|
6913
|
-
info: "bg-
|
|
6913
|
+
info: "bg-info text-info-foreground border-info"
|
|
6914
6914
|
},
|
|
6915
6915
|
size: {
|
|
6916
6916
|
sm: "px-2 py-1 text-xs",
|
|
@@ -8292,9 +8292,9 @@ var toastVariants = cva(
|
|
|
8292
8292
|
variant: {
|
|
8293
8293
|
default: "border bg-background text-foreground",
|
|
8294
8294
|
destructive: "destructive group border-destructive bg-destructive text-destructive-foreground",
|
|
8295
|
-
success: "border-
|
|
8296
|
-
warning: "border-
|
|
8297
|
-
info: "border-
|
|
8295
|
+
success: "border-success-subtle-foreground/20 bg-success-subtle text-success-subtle-foreground",
|
|
8296
|
+
warning: "border-warning-subtle-foreground/20 bg-warning-subtle text-warning-subtle-foreground",
|
|
8297
|
+
info: "border-info-subtle-foreground/20 bg-info-subtle text-info-subtle-foreground"
|
|
8298
8298
|
}
|
|
8299
8299
|
},
|
|
8300
8300
|
defaultVariants: {
|
|
@@ -8330,7 +8330,7 @@ var ToastClose = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
8330
8330
|
{
|
|
8331
8331
|
ref,
|
|
8332
8332
|
className: cn(
|
|
8333
|
-
"absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-
|
|
8333
|
+
"absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-destructive-foreground/70 group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive-foreground/40 group-[.destructive]:focus:ring-offset-destructive",
|
|
8334
8334
|
className
|
|
8335
8335
|
),
|
|
8336
8336
|
"toast-close": "",
|