@iamfiro/design 0.3.2 → 0.3.4
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/INDEX.md +1 -1
- package/agents/brand-icon/AGENTS.md +1 -1
- package/agents/social-login-button/AGENTS.md +4 -3
- package/lib/components/Accordion/Accordion2.js +87 -87
- package/lib/components/ActionBar/ActionBar2.js +42 -44
- package/lib/components/Alert/Alert2.js +61 -61
- package/lib/components/AppShell/AppShell2.js +70 -71
- package/lib/components/AreaChart/AreaChart.js +38 -40
- package/lib/components/BarChart/BarChart2.js +126 -126
- package/lib/components/BarList/BarList2.js +95 -95
- package/lib/components/Breadcrumb/Breadcrumb2.js +68 -66
- package/lib/components/Calendar/Calendar2.js +164 -164
- package/lib/components/Calendar/DatePicker2.js +103 -102
- package/lib/components/Calendar/date.js +64 -66
- package/lib/components/Card/Card2.js +67 -67
- package/lib/components/CardFrame/CardFrame2.js +43 -51
- package/lib/components/Chart/ChartParts.js +94 -94
- package/lib/components/Chart/chart2.js +52 -52
- package/lib/components/Chart/useChartInteraction.js +54 -54
- package/lib/components/ChatBubble/ChatBubble2.js +92 -92
- package/lib/components/ChatBubble/formatChatTime.js +35 -41
- package/lib/components/ChatComposer/ChatComposer2.js +63 -63
- package/lib/components/CodeBlock/CodeBlock2.js +61 -61
- package/lib/components/CodeBlock/highlight.js +84 -84
- package/lib/components/ColorPicker/ColorPicker2.js +387 -386
- package/lib/components/ColorPicker/color.js +71 -71
- package/lib/components/ColorPicker/presets.js +41 -46
- package/lib/components/Combobox/Combobox2.js +117 -118
- package/lib/components/CommandMenu/CommandMenu.js +127 -127
- package/lib/components/Comment/Comment2.js +86 -60
- package/lib/components/ContextMenu/ContextMenu2.js +77 -75
- package/lib/components/DataGrid/DataGrid2.js +1192 -1190
- package/lib/components/DataGrid/GridPopover.js +94 -94
- package/lib/components/DataGrid/anchor.js +34 -31
- package/lib/components/DataGrid/model.js +284 -283
- package/lib/components/DataGrid/panels.js +398 -399
- package/lib/components/DataGrid/typeMeta.js +51 -50
- package/lib/components/DataGrid/types.js +38 -39
- package/lib/components/DescriptionList/DescriptionList2.js +103 -103
- package/lib/components/Dialog/AlertDialog.js +79 -78
- package/lib/components/Dialog/Dialog2.js +59 -59
- package/lib/components/Dialog/modal.js +44 -46
- package/lib/components/Drawer/Drawer2.js +130 -129
- package/lib/components/DropdownMenu/DropdownMenu2.js +235 -233
- package/lib/components/DropdownMenu/menuCore.js +69 -42
- package/lib/components/Dropzone/Dropzone2.js +79 -78
- package/lib/components/EmptyState/EmptyState2.js +34 -35
- package/lib/components/FileChip/FileChip2.js +73 -73
- package/lib/components/FileUpload/FileUpload.js +159 -159
- package/lib/components/FilterChips/FilterChips2.js +61 -61
- package/lib/components/FunnelChart/FunnelChart2.js +161 -161
- package/lib/components/FunnelChart/funnel.js +48 -44
- package/lib/components/Highlight/Highlight2.js +43 -43
- package/lib/components/HoverCard/HoverCard.js +59 -84
- package/lib/components/InlineDiff/InlineDiff2.js +112 -112
- package/lib/components/InlineDiff/diff.js +90 -90
- package/lib/components/InlineDiff/useDiffReview.js +64 -63
- package/lib/components/Kanban/Kanban2.js +386 -387
- package/lib/components/Kanban/KanbanCard.js +70 -95
- package/lib/components/Kanban/move.js +50 -46
- package/lib/components/LineChart/LineChart2.js +211 -211
- package/lib/components/List/List2.js +53 -54
- package/lib/components/Listbox/Listbox2.js +115 -115
- package/lib/components/Marker/Marker2.js +56 -61
- package/lib/components/Menubar/Menubar2.js +144 -141
- package/lib/components/MultiSelect/MultiSelect2.js +108 -108
- package/lib/components/NavigationMenu/NavigationMenu2.js +298 -299
- package/lib/components/NoticeStack/NoticeStack2.js +84 -84
- package/lib/components/NumberStepper/NumberStepper2.js +65 -66
- package/lib/components/OtpInput/OtpInput2.js +70 -69
- package/lib/components/Pagination/Pagination2.js +106 -106
- package/lib/components/Pagination/paginationRange.js +37 -39
- package/lib/components/PhoneInput/PhoneInput.js +87 -88
- package/lib/components/PieChart/PieChart2.js +160 -160
- package/lib/components/PieChart/arc.js +65 -62
- package/lib/components/PieChart/useArcTween.js +53 -60
- package/lib/components/Popover/Popover2.js +62 -62
- package/lib/components/ProgressTracker/ProgressTracker2.js +121 -121
- package/lib/components/Rating/Rating2.js +82 -81
- package/lib/components/Resizable/Resizable2.js +126 -127
- package/lib/components/Resizable/layout.js +73 -73
- package/lib/components/ScaledPreview/ScaledPreview2.js +68 -67
- package/lib/components/ScatterChart/ScatterChart2.js +214 -213
- package/lib/components/ScatterChart/scatter.js +47 -49
- package/lib/components/ScrollArea/ScrollArea2.js +117 -118
- package/lib/components/Select/Select2.js +78 -79
- package/lib/components/Sidebar/Sidebar2.js +69 -69
- package/lib/components/Skeleton/Skeleton2.js +57 -57
- package/lib/components/Slider/Slider2.js +73 -74
- package/lib/components/SocialLoginButton/SocialLoginButton.js +76 -68
- package/lib/components/SparkChart/SparkChart2.js +145 -145
- package/lib/components/SparkChart/spark.js +64 -42
- package/lib/components/Sparkbar/Sparkbar2.js +60 -60
- package/lib/components/SplitView/SplitView2.js +51 -52
- package/lib/components/Stat/Stat2.js +90 -90
- package/lib/components/StepList/StepList2.js +70 -70
- package/lib/components/Table/Table2.js +70 -70
- package/lib/components/Tabs/Tabs2.js +81 -81
- package/lib/components/TagInput/TagInput2.js +220 -217
- package/lib/components/TimePicker/TimePicker2.js +187 -186
- package/lib/components/TimePicker/time.js +63 -62
- package/lib/components/Timeline/Timeline2.js +199 -199
- package/lib/components/Timeline/scale.js +67 -64
- package/lib/components/Toast/Toaster.js +100 -98
- package/lib/components/Toast/store.js +90 -94
- package/lib/components/ToggleGroup/ToggleGroup2.js +76 -76
- package/lib/components/Toolbar/Toolbar2.js +163 -161
- package/lib/components/Tracker/Tracker2.js +82 -82
- package/lib/components/TreeDiagram/TreeDiagram2.js +123 -124
- package/lib/components/TreeView/TreeView2.js +154 -152
- package/lib/hooks/timing.js +31 -30
- package/lib/hooks/useControllableState.js +37 -38
- package/lib/hooks/useCountdown.js +53 -56
- package/lib/hooks/useDigitInput.js +66 -41
- package/lib/hooks/useDismiss.js +55 -58
- package/lib/hooks/useElapsed.js +57 -55
- package/lib/hooks/useFloating.js +44 -44
- package/lib/hooks/useFocusTrap.js +70 -46
- package/lib/hooks/usePresence.js +23 -22
- package/lib/hooks/usePressToOpen.js +51 -51
- package/lib/hooks/useScrollLock.js +57 -58
- package/lib/hooks/useSelection.js +49 -52
- package/lib/index.js +65 -65
- package/lib/primitives/AspectRatio2.js +57 -57
- package/lib/primitives/BrandIcon.js +189 -158
- package/lib/primitives/ColorDot2.js +50 -45
- package/lib/primitives/CopyButton2.js +52 -50
- package/lib/primitives/CountBadge2.js +53 -55
- package/lib/primitives/Countdown2.js +28 -25
- package/lib/primitives/Delta2.js +41 -41
- package/lib/primitives/Elapsed.js +47 -47
- package/lib/primitives/FileIcon2.js +86 -86
- package/lib/primitives/Flag2.js +122 -122
- package/lib/primitives/IconStack2.js +55 -31
- package/lib/primitives/IconTile2.js +43 -43
- package/lib/primitives/Kbd2.js +55 -55
- package/lib/primitives/Layout2.js +78 -78
- package/lib/primitives/Link2.js +39 -36
- package/lib/primitives/MaskedText2.js +74 -52
- package/lib/primitives/Progress2.js +67 -66
- package/lib/primitives/RelativeTime.js +54 -61
- package/lib/primitives/SearchInput2.js +45 -45
- package/lib/primitives/SelectorButton2.js +72 -76
- package/lib/primitives/Spinner2.js +56 -56
- package/lib/primitives/StatusIcon2.js +63 -63
- package/lib/primitives/Swatch2.js +55 -61
- package/lib/primitives/Tooltip2.js +78 -78
- package/lib/primitives/Typography2.js +53 -53
- package/lib/primitives/formatCountdown.js +30 -29
- package/lib/primitives/formatElapsed.js +46 -49
- package/lib/primitives/formatRelativeTime.js +76 -50
- package/lib/primitives/hotkey.js +80 -80
- package/lib/primitives/index.js +169 -168
- package/lib/primitives/maskValue.js +55 -50
- package/lib/style.css +1 -1
- package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +1 -1
- package/lib/types/primitives/BrandIcon.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,47 +1,33 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const e =
|
|
3
|
-
function
|
|
4
|
-
|
|
5
|
-
let r = f(), i = r[e];
|
|
6
|
-
t.iIaTPT === void 0 && (t.LpjfRB = function(e) {
|
|
7
|
-
let t = "", n = "";
|
|
8
|
-
for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
|
|
9
|
-
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
10
|
-
return decodeURIComponent(n);
|
|
11
|
-
}, t.eWFpWb = {}, t.iIaTPT = !0);
|
|
12
|
-
let a = r[0];
|
|
13
|
-
t.BDBxYh !== a && (t.eWFpWb = {}, t.BDBxYh = a);
|
|
14
|
-
let o = t.eWFpWb[e];
|
|
15
|
-
return o === void 0 ? (i = t.LpjfRB(i), t.eWFpWb[e] = i) : i = o, i;
|
|
16
|
-
}
|
|
17
|
-
(function(e, n) {
|
|
18
|
-
let r = t, i = e();
|
|
2
|
+
const e = v;
|
|
3
|
+
(function(e, t) {
|
|
4
|
+
let n = v, r = e();
|
|
19
5
|
for (;;) try {
|
|
20
|
-
if (parseInt(
|
|
21
|
-
|
|
6
|
+
if (parseInt(n(467)) / 1 * (parseInt(n(417)) / 2) + parseInt(n(454)) / 3 + parseInt(n(491)) / 4 * (parseInt(n(461)) / 5) + parseInt(n(420)) / 6 + parseInt(n(432)) / 7 * (-parseInt(n(483)) / 8) + parseInt(n(481)) / 9 + -parseInt(n(476)) / 10 * (parseInt(n(460)) / 11) == t) break;
|
|
7
|
+
r.push(r.shift());
|
|
22
8
|
} catch {
|
|
23
|
-
|
|
9
|
+
r.push(r.shift());
|
|
24
10
|
}
|
|
25
|
-
})(
|
|
26
|
-
import { TIMING as
|
|
27
|
-
import { useControllableState as
|
|
28
|
-
import { Button as
|
|
29
|
-
import { focusableIn as
|
|
30
|
-
import { modalTrigger as
|
|
11
|
+
})(d, 936374);
|
|
12
|
+
import { TIMING as t } from "../../hooks/timing.js";
|
|
13
|
+
import { useControllableState as n } from "../../hooks/useControllableState.js";
|
|
14
|
+
import { Button as r, cx as i } from "../../primitives/index.js";
|
|
15
|
+
import { focusableIn as a } from "../../hooks/useFocusTrap.js";
|
|
16
|
+
import { modalTrigger as o, useModalLayer as s } from "../Dialog/modal.js";
|
|
31
17
|
/* empty css */
|
|
32
|
-
import { useEffect as
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
18
|
+
import { useEffect as c, useId as ee, useRef as l, useState as u } from "react";
|
|
19
|
+
import { X as te } from "lucide-react";
|
|
20
|
+
function d() {
|
|
21
|
+
let e = /* @__PURE__ */ "Cg9Z.lxrPDgXL.C2v0uhjVCgvYDhK.ywrKrxzLBNrmAxn0zw5LCG.y3vYCMvUDa.BwLU.mJi0mZe1n2vXv3v4yW.zhmTzhjHD2vYls1PBNnLDa.lMrZlwrYyxDLCL9FAgfUzgXL.zhmTzhjHD2vYx19Oyw5KBgu.DgLTzvn0yw1W.zhmTzhjHD2vYx19Wyw5LBc0T.Aw5KzxHpzG.zhmTzhjHD2vYx19Wyw5LBc0TAgLKzs10AxrSzq.yNv0Dg9U.Bw91BNrLza.Bw92zwq.Dhj1zq.zM9JDxm.zgLHBg9N.lwrLC2m.B2zMC2v0.Dg9W.y2XVC2vK.zhmTzhjHD2vYls1TB2rLBgvZCW.zNjVBuHHBMrSzq.AgfZug9PBNrLCKnHChr1CMu.BgvUz3rO.mZu4mtK3m0jKtMTVAG.zhmTzhjHD2vYx19MB290zxi.y2XVC2LUzW.y29UDgfPBNm.zhjHz2DPBMC.zhmTC3iTB25SEq.mJjuBfPwuuG.mJG1ANzpsNzn.y3vYCMvUDfrHCMDLDa.zgf0yxnLDa.ls1FzhjHzW.zMLSDgvY.y2XPzw50wq.ntqYndfRCxPcCMu.zhmTzhjHD2vY.zxHW.Cg9PBNrLCKLK.C2v0ug9PBNrLCKnHChr1CMu.CMLNAhq.ywn0AxzLrwXLBwvUDa.B3bHy2L0Eq.B2zMC2v0v2LKDgG.mtm2mJaXmtbUtuDcB0K.zhmTzhjHD2vYx19IB2r5igrZlxnJCM9SBa.yM9KEq.CMvTB3zLuhjVCgvYDhK.y2XVC2vZDa.mtaYnZyXodjTzNjyDKu.C2fTCgXLCW.mtzhChjtwLG.rxnJyxbL.A2v5zg93BG.CMvSzwfZzvbVAw50zxjdyxb0DxjL.y2XPzw50wa.yM90Dg9T.zhmTzhjHD2vYx19OzwfKzxi.C3r5Bgu.odaWnJbMtgHlsvi.DgfYz2v0.yMfZzq.A2v5.zhmTzhjHD2vYx19Wyw5LBc0TC25HChm.C3rVCfbYB3bHz2f0Aw9U.Bwf4.C2L6zq.mtbesNPyDve.ywjZ.C3rHCNq.mZmYmdy5nhHIC1fosa.CMvKDwnL.zhmTzhjHD2vYx19VDMvYBgf5.B2zMC2v0sgvPz2H0.7iUC7yQ4ioYKHoYDToQ4Sa.zgL2".split(".");
|
|
22
|
+
return d = function() {
|
|
36
23
|
return e;
|
|
37
|
-
},
|
|
24
|
+
}, d();
|
|
38
25
|
}
|
|
39
|
-
import {
|
|
40
|
-
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
26
|
+
import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
41
27
|
import { createPortal as ne } from "react-dom";
|
|
42
|
-
var re = 260, ie = .4, ae = 180, oe = .35,
|
|
43
|
-
function
|
|
44
|
-
let k = e, [A, j] =
|
|
28
|
+
var re = 260, ie = .4, ae = 180, oe = .35, h = (t) => 72 * (1 - Math[e(469)](-t / 140));
|
|
29
|
+
function g({ open: d, defaultOpen: g = !1, onOpenChange: _, trigger: v, title: y, description: b, children: x, footer: S, side: C = e(472), size: se = "md", dismissible: w = !0, showClose: ce = !0, initialFocus: T, hideTitle: E = !1, modal: D = !0, inset: le = !1, handle: ue, snapPoints: de, snap: O, defaultSnap: fe, onSnapChange: pe, className: me }) {
|
|
30
|
+
let k = e, [A, j] = n(d, g, _), M = l(null), N = l(null), P = ee(), { presence: F, close: he, onKeyDown: ge, outsideProps: _e } = s({
|
|
45
31
|
open: A,
|
|
46
32
|
setOpen: j,
|
|
47
33
|
dismissible: w,
|
|
@@ -49,57 +35,57 @@ function _({ open: t, defaultOpen: f = !1, onOpenChange: _, trigger: v, title: y
|
|
|
49
35
|
panelRef: M,
|
|
50
36
|
initialFocus: T,
|
|
51
37
|
modal: D
|
|
52
|
-
}), ve =
|
|
38
|
+
}), ve = o(v, A, () => j(!0)), I = C === k(448) || C === k(488), L = I && (ue ?? C === k(488)), R = I && de?.[k(453)] ? [...de].sort((e, t) => e - t) : [1], z = fe ?? R[R[k(453)] - 1], [ye, B] = u(z), [be, xe] = u(A);
|
|
53
39
|
A !== be && (xe(A), A && B(z));
|
|
54
40
|
let V = O ?? ye, H = (e) => {
|
|
55
41
|
O === void 0 && B(e), pe?.(e);
|
|
56
42
|
};
|
|
57
|
-
|
|
58
|
-
let e = k, t = M[e(
|
|
43
|
+
c(() => {
|
|
44
|
+
let e = k, t = M[e(430)];
|
|
59
45
|
if (D || !A || !t) return;
|
|
60
|
-
let n = document
|
|
46
|
+
let n = document[e(473)], r = requestAnimationFrame(() => (T?.[e(430)] ?? a(t)[0] ?? t)[e(444)]({ preventScroll: !0 }));
|
|
61
47
|
return () => {
|
|
62
48
|
let i = e;
|
|
63
|
-
cancelAnimationFrame(r), t[i(
|
|
49
|
+
cancelAnimationFrame(r), t[i(457)](document.activeElement) && n?.[i(444)]({ preventScroll: !0 });
|
|
64
50
|
};
|
|
65
51
|
}, [
|
|
66
52
|
D,
|
|
67
53
|
A,
|
|
68
54
|
T
|
|
69
|
-
]),
|
|
70
|
-
let e = k, t = M
|
|
71
|
-
A && t && (t[e(
|
|
55
|
+
]), c(() => {
|
|
56
|
+
let e = k, t = M[e(430)];
|
|
57
|
+
A && t && (t.style[e(479)](e(464)), delete t[e(463)].dragging, N[e(430)] && (N[e(430)][e(490)][e(474)] = ""));
|
|
72
58
|
}, [A]);
|
|
73
|
-
let U =
|
|
74
|
-
|
|
59
|
+
let U = l(null), W = l(!1), G = l(() => {});
|
|
60
|
+
c(() => () => G.current(), []);
|
|
75
61
|
let K = (e, t) => (1 - e) * t, q = (e, t) => {
|
|
76
|
-
let n = k, r = M
|
|
62
|
+
let n = k, r = M.current;
|
|
77
63
|
if (!r) return;
|
|
78
64
|
if (e === null) {
|
|
79
|
-
r[n(
|
|
65
|
+
r.style[n(479)](n(464)), delete r[n(463)][n(458)], N[n(430)] && (N[n(430)][n(490)][n(474)] = "");
|
|
80
66
|
return;
|
|
81
67
|
}
|
|
82
|
-
r[n(
|
|
83
|
-
let i = K(R[R[n(
|
|
84
|
-
N
|
|
68
|
+
r[n(463)][n(458)] = "", r[n(490)][n(428)](n(464), e - K(V, t) + "px");
|
|
69
|
+
let i = K(R[R[n(453)] - 1], t);
|
|
70
|
+
N[n(430)] && (N[n(430)][n(490)][n(474)] = String(Math[n(431)](1, Math[n(497)](0, 1 - (e - i) / (t - i)))));
|
|
85
71
|
}, J = () => {
|
|
86
|
-
let e = k, t = U
|
|
87
|
-
U[e(
|
|
72
|
+
let e = k, t = U[e(430)];
|
|
73
|
+
U[e(430)] = null, G[e(430)](), t?.el[e(452)]?.(t.pointerId) && t.el[e(486)](t[e(470)]);
|
|
88
74
|
}, Y = () => {
|
|
89
75
|
J(), q(null, 0);
|
|
90
|
-
}, X = (e) => I ? e[k(
|
|
76
|
+
}, X = (e) => I ? e[k(466)] : e[k(487)], Se = C === "bottom" || C === k(472) ? 1 : -1, Z = L ? {
|
|
91
77
|
onPointerDown: (e) => {
|
|
92
78
|
let t = k;
|
|
93
|
-
if (!L || e[t(
|
|
94
|
-
let n = e[t(
|
|
95
|
-
if (!n[t(
|
|
96
|
-
let r = M
|
|
79
|
+
if (!L || e[t(440)] !== 0 || F[t(456)]) return;
|
|
80
|
+
let n = e[t(492)];
|
|
81
|
+
if (!n[t(480)](t(434)) && n[t(480)]("button, a, input, textarea, select, [role=\"button\"]")) return;
|
|
82
|
+
let r = M[t(430)];
|
|
97
83
|
if (!r) return;
|
|
98
|
-
let i = I ? r[t(
|
|
99
|
-
U
|
|
100
|
-
pointerId: e
|
|
101
|
-
el: e
|
|
102
|
-
fromHandle: !!n[t(
|
|
84
|
+
let i = I ? r[t(423)] : r[t(475)], a = X(e);
|
|
85
|
+
U.current = {
|
|
86
|
+
pointerId: e.pointerId,
|
|
87
|
+
el: e[t(462)],
|
|
88
|
+
fromHandle: !!n[t(480)](t(434)),
|
|
103
89
|
start: a,
|
|
104
90
|
base: K(V, i),
|
|
105
91
|
size: i,
|
|
@@ -107,137 +93,152 @@ function _({ open: t, defaultOpen: f = !1, onOpenChange: _, trigger: v, title: y
|
|
|
107
93
|
moved: !1,
|
|
108
94
|
samples: [{
|
|
109
95
|
pos: a,
|
|
110
|
-
t: e[t(
|
|
96
|
+
t: e[t(436)]
|
|
111
97
|
}]
|
|
112
|
-
}, W[t(
|
|
98
|
+
}, W[t(430)] = !1, e[t(462)][t(471)]?.(e[t(470)]);
|
|
113
99
|
let o = (e) => {
|
|
114
100
|
let n = t;
|
|
115
|
-
e[n(
|
|
101
|
+
e[n(494)] === n(484) && (e.preventDefault(), e[n(496)](), W.current = !!U[n(430)]?.[n(451)], Y());
|
|
116
102
|
};
|
|
117
|
-
window[t(
|
|
118
|
-
|
|
103
|
+
window[t(429)](t(485), o, !0), G[t(430)] = () => {
|
|
104
|
+
let e = t;
|
|
105
|
+
window.removeEventListener("keydown", o, !0), G[e(430)] = () => {};
|
|
119
106
|
};
|
|
120
107
|
},
|
|
121
108
|
onPointerMove: (e) => {
|
|
122
|
-
let
|
|
123
|
-
if (!r || e[
|
|
124
|
-
let i = X(e), a = (i - r[
|
|
125
|
-
if (!r[
|
|
126
|
-
r[
|
|
109
|
+
let n = k, r = U[n(430)];
|
|
110
|
+
if (!r || e[n(470)] !== r[n(470)]) return;
|
|
111
|
+
let i = X(e), a = (i - r[n(419)]) * Se;
|
|
112
|
+
if (!r[n(442)] && Math[n(418)](a) < t.dragThreshold) return;
|
|
113
|
+
r[n(442)] = !0, r[n(482)] = [...r[n(482)][n(465)]((t) => e.timeStamp - t.t < 100), {
|
|
127
114
|
pos: i,
|
|
128
|
-
t: e
|
|
115
|
+
t: e.timeStamp
|
|
129
116
|
}];
|
|
130
|
-
let o = K(R[R[
|
|
131
|
-
c < o ? c = o -
|
|
117
|
+
let o = K(R[R[n(453)] - 1], r[n(498)]), s = K(R[0], r[n(498)]), c = r[n(493)] + a;
|
|
118
|
+
c < o ? c = o - h(o - c) : !w && c > s && (c = s + h(c - s)), r[n(447)] = c, q(c, r[n(498)]);
|
|
132
119
|
},
|
|
133
120
|
onPointerUp: (e) => {
|
|
134
|
-
let t = k, n = U[t(
|
|
135
|
-
if (!n || e
|
|
136
|
-
if (J(), !n[t(
|
|
121
|
+
let t = k, n = U[t(430)];
|
|
122
|
+
if (!n || e[t(470)] !== n[t(470)]) return;
|
|
123
|
+
if (J(), !n[t(442)]) {
|
|
137
124
|
q(null, 0);
|
|
138
125
|
return;
|
|
139
126
|
}
|
|
140
|
-
W[t(
|
|
141
|
-
let r = n[
|
|
142
|
-
if (w && (o > s + (n[t(
|
|
127
|
+
W[t(430)] = n.fromHandle;
|
|
128
|
+
let r = n.samples[0], i = n[t(482)][n[t(482)].length - 1], a = i.t > r.t ? (i[t(426)] - r[t(426)]) * Se / (i.t - r.t) : 0, o = n.offset + a * ae, s = K(R[0], n.size);
|
|
129
|
+
if (w && (o > s + (n[t(498)] - s) * oe || a > ie && n[t(447)] > s)) {
|
|
143
130
|
j(!1);
|
|
144
131
|
return;
|
|
145
132
|
}
|
|
146
|
-
let c = R
|
|
133
|
+
let c = R[t(421)]((e, r) => Math[t(418)](K(r, n[t(498)]) - o) < Math[t(418)](K(e, n[t(498)]) - o) ? r : e);
|
|
147
134
|
q(null, 0), c !== V && H(c);
|
|
148
135
|
},
|
|
149
136
|
onPointerCancel: (e) => {
|
|
150
137
|
let t = k;
|
|
151
|
-
U[t(
|
|
138
|
+
U.current?.[t(470)] === e[t(470)] && Y();
|
|
152
139
|
}
|
|
153
|
-
} : {}, Ce = L && (R
|
|
154
|
-
type: k(
|
|
155
|
-
className: k(
|
|
156
|
-
"aria-label": V === R[R[k(
|
|
140
|
+
} : {}, Ce = L && (R.length > 1 ? p(k(440), {
|
|
141
|
+
type: k(440),
|
|
142
|
+
className: k(435),
|
|
143
|
+
"aria-label": V === R[R[k(453)] - 1] ? k(424) : "시트 펼치기",
|
|
157
144
|
onClick: (e) => {
|
|
158
145
|
let t = k;
|
|
159
|
-
if (W[t(
|
|
160
|
-
W[t(
|
|
146
|
+
if (W[t(430)] && e.detail !== 0) {
|
|
147
|
+
W[t(430)] = !1;
|
|
161
148
|
return;
|
|
162
149
|
}
|
|
163
|
-
let n = R
|
|
164
|
-
H(R[(n + 1) % R[t(
|
|
150
|
+
let n = R[t(438)](V);
|
|
151
|
+
H(R[(n + 1) % R[t(453)]]);
|
|
165
152
|
},
|
|
166
153
|
...Z
|
|
167
|
-
}) :
|
|
168
|
-
className: k(
|
|
154
|
+
}) : p(k(425), {
|
|
155
|
+
className: k(435),
|
|
169
156
|
"aria-hidden": !0,
|
|
170
157
|
...Z
|
|
171
|
-
})), Q = P + k(
|
|
172
|
-
return
|
|
173
|
-
className:
|
|
174
|
-
"data-state": F[k(
|
|
158
|
+
})), Q = P + k(427), $ = P + k(446);
|
|
159
|
+
return m(f, { children: [ve, F[k(441)] && ne(m(k(425), {
|
|
160
|
+
className: i(k(468), "ds-drawer--" + C, !D && k(450), le && k(433)),
|
|
161
|
+
"data-state": F[k(456)] ? k(449) : "open",
|
|
175
162
|
onKeyDown: ge,
|
|
176
|
-
children: [D &&
|
|
163
|
+
children: [D && p("div", {
|
|
177
164
|
ref: N,
|
|
178
|
-
className: k(
|
|
165
|
+
className: k(422),
|
|
179
166
|
"aria-hidden": !0,
|
|
180
167
|
..._e
|
|
181
|
-
}),
|
|
168
|
+
}), m(k(425), {
|
|
182
169
|
ref: M,
|
|
183
|
-
role: k(
|
|
184
|
-
"aria-modal": D ?
|
|
170
|
+
role: k(445),
|
|
171
|
+
"aria-modal": D ? k(443) : void 0,
|
|
185
172
|
"aria-labelledby": Q,
|
|
186
173
|
"aria-describedby": b ? $ : void 0,
|
|
187
174
|
tabIndex: -1,
|
|
188
175
|
"data-side": C,
|
|
189
|
-
className:
|
|
176
|
+
className: i("ds-drawer__panel", k(437) + se, L && "ds-drawer__panel--handle", R[k(453)] > 1 && k(495), E && k(439), me),
|
|
190
177
|
style: { "--_snap": (1 - V) * 100 + "%" },
|
|
191
178
|
children: [
|
|
192
|
-
C === k(
|
|
193
|
-
E ?
|
|
179
|
+
C === k(488) && Ce,
|
|
180
|
+
E ? m(f, { children: [p("h2", {
|
|
194
181
|
id: Q,
|
|
195
|
-
className: k(
|
|
182
|
+
className: k(459),
|
|
196
183
|
children: y
|
|
197
|
-
}), b &&
|
|
184
|
+
}), b && p("p", {
|
|
198
185
|
id: $,
|
|
199
|
-
className: k(
|
|
186
|
+
className: k(459),
|
|
200
187
|
children: b
|
|
201
|
-
})] }) :
|
|
202
|
-
className: k(
|
|
203
|
-
...C === k(
|
|
204
|
-
children: [
|
|
188
|
+
})] }) : m(k(425), {
|
|
189
|
+
className: k(489),
|
|
190
|
+
...C === k(488) ? Z : {},
|
|
191
|
+
children: [p("h2", {
|
|
205
192
|
id: Q,
|
|
206
|
-
className:
|
|
193
|
+
className: "ds-drawer__title",
|
|
207
194
|
children: y
|
|
208
|
-
}), b &&
|
|
195
|
+
}), b && p("p", {
|
|
209
196
|
id: $,
|
|
210
197
|
className: "ds-drawer__desc",
|
|
211
198
|
children: b
|
|
212
199
|
})]
|
|
213
200
|
}),
|
|
214
|
-
x != null &&
|
|
215
|
-
className: k(
|
|
201
|
+
x != null && p(k(425), {
|
|
202
|
+
className: k(477),
|
|
216
203
|
children: x
|
|
217
204
|
}),
|
|
218
|
-
S &&
|
|
219
|
-
className: k(
|
|
205
|
+
S && p("div", {
|
|
206
|
+
className: k(455),
|
|
220
207
|
children: S
|
|
221
208
|
}),
|
|
222
|
-
C ===
|
|
223
|
-
ce && w &&
|
|
209
|
+
C === k(448) && Ce,
|
|
210
|
+
ce && w && p(r, {
|
|
224
211
|
iconOnly: !0,
|
|
225
|
-
variant:
|
|
212
|
+
variant: "ghost",
|
|
226
213
|
size: "sm",
|
|
227
|
-
icon:
|
|
214
|
+
icon: p(te, {}),
|
|
228
215
|
"aria-label": "닫기",
|
|
229
|
-
className:
|
|
216
|
+
className: "ds-drawer__close",
|
|
230
217
|
onClick: he
|
|
231
218
|
})
|
|
232
219
|
]
|
|
233
220
|
})]
|
|
234
|
-
}), document
|
|
221
|
+
}), document[k(478)])] });
|
|
235
222
|
}
|
|
236
|
-
function
|
|
223
|
+
function _(t) {
|
|
237
224
|
let n = e;
|
|
238
|
-
return
|
|
225
|
+
return p(g, {
|
|
239
226
|
...t,
|
|
240
|
-
side: n(
|
|
227
|
+
side: n(488)
|
|
241
228
|
});
|
|
242
229
|
}
|
|
243
|
-
|
|
230
|
+
function v(e, t) {
|
|
231
|
+
e -= 417;
|
|
232
|
+
let n = d(), r = n[e];
|
|
233
|
+
v.EDlEAR === void 0 && (v.mUNSDY = function(e) {
|
|
234
|
+
let t = "", n = "";
|
|
235
|
+
for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
|
|
236
|
+
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
237
|
+
return decodeURIComponent(n);
|
|
238
|
+
}, v.MGjmSD = {}, v.EDlEAR = !0);
|
|
239
|
+
let i = n[0];
|
|
240
|
+
v.MHzKeU !== i && (v.MGjmSD = {}, v.MHzKeU = i);
|
|
241
|
+
let a = v.MGjmSD[e];
|
|
242
|
+
return a === void 0 ? (r = v.mUNSDY(r), v.MGjmSD[e] = r) : r = a, r;
|
|
243
|
+
}
|
|
244
|
+
export { g as Drawer, _ as Sheet };
|