@iamfiro/design 0.3.0 → 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 +76 -76
  4. package/lib/components/ActionBar/ActionBar2.js +43 -43
  5. package/lib/components/Alert/Alert2.js +46 -46
  6. package/lib/components/AppShell/AppShell2.js +58 -58
  7. package/lib/components/AreaChart/AreaChart.js +39 -40
  8. package/lib/components/BarChart/BarChart2.js +169 -169
  9. package/lib/components/BarList/BarList2.js +99 -99
  10. package/lib/components/Breadcrumb/Breadcrumb2.js +65 -66
  11. package/lib/components/Calendar/Calendar2.js +172 -171
  12. package/lib/components/Calendar/DatePicker2.js +101 -102
  13. package/lib/components/Calendar/date.js +71 -71
  14. package/lib/components/Card/Card2.js +55 -56
  15. package/lib/components/CardFrame/CardFrame2.js +52 -52
  16. package/lib/components/Chart/ChartParts.js +90 -90
  17. package/lib/components/Chart/chart2.js +52 -52
  18. package/lib/components/Chart/useChartInteraction.js +44 -44
  19. package/lib/components/ChatBubble/ChatBubble2.js +112 -112
  20. package/lib/components/ChatBubble/formatChatTime.js +44 -42
  21. package/lib/components/ChatComposer/ChatComposer2.js +94 -94
  22. package/lib/components/CodeBlock/CodeBlock2.js +66 -66
  23. package/lib/components/CodeBlock/highlight.js +67 -70
  24. package/lib/components/ColorPicker/ColorPicker2.js +404 -405
  25. package/lib/components/ColorPicker/color.js +81 -81
  26. package/lib/components/ColorPicker/presets.js +44 -43
  27. package/lib/components/Combobox/Combobox2.js +128 -128
  28. package/lib/components/CommandMenu/CommandMenu.js +137 -137
  29. package/lib/components/Comment/Comment2.js +55 -80
  30. package/lib/components/ContextMenu/ContextMenu2.js +93 -94
  31. package/lib/components/DataGrid/DataGrid2.js +1181 -1180
  32. package/lib/components/DataGrid/GridPopover.js +112 -112
  33. package/lib/components/DataGrid/anchor.js +23 -25
  34. package/lib/components/DataGrid/model.js +274 -275
  35. package/lib/components/DataGrid/panels.js +423 -423
  36. package/lib/components/DataGrid/typeMeta.js +21 -22
  37. package/lib/components/DataGrid/types.js +38 -37
  38. package/lib/components/DescriptionList/DescriptionList2.js +107 -107
  39. package/lib/components/Dialog/AlertDialog.js +53 -53
  40. package/lib/components/Dialog/Dialog2.js +71 -70
  41. package/lib/components/Dialog/modal.js +59 -58
  42. package/lib/components/Drawer/Drawer2.js +123 -124
  43. package/lib/components/DropdownMenu/DropdownMenu2.js +198 -200
  44. package/lib/components/DropdownMenu/menuCore.js +46 -47
  45. package/lib/components/Dropzone/Dropzone2.js +77 -77
  46. package/lib/components/EmptyState/EmptyState2.js +57 -56
  47. package/lib/components/FileChip/FileChip2.js +71 -71
  48. package/lib/components/FileUpload/FileUpload.js +119 -119
  49. package/lib/components/FilterChips/FilterChips2.js +61 -61
  50. package/lib/components/FunnelChart/FunnelChart2.js +141 -141
  51. package/lib/components/FunnelChart/funnel.js +51 -51
  52. package/lib/components/Highlight/Highlight2.js +54 -54
  53. package/lib/components/HoverCard/HoverCard.js +108 -83
  54. package/lib/components/InlineDiff/InlineDiff2.js +126 -126
  55. package/lib/components/InlineDiff/diff.js +82 -82
  56. package/lib/components/InlineDiff/useDiffReview.js +62 -60
  57. package/lib/components/Kanban/Kanban2.js +382 -382
  58. package/lib/components/Kanban/KanbanCard.js +92 -92
  59. package/lib/components/Kanban/move.js +45 -49
  60. package/lib/components/LineChart/LineChart2.js +207 -207
  61. package/lib/components/List/List2.js +71 -71
  62. package/lib/components/Listbox/Listbox2.js +115 -115
  63. package/lib/components/Marker/Marker2.js +67 -60
  64. package/lib/components/Menubar/Menubar2.js +130 -133
  65. package/lib/components/MultiSelect/MultiSelect2.js +104 -104
  66. package/lib/components/NavigationMenu/NavigationMenu2.js +261 -262
  67. package/lib/components/NoticeStack/NoticeStack2.js +105 -105
  68. package/lib/components/NumberStepper/NumberStepper2.js +67 -67
  69. package/lib/components/OtpInput/OtpInput2.js +66 -67
  70. package/lib/components/Pagination/Pagination2.js +90 -90
  71. package/lib/components/Pagination/paginationRange.js +24 -24
  72. package/lib/components/PhoneInput/PhoneInput.js +74 -74
  73. package/lib/components/PieChart/PieChart2.js +119 -119
  74. package/lib/components/PieChart/arc.js +63 -42
  75. package/lib/components/PieChart/useArcTween.js +56 -54
  76. package/lib/components/Popover/Popover2.js +61 -61
  77. package/lib/components/ProgressTracker/ProgressTracker2.js +127 -127
  78. package/lib/components/Rating/Rating2.js +81 -81
  79. package/lib/components/Resizable/Resizable2.js +112 -110
  80. package/lib/components/Resizable/layout.js +50 -50
  81. package/lib/components/ScaledPreview/ScaledPreview2.js +49 -50
  82. package/lib/components/ScatterChart/ScatterChart2.js +226 -227
  83. package/lib/components/ScatterChart/scatter.js +59 -57
  84. package/lib/components/ScrollArea/ScrollArea2.js +112 -112
  85. package/lib/components/Select/Select2.js +79 -79
  86. package/lib/components/Sidebar/Sidebar2.js +79 -79
  87. package/lib/components/Skeleton/Skeleton2.js +68 -68
  88. package/lib/components/Slider/Slider2.js +78 -77
  89. package/lib/components/SocialLoginButton/SocialLoginButton.js +65 -66
  90. package/lib/components/SparkChart/SparkChart2.js +146 -145
  91. package/lib/components/SparkChart/spark.js +41 -67
  92. package/lib/components/Sparkbar/Sparkbar2.js +61 -60
  93. package/lib/components/SplitView/SplitView2.js +53 -53
  94. package/lib/components/Stat/Stat2.js +94 -94
  95. package/lib/components/StepList/StepList2.js +70 -70
  96. package/lib/components/Table/Table2.js +63 -63
  97. package/lib/components/Tabs/Tabs2.js +70 -70
  98. package/lib/components/TagInput/TagInput2.js +236 -239
  99. package/lib/components/TimePicker/TimePicker2.js +231 -232
  100. package/lib/components/TimePicker/time.js +63 -65
  101. package/lib/components/Timeline/Timeline2.js +167 -167
  102. package/lib/components/Timeline/scale.js +55 -55
  103. package/lib/components/Toast/Toaster.js +151 -152
  104. package/lib/components/Toast/store.js +90 -87
  105. package/lib/components/ToggleGroup/ToggleGroup2.js +91 -91
  106. package/lib/components/Toolbar/Toolbar2.js +145 -145
  107. package/lib/components/Tracker/Tracker2.js +76 -76
  108. package/lib/components/TreeDiagram/TreeDiagram2.js +112 -111
  109. package/lib/components/TreeView/TreeView2.js +124 -124
  110. package/lib/hooks/timing.js +30 -29
  111. package/lib/hooks/useControllableState.js +37 -36
  112. package/lib/hooks/useCountdown.js +56 -59
  113. package/lib/hooks/useDigitInput.js +52 -78
  114. package/lib/hooks/useDismiss.js +58 -57
  115. package/lib/hooks/useElapsed.js +54 -54
  116. package/lib/hooks/useFloating.js +26 -26
  117. package/lib/hooks/useFocusTrap.js +42 -42
  118. package/lib/hooks/usePresence.js +49 -48
  119. package/lib/hooks/usePressToOpen.js +42 -41
  120. package/lib/hooks/useScrollLock.js +45 -44
  121. package/lib/hooks/useSelection.js +45 -39
  122. package/lib/index.js +71 -71
  123. package/lib/primitives/AspectRatio2.js +60 -60
  124. package/lib/primitives/BrandIcon.js +161 -161
  125. package/lib/primitives/ColorDot2.js +42 -45
  126. package/lib/primitives/CopyButton2.js +57 -56
  127. package/lib/primitives/CountBadge2.js +55 -51
  128. package/lib/primitives/Countdown2.js +41 -46
  129. package/lib/primitives/Delta2.js +36 -36
  130. package/lib/primitives/Elapsed.js +49 -49
  131. package/lib/primitives/FileIcon2.js +96 -96
  132. package/lib/primitives/Flag2.js +135 -135
  133. package/lib/primitives/IconStack2.js +38 -60
  134. package/lib/primitives/IconTile2.js +28 -29
  135. package/lib/primitives/Kbd2.js +50 -50
  136. package/lib/primitives/Layout2.js +71 -71
  137. package/lib/primitives/Link2.js +32 -31
  138. package/lib/primitives/MaskedText2.js +49 -74
  139. package/lib/primitives/Progress2.js +65 -66
  140. package/lib/primitives/RelativeTime.js +58 -57
  141. package/lib/primitives/SearchInput2.js +65 -65
  142. package/lib/primitives/SelectorButton2.js +74 -73
  143. package/lib/primitives/Spinner2.js +50 -50
  144. package/lib/primitives/StatusIcon2.js +68 -68
  145. package/lib/primitives/Swatch2.js +59 -55
  146. package/lib/primitives/Tooltip2.js +81 -81
  147. package/lib/primitives/Typography2.js +53 -53
  148. package/lib/primitives/formatCountdown.js +21 -22
  149. package/lib/primitives/formatElapsed.js +43 -42
  150. package/lib/primitives/formatRelativeTime.js +50 -50
  151. package/lib/primitives/hotkey.js +82 -82
  152. package/lib/primitives/index.js +193 -174
  153. package/lib/primitives/maskValue.js +28 -28
  154. package/lib/style.css +1 -1
  155. package/lib/types/primitives/index.d.ts +6 -2
  156. package/package.json +1 -1
