@iamfiro/design 0.3.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 (153) hide show
  1. package/lib/components/Accordion/Accordion2.js +86 -86
  2. package/lib/components/ActionBar/ActionBar2.js +44 -43
  3. package/lib/components/Alert/Alert2.js +79 -79
  4. package/lib/components/AppShell/AppShell2.js +58 -58
  5. package/lib/components/AreaChart/AreaChart.js +41 -41
  6. package/lib/components/BarChart/BarChart2.js +110 -110
  7. package/lib/components/BarList/BarList2.js +95 -95
  8. package/lib/components/Breadcrumb/Breadcrumb2.js +62 -59
  9. package/lib/components/Calendar/Calendar2.js +202 -202
  10. package/lib/components/Calendar/DatePicker2.js +122 -123
  11. package/lib/components/Calendar/date.js +57 -60
  12. package/lib/components/Card/Card2.js +62 -63
  13. package/lib/components/CardFrame/CardFrame2.js +43 -48
  14. package/lib/components/Chart/ChartParts.js +80 -80
  15. package/lib/components/Chart/chart2.js +57 -57
  16. package/lib/components/Chart/useChartInteraction.js +49 -49
  17. package/lib/components/ChatBubble/ChatBubble2.js +87 -87
  18. package/lib/components/ChatBubble/formatChatTime.js +34 -39
  19. package/lib/components/ChatComposer/ChatComposer2.js +97 -97
  20. package/lib/components/CodeBlock/CodeBlock2.js +60 -60
  21. package/lib/components/CodeBlock/highlight.js +75 -78
  22. package/lib/components/ColorPicker/ColorPicker2.js +383 -384
  23. package/lib/components/ColorPicker/color.js +74 -74
  24. package/lib/components/ColorPicker/presets.js +41 -46
  25. package/lib/components/Combobox/Combobox2.js +130 -131
  26. package/lib/components/CommandMenu/CommandMenu.js +137 -137
  27. package/lib/components/Comment/Comment2.js +64 -88
  28. package/lib/components/ContextMenu/ContextMenu2.js +87 -87
  29. package/lib/components/DataGrid/DataGrid2.js +911 -909
  30. package/lib/components/DataGrid/GridPopover.js +114 -114
  31. package/lib/components/DataGrid/anchor.js +25 -25
  32. package/lib/components/DataGrid/model.js +281 -282
  33. package/lib/components/DataGrid/panels.js +427 -429
  34. package/lib/components/DataGrid/typeMeta.js +50 -51
  35. package/lib/components/DataGrid/types.js +39 -40
  36. package/lib/components/DescriptionList/DescriptionList2.js +104 -104
  37. package/lib/components/Dialog/AlertDialog.js +85 -84
  38. package/lib/components/Dialog/Dialog2.js +72 -71
  39. package/lib/components/Dialog/modal.js +68 -68
  40. package/lib/components/Drawer/Drawer2.js +100 -100
  41. package/lib/components/DropdownMenu/DropdownMenu2.js +267 -268
  42. package/lib/components/DropdownMenu/menuCore.js +36 -36
  43. package/lib/components/Dropzone/Dropzone2.js +66 -65
  44. package/lib/components/EmptyState/EmptyState2.js +52 -54
  45. package/lib/components/FileChip/FileChip2.js +42 -66
  46. package/lib/components/FileUpload/FileUpload.js +171 -170
  47. package/lib/components/FilterChips/FilterChips2.js +54 -54
  48. package/lib/components/FunnelChart/FunnelChart2.js +144 -144
  49. package/lib/components/FunnelChart/funnel.js +56 -53
  50. package/lib/components/Highlight/Highlight2.js +60 -60
  51. package/lib/components/HoverCard/HoverCard.js +72 -72
  52. package/lib/components/InlineDiff/InlineDiff2.js +112 -112
  53. package/lib/components/InlineDiff/diff.js +81 -81
  54. package/lib/components/InlineDiff/useDiffReview.js +54 -53
  55. package/lib/components/Kanban/Kanban2.js +372 -372
  56. package/lib/components/Kanban/KanbanCard.js +80 -80
  57. package/lib/components/Kanban/move.js +55 -55
  58. package/lib/components/LineChart/LineChart2.js +167 -167
  59. package/lib/components/List/List2.js +64 -65
  60. package/lib/components/Listbox/Listbox2.js +105 -105
  61. package/lib/components/Marker/Marker2.js +54 -54
  62. package/lib/components/Menubar/Menubar2.js +112 -113
  63. package/lib/components/MultiSelect/MultiSelect2.js +106 -106
  64. package/lib/components/NavigationMenu/NavigationMenu2.js +227 -227
  65. package/lib/components/NoticeStack/NoticeStack2.js +115 -115
  66. package/lib/components/NumberStepper/NumberStepper2.js +69 -70
  67. package/lib/components/OtpInput/OtpInput2.js +87 -87
  68. package/lib/components/Pagination/Pagination2.js +97 -97
  69. package/lib/components/Pagination/paginationRange.js +23 -24
  70. package/lib/components/PhoneInput/PhoneInput.js +85 -85
  71. package/lib/components/PieChart/PieChart2.js +116 -116
  72. package/lib/components/PieChart/arc.js +80 -56
  73. package/lib/components/PieChart/useArcTween.js +57 -59
  74. package/lib/components/Popover/Popover2.js +59 -60
  75. package/lib/components/ProgressTracker/ProgressTracker2.js +116 -116
  76. package/lib/components/Rating/Rating2.js +93 -93
  77. package/lib/components/Resizable/Resizable2.js +136 -134
  78. package/lib/components/Resizable/layout.js +73 -73
  79. package/lib/components/ScaledPreview/ScaledPreview2.js +57 -58
  80. package/lib/components/ScatterChart/ScatterChart2.js +252 -253
  81. package/lib/components/ScatterChart/scatter.js +58 -56
  82. package/lib/components/ScrollArea/ScrollArea2.js +133 -134
  83. package/lib/components/Select/Select2.js +89 -89
  84. package/lib/components/Sidebar/Sidebar2.js +76 -76
  85. package/lib/components/Skeleton/Skeleton2.js +67 -67
  86. package/lib/components/Slider/Slider2.js +67 -67
  87. package/lib/components/SocialLoginButton/SocialLoginButton.js +46 -47
  88. package/lib/components/SparkChart/SparkChart2.js +130 -130
  89. package/lib/components/SparkChart/spark.js +57 -62
  90. package/lib/components/Sparkbar/Sparkbar2.js +44 -44
  91. package/lib/components/SplitView/SplitView2.js +53 -53
  92. package/lib/components/Stat/Stat2.js +83 -83
  93. package/lib/components/StepList/StepList2.js +73 -73
  94. package/lib/components/Table/Table2.js +45 -45
  95. package/lib/components/Tabs/Tabs2.js +87 -87
  96. package/lib/components/TagInput/TagInput2.js +231 -234
  97. package/lib/components/TimePicker/TimePicker2.js +195 -195
  98. package/lib/components/TimePicker/time.js +60 -62
  99. package/lib/components/Timeline/Timeline2.js +199 -199
  100. package/lib/components/Timeline/scale.js +56 -58
  101. package/lib/components/Toast/Toaster.js +153 -152
  102. package/lib/components/Toast/store.js +57 -58
  103. package/lib/components/ToggleGroup/ToggleGroup2.js +74 -74
  104. package/lib/components/Toolbar/Toolbar2.js +135 -133
  105. package/lib/components/Tracker/Tracker2.js +83 -83
  106. package/lib/components/TreeDiagram/TreeDiagram2.js +103 -103
  107. package/lib/components/TreeView/TreeView2.js +165 -163
  108. package/lib/hooks/timing.js +33 -31
  109. package/lib/hooks/useControllableState.js +42 -42
  110. package/lib/hooks/useCountdown.js +58 -63
  111. package/lib/hooks/useDigitInput.js +75 -77
  112. package/lib/hooks/useDismiss.js +50 -52
  113. package/lib/hooks/useElapsed.js +58 -56
  114. package/lib/hooks/useFloating.js +44 -44
  115. package/lib/hooks/useFocusTrap.js +64 -40
  116. package/lib/hooks/usePresence.js +48 -50
  117. package/lib/hooks/usePressToOpen.js +52 -51
  118. package/lib/hooks/useScrollLock.js +49 -48
  119. package/lib/hooks/useSelection.js +37 -40
  120. package/lib/index.js +70 -69
  121. package/lib/primitives/AspectRatio2.js +50 -54
  122. package/lib/primitives/BrandIcon.js +153 -153
  123. package/lib/primitives/ColorDot2.js +49 -48
  124. package/lib/primitives/CopyButton2.js +59 -58
  125. package/lib/primitives/CountBadge2.js +57 -55
  126. package/lib/primitives/Countdown2.js +45 -49
  127. package/lib/primitives/Delta2.js +71 -46
  128. package/lib/primitives/Elapsed.js +43 -43
  129. package/lib/primitives/FileIcon2.js +93 -93
  130. package/lib/primitives/Flag2.js +95 -95
  131. package/lib/primitives/IconStack2.js +55 -55
  132. package/lib/primitives/IconTile2.js +46 -45
  133. package/lib/primitives/Kbd2.js +55 -55
  134. package/lib/primitives/Layout2.js +80 -80
  135. package/lib/primitives/Link2.js +36 -34
  136. package/lib/primitives/MaskedText2.js +65 -64
  137. package/lib/primitives/Progress2.js +80 -80
  138. package/lib/primitives/RelativeTime.js +52 -54
  139. package/lib/primitives/SearchInput2.js +55 -54
  140. package/lib/primitives/SelectorButton2.js +64 -65
  141. package/lib/primitives/Spinner2.js +55 -59
  142. package/lib/primitives/StatusIcon2.js +65 -65
  143. package/lib/primitives/Swatch2.js +50 -50
  144. package/lib/primitives/Tooltip2.js +85 -85
  145. package/lib/primitives/Typography2.js +66 -66
  146. package/lib/primitives/formatCountdown.js +43 -40
  147. package/lib/primitives/formatElapsed.js +24 -27
  148. package/lib/primitives/formatRelativeTime.js +43 -43
  149. package/lib/primitives/hotkey.js +71 -71
  150. package/lib/primitives/index.js +156 -157
  151. package/lib/primitives/maskValue.js +38 -34
  152. package/lib/style.css +1 -1
  153. package/package.json +1 -1
