@iamfiro/design 0.3.2 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/agents/INDEX.md +1 -1
  2. package/agents/brand-icon/AGENTS.md +1 -1
  3. package/agents/social-login-button/AGENTS.md +4 -3
  4. package/lib/components/Accordion/Accordion2.js +87 -87
  5. package/lib/components/ActionBar/ActionBar2.js +42 -44
  6. package/lib/components/Alert/Alert2.js +61 -61
  7. package/lib/components/AppShell/AppShell2.js +70 -71
  8. package/lib/components/AreaChart/AreaChart.js +38 -40
  9. package/lib/components/BarChart/BarChart2.js +126 -126
  10. package/lib/components/BarList/BarList2.js +95 -95
  11. package/lib/components/Breadcrumb/Breadcrumb2.js +68 -66
  12. package/lib/components/Calendar/Calendar2.js +164 -164
  13. package/lib/components/Calendar/DatePicker2.js +103 -102
  14. package/lib/components/Calendar/date.js +64 -66
  15. package/lib/components/Card/Card2.js +67 -67
  16. package/lib/components/CardFrame/CardFrame2.js +43 -51
  17. package/lib/components/Chart/ChartParts.js +94 -94
  18. package/lib/components/Chart/chart2.js +52 -52
  19. package/lib/components/Chart/useChartInteraction.js +54 -54
  20. package/lib/components/ChatBubble/ChatBubble2.js +92 -92
  21. package/lib/components/ChatBubble/formatChatTime.js +35 -41
  22. package/lib/components/ChatComposer/ChatComposer2.js +63 -63
  23. package/lib/components/CodeBlock/CodeBlock2.js +61 -61
  24. package/lib/components/CodeBlock/highlight.js +84 -84
  25. package/lib/components/ColorPicker/ColorPicker2.js +387 -386
  26. package/lib/components/ColorPicker/color.js +71 -71
  27. package/lib/components/ColorPicker/presets.js +41 -46
  28. package/lib/components/Combobox/Combobox2.js +117 -118
  29. package/lib/components/CommandMenu/CommandMenu.js +127 -127
  30. package/lib/components/Comment/Comment2.js +86 -60
  31. package/lib/components/ContextMenu/ContextMenu2.js +77 -75
  32. package/lib/components/DataGrid/DataGrid2.js +1192 -1190
  33. package/lib/components/DataGrid/GridPopover.js +94 -94
  34. package/lib/components/DataGrid/anchor.js +34 -31
  35. package/lib/components/DataGrid/model.js +284 -283
  36. package/lib/components/DataGrid/panels.js +398 -399
  37. package/lib/components/DataGrid/typeMeta.js +51 -50
  38. package/lib/components/DataGrid/types.js +38 -39
  39. package/lib/components/DescriptionList/DescriptionList2.js +103 -103
  40. package/lib/components/Dialog/AlertDialog.js +79 -78
  41. package/lib/components/Dialog/Dialog2.js +59 -59
  42. package/lib/components/Dialog/modal.js +44 -46
  43. package/lib/components/Drawer/Drawer2.js +130 -129
  44. package/lib/components/DropdownMenu/DropdownMenu2.js +235 -233
  45. package/lib/components/DropdownMenu/menuCore.js +69 -42
  46. package/lib/components/Dropzone/Dropzone2.js +79 -78
  47. package/lib/components/EmptyState/EmptyState2.js +34 -35
  48. package/lib/components/FileChip/FileChip2.js +73 -73
  49. package/lib/components/FileUpload/FileUpload.js +159 -159
  50. package/lib/components/FilterChips/FilterChips2.js +61 -61
  51. package/lib/components/FunnelChart/FunnelChart2.js +161 -161
  52. package/lib/components/FunnelChart/funnel.js +48 -44
  53. package/lib/components/Highlight/Highlight2.js +43 -43
  54. package/lib/components/HoverCard/HoverCard.js +59 -84
  55. package/lib/components/InlineDiff/InlineDiff2.js +112 -112
  56. package/lib/components/InlineDiff/diff.js +90 -90
  57. package/lib/components/InlineDiff/useDiffReview.js +64 -63
  58. package/lib/components/Kanban/Kanban2.js +386 -387
  59. package/lib/components/Kanban/KanbanCard.js +70 -95
  60. package/lib/components/Kanban/move.js +50 -46
  61. package/lib/components/LineChart/LineChart2.js +211 -211
  62. package/lib/components/List/List2.js +53 -54
  63. package/lib/components/Listbox/Listbox2.js +115 -115
  64. package/lib/components/Marker/Marker2.js +56 -61
  65. package/lib/components/Menubar/Menubar2.js +144 -141
  66. package/lib/components/MultiSelect/MultiSelect2.js +108 -108
  67. package/lib/components/NavigationMenu/NavigationMenu2.js +298 -299
  68. package/lib/components/NoticeStack/NoticeStack2.js +84 -84
  69. package/lib/components/NumberStepper/NumberStepper2.js +65 -66
  70. package/lib/components/OtpInput/OtpInput2.js +70 -69
  71. package/lib/components/Pagination/Pagination2.js +106 -106
  72. package/lib/components/Pagination/paginationRange.js +37 -39
  73. package/lib/components/PhoneInput/PhoneInput.js +87 -88
  74. package/lib/components/PieChart/PieChart2.js +160 -160
  75. package/lib/components/PieChart/arc.js +65 -62
  76. package/lib/components/PieChart/useArcTween.js +53 -60
  77. package/lib/components/Popover/Popover2.js +62 -62
  78. package/lib/components/ProgressTracker/ProgressTracker2.js +121 -121
  79. package/lib/components/Rating/Rating2.js +82 -81
  80. package/lib/components/Resizable/Resizable2.js +126 -127
  81. package/lib/components/Resizable/layout.js +73 -73
  82. package/lib/components/ScaledPreview/ScaledPreview2.js +68 -67
  83. package/lib/components/ScatterChart/ScatterChart2.js +214 -213
  84. package/lib/components/ScatterChart/scatter.js +47 -49
  85. package/lib/components/ScrollArea/ScrollArea2.js +117 -118
  86. package/lib/components/Select/Select2.js +78 -79
  87. package/lib/components/Sidebar/Sidebar2.js +69 -69
  88. package/lib/components/Skeleton/Skeleton2.js +57 -57
  89. package/lib/components/Slider/Slider2.js +73 -74
  90. package/lib/components/SocialLoginButton/SocialLoginButton.js +76 -68
  91. package/lib/components/SparkChart/SparkChart2.js +145 -145
  92. package/lib/components/SparkChart/spark.js +64 -42
  93. package/lib/components/Sparkbar/Sparkbar2.js +60 -60
  94. package/lib/components/SplitView/SplitView2.js +51 -52
  95. package/lib/components/Stat/Stat2.js +90 -90
  96. package/lib/components/StepList/StepList2.js +70 -70
  97. package/lib/components/Table/Table2.js +70 -70
  98. package/lib/components/Tabs/Tabs2.js +81 -81
  99. package/lib/components/TagInput/TagInput2.js +220 -217
  100. package/lib/components/TimePicker/TimePicker2.js +187 -186
  101. package/lib/components/TimePicker/time.js +63 -62
  102. package/lib/components/Timeline/Timeline2.js +199 -199
  103. package/lib/components/Timeline/scale.js +67 -64
  104. package/lib/components/Toast/Toaster.js +100 -98
  105. package/lib/components/Toast/store.js +90 -94
  106. package/lib/components/ToggleGroup/ToggleGroup2.js +76 -76
  107. package/lib/components/Toolbar/Toolbar2.js +163 -161
  108. package/lib/components/Tracker/Tracker2.js +82 -82
  109. package/lib/components/TreeDiagram/TreeDiagram2.js +123 -124
  110. package/lib/components/TreeView/TreeView2.js +154 -152
  111. package/lib/hooks/timing.js +31 -30
  112. package/lib/hooks/useControllableState.js +37 -38
  113. package/lib/hooks/useCountdown.js +53 -56
  114. package/lib/hooks/useDigitInput.js +66 -41
  115. package/lib/hooks/useDismiss.js +55 -58
  116. package/lib/hooks/useElapsed.js +57 -55
  117. package/lib/hooks/useFloating.js +44 -44
  118. package/lib/hooks/useFocusTrap.js +70 -46
  119. package/lib/hooks/usePresence.js +23 -22
  120. package/lib/hooks/usePressToOpen.js +51 -51
  121. package/lib/hooks/useScrollLock.js +57 -58
  122. package/lib/hooks/useSelection.js +49 -52
  123. package/lib/index.js +65 -65
  124. package/lib/primitives/AspectRatio2.js +57 -57
  125. package/lib/primitives/BrandIcon.js +189 -158
  126. package/lib/primitives/ColorDot2.js +50 -45
  127. package/lib/primitives/CopyButton2.js +52 -50
  128. package/lib/primitives/CountBadge2.js +53 -55
  129. package/lib/primitives/Countdown2.js +28 -25
  130. package/lib/primitives/Delta2.js +41 -41
  131. package/lib/primitives/Elapsed.js +47 -47
  132. package/lib/primitives/FileIcon2.js +86 -86
  133. package/lib/primitives/Flag2.js +122 -122
  134. package/lib/primitives/IconStack2.js +55 -31
  135. package/lib/primitives/IconTile2.js +43 -43
  136. package/lib/primitives/Kbd2.js +55 -55
  137. package/lib/primitives/Layout2.js +78 -78
  138. package/lib/primitives/Link2.js +39 -36
  139. package/lib/primitives/MaskedText2.js +74 -52
  140. package/lib/primitives/Progress2.js +67 -66
  141. package/lib/primitives/RelativeTime.js +54 -61
  142. package/lib/primitives/SearchInput2.js +45 -45
  143. package/lib/primitives/SelectorButton2.js +72 -76
  144. package/lib/primitives/Spinner2.js +56 -56
  145. package/lib/primitives/StatusIcon2.js +63 -63
  146. package/lib/primitives/Swatch2.js +55 -61
  147. package/lib/primitives/Tooltip2.js +78 -78
  148. package/lib/primitives/Typography2.js +53 -53
  149. package/lib/primitives/formatCountdown.js +30 -29
  150. package/lib/primitives/formatElapsed.js +46 -49
  151. package/lib/primitives/formatRelativeTime.js +76 -50
  152. package/lib/primitives/hotkey.js +80 -80
  153. package/lib/primitives/index.js +169 -168
  154. package/lib/primitives/maskValue.js +55 -50
  155. package/lib/style.css +1 -1
  156. package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +1 -1
  157. package/lib/types/primitives/BrandIcon.d.ts +1 -1
  158. package/package.json +1 -1
