@iamfiro/design 0.3.2 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/agents/INDEX.md +1 -1
  2. package/agents/brand-icon/AGENTS.md +1 -1
  3. package/agents/social-login-button/AGENTS.md +4 -3
  4. package/lib/components/Accordion/Accordion2.js +87 -87
  5. package/lib/components/ActionBar/ActionBar2.js +42 -44
  6. package/lib/components/Alert/Alert2.js +61 -61
  7. package/lib/components/AppShell/AppShell2.js +70 -71
  8. package/lib/components/AreaChart/AreaChart.js +38 -40
  9. package/lib/components/BarChart/BarChart2.js +126 -126
  10. package/lib/components/BarList/BarList2.js +95 -95
  11. package/lib/components/Breadcrumb/Breadcrumb2.js +68 -66
  12. package/lib/components/Calendar/Calendar2.js +164 -164
  13. package/lib/components/Calendar/DatePicker2.js +103 -102
  14. package/lib/components/Calendar/date.js +64 -66
  15. package/lib/components/Card/Card2.js +67 -67
  16. package/lib/components/CardFrame/CardFrame2.js +43 -51
  17. package/lib/components/Chart/ChartParts.js +94 -94
  18. package/lib/components/Chart/chart2.js +52 -52
  19. package/lib/components/Chart/useChartInteraction.js +54 -54
  20. package/lib/components/ChatBubble/ChatBubble2.js +92 -92
  21. package/lib/components/ChatBubble/formatChatTime.js +35 -41
  22. package/lib/components/ChatComposer/ChatComposer2.js +63 -63
  23. package/lib/components/CodeBlock/CodeBlock2.js +61 -61
  24. package/lib/components/CodeBlock/highlight.js +84 -84
  25. package/lib/components/ColorPicker/ColorPicker2.js +387 -386
  26. package/lib/components/ColorPicker/color.js +71 -71
  27. package/lib/components/ColorPicker/presets.js +41 -46
  28. package/lib/components/Combobox/Combobox2.js +117 -118
  29. package/lib/components/CommandMenu/CommandMenu.js +127 -127
  30. package/lib/components/Comment/Comment2.js +86 -60
  31. package/lib/components/ContextMenu/ContextMenu2.js +77 -75
  32. package/lib/components/DataGrid/DataGrid2.js +1192 -1190
  33. package/lib/components/DataGrid/GridPopover.js +94 -94
  34. package/lib/components/DataGrid/anchor.js +34 -31
  35. package/lib/components/DataGrid/model.js +284 -283
  36. package/lib/components/DataGrid/panels.js +398 -399
  37. package/lib/components/DataGrid/typeMeta.js +51 -50
  38. package/lib/components/DataGrid/types.js +38 -39
  39. package/lib/components/DescriptionList/DescriptionList2.js +103 -103
  40. package/lib/components/Dialog/AlertDialog.js +79 -78
  41. package/lib/components/Dialog/Dialog2.js +59 -59
  42. package/lib/components/Dialog/modal.js +44 -46
  43. package/lib/components/Drawer/Drawer2.js +130 -129
  44. package/lib/components/DropdownMenu/DropdownMenu2.js +235 -233
  45. package/lib/components/DropdownMenu/menuCore.js +69 -42
  46. package/lib/components/Dropzone/Dropzone2.js +79 -78
  47. package/lib/components/EmptyState/EmptyState2.js +34 -35
  48. package/lib/components/FileChip/FileChip2.js +73 -73
  49. package/lib/components/FileUpload/FileUpload.js +159 -159
  50. package/lib/components/FilterChips/FilterChips2.js +61 -61
  51. package/lib/components/FunnelChart/FunnelChart2.js +161 -161
  52. package/lib/components/FunnelChart/funnel.js +48 -44
  53. package/lib/components/Highlight/Highlight2.js +43 -43
  54. package/lib/components/HoverCard/HoverCard.js +59 -84
  55. package/lib/components/InlineDiff/InlineDiff2.js +112 -112
  56. package/lib/components/InlineDiff/diff.js +90 -90
  57. package/lib/components/InlineDiff/useDiffReview.js +64 -63
  58. package/lib/components/Kanban/Kanban2.js +386 -387
  59. package/lib/components/Kanban/KanbanCard.js +70 -95
  60. package/lib/components/Kanban/move.js +50 -46
  61. package/lib/components/LineChart/LineChart2.js +211 -211
  62. package/lib/components/List/List2.js +53 -54
  63. package/lib/components/Listbox/Listbox2.js +115 -115
  64. package/lib/components/Marker/Marker2.js +56 -61
  65. package/lib/components/Menubar/Menubar2.js +144 -141
  66. package/lib/components/MultiSelect/MultiSelect2.js +108 -108
  67. package/lib/components/NavigationMenu/NavigationMenu2.js +298 -299
  68. package/lib/components/NoticeStack/NoticeStack2.js +84 -84
  69. package/lib/components/NumberStepper/NumberStepper2.js +65 -66
  70. package/lib/components/OtpInput/OtpInput2.js +70 -69
  71. package/lib/components/Pagination/Pagination2.js +106 -106
  72. package/lib/components/Pagination/paginationRange.js +37 -39
  73. package/lib/components/PhoneInput/PhoneInput.js +87 -88
  74. package/lib/components/PieChart/PieChart2.js +160 -160
  75. package/lib/components/PieChart/arc.js +65 -62
  76. package/lib/components/PieChart/useArcTween.js +53 -60
  77. package/lib/components/Popover/Popover2.js +62 -62
  78. package/lib/components/ProgressTracker/ProgressTracker2.js +121 -121
  79. package/lib/components/Rating/Rating2.js +82 -81
  80. package/lib/components/Resizable/Resizable2.js +126 -127
  81. package/lib/components/Resizable/layout.js +73 -73
  82. package/lib/components/ScaledPreview/ScaledPreview2.js +68 -67
  83. package/lib/components/ScatterChart/ScatterChart2.js +214 -213
  84. package/lib/components/ScatterChart/scatter.js +47 -49
  85. package/lib/components/ScrollArea/ScrollArea2.js +117 -118
  86. package/lib/components/Select/Select2.js +78 -79
  87. package/lib/components/Sidebar/Sidebar2.js +69 -69
  88. package/lib/components/Skeleton/Skeleton2.js +57 -57
  89. package/lib/components/Slider/Slider2.js +73 -74
  90. package/lib/components/SocialLoginButton/SocialLoginButton.js +76 -68
  91. package/lib/components/SparkChart/SparkChart2.js +145 -145
  92. package/lib/components/SparkChart/spark.js +64 -42
  93. package/lib/components/Sparkbar/Sparkbar2.js +60 -60
  94. package/lib/components/SplitView/SplitView2.js +51 -52
  95. package/lib/components/Stat/Stat2.js +90 -90
  96. package/lib/components/StepList/StepList2.js +70 -70
  97. package/lib/components/Table/Table2.js +70 -70
  98. package/lib/components/Tabs/Tabs2.js +81 -81
  99. package/lib/components/TagInput/TagInput2.js +220 -217
  100. package/lib/components/TimePicker/TimePicker2.js +187 -186
  101. package/lib/components/TimePicker/time.js +63 -62
  102. package/lib/components/Timeline/Timeline2.js +199 -199
  103. package/lib/components/Timeline/scale.js +67 -64
  104. package/lib/components/Toast/Toaster.js +100 -98
  105. package/lib/components/Toast/store.js +90 -94
  106. package/lib/components/ToggleGroup/ToggleGroup2.js +76 -76
  107. package/lib/components/Toolbar/Toolbar2.js +163 -161
  108. package/lib/components/Tracker/Tracker2.js +82 -82
  109. package/lib/components/TreeDiagram/TreeDiagram2.js +123 -124
  110. package/lib/components/TreeView/TreeView2.js +154 -152
  111. package/lib/hooks/timing.js +31 -30
  112. package/lib/hooks/useControllableState.js +37 -38
  113. package/lib/hooks/useCountdown.js +53 -56
  114. package/lib/hooks/useDigitInput.js +66 -41
  115. package/lib/hooks/useDismiss.js +55 -58
  116. package/lib/hooks/useElapsed.js +57 -55
  117. package/lib/hooks/useFloating.js +44 -44
  118. package/lib/hooks/useFocusTrap.js +70 -46
  119. package/lib/hooks/usePresence.js +23 -22
  120. package/lib/hooks/usePressToOpen.js +51 -51
  121. package/lib/hooks/useScrollLock.js +57 -58
  122. package/lib/hooks/useSelection.js +49 -52
  123. package/lib/index.js +65 -65
  124. package/lib/primitives/AspectRatio2.js +57 -57
  125. package/lib/primitives/BrandIcon.js +189 -158
  126. package/lib/primitives/ColorDot2.js +50 -45
  127. package/lib/primitives/CopyButton2.js +52 -50
  128. package/lib/primitives/CountBadge2.js +53 -55
  129. package/lib/primitives/Countdown2.js +28 -25
  130. package/lib/primitives/Delta2.js +41 -41
  131. package/lib/primitives/Elapsed.js +47 -47
  132. package/lib/primitives/FileIcon2.js +86 -86
  133. package/lib/primitives/Flag2.js +122 -122
  134. package/lib/primitives/IconStack2.js +55 -31
  135. package/lib/primitives/IconTile2.js +43 -43
  136. package/lib/primitives/Kbd2.js +55 -55
  137. package/lib/primitives/Layout2.js +78 -78
  138. package/lib/primitives/Link2.js +39 -36
  139. package/lib/primitives/MaskedText2.js +74 -52
  140. package/lib/primitives/Progress2.js +67 -66
  141. package/lib/primitives/RelativeTime.js +54 -61
  142. package/lib/primitives/SearchInput2.js +45 -45
  143. package/lib/primitives/SelectorButton2.js +72 -76
  144. package/lib/primitives/Spinner2.js +56 -56
  145. package/lib/primitives/StatusIcon2.js +63 -63
  146. package/lib/primitives/Swatch2.js +55 -61
  147. package/lib/primitives/Tooltip2.js +78 -78
  148. package/lib/primitives/Typography2.js +53 -53
  149. package/lib/primitives/formatCountdown.js +30 -29
  150. package/lib/primitives/formatElapsed.js +46 -49
  151. package/lib/primitives/formatRelativeTime.js +76 -50
  152. package/lib/primitives/hotkey.js +80 -80
  153. package/lib/primitives/index.js +169 -168
  154. package/lib/primitives/maskValue.js +55 -50
  155. package/lib/style.css +1 -1
  156. package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +1 -1
  157. package/lib/types/primitives/BrandIcon.d.ts +1 -1
  158. package/package.json +1 -1
