@zuzjs/ui 1.0.53 → 1.0.55
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/bin.cjs +4 -4
- package/dist/bin.js +1 -1
- package/dist/css/styles.css +1 -1
- package/dist/index.cjs +6 -6
- package/dist/index.d.cts +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js +5 -5
- package/package.json +2 -2
- /package/dist/{chunk-Y6OZUVXD.js → chunk-CVBMYJVZ.js} +0 -0
- /package/dist/{chunk-YEGRGLBF.cjs → chunk-X4I3DICK.cjs} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -1121,7 +1121,7 @@ declare enum ToastStyle {
|
|
|
1121
1121
|
}
|
|
1122
1122
|
interface ToastAction {
|
|
1123
1123
|
label: string;
|
|
1124
|
-
onClick: () => void;
|
|
1124
|
+
onClick: (e: any) => void;
|
|
1125
1125
|
variant?: 'primary' | 'secondary';
|
|
1126
1126
|
}
|
|
1127
1127
|
declare const ToastDefaultTitle: dynamic;
|
|
@@ -1143,7 +1143,7 @@ interface ToastProps {
|
|
|
1143
1143
|
progressValue?: number;
|
|
1144
1144
|
width?: number | string;
|
|
1145
1145
|
onClose?: (id: number) => void;
|
|
1146
|
-
onClick?: () => void;
|
|
1146
|
+
onClick?: (e: any) => void;
|
|
1147
1147
|
}
|
|
1148
1148
|
|
|
1149
1149
|
type LayerType = "dialog" | "drawer" | "toast" | "menu";
|
|
@@ -1835,6 +1835,8 @@ type TextProps = Props<`h1` | `h2` | `h3` | `h4` | `h5` | `h6` | `p` | `span` |
|
|
|
1835
1835
|
html?: ReactNode | string;
|
|
1836
1836
|
lines?: number;
|
|
1837
1837
|
tfx?: TextFxVariant;
|
|
1838
|
+
/** Init delay before animation starts */
|
|
1839
|
+
delay?: number;
|
|
1838
1840
|
duration?: number;
|
|
1839
1841
|
stagger?: number;
|
|
1840
1842
|
repeat?: boolean;
|
|
@@ -2100,7 +2102,8 @@ interface SnackProps {
|
|
|
2100
2102
|
}
|
|
2101
2103
|
interface SnackBtn {
|
|
2102
2104
|
label?: string;
|
|
2103
|
-
|
|
2105
|
+
hide?: boolean;
|
|
2106
|
+
onClick?: (e: any) => void;
|
|
2104
2107
|
}
|
|
2105
2108
|
type SnackPatch = Partial<Omit<ToastProps, 'id' | 'onClose'>>;
|
|
2106
2109
|
interface SnackController {
|
package/dist/index.d.ts
CHANGED
|
@@ -1121,7 +1121,7 @@ declare enum ToastStyle {
|
|
|
1121
1121
|
}
|
|
1122
1122
|
interface ToastAction {
|
|
1123
1123
|
label: string;
|
|
1124
|
-
onClick: () => void;
|
|
1124
|
+
onClick: (e: any) => void;
|
|
1125
1125
|
variant?: 'primary' | 'secondary';
|
|
1126
1126
|
}
|
|
1127
1127
|
declare const ToastDefaultTitle: dynamic;
|
|
@@ -1143,7 +1143,7 @@ interface ToastProps {
|
|
|
1143
1143
|
progressValue?: number;
|
|
1144
1144
|
width?: number | string;
|
|
1145
1145
|
onClose?: (id: number) => void;
|
|
1146
|
-
onClick?: () => void;
|
|
1146
|
+
onClick?: (e: any) => void;
|
|
1147
1147
|
}
|
|
1148
1148
|
|
|
1149
1149
|
type LayerType = "dialog" | "drawer" | "toast" | "menu";
|
|
@@ -1835,6 +1835,8 @@ type TextProps = Props<`h1` | `h2` | `h3` | `h4` | `h5` | `h6` | `p` | `span` |
|
|
|
1835
1835
|
html?: ReactNode | string;
|
|
1836
1836
|
lines?: number;
|
|
1837
1837
|
tfx?: TextFxVariant;
|
|
1838
|
+
/** Init delay before animation starts */
|
|
1839
|
+
delay?: number;
|
|
1838
1840
|
duration?: number;
|
|
1839
1841
|
stagger?: number;
|
|
1840
1842
|
repeat?: boolean;
|
|
@@ -2100,7 +2102,8 @@ interface SnackProps {
|
|
|
2100
2102
|
}
|
|
2101
2103
|
interface SnackBtn {
|
|
2102
2104
|
label?: string;
|
|
2103
|
-
|
|
2105
|
+
hide?: boolean;
|
|
2106
|
+
onClick?: (e: any) => void;
|
|
2104
2107
|
}
|
|
2105
2108
|
type SnackPatch = Partial<Omit<ToastProps, 'id' | 'onClose'>>;
|
|
2106
2109
|
interface SnackController {
|