@iamfiro/design 0.3.2 → 0.3.4

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 (158) hide show
  1. package/agents/INDEX.md +1 -1
  2. package/agents/brand-icon/AGENTS.md +1 -1
  3. package/agents/social-login-button/AGENTS.md +4 -3
  4. package/lib/components/Accordion/Accordion2.js +87 -87
  5. package/lib/components/ActionBar/ActionBar2.js +42 -44
  6. package/lib/components/Alert/Alert2.js +61 -61
  7. package/lib/components/AppShell/AppShell2.js +70 -71
  8. package/lib/components/AreaChart/AreaChart.js +38 -40
  9. package/lib/components/BarChart/BarChart2.js +126 -126
  10. package/lib/components/BarList/BarList2.js +95 -95
  11. package/lib/components/Breadcrumb/Breadcrumb2.js +68 -66
  12. package/lib/components/Calendar/Calendar2.js +164 -164
  13. package/lib/components/Calendar/DatePicker2.js +103 -102
  14. package/lib/components/Calendar/date.js +64 -66
  15. package/lib/components/Card/Card2.js +67 -67
  16. package/lib/components/CardFrame/CardFrame2.js +43 -51
  17. package/lib/components/Chart/ChartParts.js +94 -94
  18. package/lib/components/Chart/chart2.js +52 -52
  19. package/lib/components/Chart/useChartInteraction.js +54 -54
  20. package/lib/components/ChatBubble/ChatBubble2.js +92 -92
  21. package/lib/components/ChatBubble/formatChatTime.js +35 -41
  22. package/lib/components/ChatComposer/ChatComposer2.js +63 -63
  23. package/lib/components/CodeBlock/CodeBlock2.js +61 -61
  24. package/lib/components/CodeBlock/highlight.js +84 -84
  25. package/lib/components/ColorPicker/ColorPicker2.js +387 -386
  26. package/lib/components/ColorPicker/color.js +71 -71
  27. package/lib/components/ColorPicker/presets.js +41 -46
  28. package/lib/components/Combobox/Combobox2.js +117 -118
  29. package/lib/components/CommandMenu/CommandMenu.js +127 -127
  30. package/lib/components/Comment/Comment2.js +86 -60
  31. package/lib/components/ContextMenu/ContextMenu2.js +77 -75
  32. package/lib/components/DataGrid/DataGrid2.js +1192 -1190
  33. package/lib/components/DataGrid/GridPopover.js +94 -94
  34. package/lib/components/DataGrid/anchor.js +34 -31
  35. package/lib/components/DataGrid/model.js +284 -283
  36. package/lib/components/DataGrid/panels.js +398 -399
  37. package/lib/components/DataGrid/typeMeta.js +51 -50
  38. package/lib/components/DataGrid/types.js +38 -39
  39. package/lib/components/DescriptionList/DescriptionList2.js +103 -103
  40. package/lib/components/Dialog/AlertDialog.js +79 -78
  41. package/lib/components/Dialog/Dialog2.js +59 -59
  42. package/lib/components/Dialog/modal.js +44 -46
  43. package/lib/components/Drawer/Drawer2.js +130 -129
  44. package/lib/components/DropdownMenu/DropdownMenu2.js +235 -233
  45. package/lib/components/DropdownMenu/menuCore.js +69 -42
  46. package/lib/components/Dropzone/Dropzone2.js +79 -78
  47. package/lib/components/EmptyState/EmptyState2.js +34 -35
  48. package/lib/components/FileChip/FileChip2.js +73 -73
  49. package/lib/components/FileUpload/FileUpload.js +159 -159
  50. package/lib/components/FilterChips/FilterChips2.js +61 -61
  51. package/lib/components/FunnelChart/FunnelChart2.js +161 -161
  52. package/lib/components/FunnelChart/funnel.js +48 -44
  53. package/lib/components/Highlight/Highlight2.js +43 -43
  54. package/lib/components/HoverCard/HoverCard.js +59 -84
  55. package/lib/components/InlineDiff/InlineDiff2.js +112 -112
  56. package/lib/components/InlineDiff/diff.js +90 -90
  57. package/lib/components/InlineDiff/useDiffReview.js +64 -63
  58. package/lib/components/Kanban/Kanban2.js +386 -387
  59. package/lib/components/Kanban/KanbanCard.js +70 -95
  60. package/lib/components/Kanban/move.js +50 -46
  61. package/lib/components/LineChart/LineChart2.js +211 -211
  62. package/lib/components/List/List2.js +53 -54
  63. package/lib/components/Listbox/Listbox2.js +115 -115
  64. package/lib/components/Marker/Marker2.js +56 -61
  65. package/lib/components/Menubar/Menubar2.js +144 -141
  66. package/lib/components/MultiSelect/MultiSelect2.js +108 -108
  67. package/lib/components/NavigationMenu/NavigationMenu2.js +298 -299
  68. package/lib/components/NoticeStack/NoticeStack2.js +84 -84
  69. package/lib/components/NumberStepper/NumberStepper2.js +65 -66
  70. package/lib/components/OtpInput/OtpInput2.js +70 -69
  71. package/lib/components/Pagination/Pagination2.js +106 -106
  72. package/lib/components/Pagination/paginationRange.js +37 -39
  73. package/lib/components/PhoneInput/PhoneInput.js +87 -88
  74. package/lib/components/PieChart/PieChart2.js +160 -160
  75. package/lib/components/PieChart/arc.js +65 -62
  76. package/lib/components/PieChart/useArcTween.js +53 -60
  77. package/lib/components/Popover/Popover2.js +62 -62
  78. package/lib/components/ProgressTracker/ProgressTracker2.js +121 -121
  79. package/lib/components/Rating/Rating2.js +82 -81
  80. package/lib/components/Resizable/Resizable2.js +126 -127
  81. package/lib/components/Resizable/layout.js +73 -73
  82. package/lib/components/ScaledPreview/ScaledPreview2.js +68 -67
  83. package/lib/components/ScatterChart/ScatterChart2.js +214 -213
  84. package/lib/components/ScatterChart/scatter.js +47 -49
  85. package/lib/components/ScrollArea/ScrollArea2.js +117 -118
  86. package/lib/components/Select/Select2.js +78 -79
  87. package/lib/components/Sidebar/Sidebar2.js +69 -69
  88. package/lib/components/Skeleton/Skeleton2.js +57 -57
  89. package/lib/components/Slider/Slider2.js +73 -74
  90. package/lib/components/SocialLoginButton/SocialLoginButton.js +76 -68
  91. package/lib/components/SparkChart/SparkChart2.js +145 -145
  92. package/lib/components/SparkChart/spark.js +64 -42
  93. package/lib/components/Sparkbar/Sparkbar2.js +60 -60
  94. package/lib/components/SplitView/SplitView2.js +51 -52
  95. package/lib/components/Stat/Stat2.js +90 -90
  96. package/lib/components/StepList/StepList2.js +70 -70
  97. package/lib/components/Table/Table2.js +70 -70
  98. package/lib/components/Tabs/Tabs2.js +81 -81
  99. package/lib/components/TagInput/TagInput2.js +220 -217
  100. package/lib/components/TimePicker/TimePicker2.js +187 -186
  101. package/lib/components/TimePicker/time.js +63 -62
  102. package/lib/components/Timeline/Timeline2.js +199 -199
  103. package/lib/components/Timeline/scale.js +67 -64
  104. package/lib/components/Toast/Toaster.js +100 -98
  105. package/lib/components/Toast/store.js +90 -94
  106. package/lib/components/ToggleGroup/ToggleGroup2.js +76 -76
  107. package/lib/components/Toolbar/Toolbar2.js +163 -161
  108. package/lib/components/Tracker/Tracker2.js +82 -82
  109. package/lib/components/TreeDiagram/TreeDiagram2.js +123 -124
  110. package/lib/components/TreeView/TreeView2.js +154 -152
  111. package/lib/hooks/timing.js +31 -30
  112. package/lib/hooks/useControllableState.js +37 -38
  113. package/lib/hooks/useCountdown.js +53 -56
  114. package/lib/hooks/useDigitInput.js +66 -41
  115. package/lib/hooks/useDismiss.js +55 -58
  116. package/lib/hooks/useElapsed.js +57 -55
  117. package/lib/hooks/useFloating.js +44 -44
  118. package/lib/hooks/useFocusTrap.js +70 -46
  119. package/lib/hooks/usePresence.js +23 -22
  120. package/lib/hooks/usePressToOpen.js +51 -51
  121. package/lib/hooks/useScrollLock.js +57 -58
  122. package/lib/hooks/useSelection.js +49 -52
  123. package/lib/index.js +65 -65
  124. package/lib/primitives/AspectRatio2.js +57 -57
  125. package/lib/primitives/BrandIcon.js +189 -158
  126. package/lib/primitives/ColorDot2.js +50 -45
  127. package/lib/primitives/CopyButton2.js +52 -50
  128. package/lib/primitives/CountBadge2.js +53 -55
  129. package/lib/primitives/Countdown2.js +28 -25
  130. package/lib/primitives/Delta2.js +41 -41
  131. package/lib/primitives/Elapsed.js +47 -47
  132. package/lib/primitives/FileIcon2.js +86 -86
  133. package/lib/primitives/Flag2.js +122 -122
  134. package/lib/primitives/IconStack2.js +55 -31
  135. package/lib/primitives/IconTile2.js +43 -43
  136. package/lib/primitives/Kbd2.js +55 -55
  137. package/lib/primitives/Layout2.js +78 -78
  138. package/lib/primitives/Link2.js +39 -36
  139. package/lib/primitives/MaskedText2.js +74 -52
  140. package/lib/primitives/Progress2.js +67 -66
  141. package/lib/primitives/RelativeTime.js +54 -61
  142. package/lib/primitives/SearchInput2.js +45 -45
  143. package/lib/primitives/SelectorButton2.js +72 -76
  144. package/lib/primitives/Spinner2.js +56 -56
  145. package/lib/primitives/StatusIcon2.js +63 -63
  146. package/lib/primitives/Swatch2.js +55 -61
  147. package/lib/primitives/Tooltip2.js +78 -78
  148. package/lib/primitives/Typography2.js +53 -53
  149. package/lib/primitives/formatCountdown.js +30 -29
  150. package/lib/primitives/formatElapsed.js +46 -49
  151. package/lib/primitives/formatRelativeTime.js +76 -50
  152. package/lib/primitives/hotkey.js +80 -80
  153. package/lib/primitives/index.js +169 -168
  154. package/lib/primitives/maskValue.js +55 -50
  155. package/lib/style.css +1 -1
  156. package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +1 -1
  157. package/lib/types/primitives/BrandIcon.d.ts +1 -1
  158. package/package.json +1 -1
