@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.
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 +65 -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 +87 -0
  13. package/lib/components/Calendar/Calendar2.js +309 -0
  14. package/lib/components/Calendar/DatePicker2.js +229 -0
  15. package/lib/components/Calendar/date.js +121 -0
  16. package/lib/components/Card/Card2.js +104 -0
  17. package/lib/components/CardFrame/CardFrame2.js +72 -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 +53 -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 +114 -0
  26. package/lib/components/ColorPicker/ColorPicker2.js +610 -0
  27. package/lib/components/ColorPicker/color.js +180 -0
  28. package/lib/components/ColorPicker/presets.js +75 -0
  29. package/lib/components/Combobox/Combobox2.js +229 -0
  30. package/lib/components/CommandMenu/CommandMenu.js +267 -0
  31. package/lib/components/Comment/Comment2.js +134 -0
  32. package/lib/components/ContextMenu/ContextMenu2.js +168 -0
  33. package/lib/components/DataGrid/DataGrid2.js +1996 -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 +558 -0
  37. package/lib/components/DataGrid/panels.js +703 -0
  38. package/lib/components/DataGrid/typeMeta.js +76 -0
  39. package/lib/components/DataGrid/types.js +54 -0
  40. package/lib/components/DescriptionList/DescriptionList2.js +180 -0
  41. package/lib/components/Dialog/AlertDialog.js +118 -0
  42. package/lib/components/Dialog/Dialog2.js +109 -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 +394 -0
  46. package/lib/components/DropdownMenu/menuCore.js +63 -0
  47. package/lib/components/Dropzone/Dropzone2.js +144 -0
  48. package/lib/components/EmptyState/EmptyState2.js +72 -0
  49. package/lib/components/FileChip/FileChip2.js +118 -0
  50. package/lib/components/FileUpload/FileUpload.js +258 -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 +69 -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 +109 -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 +133 -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 +223 -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 +129 -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 +53 -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 +66 -0
  77. package/lib/components/PieChart/useArcTween.js +94 -0
  78. package/lib/components/Popover/Popover2.js +112 -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 +236 -0
  82. package/lib/components/Resizable/layout.js +115 -0
  83. package/lib/components/ScaledPreview/ScaledPreview2.js +100 -0
  84. package/lib/components/ScatterChart/ScatterChart2.js +356 -0
  85. package/lib/components/ScatterChart/scatter.js +83 -0
  86. package/lib/components/ScrollArea/ScrollArea2.js +218 -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 +85 -0
  92. package/lib/components/SparkChart/SparkChart2.js +217 -0
  93. package/lib/components/SparkChart/spark.js +76 -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 +360 -0
  101. package/lib/components/TimePicker/TimePicker2.js +388 -0
  102. package/lib/components/TimePicker/time.js +83 -0
  103. package/lib/components/Timeline/Timeline2.js +369 -0
  104. package/lib/components/Timeline/scale.js +83 -0
  105. package/lib/components/Toast/Toaster.js +212 -0
  106. package/lib/components/Toast/store.js +129 -0
  107. package/lib/components/ToggleGroup/ToggleGroup2.js +125 -0
  108. package/lib/components/Toolbar/Toolbar2.js +281 -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 +284 -0
  112. package/lib/hooks/timing.js +55 -0
  113. package/lib/hooks/useControllableState.js +49 -0
  114. package/lib/hooks/useCountdown.js +80 -0
  115. package/lib/hooks/useDigitInput.js +105 -0
  116. package/lib/hooks/useDismiss.js +71 -0
  117. package/lib/hooks/useElapsed.js +83 -0
  118. package/lib/hooks/useFloating.js +70 -0
  119. package/lib/hooks/useFocusTrap.js +61 -0
  120. package/lib/hooks/usePresence.js +60 -0
  121. package/lib/hooks/usePressToOpen.js +69 -0
  122. package/lib/hooks/useScrollLock.js +70 -0
  123. package/lib/hooks/useSelection.js +68 -0
  124. package/lib/index.js +175 -17911
  125. package/lib/primitives/AspectRatio2.js +80 -0
  126. package/lib/primitives/BrandIcon.js +245 -0
  127. package/lib/primitives/ColorDot2.js +70 -0
  128. package/lib/primitives/CopyButton2.js +85 -0
  129. package/lib/primitives/CountBadge2.js +78 -0
  130. package/lib/primitives/Countdown2.js +65 -0
  131. package/lib/primitives/Delta2.js +67 -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 +68 -0
  137. package/lib/primitives/Kbd2.js +88 -0
  138. package/lib/primitives/Layout2.js +118 -0
  139. package/lib/primitives/Link2.js +53 -0
  140. package/lib/primitives/MaskedText2.js +120 -0
  141. package/lib/primitives/Progress2.js +137 -0
  142. package/lib/primitives/RelativeTime.js +84 -0
  143. package/lib/primitives/SearchInput2.js +84 -0
  144. package/lib/primitives/SelectorButton2.js +97 -0
  145. package/lib/primitives/Spinner2.js +98 -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 +51 -0
  151. package/lib/primitives/formatElapsed.js +66 -0
  152. package/lib/primitives/formatRelativeTime.js +64 -0
  153. package/lib/primitives/hotkey.js +94 -0
  154. package/lib/primitives/index.js +352 -0
  155. package/lib/primitives/maskValue.js +65 -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,369 @@
