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