@zuzjs/ui 1.0.24 → 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/bin.cjs +4 -4
- package/dist/bin.js +1 -1
- package/dist/css/styles.css +1 -1
- package/dist/index.cjs +8 -8
- package/dist/index.d.cts +101 -46
- package/dist/index.d.ts +101 -46
- package/dist/index.js +7 -7
- package/package.json +1 -1
- /package/dist/{chunk-ZUZUOZRM.cjs → chunk-S2I6IQYE.cjs} +0 -0
- /package/dist/{chunk-QNDXKMRP.js → chunk-X2GGFKXO.js} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -423,12 +423,23 @@ declare const Avatar: react.ForwardRefExoticComponent<ZuzProps & Omit<Omit<react
|
|
|
423
423
|
referrerPolicy?: "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
|
|
424
424
|
} & react.RefAttributes<AvatarHandler>>;
|
|
425
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
|
+
|
|
426
436
|
type BadgeProps = BoxProps & {
|
|
427
437
|
size?: number;
|
|
428
438
|
type?: ValueOf<typeof Status>;
|
|
429
439
|
variant?: ValueOf<typeof Variant>;
|
|
430
440
|
label?: string;
|
|
431
441
|
loading?: boolean;
|
|
442
|
+
spinner?: ValueOf<typeof SPINNER>;
|
|
432
443
|
};
|
|
433
444
|
declare const Badge: react__default.FC<BadgeProps>;
|
|
434
445
|
|
|
@@ -437,16 +448,6 @@ declare const Box: {
|
|
|
437
448
|
displayName: string;
|
|
438
449
|
};
|
|
439
450
|
|
|
440
|
-
declare const SPINNER: {
|
|
441
|
-
readonly Simple: "SIMPLE";
|
|
442
|
-
readonly Roller: "ROLLER";
|
|
443
|
-
readonly Wave: "Wave";
|
|
444
|
-
};
|
|
445
|
-
type SpinnerProps = BoxProps & {
|
|
446
|
-
type?: ValueOf<typeof SPINNER>;
|
|
447
|
-
variant?: ValueOf<typeof Variant>;
|
|
448
|
-
};
|
|
449
|
-
|
|
450
451
|
type ButtonProps = Props<`button`> & {
|
|
451
452
|
ref?: Ref<HTMLButtonElement>;
|
|
452
453
|
icon?: string | null;
|
|
@@ -1040,6 +1041,23 @@ declare enum ToastType {
|
|
|
1040
1041
|
Warn = "warn",
|
|
1041
1042
|
Promise = "promise"
|
|
1042
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
|
+
}
|
|
1043
1061
|
declare const ToastDefaultTitle: dynamic;
|
|
1044
1062
|
interface ToastProps {
|
|
1045
1063
|
id?: number;
|
|
@@ -1048,7 +1066,13 @@ interface ToastProps {
|
|
|
1048
1066
|
title?: string | ReactNode;
|
|
1049
1067
|
message?: string | ReactNode;
|
|
1050
1068
|
duration?: number;
|
|
1069
|
+
sticky?: boolean;
|
|
1070
|
+
position?: ToastPosition;
|
|
1071
|
+
style?: ToastStyle;
|
|
1072
|
+
actions?: ToastAction[];
|
|
1073
|
+
variant?: ValueOf<typeof Variant>;
|
|
1051
1074
|
inBackground?: boolean;
|
|
1075
|
+
progress?: boolean;
|
|
1052
1076
|
onClose?: (id: number) => void;
|
|
1053
1077
|
onClick?: () => void;
|
|
1054
1078
|
}
|
|
@@ -1718,6 +1742,9 @@ declare const TextWheel: react__default.ForwardRefExoticComponent<Omit<TextWheel
|
|
|
1718
1742
|
|
|
1719
1743
|
declare const Toast: FC<ToastProps & {
|
|
1720
1744
|
index: number;
|
|
1745
|
+
total: number;
|
|
1746
|
+
isHovered: boolean;
|
|
1747
|
+
forceClose?: boolean;
|
|
1721
1748
|
}>;
|
|
1722
1749
|
|
|
1723
1750
|
type ToolTipProps = BoxProps & {
|
|
@@ -1795,8 +1822,14 @@ interface ThemeConfig {
|
|
|
1795
1822
|
*/
|
|
1796
1823
|
spinner?: SpinnerProps;
|
|
1797
1824
|
toast?: {
|
|
1825
|
+
variant?: ValueOf<typeof Variant>;
|
|
1826
|
+
position?: ToastPosition;
|
|
1827
|
+
style?: ToastStyle;
|
|
1828
|
+
transition?: ValueOf<typeof TRANSITIONS>;
|
|
1798
1829
|
curve?: ValueOf<typeof TRANSITION_CURVES>;
|
|
1830
|
+
type?: ToastType;
|
|
1799
1831
|
duration?: number;
|
|
1832
|
+
progress?: boolean;
|
|
1800
1833
|
};
|
|
1801
1834
|
}
|
|
1802
1835
|
type ThemeProviderProps = {
|
|
@@ -1812,16 +1845,21 @@ declare const useBase: <T extends keyof JSX.IntrinsicElements>(props: Props<T>,
|
|
|
1812
1845
|
rest: ComponentPropsWithRef<T>;
|
|
1813
1846
|
};
|
|
1814
1847
|
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
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;
|
|
1825
1863
|
};
|
|
1826
1864
|
|
|
1827
1865
|
declare const useDialog: () => {
|
|
@@ -1830,16 +1868,6 @@ declare const useDialog: () => {
|
|
|
1830
1868
|
hide: (id: number) => void;
|
|
1831
1869
|
};
|
|
1832
1870
|
|
|
1833
|
-
declare const useToast: () => {
|
|
1834
|
-
show: (title: string, message?: string, icon?: string, duration?: number) => number;
|
|
1835
|
-
hide: (id: number) => void;
|
|
1836
|
-
success: (title: string, message?: string, icon?: string, duration?: number) => number;
|
|
1837
|
-
error: (title: string, message?: string, icon?: string, duration?: number) => number;
|
|
1838
|
-
warn: (title: string, message?: string, icon?: string, duration?: number) => number;
|
|
1839
|
-
promise: (title: string, message?: string, icon?: string, duration?: number) => number;
|
|
1840
|
-
clearAll: () => void;
|
|
1841
|
-
};
|
|
1842
|
-
|
|
1843
1871
|
declare const useDrawer: () => {
|
|
1844
1872
|
clearAll: () => void;
|
|
1845
1873
|
open: (child?: string | ReactNode | ReactNode[]) => DrawerController;
|
|
@@ -1871,21 +1899,48 @@ declare const useMorph: (sourceRef: RefObject<HTMLElement | null>, active: boole
|
|
|
1871
1899
|
sourceRect: DOMRect | null;
|
|
1872
1900
|
};
|
|
1873
1901
|
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
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;
|
|
1889
1944
|
};
|
|
1890
1945
|
|
|
1891
1946
|
declare const PACKAGE_NAME: string;
|
|
@@ -1910,4 +1965,4 @@ declare const animationTransition: (transition: ValueOf<typeof TRANSITIONS>, off
|
|
|
1910
1965
|
};
|
|
1911
1966
|
declare const getAnimationTransition: (transition: ValueOf<typeof TRANSITIONS>, to?: boolean, from?: boolean) => dynamic;
|
|
1912
1967
|
|
|
1913
|
-
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
|
@@ -423,12 +423,23 @@ declare const Avatar: react.ForwardRefExoticComponent<ZuzProps & Omit<Omit<react
|
|
|
423
423
|
referrerPolicy?: "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
|
|
424
424
|
} & react.RefAttributes<AvatarHandler>>;
|
|
425
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
|
+
|
|
426
436
|
type BadgeProps = BoxProps & {
|
|
427
437
|
size?: number;
|
|
428
438
|
type?: ValueOf<typeof Status>;
|
|
429
439
|
variant?: ValueOf<typeof Variant>;
|
|
430
440
|
label?: string;
|
|
431
441
|
loading?: boolean;
|
|
442
|
+
spinner?: ValueOf<typeof SPINNER>;
|
|
432
443
|
};
|
|
433
444
|
declare const Badge: react__default.FC<BadgeProps>;
|
|
434
445
|
|
|
@@ -437,16 +448,6 @@ declare const Box: {
|
|
|
437
448
|
displayName: string;
|
|
438
449
|
};
|
|
439
450
|
|
|
440
|
-
declare const SPINNER: {
|
|
441
|
-
readonly Simple: "SIMPLE";
|
|
442
|
-
readonly Roller: "ROLLER";
|
|
443
|
-
readonly Wave: "Wave";
|
|
444
|
-
};
|
|
445
|
-
type SpinnerProps = BoxProps & {
|
|
446
|
-
type?: ValueOf<typeof SPINNER>;
|
|
447
|
-
variant?: ValueOf<typeof Variant>;
|
|
448
|
-
};
|
|
449
|
-
|
|
450
451
|
type ButtonProps = Props<`button`> & {
|
|
451
452
|
ref?: Ref<HTMLButtonElement>;
|
|
452
453
|
icon?: string | null;
|
|
@@ -1040,6 +1041,23 @@ declare enum ToastType {
|
|
|
1040
1041
|
Warn = "warn",
|
|
1041
1042
|
Promise = "promise"
|
|
1042
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
|
+
}
|
|
1043
1061
|
declare const ToastDefaultTitle: dynamic;
|
|
1044
1062
|
interface ToastProps {
|
|
1045
1063
|
id?: number;
|
|
@@ -1048,7 +1066,13 @@ interface ToastProps {
|
|
|
1048
1066
|
title?: string | ReactNode;
|
|
1049
1067
|
message?: string | ReactNode;
|
|
1050
1068
|
duration?: number;
|
|
1069
|
+
sticky?: boolean;
|
|
1070
|
+
position?: ToastPosition;
|
|
1071
|
+
style?: ToastStyle;
|
|
1072
|
+
actions?: ToastAction[];
|
|
1073
|
+
variant?: ValueOf<typeof Variant>;
|
|
1051
1074
|
inBackground?: boolean;
|
|
1075
|
+
progress?: boolean;
|
|
1052
1076
|
onClose?: (id: number) => void;
|
|
1053
1077
|
onClick?: () => void;
|
|
1054
1078
|
}
|
|
@@ -1718,6 +1742,9 @@ declare const TextWheel: react__default.ForwardRefExoticComponent<Omit<TextWheel
|
|
|
1718
1742
|
|
|
1719
1743
|
declare const Toast: FC<ToastProps & {
|
|
1720
1744
|
index: number;
|
|
1745
|
+
total: number;
|
|
1746
|
+
isHovered: boolean;
|
|
1747
|
+
forceClose?: boolean;
|
|
1721
1748
|
}>;
|
|
1722
1749
|
|
|
1723
1750
|
type ToolTipProps = BoxProps & {
|
|
@@ -1795,8 +1822,14 @@ interface ThemeConfig {
|
|
|
1795
1822
|
*/
|
|
1796
1823
|
spinner?: SpinnerProps;
|
|
1797
1824
|
toast?: {
|
|
1825
|
+
variant?: ValueOf<typeof Variant>;
|
|
1826
|
+
position?: ToastPosition;
|
|
1827
|
+
style?: ToastStyle;
|
|
1828
|
+
transition?: ValueOf<typeof TRANSITIONS>;
|
|
1798
1829
|
curve?: ValueOf<typeof TRANSITION_CURVES>;
|
|
1830
|
+
type?: ToastType;
|
|
1799
1831
|
duration?: number;
|
|
1832
|
+
progress?: boolean;
|
|
1800
1833
|
};
|
|
1801
1834
|
}
|
|
1802
1835
|
type ThemeProviderProps = {
|
|
@@ -1812,16 +1845,21 @@ declare const useBase: <T extends keyof JSX.IntrinsicElements>(props: Props<T>,
|
|
|
1812
1845
|
rest: ComponentPropsWithRef<T>;
|
|
1813
1846
|
};
|
|
1814
1847
|
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
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;
|
|
1825
1863
|
};
|
|
1826
1864
|
|
|
1827
1865
|
declare const useDialog: () => {
|
|
@@ -1830,16 +1868,6 @@ declare const useDialog: () => {
|
|
|
1830
1868
|
hide: (id: number) => void;
|
|
1831
1869
|
};
|
|
1832
1870
|
|
|
1833
|
-
declare const useToast: () => {
|
|
1834
|
-
show: (title: string, message?: string, icon?: string, duration?: number) => number;
|
|
1835
|
-
hide: (id: number) => void;
|
|
1836
|
-
success: (title: string, message?: string, icon?: string, duration?: number) => number;
|
|
1837
|
-
error: (title: string, message?: string, icon?: string, duration?: number) => number;
|
|
1838
|
-
warn: (title: string, message?: string, icon?: string, duration?: number) => number;
|
|
1839
|
-
promise: (title: string, message?: string, icon?: string, duration?: number) => number;
|
|
1840
|
-
clearAll: () => void;
|
|
1841
|
-
};
|
|
1842
|
-
|
|
1843
1871
|
declare const useDrawer: () => {
|
|
1844
1872
|
clearAll: () => void;
|
|
1845
1873
|
open: (child?: string | ReactNode | ReactNode[]) => DrawerController;
|
|
@@ -1871,21 +1899,48 @@ declare const useMorph: (sourceRef: RefObject<HTMLElement | null>, active: boole
|
|
|
1871
1899
|
sourceRect: DOMRect | null;
|
|
1872
1900
|
};
|
|
1873
1901
|
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
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;
|
|
1889
1944
|
};
|
|
1890
1945
|
|
|
1891
1946
|
declare const PACKAGE_NAME: string;
|
|
@@ -1910,4 +1965,4 @@ declare const animationTransition: (transition: ValueOf<typeof TRANSITIONS>, off
|
|
|
1910
1965
|
};
|
|
1911
1966
|
declare const getAnimationTransition: (transition: ValueOf<typeof TRANSITIONS>, to?: boolean, from?: boolean) => dynamic;
|
|
1912
1967
|
|
|
1913
|
-
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 };
|