@iamfiro/design 0.3.2 → 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 (163) hide show
  1. package/agents/INDEX.md +1 -1
  2. package/agents/app-shell/AGENTS.md +99 -1
  3. package/agents/brand-icon/AGENTS.md +1 -1
  4. package/agents/social-login-button/AGENTS.md +4 -3
  5. package/lib/components/Accordion/Accordion2.js +74 -74
  6. package/lib/components/ActionBar/ActionBar2.js +44 -42
  7. package/lib/components/Alert/Alert2.js +67 -67
  8. package/lib/components/AppShell/AppShell2.js +72 -66
  9. package/lib/components/AreaChart/AreaChart.js +45 -45
  10. package/lib/components/BarChart/BarChart2.js +128 -128
  11. package/lib/components/BarList/BarList2.js +105 -105
  12. package/lib/components/Breadcrumb/Breadcrumb2.js +63 -64
  13. package/lib/components/Calendar/Calendar2.js +197 -197
  14. package/lib/components/Calendar/DatePicker2.js +100 -100
  15. package/lib/components/Calendar/date.js +47 -70
  16. package/lib/components/Card/Card2.js +101 -74
  17. package/lib/components/CardFrame/CardFrame2.js +52 -56
  18. package/lib/components/Chart/ChartParts.js +88 -88
  19. package/lib/components/Chart/chart2.js +63 -63
  20. package/lib/components/Chart/useChartInteraction.js +43 -43
  21. package/lib/components/ChatBubble/ChatBubble2.js +111 -111
  22. package/lib/components/ChatBubble/formatChatTime.js +38 -43
  23. package/lib/components/ChatComposer/ChatComposer2.js +96 -96
  24. package/lib/components/CodeBlock/CodeBlock2.js +65 -65
  25. package/lib/components/CodeBlock/highlight.js +84 -84
  26. package/lib/components/ColorPicker/ColorPicker2.js +263 -263
  27. package/lib/components/ColorPicker/color.js +92 -92
  28. package/lib/components/ColorPicker/presets.js +35 -39
  29. package/lib/components/Combobox/Combobox2.js +134 -134
  30. package/lib/components/CommandMenu/CommandMenu.js +130 -131
  31. package/lib/components/Comment/Comment2.js +64 -63
  32. package/lib/components/ContextMenu/ContextMenu2.js +84 -84
  33. package/lib/components/DataGrid/DataGrid2.js +1182 -1180
  34. package/lib/components/DataGrid/GridPopover.js +84 -84
  35. package/lib/components/DataGrid/anchor.js +29 -28
  36. package/lib/components/DataGrid/model.js +308 -307
  37. package/lib/components/DataGrid/panels.js +398 -399
  38. package/lib/components/DataGrid/typeMeta.js +41 -40
  39. package/lib/components/DataGrid/types.js +39 -40
  40. package/lib/components/DescriptionList/DescriptionList2.js +105 -105
  41. package/lib/components/Dialog/AlertDialog.js +90 -89
  42. package/lib/components/Dialog/Dialog2.js +71 -72
  43. package/lib/components/Dialog/modal.js +62 -60
  44. package/lib/components/Drawer/Drawer2.js +167 -166
  45. package/lib/components/DropdownMenu/DropdownMenu2.js +260 -258
  46. package/lib/components/DropdownMenu/menuCore.js +29 -28
  47. package/lib/components/Dropzone/Dropzone2.js +78 -77
  48. package/lib/components/EmptyState/EmptyState2.js +57 -57
  49. package/lib/components/FileChip/FileChip2.js +53 -77
  50. package/lib/components/FileUpload/FileUpload.js +168 -167
  51. package/lib/components/FilterChips/FilterChips2.js +60 -60
  52. package/lib/components/FunnelChart/FunnelChart2.js +174 -174
  53. package/lib/components/FunnelChart/funnel.js +44 -42
  54. package/lib/components/Highlight/Highlight2.js +55 -55
  55. package/lib/components/HoverCard/HoverCard.js +71 -96
  56. package/lib/components/InlineDiff/InlineDiff2.js +128 -129
  57. package/lib/components/InlineDiff/diff.js +79 -79
  58. package/lib/components/InlineDiff/useDiffReview.js +61 -62
  59. package/lib/components/Kanban/Kanban2.js +387 -389
  60. package/lib/components/Kanban/KanbanCard.js +84 -84
  61. package/lib/components/Kanban/move.js +32 -25
  62. package/lib/components/LineChart/LineChart2.js +228 -228
  63. package/lib/components/List/List2.js +62 -62
  64. package/lib/components/Listbox/Listbox2.js +92 -92
  65. package/lib/components/Marker/Marker2.js +50 -56
  66. package/lib/components/Menubar/Menubar2.js +117 -116
  67. package/lib/components/MultiSelect/MultiSelect2.js +111 -111
  68. package/lib/components/NavigationMenu/NavigationMenu2.js +231 -231
  69. package/lib/components/NoticeStack/NoticeStack2.js +99 -99
  70. package/lib/components/NumberStepper/NumberStepper2.js +60 -60
  71. package/lib/components/OtpInput/OtpInput2.js +90 -89
  72. package/lib/components/Pagination/Pagination2.js +105 -105
  73. package/lib/components/Pagination/paginationRange.js +37 -37
  74. package/lib/components/PhoneInput/PhoneInput.js +75 -76
  75. package/lib/components/PieChart/PieChart2.js +166 -166
  76. package/lib/components/PieChart/arc.js +71 -69
  77. package/lib/components/PieChart/useArcTween.js +60 -62
  78. package/lib/components/Popover/Popover2.js +85 -86
  79. package/lib/components/ProgressTracker/ProgressTracker2.js +134 -134
  80. package/lib/components/Rating/Rating2.js +90 -89
  81. package/lib/components/Resizable/Resizable2.js +128 -129
  82. package/lib/components/Resizable/layout.js +51 -51
  83. package/lib/components/ScaledPreview/ScaledPreview2.js +49 -48
  84. package/lib/components/ScatterChart/ScatterChart2.js +214 -213
  85. package/lib/components/ScatterChart/scatter.js +49 -52
  86. package/lib/components/ScrollArea/ScrollArea2.js +115 -117
  87. package/lib/components/Select/Select2.js +82 -82
  88. package/lib/components/Sidebar/Sidebar2.js +91 -85
  89. package/lib/components/Sidebar/rail.js +43 -0
  90. package/lib/components/Skeleton/Skeleton2.js +63 -64
  91. package/lib/components/Slider/Slider2.js +65 -66
  92. package/lib/components/SocialLoginButton/SocialLoginButton.js +76 -69
  93. package/lib/components/SparkChart/SparkChart2.js +126 -127
  94. package/lib/components/SparkChart/spark.js +66 -42
  95. package/lib/components/Sparkbar/Sparkbar2.js +60 -60
  96. package/lib/components/SplitView/SplitView2.js +51 -51
  97. package/lib/components/Stat/Stat2.js +79 -79
  98. package/lib/components/StepList/StepList2.js +75 -75
  99. package/lib/components/Table/Table2.js +71 -71
  100. package/lib/components/Tabs/Tabs2.js +74 -74
  101. package/lib/components/TagInput/TagInput2.js +223 -221
  102. package/lib/components/TimePicker/TimePicker2.js +197 -195
  103. package/lib/components/TimePicker/time.js +59 -56
  104. package/lib/components/Timeline/Timeline2.js +195 -195
  105. package/lib/components/Timeline/scale.js +64 -66
  106. package/lib/components/Toast/Toaster.js +139 -139
  107. package/lib/components/Toast/store.js +72 -76
  108. package/lib/components/ToggleGroup/ToggleGroup2.js +79 -79
  109. package/lib/components/Toolbar/Toolbar2.js +165 -164
  110. package/lib/components/Tracker/Tracker2.js +72 -72
  111. package/lib/components/TreeDiagram/TreeDiagram2.js +96 -97
  112. package/lib/components/TreeView/TreeView2.js +152 -151
  113. package/lib/hooks/timing.js +34 -36
  114. package/lib/hooks/useControllableState.js +29 -30
  115. package/lib/hooks/useCountdown.js +51 -53
  116. package/lib/hooks/useDigitInput.js +81 -55
  117. package/lib/hooks/useDismiss.js +53 -56
  118. package/lib/hooks/useElapsed.js +48 -49
  119. package/lib/hooks/useFloating.js +36 -36
  120. package/lib/hooks/useFocusTrap.js +32 -32
  121. package/lib/hooks/usePresence.js +49 -49
  122. package/lib/hooks/usePressToOpen.js +40 -40
  123. package/lib/hooks/useScrollLock.js +50 -49
  124. package/lib/hooks/useSelection.js +42 -47
  125. package/lib/index.js +138 -139
  126. package/lib/primitives/AspectRatio2.js +58 -57
  127. package/lib/primitives/BrandIcon.js +210 -179
  128. package/lib/primitives/ColorDot2.js +42 -41
  129. package/lib/primitives/CopyButton2.js +59 -58
  130. package/lib/primitives/CountBadge2.js +58 -63
  131. package/lib/primitives/Countdown2.js +38 -37
  132. package/lib/primitives/Delta2.js +37 -37
  133. package/lib/primitives/Elapsed.js +42 -40
  134. package/lib/primitives/FileIcon2.js +102 -102
  135. package/lib/primitives/Flag2.js +124 -124
  136. package/lib/primitives/IconStack2.js +45 -23
  137. package/lib/primitives/IconTile2.js +45 -41
  138. package/lib/primitives/Kbd2.js +48 -48
  139. package/lib/primitives/Layout2.js +71 -71
  140. package/lib/primitives/Link2.js +40 -42
  141. package/lib/primitives/MaskedText2.js +50 -50
  142. package/lib/primitives/Progress2.js +78 -77
  143. package/lib/primitives/RelativeTime.js +55 -58
  144. package/lib/primitives/SearchInput2.js +72 -68
  145. package/lib/primitives/SelectorButton2.js +60 -61
  146. package/lib/primitives/Spinner2.js +48 -49
  147. package/lib/primitives/StatusIcon2.js +69 -69
  148. package/lib/primitives/Swatch2.js +65 -69
  149. package/lib/primitives/Tooltip2.js +92 -92
  150. package/lib/primitives/Typography2.js +37 -37
  151. package/lib/primitives/formatCountdown.js +38 -38
  152. package/lib/primitives/formatElapsed.js +43 -45
  153. package/lib/primitives/formatRelativeTime.js +54 -54
  154. package/lib/primitives/hotkey.js +77 -77
  155. package/lib/primitives/index.js +162 -161
  156. package/lib/primitives/maskValue.js +54 -51
  157. package/lib/style.css +1 -1
  158. package/lib/types/components/AppShell/AppShell.d.ts +9 -2
  159. package/lib/types/components/Sidebar/rail.d.ts +4 -0
  160. package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +1 -1
  161. package/lib/types/components/index.d.ts +1 -0
  162. package/lib/types/primitives/BrandIcon.d.ts +1 -1
  163. package/package.json +1 -1
