@iamfiro/design 0.1.0 → 0.3.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 -0
- package/agents/INDEX.md +1 -0
- package/agents/brand-icon/AGENTS.md +2 -2
- package/agents/social-login-button/AGENTS.md +156 -0
- package/lib/components/Accordion/Accordion2.js +135 -0
- package/lib/components/ActionBar/ActionBar2.js +65 -0
- package/lib/components/Alert/Alert2.js +131 -0
- package/lib/components/AppShell/AppShell2.js +94 -0
- package/lib/components/AreaChart/AreaChart.js +59 -0
- package/lib/components/BarChart/BarChart2.js +243 -0
- package/lib/components/BarList/BarList2.js +172 -0
- package/lib/components/Breadcrumb/Breadcrumb2.js +87 -0
- package/lib/components/Calendar/Calendar2.js +309 -0
- package/lib/components/Calendar/DatePicker2.js +229 -0
- package/lib/components/Calendar/date.js +121 -0
- package/lib/components/Card/Card2.js +104 -0
- package/lib/components/CardFrame/CardFrame2.js +72 -0
- package/lib/components/Chart/ChartParts.js +150 -0
- package/lib/components/Chart/chart2.js +96 -0
- package/lib/components/Chart/useChartInteraction.js +94 -0
- package/lib/components/ChatBubble/ChatBubble2.js +174 -0
- package/lib/components/ChatBubble/formatChatTime.js +53 -0
- package/lib/components/ChatComposer/ChatComposer2.js +153 -0
- package/lib/components/CodeBlock/CodeBlock2.js +93 -0
- package/lib/components/CodeBlock/highlight.js +114 -0
- package/lib/components/ColorPicker/ColorPicker2.js +610 -0
- package/lib/components/ColorPicker/color.js +180 -0
- package/lib/components/ColorPicker/presets.js +75 -0
- package/lib/components/Combobox/Combobox2.js +229 -0
- package/lib/components/CommandMenu/CommandMenu.js +267 -0
- package/lib/components/Comment/Comment2.js +134 -0
- package/lib/components/ContextMenu/ContextMenu2.js +168 -0
- package/lib/components/DataGrid/DataGrid2.js +1996 -0
- package/lib/components/DataGrid/GridPopover.js +154 -0
- package/lib/components/DataGrid/anchor.js +50 -0
- package/lib/components/DataGrid/model.js +558 -0
- package/lib/components/DataGrid/panels.js +703 -0
- package/lib/components/DataGrid/typeMeta.js +76 -0
- package/lib/components/DataGrid/types.js +54 -0
- package/lib/components/DescriptionList/DescriptionList2.js +180 -0
- package/lib/components/Dialog/AlertDialog.js +118 -0
- package/lib/components/Dialog/Dialog2.js +109 -0
- package/lib/components/Dialog/modal.js +92 -0
- package/lib/components/Drawer/Drawer2.js +244 -0
- package/lib/components/DropdownMenu/DropdownMenu2.js +394 -0
- package/lib/components/DropdownMenu/menuCore.js +63 -0
- package/lib/components/Dropzone/Dropzone2.js +144 -0
- package/lib/components/EmptyState/EmptyState2.js +72 -0
- package/lib/components/FileChip/FileChip2.js +118 -0
- package/lib/components/FileUpload/FileUpload.js +258 -0
- package/lib/components/FilterChips/FilterChips2.js +101 -0
- package/lib/components/FunnelChart/FunnelChart2.js +283 -0
- package/lib/components/FunnelChart/funnel.js +69 -0
- package/lib/components/Highlight/Highlight2.js +100 -0
- package/lib/components/HoverCard/HoverCard.js +134 -0
- package/lib/components/InlineDiff/InlineDiff2.js +215 -0
- package/lib/components/InlineDiff/diff.js +126 -0
- package/lib/components/InlineDiff/useDiffReview.js +109 -0
- package/lib/components/Kanban/Kanban2.js +691 -0
- package/lib/components/Kanban/KanbanCard.js +159 -0
- package/lib/components/Kanban/move.js +69 -0
- package/lib/components/LineChart/LineChart2.js +342 -0
- package/lib/components/List/List2.js +133 -0
- package/lib/components/Listbox/Listbox2.js +163 -0
- package/lib/components/Marker/Marker2.js +82 -0
- package/lib/components/Menubar/Menubar2.js +223 -0
- package/lib/components/MultiSelect/MultiSelect2.js +204 -0
- package/lib/components/NavigationMenu/NavigationMenu2.js +481 -0
- package/lib/components/NoticeStack/NoticeStack2.js +178 -0
- package/lib/components/NumberStepper/NumberStepper2.js +129 -0
- package/lib/components/OtpInput/OtpInput2.js +122 -0
- package/lib/components/Pagination/Pagination2.js +210 -0
- package/lib/components/Pagination/paginationRange.js +53 -0
- package/lib/components/PhoneInput/PhoneInput.js +175 -0
- package/lib/components/PieChart/PieChart2.js +246 -0
- package/lib/components/PieChart/arc.js +66 -0
- package/lib/components/PieChart/useArcTween.js +94 -0
- package/lib/components/Popover/Popover2.js +112 -0
- package/lib/components/ProgressTracker/ProgressTracker2.js +226 -0
- package/lib/components/Rating/Rating2.js +186 -0
- package/lib/components/Resizable/Resizable2.js +236 -0
- package/lib/components/Resizable/layout.js +115 -0
- package/lib/components/ScaledPreview/ScaledPreview2.js +100 -0
- package/lib/components/ScatterChart/ScatterChart2.js +356 -0
- package/lib/components/ScatterChart/scatter.js +83 -0
- package/lib/components/ScrollArea/ScrollArea2.js +218 -0
- package/lib/components/Select/Select2.js +153 -0
- package/lib/components/Sidebar/Sidebar2.js +127 -0
- package/lib/components/Skeleton/Skeleton2.js +91 -0
- package/lib/components/Slider/Slider2.js +142 -0
- package/lib/components/SocialLoginButton/SocialLoginButton.js +85 -0
- package/lib/components/SparkChart/SparkChart2.js +217 -0
- package/lib/components/SparkChart/spark.js +76 -0
- package/lib/components/Sparkbar/Sparkbar2.js +111 -0
- package/lib/components/SplitView/SplitView2.js +95 -0
- package/lib/components/Stat/Stat2.js +164 -0
- package/lib/components/StepList/StepList2.js +131 -0
- package/lib/components/Table/Table2.js +104 -0
- package/lib/components/Tabs/Tabs2.js +131 -0
- package/lib/components/TagInput/TagInput2.js +360 -0
- package/lib/components/TimePicker/TimePicker2.js +388 -0
- package/lib/components/TimePicker/time.js +83 -0
- package/lib/components/Timeline/Timeline2.js +369 -0
- package/lib/components/Timeline/scale.js +83 -0
- package/lib/components/Toast/Toaster.js +212 -0
- package/lib/components/Toast/store.js +129 -0
- package/lib/components/ToggleGroup/ToggleGroup2.js +125 -0
- package/lib/components/Toolbar/Toolbar2.js +281 -0
- package/lib/components/Tracker/Tracker2.js +172 -0
- package/lib/components/TreeDiagram/TreeDiagram2.js +223 -0
- package/lib/components/TreeView/TreeView2.js +284 -0
- package/lib/hooks/timing.js +55 -0
- package/lib/hooks/useControllableState.js +49 -0
- package/lib/hooks/useCountdown.js +80 -0
- package/lib/hooks/useDigitInput.js +105 -0
- package/lib/hooks/useDismiss.js +71 -0
- package/lib/hooks/useElapsed.js +83 -0
- package/lib/hooks/useFloating.js +70 -0
- package/lib/hooks/useFocusTrap.js +61 -0
- package/lib/hooks/usePresence.js +60 -0
- package/lib/hooks/usePressToOpen.js +69 -0
- package/lib/hooks/useScrollLock.js +70 -0
- package/lib/hooks/useSelection.js +68 -0
- package/lib/index.js +175 -17911
- package/lib/primitives/AspectRatio2.js +80 -0
- package/lib/primitives/BrandIcon.js +245 -0
- package/lib/primitives/ColorDot2.js +70 -0
- package/lib/primitives/CopyButton2.js +85 -0
- package/lib/primitives/CountBadge2.js +78 -0
- package/lib/primitives/Countdown2.js +65 -0
- package/lib/primitives/Delta2.js +67 -0
- package/lib/primitives/Elapsed.js +62 -0
- package/lib/primitives/FileIcon2.js +125 -0
- package/lib/primitives/Flag2.js +263 -0
- package/lib/primitives/IconStack2.js +85 -0
- package/lib/primitives/IconTile2.js +68 -0
- package/lib/primitives/Kbd2.js +88 -0
- package/lib/primitives/Layout2.js +118 -0
- package/lib/primitives/Link2.js +53 -0
- package/lib/primitives/MaskedText2.js +120 -0
- package/lib/primitives/Progress2.js +137 -0
- package/lib/primitives/RelativeTime.js +84 -0
- package/lib/primitives/SearchInput2.js +84 -0
- package/lib/primitives/SelectorButton2.js +97 -0
- package/lib/primitives/Spinner2.js +98 -0
- package/lib/primitives/StatusIcon2.js +126 -0
- package/lib/primitives/Swatch2.js +79 -0
- package/lib/primitives/Tooltip2.js +132 -0
- package/lib/primitives/Typography2.js +97 -0
- package/lib/primitives/formatCountdown.js +51 -0
- package/lib/primitives/formatElapsed.js +66 -0
- package/lib/primitives/formatRelativeTime.js +64 -0
- package/lib/primitives/hotkey.js +94 -0
- package/lib/primitives/index.js +352 -0
- package/lib/primitives/maskValue.js +65 -0
- package/lib/style.css +1 -1
- package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +10 -0
- package/lib/types/components/index.d.ts +2 -0
- package/lib/types/primitives/BrandIcon.d.ts +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
const e = t;
|
|
3
|
+
function t(e, n) {
|
|
4
|
+
e -= 150;
|
|
5
|
+
let r = _(), i = r[e];
|
|
6
|
+
t.zcRAFr === void 0 && (t.DduiMs = 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.YAzZGM = {}, t.zcRAFr = !0);
|
|
12
|
+
let a = r[0];
|
|
13
|
+
t.YphFkn !== a && (t.YAzZGM = {}, t.YphFkn = a);
|
|
14
|
+
let o = t.YAzZGM[e];
|
|
15
|
+
return o === void 0 ? (i = t.DduiMs(i), t.YAzZGM[e] = i) : i = o, i;
|
|
16
|
+
}
|
|
17
|
+
(function(e, n) {
|
|
18
|
+
let r = t, i = e();
|
|
19
|
+
for (;;) try {
|
|
20
|
+
if (-parseInt(r(209)) / 1 + parseInt(r(171)) / 2 + parseInt(r(191)) / 3 + -parseInt(r(152)) / 4 + -parseInt(r(180)) / 5 * (parseInt(r(175)) / 6) + -parseInt(r(153)) / 7 * (parseInt(r(218)) / 8) + -parseInt(r(164)) / 9 * (-parseInt(r(162)) / 10) == n) break;
|
|
21
|
+
i.push(i.shift());
|
|
22
|
+
} catch {
|
|
23
|
+
i.push(i.shift());
|
|
24
|
+
}
|
|
25
|
+
})(_, 223555);
|
|
26
|
+
import { TIMING as n } from "../../hooks/timing.js";
|
|
27
|
+
import { cx as r } from "../../primitives/index.js";
|
|
28
|
+
import { focusableIn as i } from "../../hooks/useFocusTrap.js";
|
|
29
|
+
/* empty css */
|
|
30
|
+
import { useCallback as a, useEffect as o, useLayoutEffect as s, useRef as c, useState as l } from "react";
|
|
31
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
32
|
+
var f = 12, p = 24, m = 8, h = (e, n, r) => {
|
|
33
|
+
let i = t;
|
|
34
|
+
r ? e[i(184)](n, "") : e[i(151)](n);
|
|
35
|
+
}, g = (e, n) => {
|
|
36
|
+
let r = t;
|
|
37
|
+
typeof e === r(163) ? e(n) : e && (e[r(215)] = n);
|
|
38
|
+
};
|
|
39
|
+
function _() {
|
|
40
|
+
let e = /* @__PURE__ */ "zgf0ys1Zy3jVBgXHyMXLlxK.BgvUz3rO.C2nYB2XSsgvPz2H0.y2XPzw50wa.AgvPz2H0.mJC5nZGXzu51qNbH.C2nYB2XSv2LKDgG.C2v0ug9PBNrLCKnHChr1CMu.y2XLyxjuAw1LB3v0.yNv0Dg9U.zM9YrwfJAa.y3vYCMvUDa.zgL2.zgf0ys1MywrLlxjPz2H0.mtzlEwvJBKO.BNvTyMvY.C2nYB2XSqNK.CMvTB3zLqxr0CMLIDxrL.ndqYmZG4C2DdrNvQ.otq2oty3wffHChfW.rxnJyxbL.zgf0ys1MywrLlwjVDhrVBq.zgvSDgfz.C2nYB2XStgvMDa.A2v5zg93BG.zgf0ys1MywrLlxrVCa.zgf0ys1KCMfNz2LUzW.zhmTC2nYB2XSlwfYzwfFx2nVBNrLBNq.ndG3mtbxAhvJAhe.zNvUy3rPB24.mtiYnhzmtwrjuW.C2nYB2XSvg9W.zgvSDgfnB2rL.Bwf4.z2v0qM91BMrPBMDdBgLLBNrszwn0.yxHPCW.zgf0ys1Zy3jVBgXPBMC.mJqWmJKWwwnkzfDz.C3r5Bgu.CMvTB3zLrxzLBNrmAxn0zw5LCG.C2v0vgLTzw91Da.nM1pBKPjtG.y2XPzw50sgvPz2H0.y2XPzw50wq.B2jZzxj2zq.ChjLDMvUDerLzMf1Bhq.mte4mZy0mhDVq29mDa.zhmTC2nYB2XSlwfYzwfFx3rODw1I.yxv0BW.BgvMDa.C2v0qxr0CMLIDxrL.DhjHBNnMB3jT.CMvNAw9U.Cg9PBNrLCG.DMvYDgLJywW.BwLU.Dg9W.mtaXntG2nLftwgrbqG.ChGSidaP.Ag92zxjhCMfJzq.Ag9YAxPVBNrHBa.y3vYCMvUDfrHCMDLDa.C3rVCfbYB3bHz2f0Aw9U.C3rHCNq.CMf0Aw8.DhjHBNnSyxrLm2qO.C21VB3rO.zhmTC2nYB2XSlwfYzwfFx2jHCIbKCY1Zy3jVBgWTyxjLyv9FyMfYls14.D2HLzwW.y2XPzw50v2LKDgG".split(".");
|
|
41
|
+
return _ = function() {
|
|
42
|
+
return e;
|
|
43
|
+
}, _();
|
|
44
|
+
}
|
|
45
|
+
function v({ children: _, orientation: v = e(188), maxHeight: y, scrollbars: b = e(182), fade: x, stickToBottom: S, onAtBottomChange: C, viewportRef: w, viewportClassName: ee, focusable: T, onScroll: E, className: D, style: O, "aria-label": k, "aria-labelledby": A, ...j }) {
|
|
46
|
+
let M = e, N = c(null), P = c(null), F = c(null), I = c(null), L = c(null), R = c(null), z = c(null), B = c({
|
|
47
|
+
x: {
|
|
48
|
+
track: 0,
|
|
49
|
+
thumb: 0
|
|
50
|
+
},
|
|
51
|
+
y: {
|
|
52
|
+
track: 0,
|
|
53
|
+
thumb: 0
|
|
54
|
+
}
|
|
55
|
+
}), V = c(!0), H = c(void 0), U = c(null), [W, G] = l(!1), K = c(C);
|
|
56
|
+
o(() => {
|
|
57
|
+
let e = t;
|
|
58
|
+
K[e(215)] = C;
|
|
59
|
+
});
|
|
60
|
+
let q = a(() => {
|
|
61
|
+
let e = t, n = N[e(215)], r = P.current;
|
|
62
|
+
if (!n || !r) return;
|
|
63
|
+
let { scrollTop: i, scrollLeft: a, scrollHeight: o, scrollWidth: s, clientHeight: c, clientWidth: l } = r, u = o - c, d = s - l, g = v !== e(194) && u > 1, _ = v !== e(188) && d > 1;
|
|
64
|
+
if (h(n, e(204), g), h(n, "data-scrollable-x", _), g && R[e(215)]) {
|
|
65
|
+
let t = c - 12 - (_ ? f : 0), n = Math[e(189)](t, Math[e(167)](p, t * c / o)), r = (t - n) * Math[e(189)](u, Math.max(0, i)) / u;
|
|
66
|
+
B.current.y = {
|
|
67
|
+
track: t,
|
|
68
|
+
thumb: n
|
|
69
|
+
}, R.current[e(172)][e(208)] = n + "px", R[e(215)][e(172)][e(185)] = "translate3d(0, " + r + e(192);
|
|
70
|
+
}
|
|
71
|
+
if (_ && z.current) {
|
|
72
|
+
let t = l - 12 - (g ? f : 0), n = Math[e(189)](t, Math[e(167)](p, t * l / s)), r = (t - n) * Math.min(d, Math[e(167)](0, a)) / d;
|
|
73
|
+
B.current.x = {
|
|
74
|
+
track: t,
|
|
75
|
+
thumb: n
|
|
76
|
+
}, z[e(215)].style.width = n + "px", z[e(215)][e(172)].transform = e(199) + r + "px, 0, 0)";
|
|
77
|
+
}
|
|
78
|
+
h(n, e(159), g && i > 1), h(n, e(155), g && i < u - 1), h(n, "data-fade-left", _ && a > 1), h(n, e(217), _ && a < d - 1);
|
|
79
|
+
let y = u - i <= m;
|
|
80
|
+
y !== V[e(215)] && (V[e(215)] = y, K[e(215)]?.(y));
|
|
81
|
+
}, [v]);
|
|
82
|
+
s(() => {
|
|
83
|
+
let e = t, n = P.current, r = F[e(215)];
|
|
84
|
+
if (!n || !r) return;
|
|
85
|
+
S && (n[e(165)] = n[e(206)]);
|
|
86
|
+
let a = () => {
|
|
87
|
+
let t = e;
|
|
88
|
+
S && V[t(215)] && (n[t(165)] = n.scrollHeight), q();
|
|
89
|
+
let a = n[t(206)] - n.clientHeight > 1 || n[t(210)] - n[t(203)] > 1;
|
|
90
|
+
G(a && i(r)[t(205)] === 0);
|
|
91
|
+
};
|
|
92
|
+
a();
|
|
93
|
+
let o = new ResizeObserver(a);
|
|
94
|
+
return o[e(178)](n), o[e(178)](r), () => o.disconnect();
|
|
95
|
+
}, [S, q]), o(() => {
|
|
96
|
+
let e = t, n = P[e(215)], r = [I[e(215)], L[e(215)]].filter((e) => !!e), i = (t) => {
|
|
97
|
+
let r = e;
|
|
98
|
+
if (!n) return;
|
|
99
|
+
let i = t[r(166)] === 1 ? 16 : t[r(166)] === 2 ? n.clientHeight : 1;
|
|
100
|
+
t[r(179)](), n[r(150)]({
|
|
101
|
+
left: t.deltaX * i,
|
|
102
|
+
top: t[r(156)] * i
|
|
103
|
+
});
|
|
104
|
+
};
|
|
105
|
+
return r[e(214)]((t) => t.addEventListener(e(202), i, { passive: !1 })), () => r[e(214)]((t) => t[e(173)](e(202), i));
|
|
106
|
+
}, [v]), o(() => () => window[M(212)](H[M(215)]), []);
|
|
107
|
+
let J = (e) => {
|
|
108
|
+
let t = M;
|
|
109
|
+
q();
|
|
110
|
+
let r = N[t(215)];
|
|
111
|
+
r && (r[t(184)](t(170), ""), window[t(212)](H[t(215)]), H[t(215)] = window[t(174)](() => r[t(151)](t(170)), n[t(193)])), E?.(e);
|
|
112
|
+
}, Y = c((e) => {
|
|
113
|
+
let t = M;
|
|
114
|
+
if (e.key !== t(154) || !U[t(215)]) return;
|
|
115
|
+
e[t(179)](), e[t(196)]();
|
|
116
|
+
let n = P[t(215)], r = U[t(215)];
|
|
117
|
+
n && (r[t(169)] === "y" ? n.scrollTop = r[t(197)] : n[t(157)] = r[t(197)]), X();
|
|
118
|
+
}), X = () => {
|
|
119
|
+
let e = M;
|
|
120
|
+
U.current = null, N.current?.[e(151)](e(160)), window[e(173)](e(158), Y[e(215)], !0);
|
|
121
|
+
}, Z = (e) => (t) => {
|
|
122
|
+
let n = M, r = P[n(215)];
|
|
123
|
+
if (t[n(213)] !== 0 || !r) return;
|
|
124
|
+
t[n(179)](), t[n(196)](), t.currentTarget[n(211)](t.pointerId);
|
|
125
|
+
let { track: i, thumb: a } = B[n(215)][e], o = e === "y" ? r[n(206)] - r.clientHeight : r[n(210)] - r.clientWidth;
|
|
126
|
+
U[n(215)] = {
|
|
127
|
+
axis: e,
|
|
128
|
+
pointer: e === "y" ? t[n(177)] : t[n(207)],
|
|
129
|
+
start: e === "y" ? r.scrollTop : r.scrollLeft,
|
|
130
|
+
ratio: o / Math[n(167)](1, i - a)
|
|
131
|
+
}, N.current?.[n(184)](n(160), ""), window.addEventListener(n(158), Y[n(215)], !0);
|
|
132
|
+
}, Q = (e) => {
|
|
133
|
+
let t = M, n = U[t(215)], r = P.current;
|
|
134
|
+
if (!n || !r) return;
|
|
135
|
+
let i = n.start + ((n[t(169)] === "y" ? e[t(177)] : e.clientX) - n[t(187)]) * n[t(198)];
|
|
136
|
+
n[t(169)] === "y" ? r[t(165)] = i : r[t(157)] = i;
|
|
137
|
+
}, $ = (e) => (t) => {
|
|
138
|
+
let n = M, r = P[n(215)], i = e === "y" ? R[n(215)] : z[n(215)];
|
|
139
|
+
if (t.button !== 0 || !r || !i || t.target !== t[n(195)]) return;
|
|
140
|
+
t[n(179)]();
|
|
141
|
+
let a = i[n(168)]();
|
|
142
|
+
if (e === "y") {
|
|
143
|
+
let e = t[n(177)] < a[n(190)] ? -1 : 1;
|
|
144
|
+
r[n(150)]({
|
|
145
|
+
top: e * r[n(176)] * .9,
|
|
146
|
+
behavior: n(200)
|
|
147
|
+
});
|
|
148
|
+
} else {
|
|
149
|
+
let e = t[n(207)] < a[n(183)] ? -1 : 1;
|
|
150
|
+
r.scrollBy({
|
|
151
|
+
left: e * r[n(203)] * .9,
|
|
152
|
+
behavior: n(200)
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
}, te = (e) => {
|
|
156
|
+
let t = M;
|
|
157
|
+
P[t(215)] = e, g(w, e);
|
|
158
|
+
}, ne = T ?? W, re = typeof x === M(219) ? x : 28, ie = v !== M(194), ae = v !== "vertical";
|
|
159
|
+
return d(M(216), {
|
|
160
|
+
ref: N,
|
|
161
|
+
className: r("ds-scroll-area", !!x && "ds-scroll-area--fade", D),
|
|
162
|
+
"data-orientation": v,
|
|
163
|
+
"data-scrollbars": b,
|
|
164
|
+
style: {
|
|
165
|
+
maxHeight: y,
|
|
166
|
+
"--_fade": re + "px",
|
|
167
|
+
...O
|
|
168
|
+
},
|
|
169
|
+
...j,
|
|
170
|
+
children: [
|
|
171
|
+
u("div", {
|
|
172
|
+
ref: te,
|
|
173
|
+
className: r("ds-scroll-area__viewport", ee),
|
|
174
|
+
role: k || A ? M(186) : void 0,
|
|
175
|
+
"aria-label": k,
|
|
176
|
+
"aria-labelledby": A,
|
|
177
|
+
tabIndex: ne ? 0 : void 0,
|
|
178
|
+
onScroll: J,
|
|
179
|
+
children: u(M(216), {
|
|
180
|
+
ref: F,
|
|
181
|
+
className: M(161),
|
|
182
|
+
children: _
|
|
183
|
+
})
|
|
184
|
+
}),
|
|
185
|
+
ie && u(M(216), {
|
|
186
|
+
ref: I,
|
|
187
|
+
className: "ds-scroll-area__bar ds-scroll-area__bar--y",
|
|
188
|
+
"aria-hidden": !0,
|
|
189
|
+
onPointerDown: $("y"),
|
|
190
|
+
children: u(M(216), {
|
|
191
|
+
ref: R,
|
|
192
|
+
className: M(181),
|
|
193
|
+
onPointerDown: Z("y"),
|
|
194
|
+
onPointerMove: Q,
|
|
195
|
+
onPointerUp: X,
|
|
196
|
+
onPointerCancel: X,
|
|
197
|
+
onLostPointerCapture: () => U[M(215)] && X()
|
|
198
|
+
})
|
|
199
|
+
}),
|
|
200
|
+
ae && u(M(216), {
|
|
201
|
+
ref: L,
|
|
202
|
+
className: M(201),
|
|
203
|
+
"aria-hidden": !0,
|
|
204
|
+
onPointerDown: $("x"),
|
|
205
|
+
children: u(M(216), {
|
|
206
|
+
ref: z,
|
|
207
|
+
className: M(181),
|
|
208
|
+
onPointerDown: Z("x"),
|
|
209
|
+
onPointerMove: Q,
|
|
210
|
+
onPointerUp: X,
|
|
211
|
+
onPointerCancel: X,
|
|
212
|
+
onLostPointerCapture: () => U[M(215)] && X()
|
|
213
|
+
})
|
|
214
|
+
})
|
|
215
|
+
]
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
export { v as ScrollArea };
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
const e = f;
|
|
3
|
+
function t() {
|
|
4
|
+
let e = /* @__PURE__ */ "7isG7yoD7zwy7is47jQu.Dgv4Da.BgfIzwW.oty5mtq4we1Wzg9g.ntC3ofv5D3nJAa.zhmTC2vSzwn0lxrYAwDNzxi.y2XVC2LUzW.mtGZBhLnAvP4.Bwv0yuTLEq.rw5K.qxjYB3DeB3DU.zhmTC2vSzwn0lxrYAwDNzxiTlq.qxjYB3DvCa.zhmTC2vSzwn0lxrYAwDNzxiTlwjHCMu.AgLKzgvU.mte1ndy4DM9pqw1n.AwnVBG.BgLZDgjVEa.zhmTC2vSzwn0lxrYAwDNzxjFx2nOzxzYB24.yNv0Dg9U.zMLUza.vgfI.C2XPy2u.zhmTy29UDhjVBa.ChjLDMvUDerLzMf1Bhq.Aw5KzxHpzG.y3vYCMvUDa.BM93.Aw5WDxq.mtC5meP0zeP0wG.mZK2mJK5mMDKDuDOsW.ndqZmtzqrxb1t0y.mZq0n29jrfzfqW.mtvOEvnLDu0.sg9Tzq.A2v5.C3bHBG.zhmTC2vSzwn0lxrYAwDNzxjFx3zHBhvL.Bw91BNrLza.Dg9mB3DLCKnHC2u.rxnJyxbL.DMfSDwu.mJmZnMXAyM53sG.zM9JDxm.zMLUzeLUzgv4.rw50zxi.nJm2m1PKz2zXua.C3rHCNrZv2L0Aa.y29TyM9IB3G.zgLZywjSzwq.BgvUz3rO.lwXPC3q".split(".");
|
|
5
|
+
return t = function() {
|
|
6
|
+
return e;
|
|
7
|
+
}, t();
|
|
8
|
+
}
|
|
9
|
+
(function(e, t) {
|
|
10
|
+
let n = f, r = e();
|
|
11
|
+
for (;;) try {
|
|
12
|
+
if (-parseInt(n(374)) / 1 + parseInt(n(415)) / 2 * (-parseInt(n(366)) / 3) + parseInt(n(414)) / 4 + parseInt(n(392)) / 5 * (parseInt(n(390)) / 6) + parseInt(n(405)) / 7 * (-parseInt(n(401)) / 8) + parseInt(n(391)) / 9 * (parseInt(n(388)) / 10) + parseInt(n(389)) / 11 == t) break;
|
|
13
|
+
r.push(r.shift());
|
|
14
|
+
} catch {
|
|
15
|
+
r.push(r.shift());
|
|
16
|
+
}
|
|
17
|
+
})(t, 136149);
|
|
18
|
+
import { usePresence as n } from "../../hooks/usePresence.js";
|
|
19
|
+
import { useControllableState as r } from "../../hooks/useControllableState.js";
|
|
20
|
+
import { cx as i } from "../../primitives/index.js";
|
|
21
|
+
import { useDismiss as a } from "../../hooks/useDismiss.js";
|
|
22
|
+
import { usePressToOpen as o } from "../../hooks/usePressToOpen.js";
|
|
23
|
+
import { Listbox as s, ListboxPopover as ee, firstEnabled as c, lastEnabled as l, nextEnabled as u, optionId as d } from "../Listbox/Listbox2.js";
|
|
24
|
+
/* empty css */
|
|
25
|
+
function f(e, n) {
|
|
26
|
+
e -= 366;
|
|
27
|
+
let r = t(), i = r[e];
|
|
28
|
+
f.MrSqQg === void 0 && (f.YchiRY = function(e) {
|
|
29
|
+
let t = "", n = "";
|
|
30
|
+
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);
|
|
31
|
+
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
32
|
+
return decodeURIComponent(n);
|
|
33
|
+
}, f.rpvmgn = {}, f.MrSqQg = !0);
|
|
34
|
+
let a = r[0];
|
|
35
|
+
f.BJIHqF !== a && (f.rpvmgn = {}, f.BJIHqF = a);
|
|
36
|
+
let o = f.rpvmgn[e];
|
|
37
|
+
return o === void 0 ? (i = f.YchiRY(i), f.rpvmgn[e] = i) : i = o, i;
|
|
38
|
+
}
|
|
39
|
+
import { useId as p, useRef as m, useState as h } from "react";
|
|
40
|
+
import { ChevronDown as te } from "lucide-react";
|
|
41
|
+
import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
42
|
+
function y({ options: t, value: f, defaultValue: y = null, onValueChange: b, open: x, onOpenChange: S, placeholder: C = e(411), size: w = "md", disabled: T, invalid: E, leading: D, name: O, id: ne, className: re, maxHeight: k, renderValue: A, renderOption: j, bare: M, anchorRef: N, "aria-label": P, "aria-labelledby": ie }) {
|
|
43
|
+
let F = e, I = p() + F(410), [L, R] = r(f, y, (e) => e !== null && b?.(e)), [z, B] = r(x, !1, S), V = n(z), [H, U] = h(-1), W = m(null), G = m(null), K = m({
|
|
44
|
+
text: "",
|
|
45
|
+
at: 0
|
|
46
|
+
}), q = t[F(403)]((e) => e[F(400)] === L), J = t[q];
|
|
47
|
+
a(z, [W, G], () => B(!1));
|
|
48
|
+
let Y = (e) => {
|
|
49
|
+
U(e >= 0 && !t[e]?.disabled ? e : c(t)), B(!0);
|
|
50
|
+
}, X = (e) => {
|
|
51
|
+
let t = F;
|
|
52
|
+
e[t(408)] || (R(e[t(400)]), B(!1), W[t(385)]?.[t(402)]());
|
|
53
|
+
}, Z = o({
|
|
54
|
+
open: z,
|
|
55
|
+
onOpen: () => Y(q),
|
|
56
|
+
onClose: () => B(!1),
|
|
57
|
+
panelRef: G,
|
|
58
|
+
onRelease: (e) => t[e] && X(t[e]),
|
|
59
|
+
disabled: T
|
|
60
|
+
}), Q = (e) => {
|
|
61
|
+
let n = F, r = Date[n(386)](), i = K.current;
|
|
62
|
+
i[n(412)] = r - i.at > 600 ? e : i[n(412)] + e, i.at = r;
|
|
63
|
+
let a = z ? H : q, o = i[n(412)][n(398)](), s = [...t[n(381)](a + 1), ...t[n(381)](0, a + 1)][n(379)]((e) => !e.disabled && e[n(413)][n(398)]()[n(406)](o));
|
|
64
|
+
s && (z ? U(t[n(384)](s)) : R(s.value));
|
|
65
|
+
}, ae = (e) => {
|
|
66
|
+
let n = F;
|
|
67
|
+
switch (e[n(394)]) {
|
|
68
|
+
case n(369):
|
|
69
|
+
e[n(383)](), z ? U(u(t, H, 1)) : Y(q);
|
|
70
|
+
break;
|
|
71
|
+
case n(371):
|
|
72
|
+
e[n(383)](), z ? U(u(t, H, -1)) : Y(q >= 0 ? q : l(t));
|
|
73
|
+
break;
|
|
74
|
+
case n(393):
|
|
75
|
+
case n(368):
|
|
76
|
+
if (!z) break;
|
|
77
|
+
e[n(383)](), U(e[n(394)] === n(393) ? c(t) : l(t));
|
|
78
|
+
break;
|
|
79
|
+
case n(404):
|
|
80
|
+
case " ":
|
|
81
|
+
if (e[n(394)] === " " && Date[n(386)]() - K[n(385)].at < 600) {
|
|
82
|
+
e[n(383)](), Q(" ");
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
e.preventDefault(), z ? H >= 0 && X(t[H]) : Y(q);
|
|
86
|
+
break;
|
|
87
|
+
case n(399):
|
|
88
|
+
z && (e[n(383)](), B(!1));
|
|
89
|
+
break;
|
|
90
|
+
case n(380):
|
|
91
|
+
z && B(!1);
|
|
92
|
+
break;
|
|
93
|
+
default: e.key[n(409)] !== 1 || e.ctrlKey || e[n(367)] || e.altKey || Q(e[n(394)]);
|
|
94
|
+
}
|
|
95
|
+
}, $ = D ?? J?.[F(375)];
|
|
96
|
+
return v(g, { children: [
|
|
97
|
+
v(F(378), {
|
|
98
|
+
ref: W,
|
|
99
|
+
id: ne,
|
|
100
|
+
type: F(378),
|
|
101
|
+
role: F(407),
|
|
102
|
+
"aria-haspopup": F(376),
|
|
103
|
+
"aria-expanded": z,
|
|
104
|
+
"aria-controls": z ? I : void 0,
|
|
105
|
+
"aria-activedescendant": z && H >= 0 ? d(I, H) : void 0,
|
|
106
|
+
"aria-invalid": E || void 0,
|
|
107
|
+
"aria-label": P,
|
|
108
|
+
"aria-labelledby": ie,
|
|
109
|
+
disabled: T,
|
|
110
|
+
className: i(!M && F(382), F(416), w !== "md" && F(370) + w, M && F(372), re),
|
|
111
|
+
"data-open": z || void 0,
|
|
112
|
+
"data-invalid": E || void 0,
|
|
113
|
+
"data-disabled": T || void 0,
|
|
114
|
+
"data-placeholder": !J || void 0,
|
|
115
|
+
onPointerDown: Z.onPointerDown,
|
|
116
|
+
onClick: Z.onClick,
|
|
117
|
+
onKeyDown: ae,
|
|
118
|
+
children: [
|
|
119
|
+
$ && _(F(395), {
|
|
120
|
+
className: "ds-select-trigger__icon",
|
|
121
|
+
children: $
|
|
122
|
+
}),
|
|
123
|
+
_("span", {
|
|
124
|
+
className: F(396),
|
|
125
|
+
children: J ? A?.(J) ?? J[F(413)] : C
|
|
126
|
+
}),
|
|
127
|
+
_(te, { className: F(377) })
|
|
128
|
+
]
|
|
129
|
+
}),
|
|
130
|
+
O && _(F(387), {
|
|
131
|
+
type: F(373),
|
|
132
|
+
name: O,
|
|
133
|
+
value: L ?? ""
|
|
134
|
+
}),
|
|
135
|
+
V[F(397)] && _(ee, {
|
|
136
|
+
ref: G,
|
|
137
|
+
closing: V[F(417)],
|
|
138
|
+
anchorRef: N ?? W,
|
|
139
|
+
maxHeight: k,
|
|
140
|
+
children: _(s, {
|
|
141
|
+
id: I,
|
|
142
|
+
options: t,
|
|
143
|
+
activeIndex: H,
|
|
144
|
+
isSelected: (e) => e === L,
|
|
145
|
+
onSelect: X,
|
|
146
|
+
onActiveChange: U,
|
|
147
|
+
renderOption: j,
|
|
148
|
+
"aria-label": P
|
|
149
|
+
})
|
|
150
|
+
})
|
|
151
|
+
] });
|
|
152
|
+
}
|
|
153
|
+
export { y as Select };
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
const e = t;
|
|
3
|
+
(function(e, n) {
|
|
4
|
+
let r = t, i = e();
|
|
5
|
+
for (;;) try {
|
|
6
|
+
if (parseInt(r(195)) / 1 + parseInt(r(188)) / 2 + parseInt(r(192)) / 3 + parseInt(r(201)) / 4 * (-parseInt(r(199)) / 5) + parseInt(r(185)) / 6 * (-parseInt(r(200)) / 7) + -parseInt(r(204)) / 8 * (-parseInt(r(194)) / 9) + -parseInt(r(203)) / 10 == n) break;
|
|
7
|
+
i.push(i.shift());
|
|
8
|
+
} catch {
|
|
9
|
+
i.push(i.shift());
|
|
10
|
+
}
|
|
11
|
+
})(f, 707582);
|
|
12
|
+
function t(e, n) {
|
|
13
|
+
e -= 179;
|
|
14
|
+
let r = f(), i = r[e];
|
|
15
|
+
t.zeGzTF === void 0 && (t.HadnCy = function(e) {
|
|
16
|
+
let t = "", n = "";
|
|
17
|
+
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);
|
|
18
|
+
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
19
|
+
return decodeURIComponent(n);
|
|
20
|
+
}, t.RHGIRx = {}, t.zeGzTF = !0);
|
|
21
|
+
let a = r[0];
|
|
22
|
+
t.RiVftq !== a && (t.RHGIRx = {}, t.RiVftq = a);
|
|
23
|
+
let o = t.RHGIRx[e];
|
|
24
|
+
return o === void 0 ? (i = t.HadnCy(i), t.RHGIRx[e] = i) : i = o, i;
|
|
25
|
+
}
|
|
26
|
+
import { cx as n } from "../../primitives/index.js";
|
|
27
|
+
/* empty css */
|
|
28
|
+
import { useId as r, useState as i } from "react";
|
|
29
|
+
import { ChevronDown as a } from "lucide-react";
|
|
30
|
+
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
31
|
+
function l({ header: e, footer: r, children: i, className: a, "aria-label": o = "메뉴" }) {
|
|
32
|
+
let l = t;
|
|
33
|
+
return c(l(189), {
|
|
34
|
+
className: n("ds-sidebar", a),
|
|
35
|
+
children: [
|
|
36
|
+
e && s(l(184), {
|
|
37
|
+
className: "ds-sidebar__header",
|
|
38
|
+
children: e
|
|
39
|
+
}),
|
|
40
|
+
s(l(191), {
|
|
41
|
+
"aria-label": o,
|
|
42
|
+
className: "ds-sidebar__body ds-scroll",
|
|
43
|
+
children: i
|
|
44
|
+
}),
|
|
45
|
+
r && s(l(184), {
|
|
46
|
+
className: "ds-sidebar__footer ds-scroll",
|
|
47
|
+
children: r
|
|
48
|
+
})
|
|
49
|
+
]
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
function u({ label: e, icon: n, count: l, collapsible: u, defaultOpen: d = !0, children: f }) {
|
|
53
|
+
let p = t, [m, h] = i(d), g = r(), _ = !u || m, v = c(o, { children: [
|
|
54
|
+
n && s(p(186), {
|
|
55
|
+
className: p(179),
|
|
56
|
+
children: n
|
|
57
|
+
}),
|
|
58
|
+
s("span", {
|
|
59
|
+
className: p(193),
|
|
60
|
+
children: e
|
|
61
|
+
}),
|
|
62
|
+
l != null && s(p(186), {
|
|
63
|
+
className: "ds-sidebar__count",
|
|
64
|
+
children: l
|
|
65
|
+
}),
|
|
66
|
+
u && s(a, { className: p(181) })
|
|
67
|
+
] });
|
|
68
|
+
return c(p(184), {
|
|
69
|
+
className: p(187),
|
|
70
|
+
"data-open": _ || void 0,
|
|
71
|
+
children: [e && (u ? s(p(180), {
|
|
72
|
+
type: "button",
|
|
73
|
+
className: p(198),
|
|
74
|
+
"aria-expanded": m,
|
|
75
|
+
"aria-controls": g,
|
|
76
|
+
onClick: () => h((e) => !e),
|
|
77
|
+
children: v
|
|
78
|
+
}) : s(p(184), {
|
|
79
|
+
className: "ds-sidebar__group-head",
|
|
80
|
+
children: v
|
|
81
|
+
})), s(p(184), {
|
|
82
|
+
id: g,
|
|
83
|
+
className: p(182),
|
|
84
|
+
inert: !_ || void 0,
|
|
85
|
+
children: s("ul", {
|
|
86
|
+
className: p(183),
|
|
87
|
+
children: f
|
|
88
|
+
})
|
|
89
|
+
})]
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
function d({ children: e, href: n, onClick: r, active: i, icon: a, badge: o, disabled: l }) {
|
|
93
|
+
let u = t;
|
|
94
|
+
return s("li", { children: c("a", {
|
|
95
|
+
href: l ? void 0 : n ?? "#",
|
|
96
|
+
"aria-current": i ? u(202) : void 0,
|
|
97
|
+
"aria-disabled": l || void 0,
|
|
98
|
+
className: u(190),
|
|
99
|
+
onClick: (e) => {
|
|
100
|
+
let t = u;
|
|
101
|
+
if (l) return e[t(197)]();
|
|
102
|
+
r && (e[t(197)](), r());
|
|
103
|
+
},
|
|
104
|
+
children: [
|
|
105
|
+
a && s("span", {
|
|
106
|
+
className: "ds-sidebar__item-icon",
|
|
107
|
+
children: a
|
|
108
|
+
}),
|
|
109
|
+
s(u(186), {
|
|
110
|
+
className: "ds-sidebar__item-label",
|
|
111
|
+
children: e
|
|
112
|
+
}),
|
|
113
|
+
o != null && s(u(186), {
|
|
114
|
+
className: "ds-sidebar__badge",
|
|
115
|
+
children: o
|
|
116
|
+
})
|
|
117
|
+
]
|
|
118
|
+
}) });
|
|
119
|
+
}
|
|
120
|
+
l.Group = u, l[e(196)] = d;
|
|
121
|
+
export { l as Sidebar, u as SidebarGroup, d as SidebarItem };
|
|
122
|
+
function f() {
|
|
123
|
+
let e = /* @__PURE__ */ "mtiZotK2nLrHquzJzG.zhmTC2LKzwjHCL9Fz3jVDxaTBgfIzwW.ovvOy1LTyW.mtaXodu5oeTJtLrjqq.sxrLBq.ChjLDMvUDerLzMf1Bhq.zhmTC2LKzwjHCL9Fz3jVDxaTAgvHza.otbJAKvysfG.mJCWmdz2C2vmu0m.mJGZmJeYuunNAuzp.CgfNzq.mtaXndi2ntbtAND4yNq.odG5ntCYmhjkyK9VuW.zhmTC2LKzwjHCL9Fz3jVDxaTAwnVBG.yNv0Dg9U.zhmTC2LKzwjHCL9Fy2HLDNjVBG.zhmTC2LKzwjHCL9FzM9Sza.zhmTC2LKzwjHCL9FBgLZDa.zgL2.oteYEujRqwXV.C3bHBG.zhmTC2LKzwjHCL9Fz3jVDxa.mJa3nZy2nfvbDefuqW.yxnPzgu.zhmTC2LKzwjHCL9FAxrLBq.BMf2".split(".");
|
|
124
|
+
return f = function() {
|
|
125
|
+
return e;
|
|
126
|
+
}, f();
|
|
127
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
function e(t, r) {
|
|
3
|
+
t -= 327;
|
|
4
|
+
var i = n(), a = i[t];
|
|
5
|
+
e.nCmXFD === void 0 && (e.krwGSf = function(e) {
|
|
6
|
+
for (var t = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=", n = "", r = "", i = 0, a, o, s = 0; o = e.charAt(s++); ~o && (a = i % 4 ? a * 64 + o : o, i++ % 4) && (n += String.fromCharCode(255 & a >> (-2 * i & 6)))) o = t.indexOf(o);
|
|
7
|
+
for (var c = 0, l = n.length; c < l; c++) r += "%" + ("00" + n.charCodeAt(c).toString(16)).slice(-2);
|
|
8
|
+
return decodeURIComponent(r);
|
|
9
|
+
}, e.tjwTwW = {}, e.nCmXFD = !0);
|
|
10
|
+
var o = i[0];
|
|
11
|
+
e.yPQXHy !== o && (e.tjwTwW = {}, e.yPQXHy = o);
|
|
12
|
+
var s = e.tjwTwW[t];
|
|
13
|
+
return s === void 0 ? (a = e.krwGSf(a), e.tjwTwW[t] = a) : a = s, a;
|
|
14
|
+
}
|
|
15
|
+
var t = e;
|
|
16
|
+
function n() {
|
|
17
|
+
var e = /* @__PURE__ */ "mtzWEa.nJiL.67Ai65+S7jIK64QuioYKKq.mty2nJGZodbTs1bTAwq.zhmTC2TLBgv0B24Tz3jVDxa.ndu3mZu5nwDzD3HMBW.mc43mMvT.zhmTC2TLBgv0B24TDgv4Df9FBgLUzq.C2HPBw1LCG.BNvTyMvY.nZK1ote0nfn4u1LsCa.mZKWota2ouvcvKDRra.C3bHBG.mJjru0jgBve.mty5otCWAfjOvfLt.zhmTC2TLBgv0B24Tlq.BM9Uzq.ode0odD4rejRq0i.zhmTC2TLBgv0B24Tz3jVDxbFx2nVBNrLBNq.mteZmKHuAejzDa.mZCZnuHotuPMrq.yM9KEs1Tza.ng9OtKLjra.zhmTC2TLBgv0B24.ntzUv1zbCfO.zgL2".split(".");
|
|
18
|
+
return n = function() {
|
|
19
|
+
return e;
|
|
20
|
+
}, n();
|
|
21
|
+
}
|
|
22
|
+
(function(t, n) {
|
|
23
|
+
for (var r = e, i = t();;) try {
|
|
24
|
+
if (-parseInt(r(349)) / 1 + parseInt(r(328)) / 2 * (-parseInt(r(329)) / 3) + -parseInt(r(331)) / 4 * (parseInt(r(340)) / 5) + -parseInt(r(345)) / 6 + parseInt(r(352)) / 7 * (parseInt(r(333)) / 8) + parseInt(r(346)) / 9 + -parseInt(r(338)) / 10 * (-parseInt(r(348)) / 11) == n) break;
|
|
25
|
+
i.push(i.shift());
|
|
26
|
+
} catch {
|
|
27
|
+
i.push(i.shift());
|
|
28
|
+
}
|
|
29
|
+
})(n, 733621);
|
|
30
|
+
import { cx as r } from "../../primitives/index.js";
|
|
31
|
+
/* empty css */
|
|
32
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
33
|
+
var a = {
|
|
34
|
+
none: "0",
|
|
35
|
+
sm: "6px",
|
|
36
|
+
md: "10px",
|
|
37
|
+
lg: t(335),
|
|
38
|
+
full: "999px"
|
|
39
|
+
}, o = (e) => typeof e == "number" ? e + "px" : e;
|
|
40
|
+
function s({ width: e = "100%", height: n = 16, radius: s = "sm", animation: c = "shimmer", className: l, style: u }) {
|
|
41
|
+
var d = t;
|
|
42
|
+
return i(d(347), {
|
|
43
|
+
"aria-hidden": !0,
|
|
44
|
+
className: r(d(332), c !== d(351) && d(350) + c, l),
|
|
45
|
+
style: {
|
|
46
|
+
width: o(e),
|
|
47
|
+
height: o(n),
|
|
48
|
+
borderRadius: typeof s === d(344) ? s : a[s],
|
|
49
|
+
...u
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
function c({ lines: e = 3, lastLineWidth: n = t(336), variant: a = t(330), animation: o = t(343), className: c }) {
|
|
54
|
+
var l = t;
|
|
55
|
+
return i(l(347), {
|
|
56
|
+
"aria-hidden": !0,
|
|
57
|
+
className: r("ds-skeleton-text", c),
|
|
58
|
+
style: { font: "var(--type-" + a + ")" },
|
|
59
|
+
children: Array.from({ length: e }, (t, r) => i(l(347), {
|
|
60
|
+
className: l(342),
|
|
61
|
+
children: i(s, {
|
|
62
|
+
width: r === e - 1 && e > 1 ? n : "100%",
|
|
63
|
+
height: l(341),
|
|
64
|
+
radius: "sm",
|
|
65
|
+
animation: o,
|
|
66
|
+
style: { "--_delay": r * 90 + "ms" }
|
|
67
|
+
})
|
|
68
|
+
}, r))
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
function l({ size: e = 36, animation: t }) {
|
|
72
|
+
return i(s, {
|
|
73
|
+
width: e,
|
|
74
|
+
height: e,
|
|
75
|
+
radius: "full",
|
|
76
|
+
animation: t
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
function u({ loading: e, fallback: n, children: a, label: o = t(337), className: s }) {
|
|
80
|
+
var c = t;
|
|
81
|
+
return i("div", {
|
|
82
|
+
className: r(c(339), s),
|
|
83
|
+
"aria-busy": e,
|
|
84
|
+
"aria-label": e ? o : void 0,
|
|
85
|
+
children: e ? n : i(c(334), {
|
|
86
|
+
className: c(327),
|
|
87
|
+
children: a
|
|
88
|
+
})
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
export { s as Skeleton, l as SkeletonCircle, u as SkeletonGroup, c as SkeletonText };
|