@zuzjs/ui 1.0.54 → 1.0.56

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
@@ -105,6 +105,8 @@ declare const TRANSITIONS: {
105
105
  readonly SlideInTop: "SLIDE_FROM_TOP";
106
106
  readonly SlideInRight: "SLIDE_FROM_RIGHT";
107
107
  readonly SlideInBottom: "SLIDE_FROM_BOTTOM";
108
+ readonly SlideInTopScale: "SLIDE_FROM_BOTTOM_SCALE";
109
+ readonly SlideInBottomScale: "SLIDE_FROM_BOTTOM_SCALE";
108
110
  readonly SlideInLeft: "SLIDE_FROM_LEFT";
109
111
  };
110
112
  declare const Status: {
@@ -1005,7 +1007,7 @@ type FormProps = Omit<BoxProps, `ref`> & {
1005
1007
  /** Handler function called on form submission with validated form data */
1006
1008
  onSubmit?: (data: FormData | dynamic, validationResult: ValidationResult) => void;
1007
1009
  /** Callback triggered upon successful form submission */
1008
- onSuccess?: (data: dynamic) => void;
1010
+ onSuccess?: (data: dynamic, payload?: dynamic) => void;
1009
1011
  /** Callback triggered when form submission encounters an error */
1010
1012
  onError?: (error: any, validationResult: ValidationResult) => void;
1011
1013
  /** Cover properties to display loading or processing message */
@@ -1121,7 +1123,7 @@ declare enum ToastStyle {
1121
1123
  }
1122
1124
  interface ToastAction {
1123
1125
  label: string;
1124
- onClick: () => void;
1126
+ onClick: (e: any) => void;
1125
1127
  variant?: 'primary' | 'secondary';
1126
1128
  }
1127
1129
  declare const ToastDefaultTitle: dynamic;
@@ -1143,7 +1145,7 @@ interface ToastProps {
1143
1145
  progressValue?: number;
1144
1146
  width?: number | string;
1145
1147
  onClose?: (id: number) => void;
1146
- onClick?: () => void;
1148
+ onClick?: (e: any) => void;
1147
1149
  }
1148
1150
 
1149
1151
  type LayerType = "dialog" | "drawer" | "toast" | "menu";
@@ -2102,7 +2104,8 @@ interface SnackProps {
2102
2104
  }
2103
2105
  interface SnackBtn {
2104
2106
  label?: string;
2105
- onClick?: () => void;
2107
+ hide?: boolean;
2108
+ onClick?: (e: any) => void;
2106
2109
  }
2107
2110
  type SnackPatch = Partial<Omit<ToastProps, 'id' | 'onClose'>>;
2108
2111
  interface SnackController {
package/dist/index.d.ts CHANGED
@@ -105,6 +105,8 @@ declare const TRANSITIONS: {
105
105
  readonly SlideInTop: "SLIDE_FROM_TOP";
106
106
  readonly SlideInRight: "SLIDE_FROM_RIGHT";
107
107
  readonly SlideInBottom: "SLIDE_FROM_BOTTOM";
108
+ readonly SlideInTopScale: "SLIDE_FROM_BOTTOM_SCALE";
109
+ readonly SlideInBottomScale: "SLIDE_FROM_BOTTOM_SCALE";
108
110
  readonly SlideInLeft: "SLIDE_FROM_LEFT";
109
111
  };
110
112
  declare const Status: {
@@ -1005,7 +1007,7 @@ type FormProps = Omit<BoxProps, `ref`> & {
1005
1007
  /** Handler function called on form submission with validated form data */
1006
1008
  onSubmit?: (data: FormData | dynamic, validationResult: ValidationResult) => void;
1007
1009
  /** Callback triggered upon successful form submission */
1008
- onSuccess?: (data: dynamic) => void;
1010
+ onSuccess?: (data: dynamic, payload?: dynamic) => void;
1009
1011
  /** Callback triggered when form submission encounters an error */
1010
1012
  onError?: (error: any, validationResult: ValidationResult) => void;
1011
1013
  /** Cover properties to display loading or processing message */
@@ -1121,7 +1123,7 @@ declare enum ToastStyle {
1121
1123
  }
1122
1124
  interface ToastAction {
1123
1125
  label: string;
1124
- onClick: () => void;
1126
+ onClick: (e: any) => void;
1125
1127
  variant?: 'primary' | 'secondary';
1126
1128
  }
1127
1129
  declare const ToastDefaultTitle: dynamic;
@@ -1143,7 +1145,7 @@ interface ToastProps {
1143
1145
  progressValue?: number;
1144
1146
  width?: number | string;
1145
1147
  onClose?: (id: number) => void;
1146
- onClick?: () => void;
1148
+ onClick?: (e: any) => void;
1147
1149
  }
1148
1150
 
1149
1151
  type LayerType = "dialog" | "drawer" | "toast" | "menu";
@@ -2102,7 +2104,8 @@ interface SnackProps {
2102
2104
  }
2103
2105
  interface SnackBtn {
2104
2106
  label?: string;
2105
- onClick?: () => void;
2107
+ hide?: boolean;
2108
+ onClick?: (e: any) => void;
2106
2109
  }
2107
2110
  type SnackPatch = Partial<Omit<ToastProps, 'id' | 'onClose'>>;
2108
2111
  interface SnackController {