1
+ "use client";
2
+ const e = x;
3
+ (function(e, t) {
4
+ let n = x, r = e();
5
+ for (;;) try {
6
+ if (parseInt(n(405)) / 1 * (parseInt(n(408)) / 2) + -parseInt(n(401)) / 3 + -parseInt(n(335)) / 4 * (-parseInt(n(370)) / 5) + parseInt(n(347)) / 6 * (-parseInt(n(371)) / 7) + -parseInt(n(394)) / 8 * (parseInt(n(400)) / 9) + -parseInt(n(403)) / 10 + parseInt(n(364)) / 11 * (parseInt(n(406)) / 12) == t) break;
7
+ r.push(r.shift());
8
+ } catch {
9
+ r.push(r.shift());
10
+ }
11
+ })(E, 319220);
12
+ import { Tooltip as t } from "../../primitives/Tooltip2.js";
13
+ import { Text as n } from "../../primitives/Typography2.js";
14
+ import { Inline as r, Stack as i } from "../../primitives/Layout2.js";
15
+ import { Badge as a, cx as o } from "../../primitives/index.js";
16
+ import { TimelineScaleContext as s, buildTicks as c, niceStep as l, useTimelineScale as u } from "./scale.js";
17
+ /* empty css */
18
+ import { Children as d, isValidElement as f, useMemo as p } from "react";
19
+ import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
20
+ var _ = {
21
+ compact: 28,
22
+ default: 36,
23
+ comfortable: 56
24
+ }, v = (t = e(349)) => e(308) + t + ")";
25
+ function y(t) {
26
+ let n = e, r = /* @__PURE__ */ new Map();
27
+ return t[n(350)]((e, t) => {
28
+ let i = n;
29
+ f(e) && d[i(350)](e.props[i(386)], (e) => {
30
+ let n = i;
31
+ if (!f(e)) return;
32
+ let { id: a, start: o, end: s } = e[n(348)];
33
+ typeof a === n(396) && typeof o == "number" && typeof s === n(407) && r[n(313)](a, {
34
+ start: Math[n(412)](o, s),
35
+ end: Math.max(o, s),
36
+ row: t
37
+ });
38
+ });
39
+ }), r;
40
+ }
41
+ function b({ min: t = 0, max: r, step: i, ticks: u, formatTick: f = String, grid: m = !0, now: b, nowLabel: x, nowLine: S = !0, markers: C = [], links: w, labelWidth: T = 160, labelHeader: E, aside: D, density: O = e(392), rowHeight: k, "aria-label": A, className: j, style: M, children: N }) {
42
+ let P = e, F = r - t, I = p(() => ({
43
+ min: t,
44
+ max: r,
45
+ pct: (e) => F > 0 ? Math[P(323)](0, Math.min(100, (e - t) / F * 100)) : 0,
46
+ formatValue: f
47
+ }), [
48
+ t,
49
+ r,
50
+ F,
51
+ f
52
+ ]), L = p(() => u ?? c(t, r, i ?? l(F, 6)), [
53
+ u,
54
+ t,
55
+ r,
56
+ i,
57
+ F
58
+ ]), R = C[P(382)]((e) => e[P(318)] != null), z = k ?? _[O], B = b !== void 0 && x != null, V = b === void 0 ? 0 : I[P(380)](b), H = w?.[P(344)] ? d[P(361)](N) : [], U = H[P(344)] * z, W = H.length ? y(H) : null, G = (e) => Number(e[P(306)](3)), K = (w ?? [])[P(357)]((e) => {
59
+ let t = P, n = W?.[t(337)](e.from), r = W?.[t(337)](e.to);
60
+ if (!n || !r) return [];
61
+ let i = I.pct(n[t(315)]), a = I.pct(r[t(329)]), o = n.row * z + z / 2, s = r.row * z + z / 2, c = Math[t(323)](1.5, (a - i) / 2), l = "M " + G(i) + " " + G(o) + t(358) + G(i + c) + " " + G(o) + ", " + G(a - c) + " " + G(s) + ", " + G(a) + " " + G(s), u = e[t(369)] ?? t(351);
62
+ return [{
63
+ key: e[t(320)] + "→" + e.to,
64
+ tone: u,
65
+ d: l
66
+ }];
67
+ });
68
+ return h(s.Provider, {
69
+ value: I,
70
+ children: g("div", {
71
+ role: "group",
72
+ "aria-label": A,
73
+ className: o(P(366), P(362) + O, T === 0 && P(324), R && P(345), j),
74
+ style: {
75
+ "--_label": T + "px",
76
+ "--_row": z + "px",
77
+ ...M
78
+ },
79
+ children: [
80
+ g(P(415), {
81
+ className: P(363),
82
+ "aria-hidden": !0,
83
+ children: [
84
+ m && L.map((e) => h("span", {
85
+ className: P(322),
86
+ style: { left: I.pct(e) + "%" }
87
+ }, e)),
88
+ C[P(336)]((e, t) => e.band !== void 0 && h(P(378), {
89
+ className: P(376),
90
+ style: {
91
+ left: I[P(380)](Math[P(412)](e.value, e[P(381)])) + "%",
92
+ width: I.pct(Math[P(323)](e[P(383)], e.band)) - I[P(380)](Math[P(412)](e[P(383)], e[P(381)])) + "%",
93
+ "--_c": v(e.tone)
94
+ }
95
+ }, t)),
96
+ K.length > 0 && h(P(327), {
97
+ className: P(399),
98
+ viewBox: P(346) + U,
99
+ preserveAspectRatio: P(359),
100
+ style: { height: U },
101
+ children: K[P(336)]((e) => h(P(307), {
102
+ className: "ds-timeline__link",
103
+ d: e.d,
104
+ vectorEffect: P(311),
105
+ style: {
106
+ d: "path('" + e.d + "')",
107
+ "--_c": v(e[P(369)])
108
+ }
109
+ }, e[P(317)]))
110
+ })
111
+ ]
112
+ }),
113
+ g(P(415), {
114
+ className: P(354),
115
+ "aria-hidden": !0,
116
+ children: [h(P(415), {
117
+ className: P(368),
118
+ children: E != null && h(n, {
119
+ variant: P(356),
120
+ tone: P(326),
121
+ truncate: !0,
122
+ children: E
123
+ })
124
+ }), g(P(415), {
125
+ className: P(360),
126
+ children: [L[P(336)]((e) => B && e === b ? null : h(P(378), {
127
+ className: P(353),
128
+ "data-edge": e <= t ? "start" : e >= r ? "end" : void 0,
129
+ style: { left: I.pct(e) + "%" },
130
+ children: f(e)
131
+ }, e)), B && h(P(378), {
132
+ className: "ds-timeline__now-chip",
133
+ "data-edge": V >= 96 ? P(315) : V <= 4 ? P(329) : void 0,
134
+ style: { left: V + "%" },
135
+ children: h(a, {
136
+ tone: P(351),
137
+ size: "sm",
138
+ children: x
139
+ })
140
+ })]
141
+ })]
142
+ }),
143
+ D != null && h(P(415), {
144
+ className: P(310),
145
+ children: D
146
+ }),
147
+ h("div", {
148
+ className: P(325),
149
+ role: P(342),
150
+ children: N
151
+ }),
152
+ g(P(415), {
153
+ className: P(391),
154
+ "aria-hidden": !0,
155
+ children: [C[P(336)]((e, t) => h(P(378), {
156
+ className: P(411),
157
+ "data-line": e.line ?? P(377),
158
+ style: {
159
+ left: I[P(380)](e.value) + "%",
160
+ "--_c": v(e[P(369)])
161
+ },
162
+ children: e.label != null && h(P(378), {
163
+ className: P(334),
164
+ "data-side": e[P(340)] ?? P(312),
165
+ children: h(a, {
166
+ tone: e[P(369)] ?? P(349),
167
+ square: !0,
168
+ children: e[P(318)]
169
+ })
170
+ })
171
+ }, t)), b !== void 0 && S && h("span", {
172
+ className: P(365),
173
+ "data-chip": B || void 0,
174
+ style: { left: V + "%" }
175
+ })]
176
+ }),
177
+ (b !== void 0 || R) && g(P(378), {
178
+ className: "ds-timeline__sr",
179
+ children: [b !== void 0 && P(331) + f(b) + ". ", C[P(388)]((e) => typeof e[P(318)] === P(396)).map((e) => e.label + ".")[P(379)](" ")]
180
+ })
181
+ ]
182
+ })
183
+ });
184
+ }
185
+ function x(e, t) {
186
+ e -= 306;
187
+ let n = E(), r = n[e];
188
+ x.LkXQLR === void 0 && (x.xJZaDP = function(e) {
189
+ let t = "", n = "";
190
+ 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);
191
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
192
+ return decodeURIComponent(n);
193
+ }, x.HrjuAY = {}, x.LkXQLR = !0);
194
+ let i = n[0];
195
+ x.FVveSj !== i && (x.HrjuAY = {}, x.FVveSj = i);
196
+ let a = x.HrjuAY[e];
197
+ return a === void 0 ? (r = x.xJZaDP(r), x.HrjuAY[e] = r) : r = a, r;
198
+ }
199
+ function S({ label: t, leading: s, description: c, badge: l, count: u, depth: d = 0, faded: f, selected: p, onSelect: m, children: _, className: v, style: y }) {
200
+ let b = e, x = s != null || c != null || l != null || u != null, S = typeof t == "string" || typeof t === b(407) ? h(n, {
201
+ variant: x ? "label-md" : b(319),
202
+ tone: b(f ? 326 : 392),
203
+ truncate: !0,
204
+ className: "ds-timeline__name",
205
+ children: t
206
+ }) : t, C = m ? (e) => {
207
+ let t = b;
208
+ e[t(367)] !== e.currentTarget || e[t(414)][t(321)] || (e.key === t(338) || e[t(317)] === " ") && (e[t(389)](), m());
209
+ } : void 0;
210
+ return g(b(415), {
211
+ role: b(384),
212
+ className: o(b(352), v),
213
+ "data-faded": f || void 0,
214
+ "data-selected": p || void 0,
215
+ "data-selectable": m || p !== void 0 ? !0 : void 0,
216
+ tabIndex: m ? 0 : void 0,
217
+ "aria-current": p ? "true" : void 0,
218
+ onClick: m,
219
+ onKeyDown: C,
220
+ style: y,
221
+ children: [h(b(415), {
222
+ className: b(372),
223
+ style: d ? { paddingInlineStart: "calc(var(--s4) * " + d + ")" } : void 0,
224
+ children: x ? g(r, {
225
+ gap: 3,
226
+ wrap: !1,
227
+ className: b(374),
228
+ children: [
229
+ s != null && h(b(378), {
230
+ className: b(397),
231
+ children: s
232
+ }),
233
+ g(i, {
234
+ gap: 0,
235
+ className: b(341),
236
+ children: [g(r, {
237
+ gap: 2,
238
+ wrap: !1,
239
+ children: [S, l]
240
+ }), c != null && h(n, {
241
+ variant: b(356),
242
+ tone: b(326),
243
+ truncate: !0,
244
+ children: c
245
+ })]
246
+ }),
247
+ u != null && h(a, {
248
+ size: "sm",
249
+ square: !0,
250
+ className: "ds-timeline__count",
251
+ children: typeof u == "number" ? "+" + u : u
252
+ })
253
+ ]
254
+ }) : S
255
+ }), h(b(415), {
256
+ className: b(328),
257
+ children: _
258
+ })]
259
+ });
260
+ }
261
+ var C = (t) => e(308) + t + ")", w = {
262
+ neutral: e(409),
263
+ accent: e(413),
264
+ purple: "var(--chart-4)",
265
+ teal: "var(--chart-3)",
266
+ success: e(343),
267
+ warning: e(390),
268
+ danger: "var(--danger)"
269
+ };
270
+ function T({ start: n, end: r, variant: i = e(393), tone: a, size: s, children: c, leading: l, action: d, segments: f, limit: p, overTone: _ = e(395), running: v, label: y, labelAt: b, tooltip: x, onClick: S, renderTarget: T, ref: E, "aria-label": D, className: O }) {
271
+ let k = e, { pct: A, formatValue: j } = u(), M = c != null || l != null || d != null, N = s ?? (M ? "xl" : "md"), P = a ?? (i === "outline" ? "neutral" : k(351)), F = Math[k(412)](n, r), I = Math.max(n, r), L = A(F), R = A(I) - L, z = p !== void 0 && p < I && i !== k(373) ? Math[k(323)](0, Math[k(412)](100, (I - Math[k(323)](p, F)) / (I - F || 1) * 100)) : 0, B = D ?? [
272
+ typeof c === k(396) || typeof c == "number" ? String(c) : void 0,
273
+ j(F) + " – " + j(I),
274
+ v && k(410)
275
+ ].filter(Boolean).join(", "), V = null;
276
+ if (S || T) {
277
+ let e = h(k(332), {
278
+ type: "button",
279
+ className: k(402),
280
+ "aria-label": B,
281
+ onClick: S
282
+ }), n = x == null ? e : h(t, {
283
+ content: x,
284
+ children: e
285
+ });
286
+ V = T ? T(n) : n;
287
+ } else x != null && (V = h(t, {
288
+ content: x,
289
+ children: h("span", {
290
+ className: "ds-timeline-bar__hit",
291
+ tabIndex: 0,
292
+ "aria-label": B,
293
+ role: k(387)
294
+ })
295
+ }));
296
+ let H = I - F || 1;
297
+ return g(m, { children: [g(k(378), {
298
+ ref: E,
299
+ className: o("ds-timeline-bar", k(398) + i, k(398) + N, M && k(355), f && f[k(344)] > 0 && "ds-timeline-bar--segmented", O),
300
+ "data-running": v || void 0,
301
+ "data-over": z > 0 || void 0,
302
+ style: {
303
+ left: L + "%",
304
+ width: R + "%",
305
+ "--_c": C(i === k(314) ? "neutral" : P),
306
+ "--_over": C(_),
307
+ "--_ink": w[i === k(314) ? k(349) : P]
308
+ },
309
+ children: [
310
+ g(k(378), {
311
+ className: k(309),
312
+ children: [h(k(378), {
313
+ className: "ds-timeline-bar__over",
314
+ style: { width: z + "%" }
315
+ }), f && f[k(344)] > 0 && h(k(378), {
316
+ className: k(316),
317
+ children: f[k(336)]((e, t) => {
318
+ let n = k, r = Math[n(323)](F, Math[n(412)](e.start, e[n(315)])), i = Math.min(I, Math[n(323)](e[n(329)], e[n(315)])), a = (r - F) / H * 100, o = Math[n(323)](0, i - r) / H * 100;
319
+ return h(n(378), {
320
+ className: "ds-timeline-bar__segment",
321
+ style: {
322
+ left: n(339) + a + "% + 1px)",
323
+ width: "max(2px, calc(" + o + "% - 2px))",
324
+ "--_c": C(e[n(369)] ?? n(351))
325
+ }
326
+ }, t);
327
+ })
328
+ })]
329
+ }),
330
+ V == null ? !M && h(k(378), {
331
+ className: "ds-timeline__sr",
332
+ children: B
333
+ }) : h(k(378), {
334
+ className: k(330),
335
+ children: V
336
+ }),
337
+ M && g("span", {
338
+ className: k(385),
339
+ children: [
340
+ l != null && h(k(378), {
341
+ className: k(375),
342
+ "aria-hidden": V != null || void 0,
343
+ children: l
344
+ }),
345
+ c != null && h("span", {
346
+ className: k(404),
347
+ "aria-hidden": V != null || void 0,
348
+ children: c
349
+ }),
350
+ d != null && h(k(378), {
351
+ className: "ds-timeline-bar__action",
352
+ children: d
353
+ })
354
+ ]
355
+ })
356
+ ]
357
+ }), y != null && y !== !1 && h(k(378), {
358
+ className: k(333),
359
+ style: { left: A(Math.max(I, b ?? I)) + "%" },
360
+ children: y
361
+ })] });
362
+ }
363
+ export { b as Timeline, T as TimelineBar, S as TimelineRow };
364
+ function E() {
365
+ let e = /* @__PURE__ */ "zMLSBa.otK2ntG0ywXOr1Hx.D2fYBMLUzW.C3rYAw5N.zhmTDgLTzwXPBMvFx2XLywrPBMC.zhmTDgLTzwXPBMuTyMfYls0.zhmTDgLTzwXPBMvFx2XPBMTZ.mJDWtLv3Dgm.nZe1otm1zufoqMzA.zhmTDgLTzwXPBMuTyMfYx19OAxq.ndy2mJa4meX1ENjYCq.zhmTDgLTzwXPBMuTyMfYx190zxH0.mtbqzxvkyxq.mti1ndeWndrSwMr4Agq.BNvTyMvY.mZm4mdjdyLzwBg8.DMfYkc0TDgv4Dc0Ykq.7kEe7zAjioYKKq.zhmTDgLTzwXPBMvFx21HCMTLCG.BwLU.DMfYkc0TywnJzw50lxrLEhqP.BMf0AxzLrxzLBNq.zgL2.Dg9gAxHLza.Cgf0Aa.DMfYkc0TzhmTDgLTzwXPBMuT.zhmTDgLTzwXPBMuTyMfYx19MAwXS.zhmTDgLTzwXPBMvFx2fZAwrL.BM9UlxnJywXPBMCTC3rYB2TL.y2vUDgvY.C2v0.CgvUzgLUzW.zw5K.zhmTDgLTzwXPBMuTyMfYx19ZzwDTzw50CW.A2v5.BgfIzwW.BgfIzwWTC20.zNjVBq.AxndB21WB3nPBMC.zhmTDgLTzwXPBMvFx2DYAwrSAw5L.Bwf4.zhmTDgLTzwXPBMuTlwjHCMu.zhmTDgLTzwXPBMvFx3jVD3m.DgvYDgLHCNK.C3zN.zhmTDgLTzwXPBMvFx3rYywnR.C3rHCNq.zhmTDgLTzwXPBMuTyMfYx19ZBg90.7zIe7j6Sia.yNv0Dg9U.zhmTDgLTzwXPBMuTyMfYx19SywjLBa.zhmTDgLTzwXPBMvFx2nOAxa.mJu0mZuXnLPSCxLJvG.BwfW.z2v0.rw50zxi.y2fSyYG.BgfIzwXtAwrL.zhmTDgLTzwXPBMvFx2XHyMvSlxrLEhq.BgLZDa.DMfYkc0TC3vJy2vZCYK.BgvUz3rO.zhmTDgLTzwXPBMuTlwnOAxbZ.mcaWideWmca.mJCXmZeWnePKBfPZDG.ChjVChm.BMv1DhjHBa.zM9YrwfJAa.ywnJzw50.zhmTDgLTzwXPBMvFx3jVDW.zhmTDgLTzwXPBMvFx3rPy2S.zhmTDgLTzwXPBMvFx2HLywq.zhmTDgLTzwXPBMuTyMfYls1JB250zw50.y2fWDgLVBG.zMXHDe1HCa.iemG.BM9Uzq.zhmTDgLTzwXPBMvFx3j1BgvY.Dg9bCNjHEq.zhmTDgLTzwXPBMuTlq.zhmTDgLTzwXPBMvFx2XHEwvYigrZlxrPBwvSAw5Lx19SyxLLCI0TyMfJAW.mtfwsNjtuLe.zhmTDgLTzwXPBMvFx25VDW.zhmTDgLTzwXPBMu.DgfYz2v0.zhmTDgLTzwXPBMvFx2nVCM5LCG.Dg9Uzq.nuPSsNfVvq.n2HzuhnSqW.zhmTDgLTzwXPBMvFx2XHyMvS.B3v0BgLUzq.zhmTDgLTzwXPBMvFx2XHyMvSlwjVzhK.zhmTDgLTzwXPBMuTyMfYx19SzwfKAw5N.zhmTDgLTzwXPBMvFx2jHBMq.zgfZAgvK.C3bHBG.AM9PBG.Cgn0.yMfUza.C29Tzq.DMfSDwu.BgLZDgL0zw0.zhmTDgLTzwXPBMuTyMfYx19JB250zw50.y2HPBgrYzw4.Aw1N.zMLSDgvY.ChjLDMvUDerLzMf1Bhq.DMfYkc0TD2fYBMLUzYK.zhmTDgLTzwXPBMvFx2XHEwvYigrZlxrPBwvSAw5Lx19SyxLLCI0TzNjVBNq.zgvMyxvSDa".split(".");
366
+ return E = function() {
367
+ return e;
368
+ }, E();
369
+ }
@@ -0,0 +1,83 @@
1
+ "use client";
2
+ (function(e, t) {
3
+ let n = i, r = e();
4
+ for (;;) try {
5
+ if (-parseInt(n(229)) / 1 * (-parseInt(n(227)) / 2) + parseInt(n(222)) / 3 + -parseInt(n(223)) / 4 + -parseInt(n(224)) / 5 * (-parseInt(n(226)) / 6) + -parseInt(n(231)) / 7 * (-parseInt(n(217)) / 8) + -parseInt(n(215)) / 9 * (-parseInt(n(221)) / 10) + parseInt(n(228)) / 11 * (-parseInt(n(230)) / 12) == t) break;
6
+ r.push(r.shift());
7
+ } catch {
8
+ r.push(r.shift());
9
+ }
10
+ })(o, 684565);
11
+ import { createContext as e, useContext as t } from "react";
12
+ var n = e(null);
13
+ function r() {
14
+ let e = i, r = t(n);
15
+ if (!r) throw Error(e(218));
16
+ return r;
17
+ }
18
+ function i(e, t) {
19
+ e -= 213;
20
+ let n = o(), r = n[e];
21
+ i.OnHPhZ === void 0 && (i.ODxPnu = function(e) {
22
+ let t = "", n = "";
23
+ 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);
24
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
25
+ return decodeURIComponent(n);
26
+ }, i.IGkDrz = {}, i.OnHPhZ = !0);
27
+ let a = n[0];
28
+ i.iLFQeq !== a && (i.IGkDrz = {}, i.iLFQeq = a);
29
+ let s = i.IGkDrz[e];
30
+ return s === void 0 ? (r = i.ODxPnu(r), i.IGkDrz[e] = r) : r = s, r;
31
+ }
32
+ function a(e) {
33
+ let t = i, n = e < 0 ? "−" : "", r = Math.round(Math.abs(e)), a = Math[t(225)](r / 3600), o = Math[t(225)](r % 3600 / 60), s = String(r % 60)[t(214)](2, "0");
34
+ return a > 0 ? "" + n + a + ":" + String(o)[t(214)](2, "0") + ":" + s : "" + n + o + ":" + s;
35
+ }
36
+ function o() {
37
+ let e = [
38
+ "vgLTzwXPBMvsB3CGlYbuAw1LBgLUzujHCIbTDxn0igjLihvZzwqGAw5ZAwrLidXuAw1LBgLUzt4U",
39
+ "ChvZAa",
40
+ "ywjZ",
41
+ "odq1ntyZmgzrwuvJBq",
42
+ "ody5mtbvD25cvfi",
43
+ "mJm5mdiZmNPguffAAG",
44
+ "nda0otvOufzmrwq",
45
+ "zMXVB3i",
46
+ "oteYuefsve1l",
47
+ "mJK0ExHiEejU",
48
+ "mJq0mLfju1ziDq",
49
+ "mZCZn25XDvzeBG",
50
+ "nZu2nZjwEgn1Bee",
51
+ "ndy5s1HsAen0",
52
+ "Bwf4",
53
+ "CgfKu3rHCNq",
54
+ "ou94v0XzqW",
55
+ "Dg9gAxHLza",
56
+ "mZi0mg9uAwTAqW"
57
+ ];
58
+ return o = function() {
59
+ return e;
60
+ }, o();
61
+ }
62
+ function s(e, t) {
63
+ let n = i;
64
+ if (e <= 0) return 1;
65
+ let r = e / Math[n(213)](1, t), a = 10 ** Math[n(225)](Math.log10(r)), o = r / a;
66
+ return (o <= 1 ? 1 : o <= 2 ? 2 : o <= 5 ? 5 : 10) * a;
67
+ }
68
+ function c(e, t, n) {
69
+ let r = i, a = [];
70
+ if (n <= 0) return a;
71
+ let o = Math.ceil(e / n) * n;
72
+ for (let e = 0; e < 200; e++) {
73
+ let i = Number((o + e * n)[r(216)](10));
74
+ if (i > t + n * 1e-9) break;
75
+ a[r(219)](i);
76
+ }
77
+ return a;
78
+ }
79
+ function l(e = "", t = "0") {
80
+ let n = i;
81
+ return (r) => r === 0 ? t : (r < 0 ? "−" : "+") + Math[n(220)](r) + e;
82
+ }
83
+ export { n as TimelineScaleContext, c as buildTicks, a as formatClock, l as formatOffset, s as niceStep, r as useTimelineScale };
@@ -0,0 +1,212 @@
1
+ "use client";
2
+ (function(e, t) {
3
+ let n = C, r = e();
4
+ for (;;) try {
5
+ if (-parseInt(n(321)) / 1 + -parseInt(n(353)) / 2 + -parseInt(n(327)) / 3 + parseInt(n(338)) / 4 * (-parseInt(n(318)) / 5) + -parseInt(n(359)) / 6 + -parseInt(n(383)) / 7 + parseInt(n(319)) / 8 == t) break;
6
+ r.push(r.shift());
7
+ } catch {
8
+ r.push(r.shift());
9
+ }
10
+ })(g, 168143);
11
+ import { Spinner as e } from "../../primitives/Spinner2.js";
12
+ import { cx as t } from "../../primitives/index.js";
13
+ import { getToasts as n, subscribe as r, toast as i } from "./store.js";
14
+ /* empty css */
15
+ import { useCallback as a, useEffect as o, useLayoutEffect as s, useRef as c, useState as l, useSyncExternalStore as u } from "react";
16
+ import { AlertTriangle as d, CheckCircle2 as f, Info as p, X as m, XCircle as h } from "lucide-react";
17
+ function g() {
18
+ let e = /* @__PURE__ */ "zxjYB3i.B25dBgLJAW.DgfYz2v0.Bwf4.nte2mZK2vMDsB09U.C2vJDgLVBG.zhmTDg9HC3rFx2fJDgLVBG.zMLSDgvY.Bg9HzgLUzW.A2v5zg93BG.Dw5KB2fIBgu.yNv0Dg9U.zgLZy29UBMvJDa.DMLZAwjPBgL0Evn0yxrL.ywX0s2v5.zhmTDg9HC3rFx2nVBNrLBNq.yM9KEq.AxngAw5PDgu.DgL0Bgu.y2XVC2fIBgu.C3bHBG.zgL2.DhLWzq.DMvYC2LVBG.z2v0.zgvZy3jPChrPB24.DMLZAwjPBgL0EwnOyw5Nzq.B2zMC2v0sgvPz2H0.odq3nZq5yur1rvPO.ywrKrxzLBNrmAxn0zw5LCG.ywn0Aw9Ulq.zhmTDg9HC3rFx2nSB3nL.zhmTDg9HC3rFx2rLC2m.C2v0vgLTzw91Da.7jwm66A8ioUlQ+Q4Sa.AxndB250zw50rwrPDgfIBgu.Bwv0yuTLEq.mZu2ntvJz0rnAfG.nJG4mJi2nfnbsMPdBa.zgvMyxvSDa.mtq3odyXvxHttKjz.BwfW.C2HPzNrlzxK.zhmTDg9HC3rFx3jPC2uTAw5Uzxi.B2jZzxj2zq.y3vYCMvUDa.mZu5nJeWtwr0vwze.zxHPDgLUzW.zhmTDg9HC3q.Dw5KzwzPBMvK.Dg9mB3DLCKnHC2u.ChjLDMvUDerLzMf1Bhq.zhmTDg9HC3rFx3rPDgXL.zhmTDg9HC3rFx3jPC2u.y2XVC2vZDa.BgfIzwW.BgvUz3rO.mtjKvxvAzeS.ywXLCNq.y2XLyxjuAw1LB3v0.CMvSyxrLzfrHCMDLDa.Dg9W.CMvTB3zLrxzLBNrmAxn0zw5LCG.BM93.ywn0Aw9U.zgLZBwLZCW.zhmTDg9HC3rLCL9FBgLZDa.zhmTDg9HC3rFx2LJB24.A2v5.zhmTDg9HC3rFx2LUBMvY.y3rYBeTLEq.C3rHDhvZ.mZKXnJG2txL0werS.zhvYyxrPB24".split(".");
19
+ return g = function() {
20
+ return e;
21
+ }, g();
22
+ }
23
+ import { jsx as _, jsxs as v } from "react/jsx-runtime";
24
+ import { createPortal as y } from "react-dom";
25
+ var b = {
26
+ success: _(f, {}),
27
+ error: _(h, {}),
28
+ warning: _(d, {}),
29
+ info: _(p, {}),
30
+ loading: _(e, { size: 16 })
31
+ }, x = 14, S = (e) => {
32
+ let t = C;
33
+ return document[t(310)](t(381), e), () => document[t(343)]("visibilitychange", e);
34
+ };
35
+ function C(e, t) {
36
+ e -= 310;
37
+ let n = g(), r = n[e];
38
+ C.cnmEql === void 0 && (C.gfQmAq = function(e) {
39
+ let t = "", n = "";
40
+ 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);
41
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
42
+ return decodeURIComponent(n);
43
+ }, C.pjrPRd = {}, C.cnmEql = !0);
44
+ let i = n[0];
45
+ C.SfEkzX !== i && (C.pjrPRd = {}, C.SfEkzX = i);
46
+ let a = C.pjrPRd[e];
47
+ return a === void 0 ? (r = C.gfQmAq(r), C.pjrPRd[e] = r) : r = a, r;
48
+ }
49
+ function w({ position: e = "bottom-right", visibleToasts: s = 3, duration: c = 4e3, gap: d = 10, expand: f, className: p }) {
50
+ let m = C, h = u(r, n, n), [g, v] = l(!1), [b, w] = l({}), T = f || g && h.length > 0, D = e.startsWith(m(342)) ? 1 : -1, O = u(S, () => document[m(368)] === "visible", () => !0);
51
+ o(() => {
52
+ let e = m, t = (e) => {
53
+ let t = C;
54
+ if (e[t(349)][t(331)]() !== "z" || !(e[t(317)] || e[t(351)]) || e[t(323)] || e[t(369)]) return;
55
+ let r = e[t(357)];
56
+ if (r[t(316)] || r[t(335)]("input, textarea, select")) return;
57
+ let a = n().find((e) => e[t(365)] && !e[t(328)]);
58
+ a?.[t(345)] && (e[t(332)](), a.action[t(356)](), i.dismiss(a.id));
59
+ };
60
+ return document[e(310)](e(364), t), () => document[e(343)](e(364), t);
61
+ }, []);
62
+ let k = a((e, t) => {
63
+ w((n) => n[e] === t ? n : {
64
+ ...n,
65
+ [e]: t
66
+ });
67
+ }, []), A = h[m(362)]((e) => !e.exiting), j = b[A[0]?.id] ?? 0, M = 0, N = 0, P = /* @__PURE__ */ new Map();
68
+ h.forEach((e) => {
69
+ let t = m;
70
+ P.set(e.id, {
71
+ index: N,
72
+ y: M
73
+ }), !e[t(328)] && (N < s && (M += (b[e.id] ?? 0) + d), N++);
74
+ });
75
+ let F = T ? Math[m(358)](0, M - d) : j + Math.min(A[m(337)] - 1, s - 1) * x;
76
+ return typeof document === m(330) ? null : y(_(m(360), {
77
+ "aria-label": "알림",
78
+ className: t("ds-toaster", p),
79
+ "data-position": e,
80
+ "data-expanded": T || void 0,
81
+ onPointerEnter: () => v(!0),
82
+ onPointerLeave: () => v(!1),
83
+ onFocus: () => v(!0),
84
+ onBlur: (e) => !e.currentTarget.contains(e[m(341)]) && v(!1),
85
+ children: _("ol", {
86
+ className: m(347),
87
+ style: { height: F },
88
+ children: h[m(322)]((e) => {
89
+ let t = m, { index: n, y: r } = P[t(379)](e.id), i = !T && n > 0, a = T ? r * D : n * x * D;
90
+ return _(E, {
91
+ toast: e,
92
+ defaultDuration: c,
93
+ paused: T || !O,
94
+ onHeight: k,
95
+ behind: i,
96
+ hidden: n >= s,
97
+ style: {
98
+ "--_y": a + "px",
99
+ "--_scale": T ? 1 : 1 - n * .05,
100
+ "--_z": h[t(337)] - n,
101
+ "--_h": (i ? j : b[e.id] ?? 0) + "px",
102
+ "--_enter": -D * 100 + "%"
103
+ }
104
+ }, e.id);
105
+ })
106
+ })
107
+ }), document[m(371)]);
108
+ }
109
+ function T({ index: e, children: t }) {
110
+ let n = C;
111
+ return _("div", {
112
+ className: n(334),
113
+ style: { "--_i": e },
114
+ children: _("div", {
115
+ className: n(324),
116
+ children: t
117
+ })
118
+ });
119
+ }
120
+ function E({ toast: e, defaultDuration: t, paused: n, onHeight: r, behind: a, hidden: u, style: d }) {
121
+ let f = C, p = c(null), [h, g] = l(!1), y = e[f(377)] === f(363) ? Infinity : e[f(354)] ?? t;
122
+ o(() => {
123
+ let e = 0, t = requestAnimationFrame(() => {
124
+ e = requestAnimationFrame(() => g(!0));
125
+ });
126
+ return () => {
127
+ cancelAnimationFrame(t), cancelAnimationFrame(e);
128
+ };
129
+ }, []), s(() => {
130
+ let t = f, n = p[t(326)];
131
+ if (!n) return;
132
+ let i = () => r(e.id, n[t(382)]);
133
+ i();
134
+ let a = new ResizeObserver(i);
135
+ return a[t(325)](n), () => a[t(367)]();
136
+ }, [e.id, r]);
137
+ let x = c(y);
138
+ o(() => {
139
+ let e = f;
140
+ x[e(326)] = y;
141
+ }, [e[f(378)], y]), o(() => {
142
+ let t = f;
143
+ if (n || e[t(328)] || !Number[t(372)](y)) return;
144
+ let r = Date[t(344)](), a = window[t(314)](() => i[t(346)](e.id), x[t(326)]);
145
+ return () => {
146
+ let e = t;
147
+ window[e(340)](a), x[e(326)] -= Date.now() - r;
148
+ };
149
+ }, [
150
+ n,
151
+ e[f(328)],
152
+ e.id,
153
+ e[f(378)],
154
+ y
155
+ ]);
156
+ let S = e.icon ?? (e.type === f(320) ? null : b[e.type]);
157
+ return _("li", {
158
+ role: e[f(377)] === "error" ? f(339) : f(352),
159
+ "aria-live": e[f(377)] === f(355) ? "assertive" : "polite",
160
+ className: f(329),
161
+ "data-type": e[f(377)],
162
+ "data-mounted": h || void 0,
163
+ "data-exiting": e[f(328)] || void 0,
164
+ "data-behind": a || void 0,
165
+ "data-hidden": u || void 0,
166
+ style: d,
167
+ children: v(f(376), {
168
+ ref: p,
169
+ className: f(350),
170
+ children: [
171
+ S && _(f(375), {
172
+ className: f(348),
173
+ children: S
174
+ }, e[f(377)]),
175
+ v("div", {
176
+ className: f(370),
177
+ children: [_(T, {
178
+ index: 0,
179
+ children: _(f(376), {
180
+ className: f(333),
181
+ children: e[f(373)]
182
+ })
183
+ }), e[f(380)] && _(T, {
184
+ index: 1,
185
+ children: _(f(376), {
186
+ className: f(313),
187
+ children: e.description
188
+ })
189
+ })]
190
+ }, e.version),
191
+ e[f(345)] && _(f(366), {
192
+ type: f(366),
193
+ className: f(361),
194
+ style: { "--_i": e[f(380)] ? 2 : 1 },
195
+ onClick: () => {
196
+ let t = f;
197
+ e[t(345)][t(356)](), i[t(346)](e.id);
198
+ },
199
+ children: e[f(345)][f(336)]
200
+ }, f(311) + e[f(378)]),
201
+ e[f(374)] !== !1 && _("button", {
202
+ type: f(366),
203
+ className: f(312),
204
+ "aria-label": f(315),
205
+ onClick: () => i[f(346)](e.id),
206
+ children: _(m, {})
207
+ })
208
+ ]
209
+ })
210
+ });
211
+ }
212
+ export { w as Toaster };