@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,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const e =
|
|
2
|
+
const e = A;
|
|
3
3
|
(function(e, t) {
|
|
4
|
-
let n =
|
|
4
|
+
let n = A, r = e();
|
|
5
5
|
for (;;) try {
|
|
6
|
-
if (parseInt(n(
|
|
6
|
+
if (parseInt(n(353)) / 1 + -parseInt(n(382)) / 2 * (-parseInt(n(293)) / 3) + parseInt(n(304)) / 4 + parseInt(n(332)) / 5 + -parseInt(n(317)) / 6 * (parseInt(n(340)) / 7) + -parseInt(n(299)) / 8 * (-parseInt(n(285)) / 9) + -parseInt(n(294)) / 10 * (parseInt(n(282)) / 11) == t) break;
|
|
7
7
|
r.push(r.shift());
|
|
8
8
|
} catch {
|
|
9
9
|
r.push(r.shift());
|
|
10
10
|
}
|
|
11
|
-
})(
|
|
11
|
+
})(M, 457787);
|
|
12
12
|
import { Kbd as t } from "../../primitives/Kbd2.js";
|
|
13
13
|
import { Tooltip as n } from "../../primitives/Tooltip2.js";
|
|
14
14
|
import { Separator as r } from "../../primitives/Layout2.js";
|
|
@@ -19,184 +19,178 @@ import { DropdownMenu as s, DropdownMenuCheckboxItem as c, DropdownMenuItem as l
|
|
|
19
19
|
import { createContext as d, forwardRef as f, useCallback as p, useContext as m, useEffect as h, useId as g, useImperativeHandle as _, useLayoutEffect as v, useMemo as y, useRef as b, useState as x } from "react";
|
|
20
20
|
import { MoreHorizontal as S } from "lucide-react";
|
|
21
21
|
import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
function D(e, t) {
|
|
29
|
-
e -= 282;
|
|
30
|
-
let n = E(), r = n[e];
|
|
31
|
-
D.zBQxfG === void 0 && (D.Vkudqa = function(e) {
|
|
32
|
-
let t = "", n = "";
|
|
33
|
-
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);
|
|
34
|
-
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
35
|
-
return decodeURIComponent(n);
|
|
36
|
-
}, D.uTRrVj = {}, D.zBQxfG = !0);
|
|
37
|
-
let i = n[0];
|
|
38
|
-
D.KUqnXF !== i && (D.uTRrVj = {}, D.KUqnXF = i);
|
|
39
|
-
let a = D.uTRrVj[e];
|
|
40
|
-
return a === void 0 ? (r = D.Vkudqa(r), D.uTRrVj[e] = r) : r = a, r;
|
|
41
|
-
}
|
|
42
|
-
var O = d(null), k = "button, input, select, textarea, a[href], [data-toolbar-item]", A = "input:not([type=button]):not([type=checkbox]):not([type=radio]), textarea, select, [contenteditable=\"true\"]";
|
|
43
|
-
function j({ children: t, "aria-label": n, "aria-labelledby": r, orientation: i = "horizontal", variant: a = e(375), size: d = "md", loop: f = !0, overflow: m = !1, overflowLabel: h = e(378), className: g, style: _ }) {
|
|
44
|
-
let C = e, E = b(null), D = b(null), j = m && i === C(284), N = p(() => {
|
|
45
|
-
let e = C, t = E.current;
|
|
46
|
-
return t ? [...t[e(298)](k)].filter((n) => !n[e(342)] && n[e(309)]()[e(340)] > 0 && n[e(353)](e(328)) === t && !n[e(332)]?.closest(k)) : [];
|
|
22
|
+
var E = d(null), D = "button, input, select, textarea, a[href], [data-toolbar-item]", O = e(311);
|
|
23
|
+
function k({ children: t, "aria-label": n, "aria-labelledby": r, orientation: i = "horizontal", variant: a = e(318), size: d = "md", loop: f = !0, overflow: m = !1, overflowLabel: h = e(336), className: g, style: _ }) {
|
|
24
|
+
let C = e, k = b(null), A = b(null), M = m && i === C(284), N = p(() => {
|
|
25
|
+
let e = C, t = k[e(296)];
|
|
26
|
+
return t ? [...t.querySelectorAll(D)][e(333)]((n) => !n[e(328)] && n.getClientRects()[e(280)] > 0 && n[e(359)]("[role=\"toolbar\"]") === t && !n[e(374)]?.[e(359)](D)) : [];
|
|
47
27
|
}, []), P = p(() => {
|
|
48
28
|
let e = C, t = N();
|
|
49
|
-
|
|
50
|
-
for (let t of
|
|
29
|
+
A[e(296)] && t[e(380)](A[e(296)]) || (A[e(296)] = t[0] ?? null);
|
|
30
|
+
for (let t of k.current?.[e(286)](D) ?? []) t.closest(e(341)) === k.current && (t[e(330)] = t === A[e(296)] ? 0 : -1);
|
|
51
31
|
}, [N]);
|
|
52
32
|
v(() => {
|
|
53
33
|
let e = C;
|
|
54
34
|
P();
|
|
55
|
-
let t =
|
|
35
|
+
let t = k[e(296)];
|
|
56
36
|
if (!t) return;
|
|
57
37
|
let n = new MutationObserver(P);
|
|
58
|
-
return n[e(
|
|
38
|
+
return n[e(379)](t, {
|
|
59
39
|
childList: !0,
|
|
60
40
|
subtree: !0,
|
|
61
41
|
attributes: !0,
|
|
62
|
-
attributeFilter: [
|
|
63
|
-
}), () => n[e(
|
|
42
|
+
attributeFilter: ["disabled", e(325)]
|
|
43
|
+
}), () => n[e(360)]();
|
|
64
44
|
}, [P]);
|
|
65
45
|
let F = (e) => {
|
|
66
|
-
let t = C, n = e[t(
|
|
67
|
-
|
|
46
|
+
let t = C, n = e[t(283)];
|
|
47
|
+
k.current?.[t(370)](n) && N()[t(380)](n) && A.current !== n && (A[t(296)] = n, P());
|
|
68
48
|
}, I = (e) => {
|
|
69
|
-
let t = C, n = e[t(
|
|
70
|
-
if (e[t(
|
|
71
|
-
let r = i === t(284) ? t(
|
|
49
|
+
let t = C, n = e[t(283)];
|
|
50
|
+
if (e[t(344)] || !k[t(296)]?.[t(370)](n) || n.matches(O) || e[t(297)] || e.ctrlKey || e[t(303)] || e[t(281)][t(316)]) return;
|
|
51
|
+
let r = i === t(284) ? t(288) : t(343), a = i === "horizontal" ? "ArrowRight" : t(347), o = N(), s = o[t(314)]((e) => e === n || e[t(370)](n));
|
|
72
52
|
if (s < 0) return;
|
|
73
53
|
let c;
|
|
74
|
-
if (e[t(
|
|
75
|
-
else if (e[t(
|
|
76
|
-
else if (e[t(
|
|
77
|
-
else if (e[t(
|
|
54
|
+
if (e[t(324)] === a) c = s + 1 < o[t(280)] ? o[s + 1] : f ? o[0] : void 0;
|
|
55
|
+
else if (e[t(324)] === r) c = s > 0 ? o[s - 1] : f ? o[o[t(280)] - 1] : void 0;
|
|
56
|
+
else if (e[t(324)] === "Home") c = o[0];
|
|
57
|
+
else if (e[t(324)] === "End") c = o[o.length - 1];
|
|
78
58
|
else return;
|
|
79
|
-
e[t(
|
|
80
|
-
}, [L, R] = x(() => /* @__PURE__ */ new Map()), [z, B] = x([]), V = y(() => new Set(z), [z]), H = b(/* @__PURE__ */ new Map()), U = b(null), W = p((e, t) => R((n) => new Map(n)
|
|
59
|
+
e[t(313)](), c?.[t(309)]();
|
|
60
|
+
}, [L, R] = x(() => /* @__PURE__ */ new Map()), [z, B] = x([]), V = y(() => new Set(z), [z]), H = b(/* @__PURE__ */ new Map()), U = b(null), W = p((e, t) => R((n) => new Map(n).set(e, t)), []), G = p((e) => R((t) => {
|
|
81
61
|
let n = C, r = new Map(t);
|
|
82
|
-
return r[n(
|
|
62
|
+
return r[n(357)](e), r;
|
|
83
63
|
}), []);
|
|
84
64
|
v(() => {
|
|
85
|
-
let e = C, t =
|
|
86
|
-
if (!
|
|
87
|
-
B((
|
|
65
|
+
let e = C, t = k[e(296)];
|
|
66
|
+
if (!M || !t) {
|
|
67
|
+
B((t) => t[e(280)] ? [] : t);
|
|
88
68
|
return;
|
|
89
69
|
}
|
|
90
70
|
let n = () => {
|
|
91
|
-
let n = e, r = U[n(
|
|
92
|
-
r && r[n(
|
|
93
|
-
let s = H[n(
|
|
94
|
-
let t = n, r = e
|
|
95
|
-
i && a && H[t(
|
|
96
|
-
let o = e[t(
|
|
71
|
+
let n = e, r = U[n(296)], i = getComputedStyle(t), a = parseFloat(i[n(345)]) || 0, o = t[n(338)] - parseFloat(i[n(381)]) - parseFloat(i[n(289)]);
|
|
72
|
+
r && r[n(308)]()[n(280)] && H[n(296)][n(322)](n(319), r[n(321)]().width);
|
|
73
|
+
let s = H.current[n(358)]("__more") ?? t[n(342)](".ds-btn")?.[n(329)] ?? 34, c = [...t[n(301)]].filter((e) => e !== r)[n(327)]((e) => {
|
|
74
|
+
let t = n, r = e.matches(t(320)) ? e : e[t(342)](t(367)), i = r?.[t(349)][t(291)], a = e[t(308)]()[t(280)] > 0;
|
|
75
|
+
i && a && H[t(296)][t(322)](i, e[t(321)]()[t(306)]);
|
|
76
|
+
let o = e[t(326)]("[data-toolbar-spacer]") ? 0 : i ? H[t(296)][t(358)](i) ?? 0 : a ? e[t(321)]()[t(306)] : 0;
|
|
97
77
|
return {
|
|
98
78
|
id: i,
|
|
99
|
-
sep: r?.
|
|
79
|
+
sep: r?.[t(300)]("data-toolbar-sep") ?? !1,
|
|
100
80
|
w: o
|
|
101
81
|
};
|
|
102
|
-
}), l = (e) => e
|
|
82
|
+
}), l = (e) => e[n(364)]((e, t) => e + t.w, 0) + a * Math[n(307)](e[n(280)] - 1, 0), u = c, d = [];
|
|
103
83
|
if (l(c) > o + .5) {
|
|
104
|
-
for (let e = c[n(
|
|
84
|
+
for (let e = c[n(280)] - 1; e >= 0 && l(u) + a + s > o + .5; e--) {
|
|
105
85
|
let t = c[e].id;
|
|
106
|
-
t && (d[n(
|
|
86
|
+
t && (d[n(335)](t), u = u[n(333)]((t) => t !== c[e]));
|
|
107
87
|
}
|
|
108
|
-
for (; u[n(
|
|
88
|
+
for (; u[n(280)] && u[u.length - 1][n(346)];) {
|
|
109
89
|
let e = u[u.length - 1];
|
|
110
|
-
d[n(
|
|
90
|
+
d[n(335)](e.id), u = u[n(361)](0, -1);
|
|
111
91
|
}
|
|
112
92
|
}
|
|
113
|
-
let f = d
|
|
114
|
-
B((e) => e[n(
|
|
93
|
+
let f = d[n(290)]("|");
|
|
94
|
+
B((e) => e[n(290)]("|") === f ? e : d);
|
|
115
95
|
};
|
|
116
96
|
n();
|
|
117
97
|
let r = new ResizeObserver(n);
|
|
118
|
-
r[e(
|
|
98
|
+
r[e(379)](t);
|
|
119
99
|
let i = new MutationObserver(n);
|
|
120
|
-
return i
|
|
100
|
+
return i.observe(t, { childList: !0 }), () => {
|
|
121
101
|
let t = e;
|
|
122
|
-
r
|
|
102
|
+
r[t(360)](), i[t(360)]();
|
|
123
103
|
};
|
|
124
|
-
}, [
|
|
125
|
-
let K = z
|
|
104
|
+
}, [M, L]);
|
|
105
|
+
let K = z.map((e) => ({
|
|
126
106
|
id: e,
|
|
127
|
-
entry: L
|
|
128
|
-
})).filter((e) => !!e
|
|
107
|
+
entry: L.get(e)
|
|
108
|
+
})).filter((e) => !!e.entry).filter((e, t, n) => !e[C(356)][C(373)] || t > 0 && t < n[C(280)] - 1 && !n[t - 1][C(356)][C(373)]), q = y(() => ({
|
|
129
109
|
size: d,
|
|
130
110
|
orientation: i,
|
|
131
|
-
overflow:
|
|
111
|
+
overflow: M,
|
|
132
112
|
hidden: V,
|
|
133
113
|
register: W,
|
|
134
114
|
unregister: G
|
|
135
115
|
}), [
|
|
136
116
|
d,
|
|
137
117
|
i,
|
|
138
|
-
|
|
118
|
+
M,
|
|
139
119
|
V,
|
|
140
120
|
W,
|
|
141
121
|
G
|
|
142
122
|
]);
|
|
143
|
-
return w(
|
|
123
|
+
return w(E[C(372)], {
|
|
144
124
|
value: q,
|
|
145
|
-
children: T(C(
|
|
146
|
-
ref:
|
|
147
|
-
role:
|
|
125
|
+
children: T(C(305), {
|
|
126
|
+
ref: k,
|
|
127
|
+
role: "toolbar",
|
|
148
128
|
"aria-label": n,
|
|
149
129
|
"aria-labelledby": r,
|
|
150
130
|
"aria-orientation": i,
|
|
151
|
-
className: o(C(
|
|
131
|
+
className: o(C(369), "ds-toolbar--" + a, C(292) + d, i === C(365) && C(352), M && C(376), g),
|
|
152
132
|
style: _,
|
|
153
133
|
onFocus: F,
|
|
154
134
|
onKeyDown: I,
|
|
155
|
-
children: [t,
|
|
135
|
+
children: [t, M && w(C(334), {
|
|
156
136
|
ref: U,
|
|
157
|
-
className: C(
|
|
158
|
-
style: K
|
|
137
|
+
className: C(362),
|
|
138
|
+
style: K[C(280)] ? void 0 : { display: C(366) },
|
|
159
139
|
children: w(s, {
|
|
160
|
-
align:
|
|
140
|
+
align: C(310),
|
|
161
141
|
"aria-label": h,
|
|
162
|
-
trigger: w(
|
|
142
|
+
trigger: w(j, {
|
|
163
143
|
label: h,
|
|
164
144
|
icon: w(S, {}),
|
|
165
145
|
collapsible: !1
|
|
166
146
|
}),
|
|
167
|
-
children: K[C(
|
|
168
|
-
icon: t[C(
|
|
169
|
-
shortcut: t[C(
|
|
170
|
-
disabled: t[C(
|
|
171
|
-
onSelect: () => t
|
|
172
|
-
children: t
|
|
147
|
+
children: K[C(327)](({ id: e, entry: t }) => t[C(373)] ? w(u, {}, e) : t[C(363)] === void 0 ? w(l, {
|
|
148
|
+
icon: t[C(375)],
|
|
149
|
+
shortcut: t[C(350)],
|
|
150
|
+
disabled: t[C(328)],
|
|
151
|
+
onSelect: () => t.click?.(),
|
|
152
|
+
children: t.label
|
|
173
153
|
}, e) : w(c, {
|
|
174
|
-
icon: t
|
|
175
|
-
shortcut: t[C(
|
|
176
|
-
disabled: t
|
|
177
|
-
checked: t
|
|
154
|
+
icon: t.icon,
|
|
155
|
+
shortcut: t[C(350)],
|
|
156
|
+
disabled: t[C(328)],
|
|
157
|
+
checked: t.pressed,
|
|
178
158
|
closeOnSelect: !0,
|
|
179
|
-
onCheckedChange: () => t[C(
|
|
180
|
-
children: t[C(
|
|
159
|
+
onCheckedChange: () => t[C(348)]?.(),
|
|
160
|
+
children: t[C(312)]
|
|
181
161
|
}, e))
|
|
182
162
|
})
|
|
183
163
|
})]
|
|
184
164
|
})
|
|
185
165
|
});
|
|
186
166
|
}
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
167
|
+
function A(e, t) {
|
|
168
|
+
e -= 280;
|
|
169
|
+
let n = M(), r = n[e];
|
|
170
|
+
A.uNnBaQ === void 0 && (A.QwzVfC = function(e) {
|
|
171
|
+
let t = "", n = "";
|
|
172
|
+
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);
|
|
173
|
+
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
174
|
+
return decodeURIComponent(n);
|
|
175
|
+
}, A.JpEguq = {}, A.uNnBaQ = !0);
|
|
176
|
+
let i = n[0];
|
|
177
|
+
A.TIIZvd !== i && (A.JpEguq = {}, A.TIIZvd = i);
|
|
178
|
+
let a = A.JpEguq[e];
|
|
179
|
+
return a === void 0 ? (r = A.QwzVfC(r), A.JpEguq[e] = r) : r = a, r;
|
|
180
|
+
}
|
|
181
|
+
var j = f(function({ label: r, variant: s = e(315), pressed: c, defaultPressed: l, onPressedChange: u, shortcut: d, tooltip: f, tooltipSide: p, collapsible: y = !0, icon: x, children: S, className: D, disabled: O, onClick: k, style: A, ...j }, M) {
|
|
182
|
+
let N = e, P = m(E), F = b(null);
|
|
183
|
+
_(M, () => F.current);
|
|
184
|
+
let I = c !== void 0 || l !== void 0, [L, R] = i(c, l ?? !1, u), z = !!x && S == null, B = g(), V = !!P?.[N(377)] && y, H = V && P[N(331)].has(B), U = d?.[N(290)]("\n"), W = P?.[N(298)], G = P?.[N(295)];
|
|
191
185
|
v(() => {
|
|
192
186
|
let e = N;
|
|
193
187
|
V && W && W(B, {
|
|
194
188
|
label: r,
|
|
195
189
|
icon: x,
|
|
196
|
-
shortcut: U?.
|
|
190
|
+
shortcut: U?.split("\n"),
|
|
197
191
|
pressed: I ? L : void 0,
|
|
198
|
-
disabled:
|
|
199
|
-
click: () => F[e(
|
|
192
|
+
disabled: O,
|
|
193
|
+
click: () => F[e(296)]?.[e(348)]()
|
|
200
194
|
});
|
|
201
195
|
}, [
|
|
202
196
|
V,
|
|
@@ -207,7 +201,7 @@ var M = f(function({ label: r, variant: s = e(303), pressed: c, defaultPressed:
|
|
|
207
201
|
U,
|
|
208
202
|
I,
|
|
209
203
|
L,
|
|
210
|
-
|
|
204
|
+
O
|
|
211
205
|
]), h(() => V && G ? () => G(B) : void 0, [
|
|
212
206
|
V,
|
|
213
207
|
G,
|
|
@@ -216,23 +210,22 @@ var M = f(function({ label: r, variant: s = e(303), pressed: c, defaultPressed:
|
|
|
216
210
|
let K = w(a, {
|
|
217
211
|
ref: F,
|
|
218
212
|
variant: s,
|
|
219
|
-
size: P?.[N(
|
|
213
|
+
size: P?.[N(368)] ?? "md",
|
|
220
214
|
icon: x,
|
|
221
215
|
iconOnly: z,
|
|
222
216
|
shortcut: d,
|
|
223
217
|
"aria-label": z ? r : void 0,
|
|
224
218
|
"aria-pressed": I ? L : void 0,
|
|
225
|
-
"data-state": I ? L ? "on" : N(
|
|
219
|
+
"data-state": I ? L ? "on" : N(378) : void 0,
|
|
226
220
|
"data-toolbar-id": V ? B : void 0,
|
|
227
|
-
disabled:
|
|
228
|
-
className: o(
|
|
221
|
+
disabled: O,
|
|
222
|
+
className: o(N(287), D),
|
|
229
223
|
style: H ? {
|
|
230
224
|
...A,
|
|
231
|
-
display:
|
|
225
|
+
display: N(366)
|
|
232
226
|
} : A,
|
|
233
227
|
onClick: (e) => {
|
|
234
|
-
|
|
235
|
-
k?.(e), I && !e[t(315)] && R(!L);
|
|
228
|
+
k?.(e), I && !e.defaultPrevented && R(!L);
|
|
236
229
|
},
|
|
237
230
|
...j,
|
|
238
231
|
children: S
|
|
@@ -242,12 +235,18 @@ var M = f(function({ label: r, variant: s = e(303), pressed: c, defaultPressed:
|
|
|
242
235
|
keys: d,
|
|
243
236
|
size: "sm"
|
|
244
237
|
})] }),
|
|
245
|
-
side: p ?? (P?.
|
|
238
|
+
side: p ?? (P?.orientation === N(365) ? N(339) : N(337)),
|
|
246
239
|
children: K
|
|
247
240
|
});
|
|
248
241
|
});
|
|
242
|
+
function M() {
|
|
243
|
+
let e = /* @__PURE__ */ "B2jZzxj2zq.Aw5JBhvKzxm.CgfKzgLUz0XLzNq.nNvQBxvvBq.BgvUz3rO.BMf0AxzLrxzLBNq.mteWEg9ht3bn.DgfYz2v0.Ag9YAxPVBNrHBa.mJDuAKDdC1G.CxvLCNLtzwXLy3rVCKfSBa.zhmTDg9VBgjHCL9FyNrU.qxjYB3Dmzwz0.CgfKzgLUz1jPz2H0.AM9PBG.Dg9VBgjHCKLK.zhmTDg9VBgjHCI0T.nZa5ntyZBfLnDfDv.mJC0mda3mfjqzMXNAa.Dw5YzwDPC3rLCG.y3vYCMvUDa.ywX0s2v5.CMvNAxn0zxi.mJm3nde2ogXps21cAq.AgfZqxr0CMLIDxrL.y2HPBgrYzw4.qNv0Dg9U.Bwv0yuTLEq.mZq4ntq1nMfLv3fdDG.zgL2.D2LKDgG.Bwf4.z2v0q2XPzw50uMvJDhm.zM9JDxm.zw5K.Aw5WDxq6BM90kfT0ExbLpwj1DhrVBL0PoM5VDcHBDhLWzt1JAgvJA2jVEf0PoM5VDcHBDhLWzt1YywrPB10Plcb0zxH0yxjLysWGC2vSzwn0lcbBy29UDgvUDgvKAxrHyMXLpsj0CNvLiL0.BgfIzwW.ChjLDMvUDerLzMf1Bhq.zMLUzeLUzgv4.z2HVC3q.AxndB21WB3nPBMC.mZC4mZCZmKTqwxr3AG.CgXHAw4.x19TB3jL.w2rHDgeTDg9VBgjHCI1Pzf0.z2v0qM91BMrPBMDdBgLLBNrszwn0.C2v0.zhmTDg9VBgjHCL9FC3bHy2vY.A2v5.C3r5Bgu.Bwf0y2HLCW.BwfW.zgLZywjSzwq.B2zMC2v0sgvPz2H0.DgfIsw5KzxG.AgLKzgvU.mJGWmdaXmeLus2X4sq.zMLSDgvY.C3bHBG.Dw5ZAgLMDa.642u67o06RIW.Dg9W.y2XPzw50v2LKDgG.CMLNAhq.n013rwfWBa.w3jVBgu9iNrVB2XIyxiIxq.CxvLCNLtzwXLy3rVCG.qxjYB3DvCa.zgvMyxvSDfbYzxzLBNrLza.y29SDw1Ur2fW.C2vW.qxjYB3DeB3DU.y2XPy2S.zgf0yxnLDa.C2HVCNrJDxq.zhmTDg9VBgjHCL9FC2vW.zhmTDg9VBgjHCI0TDMvYDgLJywW.nZK3mJm3DMLzENPL.AgfZ.u2vWyxjHDg9Y.zw50CNK.zgvSzxrL.z2v0.y2XVC2vZDa.zgLZy29UBMvJDa.C2XPy2u.zhmTDg9VBgjHCL9FBw9Yzq.ChjLC3nLza.CMvKDwnL.DMvYDgLJywW.BM9Uzq.oNnJB3bLid4Gw2rHDgeTDg9VBgjHCI1Pzf0.C2L6zq.zhmTDg9VBgjHCG.y29UDgfPBNm.u3bHy2vY.uhjVDMLKzxi.C2vWyxjHDg9Y.CgfYzw50rwXLBwvUDa.AwnVBG.zhmTDg9VBgjHCI0TB3zLCMzSB3C.B3zLCMzSB3C.B2zM".split(".");
|
|
244
|
+
return M = function() {
|
|
245
|
+
return e;
|
|
246
|
+
}, M();
|
|
247
|
+
}
|
|
249
248
|
function N() {
|
|
250
|
-
let t = e, n = m(
|
|
249
|
+
let t = e, n = m(E), i = g(), a = !!n?.[t(377)], o = n?.[t(298)], s = n?.[t(295)];
|
|
251
250
|
v(() => {
|
|
252
251
|
a && o && o(i, { separator: !0 });
|
|
253
252
|
}, [
|
|
@@ -259,25 +258,25 @@ function N() {
|
|
|
259
258
|
s,
|
|
260
259
|
i
|
|
261
260
|
]);
|
|
262
|
-
let c = a && n
|
|
263
|
-
return w(t(
|
|
264
|
-
className: t(
|
|
261
|
+
let c = a && n[t(331)][t(354)](i);
|
|
262
|
+
return w(t(334), {
|
|
263
|
+
className: t(351),
|
|
265
264
|
"data-toolbar-id": a ? i : void 0,
|
|
266
265
|
"data-toolbar-sep": "",
|
|
267
|
-
style: c ? { display: t(
|
|
266
|
+
style: c ? { display: t(366) } : void 0,
|
|
268
267
|
children: w(r, {
|
|
269
|
-
orientation: n?.
|
|
268
|
+
orientation: n?.orientation === t(365) ? t(284) : "vertical",
|
|
270
269
|
decorative: !1
|
|
271
270
|
})
|
|
272
271
|
});
|
|
273
272
|
}
|
|
274
273
|
function P() {
|
|
275
274
|
let t = e;
|
|
276
|
-
return w(t(
|
|
277
|
-
className: t(
|
|
275
|
+
return w(t(334), {
|
|
276
|
+
className: t(323),
|
|
278
277
|
"data-toolbar-spacer": "",
|
|
279
278
|
"aria-hidden": !0
|
|
280
279
|
});
|
|
281
280
|
}
|
|
282
|
-
|
|
283
|
-
export {
|
|
281
|
+
k[e(302)] = j, k[e(355)] = N, k[e(371)] = P;
|
|
282
|
+
export { k as Toolbar, j as ToolbarButton, N as ToolbarSeparator, P as ToolbarSpacer };
|