@iamfiro/design 0.3.1 → 0.3.2

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 (156) hide show
  1. package/agents/avatar/AGENTS.md +29 -1
  2. package/agents/tooltip/AGENTS.md +1 -1
  3. package/lib/components/Accordion/Accordion2.js +81 -81
  4. package/lib/components/ActionBar/ActionBar2.js +38 -39
  5. package/lib/components/Alert/Alert2.js +79 -79
  6. package/lib/components/AppShell/AppShell2.js +45 -45
  7. package/lib/components/AreaChart/AreaChart.js +45 -46
  8. package/lib/components/BarChart/BarChart2.js +166 -166
  9. package/lib/components/BarList/BarList2.js +83 -83
  10. package/lib/components/Breadcrumb/Breadcrumb2.js +68 -72
  11. package/lib/components/Calendar/Calendar2.js +166 -165
  12. package/lib/components/Calendar/DatePicker2.js +139 -139
  13. package/lib/components/Calendar/date.js +61 -58
  14. package/lib/components/Card/Card2.js +47 -47
  15. package/lib/components/CardFrame/CardFrame2.js +50 -45
  16. package/lib/components/Chart/ChartParts.js +78 -78
  17. package/lib/components/Chart/chart2.js +62 -62
  18. package/lib/components/Chart/useChartInteraction.js +56 -56
  19. package/lib/components/ChatBubble/ChatBubble2.js +116 -116
  20. package/lib/components/ChatBubble/formatChatTime.js +46 -39
  21. package/lib/components/ChatComposer/ChatComposer2.js +43 -43
  22. package/lib/components/CodeBlock/CodeBlock2.js +57 -57
  23. package/lib/components/CodeBlock/highlight.js +74 -74
  24. package/lib/components/ColorPicker/ColorPicker2.js +357 -357
  25. package/lib/components/ColorPicker/color.js +83 -83
  26. package/lib/components/ColorPicker/presets.js +47 -41
  27. package/lib/components/Combobox/Combobox2.js +143 -142
  28. package/lib/components/CommandMenu/CommandMenu.js +100 -100
  29. package/lib/components/Comment/Comment2.js +59 -60
  30. package/lib/components/ContextMenu/ContextMenu2.js +95 -96
  31. package/lib/components/DataGrid/DataGrid2.js +1202 -1203
  32. package/lib/components/DataGrid/GridPopover.js +87 -87
  33. package/lib/components/DataGrid/anchor.js +17 -19
  34. package/lib/components/DataGrid/model.js +261 -261
  35. package/lib/components/DataGrid/panels.js +397 -395
  36. package/lib/components/DataGrid/typeMeta.js +51 -51
  37. package/lib/components/DataGrid/types.js +38 -36
  38. package/lib/components/DescriptionList/DescriptionList2.js +74 -74
  39. package/lib/components/Dialog/AlertDialog.js +81 -82
  40. package/lib/components/Dialog/Dialog2.js +63 -63
  41. package/lib/components/Dialog/modal.js +70 -69
  42. package/lib/components/Drawer/Drawer2.js +122 -123
  43. package/lib/components/DropdownMenu/DropdownMenu2.js +257 -258
  44. package/lib/components/DropdownMenu/menuCore.js +43 -44
  45. package/lib/components/Dropzone/Dropzone2.js +76 -77
  46. package/lib/components/EmptyState/EmptyState2.js +59 -56
  47. package/lib/components/FileChip/FileChip2.js +73 -49
  48. package/lib/components/FileUpload/FileUpload.js +149 -150
  49. package/lib/components/FilterChips/FilterChips2.js +59 -59
  50. package/lib/components/FunnelChart/FunnelChart2.js +123 -123
  51. package/lib/components/FunnelChart/funnel.js +44 -47
  52. package/lib/components/Highlight/Highlight2.js +48 -48
  53. package/lib/components/HoverCard/HoverCard.js +89 -64
  54. package/lib/components/InlineDiff/InlineDiff2.js +123 -123
  55. package/lib/components/InlineDiff/diff.js +76 -76
  56. package/lib/components/InlineDiff/useDiffReview.js +69 -68
  57. package/lib/components/Kanban/Kanban2.js +366 -366
  58. package/lib/components/Kanban/KanbanCard.js +67 -67
  59. package/lib/components/Kanban/move.js +41 -45
  60. package/lib/components/LineChart/LineChart2.js +196 -196
  61. package/lib/components/List/List2.js +60 -59
  62. package/lib/components/Listbox/Listbox2.js +94 -94
  63. package/lib/components/Marker/Marker2.js +59 -52
  64. package/lib/components/Menubar/Menubar2.js +110 -112
  65. package/lib/components/MultiSelect/MultiSelect2.js +112 -112
  66. package/lib/components/NavigationMenu/NavigationMenu2.js +239 -240
  67. package/lib/components/NoticeStack/NoticeStack2.js +99 -99
  68. package/lib/components/NumberStepper/NumberStepper2.js +66 -65
  69. package/lib/components/OtpInput/OtpInput2.js +87 -88
  70. package/lib/components/Pagination/Pagination2.js +81 -81
  71. package/lib/components/Pagination/paginationRange.js +25 -24
  72. package/lib/components/PhoneInput/PhoneInput.js +77 -77
  73. package/lib/components/PieChart/PieChart2.js +101 -101
  74. package/lib/components/PieChart/arc.js +73 -76
  75. package/lib/components/PieChart/useArcTween.js +61 -57
  76. package/lib/components/Popover/Popover2.js +65 -64
  77. package/lib/components/ProgressTracker/ProgressTracker2.js +119 -119
  78. package/lib/components/Rating/Rating2.js +85 -85
  79. package/lib/components/Resizable/Resizable2.js +139 -139
  80. package/lib/components/Resizable/layout.js +68 -68
  81. package/lib/components/ScaledPreview/ScaledPreview2.js +55 -55
  82. package/lib/components/ScatterChart/ScatterChart2.js +249 -249
  83. package/lib/components/ScatterChart/scatter.js +55 -55
  84. package/lib/components/ScrollArea/ScrollArea2.js +132 -131
  85. package/lib/components/Select/Select2.js +81 -81
  86. package/lib/components/Sidebar/Sidebar2.js +61 -61
  87. package/lib/components/Skeleton/Skeleton2.js +46 -46
  88. package/lib/components/Slider/Slider2.js +74 -73
  89. package/lib/components/SocialLoginButton/SocialLoginButton.js +70 -70
  90. package/lib/components/SparkChart/SparkChart2.js +138 -137
  91. package/lib/components/SparkChart/spark.js +40 -61
  92. package/lib/components/Sparkbar/Sparkbar2.js +60 -59
  93. package/lib/components/SplitView/SplitView2.js +42 -42
  94. package/lib/components/Stat/Stat2.js +88 -88
  95. package/lib/components/StepList/StepList2.js +71 -71
  96. package/lib/components/Table/Table2.js +70 -70
  97. package/lib/components/Tabs/Tabs2.js +89 -89
  98. package/lib/components/TagInput/TagInput2.js +154 -154
  99. package/lib/components/TimePicker/TimePicker2.js +225 -226
  100. package/lib/components/TimePicker/time.js +50 -50
  101. package/lib/components/Timeline/Timeline2.js +201 -201
  102. package/lib/components/Timeline/scale.js +55 -53
  103. package/lib/components/Toast/Toaster.js +90 -92
  104. package/lib/components/Toast/store.js +91 -87
  105. package/lib/components/ToggleGroup/ToggleGroup2.js +84 -84
  106. package/lib/components/Toolbar/Toolbar2.js +166 -168
  107. package/lib/components/Tracker/Tracker2.js +89 -89
  108. package/lib/components/TreeDiagram/TreeDiagram2.js +126 -125
  109. package/lib/components/TreeView/TreeView2.js +154 -156
  110. package/lib/hooks/timing.js +35 -36
  111. package/lib/hooks/useControllableState.js +40 -39
  112. package/lib/hooks/useCountdown.js +57 -55
  113. package/lib/hooks/useDigitInput.js +59 -83
  114. package/lib/hooks/useDismiss.js +49 -46
  115. package/lib/hooks/useElapsed.js +53 -55
  116. package/lib/hooks/useFloating.js +44 -44
  117. package/lib/hooks/useFocusTrap.js +46 -70
  118. package/lib/hooks/usePresence.js +32 -29
  119. package/lib/hooks/usePressToOpen.js +50 -50
  120. package/lib/hooks/useScrollLock.js +51 -51
  121. package/lib/hooks/useSelection.js +55 -46
  122. package/lib/index.js +34 -35
  123. package/lib/primitives/AspectRatio2.js +59 -55
  124. package/lib/primitives/BrandIcon.js +160 -160
  125. package/lib/primitives/ColorDot2.js +38 -42
  126. package/lib/primitives/CopyButton2.js +56 -56
  127. package/lib/primitives/CountBadge2.js +66 -64
  128. package/lib/primitives/Countdown2.js +31 -32
  129. package/lib/primitives/Delta2.js +46 -71
  130. package/lib/primitives/Elapsed.js +44 -44
  131. package/lib/primitives/FileIcon2.js +82 -82
  132. package/lib/primitives/Flag2.js +134 -134
  133. package/lib/primitives/IconStack2.js +31 -53
  134. package/lib/primitives/IconTile2.js +46 -48
  135. package/lib/primitives/Kbd2.js +57 -57
  136. package/lib/primitives/Layout2.js +78 -78
  137. package/lib/primitives/Link2.js +29 -30
  138. package/lib/primitives/MaskedText2.js +47 -73
  139. package/lib/primitives/Progress2.js +77 -78
  140. package/lib/primitives/RelativeTime.js +49 -46
  141. package/lib/primitives/SearchInput2.js +58 -59
  142. package/lib/primitives/SelectorButton2.js +76 -74
  143. package/lib/primitives/Spinner2.js +62 -58
  144. package/lib/primitives/StatusIcon2.js +56 -56
  145. package/lib/primitives/Swatch2.js +69 -65
  146. package/lib/primitives/Tooltip2.js +92 -92
  147. package/lib/primitives/Typography2.js +68 -68
  148. package/lib/primitives/formatCountdown.js +39 -43
  149. package/lib/primitives/formatElapsed.js +43 -39
  150. package/lib/primitives/formatRelativeTime.js +50 -50
  151. package/lib/primitives/hotkey.js +76 -76
  152. package/lib/primitives/index.js +201 -181
  153. package/lib/primitives/maskValue.js +35 -39
  154. package/lib/style.css +1 -1
  155. package/lib/types/primitives/index.d.ts +6 -2
  156. package/package.json +1 -1
