@iamfiro/design 0.3.4 → 0.3.5

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/app-shell/AGENTS.md +99 -1
  2. package/lib/components/Accordion/Accordion2.js +93 -93
  3. package/lib/components/ActionBar/ActionBar2.js +44 -40
  4. package/lib/components/Alert/Alert2.js +64 -64
  5. package/lib/components/AppShell/AppShell2.js +73 -66
  6. package/lib/components/AreaChart/AreaChart.js +49 -47
  7. package/lib/components/BarChart/BarChart2.js +107 -107
  8. package/lib/components/BarList/BarList2.js +99 -99
  9. package/lib/components/Breadcrumb/Breadcrumb2.js +53 -56
  10. package/lib/components/Calendar/Calendar2.js +164 -164
  11. package/lib/components/Calendar/DatePicker2.js +76 -77
  12. package/lib/components/Calendar/date.js +49 -70
  13. package/lib/components/Card/Card2.js +104 -77
  14. package/lib/components/CardFrame/CardFrame2.js +46 -42
  15. package/lib/components/Chart/ChartParts.js +73 -73
  16. package/lib/components/Chart/chart2.js +53 -53
  17. package/lib/components/Chart/useChartInteraction.js +49 -49
  18. package/lib/components/ChatBubble/ChatBubble2.js +118 -118
  19. package/lib/components/ChatBubble/formatChatTime.js +42 -41
  20. package/lib/components/ChatComposer/ChatComposer2.js +102 -102
  21. package/lib/components/CodeBlock/CodeBlock2.js +51 -51
  22. package/lib/components/CodeBlock/highlight.js +85 -85
  23. package/lib/components/ColorPicker/ColorPicker2.js +373 -374
  24. package/lib/components/ColorPicker/color.js +94 -94
  25. package/lib/components/ColorPicker/presets.js +47 -46
  26. package/lib/components/Combobox/Combobox2.js +118 -117
  27. package/lib/components/CommandMenu/CommandMenu.js +121 -122
  28. package/lib/components/Comment/Comment2.js +56 -81
  29. package/lib/components/ContextMenu/ContextMenu2.js +91 -93
  30. package/lib/components/DataGrid/DataGrid2.js +845 -845
  31. package/lib/components/DataGrid/GridPopover.js +97 -97
  32. package/lib/components/DataGrid/anchor.js +34 -36
  33. package/lib/components/DataGrid/model.js +299 -299
  34. package/lib/components/DataGrid/panels.js +393 -393
  35. package/lib/components/DataGrid/typeMeta.js +53 -53
  36. package/lib/components/DataGrid/types.js +22 -22
  37. package/lib/components/DescriptionList/DescriptionList2.js +57 -57
  38. package/lib/components/Dialog/AlertDialog.js +56 -56
  39. package/lib/components/Dialog/Dialog2.js +68 -69
  40. package/lib/components/Dialog/modal.js +61 -57
  41. package/lib/components/Drawer/Drawer2.js +161 -161
  42. package/lib/components/DropdownMenu/DropdownMenu2.js +267 -267
  43. package/lib/components/DropdownMenu/menuCore.js +42 -68
  44. package/lib/components/Dropzone/Dropzone2.js +81 -81
  45. package/lib/components/EmptyState/EmptyState2.js +55 -54
  46. package/lib/components/FileChip/FileChip2.js +39 -63
  47. package/lib/components/FileUpload/FileUpload.js +157 -156
  48. package/lib/components/FilterChips/FilterChips2.js +51 -51
  49. package/lib/components/FunnelChart/FunnelChart2.js +171 -171
  50. package/lib/components/FunnelChart/funnel.js +55 -57
  51. package/lib/components/Highlight/Highlight2.js +48 -48
  52. package/lib/components/HoverCard/HoverCard.js +59 -59
  53. package/lib/components/InlineDiff/InlineDiff2.js +110 -111
  54. package/lib/components/InlineDiff/diff.js +89 -89
  55. package/lib/components/InlineDiff/useDiffReview.js +63 -65
  56. package/lib/components/Kanban/Kanban2.js +424 -425
  57. package/lib/components/Kanban/KanbanCard.js +98 -73
  58. package/lib/components/Kanban/move.js +52 -49
  59. package/lib/components/LineChart/LineChart2.js +222 -222
  60. package/lib/components/List/List2.js +60 -59
  61. package/lib/components/Listbox/Listbox2.js +117 -117
  62. package/lib/components/Marker/Marker2.js +58 -59
  63. package/lib/components/Menubar/Menubar2.js +121 -123
  64. package/lib/components/MultiSelect/MultiSelect2.js +115 -115
  65. package/lib/components/NavigationMenu/NavigationMenu2.js +277 -276
  66. package/lib/components/NoticeStack/NoticeStack2.js +98 -98
  67. package/lib/components/NumberStepper/NumberStepper2.js +67 -66
  68. package/lib/components/OtpInput/OtpInput2.js +93 -93
  69. package/lib/components/Pagination/Pagination2.js +87 -87
  70. package/lib/components/Pagination/paginationRange.js +39 -37
  71. package/lib/components/PhoneInput/PhoneInput.js +78 -78
  72. package/lib/components/PieChart/PieChart2.js +117 -117
  73. package/lib/components/PieChart/arc.js +57 -58
  74. package/lib/components/PieChart/useArcTween.js +45 -40
  75. package/lib/components/Popover/Popover2.js +73 -74
  76. package/lib/components/ProgressTracker/ProgressTracker2.js +128 -128
  77. package/lib/components/Rating/Rating2.js +95 -95
  78. package/lib/components/Resizable/Resizable2.js +86 -86
  79. package/lib/components/Resizable/layout.js +73 -73
  80. package/lib/components/ScaledPreview/ScaledPreview2.js +68 -68
  81. package/lib/components/ScatterChart/ScatterChart2.js +172 -172
  82. package/lib/components/ScatterChart/scatter.js +55 -56
  83. package/lib/components/ScrollArea/ScrollArea2.js +130 -131
  84. package/lib/components/Select/Select2.js +86 -85
  85. package/lib/components/Sidebar/Sidebar2.js +92 -86
  86. package/lib/components/Sidebar/rail.js +43 -0
  87. package/lib/components/Skeleton/Skeleton2.js +60 -61
  88. package/lib/components/Slider/Slider2.js +73 -73
  89. package/lib/components/SocialLoginButton/SocialLoginButton.js +54 -55
  90. package/lib/components/SparkChart/SparkChart2.js +140 -141
  91. package/lib/components/SparkChart/spark.js +50 -48
  92. package/lib/components/Sparkbar/Sparkbar2.js +56 -56
  93. package/lib/components/SplitView/SplitView2.js +47 -46
  94. package/lib/components/Stat/Stat2.js +61 -61
  95. package/lib/components/StepList/StepList2.js +76 -76
  96. package/lib/components/Table/Table2.js +70 -70
  97. package/lib/components/Tabs/Tabs2.js +85 -85
  98. package/lib/components/TagInput/TagInput2.js +217 -218
  99. package/lib/components/TimePicker/TimePicker2.js +217 -216
  100. package/lib/components/TimePicker/time.js +60 -58
  101. package/lib/components/Timeline/Timeline2.js +181 -181
  102. package/lib/components/Timeline/scale.js +60 -65
  103. package/lib/components/Toast/Toaster.js +146 -148
  104. package/lib/components/Toast/store.js +85 -85
  105. package/lib/components/ToggleGroup/ToggleGroup2.js +79 -79
  106. package/lib/components/Toolbar/Toolbar2.js +120 -121
  107. package/lib/components/Tracker/Tracker2.js +79 -79
  108. package/lib/components/TreeDiagram/TreeDiagram2.js +116 -116
  109. package/lib/components/TreeView/TreeView2.js +162 -163
  110. package/lib/hooks/timing.js +32 -35
  111. package/lib/hooks/useControllableState.js +35 -35
  112. package/lib/hooks/useCountdown.js +53 -52
  113. package/lib/hooks/useDigitInput.js +82 -81
  114. package/lib/hooks/useDismiss.js +48 -48
  115. package/lib/hooks/useElapsed.js +40 -43
  116. package/lib/hooks/useFloating.js +47 -47
  117. package/lib/hooks/useFocusTrap.js +45 -69
  118. package/lib/hooks/usePresence.js +49 -50
  119. package/lib/hooks/usePressToOpen.js +43 -43
  120. package/lib/hooks/useScrollLock.js +45 -43
  121. package/lib/hooks/useSelection.js +44 -46
  122. package/lib/index.js +105 -106
  123. package/lib/primitives/AspectRatio2.js +57 -56
  124. package/lib/primitives/BrandIcon.js +177 -177
  125. package/lib/primitives/ColorDot2.js +44 -48
  126. package/lib/primitives/CopyButton2.js +54 -55
  127. package/lib/primitives/CountBadge2.js +45 -48
  128. package/lib/primitives/Countdown2.js +35 -37
  129. package/lib/primitives/Delta2.js +41 -41
  130. package/lib/primitives/Elapsed.js +43 -41
  131. package/lib/primitives/FileIcon2.js +94 -94
  132. package/lib/primitives/Flag2.js +97 -97
  133. package/lib/primitives/IconStack2.js +53 -55
  134. package/lib/primitives/IconTile2.js +45 -41
  135. package/lib/primitives/Kbd2.js +57 -57
  136. package/lib/primitives/Layout2.js +66 -66
  137. package/lib/primitives/Link2.js +42 -47
  138. package/lib/primitives/MaskedText2.js +47 -69
  139. package/lib/primitives/Progress2.js +71 -71
  140. package/lib/primitives/RelativeTime.js +47 -43
  141. package/lib/primitives/SearchInput2.js +70 -66
  142. package/lib/primitives/SelectorButton2.js +70 -67
  143. package/lib/primitives/Spinner2.js +58 -59
  144. package/lib/primitives/StatusIcon2.js +70 -70
  145. package/lib/primitives/Swatch2.js +57 -55
  146. package/lib/primitives/Tooltip2.js +78 -78
  147. package/lib/primitives/Typography2.js +54 -54
  148. package/lib/primitives/formatCountdown.js +37 -38
  149. package/lib/primitives/formatElapsed.js +46 -45
  150. package/lib/primitives/formatRelativeTime.js +43 -69
  151. package/lib/primitives/hotkey.js +66 -66
  152. package/lib/primitives/index.js +152 -152
  153. package/lib/primitives/maskValue.js +30 -32
  154. package/lib/style.css +1 -1
  155. package/lib/types/components/AppShell/AppShell.d.ts +9 -2
  156. package/lib/types/components/Sidebar/rail.d.ts +4 -0
  157. package/lib/types/components/index.d.ts +1 -0
  158. package/package.json +1 -1