@@ -1,214 +1,228 @@
1
1
  "use client";
2
- const e = H;
2
+ const e = a;
3
3
  (function(e, t) {
4
- let n = H, r = e();
4
+ let n = a, r = e();
5
5
  for (;;) try {
6
- if (-parseInt(n(119)) / 1 * (-parseInt(n(118)) / 2) + parseInt(n(213)) / 3 * (-parseInt(n(177)) / 4) + parseInt(n(138)) / 5 * (-parseInt(n(148)) / 6) + -parseInt(n(167)) / 7 + parseInt(n(128)) / 8 * (-parseInt(n(124)) / 9) + parseInt(n(125)) / 10 * (parseInt(n(160)) / 11) + parseInt(n(183)) / 12 == t) break;
6
+ if (-parseInt(n(528)) / 1 + parseInt(n(563)) / 2 + parseInt(n(538)) / 3 + parseInt(n(561)) / 4 + -parseInt(n(517)) / 5 + parseInt(n(553)) / 6 * (-parseInt(n(581)) / 7) + parseInt(n(504)) / 8 == t) break;
7
7
  r.push(r.shift());
8
8
  } catch {
9
9
  r.push(r.shift());
10
10
  }
11
- })(I, 639943);
11
+ })(z, 756482);
12
12
  import { Kbd as t } from "../../primitives/Kbd2.js";
13
13
  import { TIMING as n } from "../../hooks/timing.js";
14
14
  import { usePresence as r } from "../../hooks/usePresence.js";
15
15
  import { useControllableState as i } from "../../hooks/useControllableState.js";
