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