@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.js
CHANGED
|
@@ -6945,10 +6945,10 @@ var tooltipVariants = classVarianceAuthority.cva(
|
|
|
6945
6945
|
variant: {
|
|
6946
6946
|
default: "bg-primary text-primary-foreground",
|
|
6947
6947
|
secondary: "bg-secondary text-secondary-foreground",
|
|
6948
|
-
success: "bg-
|
|
6949
|
-
warning: "bg-
|
|
6948
|
+
success: "bg-success text-success-foreground border-success",
|
|
6949
|
+
warning: "bg-warning text-warning-foreground border-warning",
|
|
6950
6950
|
destructive: "bg-destructive text-destructive-foreground",
|
|
6951
|
-
info: "bg-
|
|
6951
|
+
info: "bg-info text-info-foreground border-info"
|
|
6952
6952
|
},
|
|
6953
6953
|
size: {
|
|
6954
6954
|
sm: "px-2 py-1 text-xs",
|
|
@@ -8330,9 +8330,9 @@ var toastVariants = classVarianceAuthority.cva(
|
|
|
8330
8330
|
variant: {
|
|
8331
8331
|
default: "border bg-background text-foreground",
|
|
8332
8332
|
destructive: "destructive group border-destructive bg-destructive text-destructive-foreground",
|
|
8333
|
-
success: "border-
|
|
8334
|
-
warning: "border-
|
|
8335
|
-
info: "border-
|
|
8333
|
+
success: "border-success-subtle-foreground/20 bg-success-subtle text-success-subtle-foreground",
|
|
8334
|
+
warning: "border-warning-subtle-foreground/20 bg-warning-subtle text-warning-subtle-foreground",
|
|
8335
|
+
info: "border-info-subtle-foreground/20 bg-info-subtle text-info-subtle-foreground"
|
|
8336
8336
|
}
|
|
8337
8337
|
},
|
|
8338
8338
|
defaultVariants: {
|
|
@@ -8368,7 +8368,7 @@ var ToastClose = React12__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
8368
8368
|
{
|
|
8369
8369
|
ref,
|
|
8370
8370
|
className: cn(
|
|
8371
|
-
"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-
|
|
8371
|
+
"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",
|
|
8372
8372
|
className
|
|
8373
8373
|
),
|
|
8374
8374
|
"toast-close": "",
|