16
- import { useFloating as a } from "../../hooks/useFloating.js";
17
- import { useDismiss as o } from "../../hooks/useDismiss.js";
16
+ function a(e, t) {
17
+ e -= 491;
18
+ let n = z(), r = n[e];
19
+ a.ZpgqJx === void 0 && (a.NpnnOp = function(e) {
20
+ let t = "", n = "";
21
+ 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);
22
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
23
+ return decodeURIComponent(n);
24
+ }, a.zJmFmE = {}, a.ZpgqJx = !0);
25
+ let i = n[0];
26
+ a.HXzNXW !== i && (a.zJmFmE = {}, a.HXzNXW = i);
27
+ let o = a.zJmFmE[e];
28
+ return o === void 0 ? (r = a.NpnnOp(r), a.zJmFmE[e] = r) : r = o, r;
29
+ }
30
+ import { useFloating as o } from "../../hooks/useFloating.js";
31
+ import { useDismiss as s } from "../../hooks/useDismiss.js";
18
32
  /* empty css */
19
- import { MenuContext as s, menuItems as c, trackPressDragRelease as l, useMenuRoot as u } from "./menuCore.js";
33
+ import { MenuContext as c, menuItems as l, trackPressDragRelease as u, useMenuRoot as d } from "./menuCore.js";
20
34
  /* empty css */
