@overdoser/react-toolkit 0.20.0 → 0.21.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/AGENTS.md +1 -1
- package/CHANGELOG.md +14 -0
- package/components/Accordion/Accordion.js +160 -177
- package/components/Accordion/Accordion.module.js +20 -0
- package/components/ActionButton/ActionButton.js +155 -209
- package/components/ActionButton/ActionButton.module.js +25 -0
- package/components/ActionButton/CopyButton.js +52 -64
- package/components/Alert/Alert.js +92 -95
- package/components/Alert/Alert.module.js +18 -0
- package/components/Avatar/Avatar.js +44 -55
- package/components/Avatar/Avatar.module.js +23 -0
- package/components/Badge/Badge.js +16 -38
- package/components/Badge/Badge.module.js +17 -0
- package/components/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/components/Breadcrumbs/Breadcrumbs.js +52 -48
- package/components/Breadcrumbs/Breadcrumbs.module.js +10 -0
- package/components/Button/Button.js +35 -57
- package/components/Button/Button.module.js +25 -0
- package/components/Card/Card.js +94 -131
- package/components/Card/Card.module.js +35 -0
- package/components/Chart/AreaChart.d.ts +1 -1
- package/components/Chart/AreaChart.js +248 -249
- package/components/Chart/Axis.d.ts +2 -2
- package/components/Chart/Axis.js +34 -43
- package/components/Chart/BarChart.d.ts +1 -1
- package/components/Chart/BarChart.js +307 -348
- package/components/Chart/Chart.module.js +32 -0
- package/components/Chart/ChartContainer.js +33 -41
- package/components/Chart/ChartLegend.d.ts +1 -1
- package/components/Chart/ChartLegend.js +31 -30
- package/components/Chart/ChartTooltip.d.ts +1 -1
- package/components/Chart/ChartTooltip.js +46 -41
- package/components/Chart/LineChart.d.ts +1 -1
- package/components/Chart/LineChart.js +220 -232
- package/components/Chart/PieChart.d.ts +1 -1
- package/components/Chart/PieChart.js +224 -240
- package/components/Chart/RadarChart.d.ts +1 -1
- package/components/Chart/RadarChart.js +166 -215
- package/components/Chart/Sparkline.js +73 -68
- package/components/Chart/TradingChart.d.ts +1 -1
- package/components/Chart/TradingChart.js +804 -701
- package/components/Chart/scales.js +28 -35
- package/components/Chart/trading/indicators.js +61 -62
- package/components/Chart/trading/period.js +46 -68
- package/components/Chart/useChartDimensions.js +30 -22
- package/components/Chip/Chip.js +98 -141
- package/components/Chip/Chip.module.js +32 -0
- package/components/CodeBlock/CodeBlock.js +111 -119
- package/components/CodeBlock/CodeBlock.module.js +23 -0
- package/components/CommandPalette/CommandPalette.js +387 -392
- package/components/CommandPalette/CommandPalette.module.js +28 -0
- package/components/ConfirmDialog/ConfirmDialog.d.ts +1 -1
- package/components/ConfirmDialog/ConfirmDialog.js +184 -199
- package/components/ConfirmDialog/ConfirmDialog.module.js +12 -0
- package/components/Divider/Divider.js +25 -36
- package/components/Divider/Divider.module.js +17 -0
- package/components/Draggable/Draggable.d.ts +1 -1
- package/components/Draggable/Draggable.js +157 -164
- package/components/Draggable/Draggable.module.js +10 -0
- package/components/Drawer/Drawer.js +104 -126
- package/components/Drawer/Drawer.module.js +66 -0
- package/components/Dropdown/Dropdown.js +175 -234
- package/components/Dropdown/Dropdown.module.js +29 -0
- package/components/Dropdown/DropdownItem.js +55 -58
- package/components/Dropdown/DropdownLabel.js +14 -11
- package/components/Dropdown/DropdownSeparator.js +12 -10
- package/components/Dropdown/dropdownContext.js +4 -5
- package/components/Dropdown/useContextMenu.js +27 -17
- package/components/Dropzone/Dropzone.js +99 -105
- package/components/Dropzone/Dropzone.module.js +12 -0
- package/components/EmptyState/EmptyState.js +58 -55
- package/components/EmptyState/EmptyState.module.js +14 -0
- package/components/Form/Form.d.ts +1 -1
- package/components/Form/Form.js +32 -35
- package/components/Form/Form.module.js +16 -0
- package/components/Form/FormField.d.ts +1 -1
- package/components/Form/FormField.js +71 -75
- package/components/Form/FormRow.d.ts +1 -1
- package/components/Form/FormRow.js +11 -8
- package/components/Form/formFieldDefaults.js +4 -5
- package/components/ImageViewer/ImageViewer.js +312 -201
- package/components/ImageViewer/ImageViewer.module.js +26 -0
- package/components/ImageViewer/useZoomPan.js +206 -137
- package/components/Kbd/Kbd.js +25 -22
- package/components/Kbd/Kbd.module.js +10 -0
- package/components/KeyValueList/KeyValueList.js +119 -123
- package/components/KeyValueList/KeyValueList.module.js +23 -0
- package/components/Link/Link.js +45 -59
- package/components/Link/Link.module.js +10 -0
- package/components/List/List.js +22 -46
- package/components/List/List.module.js +12 -0
- package/components/Loader/Loader.js +152 -182
- package/components/Loader/Loader.module.js +40 -0
- package/components/Modal/Modal.js +93 -105
- package/components/Modal/Modal.module.js +18 -0
- package/components/PageHeader/PageHeader.js +78 -72
- package/components/PageHeader/PageHeader.module.js +23 -0
- package/components/Pagination/Pagination.js +63 -84
- package/components/Pagination/Pagination.module.js +13 -0
- package/components/Pagination/paginationRange.js +15 -22
- package/components/Popover/Popover.js +110 -134
- package/components/Popover/Popover.module.js +12 -0
- package/components/ProgressBar/ProgressBar.d.ts +15 -1
- package/components/ProgressBar/ProgressBar.js +57 -90
- package/components/ProgressBar/ProgressBar.module.js +29 -0
- package/components/RelativeTime/RelativeTime.js +36 -43
- package/components/RelativeTime/RelativeTime.module.js +3 -0
- package/components/SegmentedControl/SegmentedControl.js +94 -130
- package/components/SegmentedControl/SegmentedControl.module.js +21 -0
- package/components/Skeleton/Skeleton.js +36 -50
- package/components/Skeleton/Skeleton.module.js +15 -0
- package/components/Spinner/Spinner.js +25 -25
- package/components/Spinner/Spinner.module.js +12 -0
- package/components/SplitButton/SplitButton.js +149 -196
- package/components/SplitButton/SplitButton.module.js +31 -0
- package/components/SplitPane/SplitPane.js +134 -170
- package/components/SplitPane/SplitPane.module.js +14 -0
- package/components/StatCard/StatCard.js +132 -125
- package/components/StatCard/StatCard.module.js +42 -0
- package/components/StatusDot/StatusDot.js +28 -39
- package/components/StatusDot/StatusDot.module.js +18 -0
- package/components/Table/Table.d.ts +1 -1
- package/components/Table/Table.js +381 -451
- package/components/Table/Table.module.js +42 -0
- package/components/Table/useTableSort.js +51 -42
- package/components/Tabs/Tabs.js +109 -161
- package/components/Tabs/Tabs.module.js +28 -0
- package/components/ThemeToggle/ThemeToggle.js +122 -98
- package/components/ThemeToggle/ThemeToggle.module.js +13 -0
- package/components/Timeline/GanttTimeline.js +357 -318
- package/components/Timeline/GanttTimeline.module.js +29 -0
- package/components/Timeline/HistoryTimeline.js +486 -450
- package/components/Timeline/HistoryTimeline.module.js +31 -0
- package/components/Timeline/Timeline.module.js +76 -0
- package/components/Timeline/TimelineShared.d.ts +7 -7
- package/components/Timeline/TimelineShared.js +288 -279
- package/components/Timeline/TraceEventDetails.d.ts +3 -3
- package/components/Timeline/TraceEventDetails.js +245 -178
- package/components/Timeline/TraceTimeline.js +823 -783
- package/components/Timeline/TraceTimeline.module.js +98 -0
- package/components/Timeline/historyLayout.js +336 -263
- package/components/Timeline/timelineCore.js +208 -183
- package/components/Timeline/traceEvent.js +59 -61
- package/components/Timeline/traceLayout.js +101 -90
- package/components/Timeline/useTimeline.js +76 -79
- package/components/Timer/Timer.js +190 -156
- package/components/Timer/Timer.module.js +29 -0
- package/components/Toast/Toast.d.ts +1 -1
- package/components/Toast/Toast.js +128 -128
- package/components/Toast/Toast.module.js +37 -0
- package/components/Toast/toastStore.js +58 -62
- package/components/ToggleIconButton/ToggleIconButton.js +35 -57
- package/components/ToggleIconButton/ToggleIconButton.module.js +15 -0
- package/components/Tooltip/Tooltip.d.ts +1 -1
- package/components/Tooltip/Tooltip.js +76 -85
- package/components/Tooltip/Tooltip.module.js +17 -0
- package/components/Typography/Typography.js +11 -36
- package/components/Typography/Typography.module.js +30 -0
- package/components/inputs/Checkbox/Checkbox.js +27 -51
- package/components/inputs/Checkbox/Checkbox.module.js +10 -0
- package/components/inputs/Checkbox/CheckboxGroup.js +53 -111
- package/components/inputs/Checkbox/CheckboxGroup.module.js +17 -0
- package/components/inputs/DatePicker/CalendarPanel.d.ts +1 -1
- package/components/inputs/DatePicker/CalendarPanel.js +263 -286
- package/components/inputs/DatePicker/CalendarPanel.module.js +23 -0
- package/components/inputs/DatePicker/DatePicker.js +115 -142
- package/components/inputs/DatePicker/DatePicker.module.js +14 -0
- package/components/inputs/DatePicker/dateUtils.js +32 -41
- package/components/inputs/DateTimePicker/DateTimePicker.js +226 -232
- package/components/inputs/DateTimePicker/DateTimePicker.module.js +20 -0
- package/components/inputs/DateTimePicker/DateTimeSegments.js +273 -252
- package/components/inputs/DateTimePicker/TimeField.d.ts +1 -1
- package/components/inputs/DateTimePicker/TimeField.js +131 -132
- package/components/inputs/DateTimePicker/timeZoneUtils.js +95 -92
- package/components/inputs/Input/Input.js +98 -109
- package/components/inputs/Input/Input.module.js +15 -0
- package/components/inputs/NumberInput/NumberInput.js +112 -132
- package/components/inputs/NumberInput/NumberInput.module.js +14 -0
- package/components/inputs/Radio/Radio.js +50 -73
- package/components/inputs/Radio/Radio.module.js +9 -0
- package/components/inputs/SearchInput/SearchInput.js +98 -115
- package/components/inputs/SearchInput/SearchInput.module.js +8 -0
- package/components/inputs/Select/Select.js +555 -682
- package/components/inputs/Select/Select.module.js +38 -0
- package/components/inputs/Slider/Slider.js +97 -128
- package/components/inputs/Slider/Slider.module.js +9 -0
- package/components/inputs/Switch/Switch.js +11 -8
- package/components/inputs/Textarea/Textarea.js +42 -58
- package/components/inputs/Textarea/Textarea.module.js +14 -0
- package/hooks/useClickOutside.js +17 -14
- package/hooks/useDebouncedValue.js +13 -14
- package/hooks/useElementSize.js +27 -22
- package/hooks/useEscapeLayer.js +28 -29
- package/hooks/useFocusTrap.js +27 -38
- package/hooks/useKeyboard.js +76 -64
- package/hooks/useMediaQuery.js +10 -15
- package/hooks/useNow.js +28 -33
- package/hooks/usePersistedState.js +98 -94
- package/hooks/usePortalPosition.js +25 -19
- package/hooks/useResizable.js +106 -104
- package/hooks/useTheme.js +28 -23
- package/index.css +2 -1
- package/index.js +97 -215
- package/index.layered.css +2 -3
- package/llms.txt +3 -0
- package/manifest.json +8 -0
- package/package.json +1 -1
- package/utils/formatBytes.js +29 -13
- package/utils/themeScript.js +6 -8
- package/utils/timeAgo.js +59 -32
- package/components/Accordion/Accordion.module.scss.js +0 -36
- package/components/ActionButton/ActionButton.module.scss.js +0 -47
- package/components/Alert/Alert.module.scss.js +0 -33
- package/components/Avatar/Avatar.module.scss.js +0 -43
- package/components/Badge/Badge.module.scss.js +0 -31
- package/components/Breadcrumbs/Breadcrumbs.module.scss.js +0 -17
- package/components/Button/Button.module.scss.js +0 -47
- package/components/Card/Card.module.scss.js +0 -60
- package/components/Chart/Chart.module.scss.js +0 -61
- package/components/Chip/Chip.module.scss.js +0 -59
- package/components/CodeBlock/CodeBlock.module.scss.js +0 -43
- package/components/CommandPalette/CommandPalette.module.scss.js +0 -49
- package/components/ConfirmDialog/ConfirmDialog.module.scss.js +0 -21
- package/components/Divider/Divider.module.scss.js +0 -31
- package/components/Draggable/Draggable.module.scss.js +0 -17
- package/components/Drawer/Drawer.module.scss.js +0 -119
- package/components/Dropdown/Dropdown.module.scss.js +0 -53
- package/components/Dropzone/Dropzone.module.scss.js +0 -21
- package/components/EmptyState/EmptyState.module.scss.js +0 -25
- package/components/Form/Form.module.scss.js +0 -29
- package/components/ImageViewer/ImageViewer.module.scss.js +0 -47
- package/components/Kbd/Kbd.module.scss.js +0 -17
- package/components/KeyValueList/KeyValueList.module.scss.js +0 -43
- package/components/Link/Link.module.scss.js +0 -16
- package/components/List/List.module.scss.js +0 -21
- package/components/Loader/Loader.module.scss.js +0 -70
- package/components/Modal/Modal.module.scss.js +0 -33
- package/components/PageHeader/PageHeader.module.scss.js +0 -43
- package/components/Pagination/Pagination.module.scss.js +0 -23
- package/components/Popover/Popover.module.scss.js +0 -21
- package/components/ProgressBar/ProgressBar.module.scss.js +0 -51
- package/components/RelativeTime/RelativeTime.module.scss.js +0 -7
- package/components/SegmentedControl/SegmentedControl.module.scss.js +0 -39
- package/components/Skeleton/Skeleton.module.scss.js +0 -25
- package/components/Spinner/Spinner.module.scss.js +0 -20
- package/components/SplitButton/SplitButton.module.scss.js +0 -57
- package/components/SplitPane/SplitPane.module.scss.js +0 -25
- package/components/StatCard/StatCard.module.scss.js +0 -72
- package/components/StatusDot/StatusDot.module.scss.js +0 -32
- package/components/Table/Table.module.scss.js +0 -81
- package/components/Tabs/Tabs.module.scss.js +0 -53
- package/components/ThemeToggle/ThemeToggle.module.scss.js +0 -23
- package/components/Timeline/GanttTimeline.module.scss.js +0 -55
- package/components/Timeline/HistoryTimeline.module.scss.js +0 -59
- package/components/Timeline/Timeline.module.scss.js +0 -141
- package/components/Timeline/TraceTimeline.module.scss.js +0 -189
- package/components/Timer/Timer.module.scss.js +0 -55
- package/components/Toast/Toast.module.scss.js +0 -62
- package/components/ToggleIconButton/ToggleIconButton.module.scss.js +0 -27
- package/components/Tooltip/Tooltip.module.scss.js +0 -30
- package/components/Typography/Typography.module.scss.js +0 -53
- package/components/inputs/Checkbox/Checkbox.module.scss.js +0 -17
- package/components/inputs/Checkbox/CheckboxGroup.module.scss.js +0 -31
- package/components/inputs/DatePicker/CalendarPanel.module.scss.js +0 -41
- package/components/inputs/DatePicker/DatePicker.module.scss.js +0 -25
- package/components/inputs/DateTimePicker/DateTimePicker.module.scss.js +0 -37
- package/components/inputs/Input/Input.module.scss.js +0 -27
- package/components/inputs/NumberInput/NumberInput.module.scss.js +0 -25
- package/components/inputs/Radio/Radio.module.scss.js +0 -15
- package/components/inputs/SearchInput/SearchInput.module.scss.js +0 -13
- package/components/inputs/Select/Select.module.scss.js +0 -73
- package/components/inputs/Slider/Slider.module.scss.js +0 -15
- package/components/inputs/Textarea/Textarea.module.scss.js +0 -25
|
@@ -1,165 +1,158 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
onKeyDown: o.onHandleKeyDown,
|
|
156
|
-
...a,
|
|
157
|
-
children: R
|
|
158
|
-
}
|
|
159
|
-
);
|
|
1
|
+
import e from "./Draggable.module.js";
|
|
2
|
+
import { createContext as t, forwardRef as n, useCallback as r, useContext as i, useEffect as a, useRef as o, useState as s } from "react";
|
|
3
|
+
import c from "clsx";
|
|
4
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
5
|
+
// src/components/Draggable/Draggable.tsx
|
|
6
|
+
var u = t(null), d = n(({ children: t, defaultPosition: n, position: i, axis: d = "both", bounds: f = "viewport", keyboardStep: p = 10, disabled: m = !1, onDragStart: h, onDrag: g, onDragEnd: _, classes: v, className: y, style: b, ...x }, S) => {
|
|
7
|
+
let C = o(null), w = i !== void 0, [T, E] = s(n ?? {
|
|
8
|
+
x: 0,
|
|
9
|
+
y: 0
|
|
10
|
+
}), D = w ? i : T, O = o(D);
|
|
11
|
+
O.current = D;
|
|
12
|
+
let [k, A] = s(!1), j = o(null), M = o(0), [N, P] = s(!1), F = r(() => (M.current += 1, P(!0), () => {
|
|
13
|
+
--M.current, M.current === 0 && P(!1);
|
|
14
|
+
}), []), I = r((e) => {
|
|
15
|
+
C.current = e, typeof S == "function" ? S(e) : S && (S.current = e);
|
|
16
|
+
}, [S]), L = r((e) => {
|
|
17
|
+
let t = C.current?.getBoundingClientRect();
|
|
18
|
+
return t ? {
|
|
19
|
+
left: t.left - e.x,
|
|
20
|
+
top: t.top - e.y,
|
|
21
|
+
width: t.width,
|
|
22
|
+
height: t.height
|
|
23
|
+
} : {
|
|
24
|
+
left: 0,
|
|
25
|
+
top: 0,
|
|
26
|
+
width: 0,
|
|
27
|
+
height: 0
|
|
28
|
+
};
|
|
29
|
+
}, []), R = r((e, t, n) => {
|
|
30
|
+
if (f === "none" || typeof window > "u") return {
|
|
31
|
+
x: e,
|
|
32
|
+
y: t
|
|
33
|
+
};
|
|
34
|
+
let r = f === "parent" && C.current?.parentElement ? C.current.parentElement.getBoundingClientRect() : {
|
|
35
|
+
left: 0,
|
|
36
|
+
top: 0,
|
|
37
|
+
right: window.innerWidth,
|
|
38
|
+
bottom: window.innerHeight
|
|
39
|
+
}, i = r.left - n.left, a = r.right - n.width - n.left, o = r.top - n.top, s = r.bottom - n.height - n.top;
|
|
40
|
+
return {
|
|
41
|
+
x: Math.min(Math.max(e, Math.min(i, a)), Math.max(i, a)),
|
|
42
|
+
y: Math.min(Math.max(t, Math.min(o, s)), Math.max(o, s))
|
|
43
|
+
};
|
|
44
|
+
}, [f]), z = r((e) => {
|
|
45
|
+
O.current = e, w || E(e), g?.(e);
|
|
46
|
+
}, [w, g]), B = r((e) => {
|
|
47
|
+
if (m || e.button > 0) return;
|
|
48
|
+
e.preventDefault();
|
|
49
|
+
let t = O.current;
|
|
50
|
+
j.current = {
|
|
51
|
+
startX: e.clientX,
|
|
52
|
+
startY: e.clientY,
|
|
53
|
+
origin: t,
|
|
54
|
+
base: L(t)
|
|
55
|
+
}, A(!0), h?.(t);
|
|
56
|
+
}, [
|
|
57
|
+
m,
|
|
58
|
+
L,
|
|
59
|
+
h
|
|
60
|
+
]);
|
|
61
|
+
a(() => {
|
|
62
|
+
if (!k) return;
|
|
63
|
+
let e = (e) => {
|
|
64
|
+
let t = j.current;
|
|
65
|
+
if (!t) return;
|
|
66
|
+
let n = d === "y" ? t.origin.x : t.origin.x + (e.clientX - t.startX), r = d === "x" ? t.origin.y : t.origin.y + (e.clientY - t.startY);
|
|
67
|
+
z(R(n, r, t.base));
|
|
68
|
+
}, t = () => {
|
|
69
|
+
A(!1), j.current = null, _?.(O.current);
|
|
70
|
+
};
|
|
71
|
+
return window.addEventListener("pointermove", e), window.addEventListener("pointerup", t), () => {
|
|
72
|
+
window.removeEventListener("pointermove", e), window.removeEventListener("pointerup", t);
|
|
73
|
+
};
|
|
74
|
+
}, [
|
|
75
|
+
k,
|
|
76
|
+
d,
|
|
77
|
+
R,
|
|
78
|
+
z,
|
|
79
|
+
_
|
|
80
|
+
]), a(() => {
|
|
81
|
+
if (f === "none" || typeof window > "u") return;
|
|
82
|
+
let e = () => {
|
|
83
|
+
if (j.current) return;
|
|
84
|
+
let e = O.current, t = R(e.x, e.y, L(e));
|
|
85
|
+
(t.x !== e.x || t.y !== e.y) && z(t);
|
|
86
|
+
}, t = C.current, n = typeof ResizeObserver > "u" ? null : new ResizeObserver(e);
|
|
87
|
+
return t && (n?.observe(t), f === "parent" && t.parentElement && n?.observe(t.parentElement)), window.addEventListener("resize", e), () => {
|
|
88
|
+
n?.disconnect(), window.removeEventListener("resize", e);
|
|
89
|
+
};
|
|
90
|
+
}, [
|
|
91
|
+
f,
|
|
92
|
+
R,
|
|
93
|
+
z,
|
|
94
|
+
L
|
|
95
|
+
]);
|
|
96
|
+
let V = {
|
|
97
|
+
startPointerDrag: B,
|
|
98
|
+
onHandleKeyDown: r((e) => {
|
|
99
|
+
if (m) return;
|
|
100
|
+
let t = {
|
|
101
|
+
ArrowLeft: [-p, 0],
|
|
102
|
+
ArrowRight: [p, 0],
|
|
103
|
+
ArrowUp: [0, -p],
|
|
104
|
+
ArrowDown: [0, p]
|
|
105
|
+
}[e.key];
|
|
106
|
+
if (!t || d === "x" && t[1] !== 0 || d === "y" && t[0] !== 0) return;
|
|
107
|
+
e.preventDefault();
|
|
108
|
+
let n = O.current, r = R(n.x + t[0], n.y + t[1], L(n));
|
|
109
|
+
z(r), _?.(r);
|
|
110
|
+
}, [
|
|
111
|
+
d,
|
|
112
|
+
R,
|
|
113
|
+
z,
|
|
114
|
+
m,
|
|
115
|
+
L,
|
|
116
|
+
p,
|
|
117
|
+
_
|
|
118
|
+
]),
|
|
119
|
+
registerHandle: F,
|
|
120
|
+
handleClassName: v?.handle,
|
|
121
|
+
disabled: m,
|
|
122
|
+
dragging: k
|
|
123
|
+
}, H = `translate(${D.x}px, ${D.y}px)`, U = {
|
|
124
|
+
...b,
|
|
125
|
+
transform: b?.transform ? `${H} ${b.transform}` : H
|
|
126
|
+
};
|
|
127
|
+
return /* @__PURE__ */ l(u.Provider, {
|
|
128
|
+
value: V,
|
|
129
|
+
children: /* @__PURE__ */ l("div", {
|
|
130
|
+
ref: I,
|
|
131
|
+
className: c(e.root, !N && !m && e.surfaceDraggable, k && e.dragging, v?.root, y),
|
|
132
|
+
style: U,
|
|
133
|
+
onPointerDown: N ? void 0 : B,
|
|
134
|
+
...x,
|
|
135
|
+
children: t
|
|
136
|
+
})
|
|
137
|
+
});
|
|
138
|
+
});
|
|
139
|
+
d.displayName = "Draggable";
|
|
140
|
+
function f({ children: t, className: n, style: r, ...o }) {
|
|
141
|
+
let s = i(u);
|
|
142
|
+
if (!s) throw Error("Draggable.Handle must be rendered inside a <Draggable>.");
|
|
143
|
+
return a(() => s.registerHandle(), [s.registerHandle]), /* @__PURE__ */ l("div", {
|
|
144
|
+
className: c(e.handle, s.disabled && e.handleDisabled, s.dragging && e.handleDragging, s.handleClassName, n),
|
|
145
|
+
style: r,
|
|
146
|
+
role: "button",
|
|
147
|
+
"aria-label": "Drag handle",
|
|
148
|
+
"aria-disabled": s.disabled || void 0,
|
|
149
|
+
tabIndex: s.disabled ? -1 : 0,
|
|
150
|
+
onPointerDown: s.startPointerDrag,
|
|
151
|
+
onKeyDown: s.onHandleKeyDown,
|
|
152
|
+
...o,
|
|
153
|
+
children: t
|
|
154
|
+
});
|
|
160
155
|
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
export {
|
|
164
|
-
ct as Draggable
|
|
165
|
-
};
|
|
156
|
+
f.displayName = "Draggable.Handle";
|
|
157
|
+
var p = Object.assign(d, { Handle: f });
|
|
158
|
+
export { p as Draggable };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// src/components/Draggable/Draggable.module.scss
|
|
2
|
+
var e = "crk-root-5Kdf2", t = "crk-surfaceDraggable-mIpX8", n = "crk-dragging-XtMt7", r = "crk-handle-r4nFh", i = "crk-handleDragging-FRObk", a = "crk-handleDisabled-8t94h", o = {
|
|
3
|
+
root: e,
|
|
4
|
+
surfaceDraggable: t,
|
|
5
|
+
dragging: n,
|
|
6
|
+
handle: r,
|
|
7
|
+
handleDragging: i,
|
|
8
|
+
handleDisabled: a
|
|
9
|
+
};
|
|
10
|
+
export { o as default, n as dragging, r as handle, a as handleDisabled, i as handleDragging, e as root, t as surfaceDraggable };
|
|
@@ -1,129 +1,107 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import l from "
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
);
|
|
1
|
+
import { useFocusTrap as e } from "../../hooks/useFocusTrap.js";
|
|
2
|
+
import { EscapeLayerProvider as t, useEscapeLayer as n } from "../../hooks/useEscapeLayer.js";
|
|
3
|
+
import r from "./Drawer.module.js";
|
|
4
|
+
import { createContext as i, forwardRef as a, useContext as o, useEffect as s, useId as c, useRef as l, useState as u } from "react";
|
|
5
|
+
import d from "clsx";
|
|
6
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
7
|
+
import { createPortal as m } from "react-dom";
|
|
8
|
+
// src/components/Drawer/Drawer.tsx
|
|
9
|
+
var h = i({
|
|
10
|
+
classes: {},
|
|
11
|
+
titleId: ""
|
|
12
|
+
}), g = ({ children: e, className: t, style: n, onClose: i }) => {
|
|
13
|
+
let { classes: a, titleId: s } = o(h);
|
|
14
|
+
return /* @__PURE__ */ p("div", {
|
|
15
|
+
className: d(r.header, i && r.headerWithClose, a.header, t),
|
|
16
|
+
style: n,
|
|
17
|
+
children: [/* @__PURE__ */ f("div", {
|
|
18
|
+
id: s,
|
|
19
|
+
className: d(r.headerTitle, a.headerTitle),
|
|
20
|
+
children: e
|
|
21
|
+
}), i && /* @__PURE__ */ f("button", {
|
|
22
|
+
type: "button",
|
|
23
|
+
className: d(r.closeButton, a.closeButton),
|
|
24
|
+
onClick: i,
|
|
25
|
+
"aria-label": "Close",
|
|
26
|
+
children: "×"
|
|
27
|
+
})]
|
|
28
|
+
});
|
|
30
29
|
};
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
g.displayName = "Drawer.Header";
|
|
31
|
+
var _ = ({ children: e, className: t, style: n }) => {
|
|
32
|
+
let { classes: i } = o(h);
|
|
33
|
+
return /* @__PURE__ */ f("div", {
|
|
34
|
+
className: d(r.body, i.body, t),
|
|
35
|
+
style: n,
|
|
36
|
+
children: e
|
|
37
|
+
});
|
|
35
38
|
};
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
open: e,
|
|
45
|
-
onClose: s,
|
|
46
|
-
side: a = "right",
|
|
47
|
-
size: o = "md",
|
|
48
|
-
variant: i = "temporary",
|
|
49
|
-
closeOnBackdrop: p = !0,
|
|
50
|
-
closeOnEscape: C = !0,
|
|
51
|
-
classes: y,
|
|
52
|
-
className: _,
|
|
53
|
-
style: $,
|
|
54
|
-
children: A,
|
|
55
|
-
"aria-label": N,
|
|
56
|
-
"aria-labelledby": E
|
|
57
|
-
}, n) => {
|
|
58
|
-
const B = S(null), F = (r) => {
|
|
59
|
-
B.current = r, typeof n == "function" ? n(r) : n && (n.current = r);
|
|
60
|
-
}, O = G(), T = E ?? `${O}-title`, v = i === "temporary", [d, g] = u(e), [k, D] = u(!1), [I, H] = u(a), [P, j] = u(o);
|
|
61
|
-
h(() => {
|
|
62
|
-
e && (g(!0), D(!1), H(a), j(o));
|
|
63
|
-
}, [e, a, o]), h(() => {
|
|
64
|
-
if (e || !d) return;
|
|
65
|
-
D(!0);
|
|
66
|
-
const r = setTimeout(() => g(!1), Y);
|
|
67
|
-
return () => clearTimeout(r);
|
|
68
|
-
}, [e, d]), Q(B, d && e && v);
|
|
69
|
-
const L = V(() => {
|
|
70
|
-
C && s();
|
|
71
|
-
}, e);
|
|
72
|
-
h(() => {
|
|
73
|
-
if (!d) return;
|
|
74
|
-
const r = document.body.style.overflow;
|
|
75
|
-
return document.body.style.overflow = "hidden", () => {
|
|
76
|
-
document.body.style.overflow = r;
|
|
77
|
-
};
|
|
78
|
-
}, [d]);
|
|
79
|
-
const b = S(!1), U = (r) => {
|
|
80
|
-
b.current = r.target === r.currentTarget;
|
|
81
|
-
}, W = (r) => {
|
|
82
|
-
p && b.current && r.target === r.currentTarget && s(), b.current = !1;
|
|
83
|
-
};
|
|
84
|
-
return d ? K(
|
|
85
|
-
/* @__PURE__ */ c(
|
|
86
|
-
"div",
|
|
87
|
-
{
|
|
88
|
-
className: l(
|
|
89
|
-
t.backdrop,
|
|
90
|
-
k && t.backdropClosing,
|
|
91
|
-
!v && t.backdropBare,
|
|
92
|
-
y?.backdrop
|
|
93
|
-
),
|
|
94
|
-
onMouseDown: U,
|
|
95
|
-
onMouseUp: W,
|
|
96
|
-
role: "presentation",
|
|
97
|
-
children: /* @__PURE__ */ c(
|
|
98
|
-
"div",
|
|
99
|
-
{
|
|
100
|
-
ref: F,
|
|
101
|
-
className: l(
|
|
102
|
-
t.drawer,
|
|
103
|
-
t[`side_${I}`],
|
|
104
|
-
t[`size_${P}`],
|
|
105
|
-
t[`${k ? "slideOut" : "slideIn"}_${I}`],
|
|
106
|
-
y?.drawer,
|
|
107
|
-
_
|
|
108
|
-
),
|
|
109
|
-
style: $,
|
|
110
|
-
role: "dialog",
|
|
111
|
-
"aria-modal": v ? "true" : void 0,
|
|
112
|
-
"aria-label": N,
|
|
113
|
-
"aria-labelledby": N ? void 0 : T,
|
|
114
|
-
children: /* @__PURE__ */ c(m.Provider, { value: { classes: y ?? {}, titleId: T }, children: /* @__PURE__ */ c(X, { value: L, children: A }) })
|
|
115
|
-
}
|
|
116
|
-
)
|
|
117
|
-
}
|
|
118
|
-
),
|
|
119
|
-
document.body
|
|
120
|
-
) : null;
|
|
121
|
-
}
|
|
122
|
-
);
|
|
123
|
-
f.displayName = "Drawer";
|
|
124
|
-
f.Header = x;
|
|
125
|
-
f.Body = R;
|
|
126
|
-
f.Footer = M;
|
|
127
|
-
export {
|
|
128
|
-
f as Drawer
|
|
39
|
+
_.displayName = "Drawer.Body";
|
|
40
|
+
var v = ({ children: e, className: t, style: n }) => {
|
|
41
|
+
let { classes: i } = o(h);
|
|
42
|
+
return /* @__PURE__ */ f("div", {
|
|
43
|
+
className: d(r.footer, i.footer, t),
|
|
44
|
+
style: n,
|
|
45
|
+
children: e
|
|
46
|
+
});
|
|
129
47
|
};
|
|
48
|
+
v.displayName = "Drawer.Footer";
|
|
49
|
+
var y = 340, b = a(({ open: i, onClose: a, side: o = "right", size: p = "md", variant: g = "temporary", closeOnBackdrop: _ = !0, closeOnEscape: v = !0, classes: b, className: x, style: S, children: C, "aria-label": w, "aria-labelledby": T }, E) => {
|
|
50
|
+
let D = l(null), O = (e) => {
|
|
51
|
+
D.current = e, typeof E == "function" ? E(e) : E && (E.current = e);
|
|
52
|
+
}, k = c(), A = T ?? `${k}-title`, j = g === "temporary", [M, N] = u(i), [P, F] = u(!1), [I, L] = u(o), [R, z] = u(p);
|
|
53
|
+
s(() => {
|
|
54
|
+
i && (N(!0), F(!1), L(o), z(p));
|
|
55
|
+
}, [
|
|
56
|
+
i,
|
|
57
|
+
o,
|
|
58
|
+
p
|
|
59
|
+
]), s(() => {
|
|
60
|
+
if (i || !M) return;
|
|
61
|
+
F(!0);
|
|
62
|
+
let e = setTimeout(() => N(!1), y);
|
|
63
|
+
return () => clearTimeout(e);
|
|
64
|
+
}, [i, M]), e(D, M && i && j);
|
|
65
|
+
let B = n(() => {
|
|
66
|
+
v && a();
|
|
67
|
+
}, i);
|
|
68
|
+
s(() => {
|
|
69
|
+
if (!M) return;
|
|
70
|
+
let e = document.body.style.overflow;
|
|
71
|
+
return document.body.style.overflow = "hidden", () => {
|
|
72
|
+
document.body.style.overflow = e;
|
|
73
|
+
};
|
|
74
|
+
}, [M]);
|
|
75
|
+
let V = l(!1);
|
|
76
|
+
return M ? m(/* @__PURE__ */ f("div", {
|
|
77
|
+
className: d(r.backdrop, P && r.backdropClosing, !j && r.backdropBare, b?.backdrop),
|
|
78
|
+
onMouseDown: (e) => {
|
|
79
|
+
V.current = e.target === e.currentTarget;
|
|
80
|
+
},
|
|
81
|
+
onMouseUp: (e) => {
|
|
82
|
+
_ && V.current && e.target === e.currentTarget && a(), V.current = !1;
|
|
83
|
+
},
|
|
84
|
+
role: "presentation",
|
|
85
|
+
children: /* @__PURE__ */ f("div", {
|
|
86
|
+
ref: O,
|
|
87
|
+
className: d(r.drawer, r[`side_${I}`], r[`size_${R}`], r[`${P ? "slideOut" : "slideIn"}_${I}`], b?.drawer, x),
|
|
88
|
+
style: S,
|
|
89
|
+
role: "dialog",
|
|
90
|
+
"aria-modal": j ? "true" : void 0,
|
|
91
|
+
"aria-label": w,
|
|
92
|
+
"aria-labelledby": w ? void 0 : A,
|
|
93
|
+
children: /* @__PURE__ */ f(h.Provider, {
|
|
94
|
+
value: {
|
|
95
|
+
classes: b ?? {},
|
|
96
|
+
titleId: A
|
|
97
|
+
},
|
|
98
|
+
children: /* @__PURE__ */ f(t, {
|
|
99
|
+
value: B,
|
|
100
|
+
children: C
|
|
101
|
+
})
|
|
102
|
+
})
|
|
103
|
+
})
|
|
104
|
+
}), document.body) : null;
|
|
105
|
+
});
|
|
106
|
+
b.displayName = "Drawer", b.Header = g, b.Body = _, b.Footer = v;
|
|
107
|
+
export { b as Drawer };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
// src/components/Drawer/Drawer.module.scss
|
|
2
|
+
var e = "crk-backdrop-LBGhN", t = "crk-crk-drawer-fade-in-fnZXU", n = "crk-backdropClosing-0aeyJ", r = "crk-crk-drawer-fade-out-iDYoX", i = "crk-backdropBare-7fB4W", a = "crk-drawer-IKoOm", o = "crk-side_right-sYQoY", s = "crk-side_right-sYQoY", c = "crk-side_left-gAeYL", l = "crk-side_left-gAeYL", u = "crk-side_top-QFjZz", d = "crk-side_top-QFjZz", f = "crk-side_bottom-Y1t6g", p = "crk-side_bottom-Y1t6g", m = "crk-slideIn_right-HORcg", h = "crk-slideIn_right-HORcg", g = "crk-crk-drawer-in-right-lit2r", _ = "crk-slideOut_right-lbnQY", v = "crk-slideOut_right-lbnQY", y = "crk-crk-drawer-out-right-lrub3", b = "crk-slideIn_left-VvJeV", x = "crk-slideIn_left-VvJeV", S = "crk-crk-drawer-in-left-98vE7", C = "crk-slideOut_left-4pc01", w = "crk-slideOut_left-4pc01", T = "crk-crk-drawer-out-left-EI6P3", E = "crk-slideIn_top-ULcWL", D = "crk-slideIn_top-ULcWL", O = "crk-crk-drawer-in-top-8ZkO6", k = "crk-slideOut_top-00Tue", A = "crk-slideOut_top-00Tue", j = "crk-crk-drawer-out-top-KDkv7", M = "crk-slideIn_bottom-uBTzu", N = "crk-slideIn_bottom-uBTzu", P = "crk-crk-drawer-in-bottom-b9y67", F = "crk-slideOut_bottom-g6ELp", I = "crk-slideOut_bottom-g6ELp", L = "crk-crk-drawer-out-bottom-IShFs", R = "crk-size_sm-o8tw7", z = "crk-size_sm-o8tw7", B = "crk-size_md-akgTC", V = "crk-size_md-akgTC", H = "crk-size_lg-Yjulz", U = "crk-size_lg-Yjulz", W = "crk-size_full-DIjPg", G = "crk-size_full-DIjPg", K = "crk-header--OScS", q = "crk-headerTitle-LQr32", J = "crk-closeButton-WdXyR", Y = "crk-body-CXRcE", X = "crk-footer-0kQ83", Z = "crk-drawerClosing-9hrsd", Q = {
|
|
3
|
+
backdrop: e,
|
|
4
|
+
"crk-drawer-fade-in": "crk-crk-drawer-fade-in-fnZXU",
|
|
5
|
+
crkDrawerFadeIn: t,
|
|
6
|
+
backdropClosing: n,
|
|
7
|
+
"crk-drawer-fade-out": "crk-crk-drawer-fade-out-iDYoX",
|
|
8
|
+
crkDrawerFadeOut: r,
|
|
9
|
+
backdropBare: i,
|
|
10
|
+
drawer: a,
|
|
11
|
+
side_right: o,
|
|
12
|
+
sideRight: s,
|
|
13
|
+
side_left: c,
|
|
14
|
+
sideLeft: l,
|
|
15
|
+
side_top: u,
|
|
16
|
+
sideTop: d,
|
|
17
|
+
side_bottom: f,
|
|
18
|
+
sideBottom: p,
|
|
19
|
+
slideIn_right: m,
|
|
20
|
+
slideInRight: h,
|
|
21
|
+
"crk-drawer-in-right": "crk-crk-drawer-in-right-lit2r",
|
|
22
|
+
crkDrawerInRight: g,
|
|
23
|
+
slideOut_right: _,
|
|
24
|
+
slideOutRight: v,
|
|
25
|
+
"crk-drawer-out-right": "crk-crk-drawer-out-right-lrub3",
|
|
26
|
+
crkDrawerOutRight: y,
|
|
27
|
+
slideIn_left: b,
|
|
28
|
+
slideInLeft: x,
|
|
29
|
+
"crk-drawer-in-left": "crk-crk-drawer-in-left-98vE7",
|
|
30
|
+
crkDrawerInLeft: S,
|
|
31
|
+
slideOut_left: C,
|
|
32
|
+
slideOutLeft: w,
|
|
33
|
+
"crk-drawer-out-left": "crk-crk-drawer-out-left-EI6P3",
|
|
34
|
+
crkDrawerOutLeft: T,
|
|
35
|
+
slideIn_top: E,
|
|
36
|
+
slideInTop: D,
|
|
37
|
+
"crk-drawer-in-top": "crk-crk-drawer-in-top-8ZkO6",
|
|
38
|
+
crkDrawerInTop: O,
|
|
39
|
+
slideOut_top: k,
|
|
40
|
+
slideOutTop: A,
|
|
41
|
+
"crk-drawer-out-top": "crk-crk-drawer-out-top-KDkv7",
|
|
42
|
+
crkDrawerOutTop: j,
|
|
43
|
+
slideIn_bottom: M,
|
|
44
|
+
slideInBottom: N,
|
|
45
|
+
"crk-drawer-in-bottom": "crk-crk-drawer-in-bottom-b9y67",
|
|
46
|
+
crkDrawerInBottom: P,
|
|
47
|
+
slideOut_bottom: F,
|
|
48
|
+
slideOutBottom: I,
|
|
49
|
+
"crk-drawer-out-bottom": "crk-crk-drawer-out-bottom-IShFs",
|
|
50
|
+
crkDrawerOutBottom: L,
|
|
51
|
+
size_sm: R,
|
|
52
|
+
sizeSm: z,
|
|
53
|
+
size_md: B,
|
|
54
|
+
sizeMd: V,
|
|
55
|
+
size_lg: H,
|
|
56
|
+
sizeLg: U,
|
|
57
|
+
size_full: W,
|
|
58
|
+
sizeFull: G,
|
|
59
|
+
header: K,
|
|
60
|
+
headerTitle: q,
|
|
61
|
+
closeButton: J,
|
|
62
|
+
body: Y,
|
|
63
|
+
footer: X,
|
|
64
|
+
drawerClosing: Z
|
|
65
|
+
};
|
|
66
|
+
export { e as backdrop, i as backdropBare, n as backdropClosing, Y as body, J as closeButton, t as crkDrawerFadeIn, r as crkDrawerFadeOut, P as crkDrawerInBottom, S as crkDrawerInLeft, g as crkDrawerInRight, O as crkDrawerInTop, L as crkDrawerOutBottom, T as crkDrawerOutLeft, y as crkDrawerOutRight, j as crkDrawerOutTop, Q as default, a as drawer, Z as drawerClosing, X as footer, K as header, q as headerTitle, p as sideBottom, l as sideLeft, s as sideRight, d as sideTop, f as side_bottom, c as side_left, o as side_right, u as side_top, G as sizeFull, U as sizeLg, V as sizeMd, z as sizeSm, W as size_full, H as size_lg, B as size_md, R as size_sm, N as slideInBottom, x as slideInLeft, h as slideInRight, D as slideInTop, M as slideIn_bottom, b as slideIn_left, m as slideIn_right, E as slideIn_top, I as slideOutBottom, w as slideOutLeft, v as slideOutRight, A as slideOutTop, F as slideOut_bottom, C as slideOut_left, _ as slideOut_right, k as slideOut_top };
|