@iamfiro/design 0.3.0 → 0.3.1

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 (153) hide show
  1. package/lib/components/Accordion/Accordion2.js +86 -86
  2. package/lib/components/ActionBar/ActionBar2.js +44 -43
  3. package/lib/components/Alert/Alert2.js +79 -79
  4. package/lib/components/AppShell/AppShell2.js +58 -58
  5. package/lib/components/AreaChart/AreaChart.js +41 -41
  6. package/lib/components/BarChart/BarChart2.js +110 -110
  7. package/lib/components/BarList/BarList2.js +95 -95
  8. package/lib/components/Breadcrumb/Breadcrumb2.js +62 -59
  9. package/lib/components/Calendar/Calendar2.js +202 -202
  10. package/lib/components/Calendar/DatePicker2.js +122 -123
  11. package/lib/components/Calendar/date.js +57 -60
  12. package/lib/components/Card/Card2.js +62 -63
  13. package/lib/components/CardFrame/CardFrame2.js +43 -48
  14. package/lib/components/Chart/ChartParts.js +80 -80
  15. package/lib/components/Chart/chart2.js +57 -57
  16. package/lib/components/Chart/useChartInteraction.js +49 -49
  17. package/lib/components/ChatBubble/ChatBubble2.js +87 -87
  18. package/lib/components/ChatBubble/formatChatTime.js +34 -39
  19. package/lib/components/ChatComposer/ChatComposer2.js +97 -97
  20. package/lib/components/CodeBlock/CodeBlock2.js +60 -60
  21. package/lib/components/CodeBlock/highlight.js +75 -78
  22. package/lib/components/ColorPicker/ColorPicker2.js +383 -384
  23. package/lib/components/ColorPicker/color.js +74 -74
  24. package/lib/components/ColorPicker/presets.js +41 -46
  25. package/lib/components/Combobox/Combobox2.js +130 -131
  26. package/lib/components/CommandMenu/CommandMenu.js +137 -137
  27. package/lib/components/Comment/Comment2.js +64 -88
  28. package/lib/components/ContextMenu/ContextMenu2.js +87 -87
  29. package/lib/components/DataGrid/DataGrid2.js +911 -909
  30. package/lib/components/DataGrid/GridPopover.js +114 -114
  31. package/lib/components/DataGrid/anchor.js +25 -25
  32. package/lib/components/DataGrid/model.js +281 -282
  33. package/lib/components/DataGrid/panels.js +427 -429
  34. package/lib/components/DataGrid/typeMeta.js +50 -51
  35. package/lib/components/DataGrid/types.js +39 -40
  36. package/lib/components/DescriptionList/DescriptionList2.js +104 -104
  37. package/lib/components/Dialog/AlertDialog.js +85 -84
  38. package/lib/components/Dialog/Dialog2.js +72 -71
  39. package/lib/components/Dialog/modal.js +68 -68
  40. package/lib/components/Drawer/Drawer2.js +100 -100
  41. package/lib/components/DropdownMenu/DropdownMenu2.js +267 -268
  42. package/lib/components/DropdownMenu/menuCore.js +36 -36
  43. package/lib/components/Dropzone/Dropzone2.js +66 -65
  44. package/lib/components/EmptyState/EmptyState2.js +52 -54
  45. package/lib/components/FileChip/FileChip2.js +42 -66
  46. package/lib/components/FileUpload/FileUpload.js +171 -170
  47. package/lib/components/FilterChips/FilterChips2.js +54 -54
  48. package/lib/components/FunnelChart/FunnelChart2.js +144 -144
  49. package/lib/components/FunnelChart/funnel.js +56 -53
  50. package/lib/components/Highlight/Highlight2.js +60 -60
  51. package/lib/components/HoverCard/HoverCard.js +72 -72
  52. package/lib/components/InlineDiff/InlineDiff2.js +112 -112
  53. package/lib/components/InlineDiff/diff.js +81 -81
  54. package/lib/components/InlineDiff/useDiffReview.js +54 -53
  55. package/lib/components/Kanban/Kanban2.js +372 -372
  56. package/lib/components/Kanban/KanbanCard.js +80 -80
  57. package/lib/components/Kanban/move.js +55 -55
  58. package/lib/components/LineChart/LineChart2.js +167 -167
  59. package/lib/components/List/List2.js +64 -65
  60. package/lib/components/Listbox/Listbox2.js +105 -105
  61. package/lib/components/Marker/Marker2.js +54 -54
  62. package/lib/components/Menubar/Menubar2.js +112 -113
  63. package/lib/components/MultiSelect/MultiSelect2.js +106 -106
  64. package/lib/components/NavigationMenu/NavigationMenu2.js +227 -227
  65. package/lib/components/NoticeStack/NoticeStack2.js +115 -115
  66. package/lib/components/NumberStepper/NumberStepper2.js +69 -70
  67. package/lib/components/OtpInput/OtpInput2.js +87 -87
  68. package/lib/components/Pagination/Pagination2.js +97 -97
  69. package/lib/components/Pagination/paginationRange.js +23 -24
  70. package/lib/components/PhoneInput/PhoneInput.js +85 -85
  71. package/lib/components/PieChart/PieChart2.js +116 -116
  72. package/lib/components/PieChart/arc.js +80 -56
  73. package/lib/components/PieChart/useArcTween.js +57 -59
  74. package/lib/components/Popover/Popover2.js +59 -60
  75. package/lib/components/ProgressTracker/ProgressTracker2.js +116 -116
  76. package/lib/components/Rating/Rating2.js +93 -93
  77. package/lib/components/Resizable/Resizable2.js +136 -134
  78. package/lib/components/Resizable/layout.js +73 -73
  79. package/lib/components/ScaledPreview/ScaledPreview2.js +57 -58
  80. package/lib/components/ScatterChart/ScatterChart2.js +252 -253
  81. package/lib/components/ScatterChart/scatter.js +58 -56
  82. package/lib/components/ScrollArea/ScrollArea2.js +133 -134
  83. package/lib/components/Select/Select2.js +89 -89
  84. package/lib/components/Sidebar/Sidebar2.js +76 -76
  85. package/lib/components/Skeleton/Skeleton2.js +67 -67
  86. package/lib/components/Slider/Slider2.js +67 -67
  87. package/lib/components/SocialLoginButton/SocialLoginButton.js +46 -47
  88. package/lib/components/SparkChart/SparkChart2.js +130 -130
  89. package/lib/components/SparkChart/spark.js +57 -62
  90. package/lib/components/Sparkbar/Sparkbar2.js +44 -44
  91. package/lib/components/SplitView/SplitView2.js +53 -53
  92. package/lib/components/Stat/Stat2.js +83 -83
  93. package/lib/components/StepList/StepList2.js +73 -73
  94. package/lib/components/Table/Table2.js +45 -45
  95. package/lib/components/Tabs/Tabs2.js +87 -87
  96. package/lib/components/TagInput/TagInput2.js +231 -234
  97. package/lib/components/TimePicker/TimePicker2.js +195 -195
  98. package/lib/components/TimePicker/time.js +60 -62
  99. package/lib/components/Timeline/Timeline2.js +199 -199
  100. package/lib/components/Timeline/scale.js +56 -58
  101. package/lib/components/Toast/Toaster.js +153 -152
  102. package/lib/components/Toast/store.js +57 -58
  103. package/lib/components/ToggleGroup/ToggleGroup2.js +74 -74
  104. package/lib/components/Toolbar/Toolbar2.js +135 -133
  105. package/lib/components/Tracker/Tracker2.js +83 -83
  106. package/lib/components/TreeDiagram/TreeDiagram2.js +103 -103
  107. package/lib/components/TreeView/TreeView2.js +165 -163
  108. package/lib/hooks/timing.js +33 -31
  109. package/lib/hooks/useControllableState.js +42 -42
  110. package/lib/hooks/useCountdown.js +58 -63
  111. package/lib/hooks/useDigitInput.js +75 -77
  112. package/lib/hooks/useDismiss.js +50 -52
  113. package/lib/hooks/useElapsed.js +58 -56
  114. package/lib/hooks/useFloating.js +44 -44
  115. package/lib/hooks/useFocusTrap.js +64 -40
  116. package/lib/hooks/usePresence.js +48 -50
  117. package/lib/hooks/usePressToOpen.js +52 -51
  118. package/lib/hooks/useScrollLock.js +49 -48
  119. package/lib/hooks/useSelection.js +37 -40
  120. package/lib/index.js +70 -69
  121. package/lib/primitives/AspectRatio2.js +50 -54
  122. package/lib/primitives/BrandIcon.js +153 -153
  123. package/lib/primitives/ColorDot2.js +49 -48
  124. package/lib/primitives/CopyButton2.js +59 -58
  125. package/lib/primitives/CountBadge2.js +57 -55
  126. package/lib/primitives/Countdown2.js +45 -49
  127. package/lib/primitives/Delta2.js +71 -46
  128. package/lib/primitives/Elapsed.js +43 -43
  129. package/lib/primitives/FileIcon2.js +93 -93
  130. package/lib/primitives/Flag2.js +95 -95
  131. package/lib/primitives/IconStack2.js +55 -55
  132. package/lib/primitives/IconTile2.js +46 -45
  133. package/lib/primitives/Kbd2.js +55 -55
  134. package/lib/primitives/Layout2.js +80 -80
  135. package/lib/primitives/Link2.js +36 -34
  136. package/lib/primitives/MaskedText2.js +65 -64
  137. package/lib/primitives/Progress2.js +80 -80
  138. package/lib/primitives/RelativeTime.js +52 -54
  139. package/lib/primitives/SearchInput2.js +55 -54
  140. package/lib/primitives/SelectorButton2.js +64 -65
  141. package/lib/primitives/Spinner2.js +55 -59
  142. package/lib/primitives/StatusIcon2.js +65 -65
  143. package/lib/primitives/Swatch2.js +50 -50
  144. package/lib/primitives/Tooltip2.js +85 -85
  145. package/lib/primitives/Typography2.js +66 -66
  146. package/lib/primitives/formatCountdown.js +43 -40
  147. package/lib/primitives/formatElapsed.js +24 -27
  148. package/lib/primitives/formatRelativeTime.js +43 -43
  149. package/lib/primitives/hotkey.js +71 -71
  150. package/lib/primitives/index.js +156 -157
  151. package/lib/primitives/maskValue.js +38 -34
  152. package/lib/style.css +1 -1
  153. package/package.json +1 -1
