@nexus-cross/design-system 1.0.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/cursor-rules/nexus-project-setup.mdc +292 -0
- package/cursor-rules/nexus-ui-api.mdc +698 -0
- package/cursor-rules/nexus-ui-components.mdc +136 -0
- package/dist/accordion.d.mts +28 -0
- package/dist/accordion.d.ts +28 -0
- package/dist/accordion.js +28 -0
- package/dist/accordion.mjs +3 -0
- package/dist/avatar.d.mts +17 -0
- package/dist/avatar.d.ts +17 -0
- package/dist/avatar.js +16 -0
- package/dist/avatar.mjs +3 -0
- package/dist/button.d.mts +17 -0
- package/dist/button.d.ts +17 -0
- package/dist/button.js +16 -0
- package/dist/button.mjs +3 -0
- package/dist/carousel.d.mts +36 -0
- package/dist/carousel.d.ts +36 -0
- package/dist/carousel.js +32 -0
- package/dist/carousel.mjs +3 -0
- package/dist/checkbox.d.mts +21 -0
- package/dist/checkbox.d.ts +21 -0
- package/dist/checkbox.js +20 -0
- package/dist/checkbox.mjs +3 -0
- package/dist/chip.d.mts +16 -0
- package/dist/chip.d.ts +16 -0
- package/dist/chip.js +16 -0
- package/dist/chip.mjs +3 -0
- package/dist/chunks/chunk-22ULI3BF.js +21 -0
- package/dist/chunks/chunk-26BUGBOY.mjs +57 -0
- package/dist/chunks/chunk-2JTPRBHZ.mjs +36 -0
- package/dist/chunks/chunk-2MC7XJSE.js +98 -0
- package/dist/chunks/chunk-2RPRCWKV.mjs +139 -0
- package/dist/chunks/chunk-2ZXDXO4I.js +166 -0
- package/dist/chunks/chunk-33UFQJIO.mjs +135 -0
- package/dist/chunks/chunk-3HHJORN7.mjs +137 -0
- package/dist/chunks/chunk-3PCNRCTB.js +61 -0
- package/dist/chunks/chunk-3VFBPFZF.mjs +640 -0
- package/dist/chunks/chunk-4J3GCZ7W.mjs +102 -0
- package/dist/chunks/chunk-54IA2P2Z.mjs +40 -0
- package/dist/chunks/chunk-54RBL7J4.mjs +179 -0
- package/dist/chunks/chunk-5JHJNN2K.js +83 -0
- package/dist/chunks/chunk-5JHN4FCY.mjs +58 -0
- package/dist/chunks/chunk-6FMDO6TT.mjs +114 -0
- package/dist/chunks/chunk-6H7V2I3X.mjs +270 -0
- package/dist/chunks/chunk-7AISZYWL.js +7 -0
- package/dist/chunks/chunk-7G65JBTN.js +133 -0
- package/dist/chunks/chunk-ADO7PDLY.mjs +66 -0
- package/dist/chunks/chunk-AFSEYJZT.js +267 -0
- package/dist/chunks/chunk-AOXXE5UQ.mjs +14 -0
- package/dist/chunks/chunk-AZ2URLDD.js +39 -0
- package/dist/chunks/chunk-B6G5TJRO.js +116 -0
- package/dist/chunks/chunk-BLGQHR3M.js +56 -0
- package/dist/chunks/chunk-BPUQ2CO2.mjs +48 -0
- package/dist/chunks/chunk-BSZ2LN6E.js +129 -0
- package/dist/chunks/chunk-CA3SOLI3.mjs +78 -0
- package/dist/chunks/chunk-CSJDDREF.js +90 -0
- package/dist/chunks/chunk-CVYXRSXT.mjs +8 -0
- package/dist/chunks/chunk-CZC76ZD5.js +10 -0
- package/dist/chunks/chunk-D6FII7HW.js +202 -0
- package/dist/chunks/chunk-DLFV7ZZV.js +112 -0
- package/dist/chunks/chunk-DO6VK2QQ.mjs +108 -0
- package/dist/chunks/chunk-ECVAVQUY.mjs +243 -0
- package/dist/chunks/chunk-EHAUUUWB.mjs +120 -0
- package/dist/chunks/chunk-EVOOTSY5.js +59 -0
- package/dist/chunks/chunk-GX6GSWX3.mjs +38 -0
- package/dist/chunks/chunk-HHXDOKXY.js +108 -0
- package/dist/chunks/chunk-HNLI646G.mjs +325 -0
- package/dist/chunks/chunk-HUPAHDJ7.js +273 -0
- package/dist/chunks/chunk-I252NERB.mjs +21 -0
- package/dist/chunks/chunk-IE4DGLMH.js +75 -0
- package/dist/chunks/chunk-INP2AH3B.js +27 -0
- package/dist/chunks/chunk-IOSIQLZL.js +70 -0
- package/dist/chunks/chunk-J5ZKGPBY.js +132 -0
- package/dist/chunks/chunk-JNMCYWGY.js +10 -0
- package/dist/chunks/chunk-LI7SFBUQ.mjs +89 -0
- package/dist/chunks/chunk-LMMON5AU.mjs +81 -0
- package/dist/chunks/chunk-LOQXCHKL.js +74 -0
- package/dist/chunks/chunk-MA2VCCIY.js +71 -0
- package/dist/chunks/chunk-MCKOWMLS.mjs +8 -0
- package/dist/chunks/chunk-MRRKW5QN.mjs +108 -0
- package/dist/chunks/chunk-MTX7GD3H.js +80 -0
- package/dist/chunks/chunk-NFIPQZ4O.js +100 -0
- package/dist/chunks/chunk-NHDGKOAM.js +104 -0
- package/dist/chunks/chunk-OMN5YQCE.js +143 -0
- package/dist/chunks/chunk-OTGS6BDQ.mjs +25 -0
- package/dist/chunks/chunk-P2T72N62.mjs +34 -0
- package/dist/chunks/chunk-P3DZKXG4.js +116 -0
- package/dist/chunks/chunk-QK6NCII4.js +36 -0
- package/dist/chunks/chunk-QZ4QR3XV.mjs +142 -0
- package/dist/chunks/chunk-RS3SBY3I.js +163 -0
- package/dist/chunks/chunk-RX5UKRYK.mjs +76 -0
- package/dist/chunks/chunk-SGNRVYYQ.mjs +99 -0
- package/dist/chunks/chunk-SJMCPSVH.mjs +76 -0
- package/dist/chunks/chunk-T2IY2TSR.js +43 -0
- package/dist/chunks/chunk-U53UA76K.js +653 -0
- package/dist/chunks/chunk-U56AGSLE.mjs +106 -0
- package/dist/chunks/chunk-ULGYTBCT.mjs +47 -0
- package/dist/chunks/chunk-V5OTJP6H.mjs +5 -0
- package/dist/chunks/chunk-VGO4Z2WH.js +336 -0
- package/dist/chunks/chunk-VIGRCJAE.mjs +37 -0
- package/dist/chunks/chunk-VVXQZ4XH.mjs +93 -0
- package/dist/chunks/chunk-W4GG5A7K.mjs +51 -0
- package/dist/chunks/chunk-WKCXACMZ.js +99 -0
- package/dist/chunks/chunk-WR55D4ZS.js +80 -0
- package/dist/chunks/chunk-X2SHTVZQ.js +89 -0
- package/dist/chunks/chunk-XEHFB62A.js +82 -0
- package/dist/chunks/chunk-XG6QG65W.mjs +63 -0
- package/dist/chunks/chunk-YB5ZKHVB.js +64 -0
- package/dist/chunks/chunk-YCG4FZC3.js +167 -0
- package/dist/chunks/chunk-YEWKPWK3.mjs +80 -0
- package/dist/chunks/chunk-YLO4UKSC.mjs +48 -0
- package/dist/chunks/chunk-YZV6FWE7.js +160 -0
- package/dist/chunks/chunk-ZWSIIGA3.mjs +58 -0
- package/dist/client-only.d.mts +13 -0
- package/dist/client-only.d.ts +13 -0
- package/dist/client-only.js +11 -0
- package/dist/client-only.mjs +2 -0
- package/dist/countdown.d.mts +27 -0
- package/dist/countdown.d.ts +27 -0
- package/dist/countdown.js +16 -0
- package/dist/countdown.mjs +3 -0
- package/dist/counter.d.mts +15 -0
- package/dist/counter.d.ts +15 -0
- package/dist/counter.js +11 -0
- package/dist/counter.mjs +2 -0
- package/dist/data-list.d.mts +33 -0
- package/dist/data-list.d.ts +33 -0
- package/dist/data-list.js +14 -0
- package/dist/data-list.mjs +5 -0
- package/dist/divider.d.mts +14 -0
- package/dist/divider.d.ts +14 -0
- package/dist/divider.js +16 -0
- package/dist/divider.mjs +3 -0
- package/dist/drawer.d.mts +42 -0
- package/dist/drawer.d.ts +42 -0
- package/dist/drawer.js +44 -0
- package/dist/drawer.mjs +3 -0
- package/dist/ellipsis.d.mts +16 -0
- package/dist/ellipsis.d.ts +16 -0
- package/dist/ellipsis.js +12 -0
- package/dist/ellipsis.mjs +3 -0
- package/dist/error-boundary.d.mts +20 -0
- package/dist/error-boundary.d.ts +20 -0
- package/dist/error-boundary.js +11 -0
- package/dist/error-boundary.mjs +2 -0
- package/dist/hooks/useCheckDevice.d.mts +47 -0
- package/dist/hooks/useCheckDevice.d.ts +47 -0
- package/dist/hooks/useCheckDevice.js +8 -0
- package/dist/hooks/useCheckDevice.mjs +2 -0
- package/dist/hooks/useClickOutside.d.mts +12 -0
- package/dist/hooks/useClickOutside.d.ts +12 -0
- package/dist/hooks/useClickOutside.js +8 -0
- package/dist/hooks/useClickOutside.mjs +2 -0
- package/dist/hooks/useDraggableBottomSheet.d.mts +24 -0
- package/dist/hooks/useDraggableBottomSheet.d.ts +24 -0
- package/dist/hooks/useDraggableBottomSheet.js +11 -0
- package/dist/hooks/useDraggableBottomSheet.mjs +2 -0
- package/dist/hooks/useDraggableWindow.d.mts +21 -0
- package/dist/hooks/useDraggableWindow.d.ts +21 -0
- package/dist/hooks/useDraggableWindow.js +11 -0
- package/dist/hooks/useDraggableWindow.mjs +2 -0
- package/dist/hooks/useInView.d.mts +14 -0
- package/dist/hooks/useInView.d.ts +14 -0
- package/dist/hooks/useInView.js +17 -0
- package/dist/hooks/useInView.mjs +2 -0
- package/dist/hooks/useModal.d.mts +2 -0
- package/dist/hooks/useModal.d.ts +2 -0
- package/dist/hooks/useModal.js +11 -0
- package/dist/hooks/useModal.mjs +2 -0
- package/dist/index.d.mts +76 -0
- package/dist/index.d.ts +76 -0
- package/dist/index.js +746 -0
- package/dist/index.mjs +328 -0
- package/dist/infinite-scroll.d.mts +26 -0
- package/dist/infinite-scroll.d.ts +26 -0
- package/dist/infinite-scroll.js +12 -0
- package/dist/infinite-scroll.mjs +3 -0
- package/dist/marquee.d.mts +12 -0
- package/dist/marquee.d.ts +12 -0
- package/dist/marquee.js +12 -0
- package/dist/marquee.mjs +3 -0
- package/dist/modal/index.d.mts +87 -0
- package/dist/modal/index.d.ts +87 -0
- package/dist/modal/index.js +54 -0
- package/dist/modal/index.mjs +9 -0
- package/dist/number-input.d.mts +38 -0
- package/dist/number-input.d.ts +38 -0
- package/dist/number-input.js +20 -0
- package/dist/number-input.mjs +3 -0
- package/dist/pagination.d.mts +22 -0
- package/dist/pagination.d.ts +22 -0
- package/dist/pagination.js +20 -0
- package/dist/pagination.mjs +3 -0
- package/dist/popover.d.mts +25 -0
- package/dist/popover.d.ts +25 -0
- package/dist/popover.js +32 -0
- package/dist/popover.mjs +3 -0
- package/dist/radio-group.d.mts +29 -0
- package/dist/radio-group.d.ts +29 -0
- package/dist/radio-group.js +24 -0
- package/dist/radio-group.mjs +3 -0
- package/dist/schemas/_all.json +2250 -0
- package/dist/schemas/accordion.json +101 -0
- package/dist/schemas/avatar.json +55 -0
- package/dist/schemas/button.json +71 -0
- package/dist/schemas/carousel.json +32 -0
- package/dist/schemas/carouselButton.json +20 -0
- package/dist/schemas/carouselDots.json +17 -0
- package/dist/schemas/carouselSlide.json +20 -0
- package/dist/schemas/checkBox.json +57 -0
- package/dist/schemas/chip.json +49 -0
- package/dist/schemas/clientOnly.json +19 -0
- package/dist/schemas/countdown.json +58 -0
- package/dist/schemas/counter.json +57 -0
- package/dist/schemas/dataList.json +56 -0
- package/dist/schemas/divider.json +40 -0
- package/dist/schemas/drawer.json +27 -0
- package/dist/schemas/drawerContent.json +50 -0
- package/dist/schemas/ellipsis.json +49 -0
- package/dist/schemas/errorBoundary.json +22 -0
- package/dist/schemas/infiniteScroll.json +65 -0
- package/dist/schemas/marquee.json +46 -0
- package/dist/schemas/modalCall.json +21 -0
- package/dist/schemas/modalTemplate.json +123 -0
- package/dist/schemas/numberInput.json +77 -0
- package/dist/schemas/pagination.json +50 -0
- package/dist/schemas/popover.json +67 -0
- package/dist/schemas/radioGroup.json +61 -0
- package/dist/schemas/radioItem.json +35 -0
- package/dist/schemas/select.json +62 -0
- package/dist/schemas/selectItem.json +31 -0
- package/dist/schemas/skeleton.json +48 -0
- package/dist/schemas/spinner.json +27 -0
- package/dist/schemas/switch.json +41 -0
- package/dist/schemas/tab.json +89 -0
- package/dist/schemas/table.json +75 -0
- package/dist/schemas/tableRow.json +32 -0
- package/dist/schemas/tdColumn.json +107 -0
- package/dist/schemas/textArea.json +44 -0
- package/dist/schemas/textInput.json +67 -0
- package/dist/schemas/themeProvider.json +65 -0
- package/dist/schemas/toaster.json +31 -0
- package/dist/schemas/tooltip.json +67 -0
- package/dist/schemas/virtualGrid.json +59 -0
- package/dist/schemas/virtualList.json +54 -0
- package/dist/schemas.d.mts +1263 -0
- package/dist/schemas.d.ts +1263 -0
- package/dist/schemas.js +513 -0
- package/dist/schemas.mjs +469 -0
- package/dist/select.d.mts +31 -0
- package/dist/select.d.ts +31 -0
- package/dist/select.js +24 -0
- package/dist/select.mjs +3 -0
- package/dist/skeleton.d.mts +15 -0
- package/dist/skeleton.d.ts +15 -0
- package/dist/skeleton.js +12 -0
- package/dist/skeleton.mjs +3 -0
- package/dist/spinner.d.mts +9 -0
- package/dist/spinner.d.ts +9 -0
- package/dist/spinner.js +12 -0
- package/dist/spinner.mjs +3 -0
- package/dist/styles/layer.d.mts +3 -0
- package/dist/styles/layer.d.ts +3 -0
- package/dist/styles/layer.js +18 -0
- package/dist/styles/layer.mjs +16 -0
- package/dist/styles.css +2401 -0
- package/dist/styles.d.mts +3 -0
- package/dist/styles.d.ts +3 -0
- package/dist/styles.js +16 -0
- package/dist/styles.layered.css +2404 -0
- package/dist/styles.mjs +14 -0
- package/dist/switch.d.mts +15 -0
- package/dist/switch.d.ts +15 -0
- package/dist/switch.js +16 -0
- package/dist/switch.mjs +3 -0
- package/dist/tab.d.mts +36 -0
- package/dist/tab.d.ts +36 -0
- package/dist/tab.js +20 -0
- package/dist/tab.mjs +3 -0
- package/dist/table.d.mts +80 -0
- package/dist/table.d.ts +80 -0
- package/dist/table.js +33 -0
- package/dist/table.mjs +4 -0
- package/dist/text-area.d.mts +15 -0
- package/dist/text-area.d.ts +15 -0
- package/dist/text-area.js +16 -0
- package/dist/text-area.mjs +3 -0
- package/dist/text-input.d.mts +21 -0
- package/dist/text-input.d.ts +21 -0
- package/dist/text-input.js +16 -0
- package/dist/text-input.mjs +3 -0
- package/dist/theme-provider.d.mts +25 -0
- package/dist/theme-provider.d.ts +25 -0
- package/dist/theme-provider.js +15 -0
- package/dist/theme-provider.mjs +2 -0
- package/dist/toast.d.mts +42 -0
- package/dist/toast.d.ts +42 -0
- package/dist/toast.js +20 -0
- package/dist/toast.mjs +3 -0
- package/dist/tooltip.d.mts +24 -0
- package/dist/tooltip.d.ts +24 -0
- package/dist/tooltip.js +20 -0
- package/dist/tooltip.mjs +3 -0
- package/dist/useModal-BsGIcP8t.d.mts +128 -0
- package/dist/useModal-BsGIcP8t.d.ts +128 -0
- package/dist/utils/cn.d.mts +5 -0
- package/dist/utils/cn.d.ts +5 -0
- package/dist/utils/cn.js +11 -0
- package/dist/utils/cn.mjs +2 -0
- package/dist/utils/scroll.d.mts +4 -0
- package/dist/utils/scroll.d.ts +4 -0
- package/dist/utils/scroll.js +15 -0
- package/dist/utils/scroll.mjs +2 -0
- package/dist/virtual-scroll.d.mts +34 -0
- package/dist/virtual-scroll.d.ts +34 -0
- package/dist/virtual-scroll.js +16 -0
- package/dist/virtual-scroll.mjs +3 -0
- package/package.json +291 -0
- package/scripts/setup-cursor-rules.cjs +92 -0
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import { cn } from './chunk-MCKOWMLS.mjs';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { cva } from 'class-variance-authority';
|
|
4
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
var numberInputVariants = cva("nexus-number-input", {
|
|
7
|
+
variants: {
|
|
8
|
+
size: {
|
|
9
|
+
sm: "nexus-number-input--sm",
|
|
10
|
+
md: "nexus-number-input--md",
|
|
11
|
+
lg: "nexus-number-input--lg",
|
|
12
|
+
xl: "nexus-number-input--xl"
|
|
13
|
+
},
|
|
14
|
+
state: {
|
|
15
|
+
default: "nexus-number-input--default",
|
|
16
|
+
error: "nexus-number-input--error"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
defaultVariants: { size: "md", state: "default" }
|
|
20
|
+
});
|
|
21
|
+
var ChevronUp = () => /* @__PURE__ */ jsx("svg", { className: "nexus-number-input__step-icon", viewBox: "0 0 12 12", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", children: /* @__PURE__ */ jsx("path", { d: "M3 7.5L6 4.5l3 3" }) });
|
|
22
|
+
var ChevronDown = () => /* @__PURE__ */ jsx("svg", { className: "nexus-number-input__step-icon", viewBox: "0 0 12 12", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", children: /* @__PURE__ */ jsx("path", { d: "M3 4.5L6 7.5l3-3" }) });
|
|
23
|
+
function clampValue(val, min, max) {
|
|
24
|
+
let result = val;
|
|
25
|
+
if (min !== void 0) result = Math.max(min, result);
|
|
26
|
+
if (max !== void 0) result = Math.min(max, result);
|
|
27
|
+
return result;
|
|
28
|
+
}
|
|
29
|
+
function roundToDigit(val, digit) {
|
|
30
|
+
const factor = Math.pow(10, digit);
|
|
31
|
+
return Math.round(val * factor) / factor;
|
|
32
|
+
}
|
|
33
|
+
function numberInputBind(ref, direction) {
|
|
34
|
+
return {
|
|
35
|
+
onPointerDown: (e) => {
|
|
36
|
+
if (direction === "increment") ref.current?.startIncrement(e);
|
|
37
|
+
else ref.current?.startDecrement(e);
|
|
38
|
+
},
|
|
39
|
+
onPointerUp: () => ref.current?.stop(),
|
|
40
|
+
onPointerLeave: () => ref.current?.stop()
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
var NumberInput = React.forwardRef(
|
|
44
|
+
({
|
|
45
|
+
className,
|
|
46
|
+
size,
|
|
47
|
+
error,
|
|
48
|
+
value,
|
|
49
|
+
min,
|
|
50
|
+
max,
|
|
51
|
+
step = 1,
|
|
52
|
+
digit = 0,
|
|
53
|
+
hideButtons = false,
|
|
54
|
+
disabled,
|
|
55
|
+
readOnly,
|
|
56
|
+
onValueChange,
|
|
57
|
+
placeholder,
|
|
58
|
+
...props
|
|
59
|
+
}, ref) => {
|
|
60
|
+
const inputRef = React.useRef(null);
|
|
61
|
+
const state = error ? "error" : "default";
|
|
62
|
+
const [internalValue, setInternalValue] = React.useState(value?.toString() ?? "");
|
|
63
|
+
const internalValueRef = React.useRef(internalValue);
|
|
64
|
+
const timeoutRef = React.useRef(null);
|
|
65
|
+
const pressCountRef = React.useRef(0);
|
|
66
|
+
React.useEffect(() => {
|
|
67
|
+
internalValueRef.current = internalValue;
|
|
68
|
+
}, [internalValue]);
|
|
69
|
+
React.useEffect(() => {
|
|
70
|
+
setInternalValue(value?.toString() ?? "");
|
|
71
|
+
}, [value]);
|
|
72
|
+
const commitValue = React.useCallback(
|
|
73
|
+
(raw) => {
|
|
74
|
+
if (raw === "" || raw === "-") {
|
|
75
|
+
setInternalValue(raw);
|
|
76
|
+
onValueChange?.(void 0);
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
const parsed = parseFloat(raw);
|
|
80
|
+
if (isNaN(parsed)) return;
|
|
81
|
+
const clamped = clampValue(roundToDigit(parsed, digit), min, max);
|
|
82
|
+
setInternalValue(clamped.toString());
|
|
83
|
+
onValueChange?.(clamped);
|
|
84
|
+
},
|
|
85
|
+
[digit, min, max, onValueChange]
|
|
86
|
+
);
|
|
87
|
+
const handleInputChange = React.useCallback(
|
|
88
|
+
(e) => {
|
|
89
|
+
const raw = e.target.value;
|
|
90
|
+
const regex = digit > 0 ? /^-?\d*\.?\d*$/ : /^-?\d*$/;
|
|
91
|
+
if (!regex.test(raw)) return;
|
|
92
|
+
setInternalValue(raw);
|
|
93
|
+
},
|
|
94
|
+
[digit]
|
|
95
|
+
);
|
|
96
|
+
const handleBlur = React.useCallback(() => {
|
|
97
|
+
commitValue(internalValue);
|
|
98
|
+
}, [internalValue, commitValue]);
|
|
99
|
+
const adjust = React.useCallback(
|
|
100
|
+
(delta) => {
|
|
101
|
+
const current = parseFloat(internalValueRef.current) || 0;
|
|
102
|
+
const next = clampValue(roundToDigit(current + delta, digit), min, max);
|
|
103
|
+
const nextStr = next.toString();
|
|
104
|
+
internalValueRef.current = nextStr;
|
|
105
|
+
setInternalValue(nextStr);
|
|
106
|
+
onValueChange?.(next);
|
|
107
|
+
},
|
|
108
|
+
[digit, min, max, onValueChange]
|
|
109
|
+
);
|
|
110
|
+
const handleKeyDown = React.useCallback(
|
|
111
|
+
(e) => {
|
|
112
|
+
if (e.key === "Enter") commitValue(internalValue);
|
|
113
|
+
if (e.key === "ArrowUp") {
|
|
114
|
+
e.preventDefault();
|
|
115
|
+
adjust(step);
|
|
116
|
+
}
|
|
117
|
+
if (e.key === "ArrowDown") {
|
|
118
|
+
e.preventDefault();
|
|
119
|
+
adjust(-step);
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
[internalValue, commitValue, step, adjust]
|
|
123
|
+
);
|
|
124
|
+
const stopRepeat = React.useCallback(() => {
|
|
125
|
+
if (timeoutRef.current) clearTimeout(timeoutRef.current);
|
|
126
|
+
timeoutRef.current = null;
|
|
127
|
+
pressCountRef.current = 0;
|
|
128
|
+
}, []);
|
|
129
|
+
const startRepeat = React.useCallback(
|
|
130
|
+
(delta, e) => {
|
|
131
|
+
e.preventDefault();
|
|
132
|
+
adjust(delta);
|
|
133
|
+
pressCountRef.current = 0;
|
|
134
|
+
timeoutRef.current = setTimeout(() => {
|
|
135
|
+
const accelerate = () => {
|
|
136
|
+
adjust(delta);
|
|
137
|
+
pressCountRef.current += 1;
|
|
138
|
+
let delay = 100;
|
|
139
|
+
if (pressCountRef.current > 20) delay = 30;
|
|
140
|
+
else if (pressCountRef.current > 10) delay = 50;
|
|
141
|
+
else if (pressCountRef.current > 5) delay = 75;
|
|
142
|
+
timeoutRef.current = setTimeout(accelerate, delay);
|
|
143
|
+
};
|
|
144
|
+
accelerate();
|
|
145
|
+
}, 400);
|
|
146
|
+
},
|
|
147
|
+
[adjust]
|
|
148
|
+
);
|
|
149
|
+
React.useEffect(() => () => stopRepeat(), [stopRepeat]);
|
|
150
|
+
const startRepeatRef = React.useRef(startRepeat);
|
|
151
|
+
startRepeatRef.current = startRepeat;
|
|
152
|
+
const stopRepeatRef = React.useRef(stopRepeat);
|
|
153
|
+
stopRepeatRef.current = stopRepeat;
|
|
154
|
+
const adjustRef = React.useRef(adjust);
|
|
155
|
+
adjustRef.current = adjust;
|
|
156
|
+
React.useImperativeHandle(
|
|
157
|
+
ref,
|
|
158
|
+
() => ({
|
|
159
|
+
get input() {
|
|
160
|
+
return inputRef.current;
|
|
161
|
+
},
|
|
162
|
+
increment: () => adjustRef.current(step),
|
|
163
|
+
decrement: () => adjustRef.current(-step),
|
|
164
|
+
startIncrement: (e) => startRepeatRef.current(step, e),
|
|
165
|
+
startDecrement: (e) => startRepeatRef.current(-step, e),
|
|
166
|
+
stop: () => stopRepeatRef.current()
|
|
167
|
+
}),
|
|
168
|
+
[step]
|
|
169
|
+
);
|
|
170
|
+
const padSize = size === "sm" ? "nexus-number-input__field--sm" : size === "xl" ? "nexus-number-input__field--xl" : size === "lg" ? "nexus-number-input__field--lg" : "nexus-number-input__field--md";
|
|
171
|
+
const showButtons = !hideButtons && !readOnly && !disabled;
|
|
172
|
+
const numValue = parseFloat(internalValue) || 0;
|
|
173
|
+
const isMinDisabled = min !== void 0 && numValue <= min;
|
|
174
|
+
const isMaxDisabled = max !== void 0 && numValue >= max;
|
|
175
|
+
return /* @__PURE__ */ jsxs(
|
|
176
|
+
"div",
|
|
177
|
+
{
|
|
178
|
+
className: cn(
|
|
179
|
+
numberInputVariants({ size, state }),
|
|
180
|
+
disabled && "nexus-number-input--disabled",
|
|
181
|
+
className
|
|
182
|
+
),
|
|
183
|
+
children: [
|
|
184
|
+
/* @__PURE__ */ jsx(
|
|
185
|
+
"input",
|
|
186
|
+
{
|
|
187
|
+
ref: inputRef,
|
|
188
|
+
type: "text",
|
|
189
|
+
inputMode: "decimal",
|
|
190
|
+
role: "spinbutton",
|
|
191
|
+
className: cn("nexus-number-input__field", padSize),
|
|
192
|
+
value: internalValue,
|
|
193
|
+
disabled,
|
|
194
|
+
readOnly,
|
|
195
|
+
placeholder,
|
|
196
|
+
"aria-invalid": error || void 0,
|
|
197
|
+
"aria-valuemin": min,
|
|
198
|
+
"aria-valuemax": max,
|
|
199
|
+
"aria-valuenow": internalValue ? parseFloat(internalValue) || void 0 : void 0,
|
|
200
|
+
onChange: handleInputChange,
|
|
201
|
+
onBlur: handleBlur,
|
|
202
|
+
onKeyDown: handleKeyDown,
|
|
203
|
+
...props
|
|
204
|
+
}
|
|
205
|
+
),
|
|
206
|
+
showButtons && /* @__PURE__ */ jsxs("div", { className: "nexus-number-input__buttons", children: [
|
|
207
|
+
/* @__PURE__ */ jsx(
|
|
208
|
+
"button",
|
|
209
|
+
{
|
|
210
|
+
type: "button",
|
|
211
|
+
tabIndex: -1,
|
|
212
|
+
disabled: isMaxDisabled,
|
|
213
|
+
className: "nexus-number-input__step nexus-number-input__step--up",
|
|
214
|
+
onPointerDown: (e) => startRepeat(step, e),
|
|
215
|
+
onPointerUp: stopRepeat,
|
|
216
|
+
onPointerLeave: stopRepeat,
|
|
217
|
+
"aria-label": "Increase",
|
|
218
|
+
children: /* @__PURE__ */ jsx(ChevronUp, {})
|
|
219
|
+
}
|
|
220
|
+
),
|
|
221
|
+
/* @__PURE__ */ jsx(
|
|
222
|
+
"button",
|
|
223
|
+
{
|
|
224
|
+
type: "button",
|
|
225
|
+
tabIndex: -1,
|
|
226
|
+
disabled: isMinDisabled,
|
|
227
|
+
className: "nexus-number-input__step nexus-number-input__step--down",
|
|
228
|
+
onPointerDown: (e) => startRepeat(-step, e),
|
|
229
|
+
onPointerUp: stopRepeat,
|
|
230
|
+
onPointerLeave: stopRepeat,
|
|
231
|
+
"aria-label": "Decrease",
|
|
232
|
+
children: /* @__PURE__ */ jsx(ChevronDown, {})
|
|
233
|
+
}
|
|
234
|
+
)
|
|
235
|
+
] })
|
|
236
|
+
]
|
|
237
|
+
}
|
|
238
|
+
);
|
|
239
|
+
}
|
|
240
|
+
);
|
|
241
|
+
NumberInput.displayName = "NumberInput";
|
|
242
|
+
|
|
243
|
+
export { NumberInput, numberInputBind, numberInputVariants };
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { cn } from './chunk-MCKOWMLS.mjs';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { useVirtualizer } from '@tanstack/react-virtual';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
function VirtualListInner({
|
|
7
|
+
items,
|
|
8
|
+
estimateSize,
|
|
9
|
+
renderItem,
|
|
10
|
+
overscan = 5,
|
|
11
|
+
gap = 0,
|
|
12
|
+
className,
|
|
13
|
+
style,
|
|
14
|
+
onEndReached,
|
|
15
|
+
endReachedThreshold = 200
|
|
16
|
+
}, ref) {
|
|
17
|
+
const parentRef = React.useRef(null);
|
|
18
|
+
React.useImperativeHandle(ref, () => parentRef.current);
|
|
19
|
+
const estimateFn = typeof estimateSize === "function" ? estimateSize : () => estimateSize;
|
|
20
|
+
const onEndReachedRef = React.useRef(onEndReached);
|
|
21
|
+
onEndReachedRef.current = onEndReached;
|
|
22
|
+
const virtualizer = useVirtualizer({
|
|
23
|
+
count: items.length,
|
|
24
|
+
getScrollElement: () => parentRef.current,
|
|
25
|
+
estimateSize: estimateFn,
|
|
26
|
+
overscan,
|
|
27
|
+
gap
|
|
28
|
+
});
|
|
29
|
+
React.useEffect(() => {
|
|
30
|
+
const el = parentRef.current;
|
|
31
|
+
if (!el || !onEndReachedRef.current) return;
|
|
32
|
+
const handleScroll = () => {
|
|
33
|
+
const { scrollTop, scrollHeight, clientHeight } = el;
|
|
34
|
+
if (scrollHeight - scrollTop - clientHeight < endReachedThreshold) {
|
|
35
|
+
onEndReachedRef.current?.();
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
el.addEventListener("scroll", handleScroll, { passive: true });
|
|
39
|
+
return () => el.removeEventListener("scroll", handleScroll);
|
|
40
|
+
}, [endReachedThreshold]);
|
|
41
|
+
return /* @__PURE__ */ jsx("div", { ref: parentRef, className: cn("nexus-virtual-scroll", className), style, children: /* @__PURE__ */ jsx("div", { style: { height: virtualizer.getTotalSize(), width: "100%", position: "relative" }, children: virtualizer.getVirtualItems().map((virtualItem) => /* @__PURE__ */ jsx(
|
|
42
|
+
"div",
|
|
43
|
+
{
|
|
44
|
+
style: {
|
|
45
|
+
position: "absolute",
|
|
46
|
+
top: 0,
|
|
47
|
+
left: 0,
|
|
48
|
+
width: "100%",
|
|
49
|
+
height: virtualItem.size,
|
|
50
|
+
transform: `translateY(${virtualItem.start}px)`
|
|
51
|
+
},
|
|
52
|
+
children: renderItem(items[virtualItem.index], virtualItem.index, virtualItem)
|
|
53
|
+
},
|
|
54
|
+
virtualItem.key
|
|
55
|
+
)) }) });
|
|
56
|
+
}
|
|
57
|
+
var VirtualList = React.forwardRef(VirtualListInner);
|
|
58
|
+
function VirtualGridInner({
|
|
59
|
+
items,
|
|
60
|
+
columns,
|
|
61
|
+
estimateSize,
|
|
62
|
+
renderItem,
|
|
63
|
+
overscan = 3,
|
|
64
|
+
gap = 0,
|
|
65
|
+
className,
|
|
66
|
+
style,
|
|
67
|
+
onEndReached,
|
|
68
|
+
endReachedThreshold = 200
|
|
69
|
+
}, ref) {
|
|
70
|
+
const parentRef = React.useRef(null);
|
|
71
|
+
React.useImperativeHandle(ref, () => parentRef.current);
|
|
72
|
+
const rowCount = Math.ceil(items.length / columns);
|
|
73
|
+
const estimateFn = typeof estimateSize === "function" ? estimateSize : () => estimateSize;
|
|
74
|
+
const onEndReachedRef = React.useRef(onEndReached);
|
|
75
|
+
onEndReachedRef.current = onEndReached;
|
|
76
|
+
const virtualizer = useVirtualizer({
|
|
77
|
+
count: rowCount,
|
|
78
|
+
getScrollElement: () => parentRef.current,
|
|
79
|
+
estimateSize: estimateFn,
|
|
80
|
+
overscan,
|
|
81
|
+
gap
|
|
82
|
+
});
|
|
83
|
+
React.useEffect(() => {
|
|
84
|
+
const el = parentRef.current;
|
|
85
|
+
if (!el || !onEndReachedRef.current) return;
|
|
86
|
+
const handleScroll = () => {
|
|
87
|
+
const { scrollTop, scrollHeight, clientHeight } = el;
|
|
88
|
+
if (scrollHeight - scrollTop - clientHeight < endReachedThreshold) {
|
|
89
|
+
onEndReachedRef.current?.();
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
el.addEventListener("scroll", handleScroll, { passive: true });
|
|
93
|
+
return () => el.removeEventListener("scroll", handleScroll);
|
|
94
|
+
}, [endReachedThreshold]);
|
|
95
|
+
return /* @__PURE__ */ jsx("div", { ref: parentRef, className: cn("nexus-virtual-scroll", className), style, children: /* @__PURE__ */ jsx("div", { style: { height: virtualizer.getTotalSize(), width: "100%", position: "relative" }, children: virtualizer.getVirtualItems().map((virtualRow) => {
|
|
96
|
+
const rowStart = virtualRow.index * columns;
|
|
97
|
+
const rowItems = items.slice(rowStart, rowStart + columns);
|
|
98
|
+
return /* @__PURE__ */ jsx(
|
|
99
|
+
"div",
|
|
100
|
+
{
|
|
101
|
+
style: {
|
|
102
|
+
position: "absolute",
|
|
103
|
+
top: 0,
|
|
104
|
+
left: 0,
|
|
105
|
+
width: "100%",
|
|
106
|
+
height: virtualRow.size,
|
|
107
|
+
transform: `translateY(${virtualRow.start}px)`,
|
|
108
|
+
display: "grid",
|
|
109
|
+
gridTemplateColumns: `repeat(${columns}, 1fr)`,
|
|
110
|
+
gap
|
|
111
|
+
},
|
|
112
|
+
children: rowItems.map((item, colIdx) => /* @__PURE__ */ jsx("div", { children: renderItem(item, rowStart + colIdx) }, rowStart + colIdx))
|
|
113
|
+
},
|
|
114
|
+
virtualRow.key
|
|
115
|
+
);
|
|
116
|
+
}) }) });
|
|
117
|
+
}
|
|
118
|
+
var VirtualGrid = React.forwardRef(VirtualGridInner);
|
|
119
|
+
|
|
120
|
+
export { VirtualGrid, VirtualList };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
+
|
|
6
|
+
function _interopNamespace(e) {
|
|
7
|
+
if (e && e.__esModule) return e;
|
|
8
|
+
var n = Object.create(null);
|
|
9
|
+
if (e) {
|
|
10
|
+
Object.keys(e).forEach(function (k) {
|
|
11
|
+
if (k !== 'default') {
|
|
12
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
13
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return e[k]; }
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
n.default = e;
|
|
21
|
+
return Object.freeze(n);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
25
|
+
|
|
26
|
+
// src/components/ErrorBoundary.tsx
|
|
27
|
+
var ErrorBoundary = class extends React__namespace.Component {
|
|
28
|
+
constructor(props) {
|
|
29
|
+
super(props);
|
|
30
|
+
this.state = { hasError: false, error: null };
|
|
31
|
+
}
|
|
32
|
+
static getDerivedStateFromError(error) {
|
|
33
|
+
return { hasError: true, error };
|
|
34
|
+
}
|
|
35
|
+
componentDidCatch(error, errorInfo) {
|
|
36
|
+
this.props.onError?.(error, errorInfo);
|
|
37
|
+
}
|
|
38
|
+
render() {
|
|
39
|
+
if (this.state.hasError) {
|
|
40
|
+
if (this.props.fallback !== void 0) {
|
|
41
|
+
return this.props.fallback;
|
|
42
|
+
}
|
|
43
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
44
|
+
"div",
|
|
45
|
+
{
|
|
46
|
+
role: "alert",
|
|
47
|
+
className: "nexus-error-boundary",
|
|
48
|
+
children: [
|
|
49
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "nexus-error-boundary__title", children: "Something went wrong" }),
|
|
50
|
+
this.state.error && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "nexus-error-boundary__message", children: this.state.error.message })
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
return this.props.children;
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
exports.ErrorBoundary = ErrorBoundary;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { cn } from './chunk-MCKOWMLS.mjs';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { cva } from 'class-variance-authority';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
var dividerVariants = cva("nexus-divider", {
|
|
7
|
+
variants: {
|
|
8
|
+
orientation: {
|
|
9
|
+
horizontal: "nexus-divider--horizontal",
|
|
10
|
+
vertical: "nexus-divider--vertical"
|
|
11
|
+
},
|
|
12
|
+
variant: {
|
|
13
|
+
solid: "nexus-divider--solid",
|
|
14
|
+
dashed: "nexus-divider--dashed",
|
|
15
|
+
dotted: "nexus-divider--dotted"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
defaultVariants: {
|
|
19
|
+
orientation: "horizontal",
|
|
20
|
+
variant: "solid"
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
var Divider = React.forwardRef(
|
|
24
|
+
({ className, orientation, variant, color, style, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
25
|
+
"div",
|
|
26
|
+
{
|
|
27
|
+
ref,
|
|
28
|
+
role: "separator",
|
|
29
|
+
"aria-orientation": orientation ?? "horizontal",
|
|
30
|
+
className: cn(dividerVariants({ orientation, variant }), className),
|
|
31
|
+
style: { ...style, ...color ? { borderColor: color } : {} },
|
|
32
|
+
...props
|
|
33
|
+
}
|
|
34
|
+
)
|
|
35
|
+
);
|
|
36
|
+
Divider.displayName = "Divider";
|
|
37
|
+
|
|
38
|
+
export { Divider, dividerVariants };
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var react = require('react');
|
|
4
|
+
|
|
5
|
+
// src/hooks/useDraggableBottomSheet.ts
|
|
6
|
+
function useDraggableBottomSheet({
|
|
7
|
+
enabled = true,
|
|
8
|
+
onClose,
|
|
9
|
+
threshold = 0.5,
|
|
10
|
+
velocityThreshold = 0.3,
|
|
11
|
+
maxDragDistance = 600
|
|
12
|
+
}) {
|
|
13
|
+
const [translateY, setTranslateY] = react.useState(0);
|
|
14
|
+
const [dimOpacity, setDimOpacity] = react.useState(1);
|
|
15
|
+
const [isAnimating, setIsAnimating] = react.useState(false);
|
|
16
|
+
const dragStateRef = react.useRef({
|
|
17
|
+
isDragging: false,
|
|
18
|
+
startY: 0,
|
|
19
|
+
currentY: 0,
|
|
20
|
+
startTime: 0,
|
|
21
|
+
modalHeight: 0
|
|
22
|
+
});
|
|
23
|
+
const handleTouchStart = react.useCallback(
|
|
24
|
+
(e) => {
|
|
25
|
+
if (!enabled) return;
|
|
26
|
+
const touch = e.touches[0];
|
|
27
|
+
const target = e.currentTarget;
|
|
28
|
+
const modalInner = target.querySelector(".modal-inner");
|
|
29
|
+
if (!modalInner) return;
|
|
30
|
+
const scrollableElement = e.target.closest(".modal-body");
|
|
31
|
+
if (scrollableElement && scrollableElement.scrollTop > 0) return;
|
|
32
|
+
dragStateRef.current = {
|
|
33
|
+
isDragging: true,
|
|
34
|
+
startY: touch.clientY,
|
|
35
|
+
currentY: touch.clientY,
|
|
36
|
+
startTime: Date.now(),
|
|
37
|
+
modalHeight: modalInner.offsetHeight
|
|
38
|
+
};
|
|
39
|
+
setIsAnimating(false);
|
|
40
|
+
},
|
|
41
|
+
[enabled]
|
|
42
|
+
);
|
|
43
|
+
const handleTouchMove = react.useCallback(
|
|
44
|
+
(e) => {
|
|
45
|
+
if (!enabled || !dragStateRef.current.isDragging) return;
|
|
46
|
+
const touch = e.touches[0];
|
|
47
|
+
const deltaY = touch.clientY - dragStateRef.current.startY;
|
|
48
|
+
if (deltaY < 0) {
|
|
49
|
+
const resistedDelta = deltaY * 0.3;
|
|
50
|
+
setTranslateY(Math.max(resistedDelta, -50));
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
const clampedDelta = Math.min(deltaY, maxDragDistance);
|
|
54
|
+
dragStateRef.current.currentY = touch.clientY;
|
|
55
|
+
setTranslateY(clampedDelta);
|
|
56
|
+
const dragRatio = Math.min(
|
|
57
|
+
clampedDelta / dragStateRef.current.modalHeight,
|
|
58
|
+
1
|
|
59
|
+
);
|
|
60
|
+
const opacity = Math.max(1 - dragRatio * 0.7, 0.3);
|
|
61
|
+
setDimOpacity(opacity);
|
|
62
|
+
if (Math.abs(deltaY) > 10) e.preventDefault();
|
|
63
|
+
},
|
|
64
|
+
[enabled, maxDragDistance]
|
|
65
|
+
);
|
|
66
|
+
const handleTouchEnd = react.useCallback(() => {
|
|
67
|
+
if (!enabled || !dragStateRef.current.isDragging) return;
|
|
68
|
+
const { startY, currentY, startTime, modalHeight } = dragStateRef.current;
|
|
69
|
+
const deltaY = currentY - startY;
|
|
70
|
+
const deltaTime = Date.now() - startTime;
|
|
71
|
+
const velocity = deltaY / deltaTime;
|
|
72
|
+
dragStateRef.current.isDragging = false;
|
|
73
|
+
setIsAnimating(true);
|
|
74
|
+
const isFastSwipe = velocity > velocityThreshold;
|
|
75
|
+
const isOverThreshold = deltaY > modalHeight * threshold;
|
|
76
|
+
const isDraggedDown = deltaY > 0;
|
|
77
|
+
if (isDraggedDown && (isFastSwipe || isOverThreshold)) {
|
|
78
|
+
setTranslateY(modalHeight + 100);
|
|
79
|
+
setDimOpacity(0);
|
|
80
|
+
setTimeout(() => {
|
|
81
|
+
onClose();
|
|
82
|
+
}, 250);
|
|
83
|
+
} else {
|
|
84
|
+
setTranslateY(0);
|
|
85
|
+
setDimOpacity(1);
|
|
86
|
+
}
|
|
87
|
+
}, [enabled, onClose, threshold, velocityThreshold]);
|
|
88
|
+
if (!enabled) {
|
|
89
|
+
return {
|
|
90
|
+
onTouchStart: void 0,
|
|
91
|
+
onTouchMove: void 0,
|
|
92
|
+
onTouchEnd: void 0,
|
|
93
|
+
translateY: 0,
|
|
94
|
+
dimOpacity: 1,
|
|
95
|
+
isAnimating: false
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
onTouchStart: handleTouchStart,
|
|
100
|
+
onTouchMove: handleTouchMove,
|
|
101
|
+
onTouchEnd: handleTouchEnd,
|
|
102
|
+
translateY,
|
|
103
|
+
dimOpacity,
|
|
104
|
+
isAnimating
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
exports.useDraggableBottomSheet = useDraggableBottomSheet;
|