@@ -1,369 +1,369 @@
1
1
  "use client";
2
- const e = T;
2
+ const e = s;
3
3
  (function(e, t) {
4
- let n = T, r = e();
4
+ let n = s, r = e();
5
5
  for (;;) try {
6
- if (parseInt(n(403)) / 1 * (parseInt(n(416)) / 2) + -parseInt(n(414)) / 3 * (-parseInt(n(365)) / 4) + parseInt(n(346)) / 5 * (-parseInt(n(380)) / 6) + -parseInt(n(318)) / 7 + -parseInt(n(341)) / 8 * (-parseInt(n(404)) / 9) + parseInt(n(353)) / 10 + -parseInt(n(332)) / 11 * (parseInt(n(323)) / 12) == t) break;
6
+ if (-parseInt(n(532)) / 1 + -parseInt(n(520)) / 2 * (-parseInt(n(489)) / 3) + -parseInt(n(523)) / 4 + -parseInt(n(472)) / 5 * (-parseInt(n(519)) / 6) + parseInt(n(471)) / 7 + parseInt(n(565)) / 8 + -parseInt(n(574)) / 9 * (parseInt(n(525)) / 10) == t) break;
7
7
  r.push(r.shift());
8
8
  } catch {
9
9
  r.push(r.shift());
10
10
  }
11
- })(S, 103825);
11
+ })(b, 641370);
12
12
  import { Tooltip as t } from "../../primitives/Tooltip2.js";