@@ -1,93 +1,113 @@
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
+ }
2
8
  (function(e, t) {
3
- let n = y, r = e();
9
+ let n = v, r = e();
4
10
  for (;;) try {
5
- if (-parseInt(n(222)) / 1 * (-parseInt(n(189)) / 2) + parseInt(n(231)) / 3 + -parseInt(n(229)) / 4 * (-parseInt(n(199)) / 5) + -parseInt(n(216)) / 6 + parseInt(n(213)) / 7 + parseInt(n(194)) / 8 + parseInt(n(214)) / 9 * (-parseInt(n(201)) / 10) == t) break;
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;
6
12
  r.push(r.shift());
7
13
  } catch {
8
14
  r.push(r.shift());
9
15
  }
10
- })(b, 363120);
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";
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";
15
21
  /* empty css */
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
- var h = 8, g = 320;
20
- function _({ items: t, onDismiss: n, visible: i = 3, expanded: a, direction: o = "up", gap: l = 8, dismissLabel: f = "닫기", className: m, style: _, "aria-label": b = "공지" }) {
21
- let x = y, [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[x(202)]((e) => e.id)[x(203)]("\n"), [I, L] = d(F);
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) {
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);
22
42
  if (F !== I) {
23
43
  L(F);
24
- let e = new Set(t[x(202)]((e) => e.id));
25
- D((t) => new Set([...t].filter((t) => e[x(224)](t))));
44
+ let t = new Set(e[x(431)]((e) => e.id));
45
+ D((e) => new Set([...e][x(450)]((e) => t.has(e))));
26
46
  }
27
- c(() => {
28
- let e = x, t = N[e(221)];
47
+ l(() => {
48
+ let e = x, t = N[e(465)];
29
49
  return () => {
30
50
  let n = e;
31
- window.clearTimeout(M.current), t[n(184)]((e) => window[n(180)](e));
51
+ window[n(454)](M.current), t[n(460)]((e) => window[n(454)](e));
32
52
  };
33
53
  }, []);
34
- let R = s((e, t) => {
54
+ let R = c((e, t) => {
35
55
  C((n) => n[e] === t ? n : {
36
56
  ...n,
37
57
  [e]: t
38
58
  });
39
- }, []), z = t[x(208)]((e) => !E[x(224)](e.id)), B = z[x(208)]((e) => !w.has(e.id)), V = B[x(188)] > 1 && (a || O || A), H = o === "up" ? -1 : 1, U = /* @__PURE__ */ new Map(), W = 0, G = 0;
40
- for (let e of z) U[x(204)](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, {
41
61
  index: G,
42
62
  y: W
43
- }), !w[x(224)](e.id) && (G < i && (W += (S[e.id] ?? 0) + l), G++);
44
- let K = S[B[0]?.id] ?? 0, q = B[x(188)] === 0 ? 0 : V ? Math[x(223)](0, W - l) : K + (Math[x(226)](B[x(188)], i) - 1) * h, 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) => {
45
65
  let t = x;
46
- if (w[t(224)](e)) return;
47
- let r = P[t(221)];
48
- if ((r?.[t(193)](t(212) + CSS[t(179)](e) + "\"]"))?.contains(document[t(182)])) {
49
- let n = B[t(225)]((n) => n.id !== e && n[t(232)] !== !1);
50
- r?.[t(193)](t(212) + (n ? CSS[t(179)](n.id) : "") + t(200))?.focus();
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)]();
51
71
  }
52
- T((t) => new Set(t).add(e));
53
- let i = window[t(195)](() => {
72
+ T((n) => new Set(n)[t(475)](e));
73
+ let i = window[t(482)](() => {
54
74
  let r = t;
55
- N[r(221)][r(209)](i), D((t) => new Set(t)[r(206)](e)), T((t) => {
75
+ N[r(465)][r(466)](i), D((t) => new Set(t)[r(475)](e)), T((t) => {
56
76
  let n = r, i = new Set(t);
57
- return i[n(209)](e), i;
77
+ return i[n(466)](e), i;
58
78
  }), n?.(e);
59
- }, g);
60
- N[t(221)].add(i);
61
- }, Y = (t) => {
79
+ }, _);
80
+ N[t(465)][t(475)](i);
81
+ }, Y = (e) => {
62
82
  let n = x;
63
- window.clearTimeout(M[n(221)]), M[n(221)] = window[n(195)](() => k(t), t ? e[n(215)] : e[n(186)]);
83
+ window[n(454)](M[n(465)]), M[n(465)] = window[n(482)](() => k(e), e ? t[n(437)] : t.hoverGrace);
64
84
  };
65
- return z[x(188)] === 0 ? null : p(x(183), {
66
- className: r(x(198), m),
85
+ return z.length === 0 ? null : m(x(483), {
86
+ className: i(x(467), p),
67
87
  "data-direction": o,
68
88
  "data-expanded": V || void 0,
69
- "aria-label": b,
70
- style: _,
71
- onPointerEnter: (e) => e[x(185)] === "mouse" && Y(!0),
72
- onPointerLeave: (e) => e[x(185)] === x(211) && 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),
73
93
  onFocus: () => j(!0),
74
- onBlur: (e) => !e[x(228)].contains(e[x(187)]) && j(!1),
75
- children: p("ol", {
94
+ onBlur: (e) => !e[x(449)][x(456)](e[x(445)]) && j(!1),
95
+ children: m("ol", {
76
96
  ref: P,
77
- className: x(205),
97
+ className: "ds-notice-stack__list",
78
98
  style: { height: q },
79
- children: z.map((e) => {
80
- let t = x, { index: n, y: r } = U[t(219)](e.id), a = !V && n > 0;
81
- return p(v, {
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, {
82
102
  item: e,
83
103
  onHeight: R,
84
104
  onDismiss: () => J(e.id),
85
- dismissLabel: f,
86
- leaving: w[t(224)](e.id),
105
+ dismissLabel: u,
106
+ leaving: w[t(477)](e.id),
87
107
  behind: a,
88
- hidden: n >= i,
108
+ hidden: n >= r,
89
109
  style: {
90
- "--_y": (V ? r : n * h) * H + "px",
110
+ "--_y": (V ? i : n * g) * H + "px",
91
111
  "--_scale": V ? 1 : 1 - n * .05,
92
112
  "--_z": z.length - n,
93
113
  "--_h": (a ? K : S[e.id] ?? 0) + "px",
@@ -98,81 +118,61 @@ function _({ items: t, onDismiss: n, visible: i = 3, expanded: a, direction: o =
98
118
  })
99
119
  });
100
120
  }
101
- function v({ item: e, onHeight: r, onDismiss: s, dismissLabel: h, leaving: g, behind: _, hidden: v, style: b }) {
102
- let x = y, S = u(null), [C, w] = d(!1);
103
- return c(() => {
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(() => {
104
124
  let e = 0, t = requestAnimationFrame(() => {
105
125
  e = requestAnimationFrame(() => w(!0));
106
126
  });
107
127
  return () => {
108
128
  cancelAnimationFrame(t), cancelAnimationFrame(e);
109
129
  };
110
- }, []), l(() => {
111
- let t = y, n = S[t(221)];
112
- if (!n) return;
113
- let i = () => r(e.id, n.offsetHeight);
130
+ }, []), u(() => {
131
+ let n = v, r = S.current;
132
+ if (!r) return;
133
+ let i = () => t(e.id, r[n(439)]);
114
134
  i();
115
135
  let a = new ResizeObserver(i);
116
- return a[t(217)](n), () => a.disconnect();
117
- }, [e.id, r]), p("li", {
118
- className: x(220),
136
+ return a.observe(r), () => a[n(435)]();
137
+ }, [e.id, t]), m("li", {
138
+ className: x(438),
119
139
  "data-notice-id": e.id,
120
140
  "data-mounted": C || void 0,
121
141
  "data-leaving": g || void 0,
122
142
  "data-behind": _ || void 0,
123
- "data-hidden": v || void 0,
124
- inert: g || v || void 0,
143
+ "data-hidden": y || void 0,
144
+ inert: g || y || void 0,
125
145
  style: b,
126
- children: p(i, {
146
+ children: m(a, {
127
147
  padding: "sm",
128
- className: x(190),
129
- children: m(x(191), {
148
+ className: x(471),
149
+ children: h(x(462), {
130
150
  ref: S,
131
- className: x(210),
132
- children: [p(o, {
133
- eyebrow: e[x(207)] && p(t, {
134
- as: x(218),
135
- variant: x(196),
151
+ className: x(473),
152
+ children: [m(s, {
153
+ eyebrow: e[x(442)] && m(n, {
154
+ as: x(463),
155
+ variant: x(470),
136
156
  tone: "accent",
137
- children: e[x(207)]
157
+ children: e[x(442)]
138
158
  }),
139
- title: e[x(227)],
140
- description: e[x(197)],
141
- actions: e.dismissible !== !1 && p(n, {
142
- className: x(181),
143
- variant: x(233),
159
+ title: e[x(457)],
160
+ description: e.description,
161
+ actions: e[x(474)] !== !1 && m(r, {
162
+ className: x(469),
163
+ variant: "ghost",
144
164
  size: "sm",
145
165
  iconOnly: !0,
146
- icon: p(f, {}),
147
- "aria-label": h,
148
- onClick: s
166
+ icon: m(p, {}),
167
+ "aria-label": c,
168
+ onClick: i
149
169
  })
150
- }), e.footer && p(a, {
151
- align: x(192),
152
- children: e[x(230)]
170
+ }), e[x(459)] && m(o, {
171
+ align: x(447),
172
+ children: e[x(459)]
153
173
  })]
154
174
  })
155
175
  })
156
176
  });
157
177
  }
158
- function y(e, t) {
159
- e -= 179;
160
- let n = b(), r = n[e];
161
- y.VCNrGR === void 0 && (y.FRfkVh = function(e) {
162
- let t = "", n = "";
163
- 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);
164
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
165
- return decodeURIComponent(n);
166
- }, y.MbcbDw = {}, y.VCNrGR = !0);
167
- let i = n[0];
168
- y.qxOnbi !== i && (y.MbcbDw = {}, y.qxOnbi = i);
169
- let a = y.MbcbDw[e];
170
- return a === void 0 ? (r = y.FRfkVh(r), y.MbcbDw[e] = r) : r = a, r;
171
- }
172
- function b() {
173
- let e = /* @__PURE__ */ "zgLZBwLZC2LIBgu.z2HVC3q.zxnJyxbL.y2XLyxjuAw1LB3v0.zhmTBM90AwnLlxn0ywnRx19JBg9Zzq.ywn0AxzLrwXLBwvUDa.C2vJDgLVBG.zM9YrwfJAa.Cg9PBNrLCLr5Cgu.Ag92zxjhCMfJzq.CMvSyxrLzfrHCMDLDa.BgvUz3rO.mZmYDuj0zxvt.zhmTBM90AwnLlxn0ywnRx19JyxjK.zgL2.C3rHCNq.CxvLCNLtzwXLy3rVCG.mZq5mtqYnhHPAuXkvG.C2v0vgLTzw91Da.y2fWDgLVBG.zgvZy3jPChrPB24.zhmTBM90AwnLlxn0ywnR.mteWntuYnuDpsgL6uq.iL0GlMrZlw5VDgLJzs1ZDgfJA19Fy2XVC2u.nJCYmtG1mhnsBK1ACG.BwfW.AM9PBG.C2v0.zhmTBM90AwnLlxn0ywnRx19SAxn0.ywrK.zxLLyNjVDW.zMLSDgvY.zgvSzxrL.zhmTBM90AwnLlxn0ywnRx19PBM5LCG.Bw91C2u.w2rHDgeTBM90AwnLlwLKpsi.mtK4mdiZCM9YEvr4.oxLdC25jsG.Ag92zxjjBNrLBNq.mZGYmZiWnLb4y1LHDG.B2jZzxj2zq.C3bHBG.z2v0.zhmTBM90AwnLlxn0ywnRx19PDgvT.y3vYCMvUDa.mtC5nxzUuwPpDW.Bwf4.AgfZ.zMLUza.BwLU.DgL0Bgu.y3vYCMvUDfrHCMDLDa.oejmzNPMwa.zM9VDgvY.mtqWmJGYn3zNy2Dnra".split(".");
174
- return b = function() {
175
- return e;
176
- }, b();
177
- }
178
- export { _ as NoticeStack };
178
+ export { y as NoticeStack };
@@ -1,84 +1,78 @@
1
1
  "use client";
2
- const e = a;
2
+ const e = d;
3
3
  (function(e, t) {
4
- let n = a, r = e();
4
+ let n = d, r = e();
5
5
  for (;;) try {
6
- if (parseInt(n(372)) / 1 + parseInt(n(377)) / 2 * (-parseInt(n(350)) / 3) + -parseInt(n(341)) / 4 * (parseInt(n(343)) / 5) + parseInt(n(373)) / 6 * (-parseInt(n(353)) / 7) + -parseInt(n(375)) / 8 + parseInt(n(381)) / 9 + parseInt(n(364)) / 10 == t) break;
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
7
  r.push(r.shift());
8
8
  } catch {
9
9
  r.push(r.shift());
10
10
  }
11
- })(t, 341543);
12
- function t() {
13
- let e = /* @__PURE__ */ "mJaXmZmWmhjhBfrfDa.Aw5WDxq.BNvTyMvY.CMvWzwf0rgvSyxK.qxjYB3DeB3DU.mte5nte0oeXRruv5ra.64Qy66AS6RIW.nvvZrK5Lva.C3bHBG.qxjYB3Dmzwz0.ugfNzurVD24.Dg9gAxHLza.C2v0vgLTzw91Da.Bwf4.mZq5nwriA3bwvW.y2XLyxjuAw1LB3v0.zhmTC3rLChbLCG.mtrtA2PhzhC.BwLU.y3vYCMvUDa.zhmTC3rLChbLCL9FDMfSDwu.sg9Tzq.AxndB21WB3nPBMC.7kse7j206RIW.AxngAw5PDgu.CMvWzwf0zwq.C3rYAw5N.qxjYB3DvCa.mta4mdeZndbOBhfotxi.Aw5KzxHpzG.zhmTC3rLChbLCL9FBNvT.rw5K.DgLTzxi.zhmTC3rLChbLCL9FyNrU.yNv0Dg9U.C3bPBMj1DhrVBG.ntuZnda0wMLcshbj.mte0nZC1offqwvnIBa.A2v5.nti3nJu3nKjmu3vsra.CMvWzwf0sw50zxj2ywW.mZaWzhvLD1Hl.AgLKzgvU.BgvUz3rO.qxjYB3DsAwDODa".split(".");
14
- return t = function() {
15
- return e;
16
- }, t();
17
- }
18
- import { TIMING as n } from "../../hooks/timing.js";
19
- import { useControllableState as r } from "../../hooks/useControllableState.js";
20
- import { cx as i } from "../../primitives/index.js";
21
- function a(e, n) {
22
- e -= 339;
23
- let r = t(), i = r[e];
24
- a.WBqFHG === void 0 && (a.qtGqEk = function(e) {
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) {
25
23
  let t = "", n = "";
26
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);
27
25
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
28
26
  return decodeURIComponent(n);
29
- }, a.vnCyXg = {}, a.WBqFHG = !0);
30
- let o = r[0];
31
- a.OAJDwT !== o && (a.vnCyXg = {}, a.OAJDwT = o);
32
- let s = a.vnCyXg[e];
33
- return s === void 0 ? (i = a.qtGqEk(i), a.vnCyXg[e] = i) : i = s, 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;
34
32
  }
35
- /* empty css */
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(365)](".");
41
- return r < 0 ? 0 : n.length - r - 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;
42
36
  };
43
- function m({ value: t, defaultValue: a, onValueChange: m, min: h = -Infinity, max: g = Infinity, step: _ = 1, largeStep: v, size: y = "md", disabled: b, formatValue: x, "aria-label": S, "aria-labelledby": C, decrementLabel: w = e(359), incrementLabel: T = e(342), name: E, id: D, className: O, style: k }) {
44
- let A = e, [j, M] = r(t, a ?? Math[A(354)](g, Math[A(349)](h, 0)), m), N = Math[A(349)](p(_), p(Number[A(360)](h) ? h : 0)), P = (e) => Number(Math[A(354)](g, Math[A(349)](h, e))[A(347)](N)), [F, I] = c(j), [L, R] = c(null);
45
- j !== F && (I(j), R(j > F ? "up" : "down"));
46
- let z = s(j);
47
- o(() => {
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(() => {
48
42
  let e = A;
49
- z[e(355)] = j;
43
+ z[e(174)] = j;
50
44
  });
51
- let B = s({
45
+ let B = a({
52
46
  timer: 0,
53
47
  repeated: !1
54
- }), V = () => window[A(351)](B[A(355)].timer);
55
- o(() => {
56
- let e = A, t = B.current;
57
- return () => window[e(351)](t[e(368)]);
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);
58
52
  }, []);
59
53
  let H = (e) => {
60
54
  let t = A, n = P(e);
61
- return n !== z[t(355)] && (z[t(355)] = n, M(n), !0);
62
- }, U = (e) => H(z.current + 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) => {
63
57
  let r = A;
64
- if (t[r(370)] !== 0 || b) return;
65
- V(), B.current[r(361)] = !1;
58
+ if (n[r(173)] !== 0 || b) return;
59
+ V(), B[r(174)].repeated = !1;
66
60
  let i = () => {
67
- let t = r;
68
- B.current[t(361)] = !0, U(e) && (B[t(355)][t(368)] = window.setTimeout(i, n[t(376)]));
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)]));
69
63
  };
70
- B[r(355)][r(368)] = window[r(348)](i, n[r(339)]);
64
+ B[r(174)].timer = window[r(155)](i, t.repeatDelay);
71
65
  }, G = (e) => () => {
72
66
  let t = A;
73
- B[t(355)][t(361)] ? B[t(355)][t(361)] = !1 : U(e);
67
+ B[t(174)][t(159)] ? B.current[t(159)] = !1 : U(e);
74
68
  }, K = (e) => {
75
69
  let t = A;
76
- if (b || e.nativeEvent[t(358)]) return;
70
+ if (b || e[t(132)][t(162)]) return;
77
71
  let n = v ?? _ * 10, r = !0;
78
- e.key === t(363) || e.key === t(380) ? U(_) : e[t(374)] === t(340) || e[t(374)] === t(345) ? U(-_) : e[t(374)] === "PageUp" ? U(n) : e[t(374)] === t(346) ? U(-n) : e[t(374)] === t(357) && Number[t(360)](h) ? H(h) : e[t(374)] === t(367) && Number[t(360)](g) ? H(g) : r = !1, r && e.preventDefault();
79
- }, q = x ? x(j) : j, J = typeof q === A(362) || typeof q === A(383) ? String(q) : String(j), Y = Math.max(String(Number[A(360)](g) ? g : j)[A(379)], String(Number[A(360)](h) ? h : j)[A(379)], String(j)[A(379)]), X = (e, t, n, r) => d(A(370), {
80
- type: A(370),
81
- className: A(369),
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),
82
76
  "aria-label": t,
83
77
  tabIndex: -1,
84
78
  disabled: b || r,
@@ -89,41 +83,47 @@ function m({ value: t, defaultValue: a, onValueChange: m, min: h = -Infinity, ma
89
83
  onClick: G(e),
90
84
  children: n
91
85
  });
92
- return f("div", {
93
- className: i(A(352), "ds-stepper--" + y, O),
86
+ return u(A(141), {
87
+ className: r(A(153), "ds-stepper--" + y, O),
94
88
  "data-disabled": b || void 0,
95
89
  style: {
96
90
  "--_digits": Y + "ch",
97
91
  ...k
98
92
  },
99
93
  children: [
100
- X(-_, w, d(l, {}), j <= h),
101
- d(A(344), {
94
+ X(-_, w, l(s, {}), j <= h),
95
+ l(A(169), {
102
96
  id: D,
103
- role: A(371),
97
+ role: "spinbutton",
104
98
  tabIndex: b ? -1 : 0,
105
- className: A(356),
99
+ className: "ds-stepper__value",
106
100
  "aria-label": S,
107
101
  "aria-labelledby": C,
108
102
  "aria-valuenow": j,
109
- "aria-valuemin": Number[A(360)](h) ? h : void 0,
110
- "aria-valuemax": Number[A(360)](g) ? g : void 0,
103
+ "aria-valuemin": Number.isFinite(h) ? h : void 0,
104
+ "aria-valuemax": Number.isFinite(g) ? g : void 0,
111
105
  "aria-valuetext": x ? J : void 0,
112
106
  "aria-disabled": b || void 0,
113
107
  onKeyDown: K,
114
- children: d(A(344), {
115
- className: A(366),
108
+ children: l(A(169), {
109
+ className: "ds-stepper__num",
116
110
  "data-dir": L ?? void 0,
117
111
  children: q
118
112
  }, j)
119
113
  }),
120
- X(_, T, d(u, {}), j >= g),
121
- E && d(A(382), {
122
- type: A(378),
114
+ X(_, T, l(c, {}), j >= g),
115
+ E && l(A(138), {
116
+ type: A(146),
123
117
  name: E,
124
118
  value: j
125
119
  })
126
120
  ]
127
121
  });
128
122
  }
129
- export { m as NumberStepper };
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 };