@eqtylab/equality 3.2.5 → 3.3.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/button.module.module.css.module.css +19 -0
- package/dist/dropdown-menu.module.module.css.module.css +67 -1
- package/dist/generated/color-vars.css +13 -6
- package/dist/generated/dark-tokens.css +8 -5
- package/dist/generated/global-dark-tokens.css +8 -5
- package/dist/generated/global-light-tokens.css +5 -1
- package/dist/generated/light-tokens.css +5 -1
- package/dist/generated/tailwind-tokens.css +5 -1
- package/dist/index.cjs +10 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/dist/motion-collapsible.module.module.css.module.css +3 -0
- package/dist/theme.module.module.css.module.css +14 -6
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -55,14 +55,14 @@ declare const AlertDialogFooter: {
|
|
|
55
55
|
declare const AlertDialogTitle: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
56
56
|
declare const AlertDialogDescription: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
57
57
|
declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<Omit<AlertDialogPrimitive.AlertDialogActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref">, "prefix"> & VariantProps<(props?: ({
|
|
58
|
-
variant?: "link" | "navigation" | "primary" | "danger" | "secondary" | "tertiary" | null | undefined;
|
|
58
|
+
variant?: "link" | "navigation" | "primary" | "warning" | "danger" | "secondary" | "tertiary" | null | undefined;
|
|
59
59
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
60
60
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
61
61
|
prefix?: React$1.ReactNode;
|
|
62
62
|
suffix?: React$1.ReactNode;
|
|
63
63
|
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
64
64
|
declare const AlertDialogCancel: React$1.ForwardRefExoticComponent<Omit<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React$1.RefAttributes<HTMLButtonElement>, "ref">, "prefix"> & VariantProps<(props?: ({
|
|
65
|
-
variant?: "link" | "navigation" | "primary" | "danger" | "secondary" | "tertiary" | null | undefined;
|
|
65
|
+
variant?: "link" | "navigation" | "primary" | "warning" | "danger" | "secondary" | "tertiary" | null | undefined;
|
|
66
66
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
67
67
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
68
68
|
prefix?: React$1.ReactNode;
|
|
@@ -207,7 +207,7 @@ declare const BgGradient: ({ theme, placement, }: {
|
|
|
207
207
|
}) => react_jsx_runtime.JSX.Element;
|
|
208
208
|
|
|
209
209
|
declare const buttonVariants: (props?: ({
|
|
210
|
-
variant?: "link" | "navigation" | "primary" | "danger" | "secondary" | "tertiary" | null | undefined;
|
|
210
|
+
variant?: "link" | "navigation" | "primary" | "warning" | "danger" | "secondary" | "tertiary" | null | undefined;
|
|
211
211
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
212
212
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
213
213
|
type ButtonBaseProps = Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, 'prefix'>;
|
|
@@ -404,7 +404,7 @@ declare const DropdownMenuEmpty: {
|
|
|
404
404
|
};
|
|
405
405
|
declare const DropdownMenuItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
406
406
|
inset?: boolean;
|
|
407
|
-
variant?: "neutral" | "danger";
|
|
407
|
+
variant?: "neutral" | "warning" | "danger";
|
|
408
408
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
409
409
|
declare const DropdownMenuCheckboxItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
410
410
|
declare const DropdownMenuRadioItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -55,14 +55,14 @@ declare const AlertDialogFooter: {
|
|
|
55
55
|
declare const AlertDialogTitle: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
56
56
|
declare const AlertDialogDescription: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
57
57
|
declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<Omit<AlertDialogPrimitive.AlertDialogActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref">, "prefix"> & VariantProps<(props?: ({
|
|
58
|
-
variant?: "link" | "navigation" | "primary" | "danger" | "secondary" | "tertiary" | null | undefined;
|
|
58
|
+
variant?: "link" | "navigation" | "primary" | "warning" | "danger" | "secondary" | "tertiary" | null | undefined;
|
|
59
59
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
60
60
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
61
61
|
prefix?: React$1.ReactNode;
|
|
62
62
|
suffix?: React$1.ReactNode;
|
|
63
63
|
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
64
64
|
declare const AlertDialogCancel: React$1.ForwardRefExoticComponent<Omit<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React$1.RefAttributes<HTMLButtonElement>, "ref">, "prefix"> & VariantProps<(props?: ({
|
|
65
|
-
variant?: "link" | "navigation" | "primary" | "danger" | "secondary" | "tertiary" | null | undefined;
|
|
65
|
+
variant?: "link" | "navigation" | "primary" | "warning" | "danger" | "secondary" | "tertiary" | null | undefined;
|
|
66
66
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
67
67
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
68
68
|
prefix?: React$1.ReactNode;
|
|
@@ -207,7 +207,7 @@ declare const BgGradient: ({ theme, placement, }: {
|
|
|
207
207
|
}) => react_jsx_runtime.JSX.Element;
|
|
208
208
|
|
|
209
209
|
declare const buttonVariants: (props?: ({
|
|
210
|
-
variant?: "link" | "navigation" | "primary" | "danger" | "secondary" | "tertiary" | null | undefined;
|
|
210
|
+
variant?: "link" | "navigation" | "primary" | "warning" | "danger" | "secondary" | "tertiary" | null | undefined;
|
|
211
211
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
212
212
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
213
213
|
type ButtonBaseProps = Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, 'prefix'>;
|
|
@@ -404,7 +404,7 @@ declare const DropdownMenuEmpty: {
|
|
|
404
404
|
};
|
|
405
405
|
declare const DropdownMenuItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
406
406
|
inset?: boolean;
|
|
407
|
-
variant?: "neutral" | "danger";
|
|
407
|
+
variant?: "neutral" | "warning" | "danger";
|
|
408
408
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
409
409
|
declare const DropdownMenuCheckboxItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
410
410
|
declare const DropdownMenuRadioItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
package/dist/index.js
CHANGED
|
@@ -251,6 +251,7 @@ var buttonVariants = cva(styles3["button"], {
|
|
|
251
251
|
variant: {
|
|
252
252
|
primary: styles3["button--primary"],
|
|
253
253
|
danger: styles3["button--danger"],
|
|
254
|
+
warning: styles3["button--warning"],
|
|
254
255
|
secondary: styles3["button--secondary"],
|
|
255
256
|
tertiary: styles3["button--tertiary"],
|
|
256
257
|
link: styles3["button--link"],
|
|
@@ -2042,6 +2043,7 @@ var DropdownMenuItem = React15.forwardRef(({ className, inset, variant = "neutra
|
|
|
2042
2043
|
className: cn(
|
|
2043
2044
|
styles22["dropdown-menu-item"],
|
|
2044
2045
|
inset && styles22["dropdown-menu-inset"],
|
|
2046
|
+
variant === "warning" && styles22["dropdown-menu-item-warning"],
|
|
2045
2047
|
variant === "danger" && styles22["dropdown-menu-item-danger"],
|
|
2046
2048
|
className
|
|
2047
2049
|
),
|
|
@@ -2329,6 +2331,7 @@ var MotionCollapsibleContent = ({
|
|
|
2329
2331
|
className
|
|
2330
2332
|
}) => {
|
|
2331
2333
|
const [contentHeight, setContentHeight] = useState(0);
|
|
2334
|
+
const [isSettled, setIsSettled] = useState(false);
|
|
2332
2335
|
const contentRef = useRef(null);
|
|
2333
2336
|
useEffect(() => {
|
|
2334
2337
|
if (contentRef.current) {
|
|
@@ -2349,7 +2352,13 @@ var MotionCollapsibleContent = ({
|
|
|
2349
2352
|
animate: { height: contentHeight, opacity: 1 },
|
|
2350
2353
|
exit: { height: 0, opacity: 0 },
|
|
2351
2354
|
transition: { duration: 0.3, ease: "easeInOut" },
|
|
2352
|
-
|
|
2355
|
+
onAnimationStart: () => setIsSettled(false),
|
|
2356
|
+
onAnimationComplete: () => setIsSettled(isOpen),
|
|
2357
|
+
className: cn(
|
|
2358
|
+
styles28["motion-collapsible"],
|
|
2359
|
+
isSettled && styles28["motion-collapsible--settled"],
|
|
2360
|
+
className
|
|
2361
|
+
),
|
|
2353
2362
|
children: /* @__PURE__ */ jsx("div", { ref: contentRef, children })
|
|
2354
2363
|
},
|
|
2355
2364
|
"motion-content"
|