@iamfiro/design 0.1.0 → 0.3.1

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.
Files changed (160) hide show
  1. package/AGENTS.md +1 -0
  2. package/agents/INDEX.md +1 -0
  3. package/agents/brand-icon/AGENTS.md +2 -2
  4. package/agents/social-login-button/AGENTS.md +156 -0
  5. package/lib/components/Accordion/Accordion2.js +135 -0
  6. package/lib/components/ActionBar/ActionBar2.js +66 -0
  7. package/lib/components/Alert/Alert2.js +131 -0
  8. package/lib/components/AppShell/AppShell2.js +94 -0
  9. package/lib/components/AreaChart/AreaChart.js +59 -0
  10. package/lib/components/BarChart/BarChart2.js +243 -0
  11. package/lib/components/BarList/BarList2.js +172 -0
  12. package/lib/components/Breadcrumb/Breadcrumb2.js +90 -0
  13. package/lib/components/Calendar/Calendar2.js +309 -0
  14. package/lib/components/Calendar/DatePicker2.js +228 -0
  15. package/lib/components/Calendar/date.js +118 -0
  16. package/lib/components/Card/Card2.js +103 -0
  17. package/lib/components/CardFrame/CardFrame2.js +67 -0
  18. package/lib/components/Chart/ChartParts.js +150 -0
  19. package/lib/components/Chart/chart2.js +96 -0
  20. package/lib/components/Chart/useChartInteraction.js +94 -0
  21. package/lib/components/ChatBubble/ChatBubble2.js +174 -0
  22. package/lib/components/ChatBubble/formatChatTime.js +48 -0
  23. package/lib/components/ChatComposer/ChatComposer2.js +153 -0
  24. package/lib/components/CodeBlock/CodeBlock2.js +93 -0
  25. package/lib/components/CodeBlock/highlight.js +111 -0
  26. package/lib/components/ColorPicker/ColorPicker2.js +609 -0
  27. package/lib/components/ColorPicker/color.js +180 -0
  28. package/lib/components/ColorPicker/presets.js +70 -0
  29. package/lib/components/Combobox/Combobox2.js +228 -0
  30. package/lib/components/CommandMenu/CommandMenu.js +267 -0
  31. package/lib/components/Comment/Comment2.js +110 -0
  32. package/lib/components/ContextMenu/ContextMenu2.js +168 -0
  33. package/lib/components/DataGrid/DataGrid2.js +1998 -0
  34. package/lib/components/DataGrid/GridPopover.js +154 -0
  35. package/lib/components/DataGrid/anchor.js +50 -0
  36. package/lib/components/DataGrid/model.js +557 -0
  37. package/lib/components/DataGrid/panels.js +701 -0
  38. package/lib/components/DataGrid/typeMeta.js +75 -0
  39. package/lib/components/DataGrid/types.js +53 -0
  40. package/lib/components/DescriptionList/DescriptionList2.js +180 -0
  41. package/lib/components/Dialog/AlertDialog.js +119 -0
  42. package/lib/components/Dialog/Dialog2.js +110 -0
  43. package/lib/components/Dialog/modal.js +92 -0
  44. package/lib/components/Drawer/Drawer2.js +244 -0
  45. package/lib/components/DropdownMenu/DropdownMenu2.js +393 -0
  46. package/lib/components/DropdownMenu/menuCore.js +63 -0
  47. package/lib/components/Dropzone/Dropzone2.js +145 -0
  48. package/lib/components/EmptyState/EmptyState2.js +70 -0
  49. package/lib/components/FileChip/FileChip2.js +94 -0
  50. package/lib/components/FileUpload/FileUpload.js +259 -0
  51. package/lib/components/FilterChips/FilterChips2.js +101 -0
  52. package/lib/components/FunnelChart/FunnelChart2.js +283 -0
  53. package/lib/components/FunnelChart/funnel.js +72 -0
  54. package/lib/components/Highlight/Highlight2.js +100 -0
  55. package/lib/components/HoverCard/HoverCard.js +134 -0
  56. package/lib/components/InlineDiff/InlineDiff2.js +215 -0
  57. package/lib/components/InlineDiff/diff.js +126 -0
  58. package/lib/components/InlineDiff/useDiffReview.js +110 -0
  59. package/lib/components/Kanban/Kanban2.js +691 -0
  60. package/lib/components/Kanban/KanbanCard.js +159 -0
  61. package/lib/components/Kanban/move.js +69 -0
  62. package/lib/components/LineChart/LineChart2.js +342 -0
  63. package/lib/components/List/List2.js +132 -0
  64. package/lib/components/Listbox/Listbox2.js +163 -0
  65. package/lib/components/Marker/Marker2.js +82 -0
  66. package/lib/components/Menubar/Menubar2.js +222 -0
  67. package/lib/components/MultiSelect/MultiSelect2.js +204 -0
  68. package/lib/components/NavigationMenu/NavigationMenu2.js +481 -0
  69. package/lib/components/NoticeStack/NoticeStack2.js +178 -0
  70. package/lib/components/NumberStepper/NumberStepper2.js +128 -0
  71. package/lib/components/OtpInput/OtpInput2.js +122 -0
  72. package/lib/components/Pagination/Pagination2.js +210 -0
  73. package/lib/components/Pagination/paginationRange.js +52 -0
  74. package/lib/components/PhoneInput/PhoneInput.js +175 -0
  75. package/lib/components/PieChart/PieChart2.js +246 -0
  76. package/lib/components/PieChart/arc.js +90 -0
  77. package/lib/components/PieChart/useArcTween.js +92 -0
  78. package/lib/components/Popover/Popover2.js +111 -0
  79. package/lib/components/ProgressTracker/ProgressTracker2.js +226 -0
  80. package/lib/components/Rating/Rating2.js +186 -0
  81. package/lib/components/Resizable/Resizable2.js +238 -0
  82. package/lib/components/Resizable/layout.js +115 -0
  83. package/lib/components/ScaledPreview/ScaledPreview2.js +99 -0
  84. package/lib/components/ScatterChart/ScatterChart2.js +355 -0
  85. package/lib/components/ScatterChart/scatter.js +85 -0
  86. package/lib/components/ScrollArea/ScrollArea2.js +217 -0
  87. package/lib/components/Select/Select2.js +153 -0
  88. package/lib/components/Sidebar/Sidebar2.js +127 -0
  89. package/lib/components/Skeleton/Skeleton2.js +91 -0
  90. package/lib/components/Slider/Slider2.js +142 -0
  91. package/lib/components/SocialLoginButton/SocialLoginButton.js +84 -0
  92. package/lib/components/SparkChart/SparkChart2.js +217 -0
  93. package/lib/components/SparkChart/spark.js +71 -0
  94. package/lib/components/Sparkbar/Sparkbar2.js +111 -0
  95. package/lib/components/SplitView/SplitView2.js +95 -0
  96. package/lib/components/Stat/Stat2.js +164 -0
  97. package/lib/components/StepList/StepList2.js +131 -0
  98. package/lib/components/Table/Table2.js +104 -0
  99. package/lib/components/Tabs/Tabs2.js +131 -0
  100. package/lib/components/TagInput/TagInput2.js +357 -0
  101. package/lib/components/TimePicker/TimePicker2.js +388 -0
  102. package/lib/components/TimePicker/time.js +81 -0
  103. package/lib/components/Timeline/Timeline2.js +369 -0
  104. package/lib/components/Timeline/scale.js +81 -0
  105. package/lib/components/Toast/Toaster.js +213 -0
  106. package/lib/components/Toast/store.js +128 -0
  107. package/lib/components/ToggleGroup/ToggleGroup2.js +125 -0
  108. package/lib/components/Toolbar/Toolbar2.js +283 -0
  109. package/lib/components/Tracker/Tracker2.js +172 -0
  110. package/lib/components/TreeDiagram/TreeDiagram2.js +223 -0
  111. package/lib/components/TreeView/TreeView2.js +286 -0
  112. package/lib/hooks/timing.js +57 -0
  113. package/lib/hooks/useControllableState.js +49 -0
  114. package/lib/hooks/useCountdown.js +75 -0
  115. package/lib/hooks/useDigitInput.js +103 -0
  116. package/lib/hooks/useDismiss.js +69 -0
  117. package/lib/hooks/useElapsed.js +85 -0
  118. package/lib/hooks/useFloating.js +70 -0
  119. package/lib/hooks/useFocusTrap.js +85 -0
  120. package/lib/hooks/usePresence.js +58 -0
  121. package/lib/hooks/usePressToOpen.js +70 -0
  122. package/lib/hooks/useScrollLock.js +71 -0
  123. package/lib/hooks/useSelection.js +65 -0
  124. package/lib/index.js +176 -17911
  125. package/lib/primitives/AspectRatio2.js +76 -0
  126. package/lib/primitives/BrandIcon.js +245 -0
  127. package/lib/primitives/ColorDot2.js +71 -0
  128. package/lib/primitives/CopyButton2.js +86 -0
  129. package/lib/primitives/CountBadge2.js +80 -0
  130. package/lib/primitives/Countdown2.js +61 -0
  131. package/lib/primitives/Delta2.js +92 -0
  132. package/lib/primitives/Elapsed.js +62 -0
  133. package/lib/primitives/FileIcon2.js +125 -0
  134. package/lib/primitives/Flag2.js +263 -0
  135. package/lib/primitives/IconStack2.js +85 -0
  136. package/lib/primitives/IconTile2.js +69 -0
  137. package/lib/primitives/Kbd2.js +88 -0
  138. package/lib/primitives/Layout2.js +118 -0
  139. package/lib/primitives/Link2.js +55 -0
  140. package/lib/primitives/MaskedText2.js +121 -0
  141. package/lib/primitives/Progress2.js +137 -0
  142. package/lib/primitives/RelativeTime.js +82 -0
  143. package/lib/primitives/SearchInput2.js +85 -0
  144. package/lib/primitives/SelectorButton2.js +96 -0
  145. package/lib/primitives/Spinner2.js +94 -0
  146. package/lib/primitives/StatusIcon2.js +126 -0
  147. package/lib/primitives/Swatch2.js +79 -0
  148. package/lib/primitives/Tooltip2.js +132 -0
  149. package/lib/primitives/Typography2.js +97 -0
  150. package/lib/primitives/formatCountdown.js +54 -0
  151. package/lib/primitives/formatElapsed.js +63 -0
  152. package/lib/primitives/formatRelativeTime.js +64 -0
  153. package/lib/primitives/hotkey.js +94 -0
  154. package/lib/primitives/index.js +351 -0
  155. package/lib/primitives/maskValue.js +69 -0
  156. package/lib/style.css +1 -1
  157. package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +10 -0
  158. package/lib/types/components/index.d.ts +2 -0
  159. package/lib/types/primitives/BrandIcon.d.ts +1 -1
  160. package/package.json +2 -1
