@admin-layout/tailwind-ui 10.1.1-alpha.8 → 12.0.16-alpha.0
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/lib/components/Button/Button.d.ts +13 -0
- package/lib/components/Button/Button.d.ts.map +1 -0
- package/lib/components/Button/Button.js +50 -0
- package/lib/components/Button/Button.js.map +1 -0
- package/lib/components/DatePicker/DatePicker.d.ts +5 -0
- package/lib/components/DatePicker/DatePicker.d.ts.map +1 -0
- package/lib/components/DatePicker/DatePicker.js +218 -0
- package/lib/components/DatePicker/DatePicker.js.map +1 -0
- package/lib/components/DatePicker/index.d.ts +3 -0
- package/lib/components/DatePicker/index.d.ts.map +1 -0
- package/lib/components/DatePicker/machine.d.ts +3 -0
- package/lib/components/DatePicker/machine.d.ts.map +1 -0
- package/lib/components/DatePicker/machine.js +95 -0
- package/lib/components/DatePicker/machine.js.map +1 -0
- package/lib/components/DatePicker/types.d.ts +34 -0
- package/lib/components/DatePicker/types.d.ts.map +1 -0
- package/lib/components/DatePicker/utils.d.ts +25 -0
- package/lib/components/DatePicker/utils.d.ts.map +1 -0
- package/lib/components/DatePicker/utils.js +28 -0
- package/lib/components/DatePicker/utils.js.map +1 -0
- package/lib/components/ThemeProvider/ThemeProvider.d.ts +14 -0
- package/lib/components/ThemeProvider/ThemeProvider.d.ts.map +1 -0
- package/lib/components/ThemeProvider/ThemeProvider.js +96 -0
- package/lib/components/ThemeProvider/ThemeProvider.js.map +1 -0
- package/lib/components/ThemeProvider/ThemeToggle.d.ts +7 -0
- package/lib/components/ThemeProvider/ThemeToggle.d.ts.map +1 -0
- package/lib/components/ThemeProvider/ThemeToggle.js +50 -0
- package/lib/components/ThemeProvider/ThemeToggle.js.map +1 -0
- package/lib/components/ThemeProvider/index.d.ts +4 -0
- package/lib/components/ThemeProvider/index.d.ts.map +1 -0
- package/lib/components/ThemeProvider/types.d.ts +25 -0
- package/lib/components/ThemeProvider/types.d.ts.map +1 -0
- package/lib/components/index.d.ts +3 -0
- package/lib/components/index.d.ts.map +1 -1
- package/lib/hooks/useTheme.d.ts +2 -0
- package/lib/hooks/useTheme.d.ts.map +1 -0
- package/lib/hooks/useTheme.js +7 -0
- package/lib/hooks/useTheme.js.map +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/shardui/accordion.d.ts +8 -0
- package/lib/shardui/accordion.d.ts.map +1 -0
- package/lib/shardui/accordion.js +40 -0
- package/lib/shardui/accordion.js.map +1 -0
- package/lib/shardui/alert-dialog.d.ts +21 -0
- package/lib/shardui/alert-dialog.d.ts.map +1 -0
- package/lib/shardui/alert-dialog.js +77 -0
- package/lib/shardui/alert-dialog.js.map +1 -0
- package/lib/shardui/alert.d.ts +9 -0
- package/lib/shardui/alert.d.ts.map +1 -0
- package/lib/shardui/alert.js +42 -0
- package/lib/shardui/alert.js.map +1 -0
- package/lib/shardui/aspect-ratio.d.ts +4 -0
- package/lib/shardui/aspect-ratio.d.ts.map +1 -0
- package/lib/shardui/aspect-ratio.js +1 -0
- package/lib/shardui/aspect-ratio.js.map +1 -0
- package/lib/shardui/avatar.d.ts +7 -0
- package/lib/shardui/avatar.d.ts.map +1 -0
- package/lib/shardui/avatar.js +27 -0
- package/lib/shardui/avatar.js.map +1 -0
- package/lib/shardui/badge.d.ts +10 -0
- package/lib/shardui/badge.d.ts.map +1 -0
- package/lib/shardui/badge.js +25 -0
- package/lib/shardui/badge.js.map +1 -0
- package/lib/shardui/breadcrumb.d.ts +20 -0
- package/lib/shardui/breadcrumb.d.ts.map +1 -0
- package/lib/shardui/breadcrumb.js +79 -0
- package/lib/shardui/breadcrumb.js.map +1 -0
- package/lib/shardui/button.d.ts +12 -0
- package/lib/shardui/button.d.ts.map +1 -0
- package/lib/shardui/button.js +41 -0
- package/lib/shardui/button.js.map +1 -0
- package/lib/shardui/calendar.d.ts +9 -0
- package/lib/shardui/calendar.d.ts.map +1 -0
- package/lib/shardui/calendar.js +53 -0
- package/lib/shardui/calendar.js.map +1 -0
- package/lib/shardui/card.d.ts +9 -0
- package/lib/shardui/card.d.ts.map +1 -0
- package/lib/shardui/card.js +54 -0
- package/lib/shardui/card.js.map +1 -0
- package/lib/shardui/carousel.d.ts +19 -0
- package/lib/shardui/carousel.d.ts.map +1 -0
- package/lib/shardui/carousel.js +176 -0
- package/lib/shardui/carousel.js.map +1 -0
- package/lib/shardui/chart.d.ts +63 -0
- package/lib/shardui/chart.d.ts.map +1 -0
- package/lib/shardui/chart.js +197 -0
- package/lib/shardui/chart.js.map +1 -0
- package/lib/shardui/checkbox.d.ts +5 -0
- package/lib/shardui/checkbox.d.ts.map +1 -0
- package/lib/shardui/checkbox.js +15 -0
- package/lib/shardui/checkbox.js.map +1 -0
- package/lib/shardui/collapsible.d.ts +6 -0
- package/lib/shardui/collapsible.d.ts.map +1 -0
- package/lib/shardui/collapsible.js +3 -0
- package/lib/shardui/collapsible.js.map +1 -0
- package/lib/shardui/command.d.ts +83 -0
- package/lib/shardui/command.d.ts.map +1 -0
- package/lib/shardui/command.js +91 -0
- package/lib/shardui/command.js.map +1 -0
- package/lib/shardui/context-menu.d.ts +28 -0
- package/lib/shardui/context-menu.d.ts.map +1 -0
- package/lib/shardui/context-menu.js +117 -0
- package/lib/shardui/context-menu.js.map +1 -0
- package/lib/shardui/dialog.d.ts +20 -0
- package/lib/shardui/dialog.d.ts.map +1 -0
- package/lib/shardui/dialog.js +67 -0
- package/lib/shardui/dialog.js.map +1 -0
- package/lib/shardui/drawer.d.ts +23 -0
- package/lib/shardui/drawer.d.ts.map +1 -0
- package/lib/shardui/drawer.js +69 -0
- package/lib/shardui/drawer.js.map +1 -0
- package/lib/shardui/dropdown-menu.d.ts +28 -0
- package/lib/shardui/dropdown-menu.d.ts.map +1 -0
- package/lib/shardui/dropdown-menu.js +119 -0
- package/lib/shardui/dropdown-menu.js.map +1 -0
- package/lib/shardui/form.d.ts +24 -0
- package/lib/shardui/form.d.ts.map +1 -0
- package/lib/shardui/form.js +126 -0
- package/lib/shardui/form.js.map +1 -0
- package/lib/shardui/hover-card.d.ts +7 -0
- package/lib/shardui/hover-card.d.ts.map +1 -0
- package/lib/shardui/hover-card.js +15 -0
- package/lib/shardui/hover-card.js.map +1 -0
- package/lib/shardui/index.d.ts +50 -0
- package/lib/shardui/index.d.ts.map +1 -0
- package/lib/shardui/input-otp.d.ts +35 -0
- package/lib/shardui/input-otp.d.ts.map +1 -0
- package/lib/shardui/input-otp.js +53 -0
- package/lib/shardui/input-otp.js.map +1 -0
- package/lib/shardui/input.d.ts +4 -0
- package/lib/shardui/input.d.ts.map +1 -0
- package/lib/shardui/input.js +13 -0
- package/lib/shardui/input.js.map +1 -0
- package/lib/shardui/label.d.ts +6 -0
- package/lib/shardui/label.d.ts.map +1 -0
- package/lib/shardui/label.js +10 -0
- package/lib/shardui/label.js.map +1 -0
- package/lib/shardui/menubar.d.ts +34 -0
- package/lib/shardui/menubar.d.ts.map +1 -0
- package/lib/shardui/menubar.js +140 -0
- package/lib/shardui/menubar.js.map +1 -0
- package/lib/shardui/navigation-menu.d.ts +13 -0
- package/lib/shardui/navigation-menu.d.ts.map +1 -0
- package/lib/shardui/navigation-menu.js +70 -0
- package/lib/shardui/navigation-menu.js.map +1 -0
- package/lib/shardui/pagination.d.ts +29 -0
- package/lib/shardui/pagination.d.ts.map +1 -0
- package/lib/shardui/pagination.js +87 -0
- package/lib/shardui/pagination.js.map +1 -0
- package/lib/shardui/popover.d.ts +7 -0
- package/lib/shardui/popover.d.ts.map +1 -0
- package/lib/shardui/popover.js +17 -0
- package/lib/shardui/popover.js.map +1 -0
- package/lib/shardui/progress.d.ts +5 -0
- package/lib/shardui/progress.d.ts.map +1 -0
- package/lib/shardui/progress.js +16 -0
- package/lib/shardui/progress.js.map +1 -0
- package/lib/shardui/radio-group.d.ts +6 -0
- package/lib/shardui/radio-group.d.ts.map +1 -0
- package/lib/shardui/radio-group.js +28 -0
- package/lib/shardui/radio-group.js.map +1 -0
- package/lib/shardui/resizable.d.ts +24 -0
- package/lib/shardui/resizable.d.ts.map +1 -0
- package/lib/shardui/resizable.js +22 -0
- package/lib/shardui/resizable.js.map +1 -0
- package/lib/shardui/scroll-area.d.ts +6 -0
- package/lib/shardui/scroll-area.d.ts.map +1 -0
- package/lib/shardui/scroll-area.js +28 -0
- package/lib/shardui/scroll-area.js.map +1 -0
- package/lib/shardui/select.d.ts +14 -0
- package/lib/shardui/select.d.ts.map +1 -0
- package/lib/shardui/select.js +99 -0
- package/lib/shardui/select.js.map +1 -0
- package/lib/shardui/separator.d.ts +5 -0
- package/lib/shardui/separator.d.ts.map +1 -0
- package/lib/shardui/separator.js +13 -0
- package/lib/shardui/separator.js.map +1 -0
- package/lib/shardui/sheet.d.ts +26 -0
- package/lib/shardui/sheet.d.ts.map +1 -0
- package/lib/shardui/sheet.js +84 -0
- package/lib/shardui/sheet.js.map +1 -0
- package/lib/shardui/sidebar.d.ts +67 -0
- package/lib/shardui/sidebar.d.ts.map +1 -0
- package/lib/shardui/sidebar.js +490 -0
- package/lib/shardui/sidebar.js.map +1 -0
- package/lib/shardui/skeleton.d.ts +3 -0
- package/lib/shardui/skeleton.d.ts.map +1 -0
- package/lib/shardui/skeleton.js +9 -0
- package/lib/shardui/skeleton.js.map +1 -0
- package/lib/shardui/slider.d.ts +5 -0
- package/lib/shardui/slider.d.ts.map +1 -0
- package/lib/shardui/slider.js +17 -0
- package/lib/shardui/slider.js.map +1 -0
- package/lib/shardui/sonner.d.ts +5 -0
- package/lib/shardui/sonner.d.ts.map +1 -0
- package/lib/shardui/sonner.js +20 -0
- package/lib/shardui/sonner.js.map +1 -0
- package/lib/shardui/switch.d.ts +5 -0
- package/lib/shardui/switch.d.ts.map +1 -0
- package/lib/shardui/switch.js +12 -0
- package/lib/shardui/switch.js.map +1 -0
- package/lib/shardui/table.d.ts +11 -0
- package/lib/shardui/table.d.ts.map +1 -0
- package/lib/shardui/table.js +75 -0
- package/lib/shardui/table.js.map +1 -0
- package/lib/shardui/tabs.d.ts +8 -0
- package/lib/shardui/tabs.d.ts.map +1 -0
- package/lib/shardui/tabs.js +28 -0
- package/lib/shardui/tabs.js.map +1 -0
- package/lib/shardui/textarea.d.ts +6 -0
- package/lib/shardui/textarea.d.ts.map +1 -0
- package/lib/shardui/textarea.js +11 -0
- package/lib/shardui/textarea.js.map +1 -0
- package/lib/shardui/toast.d.ts +16 -0
- package/lib/shardui/toast.d.ts.map +1 -0
- package/lib/shardui/toast.js +75 -0
- package/lib/shardui/toast.js.map +1 -0
- package/lib/shardui/toaster.d.ts +2 -0
- package/lib/shardui/toaster.d.ts.map +1 -0
- package/lib/shardui/toaster.js +26 -0
- package/lib/shardui/toaster.js.map +1 -0
- package/lib/shardui/toggle-group.d.ts +13 -0
- package/lib/shardui/toggle-group.d.ts.map +1 -0
- package/lib/shardui/toggle-group.js +42 -0
- package/lib/shardui/toggle-group.js.map +1 -0
- package/lib/shardui/toggle.d.ts +13 -0
- package/lib/shardui/toggle.d.ts.map +1 -0
- package/lib/shardui/toggle.js +32 -0
- package/lib/shardui/toggle.js.map +1 -0
- package/lib/shardui/tooltip.d.ts +8 -0
- package/lib/shardui/tooltip.d.ts.map +1 -0
- package/lib/shardui/tooltip.js +14 -0
- package/lib/shardui/tooltip.js.map +1 -0
- package/lib/shardui/use-toast.d.ts +3 -0
- package/lib/shardui/use-toast.d.ts.map +1 -0
- package/lib/utils/hooks/use-mobile.d.ts +2 -0
- package/lib/utils/hooks/use-mobile.d.ts.map +1 -0
- package/lib/utils/hooks/use-mobile.js +14 -0
- package/lib/utils/hooks/use-mobile.js.map +1 -0
- package/lib/utils/hooks/use-toast.d.ts +45 -0
- package/lib/utils/hooks/use-toast.d.ts.map +1 -0
- package/lib/utils/hooks/use-toast.js +133 -0
- package/lib/utils/hooks/use-toast.js.map +1 -0
- package/lib/utils/index.d.ts +7 -1
- package/lib/utils/index.d.ts.map +1 -1
- package/lib/utils/isBrowser/index.js +1 -0
- package/lib/utils/isBrowser/index.js.map +1 -0
- package/lib/utils/util.d.ts +3 -0
- package/lib/utils/util.d.ts.map +1 -0
- package/lib/utils/util.js +3 -0
- package/lib/utils/util.js.map +1 -0
- package/package.json +7 -3
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import*as React from'react';const TOAST_LIMIT = 1;
|
|
2
|
+
const TOAST_REMOVE_DELAY = 1000000;
|
|
3
|
+
let count = 0;
|
|
4
|
+
function genId() {
|
|
5
|
+
count = (count + 1) % Number.MAX_SAFE_INTEGER;
|
|
6
|
+
return count.toString();
|
|
7
|
+
}
|
|
8
|
+
const toastTimeouts = new Map();
|
|
9
|
+
const addToRemoveQueue = toastId => {
|
|
10
|
+
if (toastTimeouts.has(toastId)) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
const timeout = setTimeout(() => {
|
|
14
|
+
toastTimeouts.delete(toastId);
|
|
15
|
+
dispatch({
|
|
16
|
+
type: 'REMOVE_TOAST',
|
|
17
|
+
toastId: toastId
|
|
18
|
+
});
|
|
19
|
+
}, TOAST_REMOVE_DELAY);
|
|
20
|
+
toastTimeouts.set(toastId, timeout);
|
|
21
|
+
};
|
|
22
|
+
const reducer = (state, action) => {
|
|
23
|
+
switch (action.type) {
|
|
24
|
+
case 'ADD_TOAST':
|
|
25
|
+
return {
|
|
26
|
+
...state,
|
|
27
|
+
toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT)
|
|
28
|
+
};
|
|
29
|
+
case 'UPDATE_TOAST':
|
|
30
|
+
return {
|
|
31
|
+
...state,
|
|
32
|
+
toasts: state.toasts.map(t => t.id === action.toast.id ? {
|
|
33
|
+
...t,
|
|
34
|
+
...action.toast
|
|
35
|
+
} : t)
|
|
36
|
+
};
|
|
37
|
+
case 'DISMISS_TOAST':
|
|
38
|
+
{
|
|
39
|
+
const {
|
|
40
|
+
toastId
|
|
41
|
+
} = action;
|
|
42
|
+
// ! Side effects ! - This could be extracted into a dismissToast() action,
|
|
43
|
+
// but I'll keep it here for simplicity
|
|
44
|
+
if (toastId) {
|
|
45
|
+
addToRemoveQueue(toastId);
|
|
46
|
+
} else {
|
|
47
|
+
state.toasts.forEach(toast => {
|
|
48
|
+
addToRemoveQueue(toast.id);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
...state,
|
|
53
|
+
toasts: state.toasts.map(t => t.id === toastId || toastId === undefined ? {
|
|
54
|
+
...t,
|
|
55
|
+
open: false
|
|
56
|
+
} : t)
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
case 'REMOVE_TOAST':
|
|
60
|
+
if (action.toastId === undefined) {
|
|
61
|
+
return {
|
|
62
|
+
...state,
|
|
63
|
+
toasts: []
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
...state,
|
|
68
|
+
toasts: state.toasts.filter(t => t.id !== action.toastId)
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
const listeners = [];
|
|
73
|
+
let memoryState = {
|
|
74
|
+
toasts: []
|
|
75
|
+
};
|
|
76
|
+
function dispatch(action) {
|
|
77
|
+
memoryState = reducer(memoryState, action);
|
|
78
|
+
listeners.forEach(listener => {
|
|
79
|
+
listener(memoryState);
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
function toast({
|
|
83
|
+
...props
|
|
84
|
+
}) {
|
|
85
|
+
const id = genId();
|
|
86
|
+
const update = props => dispatch({
|
|
87
|
+
type: 'UPDATE_TOAST',
|
|
88
|
+
toast: {
|
|
89
|
+
...props,
|
|
90
|
+
id
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
const dismiss = () => dispatch({
|
|
94
|
+
type: 'DISMISS_TOAST',
|
|
95
|
+
toastId: id
|
|
96
|
+
});
|
|
97
|
+
dispatch({
|
|
98
|
+
type: 'ADD_TOAST',
|
|
99
|
+
toast: {
|
|
100
|
+
...props,
|
|
101
|
+
id,
|
|
102
|
+
open: true,
|
|
103
|
+
onOpenChange: open => {
|
|
104
|
+
if (!open) dismiss();
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
return {
|
|
109
|
+
id: id,
|
|
110
|
+
dismiss,
|
|
111
|
+
update
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
function useToast() {
|
|
115
|
+
const [state, setState] = React.useState(memoryState);
|
|
116
|
+
React.useEffect(() => {
|
|
117
|
+
listeners.push(setState);
|
|
118
|
+
return () => {
|
|
119
|
+
const index = listeners.indexOf(setState);
|
|
120
|
+
if (index > -1) {
|
|
121
|
+
listeners.splice(index, 1);
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
}, [state]);
|
|
125
|
+
return {
|
|
126
|
+
...state,
|
|
127
|
+
toast,
|
|
128
|
+
dismiss: toastId => dispatch({
|
|
129
|
+
type: 'DISMISS_TOAST',
|
|
130
|
+
toastId
|
|
131
|
+
})
|
|
132
|
+
};
|
|
133
|
+
}export{reducer,toast,useToast};//# sourceMappingURL=use-toast.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-toast.js","sources":["../../../src/utils/hooks/use-toast.ts"],"sourcesContent":[null],"names":[],"mappings":"4BAEA,MAAO,WAAyB,GAAA,CAAA;AAKhC,MAAK,kBAAe,GAAA,OAAa;;;;;;AAqBjC,MAAe,aAAU,GAAA,IAAA,GAAA,EAAA;AAEzB,sBACM,GAAA,OAAA,IAAA;AACI,EAAA,IAAA,aAAM,CAAU,GAAC,CAAA,OAAA,CAAW,EAAE;IAC9B;;AAGA,EAAA,MAAI,OAAE,GAAA,UAAW,CAAA,MAAc;AAC/B,IAAA,aAAO,CAAO,MAAC,CAAA,OAAa,CAAC;IAEjC,QAAA,CAAA;AACI,MAAA,IAAM,EAAA,cAAW;AACjB,MAAA,OAAU,EAAA;KAEd,CAAA;AACI,GAAA,EAAA,kBAAiB,CAAA;AACjB,EAAA,aAAU,CAAA,GAAA,CAAA,OAAa,EAAA,OAAM,CAAA;CAChC;AAEQ,MAAA,OAAA,GAAA,CAAA,KAAA,EAAA,MAAA,KAAA;UACL,MAAc,CAAA,IAAA;AACvB,IAAA,KAAA,WAAA;AAoBD,MAAO,OAAA;AAgEP,QAAK,QAAY;AAEjB,QAAA,MAAA,EAAA,CAAS,MAAM,CAAA,KAAU,EAAA,GAAA,KAAS,CAAA,MAAA,CAAA,CAAA,KAAA,CAAA,CAAA,EAAA,WAAA;;;;AA2BjC,QAAA,GAAA,KAAA;AAED,QAAA,MAAA,EAAA,KAAiB,CAAA,MAAA,CAAA,GAAA,CAAA,CAAA,IAAA,CAAA,CAAA,EAAA,KAAA,MAAA,CAAA,KAAA,CAAA,EAAA,GAAA;;;AApHL,SAAA,GAAA,CAAA;AAsIX,OAAA;AAED,IAAA,KAAS,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/utils/index.d.ts
CHANGED
|
@@ -5,6 +5,10 @@ import isNil from './isNil';
|
|
|
5
5
|
import isDropdownValueType from './isDropdownValueType';
|
|
6
6
|
import omitUndefined from './omitUndefined';
|
|
7
7
|
import omitUndefinedAndEmptyArr from './omitUndefinedAndEmptyArr';
|
|
8
|
+
/**
|
|
9
|
+
* utils
|
|
10
|
+
*/
|
|
11
|
+
export * from './util';
|
|
8
12
|
/**
|
|
9
13
|
* hooks
|
|
10
14
|
*/
|
|
@@ -12,10 +16,12 @@ import useDebounceFn from './hooks/useDebounceFn';
|
|
|
12
16
|
import usePrevious from './hooks/usePrevious';
|
|
13
17
|
import useDeepCompareEffect from './hooks/useDeepCompareEffect';
|
|
14
18
|
import useDocumentTitle from './hooks/useDocumentTitle';
|
|
19
|
+
import { useToast, toast } from './hooks/use-toast';
|
|
20
|
+
import { useIsMobile } from './hooks/use-mobile';
|
|
15
21
|
/**
|
|
16
22
|
* type
|
|
17
23
|
*/
|
|
18
24
|
import { ProSchema, ProSchemaValueEnumMap, ProSchemaValueEnumObj, ProSchemaComponentTypes, ProCoreActionType, SearchTransformKeyFn } from './typing';
|
|
19
25
|
export type { ProSchema, ProCoreActionType, ProSchemaComponentTypes, ProSchemaValueEnumMap, ProSchemaValueEnumObj, SearchTransformKeyFn, };
|
|
20
|
-
export { useDocumentTitle, isImg, isNil, isDropdownValueType, omitUndefined, omitUndefinedAndEmptyArr, isUrl, isBrowser, usePrevious, useDebounceFn, useDeepCompareEffect, };
|
|
26
|
+
export { useDocumentTitle, isImg, isNil, isDropdownValueType, omitUndefined, omitUndefinedAndEmptyArr, isUrl, isBrowser, usePrevious, useDebounceFn, useDeepCompareEffect, useToast, toast, useIsMobile, };
|
|
21
27
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/utils/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AACxD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,wBAAwB,MAAM,4BAA4B,CAAC;AAElE;;GAEG;AACH,OAAO,aAAa,MAAM,uBAAuB,CAAC;AAClD,OAAO,WAAW,MAAM,qBAAqB,CAAC;AAC9C,OAAO,oBAAoB,MAAM,8BAA8B,CAAC;AAChE,OAAO,gBAAgB,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AACxD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,wBAAwB,MAAM,4BAA4B,CAAC;AAElE;;GAEG;AACH,cAAc,QAAQ,CAAC;AAEvB;;GAEG;AACH,OAAO,aAAa,MAAM,uBAAuB,CAAC;AAClD,OAAO,WAAW,MAAM,qBAAqB,CAAC;AAC9C,OAAO,oBAAoB,MAAM,8BAA8B,CAAC;AAChE,OAAO,gBAAgB,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD;;GAEG;AACH,OAAO,EACH,SAAS,EACT,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACvB,iBAAiB,EACjB,oBAAoB,EACvB,MAAM,UAAU,CAAC;AAElB,YAAY,EACR,SAAS,EACT,iBAAiB,EACjB,uBAAuB,EACvB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,GACvB,CAAC;AAEF,OAAO,EACH,gBAAgB,EAChB,KAAK,EACL,KAAK,EACL,mBAAmB,EACnB,aAAa,EACb,wBAAwB,EACxB,KAAK,EACL,SAAS,EACT,WAAW,EACX,aAAa,EACb,oBAAoB,EACpB,QAAQ,EACR,KAAK,EACL,WAAW,GACd,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
typeof process !== 'undefined' && process.versions != null && process.versions.node != null;//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/utils/isBrowser/index.ts"],"sourcesContent":[null],"names":[],"mappings":"AAEe,OAAA,OAAA,KAAA,WAKb,IAAA,OAAA,CAAA,QAAA,IAAA,IAAA,IAAA,OAAA,CAAA,QAAA,CAAA,IAAA,IAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../src/utils/util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,MAAM,CAAC;AAG7C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@admin-layout/tailwind-ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.16-alpha.0",
|
|
4
4
|
"description": "Sample core for higher packages to depend on",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
7
7
|
"type": "module",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": "./lib/index.js",
|
|
10
|
+
"./shardui": "./lib/shardui/*"
|
|
11
|
+
},
|
|
8
12
|
"main": "lib/index.js",
|
|
9
13
|
"module": "lib/index.js",
|
|
10
14
|
"typings": "lib/index.d.ts",
|
|
@@ -21,7 +25,7 @@
|
|
|
21
25
|
"watch": "npm run build:lib:watch"
|
|
22
26
|
},
|
|
23
27
|
"dependencies": {
|
|
24
|
-
"@admin-layout/client": "
|
|
28
|
+
"@admin-layout/client": "12.0.16-alpha.0"
|
|
25
29
|
},
|
|
26
30
|
"peerDependencies": {
|
|
27
31
|
"history": "*",
|
|
@@ -34,5 +38,5 @@
|
|
|
34
38
|
"typescript": {
|
|
35
39
|
"definition": "lib/index.d.ts"
|
|
36
40
|
},
|
|
37
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "13b6399435ba738671b6feea9adf84a12c256d69"
|
|
38
42
|
}
|