@@ -1,75 +1,81 @@
1
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();
2
+ const e = l;
3
+ (function(e, t) {
4
+ let n = l, r = e();
19
5
  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());
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());
22
8
  } catch {
23
- i.push(i.shift());
9
+ r.push(r.shift());
24
10
  }
25
- })(u, 206663);
26
- import { useControllableState as n } from "../../hooks/useControllableState.js";
27
- import { cx as r } from "../../primitives/index.js";
11
+ })(a, 262873);
12
+ import { useControllableState as t } from "../../hooks/useControllableState.js";
13
+ import { cx as n } from "../../primitives/index.js";
28
14
  /* empty css */
29
- import { useRef as i, useState as a } from "react";
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
+ }
30
22
  import { jsx as o, jsxs as s } from "react/jsx-runtime";
31
23
  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) => {
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) => {
34
40
  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)],
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)],
37
43
  start: O
38
44
  }, T(!0));
39
45
  }, 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);
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);
44
50
  }, j = () => {
45
51
  let e = x;
46
- E[e(249)] = null, T(!1);
52
+ E[e(416)] = null, T(!1);
47
53
  }, 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)));
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)));
50
56
  };
51
- return s(x(271), {
52
- className: r(x(270), "ds-split--" + g, y),
57
+ return s(x(444), {
58
+ className: n("ds-split", x(419) + g, y),
53
59
  "data-dragging": w || void 0,
54
60
  style: {
55
61
  "--_list": O + "px",
56
62
  ...b
57
63
  },
58
64
  children: [
59
- o("section", {
60
- className: x(262),
65
+ o(x(424), {
66
+ className: x(432),
61
67
  "aria-label": _,
62
- children: e
68
+ children: a
63
69
  }),
64
- h && o("div", {
65
- role: x(266),
70
+ h && o(x(444), {
71
+ role: "separator",
66
72
  tabIndex: 0,
67
- "aria-orientation": x(255),
68
- "aria-label": _ + x(253),
73
+ "aria-orientation": x(426),
74
+ "aria-label": _ + x(447),
69
75
  "aria-valuenow": O,
70
76
  "aria-valuemin": p,
71
77
  "aria-valuemax": m,
72
- className: "ds-split__divider",
78
+ className: x(436),
73
79
  onPointerDown: k,
74
80
  onPointerMove: A,
75
81
  onPointerUp: j,
@@ -79,17 +85,11 @@ function l({ list: e, children: l, listWidth: u, defaultListWidth: d = 300, onLi
79
85
  onKeyDown: M
80
86
  }),
81
87
  o("section", {
82
- className: x(265),
88
+ className: x(417),
83
89
  "aria-label": v,
84
90
  children: l
85
91
  })
86
92
  ]
87
93
  });
88
94
  }
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
- }
95
+ export { u as SplitView };
@@ -1,164 +1,164 @@
1
1
  "use client";
2
- const e = p;
2
+ const e = s;
3
3
  (function(e, t) {
4
- let n = p, r = e();
4
+ let n = s, r = e();
5
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;
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
7
  r.push(r.shift());
8
8
  } catch {
9
9
  r.push(r.shift());
10
10
  }
11
- })(m, 389934);
11
+ })(p, 865590);
12
12
  import { Text as t } from "../../primitives/Typography2.js";
13
13
  import { Box as n, Inline as r, Separator as i, Stack as a } from "../../primitives/Layout2.js";
14
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
+ }
15
29
  /* 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)
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)
26
40
  };
27
- function f(t) {
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) {
28
48
  let r = e, { tile: i, className: a, style: o } = t;
29
- return i ? c(n, {
49
+ return i ? l(n, {
30
50
  padding: 3,
31
51
  background: "subtle",
32
- className: ["ds-stat--tile", a][r(142)](Boolean)[r(127)](" "),
52
+ className: [r(215), a][r(225)](Boolean).join(" "),
33
53
  style: o,
34
- children: c(h, {
54
+ children: l(h, {
35
55
  ...t,
36
56
  className: void 0,
37
57
  style: void 0
38
58
  })
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();
59
+ }) : l(h, { ...t });
60
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,
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
64
  tone: g,
65
65
  children: h
66
- }), T = l(r, {
66
+ }), T = u(r, {
67
67
  gap: 1,
68
68
  align: "baseline",
69
69
  wrap: !1,
70
70
  children: [
71
- c(t, {
72
- variant: _ === S(131) ? C : u[v],
73
- weight: _ === S(131) ? S(126) : void 0,
71
+ l(t, {
72
+ variant: _ === S(240) ? C : d[v],
73
+ weight: _ === S(240) ? S(241) : void 0,
74
74
  tone: y,
75
75
  numeric: !0,
76
76
  children: i
77
77
  }),
78
- f != null && c(t, {
78
+ c != null && l(t, {
79
79
  variant: C,
80
- tone: S(158),
81
- children: f
80
+ tone: S(228),
81
+ children: c
82
82
  }),
83
- s != null && l(t, {
83
+ s != null && u(t, {
84
84
  variant: C,
85
- tone: S(158),
85
+ tone: S(228),
86
86
  numeric: !0,
87
87
  children: ["/ ", s]
88
88
  })
89
89
  ]
90
90
  });
91
- return _ === S(131) ? l(r, {
91
+ return _ === S(240) ? u(r, {
92
92
  gap: 2,
93
- align: S(w ? 157 : 135),
93
+ align: w ? S(227) : "baseline",
94
94
  wrap: !1,
95
- className: [S(136), b][S(142)](Boolean)[S(127)](" "),
95
+ className: [S(244), b][S(225)](Boolean)[S(230)](" "),
96
96
  style: x,
97
97
  children: [
98
98
  w,
99
- c(t, {
99
+ l(t, {
100
100
  variant: C,
101
- tone: S(158),
101
+ tone: S(228),
102
102
  children: n
103
103
  }),
104
104
  T,
105
105
  p
106
106
  ]
107
- }) : l(a, {
107
+ }) : u(a, {
108
108
  gap: w ? 2 : 1,
109
- className: [S(136), b].filter(Boolean)[S(127)](" "),
109
+ className: ["ds-stat", b][S(225)](Boolean)[S(230)](" "),
110
110
  style: x,
111
111
  children: [
112
- w ? l(r, {
112
+ w ? u(r, {
113
113
  gap: 2,
114
114
  wrap: !1,
115
- children: [w, c(t, {
116
- variant: "overline",
117
- tone: S(158),
115
+ children: [w, l(t, {
116
+ variant: S(250),
117
+ tone: S(228),
118
118
  truncate: !0,
119
119
  children: n
120
120
  })]
121
- }) : c(t, {
122
- variant: S(139),
123
- tone: "tertiary",
121
+ }) : l(t, {
122
+ variant: "overline",
123
+ tone: S(228),
124
124
  truncate: !0,
125
125
  children: n
126
126
  }),
127
- l(r, {
127
+ u(r, {
128
128
  gap: 2,
129
- align: "center",
129
+ align: S(227),
130
130
  wrap: !1,
131
131
  children: [T, p]
132
132
  }),
133
- m != null && c(t, {
134
- variant: S(144),
135
- tone: "tertiary",
133
+ m != null && l(t, {
134
+ variant: S(252),
135
+ tone: S(228),
136
136
  children: m
137
137
  })
138
138
  ]
139
139
  });
140
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, {
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
144
  gap: n,
145
- align: m(149),
146
- role: "group",
145
+ align: m(235),
146
+ role: m(249),
147
147
  "aria-label": d,
148
- className: [m(160), f][m(142)](Boolean)[m(127)](" "),
148
+ className: [m(251), f].filter(Boolean)[m(230)](" "),
149
149
  style: p,
150
- children: s[m(134)](t).map((e, t) => l(m(137), {
151
- className: m(151),
150
+ children: c[m(229)](t)[m(223)]((e, t) => u(m(238), {
151
+ className: m(253),
152
152
  style: {
153
- flex: o ? m(129) : "none",
153
+ flex: m(o ? 243 : 239),
154
154
  minWidth: a
155
155
  },
156
- children: [u && c(i, {
157
- orientation: "vertical",
158
- className: "ds-stat-group__sep",
156
+ children: [s && l(i, {
157
+ orientation: m(222),
158
+ className: m(224),
159
159
  style: { insetInlineStart: h }
160
160
  }), e]
161
161
  }, t))
162
162
  });
163
163
  }
164
- export { f as Stat, g as StatGroup };
164
+ export { m as Stat, g as StatGroup };
@@ -1,39 +1,39 @@
1
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();
2
+ const e = d;
3
+ (function(e, t) {
4
+ let n = d, r = e();
19
5
  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());
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());
22
8
  } catch {
23
- i.push(i.shift());
9
+ r.push(r.shift());
24
10
  }
25
- })(d, 128665);
26
- import { Text as n } from "../../primitives/Typography2.js";
27
- import { Inline as r, Stack as i } from "../../primitives/Layout2.js";
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
+ }
28
20
  import { StatusIcon as a } from "../../primitives/StatusIcon2.js";
29
21
  import { cx as o } from "../../primitives/index.js";
30
22
  /* empty css */
31
23
  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();
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
37
  }
38
38
  import { jsx as f, jsxs as p } from "react/jsx-runtime";
39
39
  var m = {
@@ -41,87 +41,87 @@ var m = {
41
41
  md: 18,
42
42
  lg: 22
43
43
  }, h = {
44
- sm: "body-sm",
45
- md: e(336),
46
- lg: e(304)
44
+ sm: e(286),
45
+ md: "body-md",
46
+ lg: e(296)
47
47
  }, g = {
48
- sm: "body-xs",
49
- md: "body-sm",
50
- lg: "body-md"
48
+ sm: e(270),
49
+ md: e(286),
50
+ lg: e(299)
51
51
  }, _ = c({
52
- marker: e(318),
52
+ marker: e(278),
53
53
  size: "md"
54
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)], {
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
58
  value: {
59
59
  marker: r,
60
60
  size: a
61
61
  },
62
62
  children: f("ol", {
63
- className: o("ds-step-list", g(308) + a, g(308) + c, g(337) + i, p),
63
+ className: o(g(298), "ds-step-list--" + a, g(268) + c, "ds-step-list--connector-" + i, p),
64
64
  style: {
65
65
  "--_m": m[a] + "px",
66
66
  ...h
67
67
  },
68
68
  "aria-label": d,
69
- children: y.map((e, t) => f(v[g(303)], {
69
+ children: y[g(282)]((e, t) => f(v[g(289)], {
70
70
  value: u + t,
71
71
  children: e
72
- }, e[g(315)] ?? t))
72
+ }, e.key ?? t))
73
73
  })
74
74
  });
75
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,
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
80
  size: k,
81
81
  progress: x,
82
- number: D === w(318) ? void 0 : O,
83
- persistNumber: D === w(323)
82
+ number: D === w(278) ? void 0 : O,
83
+ persistNumber: D === w(295)
84
84
  }) : D, p("li", {
85
- className: o(w(306), S),
85
+ className: o("ds-step-list__item", S),
86
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),
87
+ "data-status": i,
88
+ "aria-current": i === "active" ? w(294) : void 0,
89
+ children: [f("span", {
90
+ className: "ds-step-list__marker",
91
91
  children: A
92
- }), p(i, {
92
+ }), p(r, {
93
93
  gap: 1,
94
- className: w(328),
94
+ className: w(283),
95
95
  children: [
96
- p(r, {
96
+ p(n, {
97
97
  gap: 3,
98
- justify: w(317),
99
- align: w(326),
98
+ justify: w(280),
99
+ align: "baseline",
100
100
  wrap: !1,
101
- children: [f(n, {
102
- as: "span",
103
- variant: h[T[w(307)]],
104
- weight: w(302),
105
- className: w(316),
101
+ children: [f(t, {
102
+ as: w(284),
103
+ variant: h[T[w(291)]],
104
+ weight: w(269),
105
+ className: w(281),
106
106
  children: s
107
- }), l != null && f(n, {
108
- as: w(312),
109
- variant: w(338),
110
- tone: "tertiary",
107
+ }), l != null && f(t, {
108
+ as: w(284),
109
+ variant: w(273),
110
+ tone: w(285),
111
111
  numeric: !0,
112
- className: w(322),
112
+ className: "ds-step-list__meta",
113
113
  children: l
114
114
  })]
115
115
  }),
116
- c != null && f(n, {
117
- as: w(313),
118
- variant: g[T[w(307)]],
119
- tone: w(324),
116
+ c != null && f(t, {
117
+ as: w(297),
118
+ variant: g[T[w(291)]],
119
+ tone: "secondary",
120
120
  children: c
121
121
  }),
122
- d != null && f(i, {
122
+ d != null && f(r, {
123
123
  gap: 1,
124
- className: w(330),
124
+ className: w(279),
125
125
  children: d
126
126
  })
127
127
  ]