@iamfiro/design 0.3.4 → 0.3.5

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/app-shell/AGENTS.md +99 -1
  2. package/lib/components/Accordion/Accordion2.js +93 -93
  3. package/lib/components/ActionBar/ActionBar2.js +44 -40
  4. package/lib/components/Alert/Alert2.js +64 -64
  5. package/lib/components/AppShell/AppShell2.js +73 -66
  6. package/lib/components/AreaChart/AreaChart.js +49 -47
  7. package/lib/components/BarChart/BarChart2.js +107 -107
  8. package/lib/components/BarList/BarList2.js +99 -99
  9. package/lib/components/Breadcrumb/Breadcrumb2.js +53 -56
  10. package/lib/components/Calendar/Calendar2.js +164 -164
  11. package/lib/components/Calendar/DatePicker2.js +76 -77
  12. package/lib/components/Calendar/date.js +49 -70
  13. package/lib/components/Card/Card2.js +104 -77
  14. package/lib/components/CardFrame/CardFrame2.js +46 -42
  15. package/lib/components/Chart/ChartParts.js +73 -73
  16. package/lib/components/Chart/chart2.js +53 -53
  17. package/lib/components/Chart/useChartInteraction.js +49 -49
  18. package/lib/components/ChatBubble/ChatBubble2.js +118 -118
  19. package/lib/components/ChatBubble/formatChatTime.js +42 -41
  20. package/lib/components/ChatComposer/ChatComposer2.js +102 -102
  21. package/lib/components/CodeBlock/CodeBlock2.js +51 -51
  22. package/lib/components/CodeBlock/highlight.js +85 -85
  23. package/lib/components/ColorPicker/ColorPicker2.js +373 -374
  24. package/lib/components/ColorPicker/color.js +94 -94
  25. package/lib/components/ColorPicker/presets.js +47 -46
  26. package/lib/components/Combobox/Combobox2.js +118 -117
  27. package/lib/components/CommandMenu/CommandMenu.js +121 -122
  28. package/lib/components/Comment/Comment2.js +56 -81
  29. package/lib/components/ContextMenu/ContextMenu2.js +91 -93
  30. package/lib/components/DataGrid/DataGrid2.js +845 -845
  31. package/lib/components/DataGrid/GridPopover.js +97 -97
  32. package/lib/components/DataGrid/anchor.js +34 -36
  33. package/lib/components/DataGrid/model.js +299 -299
  34. package/lib/components/DataGrid/panels.js +393 -393
  35. package/lib/components/DataGrid/typeMeta.js +53 -53
  36. package/lib/components/DataGrid/types.js +22 -22
  37. package/lib/components/DescriptionList/DescriptionList2.js +57 -57
  38. package/lib/components/Dialog/AlertDialog.js +56 -56
  39. package/lib/components/Dialog/Dialog2.js +68 -69
  40. package/lib/components/Dialog/modal.js +61 -57
  41. package/lib/components/Drawer/Drawer2.js +161 -161
  42. package/lib/components/DropdownMenu/DropdownMenu2.js +267 -267
  43. package/lib/components/DropdownMenu/menuCore.js +42 -68
  44. package/lib/components/Dropzone/Dropzone2.js +81 -81
  45. package/lib/components/EmptyState/EmptyState2.js +55 -54
  46. package/lib/components/FileChip/FileChip2.js +39 -63
  47. package/lib/components/FileUpload/FileUpload.js +157 -156
  48. package/lib/components/FilterChips/FilterChips2.js +51 -51
  49. package/lib/components/FunnelChart/FunnelChart2.js +171 -171
  50. package/lib/components/FunnelChart/funnel.js +55 -57
  51. package/lib/components/Highlight/Highlight2.js +48 -48
  52. package/lib/components/HoverCard/HoverCard.js +59 -59
  53. package/lib/components/InlineDiff/InlineDiff2.js +110 -111
  54. package/lib/components/InlineDiff/diff.js +89 -89
  55. package/lib/components/InlineDiff/useDiffReview.js +63 -65
  56. package/lib/components/Kanban/Kanban2.js +424 -425
  57. package/lib/components/Kanban/KanbanCard.js +98 -73
  58. package/lib/components/Kanban/move.js +52 -49
  59. package/lib/components/LineChart/LineChart2.js +222 -222
  60. package/lib/components/List/List2.js +60 -59
  61. package/lib/components/Listbox/Listbox2.js +117 -117
  62. package/lib/components/Marker/Marker2.js +58 -59
  63. package/lib/components/Menubar/Menubar2.js +121 -123
  64. package/lib/components/MultiSelect/MultiSelect2.js +115 -115
  65. package/lib/components/NavigationMenu/NavigationMenu2.js +277 -276
  66. package/lib/components/NoticeStack/NoticeStack2.js +98 -98
  67. package/lib/components/NumberStepper/NumberStepper2.js +67 -66
  68. package/lib/components/OtpInput/OtpInput2.js +93 -93
  69. package/lib/components/Pagination/Pagination2.js +87 -87
  70. package/lib/components/Pagination/paginationRange.js +39 -37
  71. package/lib/components/PhoneInput/PhoneInput.js +78 -78
  72. package/lib/components/PieChart/PieChart2.js +117 -117
  73. package/lib/components/PieChart/arc.js +57 -58
  74. package/lib/components/PieChart/useArcTween.js +45 -40
  75. package/lib/components/Popover/Popover2.js +73 -74
  76. package/lib/components/ProgressTracker/ProgressTracker2.js +128 -128
  77. package/lib/components/Rating/Rating2.js +95 -95
  78. package/lib/components/Resizable/Resizable2.js +86 -86
  79. package/lib/components/Resizable/layout.js +73 -73
  80. package/lib/components/ScaledPreview/ScaledPreview2.js +68 -68
  81. package/lib/components/ScatterChart/ScatterChart2.js +172 -172
  82. package/lib/components/ScatterChart/scatter.js +55 -56
  83. package/lib/components/ScrollArea/ScrollArea2.js +130 -131
  84. package/lib/components/Select/Select2.js +86 -85
  85. package/lib/components/Sidebar/Sidebar2.js +92 -86
  86. package/lib/components/Sidebar/rail.js +43 -0
  87. package/lib/components/Skeleton/Skeleton2.js +60 -61
  88. package/lib/components/Slider/Slider2.js +73 -73
  89. package/lib/components/SocialLoginButton/SocialLoginButton.js +54 -55
  90. package/lib/components/SparkChart/SparkChart2.js +140 -141
  91. package/lib/components/SparkChart/spark.js +50 -48
  92. package/lib/components/Sparkbar/Sparkbar2.js +56 -56
  93. package/lib/components/SplitView/SplitView2.js +47 -46
  94. package/lib/components/Stat/Stat2.js +61 -61
  95. package/lib/components/StepList/StepList2.js +76 -76
  96. package/lib/components/Table/Table2.js +70 -70
  97. package/lib/components/Tabs/Tabs2.js +85 -85
  98. package/lib/components/TagInput/TagInput2.js +217 -218
  99. package/lib/components/TimePicker/TimePicker2.js +217 -216
  100. package/lib/components/TimePicker/time.js +60 -58
  101. package/lib/components/Timeline/Timeline2.js +181 -181
  102. package/lib/components/Timeline/scale.js +60 -65
  103. package/lib/components/Toast/Toaster.js +146 -148
  104. package/lib/components/Toast/store.js +85 -85
  105. package/lib/components/ToggleGroup/ToggleGroup2.js +79 -79
  106. package/lib/components/Toolbar/Toolbar2.js +120 -121
  107. package/lib/components/Tracker/Tracker2.js +79 -79
  108. package/lib/components/TreeDiagram/TreeDiagram2.js +116 -116
  109. package/lib/components/TreeView/TreeView2.js +162 -163
  110. package/lib/hooks/timing.js +32 -35
  111. package/lib/hooks/useControllableState.js +35 -35
  112. package/lib/hooks/useCountdown.js +53 -52
  113. package/lib/hooks/useDigitInput.js +82 -81
  114. package/lib/hooks/useDismiss.js +48 -48
  115. package/lib/hooks/useElapsed.js +40 -43
  116. package/lib/hooks/useFloating.js +47 -47
  117. package/lib/hooks/useFocusTrap.js +45 -69
  118. package/lib/hooks/usePresence.js +49 -50
  119. package/lib/hooks/usePressToOpen.js +43 -43
  120. package/lib/hooks/useScrollLock.js +45 -43
  121. package/lib/hooks/useSelection.js +44 -46
  122. package/lib/index.js +105 -106
  123. package/lib/primitives/AspectRatio2.js +57 -56
  124. package/lib/primitives/BrandIcon.js +177 -177
  125. package/lib/primitives/ColorDot2.js +44 -48
  126. package/lib/primitives/CopyButton2.js +54 -55
  127. package/lib/primitives/CountBadge2.js +45 -48
  128. package/lib/primitives/Countdown2.js +35 -37
  129. package/lib/primitives/Delta2.js +41 -41
  130. package/lib/primitives/Elapsed.js +43 -41
  131. package/lib/primitives/FileIcon2.js +94 -94
  132. package/lib/primitives/Flag2.js +97 -97
  133. package/lib/primitives/IconStack2.js +53 -55
  134. package/lib/primitives/IconTile2.js +45 -41
  135. package/lib/primitives/Kbd2.js +57 -57
  136. package/lib/primitives/Layout2.js +66 -66
  137. package/lib/primitives/Link2.js +42 -47
  138. package/lib/primitives/MaskedText2.js +47 -69
  139. package/lib/primitives/Progress2.js +71 -71
  140. package/lib/primitives/RelativeTime.js +47 -43
  141. package/lib/primitives/SearchInput2.js +70 -66
  142. package/lib/primitives/SelectorButton2.js +70 -67
  143. package/lib/primitives/Spinner2.js +58 -59
  144. package/lib/primitives/StatusIcon2.js +70 -70
  145. package/lib/primitives/Swatch2.js +57 -55
  146. package/lib/primitives/Tooltip2.js +78 -78
  147. package/lib/primitives/Typography2.js +54 -54
  148. package/lib/primitives/formatCountdown.js +37 -38
  149. package/lib/primitives/formatElapsed.js +46 -45
  150. package/lib/primitives/formatRelativeTime.js +43 -69
  151. package/lib/primitives/hotkey.js +66 -66
  152. package/lib/primitives/index.js +152 -152
  153. package/lib/primitives/maskValue.js +30 -32
  154. package/lib/style.css +1 -1
  155. package/lib/types/components/AppShell/AppShell.d.ts +9 -2
  156. package/lib/types/components/Sidebar/rail.d.ts +4 -0
  157. package/lib/types/components/index.d.ts +1 -0
  158. package/package.json +1 -1
