@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,95 @@
1
+ "use client";
2
+ function e(t, n) {
3
+ t -= 246;
4
+ let r = u(), i = r[t];
5
+ e.XaFiTJ === void 0 && (e.DSImrO = function(e) {
6
+ let t = "", n = "";
7
+ 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);
8
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
9
+ return decodeURIComponent(n);
10
+ }, e.FZLTIb = {}, e.XaFiTJ = !0);
11
+ let a = r[0];
12
+ e.yxMKqg !== a && (e.FZLTIb = {}, e.yxMKqg = a);
13
+ let o = e.FZLTIb[t];
14
+ return o === void 0 ? (i = e.DSImrO(i), e.FZLTIb[t] = i) : i = o, i;
15
+ }
16
+ const t = e;
17
+ (function(t, n) {
18
+ let r = e, i = t();
19
+ for (;;) try {
20
+ if (parseInt(r(264)) / 1 * (parseInt(r(278)) / 2) + parseInt(r(272)) / 3 * (parseInt(r(260)) / 4) + parseInt(r(261)) / 5 * (parseInt(r(279)) / 6) + parseInt(r(251)) / 7 + -parseInt(r(254)) / 8 + -parseInt(r(268)) / 9 * (-parseInt(r(257)) / 10) + parseInt(r(247)) / 11 * (-parseInt(r(263)) / 12) == n) break;
21
+ i.push(i.shift());
22
+ } catch {
23
+ i.push(i.shift());
24
+ }
25
+ })(u, 206663);
26
+ import { useControllableState as n } from "../../hooks/useControllableState.js";
27
+ import { cx as r } from "../../primitives/index.js";
28
+ /* empty css */
29
+ import { useRef as i, useState as a } from "react";
30
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
31
+ var c = 16;
32
+ function l({ list: e, children: l, listWidth: u, defaultListWidth: d = 300, onListWidthChange: f, minListWidth: p = 220, maxListWidth: m = 520, resizable: h, listTone: g = t(275), listLabel: _ = "목록", detailLabel: v = "상세", className: y, style: b }) {
33
+ let x = t, [S, C] = n(u, d, f), [w, T] = a(!1), E = i(null), D = (e) => Math[x(277)](Math[x(276)](m, Math.max(p, e))), O = D(S), k = (e) => {
34
+ let t = x;
35
+ e[t(248)] === 0 && (e.preventDefault(), e[t(250)][t(281)](e[t(259)]), e[t(250)].focus(), E[t(249)] = {
36
+ x: e[t(280)],
37
+ start: O
38
+ }, T(!0));
39
+ }, A = (e) => {
40
+ let t = x, n = E[t(249)];
41
+ if (!n) return;
42
+ let r = D(n.start + e[t(280)] - n.x);
43
+ r !== O && C(r);
44
+ }, j = () => {
45
+ let e = x;
46
+ E[e(249)] = null, T(!1);
47
+ }, M = (e) => {
48
+ let t = x, n = e[t(274)] ? 64 : c, r = null;
49
+ e[t(273)] === t(258) ? r = O - n : e.key === t(269) ? r = O + n : e.key === t(256) ? r = p : e[t(273)] === t(267) ? r = m : e[t(273)] === t(246) ? r = d : e[t(273)] === "Escape" && E.current && (r = E.current.start, j()), r !== null && (e[t(252)](), C(D(r)));
50
+ };
51
+ return s(x(271), {
52
+ className: r(x(270), "ds-split--" + g, y),
53
+ "data-dragging": w || void 0,
54
+ style: {
55
+ "--_list": O + "px",
56
+ ...b
57
+ },
58
+ children: [
59
+ o("section", {
60
+ className: x(262),
61
+ "aria-label": _,
62
+ children: e
63
+ }),
64
+ h && o("div", {
65
+ role: x(266),
66
+ tabIndex: 0,
67
+ "aria-orientation": x(255),
68
+ "aria-label": _ + x(253),
69
+ "aria-valuenow": O,
70
+ "aria-valuemin": p,
71
+ "aria-valuemax": m,
72
+ className: "ds-split__divider",
73
+ onPointerDown: k,
74
+ onPointerMove: A,
75
+ onPointerUp: j,
76
+ onPointerCancel: j,
77
+ onLostPointerCapture: j,
78
+ onDoubleClick: () => C(D(d)),
79
+ onKeyDown: M
80
+ }),
81
+ o("section", {
82
+ className: x(265),
83
+ "aria-label": v,
84
+ children: l
85
+ })
86
+ ]
87
+ });
88
+ }
89
+ export { l as SplitView };
90
+ function u() {
91
+ let e = /* @__PURE__ */ "rw50zxi.nty2mZmXn0LvCuDXsa.yNv0Dg9U.y3vYCMvUDa.y3vYCMvUDfrHCMDLDa.ntiZmda1ANbkvKPd.ChjLDMvUDerLzMf1Bhq.ioUeIoU5HcdSOBdSOiG.mtq4nde4ngzUDvrxza.DMvYDgLJywW.sg9Tzq.mtuWwLfjA25e.qxjYB3Dmzwz0.Cg9PBNrLCKLK.mJrlDMX2Cg4.mtmWBvvjDeP3.zhmTC3bSAxrFx3bHBMuGzhmTC3bSAxrFx2XPC3qGzhmTC2nYB2XS.mtjfr1zdr3y.m1rtAhvZBq.zhmTC3bSAxrFx3bHBMuGzhmTC3bSAxrFx2rLDgfPBcbKCY1Zy3jVBgW.C2vWyxjHDg9Y.rw5K.mZm0mtDbBfvpA2W.qxjYB3DsAwDODa.zhmTC3bSAxq.zgL2.mta1nZm4ALnZvLDd.A2v5.C2HPzNrlzxK.C29MDa.BwLU.CM91BMq.mJm4mZu4qwL4DNLv.ndC5mtbSuxbjEwe.y2XPzw50wa.C2v0ug9PBNrLCKnHChr1CMu".split(".");
92
+ return u = function() {
93
+ return e;
94
+ }, u();
95
+ }
@@ -0,0 +1,164 @@
1
+ "use client";
2
+ const e = p;
3
+ (function(e, t) {
4
+ let n = p, r = e();
5
+ for (;;) try {
6
+ if (parseInt(n(152)) / 1 + parseInt(n(156)) / 2 + parseInt(n(141)) / 3 + -parseInt(n(128)) / 4 * (-parseInt(n(133)) / 5) + parseInt(n(146)) / 6 * (parseInt(n(140)) / 7) + -parseInt(n(159)) / 8 * (-parseInt(n(143)) / 9) + -parseInt(n(154)) / 10 == t) break;
7
+ r.push(r.shift());
8
+ } catch {
9
+ r.push(r.shift());
10
+ }
11
+ })(m, 389934);
12
+ import { Text as t } from "../../primitives/Typography2.js";
13
+ import { Box as n, Inline as r, Separator as i, Stack as a } from "../../primitives/Layout2.js";
14
+ import { IconTile as o } from "../../primitives/IconTile2.js";
15
+ /* empty css */
16
+ import { Children as s } from "react";
17
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
18
+ var u = {
19
+ sm: e(145),
20
+ md: e(153),
21
+ lg: e(148)
22
+ }, d = {
23
+ sm: e(150),
24
+ md: "label-sm",
25
+ lg: e(130)
26
+ };
27
+ function f(t) {
28
+ let r = e, { tile: i, className: a, style: o } = t;
29
+ return i ? c(n, {
30
+ padding: 3,
31
+ background: "subtle",
32
+ className: ["ds-stat--tile", a][r(142)](Boolean)[r(127)](" "),
33
+ style: o,
34
+ children: c(h, {
35
+ ...t,
36
+ className: void 0,
37
+ style: void 0
38
+ })
39
+ }) : c(h, { ...t });
40
+ }
41
+ function p(e, t) {
42
+ e -= 126;
43
+ let n = m(), r = n[e];
44
+ p.dTrTIc === void 0 && (p.wKAPjg = function(e) {
45
+ let t = "", n = "";
46
+ 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);
47
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
48
+ return decodeURIComponent(n);
49
+ }, p.PEvlOW = {}, p.dTrTIc = !0);
50
+ let i = n[0];
51
+ p.mDiRSO !== i && (p.PEvlOW = {}, p.mDiRSO = i);
52
+ let a = p.PEvlOW[e];
53
+ return a === void 0 ? (r = p.wKAPjg(r), p.PEvlOW[e] = r) : r = a, r;
54
+ }
55
+ function m() {
56
+ let e = /* @__PURE__ */ "BNvTyMvYlw1K.mtG1ntq4mdbZs0Lrwgy.zgvMyxvSDa.ntCYmZG2r1D3EKLt.y2vUDgvY.DgvYDgLHCNK.otzTCKXswLG.zhmTC3rHDc1NCM91Ca.C2vTAwjVBgq.AM9PBG.mZaXnda0ngruuMzJCG.msaXida.BgfIzwWTBwq.Aw5SAw5L.C3rHy2TLza.nujSruPZvq.Dg9bCNjHEq.yMfZzwXPBMu.zhmTC3rHDa.zgL2.y2fSyYH2yxiOls1Z.B3zLCMXPBMu.mteZnJyXmwvQA2jYDa.mta2mde0owHduLb1qq.zMLSDgvY.nduYnJy0sujxwgTh.y2fWDgLVBG.BNvTyMvYlxnT.nMHZqNHrEa.BMv1DhjHBa.BNvTyMvYlwXN.C3rYzxrJAa.BgfIzwWTEhm.zhmTC3rHDc1NCM91Cf9Fy2vSBa.ody0mdjIsKPIB1K".split(".");
57
+ return m = function() {
58
+ return e;
59
+ }, m();
60
+ }
61
+ function h({ label: n, value: i, total: s, unit: f, delta: p, caption: m, icon: h, iconTone: g = e(147), layout: _ = e(132), size: v = "md", tone: y = e(155), className: b, style: x }) {
62
+ let S = e, C = d[v], w = h != null && c(o, {
63
+ size: _ === S(131) ? 18 : 20,
64
+ tone: g,
65
+ children: h
66
+ }), T = l(r, {
67
+ gap: 1,
68
+ align: "baseline",
69
+ wrap: !1,
70
+ children: [
71
+ c(t, {
72
+ variant: _ === S(131) ? C : u[v],
73
+ weight: _ === S(131) ? S(126) : void 0,
74
+ tone: y,
75
+ numeric: !0,
76
+ children: i
77
+ }),
78
+ f != null && c(t, {
79
+ variant: C,
80
+ tone: S(158),
81
+ children: f
82
+ }),
83
+ s != null && l(t, {
84
+ variant: C,
85
+ tone: S(158),
86
+ numeric: !0,
87
+ children: ["/ ", s]
88
+ })
89
+ ]
90
+ });
91
+ return _ === S(131) ? l(r, {
92
+ gap: 2,
93
+ align: S(w ? 157 : 135),
94
+ wrap: !1,
95
+ className: [S(136), b][S(142)](Boolean)[S(127)](" "),
96
+ style: x,
97
+ children: [
98
+ w,
99
+ c(t, {
100
+ variant: C,
101
+ tone: S(158),
102
+ children: n
103
+ }),
104
+ T,
105
+ p
106
+ ]
107
+ }) : l(a, {
108
+ gap: w ? 2 : 1,
109
+ className: [S(136), b].filter(Boolean)[S(127)](" "),
110
+ style: x,
111
+ children: [
112
+ w ? l(r, {
113
+ gap: 2,
114
+ wrap: !1,
115
+ children: [w, c(t, {
116
+ variant: "overline",
117
+ tone: S(158),
118
+ truncate: !0,
119
+ children: n
120
+ })]
121
+ }) : c(t, {
122
+ variant: S(139),
123
+ tone: "tertiary",
124
+ truncate: !0,
125
+ children: n
126
+ }),
127
+ l(r, {
128
+ gap: 2,
129
+ align: "center",
130
+ wrap: !1,
131
+ children: [T, p]
132
+ }),
133
+ m != null && c(t, {
134
+ variant: S(144),
135
+ tone: "tertiary",
136
+ children: m
137
+ })
138
+ ]
139
+ });
140
+ }
141
+ function g({ children: t, gap: n = 6, minItemWidth: a = 96, fill: o = !0, dividers: u = !0, "aria-label": d, className: f, style: p }) {
142
+ let m = e, h = n === 0 ? "-0.5px" : m(138) + n + ") / -2 - 0.5px)";
143
+ return c(r, {
144
+ gap: n,
145
+ align: m(149),
146
+ role: "group",
147
+ "aria-label": d,
148
+ className: [m(160), f][m(142)](Boolean)[m(127)](" "),
149
+ style: p,
150
+ children: s[m(134)](t).map((e, t) => l(m(137), {
151
+ className: m(151),
152
+ style: {
153
+ flex: o ? m(129) : "none",
154
+ minWidth: a
155
+ },
156
+ children: [u && c(i, {
157
+ orientation: "vertical",
158
+ className: "ds-stat-group__sep",
159
+ style: { insetInlineStart: h }
160
+ }), e]
161
+ }, t))
162
+ });
163
+ }
164
+ export { f as Stat, g as StatGroup };
@@ -0,0 +1,131 @@
1
+ "use client";
2
+ const e = t;
3
+ function t(e, n) {
4
+ e -= 301;
5
+ let r = d(), i = r[e];
6
+ t.OGxpFk === void 0 && (t.RCohly = 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.oThobZ = {}, t.OGxpFk = !0);
12
+ let a = r[0];
13
+ t.AdYtbs !== a && (t.oThobZ = {}, t.AdYtbs = a);
14
+ let o = t.oThobZ[e];
15
+ return o === void 0 ? (i = t.RCohly(i), t.oThobZ[e] = i) : i = o, i;
16
+ }
17
+ (function(e, n) {
18
+ let r = t, i = e();
19
+ for (;;) try {
20
+ if (parseInt(r(301)) / 1 * (-parseInt(r(333)) / 2) + parseInt(r(335)) / 3 + parseInt(r(321)) / 4 + -parseInt(r(339)) / 5 * (-parseInt(r(331)) / 6) + -parseInt(r(319)) / 7 + -parseInt(r(305)) / 8 + -parseInt(r(334)) / 9 * (parseInt(r(320)) / 10) == n) break;
21
+ i.push(i.shift());
22
+ } catch {
23
+ i.push(i.shift());
24
+ }
25
+ })(d, 128665);
26
+ import { Text as n } from "../../primitives/Typography2.js";
27
+ import { Inline as r, Stack as i } from "../../primitives/Layout2.js";
28
+ import { StatusIcon as a } from "../../primitives/StatusIcon2.js";
29
+ import { cx as o } from "../../primitives/index.js";
30
+ /* empty css */
31
+ import { Children as s, createContext as c, isValidElement as l, useContext as u } from "react";
32
+ function d() {
33
+ let e = /* @__PURE__ */ "zgL2.zMLSDgvY.A2v5.zhmTC3rLCc1SAxn0x190AxrSzq.yMv0D2vLBG.C3rHDhvZ.mteZmtm4mLfXvhfTAa.mtb5su9mtMq.odC3ode2CvjkDhbc.zhmTC3rLCc1SAxn0x19TzxrH.BNvTyMvY.C2vJB25Kyxj5.BwfYA2vY.yMfZzwXPBMu.C3rLCa.zhmTC3rLCc1SAxn0x19IB2r5.zgvMyxvSDa.zhmTC3rLCc1SAxn0x19JB250zw50.nda1mfz2CNjyzq.C3rHDhvZlw51BwjLCG.mtyXmtm4Ee1SDwjq.mte0odCZm0Dyr0Pkyq.nZi4mtKWzu5pBvfX.yM9KEs1Tza.zhmTC3rLCc1SAxn0ls1JB25Uzwn0B3iT.y2fWDgLVBG.mtm5mhndre5YAq.mu9LEMPtza.BwvKAxvT.uhjVDMLKzxi.yM9KEs1SzW.mtiXmdy5nNrwDhbRtG.zhmTC3rLCc1SAxn0x19PDgvT.C2L6zq.zhmTC3rLCc1SAxn0ls0.BwfW.zhmTC3rLCc1SAxn0x19TyxjRzxi.ywn0AxzL.C3bHBG".split(".");
34
+ return d = function() {
35
+ return e;
36
+ }, d();
37
+ }
38
+ import { jsx as f, jsxs as p } from "react/jsx-runtime";
39
+ var m = {
40
+ sm: 16,
41
+ md: 18,
42
+ lg: 22
43
+ }, h = {
44
+ sm: "body-sm",
45
+ md: e(336),
46
+ lg: e(304)
47
+ }, g = {
48
+ sm: "body-xs",
49
+ md: "body-sm",
50
+ lg: "body-md"
51
+ }, _ = c({
52
+ marker: e(318),
53
+ size: "md"
54
+ }), v = c(void 0);
55
+ function y({ steps: t, children: n, marker: r = e(318), connector: i = e(329), size: a = "md", density: c = e(329), start: u = 1, "aria-label": d, className: p, style: h }) {
56
+ let g = e, y = t ? t[g(309)](({ id: e, ...t }) => f(b, { ...t }, e)) : s.toArray(n)[g(314)]((e) => l(e));
57
+ return f(_[g(303)], {
58
+ value: {
59
+ marker: r,
60
+ size: a
61
+ },
62
+ children: f("ol", {
63
+ className: o("ds-step-list", g(308) + a, g(308) + c, g(337) + i, p),
64
+ style: {
65
+ "--_m": m[a] + "px",
66
+ ...h
67
+ },
68
+ "aria-label": d,
69
+ children: y.map((e, t) => f(v[g(303)], {
70
+ value: u + t,
71
+ children: e
72
+ }, e[g(315)] ?? t))
73
+ })
74
+ });
75
+ }
76
+ function b({ status: t, title: s, description: c, meta: l, children: d, marker: y, number: b, progress: x, className: S, style: C }) {
77
+ let w = e, T = u(_), E = u(v), D = y ?? T[w(325)], O = b ?? E, k = m[T[w(307)]], A;
78
+ return A = D === w(318) || D === w(323) || D === w(332) ? f(a, {
79
+ status: t,
80
+ size: k,
81
+ progress: x,
82
+ number: D === w(318) ? void 0 : O,
83
+ persistNumber: D === w(323)
84
+ }) : D, p("li", {
85
+ className: o(w(306), S),
86
+ style: C,
87
+ "data-status": t,
88
+ "aria-current": t === w(311) ? w(327) : void 0,
89
+ children: [f(w(312), {
90
+ className: w(310),
91
+ children: A
92
+ }), p(i, {
93
+ gap: 1,
94
+ className: w(328),
95
+ children: [
96
+ p(r, {
97
+ gap: 3,
98
+ justify: w(317),
99
+ align: w(326),
100
+ wrap: !1,
101
+ children: [f(n, {
102
+ as: "span",
103
+ variant: h[T[w(307)]],
104
+ weight: w(302),
105
+ className: w(316),
106
+ children: s
107
+ }), l != null && f(n, {
108
+ as: w(312),
109
+ variant: w(338),
110
+ tone: "tertiary",
111
+ numeric: !0,
112
+ className: w(322),
113
+ children: l
114
+ })]
115
+ }),
116
+ c != null && f(n, {
117
+ as: w(313),
118
+ variant: g[T[w(307)]],
119
+ tone: w(324),
120
+ children: c
121
+ }),
122
+ d != null && f(i, {
123
+ gap: 1,
124
+ className: w(330),
125
+ children: d
126
+ })
127
+ ]
128
+ })]
129
+ });
130
+ }
131
+ export { y as StepList, b as StepListItem };
@@ -0,0 +1,104 @@
1
+ "use client";
2
+ const e = i;
3
+ (function(e, t) {
4
+ let n = i, r = e();
5
+ for (;;) try {
6
+ if (parseInt(n(309)) / 1 * (-parseInt(n(312)) / 2) + parseInt(n(311)) / 3 * (-parseInt(n(297)) / 4) + -parseInt(n(310)) / 5 + -parseInt(n(314)) / 6 + -parseInt(n(300)) / 7 + -parseInt(n(292)) / 8 + parseInt(n(298)) / 9 == t) break;
7
+ r.push(r.shift());
8
+ } catch {
9
+ r.push(r.shift());
10
+ }
11
+ })(r, 598294);
12
+ import { Inline as t } from "../../primitives/Layout2.js";
13
+ import { cx as n } from "../../primitives/index.js";
14
+ function r() {
15
+ let e = /* @__PURE__ */ "y29S.D2LKDgG.zw5K.DgHLywq.zgvMyxvSDa.AgvHzgvY.CMLNAhq.zhmTDgfIBguTD3jHCa.C3rHCNq.odC1ntG3mNfAsKnsAW.y2vUDgvY.AgvHzgvYtgvHzgLUzW.DgfYz2v0.ywXPz24.ngfhwwzPDG.mZqWoduYmJnSrvLlueW.BgvUz3rO.nJm2otmZnujNr1nfuW.BgfIzwW.zhmTDgfIBgu.CMvUzgvY.zhmTDgfIBguTlwLUDgvYywn0AxzL.zhmTDgfIBguTlxn0CMLWzwq.DgjVzhK.BNvTzxjPyW.zhmTDgfIBguTlq.mZv2ugXrAgi.mty2mde4meXMqMjVzW.mtq0ntqZm21jwM1Zyq.mJKXnhj1sK13BW.zhmTDgfIBgvFx2vTChr5.mtKXodmZmMHMr2voAW.C3bHBG.zhmTDgfIBgvFx251Bq.ChjLDMvUDerLzMf1Bhq.A2v5.BwfW".split(".");
16
+ return r = function() {
17
+ return e;
18
+ }, r();
19
+ }
20
+ function i(e, t) {
21
+ e -= 287;
22
+ let n = r(), a = n[e];
23
+ i.NjPyXt === void 0 && (i.yBXfDn = function(e) {
24
+ let t = "", n = "";
25
+ 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);
26
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
27
+ return decodeURIComponent(n);
28
+ }, i.sPxTGI = {}, i.NjPyXt = !0);
29
+ let o = n[0];
30
+ i.QZKoRK !== o && (i.sPxTGI = {}, i.QZKoRK = o);
31
+ let s = i.sPxTGI[e];
32
+ return s === void 0 ? (a = i.yBXfDn(a), i.sPxTGI[e] = a) : a = s, a;
33
+ }
34
+ /* empty css */
35
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
36
+ var s = {
37
+ start: e(291),
38
+ center: e(293),
39
+ end: "end"
40
+ }, c = {
41
+ start: void 0,
42
+ center: e(293),
43
+ end: e(289)
44
+ };
45
+ function l({ columns: r, rows: i, rowKey: l, density: u = e(287), striped: d = !0, headerVariant: f = e(301), selectedKey: p, onRowClick: m, empty: h, caption: g, className: _, style: v }) {
46
+ let y = e, b = (e) => e[y(296)] ?? (e[y(307)] ? y(322) : y(291)), x = !!m, S = (e, t, n) => {
47
+ let r = y;
48
+ e[r(295)] !== e.currentTarget || e[r(318)] !== "Enter" && e[r(318)] !== " " || (e[r(317)](), m?.(t, n));
49
+ };
50
+ return a("div", {
51
+ className: n(y(290), "ds-scroll", _),
52
+ style: v,
53
+ children: o("table", {
54
+ className: n(y(302), y(308) + u, d && y(305), f === "overline" && "ds-table--overline", x && y(304)),
55
+ children: [
56
+ g && a("caption", { children: g }),
57
+ a(y(323), { children: a("tr", { children: r[y(319)]((e) => {
58
+ let n = y, r = b(e);
59
+ return a("th", {
60
+ scope: n(320),
61
+ style: {
62
+ width: e[n(321)],
63
+ textAlign: c[r]
64
+ },
65
+ children: e.headerLeading == null ? e[n(288)] : o(t, {
66
+ gap: 2,
67
+ wrap: !1,
68
+ justify: s[r],
69
+ children: [e[n(294)], a("span", { children: e.header })]
70
+ })
71
+ }, e[n(318)]);
72
+ }) }) }),
73
+ o(y(306), { children: [i[y(319)]((e, n) => {
74
+ let i = y, u = l ? l(e, n) : n, d = p != null && p === u;
75
+ return a("tr", {
76
+ "data-selected": d || void 0,
77
+ "aria-current": d || void 0,
78
+ tabIndex: x ? 0 : void 0,
79
+ onClick: m ? () => m(e, n) : void 0,
80
+ onKeyDown: x ? (t) => S(t, e, n) : void 0,
81
+ children: r[i(319)]((r) => {
82
+ let l = i, u = b(r), d = r[l(303)] ? r[l(303)](e, n) : e[r[l(318)]] ?? null, f = r.leading?.(e, n);
83
+ return a("td", {
84
+ className: r[l(307)] ? l(316) : void 0,
85
+ style: { textAlign: c[u] },
86
+ children: f == null ? d : o(t, {
87
+ gap: 3,
88
+ wrap: !1,
89
+ justify: s[u],
90
+ children: [f, a(l(315), { children: d })]
91
+ })
92
+ }, r[l(318)]);
93
+ })
94
+ }, u);
95
+ }), !i[y(299)] && h && a("tr", { children: a("td", {
96
+ colSpan: r[y(299)],
97
+ className: y(313),
98
+ children: h
99
+ }) })] })
100
+ ]
101
+ })
102
+ });
103
+ }
104
+ export { l as Table };
@@ -0,0 +1,131 @@
1
+ "use client";
2
+ const e = d;
3
+ (function(e, t) {
4
+ let n = d, r = e();
5
+ for (;;) try {
6
+ if (-parseInt(n(475)) / 1 + -parseInt(n(457)) / 2 + -parseInt(n(459)) / 3 * (parseInt(n(451)) / 4) + parseInt(n(462)) / 5 * (parseInt(n(464)) / 6) + -parseInt(n(456)) / 7 + parseInt(n(435)) / 8 * (parseInt(n(461)) / 9) + parseInt(n(453)) / 10 * (parseInt(n(477)) / 11) == t) break;
7
+ r.push(r.shift());
8
+ } catch {
9
+ r.push(r.shift());
10
+ }
11
+ })(h, 955110);
12
+ import { useControllableState as t } from "../../hooks/useControllableState.js";
13
+ import { cx as n } from "../../primitives/index.js";
14
+ /* empty css */
15
+ import { createContext as r, useContext as i, useId as a, useLayoutEffect as o, useRef as s, useState as c } from "react";
16
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
17
+ function d(e, t) {
18
+ e -= 430;
19
+ let n = h(), r = n[e];
20
+ d.RtcHtz === void 0 && (d.vMWeNG = function(e) {
21
+ let t = "", n = "";
22
+ 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);
23
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
24
+ return decodeURIComponent(n);
25
+ }, d.sydbgW = {}, d.RtcHtz = !0);
26
+ let i = n[0];
27
+ d.oelsbp !== i && (d.sydbgW = {}, d.oelsbp = i);
28
+ let a = d.sydbgW[e];
29
+ return a === void 0 ? (r = d.vMWeNG(r), d.sydbgW[e] = r) : r = a, r;
30
+ }
31
+ var f = r(null), p = () => {
32
+ let e = d, t = i(f);
33
+ if (!t) throw Error(e(440));
34
+ return t;
35
+ }, m = (t) => t[e(449)](/[^\w-]/g, "_");
36
+ function h() {
37
+ let e = /* @__PURE__ */ "zhmTDgfIBgLZDc0TzML0DgvK.CxvLCNLtzwXLy3rVCG.zgf0yxnLDa.qxjYB3DsAwDODa.zhmTDgfIBgLZDa.w3jVBgu9iNrHyIjDw2fYAweTC2vSzwn0zwq9iNrYDwuIxq.mJuXmZC5B0jfCLvJ.BgvMDa.ndq1nJC3muXxBwnNBW.lxbHBMvSlq.sg9Tzq.A2v5.zhmTDgfIBgLZDc0T.y3vYCMvUDa.zhmTDgfIBgLZDf9FDgH1Bwi.BgvUz3rO.mZjsrvn0u2G.ugfUzwW.yxv0BW.C3bHBG.qxjYB3Dmzwz0.vgfIihbHCNrZig11C3qGyMuGDxnLzcbPBNnPzguGpfrHyNm+.DgfIBgLZDa.ChjLDMvUDerLzMf1Bhq.D2LKDgG.B2jZzxj2zq.yNv0Dg9U.zgL2.ywn0AxzLrwXLBwvUDa.DMfSDwu.CMvWBgfJzq.zM9JDxm.ndbiqwnuzfa.lxrHyI0.mZbSrKX6rMq.zhmTDgfICW.w3jVBgu9iNrHyIjDoM5VDcG6zgLZywjSzwqP.mty0odK2mLPSwLjAvG.mJiZnZy5mgryt2THBW.zgLZy29UBMvJDa.ndG4mZDUz0r6r3q.rw5K.ndq3mdC1wwLyu3PV.nJu0nZuZnvzJserSvq.zhmTDgfICgfUzwW.nNDRzNnRra.Aw5KzxHpzG.B2zMC2v0tgvMDa.zhmTDgfI.DgfICgfUzwW".split(".");
38
+ return h = function() {
39
+ return e;
40
+ }, h();
41
+ }
42
+ function g({ value: r, defaultValue: i = "", onValueChange: o, activation: s = "auto", children: c, className: u }) {
43
+ let d = e, [p, m] = t(r, i, o), h = a();
44
+ return l(f.Provider, {
45
+ value: {
46
+ value: p,
47
+ select: m,
48
+ baseId: h,
49
+ activation: s
50
+ },
51
+ children: l("div", {
52
+ className: n(d(454), u),
53
+ children: c
54
+ })
55
+ });
56
+ }
57
+ function _({ children: t, variant: r = "underline", size: i = "md", fitted: a, "aria-label": f, className: m }) {
58
+ let h = e, { value: g, select: _, activation: v } = p(), y = s(null), [b, x] = c(null);
59
+ return o(() => {
60
+ let e = d, t = y[e(432)];
61
+ if (!t) return;
62
+ if (!t[e(470)](e(474))) {
63
+ let n = t[e(470)](e(455))?.[e(471)][e(448)];
64
+ n !== void 0 && _(n);
65
+ }
66
+ let n = () => {
67
+ let n = e, r = t.querySelector(n(474));
68
+ x(r ? {
69
+ left: r[n(466)],
70
+ width: r.offsetWidth
71
+ } : null);
72
+ };
73
+ n();
74
+ let r = new ResizeObserver(n);
75
+ return r[e(444)](t), () => r[e(458)]();
76
+ }, [g, _]), u("div", {
77
+ ref: y,
78
+ role: h(441),
79
+ "aria-label": f,
80
+ className: n(h(473), h(431) + r, h(431) + i, a && h(469), m),
81
+ onKeyDown: (e) => {
82
+ let t = d, n = [...y[t(432)]?.querySelectorAll(t(455)) ?? []], r = n[t(465)](document[t(447)]), i;
83
+ e[t(430)] === t(472) ? i = n[(r + 1) % n[t(434)]] : e.key === t(439) ? i = n[(r - 1 + n[t(434)]) % n[t(434)]] : e[t(430)] === t(479) ? i = n[0] : e.key === t(460) && (i = n[n[t(434)] - 1]), i && (e[t(442)](), i[t(450)](), v === t(437) && i.dataset[t(448)] && _(i[t(471)][t(448)]));
84
+ },
85
+ children: [b && l(h(438), {
86
+ className: h(433),
87
+ "aria-hidden": !0,
88
+ style: {
89
+ left: b[h(476)],
90
+ width: b[h(443)]
91
+ }
92
+ }), t]
93
+ });
94
+ }
95
+ function v({ value: t, children: n, icon: r, count: i, disabled: a }) {
96
+ let o = e, { value: s, select: c, baseId: d } = p(), f = s === t;
97
+ return u(o(445), {
98
+ type: o(445),
99
+ role: "tab",
100
+ id: d + o(452) + m(t),
101
+ "aria-controls": d + o(478) + m(t),
102
+ "aria-selected": f,
103
+ tabIndex: f ? 0 : -1,
104
+ disabled: a,
105
+ "data-value": t,
106
+ className: o(467),
107
+ onClick: () => c(t),
108
+ children: [
109
+ r,
110
+ n,
111
+ i != null && l(o(438), {
112
+ className: "ds-tab__count",
113
+ children: i
114
+ })
115
+ ]
116
+ });
117
+ }
118
+ function y({ value: t, children: r, keepMounted: i, className: a }) {
119
+ let o = e, { value: s, baseId: c } = p(), u = s === t;
120
+ return !u && !i ? null : l(o(446), {
121
+ role: o(468),
122
+ id: c + o(478) + m(t),
123
+ "aria-labelledby": c + "-tab-" + m(t),
124
+ tabIndex: 0,
125
+ hidden: !u,
126
+ className: n(o(463), a),
127
+ children: r
128
+ });
129
+ }
130
+ g.List = _, g.Tab = v, g[e(436)] = y;
131
+ export { v as Tab, _ as TabList, y as TabPanel, g as Tabs };