@@ -1,27 +1,19 @@
1
1
  "use client";
2
- (function(t, n) {
3
- let r = e, i = t();
2
+ function e() {
3
+ let t = /* @__PURE__ */ "zxLLyNjVDW.BgvUz3rO.mZeWntC5r3vozfPd.CMvSyxrLzfrHCMDLDa.AM9PBG.C3rHCNq.mtuXmJb3wgHTEuS.y3vYCMvUDfrHCMDLDa.zMLSDgvY.ote4nMfLywHevq.w2rHDgeTBM90AwnLlwLKpsi.ntG1mJmWtMHNBgzL.y2XLyxjuAw1LB3v0.ywn0AxzLrwXLBwvUDa.y29UDgfPBNm.DgL0Bgu.iL0GlMrZlw5VDgLJzs1ZDgfJA19Fy2XVC2u.zM9VDgvY.zM9YrwfJAa.ndG2CLHICerj.zgL2.C3bHBG.Bw91C2u.y3vYCMvUDa.zgvSzxrL.zhmTBM90AwnLlxn0ywnR.C2v0.zhmTBM90AwnLlxn0ywnRx19JBg9Zzq.y2fWDgLVBG.zhmTBM90AwnLlxn0ywnRx19JyxjK.otLmthPsCLO.zhmTBM90AwnLlxn0ywnRx19PBM5LCG.zgLZBwLZC2LIBgu.ywrK.z2v0.AgfZ.zxnJyxbL.mJbnALbtsve.BwLU.CxvLCNLtzwXLy3rVCG.C2v0vgLTzw91Da.C2vJDgLVBG.mJm2mti1mK54rePrEq.mty4Dw52CvzX.BwfW.Bwf4.Cg9PBNrLCLr5Cgu.zM9JDxm.zgLZy29UBMvJDa.ndy2mte2EwruEufZ.Ag92zxjjBNrLBNq.zhmTBM90AwnLlxn0ywnRx19PDgvT.B2zMC2v0sgvPz2H0.nZi3ntmWv3zbBezf.zMLUza".split(".");
4
+ return e = function() {
5
+ return t;
6
+ }, e();
7
+ }
8
+ (function(e, t) {
9
+ let n = v, r = e();
4
10
  for (;;) try {
5
- if (parseInt(r(239)) / 1 + -parseInt(r(251)) / 2 * (parseInt(r(248)) / 3) + parseInt(r(254)) / 4 * (parseInt(r(277)) / 5) + parseInt(r(243)) / 6 * (-parseInt(r(252)) / 7) + parseInt(r(269)) / 8 + -parseInt(r(259)) / 9 + -parseInt(r(278)) / 10 * (parseInt(r(256)) / 11) == n) break;
6
- i.push(i.shift());
11
+ if (-parseInt(n(444)) / 1 + parseInt(n(451)) / 2 * (parseInt(n(430)) / 3) + -parseInt(n(479)) / 4 * (-parseInt(n(453)) / 5) + parseInt(n(484)) / 6 + -parseInt(n(436)) / 7 + -parseInt(n(448)) / 8 * (-parseInt(n(461)) / 9) + -parseInt(n(440)) / 10 * (parseInt(n(472)) / 11) == t) break;
12
+ r.push(r.shift());
7
13
  } catch {
8
- i.push(i.shift());
14
+ r.push(r.shift());
9
15
  }
10
- })(b, 186490);
11
- function e(t, n) {
12
- t -= 228;
13
- let r = b(), i = r[t];
14
- e.XPvvnL === void 0 && (e.YvaHYS = function(e) {
15
- let t = "", n = "";
16
- 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);
17
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
18
- return decodeURIComponent(n);
19
- }, e.OPcTQZ = {}, e.XPvvnL = !0);
20
- let a = r[0];
21
- e.fVFZrW !== a && (e.OPcTQZ = {}, e.fVFZrW = a);
22
- let o = e.OPcTQZ[t];
23
- return o === void 0 ? (i = e.YvaHYS(i), e.OPcTQZ[t] = i) : i = o, i;
24
- }
16
+ })(e, 306096);
25
17
  import { TIMING as t } from "../../hooks/timing.js";