@@ -1,125 +1,124 @@
1
1
  "use client";
2
- const e = a;
3
- (function(e, t) {
4
- let n = a, r = e();
5
- for (;;) try {
6
- if (-parseInt(n(376)) / 1 * (parseInt(n(389)) / 2) + parseInt(n(395)) / 3 + parseInt(n(400)) / 4 * (-parseInt(n(401)) / 5) + -parseInt(n(396)) / 6 + -parseInt(n(413)) / 7 * (-parseInt(n(361)) / 8) + parseInt(n(412)) / 9 * (parseInt(n(378)) / 10) + parseInt(n(352)) / 11 == t) break;
7
- r.push(r.shift());
8
- } catch {
9
- r.push(r.shift());
10
- }
11
- })(B, 448061);
12
- import { usePresence as t } from "../../hooks/usePresence.js";
13
- import { useControllableState as n } from "../../hooks/useControllableState.js";
14
- import { useFloating as r } from "../../hooks/useFloating.js";
15
- import { useDismiss as i } from "../../hooks/useDismiss.js";
16
- function a(e, t) {
17
- e -= 349;
18
- let n = B(), r = n[e];
19
- a.mNDPuU === void 0 && (a.nXghyl = function(e) {
2
+ const e = t;
3
+ function t(e, n) {
4
+ e -= 320;
5
+ let r = B(), i = r[e];
6
+ t.LeSDgQ === void 0 && (t.uNqWiY = function(e) {
20
7
  let t = "", n = "";
21
8
  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
9
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
23
10
  return decodeURIComponent(n);
24
- }, a.OiSGan = {}, a.mNDPuU = !0);
25
- let i = n[0];
26
- a.pFYtqL !== i && (a.OiSGan = {}, a.pFYtqL = i);
27
- let o = a.OiSGan[e];
28
- return o === void 0 ? (r = a.nXghyl(r), a.OiSGan[e] = r) : r = o, r;
11
+ }, t.BlWfaS = {}, t.LeSDgQ = !0);
12
+ let a = r[0];
13
+ t.wjsvSc !== a && (t.BlWfaS = {}, t.wjsvSc = a);
14
+ let o = t.BlWfaS[e];
15
+ return o === void 0 ? (i = t.uNqWiY(i), t.BlWfaS[e] = i) : i = o, i;
29
16
  }
17
+ (function(e, n) {
18
+ let r = t, i = e();
19
+ for (;;) try {
20
+ if (parseInt(r(323)) / 1 * (-parseInt(r(379)) / 2) + -parseInt(r(359)) / 3 + parseInt(r(321)) / 4 * (-parseInt(r(373)) / 5) + -parseInt(r(357)) / 6 + -parseInt(r(335)) / 7 + -parseInt(r(370)) / 8 * (-parseInt(r(322)) / 9) + parseInt(r(354)) / 10 == n) break;
21
+ i.push(i.shift());
22
+ } catch {
23
+ i.push(i.shift());
24
+ }
25
+ })(B, 902163);
26
+ import { usePresence as n } from "../../hooks/usePresence.js";
27
+ import { useControllableState as r } from "../../hooks/useControllableState.js";
28
+ import { useFloating as i } from "../../hooks/useFloating.js";
29
+ import { useDismiss as a } from "../../hooks/useDismiss.js";
30
30
  /* empty css */
31
31
  import { MenuContext as o, menuItems as s, trackPressDragRelease as c, useMenuRoot as l } from "../DropdownMenu/menuCore.js";
32
32
  import { DropdownMenuCheckboxItem as u, DropdownMenuItem as d, DropdownMenuLabel as f, DropdownMenuRadioGroup as p, DropdownMenuRadioItem as m, DropdownMenuSeparator as h, DropdownMenuSub as g, MenuPanel as _ } from "../DropdownMenu/DropdownMenu2.js";
33
33
  /* empty css */
34
34
  import { createContext as v, useContext as y, useEffect as b, useId as x, useLayoutEffect as S, useRef as C, useState as w } from "react";
35
35
  import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
36
- var O = e(410), k = v(null), A = (t) => [...t?.[e(365)](O) ?? []];
37
- function j({ children: t, value: r, defaultValue: a = null, onValueChange: s, "aria-label": c, className: u }) {
38
- let d = e, [f, p] = n(r, a, s), [m, h] = w(!1), [g, _] = w(null), v = C("panel"), y = C(null), [x, T] = w({
36
+ var O = e(363), k = v(null), A = (t) => [...t?.[e(341)](O) ?? []];
37
+ function j({ children: n, value: i, defaultValue: s = null, onValueChange: c, "aria-label": u, className: d }) {
38
+ let f = e, [p, m] = r(i, s, c), [h, g] = w(!1), [_, v] = w(null), y = C(f(350)), x = C(null), [T, O] = w({
39
39
  left: 0,
40
40
  width: 0,
41
41
  visible: !1,
42
42
  slide: !1
43
- }), O = (e) => e === null ? void 0 : A(y.current)[d(407)]((t) => t[d(359)].value === e), j = (e, t = d(358)) => {
44
- let n = d;
45
- v[n(377)] = t, h(f !== null && e !== null), e !== null && _(e), p(e);
46
- }, M = l((e = !0) => {
47
- let t = d, n = O(f);
48
- j(null), e && n?.[t(387)]({ preventScroll: !0 });
43
+ }), j = (e) => e === null ? void 0 : A(x[f(376)])[f(386)]((t) => t[f(320)].value === e), M = (e, t = "panel") => {
44
+ y.current = t, g(p !== null && e !== null), e !== null && v(e), m(e);
45
+ }, N = l((e = !0) => {
46
+ let t = f, n = j(p);
47
+ M(null), e && n?.[t(334)]({ preventScroll: !0 });
49
48
  });
50
- return i(f !== null, [y, ...M[d(411)]], () => j(null)), b(() => {
51
- let e = d;
52
- if (g === null || !O(g)) {
53
- let t = A(y[e(377)])[0]?.[e(359)][e(415)];
54
- t !== void 0 && t !== g && _(t);
49
+ return a(p !== null, [x, ...N[f(330)]], () => M(null)), b(() => {
50
+ let e = f;
51
+ if (_ === null || !j(_)) {
52
+ let t = A(x[e(376)])[0]?.[e(320)][e(367)];
53
+ t !== void 0 && t !== _ && v(t);
55
54
  }
56
- }, [g, t]), S(() => {
57
- let e = d, t = y[e(377)];
58
- if (!t) return;
59
- let n = () => {
60
- let t = e, n = O(f);
61
- T((e) => n ? {
55
+ }, [_, n]), S(() => {
56
+ let e = f, n = x.current;
57
+ if (!n) return;
58
+ let r = () => {
59
+ let e = t, n = j(p);
60
+ O((t) => n ? {
62
61
  left: n.offsetLeft,
63
- width: n[t(383)],
62
+ width: n[e(358)],
64
63
  visible: !0,
65
- slide: e[t(353)]
64
+ slide: t[e(326)]
66
65
  } : {
67
- ...e,
66
+ ...t,
68
67
  visible: !1,
69
68
  slide: !1
70
69
  });
71
70
  };
72
- n();
73
- let r = new ResizeObserver(n);
74
- return r[e(373)](t), () => r[e(402)]();
75
- }, [f]), E(k[d(380)], {
71
+ r();
72
+ let i = new ResizeObserver(r);
73
+ return i[e(364)](n), () => i[e(344)]();
74
+ }, [p]), E(k[f(336)], {
76
75
  value: {
77
- open: f,
78
- instant: m,
79
- active: g,
80
- setActive: _,
81
- openMenu: j,
82
- focusRef: v,
76
+ open: p,
77
+ instant: h,
78
+ active: _,
79
+ setActive: v,
80
+ openMenu: M,
81
+ focusRef: y,
83
82
  step: (e, t) => {
84
- let n = d, r = A(y[n(377)]), i = r[(r[n(367)]((t) => t[n(359)][n(415)] === e) + t + r[n(414)]) % r[n(414)]]?.dataset[n(415)];
85
- i !== void 0 && j(i, n(355));
83
+ let n = f, r = A(x[n(376)]), i = r[(r[n(360)]((t) => t[n(320)][n(367)] === e) + t + r[n(327)]) % r[n(327)]]?.[n(320)][n(367)];
84
+ i !== void 0 && M(i, n(332));
86
85
  },
87
86
  focusTrigger: (e, t) => {
88
- let n = d, r = A(y.current), i = r[n(367)]((t) => t[n(359)][n(415)] === e), a = t === n(355) ? r[0] : t === n(404) ? r.at(-1) : r[(i + t + r[n(414)]) % r[n(414)]];
89
- a && (_(a[n(359)][n(415)] ?? ""), a.focus());
87
+ let n = f, r = A(x[n(376)]), i = r[n(360)]((t) => t[n(320)][n(367)] === e), a = t === n(332) ? r[0] : t === n(331) ? r.at(-1) : r[(i + t + r[n(327)]) % r[n(327)]];
88
+ a && (v(a[n(320)].value ?? ""), a[n(334)]());
90
89
  },
91
- menu: M
90
+ menu: N
92
91
  },
93
92
  children: E(o.Provider, {
94
- value: M,
95
- children: D(d(406), {
96
- ref: y,
97
- role: d(386),
98
- "aria-label": c,
99
- className: u ? d(398) + u : d(360),
100
- "data-open": f !== null || void 0,
93
+ value: N,
94
+ children: D(f(324), {
95
+ ref: x,
96
+ role: f(348),
97
+ "aria-label": u,
98
+ className: d ? "ds-menubar " + d : "ds-menubar",
99
+ "data-open": p !== null || void 0,
101
100
  onPointerDown: (e) => {
102
- let t = d;
103
- e[t(416)] === e[t(408)] && f !== null && j(null);
101
+ let t = f;
102
+ e[t(328)] === e[t(366)] && p !== null && M(null);
104
103
  },
105
- children: [E(d(381), {
106
- className: d(375),
104
+ children: [E("span", {
105
+ className: f(353),
107
106
  "aria-hidden": !0,
108
- "data-visible": x[d(353)] || void 0,
109
- "data-slide": x[d(382)] || void 0,
107
+ "data-visible": T[f(326)] || void 0,
108
+ "data-slide": T[f(355)] || void 0,
110
109
  style: {
111
- left: x[d(394)],
112
- width: x[d(362)]
110
+ left: T[f(384)],
111
+ width: T.width
113
112
  }
114
- }), t]
113
+ }), n]
115
114
  })
116
115
  })
117
116
  });
118
117
  }
119
- function M({ label: n, children: i, value: o, disabled: l, minWidth: u = 220 }) {
118
+ function M({ label: r, children: a, value: o, disabled: l, minWidth: u = 220 }) {
120
119
  let d = e, f = y(k);
121
- if (!f) throw Error(d(388));
122
- let p = x(), m = o ?? p, h = f[d(368)] === m, g = t(h, 160), v = C(null), S = C(null), w = C(""), O = p + d(372), A = p + d(363), { style: j, side: M } = r(v, g.mounted, {
120
+ if (!f) throw Error(d(343));
121
+ let p = x(), m = o ?? p, h = f[d(371)] === m, g = n(h, 160), v = C(null), S = C(null), w = C(""), O = p + d(385), A = p + d(374), { style: j, side: M } = i(v, g[d(365)], {
123
122
  matchWidth: !1,
124
123
  panelRef: S,
125
124
  maxHeight: 420,
@@ -127,97 +126,96 @@ function M({ label: n, children: i, value: o, disabled: l, minWidth: u = 220 })
127
126
  }), { menu: N, focusRef: P } = f;
128
127
  b(() => {
129
128
  let e = d;
130
- return N[e(411)][e(369)](S), () => {
131
- let t = e;
132
- N[t(411)][t(418)](S);
129
+ return N[e(330)][e(387)](S), () => {
130
+ N[e(330)].delete(S);
133
131
  };
134
- }, [N[d(411)]]), b(() => {
132
+ }, [N[d(330)]]), b(() => {
135
133
  if (!h) return;
136
134
  let e = requestAnimationFrame(() => {
137
- let e = a, t = P.current, n = s(S[e(377)]);
138
- t === "first" ? n[0]?.[e(387)]({ preventScroll: !0 }) : t === e(404) ? n.at(-1)?.[e(387)]({ preventScroll: !0 }) : S[e(377)]?.[e(387)]({ preventScroll: !0 });
135
+ let e = t, n = P[e(376)], r = s(S[e(376)]);
136
+ n === "first" ? r[0]?.[e(334)]({ preventScroll: !0 }) : n === "last" ? r.at(-1)?.[e(334)]({ preventScroll: !0 }) : S[e(376)]?.[e(334)]({ preventScroll: !0 });
139
137
  });
140
138
  return () => cancelAnimationFrame(e);
141
139
  }, [h, P]);
142
140
  let F = (e) => {
143
141
  let t = d;
144
- if (w.current = e[t(371)], !(l || e[t(371)] !== t(399) || e[t(370)] !== 0)) {
145
- if (e[t(364)](), h) return f.openMenu(null);
146
- f[t(351)](m), c(e);
142
+ if (w[t(376)] = e[t(340)], !(l || e[t(340)] !== "mouse" || e[t(362)] !== 0)) {
143
+ if (e[t(345)](), h) return f[t(352)](null);
144
+ f[t(352)](m), c(e);
147
145
  }
148
146
  }, I = (e) => {
149
147
  let t = d;
150
- switch (e.key) {
151
- case t(384):
152
- e.preventDefault(), f[t(351)](m, t(355));
148
+ switch (e[t(346)]) {
149
+ case t(383):
150
+ e[t(345)](), f[t(352)](m, t(332));
153
151
  break;
154
- case t(403):
155
- e[t(364)](), f[t(351)](m, t(404));
152
+ case t(377):
153
+ e[t(345)](), f[t(352)](m, t(331));
156
154
  break;
157
- case "ArrowRight":
158
- e.preventDefault(), f[t(379)](m, 1);
155
+ case t(325):
156
+ e[t(345)](), f[t(329)](m, 1);
159
157
  break;
160
- case t(349):
161
- e[t(364)](), f[t(379)](m, -1);
158
+ case "ArrowLeft":
159
+ e.preventDefault(), f[t(329)](m, -1);
162
160
  break;
163
- case "Home":
164
- e[t(364)](), f.focusTrigger(m, "first");
161
+ case t(347):
162
+ e.preventDefault(), f[t(329)](m, t(332));
165
163
  break;
166
- case t(356):
167
- e.preventDefault(), f[t(379)](m, "last");
164
+ case "End":
165
+ e.preventDefault(), f[t(329)](m, t(331));
168
166
  break;
169
- case "Escape": h && (e[t(364)](), f[t(351)](null));
167
+ case t(375): h && (e[t(345)](), f[t(352)](null));
170
168
  }
171
- }, L = f[d(368)] !== null && !h;
172
- return D(T, { children: [E(d(370), {
169
+ }, L = f.open !== null && !h;
170
+ return D(T, { children: [E("button", {
173
171
  ref: v,
174
172
  id: O,
175
- type: d(370),
176
- role: d(405),
173
+ type: d(362),
174
+ role: d(339),
177
175
  className: "ds-menubar__trigger",
178
176
  "data-menubar-trigger": "",
179
177
  "data-value": m,
180
- "data-state": h ? d(368) : "closed",
181
- "aria-haspopup": "menu",
178
+ "data-state": d(h ? 371 : 372),
179
+ "aria-haspopup": d(381),
182
180
  "aria-expanded": h,
183
181
  "aria-controls": h ? A : void 0,
184
- tabIndex: f[d(354)] === m ? 0 : -1,
182
+ tabIndex: f[d(361)] === m ? 0 : -1,
185
183
  disabled: l,
186
184
  onPointerDown: F,
187
185
  onPointerEnter: (e) => {
188
186
  let t = d;
189
- e[t(371)] === t(399) && f[t(368)] !== null && !h && !l && f[t(351)](m);
187
+ e[t(340)] === t(338) && f.open !== null && !h && !l && f[t(352)](m);
190
188
  },
191
- onFocus: () => f[d(357)](m),
189
+ onFocus: () => f.setActive(m),
192
190
  onKeyDown: I,
193
191
  onClick: (e) => {
194
192
  let t = d;
195
- (e[t(417)] === 0 || w[t(377)] !== t(399)) && f[t(351)](h ? null : m, e[t(417)] === 0 ? "first" : t(358));
193
+ (e[t(333)] === 0 || w[t(376)] !== t(338)) && f[t(352)](h ? null : m, e.detail === 0 ? t(332) : t(350));
196
194
  },
197
- children: n
198
- }), g[d(350)] && !L && E(_, {
195
+ children: r
196
+ }), g[d(365)] && !L && E(_, {
199
197
  id: A,
200
198
  panelRef: S,
201
199
  side: M,
202
- closing: g[d(397)],
200
+ closing: g[d(356)],
203
201
  style: {
204
202
  ...j,
205
203
  minWidth: u
206
204
  },
207
- className: f[d(390)] ? "ds-menubar__panel--instant" : void 0,
205
+ className: f.instant ? d(337) : void 0,
208
206
  "aria-labelledby": O,
209
- onEscape: () => N[d(393)](!0),
210
- onArrowLeft: () => f[d(385)](m, -1),
211
- onArrowRight: () => f[d(385)](m, 1),
212
- children: i
207
+ onEscape: () => N[d(342)](!0),
208
+ onArrowLeft: () => f.step(m, -1),
209
+ onArrowRight: () => f[d(351)](m, 1),
210
+ children: a
213
211
  })] });
214
212
  }
215
213
  var N = d, P = u, F = p, I = m, L = f, R = h, z = g;
216
214
  function B() {
217
- let e = /* @__PURE__ */ "zhmTBwvUDwjHCG.mJy0wfL3rNPj.D2LKDgG.lw1LBNu.ChjLDMvUDerLzMf1Bhq.CxvLCNLtzwXLy3rVCKfSBa.twvUDq.zMLUzeLUzgv4.B3bLBG.ywrK.yNv0Dg9U.Cg9PBNrLCLr5Cgu.lxrYAwDNzxi.B2jZzxj2zq.sxrLBq.zhmTBwvUDwjHCL9FDgH1Bwi.odqXmJy1v3vtEhnN.y3vYCMvUDa.mJbPu3zxsg4.zM9JDxnuCMLNz2vY.uhjVDMLKzxi.C3bHBG.C2XPzgu.B2zMC2v0v2LKDgG.qxjYB3DeB3DU.C3rLCa.BwvUDwjHCG.zM9JDxm.twvUDwjHCK1LBNuGBxvZDcbIzsbPBNnPzguGpe1LBNvIyxi+.mNvqqNjLDq.Aw5ZDgfUDa.u2vWyxjHDg9Y.uMfKAw9jDgvT.y2XVC2vbBgW.BgvMDa.mJe2ndCWmuXZt1fOzq.mZqWmdmZoeX5A2nIqG.y2XVC2LUzW.zhmTBwvUDwjHCIa.Bw91C2u.mZq4vKfdwMjY.ntaWmtv1y1fXv3e.zgLZy29UBMvJDa.qxjYB3DvCa.BgfZDa.BwvUDwL0zw0.zgL2.zMLUza.y3vYCMvUDfrHCMDLDa.u3vI.w2rHDgeTBwvUDwjHCI10CMLNz2vYxtPUB3qOoMrPC2fIBgvKkq.CgfUzwXZ.mty3mJGXmNvZBwH2tW.mte2nJq4Een0serR.BgvUz3rO.DMfSDwu.DgfYz2v0.zgv0ywLS.zgvSzxrL.qxjYB3Dmzwz0.Bw91BNrLza.B3bLBK1LBNu.mte5mtqWndveuLDREum.DMLZAwjSzq.ywn0AxzL.zMLYC3q.rw5K.C2v0qwn0AxzL.CgfUzwW.zgf0yxnLDa".split(".");
215
+ let e = /* @__PURE__ */ "mtiXmJiXv3bIDhLz.mJqZmxLhCxbmCa.zgL2.qxjYB3DsAwDODa.DMLZAwjSzq.BgvUz3rO.DgfYz2v0.zM9JDxnuCMLNz2vY.CgfUzwXZ.BgfZDa.zMLYC3q.zgv0ywLS.zM9JDxm.mZa5ntyXmff3uK1sza.uhjVDMLKzxi.zhmTBwvUDwjHCL9FCgfUzwWTlwLUC3rHBNq.Bw91C2u.BwvUDwL0zw0.Cg9PBNrLCLr5Cgu.CxvLCNLtzwXLy3rVCKfSBa.y2XVC2vbBgW.twvUDwjHCK1LBNuGBxvZDcbIzsbPBNnPzguGpe1LBNvIyxi+.zgLZy29UBMvJDa.ChjLDMvUDerLzMf1Bhq.A2v5.sg9Tzq.BwvUDwjHCG.uMfKAw9hCM91Ca.CgfUzwW.C3rLCa.B3bLBK1LBNu.zhmTBwvUDwjHCL9FDgH1Bwi.mJe4mtiXnZbhEKPiwKS.C2XPzgu.y2XVC2LUzW.mJy3mZa2uhvNve1v.B2zMC2v0v2LKDgG.mtGYnZaYn2nvBxLMrG.zMLUzeLUzgv4.ywn0AxzL.yNv0Dg9U.w2rHDgeTBwvUDwjHCI10CMLNz2vYxtPUB3qOoMrPC2fIBgvKkq.B2jZzxj2zq.Bw91BNrLza.y3vYCMvUDfrHCMDLDa.DMfSDwu.u2vWyxjHDg9Y.q2HLy2TIB3HjDgvT.mJi0DLnxDhHI.B3bLBG.y2XVC2vK.mtq1q2nuzhzQ.lw1LBNu.rxnJyxbL.y3vYCMvUDa.qxjYB3DvCa.u3vI.ntHKs0vgtLK.sxrLBq.BwvUDq.tgfIzwW.qxjYB3DeB3DU.BgvMDa.lxrYAwDNzxi.zMLUza.ywrK.zgf0yxnLDa.nJC1nZjItvbAz3m".split(".");
218
216
  return B = function() {
219
217
  return e;
220
218
  }, B();
221
219
  }
222
- j[e(366)] = M, j[e(374)] = d, j.CheckboxItem = u, j.RadioGroup = p, j[e(392)] = m, j.Label = f, j[e(391)] = h, j[e(409)] = g;
220
+ j.Menu = M, j[e(380)] = d, j[e(369)] = u, j[e(349)] = p, j.RadioItem = m, j[e(382)] = f, j[e(368)] = h, j[e(378)] = g;
223
221
  export { j as Menubar, P as MenubarCheckboxItem, N as MenubarItem, L as MenubarLabel, M as MenubarMenu, F as MenubarRadioGroup, I as MenubarRadioItem, R as MenubarSeparator, z as MenubarSub };