@@ -1,113 +1,107 @@
1
1
  "use client";
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
2
  (function(e, t) {
9
- let n = v, r = e();
3
+ let n = h, r = e();
10
4
  for (;;) try {
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;
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, 306096);
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
- import { useCallback as c, useEffect as l, useLayoutEffect as u, useRef as d, useState as f } from "react";
23
- import { X as p } from "lucide-react";
24
- import { jsx as m, jsxs as h } from "react/jsx-runtime";
25
- var g = 8, _ = 320;
26
- function v(t, n) {
27
- t -= 430;
28
- let r = e(), i = r[t];
29
- v.oMsnRe === void 0 && (v.dkjBDm = 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) {
30
23
  let t = "", n = "";
31
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);
32
25
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
33
26
  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;
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;
39
32
  }
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);
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(431)]((e) => e.id));
45
- D((e) => new Set([...e][x(450)]((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
- l(() => {
48
- let e = x, t = N[e(465)];
41
+ c(() => {
42
+ let e = x, t = N[e(157)];
49
43
  return () => {
50
44
  let n = e;
51
- window[n(454)](M.current), t[n(460)]((e) => window[n(454)](e));
45
+ window[n(147)](M[n(157)]), t[n(113)]((e) => window.clearTimeout(e));
52
46
  };
53
47
  }, []);
54
- let R = c((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(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, {
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(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) => {
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
60
  if (w.has(e)) return;
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)]();
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(475)](e));
73
- let i = window[t(482)](() => {
66
+ T((t) => new Set(t).add(e));
67
+ let i = window[t(128)](() => {
74
68
  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;
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
73
  }, _);
80
- N[t(465)][t(475)](i);
81
- }, Y = (e) => {
74
+ N.current.add(i);
75
+ }, Y = (t) => {
82
76
  let n = x;
83
- window[n(454)](M[n(465)]), M[n(465)] = window[n(482)](() => k(e), e ? t[n(437)] : t.hoverGrace);
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.length === 0 ? null : m(x(483), {
86
- className: i(x(467), p),
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: h,
91
- onPointerEnter: (e) => e[x(433)] === x(464) && Y(!0),
92
- onPointerLeave: (e) => e[x(433)] === x(464) && 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(449)][x(456)](e[x(445)]) && j(!1),
95
- children: m("ol", {
88
+ onBlur: (e) => !e.currentTarget[x(123)](e[x(155)]) && j(!1),
89
+ children: p("ol", {
96
90
  ref: P,
97
91
  className: "ds-notice-stack__list",
98
92
  style: { height: q },
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, {
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: u,
106
- leaving: w[t(477)](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 * g) * 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,61 +112,67 @@ 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: c, leaving: g, behind: _, hidden: y, style: b }) {
122
- let x = v, S = d(null), [C, w] = f(!1);
123
- return l(() => {
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
- }, []), u(() => {
131
- let n = v, r = S.current;
132
- if (!r) return;
133
- let i = () => t(e.id, r[n(439)]);
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.observe(r), () => a[n(435)]();
137
- }, [e.id, t]), m("li", {
138
- className: x(438),
136
+ return a[t(153)](n), () => a.disconnect();
137
+ }, [e.id, r]), p("li", {
138
+ className: "ds-notice-stack__item",
139
139
  "data-notice-id": e.id,
140
140
  "data-mounted": C || void 0,
141
- "data-leaving": g || void 0,
142
- "data-behind": _ || void 0,
141
+ "data-leaving": _ || void 0,
142
+ "data-behind": v || void 0,
143
143
  "data-hidden": y || void 0,
144
- inert: g || y || void 0,
144
+ inert: _ || y || void 0,
145
145
  style: b,
146
- children: m(a, {
146
+ children: p(i, {
147
147
  padding: "sm",
148
- className: x(471),
149
- children: h(x(462), {
148
+ className: x(138),
149
+ children: m(x(120), {
150
150
  ref: S,
151
- className: x(473),
152
- children: [m(s, {
153
- eyebrow: e[x(442)] && m(n, {
154
- as: x(463),
155
- variant: x(470),
156
- tone: "accent",
157
- children: e[x(442)]
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(457)],
160
- description: e.description,
161
- actions: e[x(474)] !== !1 && m(r, {
162
- className: x(469),
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: m(p, {}),
167
- "aria-label": c,
168
- onClick: i
166
+ icon: p(f, {}),
167
+ "aria-label": g,
168
+ onClick: s
169
169
  })
170
- }), e[x(459)] && m(o, {
171
- align: x(447),
172
- children: e[x(459)]
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,78 +1,84 @@
1
1
  "use client";
2
- const e = d;
2
+ const e = i;
3
3
  (function(e, t) {
4
- let n = d, r = e();
4
+ let n = i, r = e();
5
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;
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;
7
7
  r.push(r.shift());
8
8
  } catch {
9
9
  r.push(r.shift());
10
10
  }
11
- })(m, 764083);
11
+ })(p, 584402);
12
12
  import { TIMING as t } from "../../hooks/timing.js";
13
13
  import { useControllableState as n } from "../../hooks/useControllableState.js";
14
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) {
15
+ function i(e, t) {
16
+ e -= 162;
17
+ let n = p(), r = n[e];
18
+ i.aJUZhW === void 0 && (i.eEOFNB = function(e) {
23
19
  let t = "", n = "";
24
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);
25
21
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
26
22
  return decodeURIComponent(n);
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;
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;
32
28
  }
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
33
  var f = (e) => {
34
- let t = d, n = String(e), r = n.indexOf(".");
35
- return r < 0 ? 0 : n[t(134)] - r - 1;
34
+ let t = i, n = String(e), r = n[t(203)](".");
35
+ return r < 0 ? 0 : n[t(165)] - r - 1;
36
36
  };
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(() => {
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(() => {
42
48
  let e = A;
43
- z[e(174)] = j;
49
+ z[e(205)] = j;
44
50
  });
45
- let B = a({
51
+ let B = o({
46
52
  timer: 0,
47
53
  repeated: !1
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);
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)]);
52
58
  }, []);
53
59
  let H = (e) => {
54
60
  let t = A, n = P(e);
55
- return n !== z[t(174)] && (z.current = n, M(n), !0);
56
- }, U = (e) => H(z[A(174)] + e), W = (e) => (n) => {
61
+ return n !== z[t(205)] && (z[t(205)] = n, M(n), !0);
62
+ }, U = (e) => H(z[A(205)] + e), W = (e) => (n) => {
57
63
  let r = A;
58
- if (n[r(173)] !== 0 || b) return;
59
- V(), B[r(174)].repeated = !1;
64
+ if (n[r(171)] !== 0 || b) return;
65
+ V(), B[r(205)][r(182)] = !1;
60
66
  let i = () => {
61
67
  let n = r;
62
- B[n(174)][n(159)] = !0, U(e) && (B[n(174)][n(158)] = window[n(155)](i, t[n(149)]));
68
+ B[n(205)].repeated = !0, U(e) && (B.current[n(189)] = window[n(197)](i, t[n(202)]));
63
69
  };
64
- B[r(174)].timer = window[r(155)](i, t.repeatDelay);
70
+ B[r(205)].timer = window[r(197)](i, t.repeatDelay);
65
71
  }, G = (e) => () => {
66
72
  let t = A;
67
- B[t(174)][t(159)] ? B.current[t(159)] = !1 : U(e);
73
+ B.current[t(182)] ? B[t(205)].repeated = !1 : U(e);
68
74
  }, K = (e) => {
69
75
  let t = A;
70
- if (b || e[t(132)][t(162)]) return;
76
+ if (b || e[t(175)].isComposing) return;
71
77
  let n = v ?? _ * 10, r = !0;
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),
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),
76
82
  "aria-label": t,
77
83
  tabIndex: -1,
78
84
  disabled: b || r,
@@ -83,20 +89,20 @@ function p({ value: d, defaultValue: p, onValueChange: m, min: h = -Infinity, ma
83
89
  onClick: G(e),
84
90
  children: n
85
91
  });
86
- return u(A(141), {
87
- className: r(A(153), "ds-stepper--" + y, O),
92
+ return d(A(199), {
93
+ className: r(A(181), A(196) + y, O),
88
94
  "data-disabled": b || void 0,
89
95
  style: {
90
96
  "--_digits": Y + "ch",
91
97
  ...k
92
98
  },
93
99
  children: [
94
- X(-_, w, l(s, {}), j <= h),
95
- l(A(169), {
100
+ X(-_, w, u(c, {}), j <= h),
101
+ u("span", {
96
102
  id: D,
97
- role: "spinbutton",
103
+ role: A(169),
98
104
  tabIndex: b ? -1 : 0,
99
- className: "ds-stepper__value",
105
+ className: A(188),
100
106
  "aria-label": S,
101
107
  "aria-labelledby": C,
102
108
  "aria-valuenow": j,
@@ -105,25 +111,19 @@ function p({ value: d, defaultValue: p, onValueChange: m, min: h = -Infinity, ma
105
111
  "aria-valuetext": x ? J : void 0,
106
112
  "aria-disabled": b || void 0,
107
113
  onKeyDown: K,
108
- children: l(A(169), {
109
- className: "ds-stepper__num",
114
+ children: u(A(172), {
115
+ className: A(174),
110
116
  "data-dir": L ?? void 0,
111
117
  children: q
112
118
  }, j)
113
119
  }),
114
- X(_, T, l(c, {}), j >= g),
115
- E && l(A(138), {
116
- type: A(146),
120
+ X(_, T, u(l, {}), j >= g),
121
+ E && u(A(183), {
122
+ type: "hidden",
117
123
  name: E,
118
124
  value: j
119
125
  })
120
126
  ]
121
127
  });
122
128
  }
123
- function m() {
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(".");
125
- return m = function() {
126
- return e;
127
- }, m();
128
- }
129
- export { p as NumberStepper };
129
+ export { m as NumberStepper };