@@ -1,113 +1,107 @@
1
1
  "use client";
2
- function e() {
3
- let t = /* @__PURE__ */ "C3bHBG.zhmTBM90AwnLlxn0ywnRx19JBg9Zzq.y3vYCMvUDfrHCMDLDa.ywnJzw50.mJCYv0L0C2vS.zgvZy3jPChrPB24.zhmTBM90AwnLlxn0ywnR.zxLLyNjVDW.zhmTBM90AwnLlxn0ywnRx19PBM5LCG.otaXm2r2AK1xra.zhmTBM90AwnLlxn0ywnRx19SAxn0.y29UDgfPBNm.Bw91C2u.ndKWneXbr2TPzq.Ag92zxjjBNrLBNq.mZi4mKPbs010Aa.B2jZzxj2zq.ndGZotK4ng9grKLPCa.Ag92zxjhCMfJzq.nZe5mZmWCuPYrKXx.ndiZBxr6serL.CxvLCNLtzwXLy3rVCG.zgvSzxrL.mtqWodCXnvbVC2P0rG.w2rHDgeTBM90AwnLlwLKpsi.ywrK.Cg9PBNrLCLr5Cgu.Bwf4.iL0GlMrZlw5VDgLJzs1ZDgfJA19Fy2XVC2u.zMLSDgvY.zgLZy29UBMvJDa.DgL0Bgu.y2XLyxjuAw1LB3v0.BwLU.y2fWDgLVBG.AgfZ.mJj3Bev3BKi.C2v0.ywn0AxzLrwXLBwvUDa.zM9YrwfJAa.zgLZBwLZC2LIBgu.AM9PBG.z2v0.mJziBe9QzKO.zMLUza.BgvUz3rO.BwfW.zM9JDxm.nZy3n3DgtM9bta.zxnJyxbL.y3vYCMvUDa.zM9VDgvY.B2zMC2v0sgvPz2H0.C3rHCNq.C2v0vgLTzw91Da.nvDhq0j6vW".split(".");
4
- return e = function() {
5
- return t;
6
- }, e();
7
- }
8
2
  (function(e, t) {
9
- let n = c, r = e();
3
+ let n = h, r = e();
10
4
  for (;;) try {
11
- if (-parseInt(n(130)) / 1 * (parseInt(n(164)) / 2) + -parseInt(n(141)) / 3 * (-parseInt(n(134)) / 4) + parseInt(n(120)) / 5 * (-parseInt(n(136)) / 6) + -parseInt(n(144)) / 7 + parseInt(n(125)) / 8 * (parseInt(n(169)) / 9) + parseInt(n(140)) / 10 * (-parseInt(n(157)) / 11) + parseInt(n(138)) / 12 == t) break;
5
+ if (parseInt(n(121)) / 1 * (parseInt(n(124)) / 2) + parseInt(n(134)) / 3 + parseInt(n(126)) / 4 * (parseInt(n(161)) / 5) + -parseInt(n(129)) / 6 * (-parseInt(n(159)) / 7) + -parseInt(n(131)) / 8 * (parseInt(n(142)) / 9) + -parseInt(n(136)) / 10 + parseInt(n(132)) / 11 * (-parseInt(n(160)) / 12) == t) break;
12
6
  r.push(r.shift());
13
7
  } catch {
14
8
  r.push(r.shift());
15
9
  }
16
- })(e, 142373);
17
- import { TIMING as t } from "../../hooks/timing.js";
18
- import { Text as n } from "../../primitives/Typography2.js";
19
- import { Button as r, cx as i } from "../../primitives/index.js";
20
- import { Card as a, CardFooter as o, CardHeader as s } from "../Card/Card2.js";
10
+ })(y, 889152);
11
+ import { TIMING as e } from "../../hooks/timing.js";
12
+ import { Text as t } from "../../primitives/Typography2.js";
13
+ import { Button as n, cx as r } from "../../primitives/index.js";
14
+ import { Card as i, CardFooter as a, CardHeader as o } from "../Card/Card2.js";
21
15
  /* empty css */
