@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,95 @@
1
+ "use client";
2
+ const e = l;
3
+ (function(e, t) {
4
+ let n = l, r = e();
5
+ for (;;) try {
6
+ if (-parseInt(n(437)) / 1 * (parseInt(n(428)) / 2) + parseInt(n(429)) / 3 * (parseInt(n(442)) / 4) + parseInt(n(418)) / 5 + -parseInt(n(425)) / 6 + -parseInt(n(421)) / 7 + parseInt(n(450)) / 8 + parseInt(n(431)) / 9 == t) break;
7
+ r.push(r.shift());
8
+ } catch {
9
+ r.push(r.shift());
10
+ }
11
+ })(a, 262873);
12
+ import { useControllableState as t } from "../../hooks/useControllableState.js";
13
+ import { cx as n } from "../../primitives/index.js";
14
+ /* empty css */
15
+ import { useRef as r, useState as i } from "react";
16
+ function a() {
17
+ let e = /* @__PURE__ */ "A2v5.C2HPzNrlzxK.C2vJDgLVBG.mZu2odmYze1Sy1jk.DMvYDgLJywW.C29MDa.mZq2ntjbyMHQBLC.ntiXmZfiteXnvM0.C2v0ug9PBNrLCKnHChr1CMu.mte2ndK4n2H6BgH1yG.zhmTC3bSAxrFx3bHBMuGzhmTC3bSAxrFx2XPC3qGzhmTC2nYB2XS.sg9Tzq.rxnJyxbL.rw50zxi.zhmTC3bSAxrFx2rPDMLKzxi.ohL4suHMtq.qxjYB3Dmzwz0.y2XPzw50wa.zM9JDxm.rw5K.mZjjuujRExm.qxjYB3DsAwDODa.zgL2.Bwf4.Cg9PBNrLCKLK.ioUeIoU5HcdSOBdSOiG.y3vYCMvUDfrHCMDLDa.ChjLDMvUDerLzMf1Bhq.nJmZndGWrKfxC2Ph.y3vYCMvUDa.zhmTC3bSAxrFx3bHBMuGzhmTC3bSAxrFx2rLDgfPBcbKCY1Zy3jVBgW.ntK5mtK1uuXItejv.zhmTC3bSAxqTlq.yNv0Dg9U.ndu3mtb1zMzVtKS".split(".");
18
+ return a = function() {
19
+ return e;
20
+ }, a();
21
+ }
22
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
23
+ var c = 16;
24
+ function l(e, t) {
25
+ e -= 416;
26
+ let n = a(), r = n[e];
27
+ l.nKWjJo === void 0 && (l.qyFhRO = function(e) {
28
+ let t = "", n = "";
29
+ 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);
30
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
31
+ return decodeURIComponent(n);
32
+ }, l.tpXSnO = {}, l.nKWjJo = !0);
33
+ let i = n[0];
34
+ l.hHkrMg !== i && (l.tpXSnO = {}, l.hHkrMg = i);
35
+ let o = l.tpXSnO[e];
36
+ return o === void 0 ? (r = l.qyFhRO(r), l.tpXSnO[e] = r) : r = o, r;
37
+ }
38
+ function u({ list: a, children: l, listWidth: u, defaultListWidth: d = 300, onListWidthChange: f, minListWidth: p = 220, maxListWidth: m = 520, resizable: h, listTone: g = e(427), listLabel: _ = "목록", detailLabel: v = "상세", className: y, style: b }) {
39
+ let x = e, [S, C] = t(u, d, f), [w, T] = i(!1), E = r(null), D = (e) => Math.round(Math.min(m, Math[x(445)](p, e))), O = D(S), k = (e) => {
40
+ let t = x;
41
+ e[t(420)] === 0 && (e[t(449)](), e[t(448)][t(430)](e[t(446)]), e[t(448)][t(440)](), E[t(416)] = {
42
+ x: e[t(439)],
43
+ start: O
44
+ }, T(!0));
45
+ }, A = (e) => {
46
+ let t = E[x(416)];
47
+ if (!t) return;
48
+ let n = D(t.start + e.clientX - t.x);
49
+ n !== O && C(n);
50
+ }, j = () => {
51
+ let e = x;
52
+ E[e(416)] = null, T(!1);
53
+ }, M = (e) => {
54
+ let t = x, n = e[t(423)] ? 64 : c, r = null;
55
+ e.key === t(438) ? r = O - n : e[t(422)] === t(443) ? r = O + n : e[t(422)] === t(433) ? r = p : e.key === t(441) ? r = m : e[t(422)] === t(435) ? r = d : e.key === t(434) && E[t(416)] && (r = E[t(416)].start, j()), r !== null && (e.preventDefault(), C(D(r)));
56
+ };
57
+ return s(x(444), {
58
+ className: n("ds-split", x(419) + g, y),
59
+ "data-dragging": w || void 0,
60
+ style: {
61
+ "--_list": O + "px",
62
+ ...b
63
+ },
64
+ children: [
65
+ o(x(424), {
66
+ className: x(432),
67
+ "aria-label": _,
68
+ children: a
69
+ }),
70
+ h && o(x(444), {
71
+ role: "separator",
72
+ tabIndex: 0,
73
+ "aria-orientation": x(426),
74
+ "aria-label": _ + x(447),
75
+ "aria-valuenow": O,
76
+ "aria-valuemin": p,
77
+ "aria-valuemax": m,
78
+ className: x(436),
79
+ onPointerDown: k,
80
+ onPointerMove: A,
81
+ onPointerUp: j,
82
+ onPointerCancel: j,
83
+ onLostPointerCapture: j,
84
+ onDoubleClick: () => C(D(d)),
85
+ onKeyDown: M
86
+ }),
87
+ o("section", {
88
+ className: x(417),
89
+ "aria-label": v,
90
+ children: l
91
+ })
92
+ ]
93
+ });
94
+ }
95
+ export { u as SplitView };
@@ -0,0 +1,164 @@
1
+ "use client";
2
+ const e = s;
3
+ (function(e, t) {
4
+ let n = s, r = e();
5
+ for (;;) try {
6
+ if (parseInt(n(220)) / 1 + parseInt(n(219)) / 2 + parseInt(n(221)) / 3 + -parseInt(n(233)) / 4 + -parseInt(n(234)) / 5 * (parseInt(n(217)) / 6) + parseInt(n(246)) / 7 * (parseInt(n(237)) / 8) + -parseInt(n(231)) / 9 == t) break;
7
+ r.push(r.shift());
8
+ } catch {
9
+ r.push(r.shift());
10
+ }
11
+ })(p, 865590);
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
+ function s(e, t) {
16
+ e -= 215;
17
+ let n = p(), r = n[e];
18
+ s.UYuwuS === void 0 && (s.AxFXri = function(e) {
19
+ let t = "", n = "";
20
+ 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);
21
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
22
+ return decodeURIComponent(n);
23
+ }, s.FDClfZ = {}, s.UYuwuS = !0);
24
+ let i = n[0];
25
+ s.QCwnBy !== i && (s.FDClfZ = {}, s.QCwnBy = i);
26
+ let a = s.FDClfZ[e];
27
+ return a === void 0 ? (r = s.AxFXri(r), s.FDClfZ[e] = r) : r = a, r;
28
+ }
29
+ /* empty css */
30
+ import { Children as c } from "react";
31
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
32
+ var d = {
33
+ sm: "number-sm",
34
+ md: e(218),
35
+ lg: e(245)
36
+ }, f = {
37
+ sm: e(232),
38
+ md: e(242),
39
+ lg: e(247)
40
+ };
41
+ function p() {
42
+ let e = /* @__PURE__ */ "C3rHy2TLza.z3jVDxa.B3zLCMXPBMu.zhmTC3rHDc1NCM91Ca.y2fWDgLVBG.zhmTC3rHDc1NCM91Cf9Fy2vSBa.zhmTC3rHDc0TDgLSzq.BMv1DhjHBa.nLf4ywL0qW.BNvTyMvYlw1K.mZeWmJeYngnyuhbpBW.oti2otmYDM1Hs1nO.ndCWnZaZB1rpvfP3.DMvYDgLJywW.BwfW.zhmTC3rHDc1NCM91Cf9FC2vW.zMLSDgvY.ltaUnxb4.y2vUDgvY.DgvYDgLHCNK.Dg9bCNjHEq.AM9PBG.mJu1mZC3n1r3B25nrG.BgfIzwWTEhm.nda1mZa4nhfeAgTvAG.nZu2mZK4nwjdtKjOzq.C3rYzxrJAa.y2fSyYH2yxiOls1Z.mtuYvhPtuMnc.zgL2.BM9Uzq.Aw5SAw5L.C2vTAwjVBgq.BgfIzwWTC20.msaXida.zhmTC3rHDa.BNvTyMvYlwXN.mZGZmZq4wxjOyxLK.BgfIzwWTBwq".split(".");
43
+ return p = function() {
44
+ return e;
45
+ }, p();
46
+ }
47
+ function m(t) {
48
+ let r = e, { tile: i, className: a, style: o } = t;
49
+ return i ? l(n, {
50
+ padding: 3,
51
+ background: "subtle",
52
+ className: [r(215), a][r(225)](Boolean).join(" "),
53
+ style: o,
54
+ children: l(h, {
55
+ ...t,
56
+ className: void 0,
57
+ style: void 0
58
+ })
59
+ }) : l(h, { ...t });
60
+ }
61
+ function h({ label: n, value: i, total: s, unit: c, delta: p, caption: m, icon: h, iconTone: g = e(216), layout: _ = e(248), size: v = "md", tone: y = "default", className: b, style: x }) {
62
+ let S = e, C = f[v], w = h != null && l(o, {
63
+ size: _ === S(240) ? 18 : 20,
64
+ tone: g,
65
+ children: h
66
+ }), T = u(r, {
67
+ gap: 1,
68
+ align: "baseline",
69
+ wrap: !1,
70
+ children: [
71
+ l(t, {
72
+ variant: _ === S(240) ? C : d[v],
73
+ weight: _ === S(240) ? S(241) : void 0,
74
+ tone: y,
75
+ numeric: !0,
76
+ children: i
77
+ }),
78
+ c != null && l(t, {
79
+ variant: C,
80
+ tone: S(228),
81
+ children: c
82
+ }),
83
+ s != null && u(t, {
84
+ variant: C,
85
+ tone: S(228),
86
+ numeric: !0,
87
+ children: ["/ ", s]
88
+ })
89
+ ]
90
+ });
91
+ return _ === S(240) ? u(r, {
92
+ gap: 2,
93
+ align: w ? S(227) : "baseline",
94
+ wrap: !1,
95
+ className: [S(244), b][S(225)](Boolean)[S(230)](" "),
96
+ style: x,
97
+ children: [
98
+ w,
99
+ l(t, {
100
+ variant: C,
101
+ tone: S(228),
102
+ children: n
103
+ }),
104
+ T,
105
+ p
106
+ ]
107
+ }) : u(a, {
108
+ gap: w ? 2 : 1,
109
+ className: ["ds-stat", b][S(225)](Boolean)[S(230)](" "),
110
+ style: x,
111
+ children: [
112
+ w ? u(r, {
113
+ gap: 2,
114
+ wrap: !1,
115
+ children: [w, l(t, {
116
+ variant: S(250),
117
+ tone: S(228),
118
+ truncate: !0,
119
+ children: n
120
+ })]
121
+ }) : l(t, {
122
+ variant: "overline",
123
+ tone: S(228),
124
+ truncate: !0,
125
+ children: n
126
+ }),
127
+ u(r, {
128
+ gap: 2,
129
+ align: S(227),
130
+ wrap: !1,
131
+ children: [T, p]
132
+ }),
133
+ m != null && l(t, {
134
+ variant: S(252),
135
+ tone: S(228),
136
+ children: m
137
+ })
138
+ ]
139
+ });
140
+ }
141
+ function g({ children: t, gap: n = 6, minItemWidth: a = 96, fill: o = !0, dividers: s = !0, "aria-label": d, className: f, style: p }) {
142
+ let m = e, h = n === 0 ? m(226) : m(236) + n + ") / -2 - 0.5px)";
143
+ return l(r, {
144
+ gap: n,
145
+ align: m(235),
146
+ role: m(249),
147
+ "aria-label": d,
148
+ className: [m(251), f].filter(Boolean)[m(230)](" "),
149
+ style: p,
150
+ children: c[m(229)](t)[m(223)]((e, t) => u(m(238), {
151
+ className: m(253),
152
+ style: {
153
+ flex: m(o ? 243 : 239),
154
+ minWidth: a
155
+ },
156
+ children: [s && l(i, {
157
+ orientation: m(222),
158
+ className: m(224),
159
+ style: { insetInlineStart: h }
160
+ }), e]
161
+ }, t))
162
+ });
163
+ }
164
+ export { m as Stat, g as StatGroup };
@@ -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(293)) / 1 + parseInt(n(287)) / 2 + -parseInt(n(271)) / 3 * (-parseInt(n(288)) / 4) + -parseInt(n(276)) / 5 + parseInt(n(275)) / 6 * (-parseInt(n(267)) / 7) + -parseInt(n(290)) / 8 + parseInt(n(277)) / 9 == t) break;
7
+ r.push(r.shift());
8
+ } catch {
9
+ r.push(r.shift());
10
+ }
11
+ })(i, 156791);
12
+ import { Text as t } from "../../primitives/Typography2.js";
13
+ import { Inline as n, Stack as r } from "../../primitives/Layout2.js";
14
+ function i() {
15
+ let e = /* @__PURE__ */ "C3rLCa.BNvTyMvY.yM9KEs1SzW.zgL2.zhmTC3rLCc1SAxn0.yM9KEs1Tza.mZaXC0DyveXk.zhmTC3rLCc1SAxn0ls0.BwvKAxvT.yM9KEs14CW.mJaWnte3vfzYy2vm.zMLSDgvY.y2fWDgLVBG.Dg9bCNjHEq.mJuYmJrQqMnRCKm.nZq1nJa1DNvNEhzg.nti3nZeWnuPSvvvrAG.C3rHDhvZ.zhmTC3rLCc1SAxn0x19JB250zw50.yMv0D2vLBG.zhmTC3rLCc1SAxn0x190AxrSzq.BwfW.zhmTC3rLCc1SAxn0x19IB2r5.C3bHBG.DgvYDgLHCNK.yM9KEs1ZBq.ntm5ndm4zLD5B25e.ohzWuwnzqG.uhjVDMLKzxi.mJaXnZe2ogTdzundAq.C2L6zq.zgvMyxvSDa.mJuWoteYBgfprMr0".split(".");
16
+ return i = function() {
17
+ return e;
18
+ }, i();
19
+ }
20
+ import { StatusIcon as a } from "../../primitives/StatusIcon2.js";
21
+ import { cx as o } from "../../primitives/index.js";
22
+ /* empty css */
23
+ import { Children as s, createContext as c, isValidElement as l, useContext as u } from "react";
24
+ function d(e, t) {
25
+ e -= 267;
26
+ let n = i(), r = n[e];
27
+ d.TctDWK === void 0 && (d.GFsSwj = function(e) {
28
+ let t = "", n = "";
29
+ 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);
30
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
31
+ return decodeURIComponent(n);
32
+ }, d.vZZEMO = {}, d.TctDWK = !0);
33
+ let a = n[0];
34
+ d.HFgVcx !== a && (d.vZZEMO = {}, d.HFgVcx = a);
35
+ let o = d.vZZEMO[e];
36
+ return o === void 0 ? (r = d.GFsSwj(r), d.vZZEMO[e] = r) : r = o, r;
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: e(286),
45
+ md: "body-md",
46
+ lg: e(296)
47
+ }, g = {
48
+ sm: e(270),
49
+ md: e(286),
50
+ lg: e(299)
51
+ }, _ = c({
52
+ marker: e(278),
53
+ size: "md"
54
+ }), v = c(void 0);
55
+ function y({ steps: t, children: n, marker: r = "status", connector: i = "default", size: a = "md", density: c = e(292), start: u = 1, "aria-label": d, className: p, style: h }) {
56
+ let g = e, y = t ? t[g(282)](({ id: e, ...t }) => f(b, { ...t }, e)) : s[g(274)](n)[g(272)]((e) => l(e));
57
+ return f(_[g(289)], {
58
+ value: {
59
+ marker: r,
60
+ size: a
61
+ },
62
+ children: f("ol", {
63
+ className: o(g(298), "ds-step-list--" + a, g(268) + c, "ds-step-list--connector-" + i, p),
64
+ style: {
65
+ "--_m": m[a] + "px",
66
+ ...h
67
+ },
68
+ "aria-label": d,
69
+ children: y[g(282)]((e, t) => f(v[g(289)], {
70
+ value: u + t,
71
+ children: e
72
+ }, e.key ?? t))
73
+ })
74
+ });
75
+ }
76
+ function b({ status: i, 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.marker, O = b ?? E, k = m[T[w(291)]], A;
78
+ return A = D === w(278) || D === w(295) || D === "status-number" ? f(a, {
79
+ status: i,
80
+ size: k,
81
+ progress: x,
82
+ number: D === w(278) ? void 0 : O,
83
+ persistNumber: D === w(295)
84
+ }) : D, p("li", {
85
+ className: o("ds-step-list__item", S),
86
+ style: C,
87
+ "data-status": i,
88
+ "aria-current": i === "active" ? w(294) : void 0,
89
+ children: [f("span", {
90
+ className: "ds-step-list__marker",
91
+ children: A
92
+ }), p(r, {
93
+ gap: 1,
94
+ className: w(283),
95
+ children: [
96
+ p(n, {
97
+ gap: 3,
98
+ justify: w(280),
99
+ align: "baseline",
100
+ wrap: !1,
101
+ children: [f(t, {
102
+ as: w(284),
103
+ variant: h[T[w(291)]],
104
+ weight: w(269),
105
+ className: w(281),
106
+ children: s
107
+ }), l != null && f(t, {
108
+ as: w(284),
109
+ variant: w(273),
110
+ tone: w(285),
111
+ numeric: !0,
112
+ className: "ds-step-list__meta",
113
+ children: l
114
+ })]
115
+ }),
116
+ c != null && f(t, {
117
+ as: w(297),
118
+ variant: g[T[w(291)]],
119
+ tone: "secondary",
120
+ children: c
121
+ }),
122
+ d != null && f(r, {
123
+ gap: 1,
124
+ className: w(279),
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(289)) / 1 * (parseInt(n(279)) / 2) + -parseInt(n(298)) / 3 * (-parseInt(n(264)) / 4) + -parseInt(n(282)) / 5 * (-parseInt(n(275)) / 6) + parseInt(n(271)) / 7 + -parseInt(n(292)) / 8 + parseInt(n(284)) / 9 * (-parseInt(n(294)) / 10) + parseInt(n(270)) / 11 == t) break;
7
+ r.push(r.shift());
8
+ } catch {
9
+ r.push(r.shift());
10
+ }
11
+ })(r, 551821);
12
+ import { Inline as t } from "../../primitives/Layout2.js";
13
+ import { cx as n } from "../../primitives/index.js";
14
+ /* empty css */
15
+ function r() {
16
+ let e = /* @__PURE__ */ "y2fWDgLVBG.mteXodu1nMvUthbnsW.C3bHBG.D2LKDgG.ywXPz24.BwfW.zw5K.mte1nJK4mJjkBLLrrLa.nJmYmdy3muXgC090uG.AgvHzgvY.BgvUz3rO.zhmTDgfIBguTlw92zxjSAw5L.ndG2q29hrwTb.CMLNAhq.CMvUzgvY.BNvTzxjPyW.mtm5otK1mg5AAuDotG.y29S.B3zLCMXPBMu.mtiWntv0CKDjsLi.ChjLDMvUDerLzMf1Bhq.ou9Ns016za.DgjVzhK.zhmTDgfIBgvFx251Bq.BgvHzgLUzW.zhmTDgfIBguTD3jHCa.mxnJAg5TsW.AgvHzgvYtgvHzgLUzW.C3rHCNq.ntGWmdm4ngfnwezfCG.zhmTDgfIBgvFx2vTChr5.nduYodqXmeHyq2LfDG.DgHLywq.DgfIBgu.A2v5.m21QCfHywq.BgfIzwW.y2vUDgvY.zhmTDgfIBgu.rw50zxi".split(".");
17
+ return r = function() {
18
+ return e;
19
+ }, r();
20
+ }
21
+ function i(e, t) {
22
+ e -= 262;
23
+ let n = r(), a = n[e];
24
+ i.uwkASa === void 0 && (i.zkEqFX = function(e) {
25
+ let t = "", n = "";
26
+ 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);
27
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
28
+ return decodeURIComponent(n);
29
+ }, i.sCveho = {}, i.uwkASa = !0);
30
+ let o = n[0];
31
+ i.DjsIgc !== o && (i.sCveho = {}, i.DjsIgc = o);
32
+ let s = i.sCveho[e];
33
+ return s === void 0 ? (a = i.zkEqFX(a), i.sCveho[e] = a) : a = s, a;
34
+ }
35
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
36
+ var s = {
37
+ start: e(291),
38
+ center: e(300),
39
+ end: e(269)
40
+ }, c = {
41
+ start: void 0,
42
+ center: "center",
43
+ end: e(276)
44
+ };
45
+ function l({ columns: r, rows: l, rowKey: u, density: d = "default", striped: f = !0, headerVariant: p = e(299), selectedKey: m, onRowClick: h, empty: g, caption: _, className: v, style: y }) {
46
+ let b = e, x = (e) => e[b(267)] ?? (e[b(278)] ? b(269) : b(291)), S = !!h, C = (e, t, n) => {
47
+ let r = b;
48
+ e.target !== e.currentTarget || e[r(297)] !== r(262) && e.key !== " " || (e[r(283)](), h?.(t, n));
49
+ };
50
+ return a("div", {
51
+ className: n(b(288), "ds-scroll", v),
52
+ style: y,
53
+ children: o(b(296), {
54
+ className: n(b(301), "ds-table--" + d, f && "ds-table--striped", p === b(281) && b(274), S && "ds-table--interactive"),
55
+ children: [
56
+ _ && a(b(263), { children: _ }),
57
+ a(b(295), { children: a("tr", { children: r[b(268)]((e) => {
58
+ let n = b, r = x(e);
59
+ return a("th", {
60
+ scope: n(280),
61
+ style: {
62
+ width: e[n(266)],
63
+ textAlign: c[r]
64
+ },
65
+ children: e[n(290)] == null ? e[n(272)] : o(t, {
66
+ gap: 2,
67
+ wrap: !1,
68
+ justify: s[r],
69
+ children: [e[n(290)], a(n(265), { children: e.header })]
70
+ })
71
+ }, e[n(297)]);
72
+ }) }) }),
73
+ o(b(285), { children: [l[b(268)]((e, n) => {
74
+ let l = u ? u(e, n) : n, d = m != null && m === l;
75
+ return a("tr", {
76
+ "data-selected": d || void 0,
77
+ "aria-current": d || void 0,
78
+ tabIndex: S ? 0 : void 0,
79
+ onClick: h ? () => h(e, n) : void 0,
80
+ onKeyDown: S ? (t) => C(t, e, n) : void 0,
81
+ children: r.map((r) => {
82
+ let l = i, u = x(r), d = r[l(277)] ? r[l(277)](e, n) : e[r.key] ?? null, f = r[l(287)]?.(e, n);
83
+ return a("td", {
84
+ className: r[l(278)] ? l(286) : 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(265), { children: d })]
91
+ })
92
+ }, r[l(297)]);
93
+ })
94
+ }, l);
95
+ }), !l[b(273)] && g && a("tr", { children: a("td", {
96
+ colSpan: r.length,
97
+ className: b(293),
98
+ children: g
99
+ }) })] })
100
+ ]
101
+ })
102
+ });
103
+ }
104
+ export { l as Table };
@@ -0,0 +1,131 @@
1
+ "use client";
2
+ const e = t;
3
+ function t(e, n) {
4
+ e -= 432;
5
+ let r = i(), a = r[e];
6
+ t.FIfLXP === void 0 && (t.BcWXHk = 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.ulcyIz = {}, t.FIfLXP = !0);
12
+ let o = r[0];
13
+ t.Yxwcwt !== o && (t.ulcyIz = {}, t.Yxwcwt = o);
14
+ let s = t.ulcyIz[e];
15
+ return s === void 0 ? (a = t.BcWXHk(a), t.ulcyIz[e] = a) : a = s, a;
16
+ }
17
+ (function(e, n) {
18
+ let r = t, i = e();
19
+ for (;;) try {
20
+ if (parseInt(r(464)) / 1 * (parseInt(r(441)) / 2) + parseInt(r(434)) / 3 * (parseInt(r(470)) / 4) + -parseInt(r(451)) / 5 * (parseInt(r(448)) / 6) + -parseInt(r(474)) / 7 + parseInt(r(475)) / 8 * (parseInt(r(469)) / 9) + parseInt(r(452)) / 10 * (-parseInt(r(453)) / 11) + parseInt(r(447)) / 12 == n) break;
21
+ i.push(i.shift());
22
+ } catch {
23
+ i.push(i.shift());
24
+ }
25
+ })(i, 959278);
26
+ import { useControllableState as n } from "../../hooks/useControllableState.js";
27
+ import { cx as r } from "../../primitives/index.js";
28
+ /* empty css */
29
+ function i() {
30
+ let e = /* @__PURE__ */ "mJvAtw1lC2u.DgfICgfUzwW.y3vYCMvUDa.qxjYB3Dmzwz0.lxbHBMvSlq.mJqYmwjszNresW.nejIvxLuzW.tgLZDa.ywn0AxzLrwXLBwvUDa.lxrHyI0.mta4mZKXnw5vuMf3qq.mZy2odbfuKPtzei.w3jVBgu9iNrHyIjDw2fYAweTC2vSzwn0zwq9iNrYDwuIxq.yxv0BW.zhmTDgfIx19JB3vUDa.zM9JDxm.rw5K.zhmTDgfIBgLZDc0TzML0DgvK.oteXotu4uMPoEg5Z.BgvUz3rO.DgfIBgLZDa.zhmTDgfIBgLZDa.DMfSDwu.zhmTDgfI.CxvLCNLtzwXLy3rVCKfSBa.nJG3ndj6y1zTDNO.A2v5.zgL2.vgfIihbHCNrZig11C3qGyMuGDxnLzcbPBNnPzguGpfrHyNm+.CMvWBgfJzq.w3jVBgu9iNrHyIjDoM5VDcG6zgLZywjSzwqP.mJKYndKZntjwCvPUuMK.mJKZmZC2zfnUr2fL.D2LKDgG.CxvLCNLtzwXLy3rVCG.mtK1rvnuvNbQ.otbKD1jqEuu.mJiXntG5nxflu3rKqW.vgfI.uhjVDMLKzxi.qxjYB3DsAwDODa.zgLZy29UBMvJDa.yNv0Dg9U.C3bHBG.zhmTDgfIBgLZDc0T.ugfUzwW.zgf0yxnLDa.B2jZzxj2zq".split(".");
31
+ return i = function() {
32
+ return e;
33
+ }, i();
34
+ }
35
+ import { createContext as a, useContext as o, useId as s, useLayoutEffect as c, useRef as l, useState as u } from "react";
36
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
37
+ var p = a(null), m = () => {
38
+ let e = t, n = o(p);
39
+ if (!n) throw Error(e(444));
40
+ return n;
41
+ }, h = (t) => t[e(445)](/[^\w-]/g, "_");
42
+ function g({ value: t, defaultValue: i = "", onValueChange: a, activation: o = "auto", children: c, className: l }) {
43
+ let u = e, [f, m] = n(t, i, a), h = s();
44
+ return d(p[u(455)], {
45
+ value: {
46
+ value: f,
47
+ select: m,
48
+ baseId: h,
49
+ activation: o
50
+ },
51
+ children: d(u(443), {
52
+ className: r("ds-tabs", l),
53
+ children: c
54
+ })
55
+ });
56
+ }
57
+ function _({ children: n, variant: i = "underline", size: a = "md", fitted: o, "aria-label": s, className: p }) {
58
+ let h = e, { value: g, select: _, activation: v } = m(), y = l(null), [b, x] = u(null);
59
+ return c(() => {
60
+ let e = t, n = y[e(466)];
61
+ if (!n) return;
62
+ if (!n[e(450)](e(476))) {
63
+ let t = n[e(450)](e(446))?.[e(462)].value;
64
+ t !== void 0 && _(t);
65
+ }
66
+ let r = () => {
67
+ let t = n[e(450)]("[role=\"tab\"][aria-selected=\"true\"]");
68
+ x(t ? {
69
+ left: t.offsetLeft,
70
+ width: t.offsetWidth
71
+ } : null);
72
+ };
73
+ r();
74
+ let i = new ResizeObserver(r);
75
+ return i[e(463)](n), () => i[e(457)]();
76
+ }, [g, _]), f(h(443), {
77
+ ref: y,
78
+ role: h(436),
79
+ "aria-label": s,
80
+ className: r(h(437), h(460) + i, h(460) + a, o && h(433), p),
81
+ onKeyDown: (e) => {
82
+ let n = t, r = [...y.current?.[n(440)](n(446)) ?? []], i = r.indexOf(document[n(472)]), a;
83
+ e[n(442)] === n(456) ? a = r[(i + 1) % r[n(435)]] : e[n(442)] === n(467) ? a = r[(i - 1 + r[n(435)]) % r[n(435)]] : e[n(442)] === "Home" ? a = r[0] : e.key === n(432) && (a = r[r[n(435)] - 1]), a && (e.preventDefault(), a[n(479)](), v === n(477) && a[n(462)][n(438)] && _(a[n(462)][n(438)]));
84
+ },
85
+ children: [b && d("span", {
86
+ className: "ds-tablist__thumb",
87
+ "aria-hidden": !0,
88
+ style: {
89
+ left: b.left,
90
+ width: b[h(449)]
91
+ }
92
+ }), n]
93
+ });
94
+ }
95
+ function v({ value: t, children: n, icon: r, count: i, disabled: a }) {
96
+ let o = e, { value: s, select: c, baseId: l } = m(), u = s === t;
97
+ return f(o(458), {
98
+ type: o(458),
99
+ role: "tab",
100
+ id: l + o(473) + h(t),
101
+ "aria-controls": l + o(468) + h(t),
102
+ "aria-selected": u,
103
+ tabIndex: u ? 0 : -1,
104
+ disabled: a,
105
+ "data-value": t,
106
+ className: o(439),
107
+ onClick: () => c(t),
108
+ children: [
109
+ r,
110
+ n,
111
+ i != null && d(o(459), {
112
+ className: o(478),
113
+ children: i
114
+ })
115
+ ]
116
+ });
117
+ }
118
+ function y({ value: t, children: n, keepMounted: i, className: a }) {
119
+ let o = e, { value: s, baseId: c } = m(), l = s === t;
120
+ return !l && !i ? null : d("div", {
121
+ role: o(465),
122
+ id: c + "-panel-" + h(t),
123
+ "aria-labelledby": c + o(473) + h(t),
124
+ tabIndex: 0,
125
+ hidden: !l,
126
+ className: r("ds-tabpanel", a),
127
+ children: n
128
+ });
129
+ }
130
+ g[e(471)] = _, g[e(454)] = v, g[e(461)] = y;
131
+ export { v as Tab, _ as TabList, y as TabPanel, g as Tabs };