@zuzjs/ui 1.0.23 → 1.0.25

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
 
@@ -420,11 +423,23 @@ declare const Avatar: react.ForwardRefExoticComponent<ZuzProps & Omit<Omit<react
420
423
  referrerPolicy?: "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
421
424
  } & react.RefAttributes<AvatarHandler>>;
422
425
 
426
+ declare const SPINNER: {
427
+ readonly Simple: "SIMPLE";
428
+ readonly Roller: "ROLLER";
429
+ readonly Wave: "Wave";
430
+ };
431
+ type SpinnerProps = BoxProps & {
432
+ type?: ValueOf<typeof SPINNER>;
433
+ variant?: ValueOf<typeof Variant>;
434
+ };
435
+
423
436
  type BadgeProps = BoxProps & {
424
437
  size?: number;
425
438
  type?: ValueOf<typeof Status>;
439
+ variant?: ValueOf<typeof Variant>;
426
440
  label?: string;
427
441
  loading?: boolean;
442
+ spinner?: ValueOf<typeof SPINNER>;
428
443
  };
429
444
  declare const Badge: react__default.FC<BadgeProps>;
430
445
 
@@ -433,16 +448,6 @@ declare const Box: {
433
448
  displayName: string;
434
449
  };
435
450
 
436
- declare const SPINNER: {
437
- readonly Simple: "SIMPLE";
438
- readonly Roller: "ROLLER";
439
- readonly Wave: "Wave";
440
- };
441
- type SpinnerProps = BoxProps & {
442
- type?: ValueOf<typeof SPINNER>;
443
- variant?: ValueOf<typeof Variant>;
444
- };
445
-
446
451
  type ButtonProps = Props<`button`> & {
447
452
  ref?: Ref<HTMLButtonElement>;
448
453
  icon?: string | null;
@@ -1036,6 +1041,23 @@ declare enum ToastType {
1036
1041
  Warn = "warn",
1037
1042
  Promise = "promise"
1038
1043
  }
1044
+ declare enum ToastPosition {
1045
+ TopLeft = "TopLeft",
1046
+ TopCenter = "TopCenter",
1047
+ TopRight = "TopRight",
1048
+ BottomLeft = "BottomLeft",
1049
+ BottomCenter = "BottomCenter",
1050
+ BottomRight = "BottomRight"
1051
+ }
1052
+ declare enum ToastStyle {
1053
+ Stack = "stack",
1054
+ Individual = "individual"
1055
+ }
1056
+ interface ToastAction {
1057
+ label: string;
1058
+ onClick: () => void;
1059
+ variant?: 'primary' | 'secondary';
1060
+ }
1039
1061
  declare const ToastDefaultTitle: dynamic;
1040
1062
  interface ToastProps {
1041
1063
  id?: number;
@@ -1044,11 +1066,19 @@ interface ToastProps {
1044
1066
  title?: string | ReactNode;
1045
1067
  message?: string | ReactNode;
1046
1068
  duration?: number;
1069
+ sticky?: boolean;
1070
+ position?: ToastPosition;
1071
+ style?: ToastStyle;
1072
+ actions?: ToastAction[];
1073
+ variant?: ValueOf<typeof Variant>;
1047
1074
  inBackground?: boolean;
1075
+ progress?: boolean;
1048
1076
  onClose?: (id: number) => void;
1049
1077
  onClick?: () => void;
1050
1078
  }
1051
1079
 
1080
+ type LayerType = "dialog" | "drawer" | "toast" | "menu";
1081
+
1052
1082
  declare const LayersProvider: FC<{
1053
1083
  children: ReactNode;
1054
1084
  }>;
@@ -1250,7 +1280,7 @@ interface OptionItemProps {
1250
1280
  /**
1251
1281
  * Props for the Select component.
1252
1282
  */
1253
- type SelectProps = Omit<BoxProps, "onChange"> & {
1283
+ type SelectProps = Omit<BoxProps, "onChange" | "ref"> & {
1254
1284
  ref?: Ref<SelectHandler>;
1255
1285
  /**
1256
1286
  * Size of the select field.
@@ -1297,6 +1327,11 @@ type SelectProps = Omit<BoxProps, "onChange"> & {
1297
1327
  * Placeholder text for the search input field.
1298
1328
  */
1299
1329
  searchPlaceholder?: string;
1330
+ /**
1331
+ * Expand width to parent 100%
1332
+ * width:100%
1333
+ */
1334
+ expanded?: boolean;
1300
1335
  /**
1301
1336
  * Max Height
1302
1337
  */
@@ -1707,6 +1742,9 @@ declare const TextWheel: react__default.ForwardRefExoticComponent<Omit<TextWheel
1707
1742
 
1708
1743
  declare const Toast: FC<ToastProps & {
1709
1744
  index: number;
1745
+ total: number;
1746
+ isHovered: boolean;
1747
+ forceClose?: boolean;
1710
1748
  }>;
1711
1749
 
1712
1750
  type ToolTipProps = BoxProps & {
@@ -1784,8 +1822,14 @@ interface ThemeConfig {
1784
1822
  */
1785
1823
  spinner?: SpinnerProps;
1786
1824
  toast?: {
1825
+ variant?: ValueOf<typeof Variant>;
1826
+ position?: ToastPosition;
1827
+ style?: ToastStyle;
1828
+ transition?: ValueOf<typeof TRANSITIONS>;
1787
1829
  curve?: ValueOf<typeof TRANSITION_CURVES>;
1830
+ type?: ToastType;
1788
1831
  duration?: number;
1832
+ progress?: boolean;
1789
1833
  };
1790
1834
  }
1791
1835
  type ThemeProviderProps = {
@@ -1801,16 +1845,21 @@ declare const useBase: <T extends keyof JSX.IntrinsicElements>(props: Props<T>,
1801
1845
  rest: ComponentPropsWithRef<T>;
1802
1846
  };
1803
1847
 
1804
- interface PositionOptions {
1805
- offset?: number;
1806
- direction?: ValueOf<typeof POSITION>;
1807
- container?: HTMLElement | null;
1808
- triggerRef?: React.RefObject<HTMLElement>;
1809
- }
1810
- declare const usePosition: (ref: React.RefObject<HTMLElement>, // The element to be positioned
1811
- options?: PositionOptions) => {
1812
- postion: "fixed" | "absolute" | null;
1813
- reposition: () => void;
1848
+ declare const useContextMenu: () => {
1849
+ showContextMenu: (e: MouseEvent$1<Element, MouseEvent> | TouchEvent, items: ContextItem[], origin?: ValueOf<typeof ORIGIN>) => void;
1850
+ showMenu: (ref: RefObject<HTMLElement | null>, { items, origin, offsetX, offsetY, transition, curve, arrow, duration, header, footer }: {
1851
+ transition?: ValueOf<typeof TRANSITIONS>;
1852
+ curve?: ValueOf<typeof TRANSITION_CURVES>;
1853
+ arrow?: boolean;
1854
+ duration?: number;
1855
+ offsetX?: number;
1856
+ offsetY?: number;
1857
+ items: ContextItem[];
1858
+ origin?: ValueOf<typeof ORIGIN>;
1859
+ header?: ReactNode | FC;
1860
+ footer?: ReactNode | FC;
1861
+ }) => void;
1862
+ hide: (type: LayerType) => void;
1814
1863
  };
1815
1864
 
1816
1865
  declare const useDialog: () => {
@@ -1819,16 +1868,6 @@ declare const useDialog: () => {
1819
1868
  hide: (id: number) => void;
1820
1869
  };
1821
1870
 
1822
- declare const useToast: () => {
1823
- show: (title: string, message?: string, icon?: string, duration?: number) => number;
1824
- hide: (id: number) => void;
1825
- success: (title: string, message?: string, icon?: string, duration?: number) => number;
1826
- error: (title: string, message?: string, icon?: string, duration?: number) => number;
1827
- warn: (title: string, message?: string, icon?: string, duration?: number) => number;
1828
- promise: (title: string, message?: string, icon?: string, duration?: number) => number;
1829
- clearAll: () => void;
1830
- };
1831
-
1832
1871
  declare const useDrawer: () => {
1833
1872
  clearAll: () => void;
1834
1873
  open: (child?: string | ReactNode | ReactNode[]) => DrawerController;
@@ -1860,21 +1899,48 @@ declare const useMorph: (sourceRef: RefObject<HTMLElement | null>, active: boole
1860
1899
  sourceRect: DOMRect | null;
1861
1900
  };
1862
1901
 
1863
- declare const useContextMenu: () => {
1864
- showContextMenu: (e: MouseEvent$1<Element, MouseEvent> | TouchEvent, items: ContextItem[], origin?: ValueOf<typeof ORIGIN>) => void;
1865
- showMenu: (ref: RefObject<HTMLElement | null>, { items, origin, offsetX, offsetY, transition, curve, arrow, duration, header, footer }: {
1866
- transition?: ValueOf<typeof TRANSITIONS>;
1867
- curve?: ValueOf<typeof TRANSITION_CURVES>;
1868
- arrow?: boolean;
1869
- duration?: number;
1870
- offsetX?: number;
1871
- offsetY?: number;
1872
- items: ContextItem[];
1873
- origin?: ValueOf<typeof ORIGIN>;
1874
- header?: ReactNode | FC;
1875
- footer?: ReactNode | FC;
1876
- }) => void;
1877
- hide: () => void;
1902
+ interface PositionOptions {
1903
+ offset?: number;
1904
+ direction?: ValueOf<typeof POSITION>;
1905
+ container?: HTMLElement | null;
1906
+ triggerRef?: React.RefObject<HTMLElement>;
1907
+ }
1908
+ declare const usePosition: (ref: React.RefObject<HTMLElement>, // The element to be positioned
1909
+ options?: PositionOptions) => {
1910
+ postion: "fixed" | "absolute" | null;
1911
+ reposition: () => void;
1912
+ };
1913
+
1914
+ interface SnackProps {
1915
+ title: string;
1916
+ message?: string;
1917
+ icon?: string;
1918
+ duration?: number;
1919
+ sticky?: boolean;
1920
+ position?: ToastPosition;
1921
+ style?: ToastStyle;
1922
+ actions?: ToastAction[];
1923
+ }
1924
+ interface SnackBtn {
1925
+ label?: string;
1926
+ onClick?: () => void;
1927
+ }
1928
+ declare const useSnack: () => {
1929
+ ok: (props: SnackProps, ok?: SnackBtn) => number;
1930
+ success: (props: SnackProps, ok?: SnackBtn) => number;
1931
+ error: (props: SnackProps, ok?: SnackBtn) => number;
1932
+ confirm: (props: SnackProps, ok?: SnackBtn, cancel?: SnackBtn) => number;
1933
+ warn: (props: SnackProps, ok?: SnackBtn) => number;
1934
+ };
1935
+
1936
+ declare const useToast: () => {
1937
+ show: (title: string, message?: string, icon?: string, duration?: number) => number;
1938
+ hide: (id: number) => void;
1939
+ success: (title: string, message?: string, icon?: string, duration?: number) => number;
1940
+ error: (title: string, message?: string, icon?: string, duration?: number) => number;
1941
+ warn: (title: string, message?: string, icon?: string, duration?: number) => number;
1942
+ promise: (title: string, message?: string, icon?: string, duration?: number) => number;
1943
+ clearAll: () => void;
1878
1944
  };
1879
1945
 
1880
1946
  declare const PACKAGE_NAME: string;
@@ -1899,4 +1965,4 @@ declare const animationTransition: (transition: ValueOf<typeof TRANSITIONS>, off
1899
1965
  };
1900
1966
  declare const getAnimationTransition: (transition: ValueOf<typeof TRANSITIONS>, to?: boolean, from?: boolean) => dynamic;
1901
1967
 
1902
- export { ALERT, AVATAR, Accordion, type AccordionHandler, type AccordionProps, ActionBar, type ActionBarHandler, type ActionBarItem, type ActionBarProps, Alert, type AlertHandler, type AlertProps, AutoComplete, type AutoCompleteProps, Avatar, type AvatarHandler, type AvatarProps, Badge, type BadgeProps, Box, type BoxProps, Bubble, BubbleMediaType, type BubbleProps, BubbleStatus, Button, type ButtonHandler, type ButtonProps, ButtonState, CHART, CHECKBOX, COLORTHEME, Calendar, type CalendarProps, Chart, type ChartProps, CheckBox, type CheckBoxProps, type CheckboxHandler, CodeBlock, type CodeBlockProps, ColorScheme$1 as ColorScheme, type Column, type ContextItem, ContextMenu, type ContextMenuHandler, type ContextMenuProps, type CookieConsentProps, CookiesConsent, Cover, type CoverProps, type CropHandler, CropShape, Cropper, type CropperProps, Crumb, type CrumbItem, type CrumbProps, DATATYPE, DIALOG, DIALOG_ACTION_POSITION, DRAWER_SIDE, DatePicker, Dialog, type DialogActionHandler, type DialogController, type DialogHandler, type DialogProps, Drawer, type DrawerController, type DrawerHandler, type DrawerProps, FILTER, FORMVALIDATION, FORMVALIDATION_STYLE, Fab, type FabProps, type FilterProps, Filters, Form, type FormHandler, type FormInputs, type FormProps, Grid, type GridProps, Group, type GroupProps, Icon, type IconProps, Image, type ImageProps, Input, type InputProps, type KeyCombination, type KeyboardKey, type KeyboardKeyProps, KeyBoardKeys as KeyboardKeys, KeysLabelMap, KeysMap, Label, type LabelProps, type LayerHandler, LayersProvider, List, type ListItem, type ListItemObject, type ListProps, type MenuItemProps, type MorphOptions, type NetworkManagerprops, NetworkManager as NetworkStatus, ORIGIN, type Option, type OptionItemProps, OriginType, Overlay, type OverlayProps, PACKAGE_NAME, POSITION, PROGRESS, Pagination, type PaginationCallback, type PaginationPage, type PaginationPageItem, type PaginationProps, PaginationStyle, Password, type PasswordProps, PinInput, type PinInputProps, Position, ProgressBar, type ProgressBarProps, type ProgressHandler, type Props, RADIO, Radio, type RadioHandler, type RadioProps, type Row, type RowSelectCallback, SHEET, SHEET_ACTION_POSITION, SKELETON, SLIDER, SORT, SPINNER, ScrollView, type ScrollViewProps, Search, type SearchHandler, type SearchProps, type Segment, type SegmentController, type SegmentItemProps, type SegmentProps, Select, type SelectHandler, type SelectProps, Segmented as SelectTabs, Sheet, type SheetHandler, type SheetProps, type Skeleton, Slider, type SliderProps, Span, type SpanProps, Spinner, type SpinnerProps, Status, Switch, type CheckboxHandler as SwitchHandler, TRANSITIONS, TRANSITION_CURVES, type Tab, type TabBodyProps, type TabProps, TabView, type TabViewHandler, type TabViewProps, ForwardedTable as Table, type TableController, type TableOfContentItem, TableOfContents, type TableOfContentsProps, type TableProps, type TableSortCallback, Terminal, type TerminalCommandFn, type TerminalCommands, type TerminalHandler, type TerminalLine, type TerminalProps, Text, type TextAreaProps, TextWheel, type TextWheelHandler, type TextWheelProps, TextArea as Textarea, ThemeProvider, ToastDefaultTitle, type ToastProps, Toast as ToastProvider, ToastType, ToolTip, type ToolTipProps, type TreeItemHandler, type TreeItemProps, type TreeNode, type TreeNodeIcons, TreeView, type TreeViewHandler, type TreeViewProps, type Value, type ValueOf, Variant, type ZuzCommonValues, type ZuzProps, type ZuzStyleString, type animationProps, animationTransition, buildClassString, buildWithStyles, cleanProps, css, type cssShortKey, type cssShortKeys, type dynamic, getAnimationCurve, getAnimationTransition, getZuzMap, isKeyCombination, type parallaxEffectProps, setZuzMap, splitAtoms, useBase, useContextMenu, useDialog, useDrawer, useFx, useMorph, usePosition, useToast };
1968
+ export { ALERT, AVATAR, Accordion, type AccordionHandler, type AccordionProps, ActionBar, type ActionBarHandler, type ActionBarItem, type ActionBarProps, Alert, type AlertHandler, type AlertProps, AutoComplete, type AutoCompleteProps, Avatar, type AvatarHandler, type AvatarProps, Badge, type BadgeProps, Box, type BoxProps, Bubble, BubbleMediaType, type BubbleProps, BubbleStatus, Button, type ButtonHandler, type ButtonProps, ButtonState, CHART, CHECKBOX, COLORTHEME, Calendar, type CalendarProps, Chart, type ChartProps, CheckBox, type CheckBoxProps, type CheckboxHandler, CodeBlock, type CodeBlockProps, ColorScheme$1 as ColorScheme, type Column, type ContextItem, ContextMenu, type ContextMenuHandler, type ContextMenuProps, type CookieConsentProps, CookiesConsent, Cover, type CoverProps, type CropHandler, CropShape, Cropper, type CropperProps, Crumb, type CrumbItem, type CrumbProps, DATATYPE, DIALOG, DIALOG_ACTION_POSITION, DRAWER_SIDE, DatePicker, Dialog, type DialogActionHandler, type DialogController, type DialogHandler, type DialogProps, Drawer, type DrawerController, type DrawerHandler, type DrawerProps, FILTER, FORMVALIDATION, FORMVALIDATION_STYLE, Fab, type FabProps, type FilterProps, Filters, Form, type FormHandler, type FormInputs, type FormProps, Grid, type GridProps, Group, type GroupProps, Icon, type IconProps, Image, type ImageProps, Input, type InputProps, type KeyCombination, type KeyboardKey, type KeyboardKeyProps, KeyBoardKeys as KeyboardKeys, KeysLabelMap, KeysMap, Label, type LabelProps, type LayerHandler, LayersProvider, List, type ListItem, type ListItemObject, type ListProps, type MenuItemProps, type MorphOptions, type NetworkManagerprops, NetworkManager as NetworkStatus, ORIGIN, type Option, type OptionItemProps, OriginType, Overlay, type OverlayProps, PACKAGE_NAME, POSITION, PROGRESS, Pagination, type PaginationCallback, type PaginationPage, type PaginationPageItem, type PaginationProps, PaginationStyle, Password, type PasswordProps, PinInput, type PinInputProps, Position, ProgressBar, type ProgressBarProps, type ProgressHandler, type Props, RADIO, Radio, type RadioHandler, type RadioProps, type Row, type RowSelectCallback, SHEET, SHEET_ACTION_POSITION, SKELETON, SLIDER, SORT, SPINNER, ScrollView, type ScrollViewProps, Search, type SearchHandler, type SearchProps, type Segment, type SegmentController, type SegmentItemProps, type SegmentProps, Select, type SelectHandler, type SelectProps, Segmented as SelectTabs, Sheet, type SheetHandler, type SheetProps, type Skeleton, Slider, type SliderProps, type ToastAction as SnackAction, ToastPosition as SnackPosition, ToastStyle as SnackStyle, ToastType as SnackType, Span, type SpanProps, Spinner, type SpinnerProps, Status, Switch, type CheckboxHandler as SwitchHandler, TRANSITIONS, TRANSITION_CURVES, type Tab, type TabBodyProps, type TabProps, TabView, type TabViewHandler, type TabViewProps, ForwardedTable as Table, type TableController, type TableOfContentItem, TableOfContents, type TableOfContentsProps, type TableProps, type TableSortCallback, Terminal, type TerminalCommandFn, type TerminalCommands, type TerminalHandler, type TerminalLine, type TerminalProps, Text, type TextAreaProps, TextWheel, type TextWheelHandler, type TextWheelProps, TextArea as Textarea, ThemeProvider, type ToastAction, ToastDefaultTitle, ToastPosition, type ToastProps, Toast as ToastProvider, ToastStyle, ToastType, ToolTip, type ToolTipProps, type TreeItemHandler, type TreeItemProps, type TreeNode, type TreeNodeIcons, TreeView, type TreeViewHandler, type TreeViewProps, type Value, type ValueOf, Variant, type ZuzCommonValues, type ZuzProps, type ZuzStyleString, type animationProps, animationTransition, buildClassString, buildWithStyles, cleanProps, css, type cssShortKey, type cssShortKeys, type dynamic, getAnimationCurve, getAnimationTransition, getZuzMap, isKeyCombination, type parallaxEffectProps, setZuzMap, splitAtoms, useBase, useContextMenu, useDialog, useDrawer, useFx, useMorph, usePosition, useSnack, useToast };
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
 
@@ -420,11 +423,23 @@ declare const Avatar: react.ForwardRefExoticComponent<ZuzProps & Omit<Omit<react
420
423
  referrerPolicy?: "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
421
424
  } & react.RefAttributes<AvatarHandler>>;
422
425
 
426
+ declare const SPINNER: {
427
+ readonly Simple: "SIMPLE";
428
+ readonly Roller: "ROLLER";
429
+ readonly Wave: "Wave";
430
+ };
431
+ type SpinnerProps = BoxProps & {
432
+ type?: ValueOf<typeof SPINNER>;
433
+ variant?: ValueOf<typeof Variant>;
434
+ };
435
+
423
436
  type BadgeProps = BoxProps & {
424
437
  size?: number;
425
438
  type?: ValueOf<typeof Status>;
439
+ variant?: ValueOf<typeof Variant>;
426
440
  label?: string;
427
441
  loading?: boolean;
442
+ spinner?: ValueOf<typeof SPINNER>;
428
443
  };
429
444
  declare const Badge: react__default.FC<BadgeProps>;
430
445
 
@@ -433,16 +448,6 @@ declare const Box: {
433
448
  displayName: string;
434
449
  };
435
450
 
436
- declare const SPINNER: {
437
- readonly Simple: "SIMPLE";
438
- readonly Roller: "ROLLER";
439
- readonly Wave: "Wave";
440
- };
441
- type SpinnerProps = BoxProps & {
442
- type?: ValueOf<typeof SPINNER>;
443
- variant?: ValueOf<typeof Variant>;
444
- };
445
-
446
451
  type ButtonProps = Props<`button`> & {
447
452
  ref?: Ref<HTMLButtonElement>;
448
453
  icon?: string | null;
@@ -1036,6 +1041,23 @@ declare enum ToastType {
1036
1041
  Warn = "warn",
1037
1042
  Promise = "promise"
1038
1043
  }
1044
+ declare enum ToastPosition {
1045
+ TopLeft = "TopLeft",
1046
+ TopCenter = "TopCenter",
1047
+ TopRight = "TopRight",
1048
+ BottomLeft = "BottomLeft",
1049
+ BottomCenter = "BottomCenter",
1050
+ BottomRight = "BottomRight"
1051
+ }
1052
+ declare enum ToastStyle {
1053
+ Stack = "stack",
1054
+ Individual = "individual"
1055
+ }
1056
+ interface ToastAction {
1057
+ label: string;
1058
+ onClick: () => void;
1059
+ variant?: 'primary' | 'secondary';
1060
+ }
1039
1061
  declare const ToastDefaultTitle: dynamic;
1040
1062
  interface ToastProps {
1041
1063
  id?: number;
@@ -1044,11 +1066,19 @@ interface ToastProps {
1044
1066
  title?: string | ReactNode;
1045
1067
  message?: string | ReactNode;
1046
1068
  duration?: number;
1069
+ sticky?: boolean;
1070
+ position?: ToastPosition;
1071
+ style?: ToastStyle;
1072
+ actions?: ToastAction[];
1073
+ variant?: ValueOf<typeof Variant>;
1047
1074
  inBackground?: boolean;
1075
+ progress?: boolean;
1048
1076
  onClose?: (id: number) => void;
1049
1077
  onClick?: () => void;
1050
1078
  }
1051
1079
 
1080
+ type LayerType = "dialog" | "drawer" | "toast" | "menu";
1081
+
1052
1082
  declare const LayersProvider: FC<{
1053
1083
  children: ReactNode;
1054
1084
  }>;
@@ -1250,7 +1280,7 @@ interface OptionItemProps {
1250
1280
  /**
1251
1281
  * Props for the Select component.
1252
1282
  */
1253
- type SelectProps = Omit<BoxProps, "onChange"> & {
1283
+ type SelectProps = Omit<BoxProps, "onChange" | "ref"> & {
1254
1284
  ref?: Ref<SelectHandler>;
1255
1285
  /**
1256
1286
  * Size of the select field.
@@ -1297,6 +1327,11 @@ type SelectProps = Omit<BoxProps, "onChange"> & {
1297
1327
  * Placeholder text for the search input field.
1298
1328
  */
1299
1329
  searchPlaceholder?: string;
1330
+ /**
1331
+ * Expand width to parent 100%
1332
+ * width:100%
1333
+ */
1334
+ expanded?: boolean;
1300
1335
  /**
1301
1336
  * Max Height
1302
1337
  */
@@ -1707,6 +1742,9 @@ declare const TextWheel: react__default.ForwardRefExoticComponent<Omit<TextWheel
1707
1742
 
1708
1743
  declare const Toast: FC<ToastProps & {
1709
1744
  index: number;
1745
+ total: number;
1746
+ isHovered: boolean;
1747
+ forceClose?: boolean;
1710
1748
  }>;
1711
1749
 
1712
1750
  type ToolTipProps = BoxProps & {
@@ -1784,8 +1822,14 @@ interface ThemeConfig {
1784
1822
  */
1785
1823
  spinner?: SpinnerProps;
1786
1824
  toast?: {
1825
+ variant?: ValueOf<typeof Variant>;
1826
+ position?: ToastPosition;
1827
+ style?: ToastStyle;
1828
+ transition?: ValueOf<typeof TRANSITIONS>;
1787
1829
  curve?: ValueOf<typeof TRANSITION_CURVES>;
1830
+ type?: ToastType;
1788
1831
  duration?: number;
1832
+ progress?: boolean;
1789
1833
  };
1790
1834
  }
1791
1835
  type ThemeProviderProps = {
@@ -1801,16 +1845,21 @@ declare const useBase: <T extends keyof JSX.IntrinsicElements>(props: Props<T>,
1801
1845
  rest: ComponentPropsWithRef<T>;
1802
1846
  };
1803
1847
 
1804
- interface PositionOptions {
1805
- offset?: number;
1806
- direction?: ValueOf<typeof POSITION>;
1807
- container?: HTMLElement | null;
1808
- triggerRef?: React.RefObject<HTMLElement>;
1809
- }
1810
- declare const usePosition: (ref: React.RefObject<HTMLElement>, // The element to be positioned
1811
- options?: PositionOptions) => {
1812
- postion: "fixed" | "absolute" | null;
1813
- reposition: () => void;
1848
+ declare const useContextMenu: () => {
1849
+ showContextMenu: (e: MouseEvent$1<Element, MouseEvent> | TouchEvent, items: ContextItem[], origin?: ValueOf<typeof ORIGIN>) => void;
1850
+ showMenu: (ref: RefObject<HTMLElement | null>, { items, origin, offsetX, offsetY, transition, curve, arrow, duration, header, footer }: {
1851
+ transition?: ValueOf<typeof TRANSITIONS>;
1852
+ curve?: ValueOf<typeof TRANSITION_CURVES>;
1853
+ arrow?: boolean;
1854
+ duration?: number;
1855
+ offsetX?: number;
1856
+ offsetY?: number;
1857
+ items: ContextItem[];
1858
+ origin?: ValueOf<typeof ORIGIN>;
1859
+ header?: ReactNode | FC;
1860
+ footer?: ReactNode | FC;
1861
+ }) => void;
1862
+ hide: (type: LayerType) => void;
1814
1863
  };
1815
1864
 
1816
1865
  declare const useDialog: () => {
@@ -1819,16 +1868,6 @@ declare const useDialog: () => {
1819
1868
  hide: (id: number) => void;
1820
1869
  };
1821
1870
 
1822
- declare const useToast: () => {
1823
- show: (title: string, message?: string, icon?: string, duration?: number) => number;
1824
- hide: (id: number) => void;
1825
- success: (title: string, message?: string, icon?: string, duration?: number) => number;
1826
- error: (title: string, message?: string, icon?: string, duration?: number) => number;
1827
- warn: (title: string, message?: string, icon?: string, duration?: number) => number;
1828
- promise: (title: string, message?: string, icon?: string, duration?: number) => number;
1829
- clearAll: () => void;
1830
- };
1831
-
1832
1871
  declare const useDrawer: () => {
1833
1872
  clearAll: () => void;
1834
1873
  open: (child?: string | ReactNode | ReactNode[]) => DrawerController;
@@ -1860,21 +1899,48 @@ declare const useMorph: (sourceRef: RefObject<HTMLElement | null>, active: boole
1860
1899
  sourceRect: DOMRect | null;
1861
1900
  };
1862
1901
 
1863
- declare const useContextMenu: () => {
1864
- showContextMenu: (e: MouseEvent$1<Element, MouseEvent> | TouchEvent, items: ContextItem[], origin?: ValueOf<typeof ORIGIN>) => void;
1865
- showMenu: (ref: RefObject<HTMLElement | null>, { items, origin, offsetX, offsetY, transition, curve, arrow, duration, header, footer }: {
1866
- transition?: ValueOf<typeof TRANSITIONS>;
1867
- curve?: ValueOf<typeof TRANSITION_CURVES>;
1868
- arrow?: boolean;
1869
- duration?: number;
1870
- offsetX?: number;
1871
- offsetY?: number;
1872
- items: ContextItem[];
1873
- origin?: ValueOf<typeof ORIGIN>;
1874
- header?: ReactNode | FC;
1875
- footer?: ReactNode | FC;
1876
- }) => void;
1877
- hide: () => void;
1902
+ interface PositionOptions {
1903
+ offset?: number;
1904
+ direction?: ValueOf<typeof POSITION>;
1905
+ container?: HTMLElement | null;
1906
+ triggerRef?: React.RefObject<HTMLElement>;
1907
+ }
1908
+ declare const usePosition: (ref: React.RefObject<HTMLElement>, // The element to be positioned
1909
+ options?: PositionOptions) => {
1910
+ postion: "fixed" | "absolute" | null;
1911
+ reposition: () => void;
1912
+ };
1913
+
1914
+ interface SnackProps {
1915
+ title: string;
1916
+ message?: string;
1917
+ icon?: string;
1918
+ duration?: number;
1919
+ sticky?: boolean;
1920
+ position?: ToastPosition;
1921
+ style?: ToastStyle;
1922
+ actions?: ToastAction[];
1923
+ }
1924
+ interface SnackBtn {
1925
+ label?: string;
1926
+ onClick?: () => void;
1927
+ }
1928
+ declare const useSnack: () => {
1929
+ ok: (props: SnackProps, ok?: SnackBtn) => number;
1930
+ success: (props: SnackProps, ok?: SnackBtn) => number;
1931
+ error: (props: SnackProps, ok?: SnackBtn) => number;
1932
+ confirm: (props: SnackProps, ok?: SnackBtn, cancel?: SnackBtn) => number;
1933
+ warn: (props: SnackProps, ok?: SnackBtn) => number;
1934
+ };
1935
+
1936
+ declare const useToast: () => {
1937
+ show: (title: string, message?: string, icon?: string, duration?: number) => number;
1938
+ hide: (id: number) => void;
1939
+ success: (title: string, message?: string, icon?: string, duration?: number) => number;
1940
+ error: (title: string, message?: string, icon?: string, duration?: number) => number;
1941
+ warn: (title: string, message?: string, icon?: string, duration?: number) => number;
1942
+ promise: (title: string, message?: string, icon?: string, duration?: number) => number;
1943
+ clearAll: () => void;
1878
1944
  };
1879
1945
 
1880
1946
  declare const PACKAGE_NAME: string;
@@ -1899,4 +1965,4 @@ declare const animationTransition: (transition: ValueOf<typeof TRANSITIONS>, off
1899
1965
  };
1900
1966
  declare const getAnimationTransition: (transition: ValueOf<typeof TRANSITIONS>, to?: boolean, from?: boolean) => dynamic;
1901
1967
 
1902
- export { ALERT, AVATAR, Accordion, type AccordionHandler, type AccordionProps, ActionBar, type ActionBarHandler, type ActionBarItem, type ActionBarProps, Alert, type AlertHandler, type AlertProps, AutoComplete, type AutoCompleteProps, Avatar, type AvatarHandler, type AvatarProps, Badge, type BadgeProps, Box, type BoxProps, Bubble, BubbleMediaType, type BubbleProps, BubbleStatus, Button, type ButtonHandler, type ButtonProps, ButtonState, CHART, CHECKBOX, COLORTHEME, Calendar, type CalendarProps, Chart, type ChartProps, CheckBox, type CheckBoxProps, type CheckboxHandler, CodeBlock, type CodeBlockProps, ColorScheme$1 as ColorScheme, type Column, type ContextItem, ContextMenu, type ContextMenuHandler, type ContextMenuProps, type CookieConsentProps, CookiesConsent, Cover, type CoverProps, type CropHandler, CropShape, Cropper, type CropperProps, Crumb, type CrumbItem, type CrumbProps, DATATYPE, DIALOG, DIALOG_ACTION_POSITION, DRAWER_SIDE, DatePicker, Dialog, type DialogActionHandler, type DialogController, type DialogHandler, type DialogProps, Drawer, type DrawerController, type DrawerHandler, type DrawerProps, FILTER, FORMVALIDATION, FORMVALIDATION_STYLE, Fab, type FabProps, type FilterProps, Filters, Form, type FormHandler, type FormInputs, type FormProps, Grid, type GridProps, Group, type GroupProps, Icon, type IconProps, Image, type ImageProps, Input, type InputProps, type KeyCombination, type KeyboardKey, type KeyboardKeyProps, KeyBoardKeys as KeyboardKeys, KeysLabelMap, KeysMap, Label, type LabelProps, type LayerHandler, LayersProvider, List, type ListItem, type ListItemObject, type ListProps, type MenuItemProps, type MorphOptions, type NetworkManagerprops, NetworkManager as NetworkStatus, ORIGIN, type Option, type OptionItemProps, OriginType, Overlay, type OverlayProps, PACKAGE_NAME, POSITION, PROGRESS, Pagination, type PaginationCallback, type PaginationPage, type PaginationPageItem, type PaginationProps, PaginationStyle, Password, type PasswordProps, PinInput, type PinInputProps, Position, ProgressBar, type ProgressBarProps, type ProgressHandler, type Props, RADIO, Radio, type RadioHandler, type RadioProps, type Row, type RowSelectCallback, SHEET, SHEET_ACTION_POSITION, SKELETON, SLIDER, SORT, SPINNER, ScrollView, type ScrollViewProps, Search, type SearchHandler, type SearchProps, type Segment, type SegmentController, type SegmentItemProps, type SegmentProps, Select, type SelectHandler, type SelectProps, Segmented as SelectTabs, Sheet, type SheetHandler, type SheetProps, type Skeleton, Slider, type SliderProps, Span, type SpanProps, Spinner, type SpinnerProps, Status, Switch, type CheckboxHandler as SwitchHandler, TRANSITIONS, TRANSITION_CURVES, type Tab, type TabBodyProps, type TabProps, TabView, type TabViewHandler, type TabViewProps, ForwardedTable as Table, type TableController, type TableOfContentItem, TableOfContents, type TableOfContentsProps, type TableProps, type TableSortCallback, Terminal, type TerminalCommandFn, type TerminalCommands, type TerminalHandler, type TerminalLine, type TerminalProps, Text, type TextAreaProps, TextWheel, type TextWheelHandler, type TextWheelProps, TextArea as Textarea, ThemeProvider, ToastDefaultTitle, type ToastProps, Toast as ToastProvider, ToastType, ToolTip, type ToolTipProps, type TreeItemHandler, type TreeItemProps, type TreeNode, type TreeNodeIcons, TreeView, type TreeViewHandler, type TreeViewProps, type Value, type ValueOf, Variant, type ZuzCommonValues, type ZuzProps, type ZuzStyleString, type animationProps, animationTransition, buildClassString, buildWithStyles, cleanProps, css, type cssShortKey, type cssShortKeys, type dynamic, getAnimationCurve, getAnimationTransition, getZuzMap, isKeyCombination, type parallaxEffectProps, setZuzMap, splitAtoms, useBase, useContextMenu, useDialog, useDrawer, useFx, useMorph, usePosition, useToast };
1968
+ export { ALERT, AVATAR, Accordion, type AccordionHandler, type AccordionProps, ActionBar, type ActionBarHandler, type ActionBarItem, type ActionBarProps, Alert, type AlertHandler, type AlertProps, AutoComplete, type AutoCompleteProps, Avatar, type AvatarHandler, type AvatarProps, Badge, type BadgeProps, Box, type BoxProps, Bubble, BubbleMediaType, type BubbleProps, BubbleStatus, Button, type ButtonHandler, type ButtonProps, ButtonState, CHART, CHECKBOX, COLORTHEME, Calendar, type CalendarProps, Chart, type ChartProps, CheckBox, type CheckBoxProps, type CheckboxHandler, CodeBlock, type CodeBlockProps, ColorScheme$1 as ColorScheme, type Column, type ContextItem, ContextMenu, type ContextMenuHandler, type ContextMenuProps, type CookieConsentProps, CookiesConsent, Cover, type CoverProps, type CropHandler, CropShape, Cropper, type CropperProps, Crumb, type CrumbItem, type CrumbProps, DATATYPE, DIALOG, DIALOG_ACTION_POSITION, DRAWER_SIDE, DatePicker, Dialog, type DialogActionHandler, type DialogController, type DialogHandler, type DialogProps, Drawer, type DrawerController, type DrawerHandler, type DrawerProps, FILTER, FORMVALIDATION, FORMVALIDATION_STYLE, Fab, type FabProps, type FilterProps, Filters, Form, type FormHandler, type FormInputs, type FormProps, Grid, type GridProps, Group, type GroupProps, Icon, type IconProps, Image, type ImageProps, Input, type InputProps, type KeyCombination, type KeyboardKey, type KeyboardKeyProps, KeyBoardKeys as KeyboardKeys, KeysLabelMap, KeysMap, Label, type LabelProps, type LayerHandler, LayersProvider, List, type ListItem, type ListItemObject, type ListProps, type MenuItemProps, type MorphOptions, type NetworkManagerprops, NetworkManager as NetworkStatus, ORIGIN, type Option, type OptionItemProps, OriginType, Overlay, type OverlayProps, PACKAGE_NAME, POSITION, PROGRESS, Pagination, type PaginationCallback, type PaginationPage, type PaginationPageItem, type PaginationProps, PaginationStyle, Password, type PasswordProps, PinInput, type PinInputProps, Position, ProgressBar, type ProgressBarProps, type ProgressHandler, type Props, RADIO, Radio, type RadioHandler, type RadioProps, type Row, type RowSelectCallback, SHEET, SHEET_ACTION_POSITION, SKELETON, SLIDER, SORT, SPINNER, ScrollView, type ScrollViewProps, Search, type SearchHandler, type SearchProps, type Segment, type SegmentController, type SegmentItemProps, type SegmentProps, Select, type SelectHandler, type SelectProps, Segmented as SelectTabs, Sheet, type SheetHandler, type SheetProps, type Skeleton, Slider, type SliderProps, type ToastAction as SnackAction, ToastPosition as SnackPosition, ToastStyle as SnackStyle, ToastType as SnackType, Span, type SpanProps, Spinner, type SpinnerProps, Status, Switch, type CheckboxHandler as SwitchHandler, TRANSITIONS, TRANSITION_CURVES, type Tab, type TabBodyProps, type TabProps, TabView, type TabViewHandler, type TabViewProps, ForwardedTable as Table, type TableController, type TableOfContentItem, TableOfContents, type TableOfContentsProps, type TableProps, type TableSortCallback, Terminal, type TerminalCommandFn, type TerminalCommands, type TerminalHandler, type TerminalLine, type TerminalProps, Text, type TextAreaProps, TextWheel, type TextWheelHandler, type TextWheelProps, TextArea as Textarea, ThemeProvider, type ToastAction, ToastDefaultTitle, ToastPosition, type ToastProps, Toast as ToastProvider, ToastStyle, ToastType, ToolTip, type ToolTipProps, type TreeItemHandler, type TreeItemProps, type TreeNode, type TreeNodeIcons, TreeView, type TreeViewHandler, type TreeViewProps, type Value, type ValueOf, Variant, type ZuzCommonValues, type ZuzProps, type ZuzStyleString, type animationProps, animationTransition, buildClassString, buildWithStyles, cleanProps, css, type cssShortKey, type cssShortKeys, type dynamic, getAnimationCurve, getAnimationTransition, getZuzMap, isKeyCombination, type parallaxEffectProps, setZuzMap, splitAtoms, useBase, useContextMenu, useDialog, useDrawer, useFx, useMorph, usePosition, useSnack, useToast };