22
- function c(t, n) {
23
- t -= 118;
24
- let r = e(), i = r[t];
25
- c.tKYMDK === void 0 && (c.dNikyQ = function(e) {
16
+ import { useCallback as s, useEffect as c, useLayoutEffect as l, useRef as u, useState as d } from "react";
17
+ import { X as f } from "lucide-react";
18
+ import { jsx as p, jsxs as m } from "react/jsx-runtime";
19
+ function h(e, t) {
20
+ e -= 113;
21
+ let n = y(), r = n[e];
22
+ h.iCJQqK === void 0 && (h.gCuXiz = function(e) {
26
23
  let t = "", n = "";
27
24
  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);
28
25
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
29
26
  return decodeURIComponent(n);
30
- }, c.gyyiuo = {}, c.tKYMDK = !0);
31
- let a = r[0];
32
- c.XjweLG !== a && (c.gyyiuo = {}, c.XjweLG = a);
33
- let o = c.gyyiuo[t];
34
- return o === void 0 ? (i = c.dNikyQ(i), c.gyyiuo[t] = i) : i = o, i;
27
+ }, h.bGpQsn = {}, h.iCJQqK = !0);
28
+ let i = n[0];
29
+ h.latuqO !== i && (h.bGpQsn = {}, h.latuqO = i);
30
+ let a = h.bGpQsn[e];
31
+ return a === void 0 ? (r = h.gCuXiz(r), h.bGpQsn[e] = r) : r = a, r;
35
32
  }