13
13
  import { Text as n } from "../../primitives/Typography2.js";
14
14
  import { Inline as r, Stack as i } from "../../primitives/Layout2.js";
15
15
  import { Badge as a, cx as o } from "../../primitives/index.js";
16
- import { TimelineScaleContext as s, buildTicks as c, niceStep as l, useTimelineScale as u } from "./scale.js";
16
+ function s(e, t) {
17
+ e -= 468;
18
+ let n = b(), r = n[e];
19
+ s.cBUMey === void 0 && (s.cGtRvZ = function(e) {
20
+ let t = "", n = "";
21
+ 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);
22
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
23
+ return decodeURIComponent(n);
24
+ }, s.jEPbGv = {}, s.cBUMey = !0);
25
+ let i = n[0];
26
+ s.oZOtoQ !== i && (s.jEPbGv = {}, s.oZOtoQ = i);
27
+ let a = s.jEPbGv[e];
28
+ return a === void 0 ? (r = s.cGtRvZ(r), s.jEPbGv[e] = r) : r = a, r;
29
+ }
30
+ import { TimelineScaleContext as c, buildTicks as l, niceStep as u, useTimelineScale as d } from "./scale.js";
17
31
  /* empty css */
18
- import { Children as d, isValidElement as f, useMemo as p } from "react";
19
- import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
20
- var _ = {
32
+ import { Children as f, isValidElement as p, useMemo as m } from "react";
33
+ import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
34
+ var v = {
21
35
  compact: 28,
22
36
  default: 36,
23
37
  comfortable: 56
24
- }, v = (t = e(328)) => e(412) + t + ")";
25
- function y(t) {
38
+ }, y = (t = e(547)) => e(524) + t + ")";
39
+ function b() {
40
+ let e = /* @__PURE__ */ "zhmTDgLTzwXPBMuTyMfYls0.zhmTDgLTzwXPBMuTyMfYx19JB250zw50.BMv1DhjHBa.C2v0.zhmTDgLTzwXPBMvFx2XLywrPBMC.zhmTDgLTzwXPBMuTyMfY.zhmTDgLTzwXPBMuTyMfYx19OAxq.zh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KGkIa.BwLU.DMfYkc0TC3vJy2vZCYK.DgfYz2v0.DMfYkc0TzgfUz2vYkq.BgvUz3rO.mta2odCYvuHhyKHw.mNvrD1nYBG.rw50zxi.jsaTidjWEcKP.mZy1nJu3mNPvvu5dAa.DMfYkc0TzhmTDgLTzwXPBMuT.mteWyxfUBNfm.BM9UlxnJywXPBMCTC3rYB2TL.zhmTDgLTzwXPBMvFx3jVD3m.zhmTDgLTzwXPBMvFx2XHyMvSlxrLEhq.zM9YrwfJAa.zhmTDgLTzwXPBMvFx2XHEwvYigrZlxrPBwvSAw5Lx19SyxLLCI0TyMfJAW.zhmTDgLTzwXPBMuTyMfYls1JB250zw50.nZeYmty5qwDbCg9l.zhmTDgLTzwXPBMuTyMfYx19ZzwDTzw50.BgfIzwWTBwq.zNjVBq.y2vUDgvY.uhjVDMLKzxi.zMXHDe1HCa.y2fWDgLVBG.zhmTDgLTzwXPBMvFx3nY.D2fYBMLUzW.zhmTDgLTzwXPBMvFx25VDW.zhmTDgLTzwXPBMvFx2XHyMvS.zhmTDgLTzwXPBMvFx2XPBMS".split(".");
41
+ return b = function() {
42
+ return e;
43
+ }, b();
44
+ }
45
+ function x(t) {
26
46
  let n = e, r = /* @__PURE__ */ new Map();
27
- return t[n(335)]((e, t) => {
47
+ return t[n(529)]((e, t) => {
28
48
  let i = n;
29
- f(e) && d[i(335)](e.props[i(356)], (e) => {
49
+ p(e) && f[i(529)](e[i(480)][i(492)], (e) => {
30
50
  let n = i;
31
- if (!f(e)) return;
51
+ if (!p(e)) return;
32
52
  let { id: a, start: o, end: s } = e.props;
33
- typeof a === n(314) && typeof o === n(393) && typeof s == "number" && r.set(a, {
34
- start: Math[n(410)](o, s),
35
- end: Math[n(406)](o, s),
53
+ typeof a === n(473) && typeof o == "number" && typeof s === n(490) && r[n(548)](a, {
54
+ start: Math.min(o, s),
55
+ end: Math[n(498)](o, s),
36
56
  row: t
37
57
  });
38
58
  });
39
59
  }), r;
40
60
  }
41
- function b({ min: t = 0, max: r, step: i, ticks: u, formatTick: f = String, grid: m = !0, now: b, nowLabel: x, nowLine: S = !0, markers: C = [], links: w, labelWidth: T = 160, labelHeader: E, aside: D, density: O = e(417), rowHeight: k, "aria-label": A, className: j, style: M, children: N }) {
42
- let P = e, F = r - t, I = p(() => ({
61
+ function S({ min: t = 0, max: r, step: i, ticks: s, formatTick: d = String, grid: p = !0, now: h, nowLabel: b, nowLine: S = !0, markers: C = [], links: w, labelWidth: T = 160, labelHeader: E, aside: D, density: O = "default", rowHeight: k, "aria-label": A, className: j, style: M, children: N }) {
62
+ let P = e, F = r - t, I = m(() => ({
43
63
  min: t,
44
64
  max: r,
45
- pct: (e) => F > 0 ? Math[P(406)](0, Math.min(100, (e - t) / F * 100)) : 0,
46
- formatValue: f
65
+ pct: (e) => F > 0 ? Math[P(498)](0, Math[P(514)](100, (e - t) / F * 100)) : 0,
66
+ formatValue: d
47
67
  }), [
48
68
  t,
49
69
  r,
50
70
  F,
51
- f
52
- ]), L = p(() => u ?? c(t, r, i ?? l(F, 6)), [
53
- u,
71
+ d
72
+ ]), L = m(() => s ?? l(t, r, i ?? u(F, 6)), [
73
+ s,
54
74
  t,
55
75
  r,
56
76
  i,
57
77
  F
58
- ]), R = C.some((e) => e[P(401)] != null), z = k ?? _[O], B = b !== void 0 && x != null, V = b === void 0 ? 0 : I.pct(b), H = w?.[P(396)] ? d.toArray(N) : [], U = H[P(396)] * z, W = H[P(396)] ? y(H) : null, G = (e) => Number(e[P(345)](3)), K = (w ?? []).flatMap((e) => {
59
- let t = P, n = W?.[t(387)](e[t(371)]), r = W?.[t(387)](e.to);
78
+ ]), R = C.some((e) => e.label != null), z = k ?? v[O], B = h !== void 0 && b != null, V = h === void 0 ? 0 : I[P(499)](h), H = w?.[P(518)] ? f.toArray(N) : [], U = H[P(518)] * z, W = H[P(518)] ? x(H) : null, G = (e) => Number(e[P(504)](3)), K = (w ?? [])[P(538)]((e) => {
79
+ let t = P, n = W?.get(e.from), r = W?.get(e.to);
60
80
  if (!n || !r) return [];
61
- let i = I.pct(n[t(398)]), a = I[t(397)](r.start), o = n[t(324)] * z + z / 2, s = r[t(324)] * z + z / 2, c = Math.max(1.5, (a - i) / 2), l = "M " + G(i) + " " + G(o) + " C " + G(i + c) + " " + G(o) + ", " + G(a - c) + " " + G(s) + ", " + G(a) + " " + G(s), u = e[t(350)] ?? t(355);
81
+ let i = I[t(499)](n.end), a = I.pct(r[t(511)]), o = n[t(474)] * z + z / 2, s = r.row * z + z / 2, c = Math[t(498)](1.5, (a - i) / 2), l = "M " + G(i) + " " + G(o) + t(485) + G(i + c) + " " + G(o) + ", " + G(a - c) + " " + G(s) + ", " + G(a) + " " + G(s), u = e[t(503)] ?? "accent";
62
82
  return [{
63
- key: e[t(371)] + "→" + e.to,
83
+ key: e[t(535)] + "→" + e.to,
64
84
  tone: u,
65
85
  d: l
66
86
  }];
67
87
  });
68
- return h(s[P(316)], {
88
+ return g(c[P(537)], {
69
89
  value: I,
70
- children: g("div", {
71
- role: P(336),
90
+ children: _(P(491), {
91
+ role: P(469),
72
92
  "aria-label": A,
73
- className: o("ds-timeline", P(372) + O, T === 0 && P(378), R && P(394), j),
93
+ className: o("ds-timeline", "ds-timeline--" + O, T === 0 && "ds-timeline--bare", R && P(502), j),
74
94
  style: {
75
95
  "--_label": T + "px",
76
96
  "--_row": z + "px",
77
97
  ...M
78
98
  },
79
99
  children: [
80
- g("div", {
81
- className: "ds-timeline__layer ds-timeline__layer--back",
100
+ _(P(491), {
101
+ className: P(530),
82
102
  "aria-hidden": !0,
83
103
  children: [
84
- m && L[P(400)]((e) => h(P(409), {
85
- className: P(383),
86
- style: { left: I[P(397)](e) + "%" }
104
+ p && L[P(478)]((e) => g(P(557), {
105
+ className: "ds-timeline__gridline",
106
+ style: { left: I[P(499)](e) + "%" }
87
107
  }, e)),
88
- C[P(400)]((e, t) => e[P(333)] !== void 0 && h(P(409), {
89
- className: "ds-timeline__band",
108
+ C[P(478)]((e, t) => e.band !== void 0 && g("span", {
109
+ className: P(481),
90
110
  style: {
91
- left: I[P(397)](Math.min(e[P(381)], e[P(333)])) + "%",
92
- width: I[P(397)](Math[P(406)](e[P(381)], e.band)) - I[P(397)](Math[P(410)](e.value, e.band)) + "%",
93
- "--_c": v(e.tone)
111
+ left: I[P(499)](Math[P(514)](e[P(573)], e[P(505)])) + "%",
112
+ width: I.pct(Math[P(498)](e.value, e.band)) - I[P(499)](Math.min(e.value, e[P(505)])) + "%",
113
+ "--_c": y(e[P(503)])
94
114
  }
95
115
  }, t)),
96
- K.length > 0 && h(P(407), {
97
- className: P(411),
98
- viewBox: P(320) + U,
99
- preserveAspectRatio: P(334),
116
+ K[P(518)] > 0 && g(P(496), {
117
+ className: P(476),
118
+ viewBox: P(569) + U,
119
+ preserveAspectRatio: "none",
100
120
  style: { height: U },
101
- children: K.map((e) => h(P(399), {
102
- className: P(357),
121
+ children: K.map((e) => g(P(506), {
122
+ className: P(544),
103
123
  d: e.d,
104
- vectorEffect: "non-scaling-stroke",
124
+ vectorEffect: P(526),
105
125
  style: {
106
- d: P(329) + e.d + "')",
107
- "--_c": v(e[P(350)])
126
+ d: P(570) + e.d + "')",
127
+ "--_c": y(e[P(503)])
108
128
  }
109
- }, e[P(331)]))
129
+ }, e[P(555)]))
110
130
  })
111
131
  ]
112
132
  }),
113
- g(P(359), {
114
- className: P(388),
133
+ _("div", {
134
+ className: P(487),
115
135
  "aria-hidden": !0,
116
- children: [h(P(359), {
117
- className: P(395),
118
- children: E != null && h(n, {
119
- variant: P(360),
120
- tone: P(319),
136
+ children: [g(P(491), {
137
+ className: "ds-timeline__corner",
138
+ children: E != null && g(n, {
139
+ variant: P(539),
140
+ tone: P(560),
121
141
  truncate: !0,
122
142
  children: E
123
143
  })
124
- }), g(P(359), {
144
+ }), _(P(491), {
125
145
  className: "ds-timeline__ruler",
126
- children: [L[P(400)]((e) => B && e === b ? null : h(P(409), {
127
- className: P(358),
128
- "data-edge": e <= t ? P(421) : e >= r ? "end" : void 0,
129
- style: { left: I[P(397)](e) + "%" },
130
- children: f(e)
131
- }, e)), B && h(P(409), {
132
- className: "ds-timeline__now-chip",
133
- "data-edge": V >= 96 ? "end" : V <= 4 ? P(421) : void 0,
146
+ children: [L.map((e) => B && e === h ? null : g(P(557), {
147
+ className: P(475),
148
+ "data-edge": e <= t ? P(511) : e >= r ? P(508) : void 0,
149
+ style: { left: I[P(499)](e) + "%" },
150
+ children: d(e)
151
+ }, e)), B && g(P(557), {
152
+ className: P(500),
153
+ "data-edge": V >= 96 ? "end" : V <= 4 ? P(511) : void 0,
134
154
  style: { left: V + "%" },
135
- children: h(a, {
136
- tone: "accent",
155
+ children: g(a, {
156
+ tone: P(488),
137
157
  size: "sm",
138
- children: x
158
+ children: b
139
159
  })
140
160
  })]
141
161
  })]
142
162
  }),
143
- D != null && h(P(359), {
144
- className: P(343),
163
+ D != null && g(P(491), {
164
+ className: P(558),
145
165
  children: D
146
166
  }),
147
- h("div", {
148
- className: "ds-timeline__rows",
149
- role: "list",
167
+ g("div", {
168
+ className: P(527),
169
+ role: P(507),
150
170
  children: N
151
171
  }),
152
- g(P(359), {
153
- className: P(375),
172
+ _(P(491), {
173
+ className: P(483),
154
174
  "aria-hidden": !0,
155
- children: [C[P(400)]((e, t) => h("span", {
156
- className: P(321),
157
- "data-line": e[P(426)] ?? P(374),
175
+ children: [C[P(478)]((e, t) => g("span", {
176
+ className: "ds-timeline__marker",
177
+ "data-line": e[P(470)] ?? P(553),
158
178
  style: {
159
- left: I[P(397)](e[P(381)]) + "%",
160
- "--_c": v(e[P(350)])
179
+ left: I[P(499)](e.value) + "%",
180
+ "--_c": y(e[P(503)])
161
181
  },
162
- children: e[P(401)] != null && h(P(409), {
163
- className: P(376),
164
- "data-side": e[P(385)] ?? P(364),
165
- children: h(a, {
166
- tone: e.tone ?? P(328),
182
+ children: e.label != null && g(P(557), {
183
+ className: P(571),
184
+ "data-side": e[P(497)] ?? P(536),
185
+ children: g(a, {
186
+ tone: e[P(503)] ?? P(547),
167
187
  square: !0,
168
- children: e[P(401)]
188
+ children: e[P(479)]
169
189
  })
170
190
  })
171
- }, t)), b !== void 0 && S && h(P(409), {
172
- className: P(313),
191
+ }, t)), h !== void 0 && S && g("span", {
192
+ className: P(542),
173
193
  "data-chip": B || void 0,
174
194
  style: { left: V + "%" }
175
195
  })]
176
196
  }),
177
- (b !== void 0 || R) && g(P(409), {
178
- className: P(363),
179
- children: [b !== void 0 && P(330) + f(b) + ". ", C[P(344)]((e) => typeof e[P(401)] === P(314))[P(400)]((e) => e[P(401)] + ".")[P(315)](" ")]
197
+ (h !== void 0 || R) && _(P(557), {
198
+ className: P(540),
199
+ children: [h !== void 0 && P(563) + d(h) + ". ", C[P(493)]((e) => typeof e[P(479)] === P(473))[P(478)]((e) => e[P(479)] + ".").join(" ")]
180
200
  })
181
201
  ]
182
202
  })
183
203
  });
184
204
  }
185
- function x({ label: t, leading: s, description: c, badge: l, count: u, depth: d = 0, faded: f, selected: p, onSelect: m, children: _, className: v, style: y }) {
186
- let b = e, x = s != null || c != null || l != null || u != null, S = typeof t === b(314) || typeof t === b(393) ? h(n, {
187
- variant: b(x ? 352 : 425),
188
- tone: f ? b(319) : "default",
205
+ function C({ label: t, leading: s, description: c, badge: l, count: u, depth: d = 0, faded: f, selected: p, onSelect: m, children: h, className: v, style: y }) {
206
+ let b = e, x = s != null || c != null || l != null || u != null, S = typeof t === b(473) || typeof t == "number" ? g(n, {
207
+ variant: b(x ? 534 : 561),
208
+ tone: f ? b(560) : "default",
189
209
  truncate: !0,
190
- className: b(339),
210
+ className: "ds-timeline__name",
191
211
  children: t
192
212
  }) : t, C = m ? (e) => {
193
213
  let t = b;
194
- e[t(386)] !== e[t(322)] || e[t(354)][t(419)] || (e[t(331)] === t(317) || e.key === " ") && (e[t(389)](), m());
214
+ e[t(516)] !== e.currentTarget || e[t(512)][t(568)] || (e[t(555)] === t(521) || e[t(555)] === " ") && (e[t(501)](), m());
195
215
  } : void 0;
196
- return g(b(359), {
197
- role: b(379),
198
- className: o(b(367), v),
216
+ return _(b(491), {
217
+ role: "listitem",
218
+ className: o(b(468), v),
199
219
  "data-faded": f || void 0,
200
220
  "data-selected": p || void 0,
201
221
  "data-selectable": m || p !== void 0 ? !0 : void 0,
202
222
  tabIndex: m ? 0 : void 0,
203
- "aria-current": p ? "true" : void 0,
223
+ "aria-current": p ? b(477) : void 0,
204
224
  onClick: m,
205
225
  onKeyDown: C,
206
226
  style: y,
207
- children: [h("div", {
208
- className: "ds-timeline__label",
209
- style: d ? { paddingInlineStart: "calc(var(--s4) * " + d + ")" } : void 0,
210
- children: x ? g(r, {
227
+ children: [g(b(491), {
228
+ className: b(543),
229
+ style: d ? { paddingInlineStart: b(513) + d + ")" } : void 0,
230
+ children: x ? _(r, {
211
231
  gap: 3,
212
232
  wrap: !1,
213
- className: b(361),
233
+ className: "ds-timeline__label-body",
214
234
  children: [
215
- s != null && h(b(409), {
216
- className: b(349),
235
+ s != null && g("span", {
236
+ className: b(549),
217
237
  children: s
218
238
  }),
219
- g(i, {
239
+ _(i, {
220
240
  gap: 0,
221
- className: b(427),
222
- children: [g(r, {
241
+ className: b(528),
242
+ children: [_(r, {
223
243
  gap: 2,
224
244
  wrap: !1,
225
245
  children: [S, l]
226
- }), c != null && h(n, {
227
- variant: b(360),
228
- tone: b(319),
246
+ }), c != null && g(n, {
247
+ variant: b(539),
248
+ tone: b(560),
229
249
  truncate: !0,
230
250
  children: c
231
251
  })]
232
252
  }),
233
- u != null && h(a, {
253
+ u != null && g(a, {
234
254
  size: "sm",
235
255
  square: !0,
236
- className: b(326),
237
- children: typeof u === b(393) ? "+" + u : u
256
+ className: "ds-timeline__count",
257
+ children: typeof u === b(490) ? "+" + u : u
238
258
  })
239
259
  ]
240
260
  }) : S
241
- }), h(b(359), {
242
- className: b(362),
243
- children: _
261
+ }), g(b(491), {
262
+ className: "ds-timeline__track",
263
+ children: h
244
264
  })]
245
265
  });
246
266
  }
247
- function S() {
248
- let e = /* @__PURE__ */ "ot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O.Cgn0.zw5K.Cgf0Aa.BwfW.BgfIzwW.DMfYkc0TzgfUz2vYkq.mZK2ng9mzLb4AG.mtiYmtm5twjzBuTI.B3v0BgLUzq.Bwf4.C3zN.zhmTDgLTzwXPBMuTyMfYx19ZzwDTzw50CW.C3bHBG.BwLU.zhmTDgLTzwXPBMvFx2XPBMTZ.DMfYkc0TzhmTDgLTzwXPBMuT.zhmTDgLTzwXPBMuTyMfYx19MAwXS.mJGWotjsChzvrfu.zMLSBa.nZbrrNztu3i.zgvMyxvSDa.DMfYkc0Ty2HHCNqTmYK.AxndB21WB3nPBMC.zhmTDgLTzwXPBMuTyMfYls0.C3rHCNq.zhmTDgLTzwXPBMuTyMfYx19Hy3rPB24.zhmTDgLTzwXPBMuTyMfY.zhmTDgLTzwXPBMuTyMfYx19SywjLBa.BgfIzwWTC20.BgLUzq.zhmTDgLTzwXPBMvFx2XHyMvSlxrLEhq.zhmTDgLTzwXPBMvFx25VDW.C3rYAw5N.AM9PBG.uhjVDMLKzxi.rw50zxi.ndi1nZGYsvD3DuLy.DgvYDgLHCNK.mcaWideWmca.zhmTDgLTzwXPBMvFx21HCMTLCG.y3vYCMvUDfrHCMDLDa.nta0BuLWCNrw.CM93.CgvUzgLUzW.zhmTDgLTzwXPBMvFx2nVDw50.Aw1N.BMv1DhjHBa.Cgf0AcGN.7zIe7j6Sia.A2v5.mtaWndnUuLfXtNO.yMfUza.BM9Uzq.zM9YrwfJAa.z3jVDxa.DMfYkc0Ty2HHCNqTncK.DMfYkc0TC3vJy2vZCYK.zhmTDgLTzwXPBMvFx25HBwu.zhmTDgLTzwXPBMuTyMfYx190zxH0".split(".");
249
- return S = function() {
250
- return e;
251
- }, S();
252
- }
253
- var C = (t) => e(412) + t + ")", w = {
267
+ var w = (t) => e(524) + t + ")", T = {
254
268
  neutral: "var(--text-2)",
255
- accent: e(382),
256
- purple: e(337),
257
- teal: e(418),
258
- success: e(338),
259
- warning: e(348),
260
- danger: e(402)
269
+ accent: e(510),
270
+ purple: e(562),
271
+ teal: "var(--chart-3)",
272
+ success: e(515),
273
+ warning: e(554),
274
+ danger: e(517)
261
275
  };
262
- function T(e, t) {
263
- e -= 313;
264
- let n = S(), r = n[e];
265
- T.sBdHnI === void 0 && (T.fQVfjq = function(e) {
266
- let t = "", n = "";
267
- 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);
268
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
269
- return decodeURIComponent(n);
270
- }, T.TwcrIb = {}, T.sBdHnI = !0);
271
- let i = n[0];
272
- T.udxoVe !== i && (T.TwcrIb = {}, T.udxoVe = i);
273
- let a = T.TwcrIb[e];
274
- return a === void 0 ? (r = T.fQVfjq(r), T.TwcrIb[e] = r) : r = a, r;
275
- }
276
- function E({ start: n, end: r, variant: i = e(415), tone: a, size: s, children: c, leading: l, action: d, segments: f, limit: p, overTone: _ = e(391), running: v, label: y, labelAt: b, tooltip: x, onClick: S, renderTarget: T, ref: E, "aria-label": D, className: O }) {
277
- let k = e, { pct: A, formatValue: j } = u(), M = c != null || l != null || d != null, N = s ?? (M ? "xl" : "md"), P = a ?? (i === k(405) ? "neutral" : k(355)), F = Math[k(410)](n, r), I = Math[k(406)](n, r), L = A(F), R = A(I) - L, z = p !== void 0 && p < I && i !== k(405) ? Math.max(0, Math[k(410)](100, (I - Math.max(p, F)) / (I - F || 1) * 100)) : 0, B = D ?? [
278
- typeof c === k(314) || typeof c === k(393) ? String(c) : void 0,
279
- j(F) + k(390) + j(I),
280
- v && k(384)
281
- ][k(344)](Boolean)[k(315)](", "), V = null;
282
- if (S || T) {
283
- let e = h("button", {
276
+ function E({ start: n, end: r, variant: i = "fill", tone: a, size: s, children: c, leading: l, action: u, segments: f, limit: p, overTone: m = e(541), running: v, label: y, labelAt: b, tooltip: x, onClick: S, renderTarget: C, ref: E, "aria-label": D, className: O }) {
277
+ let k = e, { pct: A, formatValue: j } = d(), M = c != null || l != null || u != null, N = s ?? (M ? "xl" : "md"), P = a ?? (i === k(559) ? k(547) : k(488)), F = Math.min(n, r), I = Math[k(498)](n, r), L = A(F), R = A(I) - L, z = p !== void 0 && p < I && i !== "outline" ? Math.max(0, Math.min(100, (I - Math.max(p, F)) / (I - F || 1) * 100)) : 0, B = D ?? [
278
+ typeof c === k(473) || typeof c === k(490) ? String(c) : void 0,
279
+ j(F) + k(566) + j(I),
280
+ v && k(484)
281
+ ].filter(Boolean)[k(482)](", "), V = null;
282
+ if (S || C) {
283
+ let e = g(k(494), {
284
284
  type: "button",
285
- className: k(366),
285
+ className: k(551),
286
286
  "aria-label": B,
287
287
  onClick: S
288
- }), n = x == null ? e : h(t, {
288
+ }), n = x == null ? e : g(t, {
289
289
  content: x,
290
290
  children: e
291
291
  });
292
- V = T ? T(n) : n;
293
- } else x != null && (V = h(t, {
292
+ V = C ? C(n) : n;
293
+ } else x != null && (V = g(t, {
294
294
  content: x,
295
- children: h(k(409), {
296
- className: k(366),
295
+ children: g(k(557), {
296
+ className: k(551),
297
297
  tabIndex: 0,
298
298
  "aria-label": B,
299
- role: k(327)
299
+ role: k(567)
300
300
  })
301
301
  }));
302
302
  let H = I - F || 1;
303
- return g(m, { children: [g("span", {
303
+ return _(h, { children: [_(k(557), {
304
304
  ref: E,
305
- className: o(k(423), k(420) + i, "ds-timeline-bar--" + N, M && k(342), f && f[k(396)] > 0 && k(370), O),
305
+ className: o(k(550), "ds-timeline-bar--" + i, k(545) + N, M && k(531), f && f[k(518)] > 0 && "ds-timeline-bar--segmented", O),
306
306
  "data-running": v || void 0,
307
307
  "data-over": z > 0 || void 0,
308
308
  style: {
309
309
  left: L + "%",
310
310
  width: R + "%",
311
- "--_c": C(i === "pending" ? k(328) : P),
312
- "--_over": C(_),
313
- "--_ink": w[i === k(325) ? k(328) : P]
311
+ "--_c": w(i === k(564) ? k(547) : P),
312
+ "--_over": w(m),
313
+ "--_ink": T[i === "pending" ? "neutral" : P]
314
314
  },
315
315
  children: [
316
- g("span", {
317
- className: k(413),
318
- children: [h("span", {
319
- className: k(373),
316
+ _("span", {
317
+ className: k(486),
318
+ children: [g(k(557), {
319
+ className: k(509),
320
320
  style: { width: z + "%" }
321
- }), f && f[k(396)] > 0 && h("span", {
322
- className: k(408),
323
- children: f.map((e, t) => {
324
- let n = k, r = Math[n(406)](F, Math[n(410)](e[n(421)], e[n(398)])), i = Math[n(410)](I, Math.max(e.start, e[n(398)])), a = (r - F) / H * 100, o = Math[n(406)](0, i - r) / H * 100;
325
- return h(n(409), {
326
- className: n(347),
321
+ }), f && f.length > 0 && g("span", {
322
+ className: "ds-timeline-bar__segments",
323
+ children: f[k(478)]((e, t) => {
324
+ let n = k, r = Math[n(498)](F, Math[n(514)](e[n(511)], e.end)), i = Math[n(514)](I, Math.max(e[n(511)], e[n(508)])), a = (r - F) / H * 100, o = Math[n(498)](0, i - r) / H * 100;
325
+ return g(n(557), {
326
+ className: n(533),
327
327
  style: {
328
- left: n(369) + a + "% + 1px)",
329
- width: n(368) + o + n(392),
330
- "--_c": C(e[n(350)] ?? n(355))
328
+ left: "calc(" + a + "% + 1px)",
329
+ width: n(572) + o + n(522),
330
+ "--_c": w(e[n(503)] ?? "accent")
331
331
  }
332
332
  }, t);
333
333
  })
334
334
  })]
335
335
  }),
336
- V == null ? !M && h(k(409), {
337
- className: "ds-timeline__sr",
336
+ V == null ? !M && g("span", {
337
+ className: k(540),
338
338
  children: B
339
- }) : h(k(409), {
340
- className: k(351),
339
+ }) : g("span", {
340
+ className: k(552),
341
341
  children: V
342
342
  }),
343
- M && g(k(409), {
344
- className: "ds-timeline-bar__content",
343
+ M && _("span", {
344
+ className: k(546),
345
345
  children: [
346
- l != null && h(k(409), {
347
- className: k(377),
346
+ l != null && g(k(557), {
347
+ className: k(575),
348
348
  "aria-hidden": V != null || void 0,
349
349
  children: l
350
350
  }),
351
- c != null && h(k(409), {
352
- className: k(340),
351
+ c != null && g("span", {
352
+ className: k(495),
353
353
  "aria-hidden": V != null || void 0,
354
354
  children: c
355
355
  }),
356
- d != null && h(k(409), {
357
- className: k(422),
358
- children: d
356
+ u != null && g(k(557), {
357
+ className: k(556),
358
+ children: u
359
359
  })
360
360
  ]
361
361
  })
362
362
  ]
363
- }), y != null && y !== !1 && h(k(409), {
364
- className: k(424),
365
- style: { left: A(Math[k(406)](I, b ?? I)) + "%" },
363
+ }), y != null && y !== !1 && g(k(557), {
364
+ className: "ds-timeline-bar__label",
365
+ style: { left: A(Math[k(498)](I, b ?? I)) + "%" },
366
366
  children: y
367
367
  })] });
368
368
  }
369
- export { b as Timeline, E as TimelineBar, x as TimelineRow };
369
+ export { S as Timeline, E as TimelineBar, C as TimelineRow };