@@ -0,0 +1,217 @@
1
+ "use client";
2
+ const e = _;
3
+ (function(e, t) {
4
+ let n = _, r = e();
5
+ for (;;) try {
6
+ if (-parseInt(n(346)) / 1 * (-parseInt(n(410)) / 2) + -parseInt(n(401)) / 3 * (-parseInt(n(363)) / 4) + -parseInt(n(372)) / 5 * (parseInt(n(391)) / 6) + parseInt(n(405)) / 7 + parseInt(n(366)) / 8 + parseInt(n(396)) / 9 + -parseInt(n(406)) / 10 == t) break;
7
+ r.push(r.shift());
8
+ } catch {
9
+ r.push(r.shift());
10
+ }
11
+ })(v, 746798);
12
+ import { TIMING as t } from "../../hooks/timing.js";
13
+ import { cx as n } from "../../primitives/index.js";
14
+ import { focusableIn as r } from "../../hooks/useFocusTrap.js";
15
+ /* empty css */
16
+ import { useCallback as i, useEffect as a, useLayoutEffect as o, useRef as s, useState as c } from "react";
17
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
18
+ var d = 12, f = 24, p = 8, m = (e, t, n) => {
19
+ n ? e.setAttribute(t, "") : e[_(413)](t);
20
+ }, h = (e, t) => {
21
+ let n = _;
22
+ typeof e == "function" ? e(t) : e && (e[n(394)] = t);
23
+ };
24
+ function g({ children: g, orientation: v = e(389), maxHeight: y, scrollbars: b = e(354), 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 }) {
25
+ let M = e, N = s(null), P = s(null), F = s(null), I = s(null), L = s(null), R = s(null), z = s(null), B = s({
26
+ x: {
27
+ track: 0,
28
+ thumb: 0
29
+ },
30
+ y: {
31
+ track: 0,
32
+ thumb: 0
33
+ }
34
+ }), V = s(!0), H = s(void 0), U = s(null), [W, G] = c(!1), K = s(C);
35
+ a(() => {
36
+ let e = _;
37
+ K[e(394)] = C;
38
+ });
39
+ let q = i(() => {
40
+ let e = _, t = N[e(394)], n = P[e(394)];
41
+ if (!t || !n) return;
42
+ let { scrollTop: r, scrollLeft: i, scrollHeight: a, scrollWidth: o, clientHeight: s, clientWidth: c } = n, l = a - s, u = o - c, h = v !== e(390) && l > 1, g = v !== e(389) && u > 1;
43
+ if (m(t, "data-scrollable-y", h), m(t, e(358), g), h && R[e(394)]) {
44
+ let t = s - 12 - (g ? d : 0), n = Math[e(370)](t, Math[e(365)](f, t * s / a)), i = (t - n) * Math[e(370)](l, Math[e(365)](0, r)) / l;
45
+ B[e(394)].y = {
46
+ track: t,
47
+ thumb: n
48
+ }, R[e(394)].style.height = n + "px", R[e(394)].style[e(353)] = "translate3d(0, " + i + "px, 0)";
49
+ }
50
+ if (g && z.current) {
51
+ let t = c - 12 - (h ? d : 0), n = Math[e(370)](t, Math.max(f, t * c / o)), r = (t - n) * Math[e(370)](u, Math[e(365)](0, i)) / u;
52
+ B[e(394)].x = {
53
+ track: t,
54
+ thumb: n
55
+ }, z[e(394)][e(386)][e(385)] = n + "px", z[e(394)][e(386)].transform = e(402) + r + e(379);
56
+ }
57
+ m(t, e(393), h && r > 1), m(t, e(399), h && r < l - 1), m(t, e(375), g && i > 1), m(t, e(398), g && i < u - 1);
58
+ let y = l - r <= p;
59
+ y !== V[e(394)] && (V[e(394)] = y, K.current?.(y));
60
+ }, [v]);
61
+ o(() => {
62
+ let e = _, t = P.current, n = F.current;
63
+ if (!t || !n) return;
64
+ S && (t.scrollTop = t[e(400)]);
65
+ let i = () => {
66
+ let i = e;
67
+ S && V[i(394)] && (t.scrollTop = t.scrollHeight), q();
68
+ let a = t[i(400)] - t[i(343)] > 1 || t[i(381)] - t[i(369)] > 1;
69
+ G(a && r(n).length === 0);
70
+ };
71
+ i();
72
+ let a = new ResizeObserver(i);
73
+ return a[e(362)](t), a[e(362)](n), () => a[e(411)]();
74
+ }, [S, q]), a(() => {
75
+ let e = _, t = P[e(394)], n = [I[e(394)], L.current][e(361)]((e) => !!e), r = (n) => {
76
+ let r = e;
77
+ if (!t) return;
78
+ let i = n[r(374)] === 1 ? 16 : n[r(374)] === 2 ? t.clientHeight : 1;
79
+ n[r(387)](), t[r(409)]({
80
+ left: n[r(382)] * i,
81
+ top: n[r(347)] * i
82
+ });
83
+ };
84
+ return n[e(355)]((e) => e.addEventListener("wheel", r, { passive: !1 })), () => n[e(355)]((t) => t[e(356)]("wheel", r));
85
+ }, [v]), a(() => () => window[M(380)](H[M(394)]), []);
86
+ let J = (e) => {
87
+ let n = M;
88
+ q();
89
+ let r = N[n(394)];
90
+ r && (r.setAttribute(n(364), ""), window[n(380)](H.current), H[n(394)] = window.setTimeout(() => r[n(413)]("data-scrolling"), t[n(388)])), E?.(e);
91
+ }, Y = s((e) => {
92
+ let t = M;
93
+ if (e.key !== t(392) || !U.current) return;
94
+ e[t(387)](), e[t(403)]();
95
+ let n = P[t(394)], r = U.current;
96
+ n && (r.axis === "y" ? n[t(404)] = r.start : n.scrollLeft = r[t(383)]), X();
97
+ }), X = () => {
98
+ let e = M;
99
+ U.current = null, N[e(394)]?.[e(413)](e(345)), window[e(356)](e(407), Y[e(394)], !0);
100
+ }, Z = (e) => (t) => {
101
+ let n = M, r = P.current;
102
+ if (t[n(359)] !== 0 || !r) return;
103
+ t[n(387)](), t[n(403)](), t[n(360)].setPointerCapture(t.pointerId);
104
+ let { track: i, thumb: a } = B[n(394)][e], o = e === "y" ? r[n(400)] - r.clientHeight : r.scrollWidth - r[n(369)];
105
+ U[n(394)] = {
106
+ axis: e,
107
+ pointer: e === "y" ? t[n(408)] : t.clientX,
108
+ start: e === "y" ? r[n(404)] : r[n(376)],
109
+ ratio: o / Math[n(365)](1, i - a)
110
+ }, N[n(394)]?.[n(397)](n(345), ""), window.addEventListener("keydown", Y.current, !0);
111
+ }, Q = (e) => {
112
+ let t = M, n = U[t(394)], r = P[t(394)];
113
+ if (!n || !r) return;
114
+ let i = n[t(383)] + ((n[t(344)] === "y" ? e[t(408)] : e[t(371)]) - n[t(384)]) * n[t(395)];
115
+ n[t(344)] === "y" ? r[t(404)] = i : r[t(376)] = i;
116
+ }, $ = (e) => (t) => {
117
+ let n = M, r = P[n(394)], i = e === "y" ? R.current : z[n(394)];
118
+ if (t.button !== 0 || !r || !i || t[n(414)] !== t[n(360)]) return;
119
+ t[n(387)]();
120
+ let a = i[n(367)]();
121
+ if (e === "y") {
122
+ let e = t.clientY < a.top ? -1 : 1;
123
+ r[n(409)]({
124
+ top: e * r[n(343)] * .9,
125
+ behavior: "smooth"
126
+ });
127
+ } else {
128
+ let e = t[n(371)] < a[n(352)] ? -1 : 1;
129
+ r[n(409)]({
130
+ left: e * r[n(369)] * .9,
131
+ behavior: n(368)
132
+ });
133
+ }
134
+ }, te = (e) => {
135
+ let t = M;
136
+ P[t(394)] = e, h(w, e);
137
+ }, ne = T ?? W, re = typeof x === M(348) ? x : 28, ie = v !== "horizontal", ae = v !== "vertical";
138
+ return u("div", {
139
+ ref: N,
140
+ className: n(M(373), !!x && M(351), D),
141
+ "data-orientation": v,
142
+ "data-scrollbars": b,
143
+ style: {
144
+ maxHeight: y,
145
+ "--_fade": re + "px",
146
+ ...O
147
+ },
148
+ ...j,
149
+ children: [
150
+ l(M(349), {
151
+ ref: te,
152
+ className: n(M(350), ee),
153
+ role: k || A ? M(357) : void 0,
154
+ "aria-label": k,
155
+ "aria-labelledby": A,
156
+ tabIndex: ne ? 0 : void 0,
157
+ onScroll: J,
158
+ children: l(M(349), {
159
+ ref: F,
160
+ className: M(342),
161
+ children: g
162
+ })
163
+ }),
164
+ ie && l(M(349), {
165
+ ref: I,
166
+ className: M(412),
167
+ "aria-hidden": !0,
168
+ onPointerDown: $("y"),
169
+ children: l(M(349), {
170
+ ref: R,
171
+ className: "ds-scroll-area__thumb",
172
+ onPointerDown: Z("y"),
173
+ onPointerMove: Q,
174
+ onPointerUp: X,
175
+ onPointerCancel: X,
176
+ onLostPointerCapture: () => U.current && X()
177
+ })
178
+ }),
179
+ ae && l(M(349), {
180
+ ref: L,
181
+ className: M(377),
182
+ "aria-hidden": !0,
183
+ onPointerDown: $("x"),
184
+ children: l(M(349), {
185
+ ref: z,
186
+ className: M(378),
187
+ onPointerDown: Z("x"),
188
+ onPointerMove: Q,
189
+ onPointerUp: X,
190
+ onPointerCancel: X,
191
+ onLostPointerCapture: () => U[M(394)] && X()
192
+ })
193
+ })
194
+ ]
195
+ });
196
+ }
197
+ export { g as ScrollArea };
198
+ function _(e, t) {
199
+ e -= 342;
200
+ let n = v(), r = n[e];
201
+ _.lRIPsE === void 0 && (_.YwEAeB = function(e) {
202
+ let t = "", n = "";
203
+ 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);
204
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
205
+ return decodeURIComponent(n);
206
+ }, _.eUpBnX = {}, _.lRIPsE = !0);
207
+ let i = n[0];
208
+ _.oXjiUT !== i && (_.eUpBnX = {}, _.oXjiUT = i);
209
+ let a = _.eUpBnX[e];
210
+ return a === void 0 ? (r = _.YwEAeB(r), _.eUpBnX[e] = r) : r = a, r;
211
+ }
212
+ function v() {
213
+ let e = /* @__PURE__ */ "zgf0ys1Zy3jVBgXHyMXLlxG.yNv0Dg9U.y3vYCMvUDfrHCMDLDa.zMLSDgvY.B2jZzxj2zq.nfr5v2DcvW.zgf0ys1Zy3jVBgXPBMC.Bwf4.mZGXnJG1nNfVrKrKAq.z2v0qM91BMrPBMDdBgLLBNrszwn0.C21VB3rO.y2XPzw50v2LKDgG.BwLU.y2XPzw50wa.otvzvgTjC0W.zhmTC2nYB2XSlwfYzwe.zgvSDgfnB2rL.zgf0ys1MywrLlwXLzNq.C2nYB2XStgvMDa.zhmTC2nYB2XSlwfYzwfFx2jHCIbKCY1Zy3jVBgWTyxjLyv9FyMfYls14.zhmTC2nYB2XSlwfYzwfFx3rODw1I.ChGSidaSidaP.y2XLyxjuAw1LB3v0.C2nYB2XSv2LKDgG.zgvSDgfy.C3rHCNq.Cg9PBNrLCG.D2LKDgG.C3r5Bgu.ChjLDMvUDerLzMf1Bhq.Ag92zxjhCMfJzq.DMvYDgLJywW.Ag9YAxPVBNrHBa.nteYnJr0zeL2s0O.rxnJyxbL.zgf0ys1MywrLlxrVCa.y3vYCMvUDa.CMf0Aw8.ntCYnJu3nhvKBgLrEq.C2v0qxr0CMLIDxrL.zgf0ys1MywrLlxjPz2H0.zgf0ys1MywrLlwjVDhrVBq.C2nYB2XSsgvPz2H0.mZC1nJyZm2Xpv0zWsW.DhjHBNnSyxrLm2qO.C3rVCfbYB3bHz2f0Aw9U.C2nYB2XSvg9W.nJC2mZC5mKPpsMnfCq.mZeXnZeYmdbcwhPmt3q.A2v5zg93BG.y2XPzw50wq.C2nYB2XSqNK.mLLRDwnbva.zgLZy29UBMvJDa.zhmTC2nYB2XSlwfYzwfFx2jHCIbKCY1Zy3jVBgWTyxjLyv9FyMfYls15.CMvTB3zLqxr0CMLIDxrL.DgfYz2v0.zhmTC2nYB2XSlwfYzwfFx2nVBNrLBNq.y2XPzw50sgvPz2H0.yxHPCW.zgf0ys1KCMfNz2LUzW.nJK0mZK0B2jWr09u.zgvSDgfz.BNvTyMvY.zgL2.zhmTC2nYB2XSlwfYzwfFx3zPzxDWB3j0.zhmTC2nYB2XSlwfYzweTlwzHzgu.BgvMDa.DhjHBNnMB3jT.yxv0BW.zM9YrwfJAa.CMvTB3zLrxzLBNrmAxn0zw5LCG.CMvNAw9U".split(".");
214
+ return v = function() {
215
+ return e;
216
+ }, v();
217
+ }
@@ -0,0 +1,153 @@
1
+ "use client";
2
+ (function(e, t) {
3
+ let n = r, i = e();
4
+ for (;;) try {
5
+ if (parseInt(n(460)) / 1 + -parseInt(n(481)) / 2 + -parseInt(n(491)) / 3 + parseInt(n(458)) / 4 * (parseInt(n(462)) / 5) + parseInt(n(493)) / 6 * (parseInt(n(488)) / 7) + parseInt(n(463)) / 8 * (-parseInt(n(447)) / 9) + parseInt(n(459)) / 10 == t) break;
6
+ i.push(i.shift());
7
+ } catch {
8
+ i.push(i.shift());
9
+ }
10
+ })(b, 280508);
11
+ import { usePresence as e } from "../../hooks/usePresence.js";
12
+ import { useControllableState as t } from "../../hooks/useControllableState.js";
13
+ import { cx as n } from "../../primitives/index.js";
14
+ function r(e, t) {
15
+ e -= 445;
16
+ let n = b(), i = n[e];
17
+ r.sTxhMH === void 0 && (r.KRdNwh = function(e) {
18
+ let t = "", n = "";
19
+ 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);
20
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
21
+ return decodeURIComponent(n);
22
+ }, r.ijNmJA = {}, r.sTxhMH = !0);
23
+ let a = n[0];
24
+ r.jlHrdN !== a && (r.ijNmJA = {}, r.jlHrdN = a);
25
+ let o = r.ijNmJA[e];
26
+ return o === void 0 ? (i = r.KRdNwh(i), r.ijNmJA[e] = i) : i = o, i;
27
+ }
28
+ import { useDismiss as i } from "../../hooks/useDismiss.js";
29
+ import { usePressToOpen as a } from "../../hooks/usePressToOpen.js";
30
+ import { Listbox as o, ListboxPopover as s, firstEnabled as c, lastEnabled as l, nextEnabled as u, optionId as d } from "../Listbox/Listbox2.js";
31
+ /* empty css */
32
+ import { useId as f, useRef as p, useState as m } from "react";
33
+ import { ChevronDown as h } from "lucide-react";
34
+ import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
35
+ function y({ options: y, value: b, defaultValue: x = null, onValueChange: S, open: C, onOpenChange: w, placeholder: T = "선택하세요", size: E = "md", disabled: D, invalid: O, leading: ee, name: k, id: te, className: ne, maxHeight: A, renderValue: j, renderOption: M, bare: N, anchorRef: re, "aria-label": P, "aria-labelledby": ie }) {
36
+ let F = r, I = f() + "-list", [L, R] = t(b, x, (e) => e !== null && S?.(e)), [z, B] = t(C, !1, w), V = e(z), [H, U] = m(-1), W = p(null), G = p(null), K = p({
37
+ text: "",
38
+ at: 0
39
+ }), q = y[F(449)]((e) => e[F(446)] === L), J = y[q];
40
+ i(z, [W, G], () => B(!1));
41
+ let Y = (e) => {
42
+ let t = F;
43
+ U(e >= 0 && !y[e]?.[t(494)] ? e : c(y)), B(!0);
44
+ }, X = (e) => {
45
+ let t = F;
46
+ e.disabled || (R(e[t(446)]), B(!1), W[t(478)]?.[t(452)]());
47
+ }, Z = a({
48
+ open: z,
49
+ onOpen: () => Y(q),
50
+ onClose: () => B(!1),
51
+ panelRef: G,
52
+ onRelease: (e) => y[e] && X(y[e]),
53
+ disabled: D
54
+ }), Q = (e) => {
55
+ let t = F, n = Date.now(), r = K[t(478)];
56
+ r.text = n - r.at > 600 ? e : r.text + e, r.at = n;
57
+ let i = z ? H : q, a = r[t(475)][t(477)](), o = [...y[t(457)](i + 1), ...y[t(457)](0, i + 1)][t(472)]((e) => !e.disabled && e[t(455)][t(477)]()[t(445)](a));
58
+ o && (z ? U(y[t(492)](o)) : R(o[t(446)]));
59
+ }, ae = (e) => {
60
+ let t = F;
61
+ switch (e[t(486)]) {
62
+ case t(473):
63
+ e[t(448)](), z ? U(u(y, H, 1)) : Y(q);
64
+ break;
65
+ case "ArrowUp":
66
+ e[t(448)](), z ? U(u(y, H, -1)) : Y(q >= 0 ? q : l(y));
67
+ break;
68
+ case "Home":
69
+ case t(465):
70
+ if (!z) break;
71
+ e.preventDefault(), U(e.key === t(454) ? c(y) : l(y));
72
+ break;
73
+ case t(480):
74
+ case " ":
75
+ if (e.key === " " && Date[t(483)]() - K[t(478)].at < 600) {
76
+ e[t(448)](), Q(" ");
77
+ break;
78
+ }
79
+ e[t(448)](), z ? H >= 0 && X(y[H]) : Y(q);
80
+ break;
81
+ case "Escape":
82
+ z && (e[t(448)](), B(!1));
83
+ break;
84
+ case t(470):
85
+ z && B(!1);
86
+ break;
87
+ default: e[t(486)][t(484)] !== 1 || e[t(476)] || e[t(468)] || e[t(450)] || Q(e[t(486)]);
88
+ }
89
+ }, $ = ee ?? J?.icon;
90
+ return v(g, { children: [
91
+ v(F(456), {
92
+ ref: W,
93
+ id: te,
94
+ type: F(456),
95
+ role: F(479),
96
+ "aria-haspopup": F(451),
97
+ "aria-expanded": z,
98
+ "aria-controls": z ? I : void 0,
99
+ "aria-activedescendant": z && H >= 0 ? d(I, H) : void 0,
100
+ "aria-invalid": O || void 0,
101
+ "aria-label": P,
102
+ "aria-labelledby": ie,
103
+ disabled: D,
104
+ className: n(!N && F(489), F(467), E !== "md" && F(487) + E, N && F(469), ne),
105
+ "data-open": z || void 0,
106
+ "data-invalid": O || void 0,
107
+ "data-disabled": D || void 0,
108
+ "data-placeholder": !J || void 0,
109
+ onPointerDown: Z[F(466)],
110
+ onClick: Z[F(485)],
111
+ onKeyDown: ae,
112
+ children: [
113
+ $ && _(F(482), {
114
+ className: F(464),
115
+ children: $
116
+ }),
117
+ _(F(482), {
118
+ className: F(474),
119
+ children: J ? j?.(J) ?? J[F(455)] : T
120
+ }),
121
+ _(h, { className: "ds-select-trigger__chevron" })
122
+ ]
123
+ }),
124
+ k && _(F(471), {
125
+ type: F(490),
126
+ name: k,
127
+ value: L ?? ""
128
+ }),
129
+ V[F(453)] && _(s, {
130
+ ref: G,
131
+ closing: V[F(461)],
132
+ anchorRef: re ?? W,
133
+ maxHeight: A,
134
+ children: _(o, {
135
+ id: I,
136
+ options: y,
137
+ activeIndex: H,
138
+ isSelected: (e) => e === L,
139
+ onSelect: X,
140
+ onActiveChange: U,
141
+ renderOption: M,
142
+ "aria-label": P
143
+ })
144
+ })
145
+ ] });
146
+ }
147
+ export { y as Select };
148
+ function b() {
149
+ let e = /* @__PURE__ */ "mtuWotG1mNnrsM1ira.Aw5KzxHpzG.mZmXmJuXmfvcteLXAa.zgLZywjSzwq.C3rHCNrZv2L0Aa.DMfSDwu.mJyWnJyZnenMr0vXyW.ChjLDMvUDerLzMf1Bhq.zMLUzeLUzgv4.ywX0s2v5.BgLZDgjVEa.zM9JDxm.Bw91BNrLza.sg9Tzq.BgfIzwW.yNv0Dg9U.C2XPy2u.nJa0nfDYrgXmCW.ndqYnJmYmgLhChfYyq.mtGWodv1rNzysfG.y2XVC2LUzW.otm1s1f4y2XX.oeXmt0P6wG.zhmTC2vSzwn0lxrYAwDNzxjFx2LJB24.rw5K.B25qB2LUDgvYrg93BG.zhmTC2vSzwn0lxrYAwDNzxi.Bwv0yuTLEq.zhmTC2vSzwn0lxrYAwDNzxiTlwjHCMu.vgfI.Aw5WDxq.zMLUza.qxjYB3DeB3DU.zhmTC2vSzwn0lxrYAwDNzxjFx3zHBhvL.Dgv4Da.y3rYBeTLEq.Dg9mB3DLCKnHC2u.y3vYCMvUDa.y29TyM9IB3G.rw50zxi.ndqZodGYqNHxze9l.C3bHBG.BM93.BgvUz3rO.B25dBgLJAW.A2v5.zhmTC2vSzwn0lxrYAwDNzxiTlq.n09YD2LXrW.zhmTy29UDhjVBa.AgLKzgvU".split(".");
150
+ return b = function() {
151
+ return e;
152
+ }, b();
153
+ }
@@ -0,0 +1,127 @@
1
+ "use client";
2
+ const e = l;
3
+ (function(e, t) {
4
+ let n = l, r = e();
5
+ for (;;) try {
6
+ if (-parseInt(n(245)) / 1 + -parseInt(n(239)) / 2 * (-parseInt(n(252)) / 3) + parseInt(n(241)) / 4 * (-parseInt(n(244)) / 5) + -parseInt(n(254)) / 6 * (parseInt(n(238)) / 7) + -parseInt(n(235)) / 8 + -parseInt(n(255)) / 9 * (-parseInt(n(243)) / 10) + parseInt(n(233)) / 11 == t) break;
7
+ r.push(r.shift());
8
+ } catch {
9
+ r.push(r.shift());
10
+ }
11
+ })(t, 971579);
12
+ function t() {
13
+ let e = /* @__PURE__ */ "zhmTC2LKzwjHCL9FBgLZDa.nZaZmdK2ouXuD3nhwa.zhmTC2LKzwjHCL9FyMfKz2u.ntm1mdi5nNv2rKTUuW.ChjLDMvUDerLzMf1Bhq.zgL2.ndy4mJG2DunVB29U.odb0Cxbqwuu.zhmTC2LKzwjHCL9Fy291BNq.mJbtrxfjC08.zhmTC2LKzwjHCL9FAxrLBs1Py29U.nty1mtb5BeLKAMi.odyWotaWAufYEw1p.ntaZntq2CxDfv3jd.zhmTC2LKzwjHCL9FzM9VDgvYigrZlxnJCM9SBa.zhmTC2LKzwjHCL9Fz3jVDxaTBgfIzwW.sxrLBq.BMf2.zhmTC2LKzwjHCL9Fz3jVDxaTAgvHza.zhmTC2LKzwjHCL9Fy2HLDNjVBG.ndyZotjotezHy04.zhmTC2LKzwjHCL9Fz3jVDxaTAwnVBG.nNr0t3HJCa.mJG4ow5wBvbOBa.zhmTC2LKzwjHCL9Fz3jVDxa.yxnPzgu.zhmTC2LKzwjHCL9FAxrLBq.C3bHBG.r3jVDxa.zhmTC2LKzwjHCL9FzM9Sza.zhmTC2LKzwjHCL9FyM9KEsbKCY1Zy3jVBgW.zhmTC2LKzwjHCL9FAgvHzgvY.zhmTC2LKzwjHCG.CgfNzq".split(".");
14
+ return t = function() {
15
+ return e;
16
+ }, t();
17
+ }
18
+ import { cx as n } from "../../primitives/index.js";
19
+ /* empty css */
20
+ import { useId as r, useState as i } from "react";
21
+ import { ChevronDown as a } from "lucide-react";
22
+ import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
23
+ function l(e, n) {
24
+ e -= 231;
25
+ let r = t(), i = r[e];
26
+ l.FbtUUr === void 0 && (l.ActkuY = function(e) {
27
+ let t = "", n = "";
28
+ 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);
29
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
30
+ return decodeURIComponent(n);
31
+ }, l.qlrcwO = {}, l.FbtUUr = !0);
32
+ let a = r[0];
33
+ l.ZXZGIN !== a && (l.qlrcwO = {}, l.ZXZGIN = a);
34
+ let o = l.qlrcwO[e];
35
+ return o === void 0 ? (i = l.ActkuY(i), l.qlrcwO[e] = i) : i = o, i;
36
+ }
37
+ function u({ header: e, footer: t, children: r, className: i, "aria-label": a = "메뉴" }) {
38
+ let o = l;
39
+ return c(o(257), {
40
+ className: n(o(264), i),
41
+ children: [
42
+ e && s(o(237), {
43
+ className: o(263),
44
+ children: e
45
+ }),
46
+ s(o(249), {
47
+ "aria-label": a,
48
+ className: o(262),
49
+ children: r
50
+ }),
51
+ t && s("div", {
52
+ className: o(246),
53
+ children: t
54
+ })
55
+ ]
56
+ });
57
+ }
58
+ function d({ label: e, icon: t, count: n, collapsible: u, defaultOpen: d = !0, children: f }) {
59
+ let p = l, [m, h] = i(d), g = r(), _ = !u || m, v = c(o, { children: [
60
+ t && s(p(259), {
61
+ className: p(253),
62
+ children: t
63
+ }),
64
+ s(p(259), {
65
+ className: p(247),
66
+ children: e
67
+ }),
68
+ n != null && s("span", {
69
+ className: p(240),
70
+ children: n
71
+ }),
72
+ u && s(a, { className: p(251) })
73
+ ] });
74
+ return c("div", {
75
+ className: p(256),
76
+ "data-open": _ || void 0,
77
+ children: [e && (u ? s("button", {
78
+ type: "button",
79
+ className: p(250),
80
+ "aria-expanded": m,
81
+ "aria-controls": g,
82
+ onClick: () => h((e) => !e),
83
+ children: v
84
+ }) : s(p(237), {
85
+ className: p(250),
86
+ children: v
87
+ })), s("div", {
88
+ id: g,
89
+ className: p(261),
90
+ inert: !_ || void 0,
91
+ children: s("ul", {
92
+ className: p(232),
93
+ children: f
94
+ })
95
+ })]
96
+ });
97
+ }
98
+ function f({ children: e, href: t, onClick: n, active: r, icon: i, badge: a, disabled: o }) {
99
+ let u = l;
100
+ return s("li", { children: c("a", {
101
+ href: o ? void 0 : t ?? "#",
102
+ "aria-current": r ? u(231) : void 0,
103
+ "aria-disabled": o || void 0,
104
+ className: u(258),
105
+ onClick: (e) => {
106
+ let t = u;
107
+ if (o) return e[t(236)]();
108
+ n && (e[t(236)](), n());
109
+ },
110
+ children: [
111
+ i && s("span", {
112
+ className: u(242),
113
+ children: i
114
+ }),
115
+ s("span", {
116
+ className: "ds-sidebar__item-label",
117
+ children: e
118
+ }),
119
+ a != null && s(u(259), {
120
+ className: u(234),
121
+ children: a
122
+ })
123
+ ]
124
+ }) });
125
+ }
126
+ u[e(260)] = d, u[e(248)] = f;
127
+ export { u as Sidebar, d as SidebarGroup, f as SidebarItem };
@@ -0,0 +1,91 @@
1
+ "use client";
2
+ var e = a;
3
+ (function(e, t) {
4
+ for (var n = a, r = e();;) try {
5
+ if (-parseInt(n(280)) / 1 + parseInt(n(259)) / 2 * (-parseInt(n(268)) / 3) + parseInt(n(265)) / 4 + -parseInt(n(262)) / 5 + -parseInt(n(275)) / 6 * (parseInt(n(267)) / 7) + parseInt(n(278)) / 8 * (-parseInt(n(269)) / 9) + parseInt(n(282)) / 10 == t) break;
6
+ r.push(r.shift());
7
+ } catch {
8
+ r.push(r.shift());
9
+ }
10
+ })(u, 254301);
11
+ import { cx as t } from "../../primitives/index.js";
12
+ /* empty css */
13
+ import { jsx as n } from "react/jsx-runtime";
14
+ var r = {
15
+ none: "0",
16
+ sm: e(260),
17
+ md: "10px",
18
+ lg: "16px",
19
+ full: e(273)
20
+ }, i = (t) => typeof t === e(284) ? t + "px" : t;
21
+ function a(e, t) {
22
+ e -= 258;
23
+ var n = u(), r = n[e];
24
+ a.dKtYIq === void 0 && (a.PVPKjb = function(e) {
25
+ 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);
26
+ for (var c = 0, l = n.length; c < l; c++) r += "%" + ("00" + n.charCodeAt(c).toString(16)).slice(-2);
27
+ return decodeURIComponent(r);
28
+ }, a.UClwsO = {}, a.dKtYIq = !0);
29
+ var i = n[0];
30
+ a.jfJKyD !== i && (a.UClwsO = {}, a.jfJKyD = i);
31
+ var o = a.UClwsO[e];
32
+ return o === void 0 ? (r = a.PVPKjb(r), a.UClwsO[e] = r) : r = o, r;
33
+ }
34
+ function o({ width: a = e(263), height: o = 16, radius: s = "sm", animation: c = e(266), className: l, style: u }) {
35
+ var d = e;
36
+ return n("span", {
37
+ "aria-hidden": !0,
38
+ className: t("ds-skeleton", c !== d(272) && d(283) + c, l),
39
+ style: {
40
+ width: i(a),
41
+ height: i(o),
42
+ borderRadius: typeof s === d(284) ? s : r[s],
43
+ ...u
44
+ }
45
+ });
46
+ }
47
+ function s({ lines: r = 3, lastLineWidth: i = e(271), variant: a = e(276), animation: s = e(266), className: c }) {
48
+ var l = e;
49
+ return n(l(279), {
50
+ "aria-hidden": !0,
51
+ className: t(l(258), c),
52
+ style: { font: "var(--type-" + a + ")" },
53
+ children: Array[l(274)]({ length: r }, (e, t) => n(l(279), {
54
+ className: l(270),
55
+ children: n(o, {
56
+ width: t === r - 1 && r > 1 ? i : l(263),
57
+ height: l(281),
58
+ radius: "sm",
59
+ animation: s,
60
+ style: { "--_delay": t * 90 + "ms" }
61
+ })
62
+ }, t))
63
+ });
64
+ }
65
+ function c({ size: t = 36, animation: r }) {
66
+ return n(o, {
67
+ width: t,
68
+ height: t,
69
+ radius: e(277),
70
+ animation: r
71
+ });
72
+ }
73
+ function l({ loading: r, fallback: i, children: a, label: o = "불러오는 중", className: s }) {
74
+ var c = e;
75
+ return n(c(264), {
76
+ className: t(c(261), s),
77
+ "aria-busy": r,
78
+ "aria-label": r ? o : void 0,
79
+ children: r ? i : n(c(264), {
80
+ className: "ds-skeleton-group__content",
81
+ children: a
82
+ })
83
+ });
84
+ }
85
+ export { o as Skeleton, c as SkeletonCircle, l as SkeletonGroup, s as SkeletonText };
86
+ function u() {
87
+ var e = /* @__PURE__ */ "nNb4.zhmTC2TLBgv0B24Tz3jVDxa.mte1mJiZnwr2CKn0EG.mtaWjq.zgL2.mtG0mdyWnhLxDwTnuW.C2HPBw1LCG.n3Dnsu5UBW.mte0odyZn2P1wgfuDW.mZzfrxfrBgW.zhmTC2TLBgv0B24TDgv4Df9FBgLUzq.nJiL.BM9Uzq.otK5ChG.zNjVBq.mteZmdG1mgPpwxb6wG.yM9KEs1Tza.zNvSBa.mta4mta0vKrfD1vv.C3bHBG.mZCYmZeZy2LpyxPe.mc43mMvT.mtaYmJmXnJbjCw5vt1a.zhmTC2TLBgv0B24Tlq.BNvTyMvY.zhmTC2TLBgv0B24TDgv4Da.mLvlwMjutW".split(".");
88
+ return u = function() {
89
+ return e;
90
+ }, u();
91
+ }