21
- import { createContext as d, useContext as f, useEffect as p, useId as m, useLayoutEffect as h, useRef as g, useState as _ } from "react";
22
- import { Check as v, ChevronRight as y } from "lucide-react";
23
- import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
24
- import { createPortal as C } from "react-dom";
25
- var w = 160, T = s, E = c, D = () => {
26
- let e = f(T);
27
- if (!e) throw Error("Menu items must be used inside <DropdownMenu>, <ContextMenu> or <MenubarMenu>");
28
- return e;
29
- }, O = d({
35
+ import { createContext as f, useContext as p, useEffect as m, useId as h, useLayoutEffect as g, useRef as _, useState as v } from "react";
36
+ import { Check as y, ChevronRight as b } from "lucide-react";
37
+ import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
38
+ import { createPortal as w } from "react-dom";
39
+ var T = 160, E = c, D = l, O = () => {
40
+ let e = a, t = p(E);
41
+ if (!t) throw Error(e(513));
42
+ return t;
43
+ }, k = f({
30
44
  openSub: null,
31
45
  setOpenSub: () => {}
32
46
  });
33
- function k({ trigger: t, children: n, open: s, defaultOpen: c = !1, onOpenChange: d, align: f = e(122), minWidth: h = 200, "aria-label": _ }) {
34
- let v = e, [y, b] = i(s, c, d), C = r(y, w), D = g(null), O = g(null), k = g(v(135)), j = g(""), M = m(), { style: N, side: P } = a(D, C[v(217)], {
47
+ function A({ trigger: t, children: n, open: c, defaultOpen: l = !1, onOpenChange: f, align: p = e(506), minWidth: g = 200, "aria-label": v }) {
48
+ let y = e, [b, x] = i(c, l, f), w = r(b, T), O = _(null), k = _(null), A = _(y(496)), M = _(""), N = h(), { style: P, side: F } = o(O, w[y(525)], {
35
49
  matchWidth: !1,
36
- align: f,
37
- panelRef: O,
50
+ align: p,
51
+ panelRef: k,
38
52
  maxHeight: 420
39
- }), F = () => D[v(154)]?.[v(206)](v(216))?.[v(184)]({ preventScroll: !0 }), I = (e = !0) => {
40
- b(!1), e && F();
41
- }, L = u(I);
42
- return o(y, [
43
- D,
53
+ }), I = () => O[y(499)]?.[y(511)]("button, [href], [tabindex]")?.[y(542)]({ preventScroll: !0 }), L = (e = !0) => {
54
+ x(!1), e && I();
55
+ }, R = d(L);
56
+ return s(b, [
44
57
  O,
45
- ...L[v(173)]
46
- ], () => b(!1)), p(() => {
47
- if (!y) return;
58
+ k,
59
+ ...R[y(530)]
60
+ ], () => x(!1)), m(() => {
61
+ if (!b) return;
48
62
  let e = requestAnimationFrame(() => {
49
- let e = H;
50
- k[e(154)] === e(114) ? E(O.current)[0]?.[e(184)]({ preventScroll: !0 }) : O.current?.[e(184)]({ preventScroll: !0 });
63
+ let e = a;
64
+ A[e(499)] === e(537) ? D(k[e(499)])[0]?.[e(542)]({ preventScroll: !0 }) : k[e(499)]?.[e(542)]({ preventScroll: !0 });
51
65
  });
52
66
  return () => cancelAnimationFrame(e);
53
- }, [y]), S(T[v(147)], {
54
- value: L,
55
- children: [x(v(163), {
56
- ref: D,
67
+ }, [b]), C(E[y(586)], {
68
+ value: R,
69
+ children: [S(y(571), {
70
+ ref: O,
57
71
  className: "ds-popover-anchor",
58
- "aria-haspopup": v(175),
59
- "aria-expanded": y,
60
- "aria-controls": y ? M : void 0,
72
+ "aria-haspopup": y(510),
73
+ "aria-expanded": b,
74
+ "aria-controls": b ? N : void 0,
61
75
  onPointerDown: (e) => {
62
- let t = v;
63
- if (j[t(154)] = e.pointerType, e.pointerType === t(156) && e[t(179)] === 0) {
64
- if (e.preventDefault(), y) return I(!1);
65
- k[t(154)] = "pointer", b(!0), l(e);
76
+ let t = y;
77
+ if (M.current = e[t(556)], e[t(556)] === t(532) && e[t(516)] === 0) {
78
+ if (e.preventDefault(), b) return L(!1);
79
+ A[t(499)] = t(496), x(!0), u(e);
66
80
  }
67
81
  },
68
82
  onKeyDown: (e) => {
69
- let t = v;
70
- if (e.key === t(161) && y) return e[t(159)](), I();
83
+ let t = y;
84
+ if (e[t(521)] === t(579) && b) return e[t(534)](), L();
71
85
  [
72
- t(140),
86
+ "Enter",
73
87
  " ",
74
- t(164),
75
- t(170)
76
- ][t(127)](e[t(210)]) && (e[t(159)](), k[t(154)] = t(114), b(!0), e[t(210)] === t(170) && requestAnimationFrame(() => E(O[t(154)]).at(-1)?.focus()));
88
+ t(557),
89
+ t(567)
90
+ ][t(582)](e.key) && (e[t(534)](), A[t(499)] = "keyboard", x(!0), e[t(521)] === t(567) && requestAnimationFrame(() => D(k[t(499)]).at(-1)?.[t(542)]()));
77
91
  },
78
92
  onClick: (e) => {
79
- let t = v;
80
- (e.detail === 0 || j[t(154)] !== t(156)) && (k.current = e[t(144)] === 0 ? "keyboard" : t(135), b(!y));
93
+ let t = y;
94
+ (e[t(497)] === 0 || M[t(499)] !== t(532)) && (A[t(499)] = e.detail === 0 ? t(537) : "pointer", x(!b));
81
95
  },
82
96
  children: t
83
- }), C[v(217)] && x(A, {
84
- id: M,
85
- panelRef: O,
86
- side: P,
87
- closing: C[v(133)],
97
+ }), w[y(525)] && S(j, {
98
+ id: N,
99
+ panelRef: k,
100
+ side: F,
101
+ closing: w[y(543)],
88
102
  style: {
89
- ...N,
90
- minWidth: h
103
+ ...P,
104
+ minWidth: g
91
105
  },
92
- "aria-label": _,
93
- onEscape: () => I(),
106
+ "aria-label": v,
107
+ onEscape: () => L(),
94
108
  children: n
95
109
  })]
96
110
  });
97
111
  }
98
- function A({ id: t, panelRef: n, side: r, closing: i, style: a, onEscape: o, onArrowLeft: s, onArrowRight: c, onPointerEnter: l, className: u, children: d, "aria-label": f, "aria-labelledby": p }) {
99
- let m = e, { closeAll: h } = D(), v = g({
112
+ function j({ id: t, panelRef: n, side: r, closing: i, style: o, onEscape: s, onArrowLeft: c, onArrowRight: l, onPointerEnter: u, className: d, children: f, "aria-label": p, "aria-labelledby": m }) {
113
+ let h = e, { closeAll: g } = O(), y = _({
100
114
  text: "",
101
115
  at: 0
102
- }), [y, b] = _(null);
103
- return C(x(m(134), {
116
+ }), [b, x] = v(null);
117
+ return w(S(h(555), {
104
118
  ref: n,
105
119
  id: t,
106
120
  role: "menu",
107
- "aria-label": f,
108
- "aria-labelledby": p,
121
+ "aria-label": p,
122
+ "aria-labelledby": m,
109
123
  tabIndex: -1,
110
- className: u ? "ds-floating ds-scroll ds-menu " + u : "ds-floating ds-scroll ds-menu",
124
+ className: d ? h(509) + d : "ds-floating ds-scroll ds-menu",
111
125
  "data-side": r,
112
- "data-state": i ? "closed" : "open",
113
- style: a,
126
+ "data-state": h(i ? 492 : 576),
127
+ style: o,
114
128
  onKeyDown: (e) => {
115
- let t = H;
116
- if (e[t(120)] instanceof HTMLElement && e[t(120)][t(203)](t(190)) !== n.current) return;
117
- let r = E(n[t(154)]), i = r[t(111)](document[t(171)]), a = (e) => r[(e + r.length) % r[t(143)]]?.[t(184)]();
118
- switch (e[t(210)]) {
119
- case t(164):
120
- e[t(159)](), a(i + 1);
121
- break;
122
- case "ArrowUp":
123
- e[t(159)](), a(i < 0 ? -1 : i - 1);
129
+ let t = a;
130
+ if (e.target instanceof HTMLElement && e[t(568)][t(539)](t(503)) !== n[t(499)]) return;
131
+ let r = D(n[t(499)]), i = r.indexOf(document[t(565)]), o = (e) => r[(e + r.length) % r[t(587)]]?.[t(542)]();
132
+ switch (e.key) {
133
+ case "ArrowDown":
134
+ e[t(534)](), o(i + 1);
124
135
  break;
125
- case t(204):
126
- e[t(159)](), a(0);
136
+ case t(567):
137
+ e[t(534)](), o(i < 0 ? -1 : i - 1);
127
138
  break;
128
- case t(166):
129
- e[t(159)](), a(-1);
139
+ case "Home":
140
+ e[t(534)](), o(0);
130
141
  break;
131
- case t(161):
132
- e[t(159)](), e.stopPropagation(), o();
142
+ case t(498):
143
+ e[t(534)](), o(-1);
133
144
  break;
134
- case t(181):
135
- s && (e[t(159)](), s());
145
+ case "Escape":
146
+ e[t(534)](), e[t(508)](), s();
136
147
  break;
137
- case t(195):
148
+ case "ArrowLeft":
138
149
  c && (e.preventDefault(), c());
139
150
  break;
140
- case t(136):
141
- e.preventDefault(), h(!0);
151
+ case "ArrowRight":
152
+ l && (e[t(534)](), l());
142
153
  break;
143
- default: if (e[t(210)][t(143)] === 1 && !e[t(155)] && !e[t(187)] && !e[t(209)]) {
144
- let n = Date[t(205)](), a = v.current;
145
- a[t(123)] = n - a.at > 600 ? e.key : a[t(123)] + e[t(210)], a.at = n, [...r[t(196)](i + 1), ...r[t(196)](0, i + 1)][t(192)]((e) => e.textContent?.[t(152)]().toLowerCase()[t(214)](a[t(123)][t(129)]()))?.[t(184)]();
154
+ case t(584):
155
+ e[t(534)](), g(!0);
156
+ break;
157
+ default: if (e.key[t(587)] === 1 && !e.ctrlKey && !e[t(583)] && !e[t(569)]) {
158
+ let n = Date[t(552)](), a = y.current;
159
+ a[t(546)] = n - a.at > 600 ? e.key : a[t(546)] + e.key, a.at = n, [...r[t(500)](i + 1), ...r[t(500)](0, i + 1)][t(580)]((e) => e[t(572)]?.trim()[t(536)]().startsWith(a[t(546)][t(536)]()))?.[t(542)]();
146
160
  }
147
161
  }
148
162
  },
149
- onPointerEnter: l,
150
- onPointerDown: (e) => e.target === e[m(150)] && e[m(159)](),
151
- children: x(O[m(147)], {
163
+ onPointerEnter: u,
164
+ onPointerDown: (e) => e[h(568)] === e[h(526)] && e[h(534)](),
165
+ children: S(k[h(586)], {
152
166
  value: {
153
- openSub: y,
154
- setOpenSub: b
167
+ openSub: b,
168
+ setOpenSub: x
155
169
  },
156
- children: d
170
+ children: f
157
171
  })
158
- }), document.body);
172
+ }), document[h(588)]);
159
173
  }
160
- function j({ role: n, checked: r, danger: i, disabled: a, icon: o, indicator: s, description: c, shortcut: l, trailing: u, children: d, onActivate: p, extra: m }) {
161
- let h = e, { isAimingAtSub: g } = D(), _ = f(O), v = m?.["data-sub-trigger"] !== void 0;
162
- return S(h(134), {
174
+ function M({ role: n, checked: r, danger: i, disabled: a, icon: o, indicator: s, description: c, shortcut: l, trailing: u, children: d, onActivate: f, extra: m }) {
175
+ let h = e, { isAimingAtSub: g } = O(), _ = p(k), v = m?.[h(549)] !== void 0;
176
+ return C(h(555), {
163
177
  role: n,
164
178
  tabIndex: -1,
165
179
  "data-menu-item": "",
166
180
  "aria-checked": r,
167
181
  "aria-disabled": a || void 0,
168
182
  "data-danger": i || void 0,
169
- className: "ds-menu__item",
183
+ className: h(524),
170
184
  onPointerMove: (e) => {
171
185
  let t = h;
172
- a || e[t(150)] === document[t(171)] || g(e.clientX, e[t(162)]) || (e[t(150)][t(184)]({ preventScroll: !0 }), v || _[t(197)](null));
186
+ a || e[t(526)] === document[t(565)] || g(e[t(547)], e[t(515)]) || (e.currentTarget[t(542)]({ preventScroll: !0 }), v || _[t(491)](null));
173
187
  },
174
- onClick: () => !a && p(),
188
+ onClick: () => !a && f(),
175
189
  onKeyDown: (e) => {
176
190
  let t = h;
177
- e[t(210)] !== t(140) && e[t(210)] !== " " || a || (e[t(159)](), p());
191
+ e[t(521)] !== t(527) && e.key !== " " || a || (e[t(534)](), f());
178
192
  },
179
193
  ...m,
180
194
  children: [
181
- s !== void 0 && x(h(163), {
182
- className: h(212),
195
+ s !== void 0 && S(h(571), {
196
+ className: h(578),
183
197
  children: s
184
198
  }),
185
- o && x(h(163), {
186
- className: h(145),
199
+ o && S(h(571), {
200
+ className: h(585),
187
201
  children: o
188
202
  }),
189
- S(h(163), {
190
- className: h(191),
191
- children: [x(h(163), {
192
- className: h(113),
203
+ C(h(571), {
204
+ className: h(560),
205
+ children: [S(h(571), {
206
+ className: h(554),
193
207
  children: d
194
- }), c && x(h(163), {
208
+ }), c && S(h(571), {
195
209
  className: "ds-menu__desc",
196
210
  children: c
197
211
  })]
198
212
  }),
199
- l && x(t, {
213
+ l && S(t, {
200
214
  keys: l,
201
215
  size: "sm",
202
- className: h(115)
216
+ className: "ds-menu__shortcut"
203
217
  }),
204
218
  u
205
219
  ]
206
220
  });
207
221
  }
208
- function M({ onSelect: t, danger: n, keepOpen: r, ...i }) {
209
- let a = e, { closeAll: o } = D();
210
- return x(j, {
211
- role: a(112),
222
+ function N({ onSelect: t, danger: n, keepOpen: r, ...i }) {
223
+ let a = e, { closeAll: o } = O();
224
+ return S(M, {
225
+ role: a(566),
212
226
  danger: n,
213
227
  ...i,
214
228
  onActivate: () => {
@@ -216,13 +230,13 @@ function M({ onSelect: t, danger: n, keepOpen: r, ...i }) {
216
230
  }
217
231
  });
218
232
  }
219
- function N({ checked: t, onCheckedChange: n, closeOnSelect: r, ...i }) {
220
- let a = e, { closeAll: o } = D();
221
- return x(j, {
222
- role: a(165),
233
+ function P({ checked: t, onCheckedChange: n, closeOnSelect: r, ...i }) {
234
+ let a = e, { closeAll: o } = O();
235
+ return S(M, {
236
+ role: a(522),
223
237
  checked: t,
224
- indicator: x(v, {
225
- className: a(137),
238
+ indicator: S(y, {
239
+ className: a(590),
226
240
  "data-on": t || void 0
227
241
  }),
228
242
  ...i,
@@ -231,162 +245,150 @@ function N({ checked: t, onCheckedChange: n, closeOnSelect: r, ...i }) {
231
245
  }
232
246
  });
233
247
  }
234
- var P = d(null);
235
- function F({ value: t, onValueChange: n, label: r, children: i }) {
248
+ var F = f(null);
249
+ function I({ value: t, onValueChange: n, label: r, children: i }) {
236
250
  let a = e;
237
- return x(P[a(147)], {
251
+ return S(F[a(586)], {
238
252
  value: {
239
253
  value: t,
240
254
  onChange: n
241
255
  },
242
- children: S(a(134), {
243
- role: a(200),
244
- "aria-label": typeof r === a(151) ? r : void 0,
245
- children: [r && x(R, { children: r }), i]
256
+ children: C(a(555), {
257
+ role: "group",
258
+ "aria-label": typeof r === a(507) ? r : void 0,
259
+ children: [r && S(R, { children: r }), i]
246
260
  })
247
261
  });
248
262
  }
249
- function I() {
250
- let e = /* @__PURE__ */ "mJu5mJbhr2HYvvu.y2XLyxjuAw1LB3v0.Aw5JBhvKzxm.mZi4CM1nueD4.Dg9mB3DLCKnHC2u.yM90Dg9T.q2HLy2TIB3HjDgvT.DMfSDwu.y2XVC2LUzW.zgL2.Cg9PBNrLCG.vgfI.zhmTBwvUDv9Fy2HLy2S.mteZmdCZnvLnugjotW.Ag92zxjjBNrLBNq.rw50zxi.CMLNAhq.Dg9W.BgvUz3rO.zgv0ywLS.zhmTBwvUDv9FAwnVBG.B2zMC2v0v2LKDgG.uhjVDMLKzxi.mJrZtwXxvha.C2vWyxjHDg9Y.y3vYCMvUDfrHCMDLDa.C3rYAw5N.DhjPBq.u3vI.y3vYCMvUDa.y3rYBeTLEq.Bw91C2u.BgvMDa.Bwf4.ChjLDMvUDerLzMf1Bhq.mZmYmKDSyK1vEa.rxnJyxbL.y2XPzw50wq.C3bHBG.qxjYB3DeB3DU.BwvUDwL0zw1JAgvJA2jVEa.rw5K.mJG4mdi5vNv2tvLH.C3rVCfbYB3bHz2f0Aw9U.tgfIzwW.qxjYB3DvCa.ywn0AxzLrwXLBwvUDa.z2v0qM91BMrPBMDdBgLLBNrszwn0.CgfUzwXZ.B25dAgfUz2u.BwvUDq.uMfKAw9hCM91Ca.mtG0odrZD2vktfO.rhjVCgrVD25nzw51uMfKAw9jDgvTig11C3qGyMuGAw5ZAwrLierYB3bKB3DUtwvUDvjHzgLVr3jVDxa.yNv0Dg9U.BwLU.qxjYB3Dmzwz0.C2v0vgLTzw91Da.nJGZmdm3nLnkvw5hzG.zM9JDxm.B3bLBLn1yG.u2vWyxjHDg9Y.Bwv0yuTLEq.zhmTBwvUDv9FC2vW.sxrLBq.w3jVBgu9iM1LBNuIxq.zhmTBwvUDv9FDgv4Da.zMLUza.y2XPzw50wa.Aw5UzxjizwLNAhq.qxjYB3DsAwDODa.C2XPy2u.C2v0t3bLBLn1yG.Ag92zxjhCMfJzq.Aw5UzxjxAwr0Aa.z3jVDxa.B2zMC2v0sgvPz2H0.BwvUDwL0zw1YywrPBW.y2XVC2vZDa.sg9Tzq.BM93.CxvLCNLtzwXLy3rVCG.uMfKAw9jDgvT.AgLKzgvU.ywX0s2v5.A2v5.zhmTBwvUDv9Fy2HLDNjVBG.zhmTBwvUDv9FAw5KAwnHDg9Y.mJy3CKj2wMrS.C3rHCNrZv2L0Aa.zML4zwq.yNv0Dg9UlcbBAhjLzL0SifT0ywjPBMrLEf0.Bw91BNrLza.Aw5KzxHpzG.BwvUDwL0zw0.zhmTBwvUDv9FBgfIzwW.A2v5yM9HCMq.zhmTBwvUDv9FC2HVCNrJDxq.ChjLC2vUDgf0Aw9U.ywrK.mKzpuhn5yG.mta4nte0mvvMzMnqCW.DgfYz2v0.C2v0qwLT.C3rHCNq.Dgv4Da.oty2mJrcq1fHy0W".split(".");
251
- return I = function() {
252
- return e;
253
- }, I();
254
- }
255
263
  function L({ value: t, ...n }) {
256
- let r = e, i = f(P);
257
- if (!i) throw Error(r(178));
258
- let a = i[r(132)] === t;
259
- return x(j, {
260
- role: r(202),
264
+ let r = e, i = p(F);
265
+ if (!i) throw Error(r(493));
266
+ let a = i[r(495)] === t;
267
+ return S(M, {
268
+ role: r(529),
261
269
  checked: a,
262
- indicator: x("span", {
263
- className: "ds-menu__dot",
270
+ indicator: S(r(571), {
271
+ className: r(523),
264
272
  "data-on": a || void 0
265
273
  }),
266
274
  ...n,
267
- onActivate: () => i[r(174)](t)
275
+ onActivate: () => i[r(570)](t)
268
276
  });
269
277
  }
270
278
  function R({ children: t }) {
271
- return x("div", {
272
- role: e(116),
273
- className: "ds-menu__group-label",
279
+ let n = e;
280
+ return S(n(555), {
281
+ role: n(519),
282
+ className: n(573),
274
283
  children: t
275
284
  });
276
285
  }
277
286
  function z() {
287
+ let e = /* @__PURE__ */ "tgfIzwW.y2XLyxjuAw1LB3v0.zM9JDxm.y2XVC2LUzW.AgLKzgvU.Bwf4.Dgv4Da.y2XPzw50wa.sxrLBq.zgf0ys1ZDwiTDhjPz2DLCG.CMLNAhq.u2vWyxjHDg9Y.BM93.mJu4vMzOzwDo.zhmTBwvUDv9FBgfIzwW.zgL2.Cg9PBNrLCLr5Cgu.qxjYB3DeB3DU.yM90Dg9T.B2zMC2v0v2LKDgG.zhmTBwvUDv9FDgv4Da.mZi1mtyWmfLHCNLiEG.zML4zwq.mte1mda4C2LPBKjW.zhmTBwvUDv9FC2vW.ywn0AxzLrwXLBwvUDa.BwvUDwL0zw0.qxjYB3DvCa.DgfYz2v0.ywX0s2v5.B25dAgfUz2u.C3bHBG.Dgv4DenVBNrLBNq.zhmTBwvUDv9Fz3jVDxaTBgfIzwW.zgvSzxrL.BgvMDa.B3bLBG.C2v0vgLTzw91Da.zhmTBwvUDv9FAw5KAwnHDg9Y.rxnJyxbL.zMLUza.ntu3nJLrwffRtuu.Aw5JBhvKzxm.Bwv0yuTLEq.vgfI.zhmTBwvUDv9FAwnVBG.uhjVDMLKzxi.BgvUz3rO.yM9KEq.q2HLy2TIB3HjDgvT.zhmTBwvUDv9Fy2HLy2S.C2v0t3bLBLn1yG.y2XVC2vK.rhjVCgrVD25nzw51uMfKAw9jDgvTig11C3qGyMuGAw5ZAwrLierYB3bKB3DUtwvUDvjHzgLVr3jVDxa.zhmTBwvUDv9Fy2HLDNjVBG.DMfSDwu.Cg9PBNrLCG.zgv0ywLS.rw5K.y3vYCMvUDa.C2XPy2u.C2vWyxjHDg9Y.u3vI.w3jVBgu9iM1LBNuIxq.mtaZodGXmtjduLvAEMq.z2v0qM91BMrPBMDdBgLLBNrszwn0.C3rHCNq.C3rYAw5N.C3rVCfbYB3bHz2f0Aw9U.zhmTzMXVyxrPBMCGzhmTC2nYB2XSigrZlw1LBNuG.BwvUDq.CxvLCNLtzwXLy3rVCG.Ag92zxjjBNrLBNq.twvUDsbPDgvTCYbTDxn0igjLihvZzwqGAw5ZAwrLidXeCM9Wzg93BK1LBNu+lca8q29UDgv4De1LBNu+ig9YidXnzw51yMfYtwvUDt4.uMfKAw9jDgvT.y2XPzw50wq.yNv0Dg9U.nZeWmtq0me1yCvntBq.C2v0qwLT.ChjLC2vUDgf0Aw9U.Dg9W.A2v5.BwvUDwL0zw1JAgvJA2jVEa.zhmTBwvUDv9Fzg90.zhmTBwvUDv9FAxrLBq.Bw91BNrLza.y3vYCMvUDfrHCMDLDa.rw50zxi.mJK3mtK5zKzgr1b4.BwvUDwL0zw1YywrPBW.CgfUzwXZ.ywrK.Bw91C2u.qxjYB3DsAwDODa.ChjLDMvUDerLzMf1Bhq.uMfKAw9hCM91Ca.Dg9mB3DLCKnHC2u.A2v5yM9HCMq.mtK0mJG5nLfks1r4Cq.y2XVC2vZDa".split(".");
288
+ return z = function() {
289
+ return e;
290
+ }, z();
291
+ }
292
+ function B() {
278
293
  let t = e;
279
- return x(t(134), {
280
- role: t(149),
281
- className: t(188)
294
+ return S(t(555), {
295
+ role: t(501),
296
+ className: t(564)
282
297
  });
283
298
  }
284
- function B([e, t], [n, r], [i, a], [o, s]) {
299
+ function V([e, t], [n, r], [i, a], [o, s]) {
285
300
  let c = (e, t, n, r, i, a) => (e - i) * (r - a) - (n - i) * (t - a), l = c(e, t, n, r, i, a), u = c(e, t, i, a, o, s), d = c(e, t, o, s, n, r);
286
301
  return !((l < 0 || u < 0 || d < 0) && (l > 0 || u > 0 || d > 0));
287
302
  }
288
- function V({ label: t, icon: i, disabled: a, children: o }) {
289
- let s = e, c = D(), l = f(O), u = m(), d = l.openSub === u, v = (e) => {
290
- let t = H;
291
- e ? l[t(197)](u) : l[t(185)] === u && l.setOpenSub(null);
292
- }, C = r(d, w), T = g(null), k = g(null), M = g(0), N = g(null), [P, F] = _({
293
- position: s(215),
294
- visibility: s(208)
295
- }), [I, L] = _(s(141));
296
- p(() => () => window[s(126)](M[s(154)]), []), p(() => {
297
- let e = s;
298
- return c[e(173)][e(117)](k), () => {
299
- c[e(173)].delete(k);
303
+ function H({ label: t, icon: i, disabled: o, children: s }) {
304
+ let c = e, l = O(), u = p(k), d = h(), f = u.openSub === d, y = (e) => {
305
+ let t = a;
306
+ e ? u[t(491)](d) : u.openSub === d && u[t(491)](null);
307
+ }, w = r(f, T), E = _(null), A = _(null), N = _(0), P = _(null), [F, I] = v({
308
+ position: "fixed",
309
+ visibility: c(544)
310
+ }), [L, R] = v(c(550));
311
+ m(() => () => window[c(541)](N[c(499)]), []), m(() => {
312
+ let e = c;
313
+ return l[e(530)][e(531)](A), () => {
314
+ let t = e;
315
+ l[t(530)][t(574)](A);
300
316
  };
301
- }, [c[s(173)]]), h(() => {
302
- let e = s;
303
- if (!C[e(217)]) return;
304
- let t = T[e(154)]?.[e(172)](), n = k[e(154)]?.[e(146)] ?? 200, r = k[e(154)]?.[e(201)] ?? 0;
317
+ }, [l.panels]), g(() => {
318
+ let e = c;
319
+ if (!w[e(525)]) return;
320
+ let t = E[e(499)]?.getBoundingClientRect(), n = A.current?.[e(559)] ?? 200, r = A[e(499)]?.offsetHeight ?? 0;
305
321
  if (!t) return;
306
- let i = t[e(141)] + 4 + n <= window[e(199)] - 8;
307
- L(i ? e(141) : "left"), F({
308
- position: e(215),
309
- left: i ? t[e(141)] + 4 : t.left - 4 - n,
310
- top: Math[e(158)](8, Math[e(180)](t[e(142)] - 6, window[e(194)] - r - 8)),
322
+ let i = t.right + 4 + n <= window.innerWidth - 8;
323
+ R(e(i ? 550 : 575)), I({
324
+ position: e(562),
325
+ left: i ? t.right + 4 : t[e(575)] - 4 - n,
326
+ top: Math[e(545)](8, Math.min(t[e(520)] - 6, window.innerHeight - r - 8)),
311
327
  minWidth: 200
312
328
  });
313
- }, [C[s(217)]]), p(() => {
314
- let e = s;
315
- if (d) return c.setAim((e, t) => {
316
- let n = H, r = N.current, i = k[n(154)]?.[n(172)]();
317
- if (!r || !i) return !1;
318
- let a = I === "right" ? i[n(157)] : i.right;
319
- return B([e, t], r, [a, i.top - 8], [a, i[n(130)] + 8]);
320
- }), () => c[e(121)](null);
329
+ }, [w[c(525)]]), m(() => {
330
+ let e = c;
331
+ if (f) return l[e(518)]((t, n) => {
332
+ let r = e, i = P.current, a = A[r(499)]?.[r(505)]();
333
+ if (!i || !a) return !1;
334
+ let o = L === r(550) ? a[r(575)] : a.right;
335
+ return V([t, n], i, [o, a.top - 8], [o, a[r(558)] + 8]);
336
+ }), () => l[e(518)](null);
321
337
  }, [
322
- d,
323
- I,
324
- c
338
+ f,
339
+ L,
340
+ l
325
341
  ]);
326
- let R = (e) => {
327
- let t = s;
328
- window.clearTimeout(M[t(154)]), v(!0), e && requestAnimationFrame(() => E(k[t(154)])[0]?.[t(184)]());
329
- }, z = (e) => {
330
- let t = s;
331
- window[t(126)](M[t(154)]), v(!1), N[t(154)] = null, e && T[t(154)]?.focus();
342
+ let z = (e) => {
343
+ let t = c;
344
+ window.clearTimeout(N[t(499)]), y(!0), e && requestAnimationFrame(() => D(A[t(499)])[0]?.[t(542)]());
345
+ }, B = (e) => {
346
+ let t = c;
347
+ window[t(541)](N[t(499)]), y(!1), P.current = null, e && E[t(499)]?.[t(542)]();
332
348
  };
333
- return S(b, { children: [x(j, {
334
- role: s(112),
349
+ return C(x, { children: [S(M, {
350
+ role: c(566),
335
351
  icon: i,
336
- disabled: a,
337
- trailing: x(y, { className: s(211) }),
338
- onActivate: () => R(!0),
352
+ disabled: o,
353
+ trailing: S(b, { className: c(494) }),
354
+ onActivate: () => z(!0),
339
355
  extra: {
340
- ref: T,
356
+ ref: E,
341
357
  "data-sub-trigger": "",
342
- "data-open": d || void 0,
343
- "aria-haspopup": "menu",
344
- "aria-expanded": d,
358
+ "data-open": f || void 0,
359
+ "aria-haspopup": c(510),
360
+ "aria-expanded": f,
345
361
  onPointerEnter: () => {
346
- let e = s;
347
- a || (window[e(126)](M.current), M.current = window[e(182)](() => R(!1), n[e(139)]));
362
+ let e = c;
363
+ o || (window[e(541)](N.current), N[e(499)] = window[e(577)](() => z(!1), n[e(512)]));
348
364
  },
349
365
  onPointerLeave: (e) => {
350
- let t = s;
351
- window[t(126)](M.current), d && (N[t(154)] = [e[t(193)], e[t(162)]], M.current = window[t(182)](() => z(!1), n[t(198)]));
366
+ let t = c;
367
+ window[t(541)](N.current), f && (P.current = [e.clientX, e[t(515)]], N[t(499)] = window[t(577)](() => B(!1), n.hoverGrace));
352
368
  },
353
369
  onKeyDown: (e) => {
354
- let t = s;
370
+ let t = c;
355
371
  [
356
- t(195),
372
+ t(533),
357
373
  "Enter",
358
374
  " "
359
- ][t(127)](e[t(210)]) && !a && (e.preventDefault(), e[t(168)](), R(!0));
375
+ ][t(582)](e[t(521)]) && !o && (e[t(534)](), e[t(508)](), z(!0));
360
376
  }
361
377
  },
362
378
  children: t
363
- }), C[s(217)] && x(A, {
364
- panelRef: k,
365
- side: I,
366
- closing: C.closing,
367
- style: P,
368
- onEscape: () => z(!0),
369
- onArrowLeft: () => z(!0),
379
+ }), w[c(525)] && S(j, {
380
+ panelRef: A,
381
+ side: L,
382
+ closing: w[c(543)],
383
+ style: F,
384
+ onEscape: () => B(!0),
385
+ onArrowLeft: () => B(!0),
370
386
  onPointerEnter: () => {
371
- let e = s;
372
- window.clearTimeout(M[e(154)]), N[e(154)] = null;
387
+ let e = c;
388
+ window[e(541)](N[e(499)]), P[e(499)] = null;
373
389
  },
374
- children: o
390
+ children: s
375
391
  })] });
376
392
  }
377
- k[e(189)] = M, k[e(131)] = N, k[e(176)] = F, k[e(207)] = L, k[e(169)] = R, k[e(186)] = z, k[e(153)] = V;
378
- function H(e, t) {
379
- e -= 111;
380
- let n = I(), r = n[e];
381
- H.CfjRJu === void 0 && (H.MVFsmz = function(e) {
382
- let t = "", n = "";
383
- 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);
384
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
385
- return decodeURIComponent(n);
386
- }, H.aKvlOq = {}, H.CfjRJu = !0);
387
- let i = n[0];
388
- H.IftQNV !== i && (H.aKvlOq = {}, H.IftQNV = i);
389
- let a = H.aKvlOq[e];
390
- return a === void 0 ? (r = H.MVFsmz(r), H.aKvlOq[e] = r) : r = a, r;
391
- }
392
- export { k as DropdownMenu, N as DropdownMenuCheckboxItem, M as DropdownMenuItem, R as DropdownMenuLabel, F as DropdownMenuRadioGroup, L as DropdownMenuRadioItem, z as DropdownMenuSeparator, V as DropdownMenuSub, A as MenuPanel };
393
+ A[e(548)] = N, A[e(589)] = P, A[e(535)] = I, A[e(514)] = L, A[e(540)] = R, A[e(551)] = B, A[e(502)] = H;
394
+ export { A as DropdownMenu, P as DropdownMenuCheckboxItem, N as DropdownMenuItem, R as DropdownMenuLabel, I as DropdownMenuRadioGroup, L as DropdownMenuRadioItem, B as DropdownMenuSeparator, H as DropdownMenuSub, j as MenuPanel };