@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.
- package/agents/app-shell/AGENTS.md +99 -1
- package/lib/components/Accordion/Accordion2.js +93 -93
- package/lib/components/ActionBar/ActionBar2.js +44 -40
- package/lib/components/Alert/Alert2.js +64 -64
- package/lib/components/AppShell/AppShell2.js +73 -66
- package/lib/components/AreaChart/AreaChart.js +49 -47
- package/lib/components/BarChart/BarChart2.js +107 -107
- package/lib/components/BarList/BarList2.js +99 -99
- package/lib/components/Breadcrumb/Breadcrumb2.js +53 -56
- package/lib/components/Calendar/Calendar2.js +164 -164
- package/lib/components/Calendar/DatePicker2.js +76 -77
- package/lib/components/Calendar/date.js +49 -70
- package/lib/components/Card/Card2.js +104 -77
- package/lib/components/CardFrame/CardFrame2.js +46 -42
- package/lib/components/Chart/ChartParts.js +73 -73
- package/lib/components/Chart/chart2.js +53 -53
- package/lib/components/Chart/useChartInteraction.js +49 -49
- package/lib/components/ChatBubble/ChatBubble2.js +118 -118
- package/lib/components/ChatBubble/formatChatTime.js +42 -41
- package/lib/components/ChatComposer/ChatComposer2.js +102 -102
- package/lib/components/CodeBlock/CodeBlock2.js +51 -51
- package/lib/components/CodeBlock/highlight.js +85 -85
- package/lib/components/ColorPicker/ColorPicker2.js +373 -374
- package/lib/components/ColorPicker/color.js +94 -94
- package/lib/components/ColorPicker/presets.js +47 -46
- package/lib/components/Combobox/Combobox2.js +118 -117
- package/lib/components/CommandMenu/CommandMenu.js +121 -122
- package/lib/components/Comment/Comment2.js +56 -81
- package/lib/components/ContextMenu/ContextMenu2.js +91 -93
- package/lib/components/DataGrid/DataGrid2.js +845 -845
- package/lib/components/DataGrid/GridPopover.js +97 -97
- package/lib/components/DataGrid/anchor.js +34 -36
- package/lib/components/DataGrid/model.js +299 -299
- package/lib/components/DataGrid/panels.js +393 -393
- package/lib/components/DataGrid/typeMeta.js +53 -53
- package/lib/components/DataGrid/types.js +22 -22
- package/lib/components/DescriptionList/DescriptionList2.js +57 -57
- package/lib/components/Dialog/AlertDialog.js +56 -56
- package/lib/components/Dialog/Dialog2.js +68 -69
- package/lib/components/Dialog/modal.js +61 -57
- package/lib/components/Drawer/Drawer2.js +161 -161
- package/lib/components/DropdownMenu/DropdownMenu2.js +267 -267
- package/lib/components/DropdownMenu/menuCore.js +42 -68
- package/lib/components/Dropzone/Dropzone2.js +81 -81
- package/lib/components/EmptyState/EmptyState2.js +55 -54
- package/lib/components/FileChip/FileChip2.js +39 -63
- package/lib/components/FileUpload/FileUpload.js +157 -156
- package/lib/components/FilterChips/FilterChips2.js +51 -51
- package/lib/components/FunnelChart/FunnelChart2.js +171 -171
- package/lib/components/FunnelChart/funnel.js +55 -57
- package/lib/components/Highlight/Highlight2.js +48 -48
- package/lib/components/HoverCard/HoverCard.js +59 -59
- package/lib/components/InlineDiff/InlineDiff2.js +110 -111
- package/lib/components/InlineDiff/diff.js +89 -89
- package/lib/components/InlineDiff/useDiffReview.js +63 -65
- package/lib/components/Kanban/Kanban2.js +424 -425
- package/lib/components/Kanban/KanbanCard.js +98 -73
- package/lib/components/Kanban/move.js +52 -49
- package/lib/components/LineChart/LineChart2.js +222 -222
- package/lib/components/List/List2.js +60 -59
- package/lib/components/Listbox/Listbox2.js +117 -117
- package/lib/components/Marker/Marker2.js +58 -59
- package/lib/components/Menubar/Menubar2.js +121 -123
- package/lib/components/MultiSelect/MultiSelect2.js +115 -115
- package/lib/components/NavigationMenu/NavigationMenu2.js +277 -276
- package/lib/components/NoticeStack/NoticeStack2.js +98 -98
- package/lib/components/NumberStepper/NumberStepper2.js +67 -66
- package/lib/components/OtpInput/OtpInput2.js +93 -93
- package/lib/components/Pagination/Pagination2.js +87 -87
- package/lib/components/Pagination/paginationRange.js +39 -37
- package/lib/components/PhoneInput/PhoneInput.js +78 -78
- package/lib/components/PieChart/PieChart2.js +117 -117
- package/lib/components/PieChart/arc.js +57 -58
- package/lib/components/PieChart/useArcTween.js +45 -40
- package/lib/components/Popover/Popover2.js +73 -74
- package/lib/components/ProgressTracker/ProgressTracker2.js +128 -128
- package/lib/components/Rating/Rating2.js +95 -95
- package/lib/components/Resizable/Resizable2.js +86 -86
- package/lib/components/Resizable/layout.js +73 -73
- package/lib/components/ScaledPreview/ScaledPreview2.js +68 -68
- package/lib/components/ScatterChart/ScatterChart2.js +172 -172
- package/lib/components/ScatterChart/scatter.js +55 -56
- package/lib/components/ScrollArea/ScrollArea2.js +130 -131
- package/lib/components/Select/Select2.js +86 -85
- package/lib/components/Sidebar/Sidebar2.js +92 -86
- package/lib/components/Sidebar/rail.js +43 -0
- package/lib/components/Skeleton/Skeleton2.js +60 -61
- package/lib/components/Slider/Slider2.js +73 -73
- package/lib/components/SocialLoginButton/SocialLoginButton.js +54 -55
- package/lib/components/SparkChart/SparkChart2.js +140 -141
- package/lib/components/SparkChart/spark.js +50 -48
- package/lib/components/Sparkbar/Sparkbar2.js +56 -56
- package/lib/components/SplitView/SplitView2.js +47 -46
- package/lib/components/Stat/Stat2.js +61 -61
- package/lib/components/StepList/StepList2.js +76 -76
- package/lib/components/Table/Table2.js +70 -70
- package/lib/components/Tabs/Tabs2.js +85 -85
- package/lib/components/TagInput/TagInput2.js +217 -218
- package/lib/components/TimePicker/TimePicker2.js +217 -216
- package/lib/components/TimePicker/time.js +60 -58
- package/lib/components/Timeline/Timeline2.js +181 -181
- package/lib/components/Timeline/scale.js +60 -65
- package/lib/components/Toast/Toaster.js +146 -148
- package/lib/components/Toast/store.js +85 -85
- package/lib/components/ToggleGroup/ToggleGroup2.js +79 -79
- package/lib/components/Toolbar/Toolbar2.js +120 -121
- package/lib/components/Tracker/Tracker2.js +79 -79
- package/lib/components/TreeDiagram/TreeDiagram2.js +116 -116
- package/lib/components/TreeView/TreeView2.js +162 -163
- package/lib/hooks/timing.js +32 -35
- package/lib/hooks/useControllableState.js +35 -35
- package/lib/hooks/useCountdown.js +53 -52
- package/lib/hooks/useDigitInput.js +82 -81
- package/lib/hooks/useDismiss.js +48 -48
- package/lib/hooks/useElapsed.js +40 -43
- package/lib/hooks/useFloating.js +47 -47
- package/lib/hooks/useFocusTrap.js +45 -69
- package/lib/hooks/usePresence.js +49 -50
- package/lib/hooks/usePressToOpen.js +43 -43
- package/lib/hooks/useScrollLock.js +45 -43
- package/lib/hooks/useSelection.js +44 -46
- package/lib/index.js +105 -106
- package/lib/primitives/AspectRatio2.js +57 -56
- package/lib/primitives/BrandIcon.js +177 -177
- package/lib/primitives/ColorDot2.js +44 -48
- package/lib/primitives/CopyButton2.js +54 -55
- package/lib/primitives/CountBadge2.js +45 -48
- package/lib/primitives/Countdown2.js +35 -37
- package/lib/primitives/Delta2.js +41 -41
- package/lib/primitives/Elapsed.js +43 -41
- package/lib/primitives/FileIcon2.js +94 -94
- package/lib/primitives/Flag2.js +97 -97
- package/lib/primitives/IconStack2.js +53 -55
- package/lib/primitives/IconTile2.js +45 -41
- package/lib/primitives/Kbd2.js +57 -57
- package/lib/primitives/Layout2.js +66 -66
- package/lib/primitives/Link2.js +42 -47
- package/lib/primitives/MaskedText2.js +47 -69
- package/lib/primitives/Progress2.js +71 -71
- package/lib/primitives/RelativeTime.js +47 -43
- package/lib/primitives/SearchInput2.js +70 -66
- package/lib/primitives/SelectorButton2.js +70 -67
- package/lib/primitives/Spinner2.js +58 -59
- package/lib/primitives/StatusIcon2.js +70 -70
- package/lib/primitives/Swatch2.js +57 -55
- package/lib/primitives/Tooltip2.js +78 -78
- package/lib/primitives/Typography2.js +54 -54
- package/lib/primitives/formatCountdown.js +37 -38
- package/lib/primitives/formatElapsed.js +46 -45
- package/lib/primitives/formatRelativeTime.js +43 -69
- package/lib/primitives/hotkey.js +66 -66
- package/lib/primitives/index.js +152 -152
- package/lib/primitives/maskValue.js +30 -32
- 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/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,125 +1,124 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const e =
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
},
|
|
25
|
-
let
|
|
26
|
-
|
|
27
|
-
let o =
|
|
28
|
-
return o === void 0 ? (
|
|
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(
|
|
37
|
-
function j({ children:
|
|
38
|
-
let
|
|
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
|
-
}),
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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
|
|
51
|
-
let e =
|
|
52
|
-
if (
|
|
53
|
-
let t = A(
|
|
54
|
-
t !== void 0 && 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
|
-
}, [
|
|
57
|
-
let e =
|
|
58
|
-
if (!
|
|
59
|
-
let
|
|
60
|
-
let
|
|
61
|
-
|
|
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[
|
|
62
|
+
width: n[e(358)],
|
|
64
63
|
visible: !0,
|
|
65
|
-
slide: e
|
|
64
|
+
slide: t[e(326)]
|
|
66
65
|
} : {
|
|
67
|
-
...
|
|
66
|
+
...t,
|
|
68
67
|
visible: !1,
|
|
69
68
|
slide: !1
|
|
70
69
|
});
|
|
71
70
|
};
|
|
72
|
-
|
|
73
|
-
let
|
|
74
|
-
return
|
|
75
|
-
}, [
|
|
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:
|
|
78
|
-
instant:
|
|
79
|
-
active:
|
|
80
|
-
setActive:
|
|
81
|
-
openMenu:
|
|
82
|
-
focusRef:
|
|
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 =
|
|
85
|
-
i !== void 0 &&
|
|
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 =
|
|
89
|
-
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)]());
|
|
90
89
|
},
|
|
91
|
-
menu:
|
|
90
|
+
menu: N
|
|
92
91
|
},
|
|
93
92
|
children: E(o.Provider, {
|
|
94
|
-
value:
|
|
95
|
-
children: D(
|
|
96
|
-
ref:
|
|
97
|
-
role:
|
|
98
|
-
"aria-label":
|
|
99
|
-
className:
|
|
100
|
-
"data-open":
|
|
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 =
|
|
103
|
-
e[t(
|
|
101
|
+
let t = f;
|
|
102
|
+
e[t(328)] === e[t(366)] && p !== null && M(null);
|
|
104
103
|
},
|
|
105
|
-
children: [E(
|
|
106
|
-
className:
|
|
104
|
+
children: [E("span", {
|
|
105
|
+
className: f(353),
|
|
107
106
|
"aria-hidden": !0,
|
|
108
|
-
"data-visible":
|
|
109
|
-
"data-slide":
|
|
107
|
+
"data-visible": T[f(326)] || void 0,
|
|
108
|
+
"data-slide": T[f(355)] || void 0,
|
|
110
109
|
style: {
|
|
111
|
-
left:
|
|
112
|
-
width:
|
|
110
|
+
left: T[f(384)],
|
|
111
|
+
width: T.width
|
|
113
112
|
}
|
|
114
|
-
}),
|
|
113
|
+
}), n]
|
|
115
114
|
})
|
|
116
115
|
})
|
|
117
116
|
});
|
|
118
117
|
}
|
|
119
|
-
function M({ label:
|
|
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(
|
|
122
|
-
let p = x(), m = o ?? p, h = f[d(
|
|
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(
|
|
131
|
-
|
|
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(
|
|
132
|
+
}, [N[d(330)]]), b(() => {
|
|
135
133
|
if (!h) return;
|
|
136
134
|
let e = requestAnimationFrame(() => {
|
|
137
|
-
let e =
|
|
138
|
-
|
|
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
|
|
145
|
-
if (e[t(
|
|
146
|
-
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);
|
|
147
145
|
}
|
|
148
146
|
}, I = (e) => {
|
|
149
147
|
let t = d;
|
|
150
|
-
switch (e
|
|
151
|
-
case t(
|
|
152
|
-
e
|
|
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(
|
|
155
|
-
e[t(
|
|
152
|
+
case t(377):
|
|
153
|
+
e[t(345)](), f[t(352)](m, t(331));
|
|
156
154
|
break;
|
|
157
|
-
case
|
|
158
|
-
e
|
|
155
|
+
case t(325):
|
|
156
|
+
e[t(345)](), f[t(329)](m, 1);
|
|
159
157
|
break;
|
|
160
|
-
case
|
|
161
|
-
e
|
|
158
|
+
case "ArrowLeft":
|
|
159
|
+
e.preventDefault(), f[t(329)](m, -1);
|
|
162
160
|
break;
|
|
163
|
-
case
|
|
164
|
-
e[t(
|
|
161
|
+
case t(347):
|
|
162
|
+
e.preventDefault(), f[t(329)](m, t(332));
|
|
165
163
|
break;
|
|
166
|
-
case
|
|
167
|
-
e.preventDefault(), f[t(
|
|
164
|
+
case "End":
|
|
165
|
+
e.preventDefault(), f[t(329)](m, t(331));
|
|
168
166
|
break;
|
|
169
|
-
case
|
|
167
|
+
case t(375): h && (e[t(345)](), f[t(352)](null));
|
|
170
168
|
}
|
|
171
|
-
}, L = f
|
|
172
|
-
return D(T, { children: [E(
|
|
169
|
+
}, L = f.open !== null && !h;
|
|
170
|
+
return D(T, { children: [E("button", {
|
|
173
171
|
ref: v,
|
|
174
172
|
id: O,
|
|
175
|
-
type: d(
|
|
176
|
-
role: d(
|
|
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 ?
|
|
181
|
-
"aria-haspopup":
|
|
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(
|
|
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(
|
|
187
|
+
e[t(340)] === t(338) && f.open !== null && !h && !l && f[t(352)](m);
|
|
190
188
|
},
|
|
191
|
-
onFocus: () => f
|
|
189
|
+
onFocus: () => f.setActive(m),
|
|
192
190
|
onKeyDown: I,
|
|
193
191
|
onClick: (e) => {
|
|
194
192
|
let t = d;
|
|
195
|
-
(e[t(
|
|
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:
|
|
198
|
-
}), g[d(
|
|
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(
|
|
200
|
+
closing: g[d(356)],
|
|
203
201
|
style: {
|
|
204
202
|
...j,
|
|
205
203
|
minWidth: u
|
|
206
204
|
},
|
|
207
|
-
className: f
|
|
205
|
+
className: f.instant ? d(337) : void 0,
|
|
208
206
|
"aria-labelledby": O,
|
|
209
|
-
onEscape: () => N[d(
|
|
210
|
-
onArrowLeft: () => f
|
|
211
|
-
onArrowRight: () => f[d(
|
|
212
|
-
children:
|
|
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__ */ "
|
|
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(
|
|
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 };
|