26
18
  import { Text as n } from "../../primitives/Typography2.js";
27
19
  import { Button as r, cx as i } from "../../primitives/index.js";
@@ -31,18 +23,32 @@ import { useCallback as c, useEffect as l, useLayoutEffect as u, useRef as d, us
31
23
  import { X as p } from "lucide-react";
32
24
  import { jsx as m, jsxs as h } from "react/jsx-runtime";
33
25
  var g = 8, _ = 320;
34
- function v({ items: n, onDismiss: r, visible: a = 3, expanded: o, direction: s = "up", gap: u = 8, dismissLabel: p = "닫기", className: h, style: v, "aria-label": b = "공지" }) {
35
- let x = e, [S, C] = f({}), [w, T] = f(/* @__PURE__ */ new Set()), [E, D] = f(/* @__PURE__ */ new Set()), [O, k] = f(!1), [A, j] = f(!1), M = d(0), N = d(/* @__PURE__ */ new Set()), P = d(null), F = n[x(249)]((e) => e.id)[x(268)]("\n"), [I, L] = f(F);
26
+ function v(t, n) {
27
+ t -= 430;
28
+ let r = e(), i = r[t];
29
+ v.oMsnRe === void 0 && (v.dkjBDm = function(e) {
30
+ let t = "", n = "";
31
+ 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);
32
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
33
+ return decodeURIComponent(n);
34
+ }, v.ossZjC = {}, v.oMsnRe = !0);
35
+ let a = r[0];
36
+ v.YrCjyr !== a && (v.ossZjC = {}, v.YrCjyr = a);
37
+ let o = v.ossZjC[t];
38
+ return o === void 0 ? (i = v.dkjBDm(i), v.ossZjC[t] = i) : i = o, i;
39
+ }
40
+ function y({ items: e, onDismiss: n, visible: r = 3, expanded: a, direction: o = "up", gap: s = 8, dismissLabel: u = "닫기", className: p, style: h, "aria-label": y = "공지" }) {
41
+ let x = v, [S, C] = f({}), [w, T] = f(/* @__PURE__ */ new Set()), [E, D] = f(/* @__PURE__ */ new Set()), [O, k] = f(!1), [A, j] = f(!1), M = d(0), N = d(/* @__PURE__ */ new Set()), P = d(null), F = e[x(431)]((e) => e.id)[x(446)]("\n"), [I, L] = f(F);
36
42
  if (F !== I) {
37
43
  L(F);
38
- let e = new Set(n[x(249)]((e) => e.id));
39
- D((t) => new Set([...t].filter((t) => e.has(t))));
44
+ let t = new Set(e[x(431)]((e) => e.id));
45
+ D((e) => new Set([...e][x(450)]((e) => t.has(e))));
40
46
  }
41
47
  l(() => {
42
- let e = x, t = N[e(237)];
48
+ let e = x, t = N[e(465)];
43
49
  return () => {
44
50
  let n = e;
45
- window[n(250)](M.current), t[n(258)]((e) => window[n(250)](e));
51
+ window[n(454)](M.current), t[n(460)]((e) => window[n(454)](e));
46
52
  };
47
53
  }, []);
48
54
  let R = c((e, t) => {
@@ -50,61 +56,61 @@ function v({ items: n, onDismiss: r, visible: a = 3, expanded: o, direction: s =
50
56
  ...n,
51
57
  [e]: t
52
58
  });
53
- }, []), z = n[x(263)]((e) => !E.has(e.id)), B = z[x(263)]((e) => !w[x(238)](e.id)), V = B[x(235)] > 1 && (o || O || A), H = s === "up" ? -1 : 1, U = /* @__PURE__ */ new Map(), W = 0, G = 0;
54
- for (let e of z) U[x(274)](e.id, {
59
+ }, []), z = e[x(450)]((e) => !E[x(477)](e.id)), B = z.filter((e) => !w[x(477)](e.id)), V = B.length > 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(468)](e.id, {
55
61
  index: G,
56
62
  y: W
57
- }), !w.has(e.id) && (G < a && (W += (S[e.id] ?? 0) + u), G++);
58
- let K = S[B[0]?.id] ?? 0, q = B.length === 0 ? 0 : V ? Math[x(247)](0, W - u) : K + (Math.min(B.length, a) - 1) * g, J = (e) => {
63
+ }), !w[x(477)](e.id) && (G < r && (W += (S[e.id] ?? 0) + s), G++);
64
+ let K = S[B[0]?.id] ?? 0, q = B[x(443)] === 0 ? 0 : V ? Math[x(432)](0, W - s) : K + (Math[x(480)](B[x(443)], r) - 1) * g, J = (e) => {
59
65
  let t = x;
60
66
  if (w.has(e)) return;
61
- let n = P.current;
62
- if ((n?.querySelector("[data-notice-id=\"" + CSS[t(246)](e) + "\"]"))?.[t(264)](document.activeElement)) {
63
- let r = B[t(273)]((n) => n.id !== e && n[t(265)] !== !1);
64
- n?.querySelector(t(245) + (r ? CSS[t(246)](r.id) : "") + "\"] .ds-notice-stack__close")?.focus();
67
+ let r = P[t(465)];
68
+ if ((r?.querySelector(t(452) + CSS[t(478)](e) + "\"]"))?.contains(document[t(455)])) {
69
+ let n = B[t(441)]((n) => n.id !== e && n[t(474)] !== !1);
70
+ r?.[t(481)]("[data-notice-id=\"" + (n ? CSS[t(478)](n.id) : "") + t(458))?.[t(434)]();
65
71
  }
66
- T((n) => new Set(n)[t(232)](e));
67
- let i = window[t(236)](() => {
68
- let n = t;
69
- N[n(237)][n(257)](i), D((t) => new Set(t).add(e)), T((t) => {
70
- let r = n, i = new Set(t);
71
- return i[r(257)](e), i;
72
- }), r?.(e);
72
+ T((n) => new Set(n)[t(475)](e));
73
+ let i = window[t(482)](() => {
74
+ let r = t;
75
+ N[r(465)][r(466)](i), D((t) => new Set(t)[r(475)](e)), T((t) => {
76
+ let n = r, i = new Set(t);
77
+ return i[n(466)](e), i;
78
+ }), n?.(e);
73
79
  }, _);
74
- N[t(237)][t(232)](i);
80
+ N[t(465)][t(475)](i);
75
81
  }, Y = (e) => {
76
82
  let n = x;
77
- window[n(250)](M[n(237)]), M[n(237)] = window[n(236)](() => k(e), e ? t[n(266)] : t[n(272)]);
83
+ window[n(454)](M[n(465)]), M[n(465)] = window[n(482)](() => k(e), e ? t[n(437)] : t.hoverGrace);
78
84
  };
79
- return z[x(235)] === 0 ? null : m("section", {
80
- className: i(x(231), h),
81
- "data-direction": s,
85
+ return z.length === 0 ? null : m(x(483), {
86
+ className: i(x(467), p),
87
+ "data-direction": o,
82
88
  "data-expanded": V || void 0,
83
- "aria-label": b,
84
- style: v,
85
- onPointerEnter: (e) => e[x(261)] === x(240) && Y(!0),
86
- onPointerLeave: (e) => e.pointerType === x(240) && Y(!1),
89
+ "aria-label": y,
90
+ style: h,
91
+ onPointerEnter: (e) => e[x(433)] === x(464) && Y(!0),
92
+ onPointerLeave: (e) => e[x(433)] === x(464) && Y(!1),
87
93
  onFocus: () => j(!0),
88
- onBlur: (e) => !e.currentTarget[x(264)](e[x(255)]) && j(!1),
94
+ onBlur: (e) => !e[x(449)][x(456)](e[x(445)]) && j(!1),
89
95
  children: m("ol", {
90
96
  ref: P,
91
- className: x(276),
97
+ className: "ds-notice-stack__list",
92
98
  style: { height: q },
93
- children: z[x(249)]((e) => {
94
- let t = x, { index: n, y: r } = U[t(271)](e.id), i = !V && n > 0;
95
- return m(y, {
99
+ children: z[x(431)]((e) => {
100
+ let t = x, { index: n, y: i } = U[t(476)](e.id), a = !V && n > 0;
101
+ return m(b, {
96
102
  item: e,
97
103
  onHeight: R,
98
104
  onDismiss: () => J(e.id),
99
- dismissLabel: p,
100
- leaving: w.has(e.id),
101
- behind: i,
102
- hidden: n >= a,
105
+ dismissLabel: u,
106
+ leaving: w[t(477)](e.id),
107
+ behind: a,
108
+ hidden: n >= r,
103
109
  style: {
104
- "--_y": (V ? r : n * g) * H + "px",
110
+ "--_y": (V ? i : n * g) * H + "px",
105
111
  "--_scale": V ? 1 : 1 - n * .05,
106
- "--_z": z[t(235)] - n,
107
- "--_h": (i ? K : S[e.id] ?? 0) + "px",
112
+ "--_z": z.length - n,
113
+ "--_h": (a ? K : S[e.id] ?? 0) + "px",
108
114
  "--_enter": -H * 16 + "px"
109
115
  }
110
116
  }, e.id);
@@ -112,8 +118,8 @@ function v({ items: n, onDismiss: r, visible: a = 3, expanded: o, direction: s =
112
118
  })
113
119
  });
114
120
  }
115
- function y({ item: t, onHeight: i, onDismiss: c, dismissLabel: g, leaving: _, behind: v, hidden: y, style: b }) {
116
- let x = e, S = d(null), [C, w] = f(!1);
121
+ function b({ item: e, onHeight: t, onDismiss: i, dismissLabel: c, leaving: g, behind: _, hidden: y, style: b }) {
122
+ let x = v, S = d(null), [C, w] = f(!1);
117
123
  return l(() => {
118
124
  let e = 0, t = requestAnimationFrame(() => {
119
125
  e = requestAnimationFrame(() => w(!0));
@@ -122,57 +128,51 @@ function y({ item: t, onHeight: i, onDismiss: c, dismissLabel: g, leaving: _, be
122
128
  cancelAnimationFrame(t), cancelAnimationFrame(e);
123
129
  };
124
130
  }, []), u(() => {
125
- let n = e, r = S.current;
131
+ let n = v, r = S.current;
126
132
  if (!r) return;
127
- let a = () => i(t.id, r[n(241)]);
128
- a();
129
- let o = new ResizeObserver(a);
130
- return o.observe(r), () => o.disconnect();
131
- }, [t.id, i]), m("li", {
132
- className: x(275),
133
- "data-notice-id": t.id,
133
+ let i = () => t(e.id, r[n(439)]);
134
+ i();
135
+ let a = new ResizeObserver(i);
136
+ return a.observe(r), () => a[n(435)]();
137
+ }, [e.id, t]), m("li", {
138
+ className: x(438),
139
+ "data-notice-id": e.id,
134
140
  "data-mounted": C || void 0,
135
- "data-leaving": _ || void 0,
136
- "data-behind": v || void 0,
141
+ "data-leaving": g || void 0,
142
+ "data-behind": _ || void 0,
137
143
  "data-hidden": y || void 0,
138
- inert: _ || y || void 0,
144
+ inert: g || y || void 0,
139
145
  style: b,
140
146
  children: m(a, {
141
147
  padding: "sm",
142
- className: x(228),
143
- children: h(x(244), {
148
+ className: x(471),
149
+ children: h(x(462), {
144
150
  ref: S,
145
- className: x(230),
151
+ className: x(473),
146
152
  children: [m(s, {
147
- eyebrow: t[x(229)] && m(n, {
148
- as: x(234),
149
- variant: x(233),
150
- tone: x(270),
151
- children: t.eyebrow
153
+ eyebrow: e[x(442)] && m(n, {
154
+ as: x(463),
155
+ variant: x(470),
156
+ tone: "accent",
157
+ children: e[x(442)]
152
158
  }),
153
- title: t[x(253)],
154
- description: t[x(262)],
155
- actions: t.dismissible !== !1 && m(r, {
156
- className: x(267),
159
+ title: e[x(457)],
160
+ description: e.description,
161
+ actions: e[x(474)] !== !1 && m(r, {
162
+ className: x(469),
157
163
  variant: "ghost",
158
164
  size: "sm",
159
165
  iconOnly: !0,
160
166
  icon: m(p, {}),
161
- "aria-label": g,
162
- onClick: c
167
+ "aria-label": c,
168
+ onClick: i
163
169
  })
164
- }), t[x(242)] && m(o, {
165
- align: x(260),
166
- children: t[x(242)]
170
+ }), e[x(459)] && m(o, {
171
+ align: x(447),
172
+ children: e[x(459)]
167
173
  })]
168
174
  })
169
175
  })
170
176
  });
171
177
  }
172
- export { v as NoticeStack };
173
- function b() {
174
- let e = /* @__PURE__ */ "zgvSzxrL.zM9YrwfJAa.mJeWndm4C2HIrhDk.C3rHCNq.Cg9PBNrLCLr5Cgu.zgvZy3jPChrPB24.zMLSDgvY.y29UDgfPBNm.zgLZBwLZC2LIBgu.Ag92zxjjBNrLBNq.zhmTBM90AwnLlxn0ywnRx19JBg9Zzq.AM9PBG.mteZodG0ogTIze1MEa.ywnJzw50.z2v0.Ag92zxjhCMfJzq.zMLUza.C2v0.zhmTBM90AwnLlxn0ywnRx19PDgvT.zhmTBM90AwnLlxn0ywnRx19SAxn0.mJm0nta1q2jRwe9q.nJm3mZbMwM9izuC.zhmTBM90AwnLlxn0ywnRx19JyxjK.zxLLyNjVDW.zhmTBM90AwnLlxn0ywnRx19PBM5LCG.zhmTBM90AwnLlxn0ywnR.ywrK.y2fWDgLVBG.C3bHBG.BgvUz3rO.C2v0vgLTzw91Da.y3vYCMvUDa.AgfZ.mJu1nda0ywvHz0HU.Bw91C2u.B2zMC2v0sgvPz2H0.zM9VDgvY.mtyYnNDdugPxsW.zgL2.w2rHDgeTBM90AwnLlwLKpsi.zxnJyxbL.Bwf4.mZbZwwrOCMm.BwfW.y2XLyxjuAw1LB3v0.mty1odzVt1vAsKO.mZaXAMXxrfv5.DgL0Bgu.nezuDNzkDq.CMvSyxrLzfrHCMDLDa.mJqYD1DNr1DL".split(".");
175
- return b = function() {
176
- return e;
177
- }, b();
178
- }
178
+ export { y as NoticeStack };
@@ -1,77 +1,78 @@
1
1
  "use client";
2
- function e(t, n) {
3
- t -= 303;
4
- let r = m(), i = r[t];
5
- e.cKbYLx === void 0 && (e.uLQdPO = function(e) {
2
+ const e = d;
3
+ (function(e, t) {
4
+ let n = d, r = e();
5
+ for (;;) try {
6
+ if (parseInt(n(144)) / 1 + parseInt(n(137)) / 2 + parseInt(n(140)) / 3 * (parseInt(n(139)) / 4) + -parseInt(n(136)) / 5 + parseInt(n(171)) / 6 + -parseInt(n(151)) / 7 + parseInt(n(161)) / 8 * (-parseInt(n(164)) / 9) == t) break;
7
+ r.push(r.shift());
8
+ } catch {
9
+ r.push(r.shift());
10
+ }
11
+ })(m, 764083);
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
+ /* empty css */
16
+ import { useEffect as i, useRef as a, useState as o } from "react";
17
+ import { Minus as s, Plus as c } from "lucide-react";
18
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
19
+ function d(e, t) {
20
+ e -= 131;
21
+ let n = m(), r = n[e];
22
+ d.TvwkzP === void 0 && (d.lwLUUM = function(e) {
6
23
  let t = "", n = "";
7
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);
8
25
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
9
26
  return decodeURIComponent(n);
10
- }, e.CRUbwC = {}, e.cKbYLx = !0);
11
- let a = r[0];
12
- e.vgYTOK !== a && (e.CRUbwC = {}, e.vgYTOK = a);
13
- let o = e.CRUbwC[t];
14
- return o === void 0 ? (i = e.uLQdPO(i), e.CRUbwC[t] = i) : i = o, i;
27
+ }, d.hbNIAn = {}, d.TvwkzP = !0);
28
+ let i = n[0];
29
+ d.daAhxX !== i && (d.hbNIAn = {}, d.daAhxX = i);
30
+ let a = d.hbNIAn[e];
31
+ return a === void 0 ? (r = d.lwLUUM(r), d.hbNIAn[e] = r) : r = a, r;
15
32
  }
16
- const t = e;
17
- (function(t, n) {
18
- let r = e, i = t();
19
- for (;;) try {
20
- if (-parseInt(r(307)) / 1 * (parseInt(r(336)) / 2) + -parseInt(r(309)) / 3 + -parseInt(r(312)) / 4 + -parseInt(r(317)) / 5 + -parseInt(r(332)) / 6 * (parseInt(r(330)) / 7) + -parseInt(r(303)) / 8 * (-parseInt(r(326)) / 9) + parseInt(r(316)) / 10 * (parseInt(r(327)) / 11) == n) break;
21
- i.push(i.shift());
22
- } catch {
23
- i.push(i.shift());
24
- }
25
- })(m, 197900);
26
- import { TIMING as n } from "../../hooks/timing.js";
27
- import { useControllableState as r } from "../../hooks/useControllableState.js";
28
- import { cx as i } from "../../primitives/index.js";
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 = (t) => {
34
- let n = e, r = String(t), i = r[n(344)](".");
35
- return i < 0 ? 0 : r[n(306)] - i - 1;
33
+ var f = (e) => {
34
+ let t = d, n = String(e), r = n.indexOf(".");
35
+ return r < 0 ? 0 : n[t(134)] - r - 1;
36
36
  };
37
- function p({ value: e, 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 = t(320), incrementLabel: T = t(331), name: E, id: D, className: O, style: k }) {
38
- let A = t, [j, M] = r(e, p ?? Math.min(g, Math[A(343)](h, 0)), m), N = Math.max(f(_), f(Number[A(342)](h) ? h : 0)), P = (e) => Number(Math[A(322)](g, Math.max(h, e))[A(329)](N)), [F, I] = s(j), [L, R] = s(null);
39
- j !== F && (I(j), R(j > F ? "up" : "down"));
40
- let z = o(j);
41
- a(() => {
42
- z.current = j;
37
+ function p({ value: d, 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(143), incrementLabel: T = e(172), name: E, id: D, className: O, style: k }) {
38
+ let A = e, [j, M] = n(d, p ?? Math[A(150)](g, Math[A(160)](h, 0)), m), N = Math.max(f(_), f(Number[A(142)](h) ? h : 0)), P = (e) => Number(Math[A(150)](g, Math.max(h, e))[A(154)](N)), [F, I] = o(j), [L, R] = o(null);
39
+ j !== F && (I(j), R(j > F ? "up" : A(167)));
40
+ let z = a(j);
41
+ i(() => {
42
+ let e = A;
43
+ z[e(174)] = j;
43
44
  });
44
- let B = o({
45
+ let B = a({
45
46
  timer: 0,
46
47
  repeated: !1
47
- }), V = () => window.clearTimeout(B[A(308)].timer);
48
- a(() => {
49
- let e = A, t = B[e(308)];
50
- return () => window[e(338)](t[e(313)]);
48
+ }), V = () => window[A(156)](B[A(174)][A(158)]);
49
+ i(() => {
50
+ let e = A, t = B[e(174)];
51
+ return () => window[e(156)](t.timer);
51
52
  }, []);
52
53
  let H = (e) => {
53
54
  let t = A, n = P(e);
54
- return n !== z[t(308)] && (z[t(308)] = n, M(n), !0);
55
- }, U = (e) => H(z[A(308)] + e), W = (e) => (t) => {
55
+ return n !== z[t(174)] && (z.current = n, M(n), !0);
56
+ }, U = (e) => H(z[A(174)] + e), W = (e) => (n) => {
56
57
  let r = A;
57
- if (t[r(319)] !== 0 || b) return;
58
- V(), B[r(308)][r(339)] = !1;
58
+ if (n[r(173)] !== 0 || b) return;
59
+ V(), B[r(174)].repeated = !1;
59
60
  let i = () => {
60
- let t = r;
61
- B[t(308)][t(339)] = !0, U(e) && (B.current[t(313)] = window[t(304)](i, n[t(325)]));
61
+ let n = r;
62
+ B[n(174)][n(159)] = !0, U(e) && (B[n(174)][n(158)] = window[n(155)](i, t[n(149)]));
62
63
  };
63
- B.current[r(313)] = window[r(304)](i, n.repeatDelay);
64
+ B[r(174)].timer = window[r(155)](i, t.repeatDelay);
64
65
  }, G = (e) => () => {
65
66
  let t = A;
66
- B[t(308)][t(339)] ? B[t(308)][t(339)] = !1 : U(e);
67
+ B[t(174)][t(159)] ? B.current[t(159)] = !1 : U(e);
67
68
  }, K = (e) => {
68
69
  let t = A;
69
- if (b || e[t(321)].isComposing) return;
70
+ if (b || e[t(132)][t(162)]) return;
70
71
  let n = v ?? _ * 10, r = !0;
71
- e[t(340)] === "ArrowUp" || e[t(340)] === t(314) ? U(_) : e[t(340)] === "ArrowDown" || e[t(340)] === "ArrowLeft" ? U(-_) : e.key === t(335) ? U(n) : e[t(340)] === "PageDown" ? U(-n) : e.key === t(324) && Number[t(342)](h) ? H(h) : e[t(340)] === t(328) && Number[t(342)](g) ? H(g) : r = !1, r && e[t(311)]();
72
- }, q = x ? x(j) : j, J = typeof q === A(310) || typeof q == "number" ? String(q) : String(j), Y = Math[A(343)](String(Number[A(342)](g) ? g : j)[A(306)], String(Number[A(342)](h) ? h : j)[A(306)], String(j)[A(306)]), X = (e, t, n, r) => u("button", {
73
- type: A(319),
74
- className: A(337),
72
+ e.key === t(135) || e[t(157)] === t(145) ? U(_) : e[t(157)] === t(147) || e[t(157)] === t(168) ? U(-_) : e[t(157)] === t(170) ? U(n) : e[t(157)] === t(152) ? U(-n) : e[t(157)] === t(131) && Number[t(142)](h) ? H(h) : e[t(157)] === t(166) && Number[t(142)](g) ? H(g) : r = !1, r && e[t(148)]();
73
+ }, q = x ? x(j) : j, J = typeof q === A(165) || typeof q === A(133) ? String(q) : String(j), Y = Math[A(160)](String(Number[A(142)](g) ? g : j).length, String(Number[A(142)](h) ? h : j)[A(134)], String(j)[A(134)]), X = (e, t, n, r) => l("button", {
74
+ type: A(173),
75
+ className: A(163),
75
76
  "aria-label": t,
76
77
  tabIndex: -1,
77
78
  disabled: b || r,
@@ -82,37 +83,37 @@ function p({ value: e, defaultValue: p, onValueChange: m, min: h = -Infinity, ma
82
83
  onClick: G(e),
83
84
  children: n
84
85
  });
85
- return d(A(333), {
86
- className: i(A(334), "ds-stepper--" + y, O),
86
+ return u(A(141), {
87
+ className: r(A(153), "ds-stepper--" + y, O),
87
88
  "data-disabled": b || void 0,
88
89
  style: {
89
90
  "--_digits": Y + "ch",
90
91
  ...k
91
92
  },
92
93
  children: [
93
- X(-_, w, u(c, {}), j <= h),
94
- u(A(315), {
94
+ X(-_, w, l(s, {}), j <= h),
95
+ l(A(169), {
95
96
  id: D,
96
- role: A(318),
97
+ role: "spinbutton",
97
98
  tabIndex: b ? -1 : 0,
98
99
  className: "ds-stepper__value",
99
100
  "aria-label": S,
100
101
  "aria-labelledby": C,
101
102
  "aria-valuenow": j,
102
103
  "aria-valuemin": Number.isFinite(h) ? h : void 0,
103
- "aria-valuemax": Number[A(342)](g) ? g : void 0,
104
+ "aria-valuemax": Number.isFinite(g) ? g : void 0,
104
105
  "aria-valuetext": x ? J : void 0,
105
106
  "aria-disabled": b || void 0,
106
107
  onKeyDown: K,
107
- children: u("span", {
108
- className: A(305),
108
+ children: l(A(169), {
109
+ className: "ds-stepper__num",
109
110
  "data-dir": L ?? void 0,
110
111
  children: q
111
112
  }, j)
112
113
  }),
113
- X(_, T, u(l, {}), j >= g),
114
- E && u(A(323), {
115
- type: A(341),
114
+ X(_, T, l(c, {}), j >= g),
115
+ E && l(A(138), {
116
+ type: A(146),
116
117
  name: E,
117
118
  value: j
118
119
  })
@@ -120,7 +121,7 @@ function p({ value: e, defaultValue: p, onValueChange: m, min: h = -Infinity, ma
120
121
  });
121
122
  }
122
123
  function m() {
123
- let e = /* @__PURE__ */ "qxjYB3DsAwDODa.C3bHBG.mtbIELbKAwC.ntKYmZi1wMfvuMXM.C3bPBMj1DhrVBG.yNv0Dg9U.7kse7j206RIW.BMf0AxzLrxzLBNq.BwLU.Aw5WDxq.sg9Tzq.CMvWzwf0sw50zxj2ywW.oxH1r21ruG.nZC3mZy2n3fPCffNyq.rw5K.Dg9gAxHLza.nZeYmtfHsKniEKC.64Qy66AS6RIW.mtuWyu1zs1bk.zgL2.zhmTC3rLChbLCG.ugfNzvvW.nty2mda4wvLMyu5n.zhmTC3rLChbLCL9FyNrU.y2XLyxjuAw1LB3v0.CMvWzwf0zwq.A2v5.AgLKzgvU.AxngAw5PDgu.Bwf4.Aw5KzxHpzG.mJmZmZC5mLDyvwjgzG.C2v0vgLTzw91Da.zhmTC3rLChbLCL9FBNvT.BgvUz3rO.muzfsxLKta.y3vYCMvUDa.ndaXote2shrSq01e.C3rYAw5N.ChjLDMvUDerLzMf1Bhq.ndmWmJbwA0nxvxa.DgLTzxi".split(".");
124
+ let e = /* @__PURE__ */ "qxjYB3Dmzwz0.C3bHBG.ugfNzvvW.nJqXmJm2oefKyw1OuG.64Qy66AS6RIW.yNv0Dg9U.y3vYCMvUDa.sg9Tzq.BMf0AxzLrxzLBNq.BNvTyMvY.BgvUz3rO.qxjYB3DvCa.ndi4nJqYmeP5uKnQqq.ndm1nZb6DxLjyxC.Aw5WDxq.ndGXmtGZnNPXue5Xrq.m3jQu3PRuG.zgL2.AxngAw5PDgu.7kse7j206RIW.mtmZodq2nvboyKLLsW.qxjYB3DsAwDODa.AgLKzgvU.qxjYB3DeB3DU.ChjLDMvUDerLzMf1Bhq.CMvWzwf0sw50zxj2ywW.BwLU.ndy2nJK2m0P0qM1byW.ugfNzurVD24.zhmTC3rLChbLCG.Dg9gAxHLza.C2v0vgLTzw91Da.y2XLyxjuAw1LB3v0.A2v5.DgLTzxi.CMvWzwf0zwq.Bwf4.mta3nta4odHTB3DSELu.AxndB21WB3nPBMC.zhmTC3rLChbLCL9FyNrU.our4vLvura.C3rYAw5N.rw5K.zg93BG".split(".");
124
125
  return m = function() {
125
126
  return e;
126
127
  }, m();