36
- import { useCallback as l, useEffect as u, useLayoutEffect as d, useRef as f, useState as p } from "react";
37
- import { X as m } from "lucide-react";
38
- import { jsx as h, jsxs as g } from "react/jsx-runtime";
39
- var _ = 8, v = 320;
40
- function y({ items: e, onDismiss: n, visible: r = 3, expanded: a, direction: o = "up", gap: s = 8, dismissLabel: d = "닫기", className: m, style: g, "aria-label": y = "공지" }) {
41
- let x = c, [S, C] = p({}), [w, T] = p(/* @__PURE__ */ new Set()), [E, D] = p(/* @__PURE__ */ new Set()), [O, k] = p(!1), [A, j] = p(!1), M = f(0), N = f(/* @__PURE__ */ new Set()), P = f(null), F = e[x(167)]((e) => e.id)[x(162)]("\n"), [I, L] = p(F);
33
+ var g = 8, _ = 320;
34
+ function v({ items: t, onDismiss: n, visible: i = 3, expanded: a, direction: o = "up", gap: l = 8, dismissLabel: f = "닫기", className: m, style: v, "aria-label": y = "공지" }) {
35
+ let x = h, [S, C] = d({}), [w, T] = d(/* @__PURE__ */ new Set()), [E, D] = d(/* @__PURE__ */ new Set()), [O, k] = d(!1), [A, j] = d(!1), M = u(0), N = u(/* @__PURE__ */ new Set()), P = u(null), F = t.map((e) => e.id)[x(152)]("\n"), [I, L] = d(F);
42
36
  if (F !== I) {
43
37
  L(F);
44
- let t = new Set(e[x(167)]((e) => e.id));
45
- D((e) => new Set([...e][x(150)]((e) => t.has(e))));
38
+ let e = new Set(t[x(141)]((e) => e.id));
39
+ D((t) => new Set([...t][x(122)]((t) => e.has(t))));
46
40
  }
47
- u(() => {
48
- let e = x, t = N[e(171)];
41
+ c(() => {
42
+ let e = x, t = N[e(157)];
49
43
  return () => {
50
44
  let n = e;
51
- window.clearTimeout(M[n(171)]), t[n(160)]((e) => window[n(153)](e));
45
+ window[n(147)](M[n(157)]), t[n(113)]((e) => window.clearTimeout(e));
52
46
  };
53
47
  }, []);
54
- let R = l((e, t) => {
48
+ let R = s((e, t) => {
55
49
  C((n) => n[e] === t ? n : {
56
50
  ...n,
57
51
  [e]: t
58
52
  });
59
- }, []), z = e[x(150)]((e) => !E[x(156)](e.id)), B = z.filter((e) => !w.has(e.id)), V = B[x(166)] > 1 && (a || O || A), H = o === "up" ? -1 : 1, U = /* @__PURE__ */ new Map(), W = 0, G = 0;
60
- for (let e of z) U[x(158)](e.id, {
53
+ }, []), z = t.filter((e) => !E[x(148)](e.id)), B = z[x(122)]((e) => !w.has(e.id)), V = B.length > 1 && (a || O || A), H = o === "up" ? -1 : 1, U = /* @__PURE__ */ new Map(), W = 0, G = 0;
54
+ for (let e of z) U[x(167)](e.id, {
61
55
  index: G,
62
56
  y: W
63
- }), !w[x(156)](e.id) && (G < r && (W += (S[e.id] ?? 0) + s), G++);
64
- let K = S[B[0]?.id] ?? 0, q = B[x(166)] === 0 ? 0 : V ? Math[x(148)](0, W - s) : K + (Math[x(154)](B.length, r) - 1) * _, J = (e) => {
57
+ }), !w[x(148)](e.id) && (G < i && (W += (S[e.id] ?? 0) + l), G++);
58
+ let K = S[B[0]?.id] ?? 0, q = B.length === 0 ? 0 : V ? Math[x(125)](0, W - l) : K + (Math[x(151)](B[x(116)], i) - 1) * g, J = (e) => {
65
59
  let t = x;
66
- if (w[t(156)](e)) return;
67
- let r = P[t(171)];
68
- if ((r?.querySelector("[data-notice-id=\"" + CSS[t(170)](e) + "\"]"))?.contains(document[t(159)])) {
69
- let n = B[t(165)]((n) => n.id !== e && n[t(161)] !== !1);
70
- r?.[t(142)](t(145) + (n ? CSS[t(170)](n.id) : "") + t(149))?.[t(168)]();
60
+ if (w.has(e)) return;
61
+ let r = P[t(157)];
62
+ if ((r?.querySelector(t(165) + CSS.escape(e) + "\"]"))?.[t(123)](document[t(130)])) {
63
+ let n = B[t(144)]((n) => n.id !== e && n[t(150)] !== !1);
64
+ r?.[t(143)](t(165) + (n ? CSS[t(156)](n.id) : "") + t(127))?.[t(154)]();
71
65
  }
72
- T((n) => new Set(n)[t(146)](e));
73
- let i = window[t(119)](() => {
66
+ T((t) => new Set(t).add(e));
67
+ let i = window[t(128)](() => {
74
68
  let r = t;
75
- N[r(171)][r(143)](i), D((t) => new Set(t).add(e)), T((t) => {
76
- let n = r, i = new Set(t);
77
- return i[n(143)](e), i;
69
+ N.current[r(146)](i), D((t) => new Set(t)[r(118)](e)), T((t) => {
70
+ let n = new Set(t);
71
+ return n.delete(e), n;
78
72
  }), n?.(e);
79
- }, v);
80
- N[t(171)].add(i);
81
- }, Y = (e) => {
73
+ }, _);
74
+ N.current.add(i);
75
+ }, Y = (t) => {
82
76
  let n = x;
83
- window[n(153)](M[n(171)]), M[n(171)] = window[n(119)](() => k(e), e ? t[n(135)] : t[n(139)]);
77
+ window[n(147)](M[n(157)]), M.current = window[n(128)](() => k(t), t ? e[n(114)] : e[n(140)]);
84
78
  };
85
- return z[x(166)] === 0 ? null : h("section", {
86
- className: i(x(127), m),
79
+ return z[x(116)] === 0 ? null : p(x(135), {
80
+ className: r("ds-notice-stack", m),
87
81
  "data-direction": o,
88
82
  "data-expanded": V || void 0,
89
83
  "aria-label": y,
90
- style: g,
91
- onPointerEnter: (e) => e[x(147)] === x(133) && Y(!0),
92
- onPointerLeave: (e) => e.pointerType === "mouse" && Y(!1),
84
+ style: v,
85
+ onPointerEnter: (e) => e.pointerType === "mouse" && Y(!0),
86
+ onPointerLeave: (e) => e[x(166)] === x(119) && Y(!1),
93
87
  onFocus: () => j(!0),
94
- onBlur: (e) => !e[x(123)][x(132)](e.relatedTarget) && j(!1),
95
- children: h("ol", {
88
+ onBlur: (e) => !e.currentTarget[x(123)](e[x(155)]) && j(!1),
89
+ children: p("ol", {
96
90
  ref: P,
97
- className: x(131),
91
+ className: "ds-notice-stack__list",
98
92
  style: { height: q },
99
- children: z[x(167)]((e) => {
100
- let t = x, { index: n, y: i } = U[t(163)](e.id), a = !V && n > 0;
101
- return h(b, {
93
+ children: z[x(141)]((e) => {
94
+ let t = x, { index: n, y: r } = U[t(133)](e.id), a = !V && n > 0;
95
+ return p(b, {
102
96
  item: e,
103
97
  onHeight: R,
104
98
  onDismiss: () => J(e.id),
105
- dismissLabel: d,
106
- leaving: w[t(156)](e.id),
99
+ dismissLabel: f,
100
+ leaving: w[t(148)](e.id),
107
101
  behind: a,
108
- hidden: n >= r,
102
+ hidden: n >= i,
109
103
  style: {
110
- "--_y": (V ? i : n * _) * H + "px",
104
+ "--_y": (V ? r : n * g) * H + "px",
111
105
  "--_scale": V ? 1 : 1 - n * .05,
112
106
  "--_z": z.length - n,
113
107
  "--_h": (a ? K : S[e.id] ?? 0) + "px",
@@ -118,23 +112,29 @@ function y({ items: e, onDismiss: n, visible: r = 3, expanded: a, direction: o =
118
112
  })
119
113
  });
120
114
  }
121
- function b({ item: e, onHeight: t, onDismiss: i, dismissLabel: l, leaving: _, behind: v, hidden: y, style: b }) {
122
- let x = c, S = f(null), [C, w] = p(!1);
123
- return u(() => {
115
+ function y() {
116
+ let e = /* @__PURE__ */ "zxLLyNjVDW.zgvSzxrL.y2XLyxjuAw1LB3v0.AgfZ.C3rHCNq.zgLZBwLZC2LIBgu.BwLU.AM9PBG.B2jZzxj2zq.zM9JDxm.CMvSyxrLzfrHCMDLDa.zxnJyxbL.y3vYCMvUDa.zM9VDgvY.ntC0rwjbvNPR.otG2nePcvffuBq.nwvqsxzkEG.C3bHBG.y2fWDgLVBG.zgvZy3jPChrPB24.w2rHDgeTBM90AwnLlwLKpsi.Cg9PBNrLCLr5Cgu.C2v0.zM9YrwfJAa.Ag92zxjjBNrLBNq.zhmTBM90AwnLlxn0ywnRx19JBg9Zzq.BgvUz3rO.zhmTBM90AwnLlxn0ywnRx19PBM5LCG.ywrK.Bw91C2u.zgL2.m3buCxHJrG.zMLSDgvY.y29UDgfPBNm.ndu1otm4wgfMDvDX.Bwf4.mtG5nJqWnfzsEe9ptG.iL0GlMrZlw5VDgLJzs1ZDgfJA19Fy2XVC2u.C2v0vgLTzw91Da.mJyXotzmr3vOvKy.ywn0AxzLrwXLBwvUDa.ohviz3LVDq.odK4n0LzsK9Wza.z2v0.mZCZnZGYm1PhBfnUrq.C2vJDgLVBG.nJm5mJe4merNAND1CG.z2HVC3q.zhmTBM90AwnLlxn0ywnRx19JyxjK.ywnJzw50.Ag92zxjhCMfJzq.BwfW.nta1ode1m2DpDKvfsG.CxvLCNLtzwXLy3rVCG.zMLUza".split(".");
117
+ return y = function() {
118
+ return e;
119
+ }, y();
120
+ }
121
+ function b({ item: e, onHeight: r, onDismiss: s, dismissLabel: g, leaving: _, behind: v, hidden: y, style: b }) {
122
+ let x = h, S = u(null), [C, w] = d(!1);
123
+ return c(() => {
124
124
  let e = 0, t = requestAnimationFrame(() => {
125
125
  e = requestAnimationFrame(() => w(!0));
126
126
  });
127
127
  return () => {
128
128
  cancelAnimationFrame(t), cancelAnimationFrame(e);
129
129
  };
130
- }, []), d(() => {
131
- let n = c, r = S[n(171)];
132
- if (!r) return;
133
- let i = () => t(e.id, r[n(173)]);
130
+ }, []), l(() => {
131
+ let t = h, n = S[t(157)];
132
+ if (!n) return;
133
+ let i = () => r(e.id, n.offsetHeight);
134
134
  i();
135
135
  let a = new ResizeObserver(i);
136
- return a[n(137)](r), () => a[n(151)]();
137
- }, [e.id, t]), h("li", {
136
+ return a[t(153)](n), () => a.disconnect();
137
+ }, [e.id, r]), p("li", {
138
138
  className: "ds-notice-stack__item",
139
139
  "data-notice-id": e.id,
140
140
  "data-mounted": C || void 0,
@@ -143,36 +143,36 @@ function b({ item: e, onHeight: t, onDismiss: i, dismissLabel: l, leaving: _, be
143
143
  "data-hidden": y || void 0,
144
144
  inert: _ || y || void 0,
145
145
  style: b,
146
- children: h(a, {
146
+ children: p(i, {
147
147
  padding: "sm",
148
- className: "ds-notice-stack__card",
149
- children: g("div", {
148
+ className: x(138),
149
+ children: m(x(120), {
150
150
  ref: S,
151
- className: x(129),
152
- children: [h(s, {
153
- eyebrow: e.eyebrow && h(n, {
154
- as: x(121),
155
- variant: x(155),
156
- tone: x(124),
157
- children: e[x(128)]
151
+ className: x(117),
152
+ children: [p(o, {
153
+ eyebrow: e[x(145)] && p(t, {
154
+ as: x(162),
155
+ variant: x(163),
156
+ tone: x(139),
157
+ children: e[x(145)]
158
158
  }),
159
- title: e[x(152)],
160
- description: e[x(126)],
161
- actions: e[x(161)] !== !1 && h(r, {
162
- className: x(122),
163
- variant: "ghost",
159
+ title: e.title,
160
+ description: e[x(164)],
161
+ actions: e.dismissible !== !1 && p(n, {
162
+ className: x(115),
163
+ variant: x(137),
164
164
  size: "sm",
165
165
  iconOnly: !0,
166
- icon: h(m, {}),
167
- "aria-label": l,
168
- onClick: i
166
+ icon: p(f, {}),
167
+ "aria-label": g,
168
+ onClick: s
169
169
  })
170
- }), e[x(172)] && h(o, {
171
- align: x(118),
172
- children: e[x(172)]
170
+ }), e[x(158)] && p(a, {
171
+ align: x(149),
172
+ children: e[x(158)]
173
173
  })]
174
174
  })
175
175
  })
176
176
  });
177
177
  }
178
- export { y as NoticeStack };
178
+ export { v as NoticeStack };
@@ -1,83 +1,84 @@
1
1
  "use client";
2
- const e = a;
3
- function t() {
4
- let e = /* @__PURE__ */ "y3vYCMvUDa.mtrAt2zst3a.C2v0vgLTzw91Da.qxjYB3DsAwDODa.zhmTC3rLChbLCL9FDMfSDwu.64Qy66AS6RIW.mJaYnJKXr05cvvrK.zgL2.mtK2nJmYuM9oAuHh.C3bPBMj1DhrVBG.mti0CgPdzvLk.ChjLDMvUDerLzMf1Bhq.y2XLyxjuAw1LB3v0.CMvWzwf0zwq.mJCYnJm3ruTuDNDA.A2v5.qxjYB3DvCa.AxngAw5PDgu.Dg9gAxHLza.nJm2mZC2rNjhzMjj.mtGWmJm1qKDryvDJ.zhmTC3rLChbLCG.C3bHBG.AxndB21WB3nPBMC.qxjYB3Dmzwz0.C3rYAw5N.ntbrqNr3z0O.CMvWzwf0sw50zxj2ywW.Bwf4.BgvUz3rO.BwLU.sg9Tzq.zg93BG.Aw5WDxq.ntb4svj4AeG.Aw5KzxHpzG.mtjMs3LdC1i.AgLKzgvU.DgLTzxi.odq3nxnoshvoyG.7kse7j206RIW.mZa2ntvcwwv0rxC.qxjYB3DeB3DU.ugfNzvvW.yNv0Dg9U".split(".");
5
- return t = function() {
6
- return e;
7
- }, t();
8
- }
2
+ const e = i;
9
3
  (function(e, t) {
10
- let n = a, r = e();
4
+ let n = i, r = e();
11
5
  for (;;) try {
12
- if (parseInt(n(150)) / 1 + -parseInt(n(125)) / 2 * (parseInt(n(138)) / 3) + -parseInt(n(154)) / 4 * (parseInt(n(140)) / 5) + -parseInt(n(152)) / 6 * (parseInt(n(145)) / 7) + parseInt(n(118)) / 8 + parseInt(n(158)) / 9 * (parseInt(n(133)) / 10) + -parseInt(n(119)) / 11 * (-parseInt(n(135)) / 12) == t) break;
6
+ if (parseInt(n(178)) / 1 + parseInt(n(177)) / 2 + -parseInt(n(194)) / 3 + -parseInt(n(207)) / 4 * (-parseInt(n(176)) / 5) + -parseInt(n(186)) / 6 * (parseInt(n(170)) / 7) + -parseInt(n(164)) / 8 * (-parseInt(n(198)) / 9) + -parseInt(n(180)) / 10 == t) break;
13
7
  r.push(r.shift());
14
8
  } catch {
15
9
  r.push(r.shift());
16
10
  }
17
- })(t, 123858);
18
- import { TIMING as n } from "../../hooks/timing.js";
19
- import { useControllableState as r } from "../../hooks/useControllableState.js";
20
- import { cx as i } from "../../primitives/index.js";
21
- /* empty css */
22
- function a(e, n) {
23
- e -= 116;
24
- let r = t(), i = r[e];
25
- a.lfkcde === void 0 && (a.qKINWs = function(e) {
11
+ })(p, 584402);
12
+ import { TIMING as t } from "../../hooks/timing.js";
13
+ import { useControllableState as n } from "../../hooks/useControllableState.js";
14
+ import { cx as r } from "../../primitives/index.js";
15
+ function i(e, t) {
16
+ e -= 162;
17
+ let n = p(), r = n[e];
18
+ i.aJUZhW === void 0 && (i.eEOFNB = function(e) {
26
19
  let t = "", n = "";
27
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);
28
21
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
29
22
  return decodeURIComponent(n);
30
- }, a.jCtJQE = {}, a.lfkcde = !0);
31
- let o = r[0];
32
- a.uynFkA !== o && (a.jCtJQE = {}, a.uynFkA = o);
33
- let s = a.jCtJQE[e];
34
- return s === void 0 ? (i = a.qKINWs(i), a.jCtJQE[e] = i) : i = s, i;
23
+ }, i.qsGiaZ = {}, i.aJUZhW = !0);
24
+ let a = n[0];
25
+ i.IvbHIi !== a && (i.qsGiaZ = {}, i.IvbHIi = a);
26
+ let o = i.qsGiaZ[e];
27
+ return o === void 0 ? (r = i.eEOFNB(r), i.qsGiaZ[e] = r) : r = o, r;
35
28
  }
36
- import { useEffect as o, useRef as s, useState as c } from "react";
37
- import { Minus as l, Plus as u } from "lucide-react";
38
- import { jsx as d, jsxs as f } from "react/jsx-runtime";
39
- var p = (e) => {
40
- let t = a, n = String(e), r = n[t(134)](".");
41
- return r < 0 ? 0 : n[t(128)] - r - 1;
29
+ /* empty css */
30
+ import { useEffect as a, useRef as o, useState as s } from "react";
31
+ import { Minus as c, Plus as l } from "lucide-react";
32
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
33
+ var f = (e) => {
34
+ let t = i, n = String(e), r = n[t(203)](".");
35
+ return r < 0 ? 0 : n[t(165)] - r - 1;
42
36
  };
43
- function m({ value: t, defaultValue: a, onValueChange: m, min: h = -Infinity, max: g = Infinity, step: _ = 1, largeStep: v, size: y = "md", disabled: b, formatValue: x, "aria-label": S, "aria-labelledby": C, decrementLabel: w = e(139), incrementLabel: T = e(149), name: E, id: D, className: O, style: k }) {
44
- let A = e, [j, M] = r(t, a ?? Math.min(g, Math[A(127)](h, 0)), m), N = Math[A(127)](p(_), p(Number[A(116)](h) ? h : 0)), P = (e) => Number(Math[A(129)](g, Math.max(h, e))[A(117)](N)), [F, I] = c(j), [L, R] = c(null);
45
- j !== F && (I(j), R(j > F ? "up" : A(131)));
46
- let z = s(j);
47
- o(() => {
37
+ function p() {
38
+ let e = /* @__PURE__ */ "C3bHBG.sg9Tzq.zhmTC3rLChbLCL9FBNvT.BMf0AxzLrxzLBNq.mJm0mdmYnvrZywzACG.mtmWndGWmM5cr2zMva.mtaYmti3nwfurLjtua.BNvTyMvY.mtKZmde3odbmEKffAeG.zhmTC3rLChbLCG.CMvWzwf0zwq.Aw5WDxq.64Qy66AS6RIW.7kse7j206RIW.nJG0AwPAufDp.ChjLDMvUDerLzMf1Bhq.zhmTC3rLChbLCL9FDMfSDwu.DgLTzxi.zhmTC3rLChbLCL9FyNrU.qxjYB3DsAwDODa.Dg9gAxHLza.Bwf4.nJi3mdyWzhvKAMLu.qxjYB3Dmzwz0.zhmTC3rLChbLCI0T.C2v0vgLTzw91Da.mJDRzhH6vuG.zgL2.rw5K.BwLU.CMvWzwf0sw50zxj2ywW.Aw5KzxHpzG.ugfNzvvW.y3vYCMvUDa.zg93BG.nfzPswXZCq.qxjYB3DeB3DU.y2XLyxjuAw1LB3v0.mJG0mte5mMrtyLfJta.BgvUz3rO.AxngAw5PDgu.ugfNzurVD24.A2v5.C3bPBMj1DhrVBG.mJK2otrfueTUzNq.yNv0Dg9U".split(".");
39
+ return p = function() {
40
+ return e;
41
+ }, p();
42
+ }
43
+ function m({ value: i, defaultValue: p, onValueChange: m, min: h = -Infinity, max: g = Infinity, step: _ = 1, largeStep: v, size: y = "md", disabled: b, formatValue: x, "aria-label": S, "aria-labelledby": C, decrementLabel: w = e(185), incrementLabel: T = e(184), name: E, id: D, className: O, style: k }) {
44
+ let A = e, [j, M] = n(i, p ?? Math[A(201)](g, Math[A(193)](h, 0)), m), N = Math[A(193)](f(_), f(Number[A(166)](h) ? h : 0)), P = (e) => Number(Math[A(201)](g, Math[A(193)](h, e))[A(192)](N)), [F, I] = s(j), [L, R] = s(null);
45
+ j !== F && (I(j), R(j > F ? "up" : A(206)));
46
+ let z = o(j);
47
+ a(() => {
48
48
  let e = A;
49
- z[e(144)] = j;
49
+ z[e(205)] = j;
50
50
  });
51
- let B = s({
51
+ let B = o({
52
52
  timer: 0,
53
53
  repeated: !1
54
- }), V = () => window[A(156)](B[A(144)][A(137)]);
55
- o(() => {
56
- let e = A, t = B[e(144)];
57
- return () => window.clearTimeout(t[e(137)]);
54
+ }), V = () => window[A(163)](B[A(205)][A(189)]);
55
+ a(() => {
56
+ let e = A, t = B[e(205)];
57
+ return () => window[e(163)](t[e(189)]);
58
58
  }, []);
59
59
  let H = (e) => {
60
60
  let t = A, n = P(e);
61
- return n !== z[t(144)] && (z[t(144)] = n, M(n), !0);
62
- }, U = (e) => H(z[A(144)] + e), W = (e) => (t) => {
61
+ return n !== z[t(205)] && (z[t(205)] = n, M(n), !0);
62
+ }, U = (e) => H(z[A(205)] + e), W = (e) => (n) => {
63
63
  let r = A;
64
- if (t[r(143)] !== 0 || b) return;
65
- V(), B[r(144)][r(157)] = !1;
64
+ if (n[r(171)] !== 0 || b) return;
65
+ V(), B[r(205)][r(182)] = !1;
66
66
  let i = () => {
67
- let t = r;
68
- B[t(144)].repeated = !0, U(e) && (B[t(144)].timer = window[t(146)](i, n[t(126)]));
67
+ let n = r;
68
+ B[n(205)].repeated = !0, U(e) && (B.current[n(189)] = window[n(197)](i, t[n(202)]));
69
69
  };
70
- B[r(144)][r(137)] = window[r(146)](i, n.repeatDelay);
70
+ B[r(205)].timer = window[r(197)](i, t.repeatDelay);
71
71
  }, G = (e) => () => {
72
- B[A(144)].repeated ? B.current.repeated = !1 : U(e);
72
+ let t = A;
73
+ B.current[t(182)] ? B[t(205)].repeated = !1 : U(e);
73
74
  }, K = (e) => {
74
75
  let t = A;
75
- if (b || e.nativeEvent[t(122)]) return;
76
+ if (b || e[t(175)].isComposing) return;
76
77
  let n = v ?? _ * 10, r = !0;
77
- e.key === t(160) || e[t(159)] === t(147) ? U(_) : e.key === t(141) || e[t(159)] === t(123) ? U(-_) : e[t(159)] === t(142) ? U(n) : e[t(159)] === "PageDown" ? U(-n) : e[t(159)] === t(130) && Number[t(116)](h) ? H(h) : e[t(159)] === "End" && Number[t(116)](g) ? H(g) : r = !1, r && e[t(155)]();
78
- }, q = x ? x(j) : j, J = typeof q === A(124) || typeof q == "number" ? String(q) : String(j), Y = Math[A(127)](String(Number[A(116)](g) ? g : j).length, String(Number[A(116)](h) ? h : j)[A(128)], String(j).length), X = (e, t, n, r) => d(A(143), {
79
- type: A(143),
80
- className: "ds-stepper__btn",
78
+ e.key === "ArrowUp" || e[t(168)] === t(191) ? U(_) : e.key === t(162) || e[t(168)] === t(195) ? U(-_) : e[t(168)] === t(204) ? U(n) : e[t(168)] === t(167) ? U(-n) : e[t(168)] === t(173) && Number[t(166)](h) ? H(h) : e[t(168)] === t(200) && Number[t(166)](g) ? H(g) : r = !1, r && e[t(187)]();
79
+ }, q = x ? x(j) : j, J = typeof q == "string" || typeof q === A(179) ? String(q) : String(j), Y = Math[A(193)](String(Number[A(166)](g) ? g : j)[A(165)], String(Number[A(166)](h) ? h : j)[A(165)], String(j)[A(165)]), X = (e, t, n, r) => u("button", {
80
+ type: "button",
81
+ className: A(190),
81
82
  "aria-label": t,
82
83
  tabIndex: -1,
83
84
  disabled: b || r,
@@ -88,37 +89,37 @@ function m({ value: t, defaultValue: a, onValueChange: m, min: h = -Infinity, ma
88
89
  onClick: G(e),
89
90
  children: n
90
91
  });
91
- return f(A(151), {
92
- className: i(A(120), "ds-stepper--" + y, O),
92
+ return d(A(199), {
93
+ className: r(A(181), A(196) + y, O),
93
94
  "data-disabled": b || void 0,
94
95
  style: {
95
96
  "--_digits": Y + "ch",
96
97
  ...k
97
98
  },
98
99
  children: [
99
- X(-_, w, d(l, {}), j <= h),
100
- d(A(121), {
100
+ X(-_, w, u(c, {}), j <= h),
101
+ u("span", {
101
102
  id: D,
102
- role: A(153),
103
+ role: A(169),
103
104
  tabIndex: b ? -1 : 0,
104
- className: A(148),
105
+ className: A(188),
105
106
  "aria-label": S,
106
107
  "aria-labelledby": C,
107
108
  "aria-valuenow": j,
108
- "aria-valuemin": Number[A(116)](h) ? h : void 0,
109
- "aria-valuemax": Number[A(116)](g) ? g : void 0,
109
+ "aria-valuemin": Number.isFinite(h) ? h : void 0,
110
+ "aria-valuemax": Number.isFinite(g) ? g : void 0,
110
111
  "aria-valuetext": x ? J : void 0,
111
112
  "aria-disabled": b || void 0,
112
113
  onKeyDown: K,
113
- children: d(A(121), {
114
- className: "ds-stepper__num",
114
+ children: u(A(172), {
115
+ className: A(174),
115
116
  "data-dir": L ?? void 0,
116
117
  children: q
117
118
  }, j)
118
119
  }),
119
- X(_, T, d(u, {}), j >= g),
120
- E && d(A(132), {
121
- type: A(136),
120
+ X(_, T, u(l, {}), j >= g),
121
+ E && u(A(183), {
122
+ type: "hidden",
122
123
  name: E,
123
124
  value: j
124
125
  })