@zuzjs/ui 1.0.51 → 1.0.53
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 +42 -10
- package/dist/index.d.ts +42 -10
- package/dist/index.js +7 -7
- package/package.json +2 -2
- /package/dist/{chunk-A6NPM5DH.js → chunk-Y6OZUVXD.js} +0 -0
- /package/dist/{chunk-2PKFX42X.cjs → chunk-YEGRGLBF.cjs} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -83,6 +83,8 @@ declare const FORMVALIDATION: {
|
|
|
83
83
|
readonly MatchField: "MATCHFIELD";
|
|
84
84
|
readonly Pattern: "*";
|
|
85
85
|
readonly GreaterThan: "GREATER_THAN";
|
|
86
|
+
readonly NotEmpty: "NOT_EMPTY";
|
|
87
|
+
readonly NotMinusOne: "NOT_MINUS_ONE";
|
|
86
88
|
};
|
|
87
89
|
declare const ALERT: {
|
|
88
90
|
readonly Success: "success";
|
|
@@ -169,6 +171,8 @@ type dynamic = {
|
|
|
169
171
|
};
|
|
170
172
|
type Props<T extends ElementType> = ZuzProps & Omit<ComponentPropsWithoutRef<T>, keyof ZuzProps>;
|
|
171
173
|
type FormInputs = HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;
|
|
174
|
+
type FormValidation = ValueOf<typeof FORMVALIDATION>;
|
|
175
|
+
type WithFormValidation = FormValidation | `${FormValidation}${string}`;
|
|
172
176
|
type AnimationTransition = `back` | `expo` | `sine` | `power` | `circ` | `bounce` | `elastic` | `ease` | `spring` | `liquid`;
|
|
173
177
|
|
|
174
178
|
declare const cssProps: dynamic;
|
|
@@ -221,6 +225,7 @@ interface BoxProps extends Partial<Props<`div`>> {
|
|
|
221
225
|
name?: string;
|
|
222
226
|
ref?: Ref<HTMLDivElement>;
|
|
223
227
|
cols?: boolean;
|
|
228
|
+
with?: WithFormValidation;
|
|
224
229
|
}
|
|
225
230
|
interface parallaxEffectProps {
|
|
226
231
|
lerpFactor?: number;
|
|
@@ -387,12 +392,11 @@ interface AlertHandler {
|
|
|
387
392
|
|
|
388
393
|
declare const Alert: react.ForwardRefExoticComponent<Omit<AlertProps, "ref"> & react.RefAttributes<AlertHandler>>;
|
|
389
394
|
|
|
390
|
-
type FormValidation = ValueOf<typeof FORMVALIDATION>;
|
|
391
395
|
type InputProps = Props<`input`> & {
|
|
392
396
|
ref?: Ref<HTMLInputElement>;
|
|
393
397
|
numeric?: boolean;
|
|
394
398
|
variant?: ValueOf<typeof Variant>;
|
|
395
|
-
with?:
|
|
399
|
+
with?: WithFormValidation;
|
|
396
400
|
/**
|
|
397
401
|
* Triggers when Enter / Return is Pressed
|
|
398
402
|
*/
|
|
@@ -1023,7 +1027,7 @@ interface FormHandler {
|
|
|
1023
1027
|
hideError: () => void;
|
|
1024
1028
|
/** Resets the form to its initial state */
|
|
1025
1029
|
init: () => void;
|
|
1026
|
-
submit: () => void;
|
|
1030
|
+
submit: (more?: dynamic) => void;
|
|
1027
1031
|
}
|
|
1028
1032
|
|
|
1029
1033
|
declare const Form: {
|
|
@@ -1125,6 +1129,7 @@ interface ToastProps {
|
|
|
1125
1129
|
id?: number;
|
|
1126
1130
|
type: ToastType;
|
|
1127
1131
|
icon?: string;
|
|
1132
|
+
busy?: boolean;
|
|
1128
1133
|
title?: string | ReactNode;
|
|
1129
1134
|
message?: string | ReactNode;
|
|
1130
1135
|
duration?: number;
|
|
@@ -1135,6 +1140,8 @@ interface ToastProps {
|
|
|
1135
1140
|
variant?: ValueOf<typeof Variant>;
|
|
1136
1141
|
inBackground?: boolean;
|
|
1137
1142
|
progress?: boolean;
|
|
1143
|
+
progressValue?: number;
|
|
1144
|
+
width?: number | string;
|
|
1138
1145
|
onClose?: (id: number) => void;
|
|
1139
1146
|
onClick?: () => void;
|
|
1140
1147
|
}
|
|
@@ -1386,6 +1393,8 @@ type Option = {
|
|
|
1386
1393
|
value: string | number;
|
|
1387
1394
|
/** Optional flag to disable this specific option. */
|
|
1388
1395
|
disabled?: boolean;
|
|
1396
|
+
/** Special value parameter for categorization or grouping or passing additional metadata. */
|
|
1397
|
+
tag?: string;
|
|
1389
1398
|
};
|
|
1390
1399
|
/**
|
|
1391
1400
|
* Represents an option object with a label and value.
|
|
@@ -1410,7 +1419,7 @@ type SelectProps = Omit<BoxProps, "onChange" | "ref"> & {
|
|
|
1410
1419
|
/**
|
|
1411
1420
|
* Indicates if the select field is required and its validation type.
|
|
1412
1421
|
*/
|
|
1413
|
-
required?:
|
|
1422
|
+
required?: boolean;
|
|
1414
1423
|
/**
|
|
1415
1424
|
* Array of options to be displayed in the select dropdown.
|
|
1416
1425
|
* * @example
|
|
@@ -1845,6 +1854,7 @@ type TextAreaProps = Props<`textarea`> & {
|
|
|
1845
1854
|
variant?: ValueOf<typeof Variant>;
|
|
1846
1855
|
command?: string;
|
|
1847
1856
|
commands?: Command[];
|
|
1857
|
+
with?: WithFormValidation;
|
|
1848
1858
|
cmd?: (value: string, textarea: HTMLTextAreaElement | HTMLInputElement) => void;
|
|
1849
1859
|
renderDropdown?: (props: {
|
|
1850
1860
|
show: boolean;
|
|
@@ -2084,17 +2094,39 @@ interface SnackProps {
|
|
|
2084
2094
|
position?: ToastPosition;
|
|
2085
2095
|
style?: ToastStyle;
|
|
2086
2096
|
actions?: ToastAction[];
|
|
2097
|
+
progress?: boolean;
|
|
2098
|
+
progressValue?: number;
|
|
2099
|
+
width?: number | string;
|
|
2087
2100
|
}
|
|
2088
2101
|
interface SnackBtn {
|
|
2089
2102
|
label?: string;
|
|
2090
2103
|
onClick?: () => void;
|
|
2091
2104
|
}
|
|
2105
|
+
type SnackPatch = Partial<Omit<ToastProps, 'id' | 'onClose'>>;
|
|
2106
|
+
interface SnackController {
|
|
2107
|
+
id: number;
|
|
2108
|
+
update: (props: SnackPatch) => void;
|
|
2109
|
+
setType: (type: ToastType) => void;
|
|
2110
|
+
setProgress: (progress: number) => void;
|
|
2111
|
+
setBusy: (busy: boolean) => void;
|
|
2112
|
+
success: () => void;
|
|
2113
|
+
error: () => void;
|
|
2114
|
+
warn: () => void;
|
|
2115
|
+
promise: () => void;
|
|
2116
|
+
default: () => void;
|
|
2117
|
+
hide: () => void;
|
|
2118
|
+
}
|
|
2092
2119
|
declare const useSnack: () => {
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2120
|
+
show: (props: SnackProps) => SnackController;
|
|
2121
|
+
hide: (id: number) => void;
|
|
2122
|
+
promise: (props: SnackProps) => SnackController;
|
|
2123
|
+
clearAll: () => void;
|
|
2124
|
+
ok: (props: SnackProps, ok?: SnackBtn) => SnackController;
|
|
2125
|
+
success: (props: SnackProps, ok?: SnackBtn) => SnackController;
|
|
2126
|
+
error: (props: SnackProps, ok?: SnackBtn) => SnackController;
|
|
2127
|
+
confirm: (props: SnackProps, ok?: SnackBtn, cancel?: SnackBtn) => SnackController;
|
|
2128
|
+
warn: (props: SnackProps, ok?: SnackBtn) => SnackController;
|
|
2129
|
+
succes: (props: SnackProps, ok?: SnackBtn) => SnackController;
|
|
2098
2130
|
};
|
|
2099
2131
|
|
|
2100
2132
|
declare const useToast: () => {
|
|
@@ -2129,4 +2161,4 @@ declare const animationTransition: (transition: ValueOf<typeof TRANSITIONS>, sta
|
|
|
2129
2161
|
};
|
|
2130
2162
|
declare const getAnimationTransition: (transition: ValueOf<typeof TRANSITIONS>, to?: boolean, from?: boolean) => dynamic;
|
|
2131
2163
|
|
|
2132
|
-
export { ALERT, AVATAR, Accordion, type AccordionHandler, type AccordionProps, ActionBar, type ActionBarHandler, type ActionBarItem, type ActionBarProps, Alert, type AlertHandler, type AlertProps, type AnimationTransition, 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, Carousel, type CarouselEffect, type CarouselProps, 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, Flex, type FlexProps, 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 LoopMode, MediaPlayer, type MediaPlayerContextType, type MediaPlayerController, type MediaPlayerIcons, type MediaPlayerProps, 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 PaginationController, 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 SliderController, 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 ToolTipController, type ToolTipProps, type TreeItemHandler, type TreeItemProps, type TreeNode, type TreeNodeIcons, TreeView, type TreeViewHandler, type TreeViewProps, type ValidationResult, type ValidationSchema, 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 };
|
|
2164
|
+
export { ALERT, AVATAR, Accordion, type AccordionHandler, type AccordionProps, ActionBar, type ActionBarHandler, type ActionBarItem, type ActionBarProps, Alert, type AlertHandler, type AlertProps, type AnimationTransition, 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, Carousel, type CarouselEffect, type CarouselProps, 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, Flex, type FlexProps, Form, type FormHandler, type FormInputs, type FormProps, type FormValidation, 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 LoopMode, MediaPlayer, type MediaPlayerContextType, type MediaPlayerController, type MediaPlayerIcons, type MediaPlayerProps, 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 PaginationController, 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 SliderController, type SliderProps, type ToastAction as SnackAction, type SnackController, 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 ToolTipController, type ToolTipProps, type TreeItemHandler, type TreeItemProps, type TreeNode, type TreeNodeIcons, TreeView, type TreeViewHandler, type TreeViewProps, type ValidationResult, type ValidationSchema, type Value, type ValueOf, Variant, type WithFormValidation, 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
|
@@ -83,6 +83,8 @@ declare const FORMVALIDATION: {
|
|
|
83
83
|
readonly MatchField: "MATCHFIELD";
|
|
84
84
|
readonly Pattern: "*";
|
|
85
85
|
readonly GreaterThan: "GREATER_THAN";
|
|
86
|
+
readonly NotEmpty: "NOT_EMPTY";
|
|
87
|
+
readonly NotMinusOne: "NOT_MINUS_ONE";
|
|
86
88
|
};
|
|
87
89
|
declare const ALERT: {
|
|
88
90
|
readonly Success: "success";
|
|
@@ -169,6 +171,8 @@ type dynamic = {
|
|
|
169
171
|
};
|
|
170
172
|
type Props<T extends ElementType> = ZuzProps & Omit<ComponentPropsWithoutRef<T>, keyof ZuzProps>;
|
|
171
173
|
type FormInputs = HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;
|
|
174
|
+
type FormValidation = ValueOf<typeof FORMVALIDATION>;
|
|
175
|
+
type WithFormValidation = FormValidation | `${FormValidation}${string}`;
|
|
172
176
|
type AnimationTransition = `back` | `expo` | `sine` | `power` | `circ` | `bounce` | `elastic` | `ease` | `spring` | `liquid`;
|
|
173
177
|
|
|
174
178
|
declare const cssProps: dynamic;
|
|
@@ -221,6 +225,7 @@ interface BoxProps extends Partial<Props<`div`>> {
|
|
|
221
225
|
name?: string;
|
|
222
226
|
ref?: Ref<HTMLDivElement>;
|
|
223
227
|
cols?: boolean;
|
|
228
|
+
with?: WithFormValidation;
|
|
224
229
|
}
|
|
225
230
|
interface parallaxEffectProps {
|
|
226
231
|
lerpFactor?: number;
|
|
@@ -387,12 +392,11 @@ interface AlertHandler {
|
|
|
387
392
|
|
|
388
393
|
declare const Alert: react.ForwardRefExoticComponent<Omit<AlertProps, "ref"> & react.RefAttributes<AlertHandler>>;
|
|
389
394
|
|
|
390
|
-
type FormValidation = ValueOf<typeof FORMVALIDATION>;
|
|
391
395
|
type InputProps = Props<`input`> & {
|
|
392
396
|
ref?: Ref<HTMLInputElement>;
|
|
393
397
|
numeric?: boolean;
|
|
394
398
|
variant?: ValueOf<typeof Variant>;
|
|
395
|
-
with?:
|
|
399
|
+
with?: WithFormValidation;
|
|
396
400
|
/**
|
|
397
401
|
* Triggers when Enter / Return is Pressed
|
|
398
402
|
*/
|
|
@@ -1023,7 +1027,7 @@ interface FormHandler {
|
|
|
1023
1027
|
hideError: () => void;
|
|
1024
1028
|
/** Resets the form to its initial state */
|
|
1025
1029
|
init: () => void;
|
|
1026
|
-
submit: () => void;
|
|
1030
|
+
submit: (more?: dynamic) => void;
|
|
1027
1031
|
}
|
|
1028
1032
|
|
|
1029
1033
|
declare const Form: {
|
|
@@ -1125,6 +1129,7 @@ interface ToastProps {
|
|
|
1125
1129
|
id?: number;
|
|
1126
1130
|
type: ToastType;
|
|
1127
1131
|
icon?: string;
|
|
1132
|
+
busy?: boolean;
|
|
1128
1133
|
title?: string | ReactNode;
|
|
1129
1134
|
message?: string | ReactNode;
|
|
1130
1135
|
duration?: number;
|
|
@@ -1135,6 +1140,8 @@ interface ToastProps {
|
|
|
1135
1140
|
variant?: ValueOf<typeof Variant>;
|
|
1136
1141
|
inBackground?: boolean;
|
|
1137
1142
|
progress?: boolean;
|
|
1143
|
+
progressValue?: number;
|
|
1144
|
+
width?: number | string;
|
|
1138
1145
|
onClose?: (id: number) => void;
|
|
1139
1146
|
onClick?: () => void;
|
|
1140
1147
|
}
|
|
@@ -1386,6 +1393,8 @@ type Option = {
|
|
|
1386
1393
|
value: string | number;
|
|
1387
1394
|
/** Optional flag to disable this specific option. */
|
|
1388
1395
|
disabled?: boolean;
|
|
1396
|
+
/** Special value parameter for categorization or grouping or passing additional metadata. */
|
|
1397
|
+
tag?: string;
|
|
1389
1398
|
};
|
|
1390
1399
|
/**
|
|
1391
1400
|
* Represents an option object with a label and value.
|
|
@@ -1410,7 +1419,7 @@ type SelectProps = Omit<BoxProps, "onChange" | "ref"> & {
|
|
|
1410
1419
|
/**
|
|
1411
1420
|
* Indicates if the select field is required and its validation type.
|
|
1412
1421
|
*/
|
|
1413
|
-
required?:
|
|
1422
|
+
required?: boolean;
|
|
1414
1423
|
/**
|
|
1415
1424
|
* Array of options to be displayed in the select dropdown.
|
|
1416
1425
|
* * @example
|
|
@@ -1845,6 +1854,7 @@ type TextAreaProps = Props<`textarea`> & {
|
|
|
1845
1854
|
variant?: ValueOf<typeof Variant>;
|
|
1846
1855
|
command?: string;
|
|
1847
1856
|
commands?: Command[];
|
|
1857
|
+
with?: WithFormValidation;
|
|
1848
1858
|
cmd?: (value: string, textarea: HTMLTextAreaElement | HTMLInputElement) => void;
|
|
1849
1859
|
renderDropdown?: (props: {
|
|
1850
1860
|
show: boolean;
|
|
@@ -2084,17 +2094,39 @@ interface SnackProps {
|
|
|
2084
2094
|
position?: ToastPosition;
|
|
2085
2095
|
style?: ToastStyle;
|
|
2086
2096
|
actions?: ToastAction[];
|
|
2097
|
+
progress?: boolean;
|
|
2098
|
+
progressValue?: number;
|
|
2099
|
+
width?: number | string;
|
|
2087
2100
|
}
|
|
2088
2101
|
interface SnackBtn {
|
|
2089
2102
|
label?: string;
|
|
2090
2103
|
onClick?: () => void;
|
|
2091
2104
|
}
|
|
2105
|
+
type SnackPatch = Partial<Omit<ToastProps, 'id' | 'onClose'>>;
|
|
2106
|
+
interface SnackController {
|
|
2107
|
+
id: number;
|
|
2108
|
+
update: (props: SnackPatch) => void;
|
|
2109
|
+
setType: (type: ToastType) => void;
|
|
2110
|
+
setProgress: (progress: number) => void;
|
|
2111
|
+
setBusy: (busy: boolean) => void;
|
|
2112
|
+
success: () => void;
|
|
2113
|
+
error: () => void;
|
|
2114
|
+
warn: () => void;
|
|
2115
|
+
promise: () => void;
|
|
2116
|
+
default: () => void;
|
|
2117
|
+
hide: () => void;
|
|
2118
|
+
}
|
|
2092
2119
|
declare const useSnack: () => {
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2120
|
+
show: (props: SnackProps) => SnackController;
|
|
2121
|
+
hide: (id: number) => void;
|
|
2122
|
+
promise: (props: SnackProps) => SnackController;
|
|
2123
|
+
clearAll: () => void;
|
|
2124
|
+
ok: (props: SnackProps, ok?: SnackBtn) => SnackController;
|
|
2125
|
+
success: (props: SnackProps, ok?: SnackBtn) => SnackController;
|
|
2126
|
+
error: (props: SnackProps, ok?: SnackBtn) => SnackController;
|
|
2127
|
+
confirm: (props: SnackProps, ok?: SnackBtn, cancel?: SnackBtn) => SnackController;
|
|
2128
|
+
warn: (props: SnackProps, ok?: SnackBtn) => SnackController;
|
|
2129
|
+
succes: (props: SnackProps, ok?: SnackBtn) => SnackController;
|
|
2098
2130
|
};
|
|
2099
2131
|
|
|
2100
2132
|
declare const useToast: () => {
|
|
@@ -2129,4 +2161,4 @@ declare const animationTransition: (transition: ValueOf<typeof TRANSITIONS>, sta
|
|
|
2129
2161
|
};
|
|
2130
2162
|
declare const getAnimationTransition: (transition: ValueOf<typeof TRANSITIONS>, to?: boolean, from?: boolean) => dynamic;
|
|
2131
2163
|
|
|
2132
|
-
export { ALERT, AVATAR, Accordion, type AccordionHandler, type AccordionProps, ActionBar, type ActionBarHandler, type ActionBarItem, type ActionBarProps, Alert, type AlertHandler, type AlertProps, type AnimationTransition, 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, Carousel, type CarouselEffect, type CarouselProps, 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, Flex, type FlexProps, 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 LoopMode, MediaPlayer, type MediaPlayerContextType, type MediaPlayerController, type MediaPlayerIcons, type MediaPlayerProps, 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 PaginationController, 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 SliderController, 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 ToolTipController, type ToolTipProps, type TreeItemHandler, type TreeItemProps, type TreeNode, type TreeNodeIcons, TreeView, type TreeViewHandler, type TreeViewProps, type ValidationResult, type ValidationSchema, 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 };
|
|
2164
|
+
export { ALERT, AVATAR, Accordion, type AccordionHandler, type AccordionProps, ActionBar, type ActionBarHandler, type ActionBarItem, type ActionBarProps, Alert, type AlertHandler, type AlertProps, type AnimationTransition, 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, Carousel, type CarouselEffect, type CarouselProps, 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, Flex, type FlexProps, Form, type FormHandler, type FormInputs, type FormProps, type FormValidation, 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 LoopMode, MediaPlayer, type MediaPlayerContextType, type MediaPlayerController, type MediaPlayerIcons, type MediaPlayerProps, 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 PaginationController, 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 SliderController, type SliderProps, type ToastAction as SnackAction, type SnackController, 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 ToolTipController, type ToolTipProps, type TreeItemHandler, type TreeItemProps, type TreeNode, type TreeNodeIcons, TreeView, type TreeViewHandler, type TreeViewProps, type ValidationResult, type ValidationSchema, type Value, type ValueOf, Variant, type WithFormValidation, 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 };
|