@zuzjs/ui 1.0.54 → 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/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";
@@ -2102,7 +2102,8 @@ interface SnackProps {
2102
2102
  }
2103
2103
  interface SnackBtn {
2104
2104
  label?: string;
2105
- onClick?: () => void;
2105
+ hide?: boolean;
2106
+ onClick?: (e: any) => void;
2106
2107
  }
2107
2108
  type SnackPatch = Partial<Omit<ToastProps, 'id' | 'onClose'>>;
2108
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";
@@ -2102,7 +2102,8 @@ interface SnackProps {
2102
2102
  }
2103
2103
  interface SnackBtn {
2104
2104
  label?: string;
2105
- onClick?: () => void;
2105
+ hide?: boolean;
2106
+ onClick?: (e: any) => void;
2106
2107
  }
2107
2108
  type SnackPatch = Partial<Omit<ToastProps, 'id' | 'onClose'>>;
2108
2109
  interface SnackController {