@@ -1,96 +1,110 @@
1
1
  "use client";
2
- (function(e, t) {
3
- let n = y, r = e();
2
+ (function(t, n) {
3
+ let r = e, i = t();
4
4
  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;
6
- r.push(r.shift());
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());
7
7
  } catch {
8
- r.push(r.shift());
8
+ i.push(i.shift());
9
9
  }
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";
10
+ })(b, 186490);
11
+ function e(t, n) {
12
+ t -= 228;
13
+ let r = b(), i = r[t];
14
+ e.XPvvnL === void 0 && (e.YvaHYS = function(e) {
15
+ let t = "", n = "";
16
+ for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
17
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
18
+ return decodeURIComponent(n);
19
+ }, e.OPcTQZ = {}, e.XPvvnL = !0);
20
+ let a = r[0];
21
+ e.fVFZrW !== a && (e.OPcTQZ = {}, e.fVFZrW = a);
22
+ let o = e.OPcTQZ[t];
23
+ return o === void 0 ? (i = e.YvaHYS(i), e.OPcTQZ[t] = i) : i = o, i;
24
+ }
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";
15
29
  /* 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);
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);
22
36
  if (F !== I) {
23
37
  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))));
38
+ let e = new Set(n[x(249)]((e) => e.id));
39
+ D((t) => new Set([...t].filter((t) => e.has(t))));
26
40
  }
27
- c(() => {
28
- let e = x, t = N[e(221)];
41
+ l(() => {
42
+ let e = x, t = N[e(237)];
29
43
  return () => {
30
44
  let n = e;
31
- window.clearTimeout(M.current), t[n(184)]((e) => window[n(180)](e));
45
+ window[n(250)](M.current), t[n(258)]((e) => window[n(250)](e));
32
46
  };
33
47
  }, []);
34
- let R = s((e, t) => {
48
+ let R = c((e, t) => {
35
49
  C((n) => n[e] === t ? n : {
36
50
  ...n,
37
51
  [e]: t
38
52
  });
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, {
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, {
41
55
  index: G,
42
56
  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) => {
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) => {
45
59
  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();
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();
51
65
  }
52
- T((t) => new Set(t).add(e));
53
- let i = window[t(195)](() => {
54
- let r = t;
55
- N[r(221)][r(209)](i), D((t) => new Set(t)[r(206)](e)), T((t) => {
56
- let n = r, i = new Set(t);
57
- return i[n(209)](e), i;
58
- }), n?.(e);
59
- }, g);
60
- N[t(221)].add(i);
61
- }, Y = (t) => {
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);
75
+ }, Y = (e) => {
62
76
  let n = x;
63
- window.clearTimeout(M[n(221)]), M[n(221)] = window[n(195)](() => k(t), t ? e[n(215)] : e[n(186)]);
77
+ window[n(250)](M[n(237)]), M[n(237)] = window[n(236)](() => k(e), e ? t[n(266)] : t[n(272)]);
64
78
  };
65
- return z[x(188)] === 0 ? null : p(x(183), {
66
- className: r(x(198), m),
67
- "data-direction": o,
79
+ return z[x(235)] === 0 ? null : m("section", {
80
+ className: i(x(231), h),
81
+ "data-direction": s,
68
82
  "data-expanded": V || void 0,
69
83
  "aria-label": b,
70
- style: _,
71
- onPointerEnter: (e) => e[x(185)] === "mouse" && Y(!0),
72
- onPointerLeave: (e) => e[x(185)] === x(211) && Y(!1),
84
+ style: v,
85
+ onPointerEnter: (e) => e[x(261)] === x(240) && Y(!0),
86
+ onPointerLeave: (e) => e.pointerType === x(240) && Y(!1),
73
87
  onFocus: () => j(!0),
74
- onBlur: (e) => !e[x(228)].contains(e[x(187)]) && j(!1),
75
- children: p("ol", {
88
+ onBlur: (e) => !e.currentTarget[x(264)](e[x(255)]) && j(!1),
89
+ children: m("ol", {
76
90
  ref: P,
77
- className: x(205),
91
+ className: x(276),
78
92
  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, {
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, {
82
96
  item: e,
83
97
  onHeight: R,
84
98
  onDismiss: () => J(e.id),
85
- dismissLabel: f,
86
- leaving: w[t(224)](e.id),
87
- behind: a,
88
- hidden: n >= i,
99
+ dismissLabel: p,
100
+ leaving: w.has(e.id),
101
+ behind: i,
102
+ hidden: n >= a,
89
103
  style: {
90
- "--_y": (V ? r : n * h) * H + "px",
104
+ "--_y": (V ? r : n * g) * H + "px",
91
105
  "--_scale": V ? 1 : 1 - n * .05,
92
- "--_z": z.length - n,
93
- "--_h": (a ? K : S[e.id] ?? 0) + "px",
106
+ "--_z": z[t(235)] - n,
107
+ "--_h": (i ? K : S[e.id] ?? 0) + "px",
94
108
  "--_enter": -H * 16 + "px"
95
109
  }
96
110
  }, e.id);
@@ -98,81 +112,67 @@ function _({ items: t, onDismiss: n, visible: i = 3, expanded: a, direction: o =
98
112
  })
99
113
  });
100
114
  }
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(() => {
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(() => {
104
118
  let e = 0, t = requestAnimationFrame(() => {
105
119
  e = requestAnimationFrame(() => w(!0));
106
120
  });
107
121
  return () => {
108
122
  cancelAnimationFrame(t), cancelAnimationFrame(e);
109
123
  };
110
- }, []), l(() => {
111
- let t = y, n = S[t(221)];
112
- if (!n) return;
113
- let i = () => r(e.id, n.offsetHeight);
114
- i();
115
- let a = new ResizeObserver(i);
116
- return a[t(217)](n), () => a.disconnect();
117
- }, [e.id, r]), p("li", {
118
- className: x(220),
119
- "data-notice-id": e.id,
124
+ }, []), u(() => {
125
+ let n = e, r = S.current;
126
+ 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,
120
134
  "data-mounted": C || void 0,
121
- "data-leaving": g || void 0,
122
- "data-behind": _ || void 0,
123
- "data-hidden": v || void 0,
124
- inert: g || v || void 0,
135
+ "data-leaving": _ || void 0,
136
+ "data-behind": v || void 0,
137
+ "data-hidden": y || void 0,
138
+ inert: _ || y || void 0,
125
139
  style: b,
126
- children: p(i, {
140
+ children: m(a, {
127
141
  padding: "sm",
128
- className: x(190),
129
- children: m(x(191), {
142
+ className: x(228),
143
+ children: h(x(244), {
130
144
  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),
136
- tone: "accent",
137
- children: e[x(207)]
138
- }),
139
- title: e[x(227)],
140
- description: e[x(197)],
141
- actions: e.dismissible !== !1 && p(n, {
142
- className: x(181),
145
+ className: x(230),
146
+ children: [m(s, {
147
+ eyebrow: t[x(229)] && m(n, {
148
+ as: x(234),
143
149
  variant: x(233),
150
+ tone: x(270),
151
+ children: t.eyebrow
152
+ }),
153
+ title: t[x(253)],
154
+ description: t[x(262)],
155
+ actions: t.dismissible !== !1 && m(r, {
156
+ className: x(267),
157
+ variant: "ghost",
144
158
  size: "sm",
145
159
  iconOnly: !0,
146
- icon: p(f, {}),
147
- "aria-label": h,
148
- onClick: s
160
+ icon: m(p, {}),
161
+ "aria-label": g,
162
+ onClick: c
149
163
  })
150
- }), e.footer && p(a, {
151
- align: x(192),
152
- children: e[x(230)]
164
+ }), t[x(242)] && m(o, {
165
+ align: x(260),
166
+ children: t[x(242)]
153
167
  })]
154
168
  })
155
169
  })
156
170
  });
157
171
  }
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
+ export { v as NoticeStack };
172
173
  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
+ 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(".");
174
175
  return b = function() {
175
176
  return e;
176
177
  }, b();
177
178
  }
178
- export { _ as NoticeStack };
@@ -1,84 +1,77 @@
1
1
  "use client";
2
- const e = a;
3
- (function(e, t) {
4
- let n = a, r = e();
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;
15
+ }
16
+ const t = e;
17
+ (function(t, n) {
18
+ let r = e, i = t();
5
19
  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;
7
- r.push(r.shift());
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());
8
22
  } catch {
9
- r.push(r.shift());
23
+ i.push(i.shift());
10
24
  }
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
- }
25
+ })(m, 197900);
18
26
  import { TIMING as n } from "../../hooks/timing.js";
19
27
  import { useControllableState as r } from "../../hooks/useControllableState.js";
20
28
  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) {
25
- let t = "", n = "";
26
- 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
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
28
- 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;
34
- }
35
29
  /* 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;
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;
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);
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);
45
39
  j !== F && (I(j), R(j > F ? "up" : "down"));
46
- let z = s(j);
47
- o(() => {
48
- let e = A;
49
- z[e(355)] = j;
40
+ let z = o(j);
41
+ a(() => {
42
+ z.current = j;
50
43
  });
51
- let B = s({
44
+ let B = o({
52
45
  timer: 0,
53
46
  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)]);
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)]);
58
51
  }, []);
59
52
  let H = (e) => {
60
53
  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) => {
54
+ return n !== z[t(308)] && (z[t(308)] = n, M(n), !0);
55
+ }, U = (e) => H(z[A(308)] + e), W = (e) => (t) => {
63
56
  let r = A;
64
- if (t[r(370)] !== 0 || b) return;
65
- V(), B.current[r(361)] = !1;
57
+ if (t[r(319)] !== 0 || b) return;
58
+ V(), B[r(308)][r(339)] = !1;
66
59
  let i = () => {
67
60
  let t = r;
68
- B.current[t(361)] = !0, U(e) && (B[t(355)][t(368)] = window.setTimeout(i, n[t(376)]));
61
+ B[t(308)][t(339)] = !0, U(e) && (B.current[t(313)] = window[t(304)](i, n[t(325)]));
69
62
  };
70
- B[r(355)][r(368)] = window[r(348)](i, n[r(339)]);
63
+ B.current[r(313)] = window[r(304)](i, n.repeatDelay);
71
64
  }, G = (e) => () => {
72
65
  let t = A;
73
- B[t(355)][t(361)] ? B[t(355)][t(361)] = !1 : U(e);
66
+ B[t(308)][t(339)] ? B[t(308)][t(339)] = !1 : U(e);
74
67
  }, K = (e) => {
75
68
  let t = A;
76
- if (b || e.nativeEvent[t(358)]) return;
69
+ if (b || e[t(321)].isComposing) return;
77
70
  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),
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),
82
75
  "aria-label": t,
83
76
  tabIndex: -1,
84
77
  disabled: b || r,
@@ -89,41 +82,47 @@ function m({ value: t, defaultValue: a, onValueChange: m, min: h = -Infinity, ma
89
82
  onClick: G(e),
90
83
  children: n
91
84
  });
92
- return f("div", {
93
- className: i(A(352), "ds-stepper--" + y, O),
85
+ return d(A(333), {
86
+ className: i(A(334), "ds-stepper--" + y, O),
94
87
  "data-disabled": b || void 0,
95
88
  style: {
96
89
  "--_digits": Y + "ch",
97
90
  ...k
98
91
  },
99
92
  children: [
100
- X(-_, w, d(l, {}), j <= h),
101
- d(A(344), {
93
+ X(-_, w, u(c, {}), j <= h),
94
+ u(A(315), {
102
95
  id: D,
103
- role: A(371),
96
+ role: A(318),
104
97
  tabIndex: b ? -1 : 0,
105
- className: A(356),
98
+ className: "ds-stepper__value",
106
99
  "aria-label": S,
107
100
  "aria-labelledby": C,
108
101
  "aria-valuenow": j,
109
- "aria-valuemin": Number[A(360)](h) ? h : void 0,
110
- "aria-valuemax": Number[A(360)](g) ? g : void 0,
102
+ "aria-valuemin": Number.isFinite(h) ? h : void 0,
103
+ "aria-valuemax": Number[A(342)](g) ? g : void 0,
111
104
  "aria-valuetext": x ? J : void 0,
112
105
  "aria-disabled": b || void 0,
113
106
  onKeyDown: K,
114
- children: d(A(344), {
115
- className: A(366),
107
+ children: u("span", {
108
+ className: A(305),
116
109
  "data-dir": L ?? void 0,
117
110
  children: q
118
111
  }, j)
119
112
  }),
120
- X(_, T, d(u, {}), j >= g),
121
- E && d(A(382), {
122
- type: A(378),
113
+ X(_, T, u(l, {}), j >= g),
114
+ E && u(A(323), {
115
+ type: A(341),
123
116
  name: E,
124
117
  value: j
125
118
  })
126
119
  ]
127
120
  });
128
121
  }
129
- export { m as NumberStepper };
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 };