@@ -1,113 +1,113 @@
1
1
  "use client";
2
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(".");
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
4
  return e = function() {
5
5
  return t;
6
6
  }, e();
7
7
  }
8
8
  (function(e, t) {
9
- let n = v, r = e();
9
+ let n = c, r = e();
10
10
  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;
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;
12
12
  r.push(r.shift());
13
13
  } catch {
14
14
  r.push(r.shift());
15
15
  }
16
- })(e, 306096);
16
+ })(e, 142373);
17
17
  import { TIMING as t } from "../../hooks/timing.js";
18
18
  import { Text as n } from "../../primitives/Typography2.js";
19
19
  import { Button as r, cx as i } from "../../primitives/index.js";
20
20
  import { Card as a, CardFooter as o, CardHeader as s } from "../Card/Card2.js";
21
21
  /* 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;
22
+ function c(t, n) {
23
+ t -= 118;
28
24
  let r = e(), i = r[t];
29
- v.oMsnRe === void 0 && (v.dkjBDm = function(e) {
25
+ c.tKYMDK === void 0 && (c.dNikyQ = function(e) {
30
26
  let t = "", n = "";
31
27
  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
28
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
33
29
  return decodeURIComponent(n);
34
- }, v.ossZjC = {}, v.oMsnRe = !0);
30
+ }, c.gyyiuo = {}, c.tKYMDK = !0);
35
31
  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;
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;
39
35
  }
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
+ 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);
42
42
  if (F !== I) {
43
43
  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))));
44
+ let t = new Set(e[x(167)]((e) => e.id));
45
+ D((e) => new Set([...e][x(150)]((e) => t.has(e))));
46
46
  }
47
- l(() => {
48
- let e = x, t = N[e(465)];
47
+ u(() => {
48
+ let e = x, t = N[e(171)];
49
49
  return () => {
50
50
  let n = e;
51
- window[n(454)](M.current), t[n(460)]((e) => window[n(454)](e));
51
+ window.clearTimeout(M[n(171)]), t[n(160)]((e) => window[n(153)](e));
52
52
  };
53
53
  }, []);
54
- let R = c((e, t) => {
54
+ let R = l((e, t) => {
55
55
  C((n) => n[e] === t ? n : {
56
56
  ...n,
57
57
  [e]: t
58
58
  });
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, {
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, {
61
61
  index: G,
62
62
  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) => {
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) => {
65
65
  let t = x;
66
- 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)]();
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)]();
71
71
  }
72
- T((n) => new Set(n)[t(475)](e));
73
- let i = window[t(482)](() => {
72
+ T((n) => new Set(n)[t(146)](e));
73
+ let i = window[t(119)](() => {
74
74
  let r = t;
75
- N[r(465)][r(466)](i), D((t) => new Set(t)[r(475)](e)), T((t) => {
75
+ N[r(171)][r(143)](i), D((t) => new Set(t).add(e)), T((t) => {
76
76
  let n = r, i = new Set(t);
77
- return i[n(466)](e), i;
77
+ return i[n(143)](e), i;
78
78
  }), n?.(e);
79
- }, _);
80
- N[t(465)][t(475)](i);
79
+ }, v);
80
+ N[t(171)].add(i);
81
81
  }, Y = (e) => {
82
82
  let n = x;
83
- window[n(454)](M[n(465)]), M[n(465)] = window[n(482)](() => k(e), e ? t[n(437)] : t.hoverGrace);
83
+ window[n(153)](M[n(171)]), M[n(171)] = window[n(119)](() => k(e), e ? t[n(135)] : t[n(139)]);
84
84
  };
85
- return z.length === 0 ? null : m(x(483), {
86
- className: i(x(467), p),
85
+ return z[x(166)] === 0 ? null : h("section", {
86
+ className: i(x(127), m),
87
87
  "data-direction": o,
88
88
  "data-expanded": V || void 0,
89
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),
90
+ style: g,
91
+ onPointerEnter: (e) => e[x(147)] === x(133) && Y(!0),
92
+ onPointerLeave: (e) => e.pointerType === "mouse" && Y(!1),
93
93
  onFocus: () => j(!0),
94
- onBlur: (e) => !e[x(449)][x(456)](e[x(445)]) && j(!1),
95
- children: m("ol", {
94
+ onBlur: (e) => !e[x(123)][x(132)](e.relatedTarget) && j(!1),
95
+ children: h("ol", {
96
96
  ref: P,
97
- className: "ds-notice-stack__list",
97
+ className: x(131),
98
98
  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, {
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, {
102
102
  item: e,
103
103
  onHeight: R,
104
104
  onDismiss: () => J(e.id),
105
- dismissLabel: u,
106
- leaving: w[t(477)](e.id),
105
+ dismissLabel: d,
106
+ leaving: w[t(156)](e.id),
107
107
  behind: a,
108
108
  hidden: n >= r,
109
109
  style: {
110
- "--_y": (V ? i : n * g) * H + "px",
110
+ "--_y": (V ? i : n * _) * H + "px",
111
111
  "--_scale": V ? 1 : 1 - n * .05,
112
112
  "--_z": z.length - n,
113
113
  "--_h": (a ? K : S[e.id] ?? 0) + "px",
@@ -118,58 +118,58 @@ function y({ items: e, onDismiss: n, visible: r = 3, expanded: a, direction: o =
118
118
  })
119
119
  });
120
120
  }
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(() => {
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(() => {
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;
130
+ }, []), d(() => {
131
+ let n = c, r = S[n(171)];
132
132
  if (!r) return;
133
- let i = () => t(e.id, r[n(439)]);
133
+ let i = () => t(e.id, r[n(173)]);
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[n(137)](r), () => a[n(151)]();
137
+ }, [e.id, t]), h("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: h(a, {
147
147
  padding: "sm",
148
- className: x(471),
149
- children: h(x(462), {
148
+ className: "ds-notice-stack__card",
149
+ children: g("div", {
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(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)]
158
158
  }),
159
- title: e[x(457)],
160
- description: e.description,
161
- actions: e[x(474)] !== !1 && m(r, {
162
- className: x(469),
159
+ title: e[x(152)],
160
+ description: e[x(126)],
161
+ actions: e[x(161)] !== !1 && h(r, {
162
+ className: x(122),
163
163
  variant: "ghost",
164
164
  size: "sm",
165
165
  iconOnly: !0,
166
- icon: m(p, {}),
167
- "aria-label": c,
166
+ icon: h(m, {}),
167
+ "aria-label": l,
168
168
  onClick: i
169
169
  })
170
- }), e[x(459)] && m(o, {
171
- align: x(447),
172
- children: e[x(459)]
170
+ }), e[x(172)] && h(o, {
171
+ align: x(118),
172
+ children: e[x(172)]
173
173
  })]
174
174
  })
175
175
  })
@@ -1,78 +1,83 @@
1
1
  "use client";
2
- const e = d;
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
+ }
3
9
  (function(e, t) {
4
- let n = d, r = e();
10
+ let n = a, r = e();
5
11
  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;
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;
7
13
  r.push(r.shift());
8
14
  } catch {
9
15
  r.push(r.shift());
10
16
  }
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";
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";
15
21
  /* 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) {
22
+ function a(e, n) {
23
+ e -= 116;
24
+ let r = t(), i = r[e];
25
+ a.lfkcde === void 0 && (a.qKINWs = function(e) {
23
26
  let t = "", n = "";
24
27
  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
28
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
26
29
  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;
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;
32
35
  }
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
+ 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;
36
42
  };
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(() => {
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(() => {
42
48
  let e = A;
43
- z[e(174)] = j;
49
+ z[e(144)] = j;
44
50
  });
45
- let B = a({
51
+ let B = s({
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(156)](B[A(144)][A(137)]);
55
+ o(() => {
56
+ let e = A, t = B[e(144)];
57
+ return () => window.clearTimeout(t[e(137)]);
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(144)] && (z[t(144)] = n, M(n), !0);
62
+ }, U = (e) => H(z[A(144)] + e), W = (e) => (t) => {
57
63
  let r = A;
58
- if (n[r(173)] !== 0 || b) return;
59
- V(), B[r(174)].repeated = !1;
64
+ if (t[r(143)] !== 0 || b) return;
65
+ V(), B[r(144)][r(157)] = !1;
60
66
  let i = () => {
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)]));
67
+ let t = r;
68
+ B[t(144)].repeated = !0, U(e) && (B[t(144)].timer = window[t(146)](i, n[t(126)]));
63
69
  };
64
- B[r(174)].timer = window[r(155)](i, t.repeatDelay);
70
+ B[r(144)][r(137)] = window[r(146)](i, n.repeatDelay);
65
71
  }, G = (e) => () => {
66
- let t = A;
67
- B[t(174)][t(159)] ? B.current[t(159)] = !1 : U(e);
72
+ B[A(144)].repeated ? B.current.repeated = !1 : U(e);
68
73
  }, K = (e) => {
69
74
  let t = A;
70
- if (b || e[t(132)][t(162)]) return;
75
+ if (b || e.nativeEvent[t(122)]) return;
71
76
  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),
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",
76
81
  "aria-label": t,
77
82
  tabIndex: -1,
78
83
  disabled: b || r,
@@ -83,47 +88,41 @@ function p({ value: d, defaultValue: p, onValueChange: m, min: h = -Infinity, ma
83
88
  onClick: G(e),
84
89
  children: n
85
90
  });
86
- return u(A(141), {
87
- className: r(A(153), "ds-stepper--" + y, O),
91
+ return f(A(151), {
92
+ className: i(A(120), "ds-stepper--" + y, O),
88
93
  "data-disabled": b || void 0,
89
94
  style: {
90
95
  "--_digits": Y + "ch",
91
96
  ...k
92
97
  },
93
98
  children: [
94
- X(-_, w, l(s, {}), j <= h),
95
- l(A(169), {
99
+ X(-_, w, d(l, {}), j <= h),
100
+ d(A(121), {
96
101
  id: D,
97
- role: "spinbutton",
102
+ role: A(153),
98
103
  tabIndex: b ? -1 : 0,
99
- className: "ds-stepper__value",
104
+ className: A(148),
100
105
  "aria-label": S,
101
106
  "aria-labelledby": C,
102
107
  "aria-valuenow": j,
103
- "aria-valuemin": Number.isFinite(h) ? h : void 0,
104
- "aria-valuemax": Number.isFinite(g) ? g : void 0,
108
+ "aria-valuemin": Number[A(116)](h) ? h : void 0,
109
+ "aria-valuemax": Number[A(116)](g) ? g : void 0,
105
110
  "aria-valuetext": x ? J : void 0,
106
111
  "aria-disabled": b || void 0,
107
112
  onKeyDown: K,
108
- children: l(A(169), {
113
+ children: d(A(121), {
109
114
  className: "ds-stepper__num",
110
115
  "data-dir": L ?? void 0,
111
116
  children: q
112
117
  }, j)
113
118
  }),
114
- X(_, T, l(c, {}), j >= g),
115
- E && l(A(138), {
116
- type: A(146),
119
+ X(_, T, d(u, {}), j >= g),
120
+ E && d(A(132), {
121
+ type: A(136),
117
122
  name: E,
118
123
  value: j
119
124
  })
120
125
  ]
121
126
  });
122
127
  }
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 };
128
+ export { m as NumberStepper };