@zuzjs/ui 1.0.23 → 1.0.24

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
@@ -298,13 +298,16 @@ interface Skeleton {
298
298
  interface LayerHandler {
299
299
  inBackground?: boolean;
300
300
  forceClose?: boolean;
301
+ forceLoading?: boolean;
301
302
  }
302
303
  interface DialogController {
303
304
  id: number;
305
+ setLoading: (mod: boolean) => void;
304
306
  hide: () => void;
305
307
  }
306
308
  interface DrawerController {
307
309
  id: number;
310
+ setLoading: (mod: boolean) => void;
308
311
  close: () => void;
309
312
  }
310
313
 
@@ -423,6 +426,7 @@ declare const Avatar: react.ForwardRefExoticComponent<ZuzProps & Omit<Omit<react
423
426
  type BadgeProps = BoxProps & {
424
427
  size?: number;
425
428
  type?: ValueOf<typeof Status>;
429
+ variant?: ValueOf<typeof Variant>;
426
430
  label?: string;
427
431
  loading?: boolean;
428
432
  };
@@ -1049,6 +1053,8 @@ interface ToastProps {
1049
1053
  onClick?: () => void;
1050
1054
  }
1051
1055
 
1056
+ type LayerType = "dialog" | "drawer" | "toast" | "menu";
1057
+
1052
1058
  declare const LayersProvider: FC<{
1053
1059
  children: ReactNode;
1054
1060
  }>;
@@ -1250,7 +1256,7 @@ interface OptionItemProps {
1250
1256
  /**
1251
1257
  * Props for the Select component.
1252
1258
  */
1253
- type SelectProps = Omit<BoxProps, "onChange"> & {
1259
+ type SelectProps = Omit<BoxProps, "onChange" | "ref"> & {
1254
1260
  ref?: Ref<SelectHandler>;
1255
1261
  /**
1256
1262
  * Size of the select field.
@@ -1297,6 +1303,11 @@ type SelectProps = Omit<BoxProps, "onChange"> & {
1297
1303
  * Placeholder text for the search input field.
1298
1304
  */
1299
1305
  searchPlaceholder?: string;
1306
+ /**
1307
+ * Expand width to parent 100%
1308
+ * width:100%
1309
+ */
1310
+ expanded?: boolean;
1300
1311
  /**
1301
1312
  * Max Height
1302
1313
  */
@@ -1874,7 +1885,7 @@ declare const useContextMenu: () => {
1874
1885
  header?: ReactNode | FC;
1875
1886
  footer?: ReactNode | FC;
1876
1887
  }) => void;
1877
- hide: () => void;
1888
+ hide: (type: LayerType) => void;
1878
1889
  };
1879
1890
 
1880
1891
  declare const PACKAGE_NAME: string;
package/dist/index.d.ts CHANGED
@@ -298,13 +298,16 @@ interface Skeleton {
298
298
  interface LayerHandler {
299
299
  inBackground?: boolean;
300
300
  forceClose?: boolean;
301
+ forceLoading?: boolean;
301
302
  }
302
303
  interface DialogController {
303
304
  id: number;
305
+ setLoading: (mod: boolean) => void;
304
306
  hide: () => void;
305
307
  }
306
308
  interface DrawerController {
307
309
  id: number;
310
+ setLoading: (mod: boolean) => void;
308
311
  close: () => void;
309
312
  }
310
313
 
@@ -423,6 +426,7 @@ declare const Avatar: react.ForwardRefExoticComponent<ZuzProps & Omit<Omit<react
423
426
  type BadgeProps = BoxProps & {
424
427
  size?: number;
425
428
  type?: ValueOf<typeof Status>;
429
+ variant?: ValueOf<typeof Variant>;
426
430
  label?: string;
427
431
  loading?: boolean;
428
432
  };
@@ -1049,6 +1053,8 @@ interface ToastProps {
1049
1053
  onClick?: () => void;
1050
1054
  }
1051
1055
 
1056
+ type LayerType = "dialog" | "drawer" | "toast" | "menu";
1057
+
1052
1058
  declare const LayersProvider: FC<{
1053
1059
  children: ReactNode;
1054
1060
  }>;
@@ -1250,7 +1256,7 @@ interface OptionItemProps {
1250
1256
  /**
1251
1257
  * Props for the Select component.
1252
1258
  */
1253
- type SelectProps = Omit<BoxProps, "onChange"> & {
1259
+ type SelectProps = Omit<BoxProps, "onChange" | "ref"> & {
1254
1260
  ref?: Ref<SelectHandler>;
1255
1261
  /**
1256
1262
  * Size of the select field.
@@ -1297,6 +1303,11 @@ type SelectProps = Omit<BoxProps, "onChange"> & {
1297
1303
  * Placeholder text for the search input field.
1298
1304
  */
1299
1305
  searchPlaceholder?: string;
1306
+ /**
1307
+ * Expand width to parent 100%
1308
+ * width:100%
1309
+ */
1310
+ expanded?: boolean;
1300
1311
  /**
1301
1312
  * Max Height
1302
1313
  */
@@ -1874,7 +1885,7 @@ declare const useContextMenu: () => {
1874
1885
  header?: ReactNode | FC;
1875
1886
  footer?: ReactNode | FC;
1876
1887
  }) => void;
1877
- hide: () => void;
1888
+ hide: (type: LayerType) => void;
1878
1889
  };
1879
1890
 
1880
1891
  declare const PACKAGE_NAME: string;