@iamfiro/design 0.3.0 → 0.3.1
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/lib/components/Accordion/Accordion2.js +86 -86
- package/lib/components/ActionBar/ActionBar2.js +44 -43
- package/lib/components/Alert/Alert2.js +79 -79
- package/lib/components/AppShell/AppShell2.js +58 -58
- package/lib/components/AreaChart/AreaChart.js +41 -41
- package/lib/components/BarChart/BarChart2.js +110 -110
- package/lib/components/BarList/BarList2.js +95 -95
- package/lib/components/Breadcrumb/Breadcrumb2.js +62 -59
- package/lib/components/Calendar/Calendar2.js +202 -202
- package/lib/components/Calendar/DatePicker2.js +122 -123
- package/lib/components/Calendar/date.js +57 -60
- package/lib/components/Card/Card2.js +62 -63
- package/lib/components/CardFrame/CardFrame2.js +43 -48
- package/lib/components/Chart/ChartParts.js +80 -80
- package/lib/components/Chart/chart2.js +57 -57
- package/lib/components/Chart/useChartInteraction.js +49 -49
- package/lib/components/ChatBubble/ChatBubble2.js +87 -87
- package/lib/components/ChatBubble/formatChatTime.js +34 -39
- package/lib/components/ChatComposer/ChatComposer2.js +97 -97
- package/lib/components/CodeBlock/CodeBlock2.js +60 -60
- package/lib/components/CodeBlock/highlight.js +75 -78
- package/lib/components/ColorPicker/ColorPicker2.js +383 -384
- package/lib/components/ColorPicker/color.js +74 -74
- package/lib/components/ColorPicker/presets.js +41 -46
- package/lib/components/Combobox/Combobox2.js +130 -131
- package/lib/components/CommandMenu/CommandMenu.js +137 -137
- package/lib/components/Comment/Comment2.js +64 -88
- package/lib/components/ContextMenu/ContextMenu2.js +87 -87
- package/lib/components/DataGrid/DataGrid2.js +911 -909
- package/lib/components/DataGrid/GridPopover.js +114 -114
- package/lib/components/DataGrid/anchor.js +25 -25
- package/lib/components/DataGrid/model.js +281 -282
- package/lib/components/DataGrid/panels.js +427 -429
- package/lib/components/DataGrid/typeMeta.js +50 -51
- package/lib/components/DataGrid/types.js +39 -40
- package/lib/components/DescriptionList/DescriptionList2.js +104 -104
- package/lib/components/Dialog/AlertDialog.js +85 -84
- package/lib/components/Dialog/Dialog2.js +72 -71
- package/lib/components/Dialog/modal.js +68 -68
- package/lib/components/Drawer/Drawer2.js +100 -100
- package/lib/components/DropdownMenu/DropdownMenu2.js +267 -268
- package/lib/components/DropdownMenu/menuCore.js +36 -36
- package/lib/components/Dropzone/Dropzone2.js +66 -65
- package/lib/components/EmptyState/EmptyState2.js +52 -54
- package/lib/components/FileChip/FileChip2.js +42 -66
- package/lib/components/FileUpload/FileUpload.js +171 -170
- package/lib/components/FilterChips/FilterChips2.js +54 -54
- package/lib/components/FunnelChart/FunnelChart2.js +144 -144
- package/lib/components/FunnelChart/funnel.js +56 -53
- package/lib/components/Highlight/Highlight2.js +60 -60
- package/lib/components/HoverCard/HoverCard.js +72 -72
- package/lib/components/InlineDiff/InlineDiff2.js +112 -112
- package/lib/components/InlineDiff/diff.js +81 -81
- package/lib/components/InlineDiff/useDiffReview.js +54 -53
- package/lib/components/Kanban/Kanban2.js +372 -372
- package/lib/components/Kanban/KanbanCard.js +80 -80
- package/lib/components/Kanban/move.js +55 -55
- package/lib/components/LineChart/LineChart2.js +167 -167
- package/lib/components/List/List2.js +64 -65
- package/lib/components/Listbox/Listbox2.js +105 -105
- package/lib/components/Marker/Marker2.js +54 -54
- package/lib/components/Menubar/Menubar2.js +112 -113
- package/lib/components/MultiSelect/MultiSelect2.js +106 -106
- package/lib/components/NavigationMenu/NavigationMenu2.js +227 -227
- package/lib/components/NoticeStack/NoticeStack2.js +115 -115
- package/lib/components/NumberStepper/NumberStepper2.js +69 -70
- package/lib/components/OtpInput/OtpInput2.js +87 -87
- package/lib/components/Pagination/Pagination2.js +97 -97
- package/lib/components/Pagination/paginationRange.js +23 -24
- package/lib/components/PhoneInput/PhoneInput.js +85 -85
- package/lib/components/PieChart/PieChart2.js +116 -116
- package/lib/components/PieChart/arc.js +80 -56
- package/lib/components/PieChart/useArcTween.js +57 -59
- package/lib/components/Popover/Popover2.js +59 -60
- package/lib/components/ProgressTracker/ProgressTracker2.js +116 -116
- package/lib/components/Rating/Rating2.js +93 -93
- package/lib/components/Resizable/Resizable2.js +136 -134
- package/lib/components/Resizable/layout.js +73 -73
- package/lib/components/ScaledPreview/ScaledPreview2.js +57 -58
- package/lib/components/ScatterChart/ScatterChart2.js +252 -253
- package/lib/components/ScatterChart/scatter.js +58 -56
- package/lib/components/ScrollArea/ScrollArea2.js +133 -134
- package/lib/components/Select/Select2.js +89 -89
- package/lib/components/Sidebar/Sidebar2.js +76 -76
- package/lib/components/Skeleton/Skeleton2.js +67 -67
- package/lib/components/Slider/Slider2.js +67 -67
- package/lib/components/SocialLoginButton/SocialLoginButton.js +46 -47
- package/lib/components/SparkChart/SparkChart2.js +130 -130
- package/lib/components/SparkChart/spark.js +57 -62
- package/lib/components/Sparkbar/Sparkbar2.js +44 -44
- package/lib/components/SplitView/SplitView2.js +53 -53
- package/lib/components/Stat/Stat2.js +83 -83
- package/lib/components/StepList/StepList2.js +73 -73
- package/lib/components/Table/Table2.js +45 -45
- package/lib/components/Tabs/Tabs2.js +87 -87
- package/lib/components/TagInput/TagInput2.js +231 -234
- package/lib/components/TimePicker/TimePicker2.js +195 -195
- package/lib/components/TimePicker/time.js +60 -62
- package/lib/components/Timeline/Timeline2.js +199 -199
- package/lib/components/Timeline/scale.js +56 -58
- package/lib/components/Toast/Toaster.js +153 -152
- package/lib/components/Toast/store.js +57 -58
- package/lib/components/ToggleGroup/ToggleGroup2.js +74 -74
- package/lib/components/Toolbar/Toolbar2.js +135 -133
- package/lib/components/Tracker/Tracker2.js +83 -83
- package/lib/components/TreeDiagram/TreeDiagram2.js +103 -103
- package/lib/components/TreeView/TreeView2.js +165 -163
- package/lib/hooks/timing.js +33 -31
- package/lib/hooks/useControllableState.js +42 -42
- package/lib/hooks/useCountdown.js +58 -63
- package/lib/hooks/useDigitInput.js +75 -77
- package/lib/hooks/useDismiss.js +50 -52
- package/lib/hooks/useElapsed.js +58 -56
- package/lib/hooks/useFloating.js +44 -44
- package/lib/hooks/useFocusTrap.js +64 -40
- package/lib/hooks/usePresence.js +48 -50
- package/lib/hooks/usePressToOpen.js +52 -51
- package/lib/hooks/useScrollLock.js +49 -48
- package/lib/hooks/useSelection.js +37 -40
- package/lib/index.js +70 -69
- package/lib/primitives/AspectRatio2.js +50 -54
- package/lib/primitives/BrandIcon.js +153 -153
- package/lib/primitives/ColorDot2.js +49 -48
- package/lib/primitives/CopyButton2.js +59 -58
- package/lib/primitives/CountBadge2.js +57 -55
- package/lib/primitives/Countdown2.js +45 -49
- package/lib/primitives/Delta2.js +71 -46
- package/lib/primitives/Elapsed.js +43 -43
- package/lib/primitives/FileIcon2.js +93 -93
- package/lib/primitives/Flag2.js +95 -95
- package/lib/primitives/IconStack2.js +55 -55
- package/lib/primitives/IconTile2.js +46 -45
- package/lib/primitives/Kbd2.js +55 -55
- package/lib/primitives/Layout2.js +80 -80
- package/lib/primitives/Link2.js +36 -34
- package/lib/primitives/MaskedText2.js +65 -64
- package/lib/primitives/Progress2.js +80 -80
- package/lib/primitives/RelativeTime.js +52 -54
- package/lib/primitives/SearchInput2.js +55 -54
- package/lib/primitives/SelectorButton2.js +64 -65
- package/lib/primitives/Spinner2.js +55 -59
- package/lib/primitives/StatusIcon2.js +65 -65
- package/lib/primitives/Swatch2.js +50 -50
- package/lib/primitives/Tooltip2.js +85 -85
- package/lib/primitives/Typography2.js +66 -66
- package/lib/primitives/formatCountdown.js +43 -40
- package/lib/primitives/formatElapsed.js +24 -27
- package/lib/primitives/formatRelativeTime.js +43 -43
- package/lib/primitives/hotkey.js +71 -71
- package/lib/primitives/index.js +156 -157
- package/lib/primitives/maskValue.js +38 -34
- package/lib/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,201 +1,196 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const e =
|
|
2
|
+
const e = d;
|
|
3
3
|
(function(e, t) {
|
|
4
|
-
let n =
|
|
4
|
+
let n = d, r = e();
|
|
5
5
|
for (;;) try {
|
|
6
|
-
if (-parseInt(n(
|
|
6
|
+
if (-parseInt(n(463)) / 1 + parseInt(n(468)) / 2 * (-parseInt(n(450)) / 3) + -parseInt(n(416)) / 4 * (parseInt(n(430)) / 5) + parseInt(n(440)) / 6 + -parseInt(n(457)) / 7 + -parseInt(n(396)) / 8 * (parseInt(n(408)) / 9) + parseInt(n(412)) / 10 == t) break;
|
|
7
7
|
r.push(r.shift());
|
|
8
8
|
} catch {
|
|
9
9
|
r.push(r.shift());
|
|
10
10
|
}
|
|
11
|
-
})(
|
|
11
|
+
})(P, 731338);
|
|
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";
|
|
15
15
|
import { useControllableState as i } from "../../hooks/useControllableState.js";
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
import { Button as o, cx as s } from "../../primitives/index.js";
|
|
23
|
-
import { DropdownMenu as c, DropdownMenuCheckboxItem as l, DropdownMenuItem as u, DropdownMenuSeparator as d } from "../DropdownMenu/DropdownMenu2.js";
|
|
24
|
-
/* empty css */
|
|
25
|
-
import { createContext as f, forwardRef as p, useCallback as m, useContext as h, useEffect as g, useId as _, useImperativeHandle as v, useLayoutEffect as y, useMemo as b, useRef as x, useState as S } from "react";
|
|
26
|
-
function C(e, t) {
|
|
27
|
-
e -= 219;
|
|
28
|
-
let n = a(), r = n[e];
|
|
29
|
-
C.ZETlEh === void 0 && (C.iMGEdN = function(e) {
|
|
16
|
+
import { Button as a, cx as o } from "../../primitives/index.js";
|
|
17
|
+
import { DropdownMenu as s, DropdownMenuCheckboxItem as c, DropdownMenuItem as l, DropdownMenuSeparator as u } from "../DropdownMenu/DropdownMenu2.js";
|
|
18
|
+
function d(e, t) {
|
|
19
|
+
e -= 377;
|
|
20
|
+
let n = P(), r = n[e];
|
|
21
|
+
d.HxYLGN === void 0 && (d.EqKXKE = function(e) {
|
|
30
22
|
let t = "", n = "";
|
|
31
23
|
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);
|
|
32
24
|
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
33
25
|
return decodeURIComponent(n);
|
|
34
|
-
},
|
|
26
|
+
}, d.dFZXOy = {}, d.HxYLGN = !0);
|
|
35
27
|
let i = n[0];
|
|
36
|
-
|
|
37
|
-
let
|
|
38
|
-
return
|
|
28
|
+
d.LgobsL !== i && (d.dFZXOy = {}, d.LgobsL = i);
|
|
29
|
+
let a = d.dFZXOy[e];
|
|
30
|
+
return a === void 0 ? (r = d.EqKXKE(r), d.dFZXOy[e] = r) : r = a, r;
|
|
39
31
|
}
|
|
40
|
-
|
|
41
|
-
import {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
32
|
+
/* empty css */
|
|
33
|
+
import { createContext as f, forwardRef as p, useCallback as m, useContext as h, useEffect as g, useId as _, useImperativeHandle as v, useLayoutEffect as y, useMemo as b, useRef as x, useState as S } from "react";
|
|
34
|
+
import { MoreHorizontal as C } from "lucide-react";
|
|
35
|
+
import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
36
|
+
var D = f(null), O = "button, input, select, textarea, a[href], [data-toolbar-item]", k = e(420);
|
|
37
|
+
function A({ children: t, "aria-label": n, "aria-labelledby": r, orientation: i = e(466), variant: a = "plain", size: d = "md", loop: f = !0, overflow: p = !1, overflowLabel: h = "더보기", className: g, style: _ }) {
|
|
38
|
+
let v = e, w = x(null), A = x(null), M = p && i === v(466), N = m(() => {
|
|
39
|
+
let e = v, t = w[e(401)];
|
|
40
|
+
return t ? [...t[e(384)](O)][e(451)]((n) => !n[e(389)] && n.getClientRects()[e(471)] > 0 && n.closest(e(399)) === t && !n[e(445)]?.[e(386)](O)) : [];
|
|
47
41
|
}, []), P = m(() => {
|
|
48
42
|
let e = v, t = N();
|
|
49
|
-
|
|
50
|
-
for (let t of
|
|
43
|
+
A[e(401)] && t[e(439)](A[e(401)]) || (A[e(401)] = t[0] ?? null);
|
|
44
|
+
for (let t of w[e(401)]?.[e(384)](O) ?? []) t[e(386)](e(399)) === w[e(401)] && (t[e(434)] = t === A[e(401)] ? 0 : -1);
|
|
51
45
|
}, [N]);
|
|
52
46
|
y(() => {
|
|
53
47
|
let e = v;
|
|
54
48
|
P();
|
|
55
|
-
let t =
|
|
49
|
+
let t = w[e(401)];
|
|
56
50
|
if (!t) return;
|
|
57
51
|
let n = new MutationObserver(P);
|
|
58
|
-
return n
|
|
52
|
+
return n[e(436)](t, {
|
|
59
53
|
childList: !0,
|
|
60
54
|
subtree: !0,
|
|
61
55
|
attributes: !0,
|
|
62
|
-
attributeFilter: [
|
|
63
|
-
}), () => n
|
|
56
|
+
attributeFilter: ["disabled", e(426)]
|
|
57
|
+
}), () => n[e(452)]();
|
|
64
58
|
}, [P]);
|
|
65
59
|
let F = (e) => {
|
|
66
|
-
let t = v, n = e
|
|
67
|
-
|
|
60
|
+
let t = v, n = e[t(467)];
|
|
61
|
+
w[t(401)]?.[t(422)](n) && N()[t(439)](n) && A.current !== n && (A.current = n, P());
|
|
68
62
|
}, I = (e) => {
|
|
69
|
-
let t = v, n = e[t(
|
|
70
|
-
if (e[t(
|
|
71
|
-
let r = i === t(
|
|
63
|
+
let t = v, n = e[t(467)];
|
|
64
|
+
if (e[t(402)] || !w[t(401)]?.[t(422)](n) || n[t(435)](k) || e.altKey || e[t(414)] || e.metaKey || e[t(379)].isComposing) return;
|
|
65
|
+
let r = i === t(466) ? "ArrowLeft" : t(429), a = t(i === "horizontal" ? 437 : 462), o = N(), s = o[t(393)]((e) => e === n || e[t(422)](n));
|
|
72
66
|
if (s < 0) return;
|
|
73
67
|
let c;
|
|
74
|
-
if (e
|
|
75
|
-
else if (e[t(
|
|
76
|
-
else if (e[t(
|
|
77
|
-
else if (e
|
|
68
|
+
if (e[t(380)] === a) c = s + 1 < o.length ? o[s + 1] : f ? o[0] : void 0;
|
|
69
|
+
else if (e[t(380)] === r) c = s > 0 ? o[s - 1] : f ? o[o[t(471)] - 1] : void 0;
|
|
70
|
+
else if (e[t(380)] === t(473)) c = o[0];
|
|
71
|
+
else if (e.key === t(465)) c = o[o[t(471)] - 1];
|
|
78
72
|
else return;
|
|
79
|
-
e
|
|
80
|
-
}, [L, R] = S(() => /* @__PURE__ */ new Map()), [z, B] = S([]), V = b(() => new Set(z), [z]), H = x(/* @__PURE__ */ new Map()), U = x(null), W = m((e, t) => R((n) => new Map(n)[v(
|
|
81
|
-
let n = new Map(t);
|
|
82
|
-
return n
|
|
73
|
+
e[t(428)](), c?.focus();
|
|
74
|
+
}, [L, R] = S(() => /* @__PURE__ */ new Map()), [z, B] = S([]), V = b(() => new Set(z), [z]), H = x(/* @__PURE__ */ new Map()), U = x(null), W = m((e, t) => R((n) => new Map(n)[v(438)](e, t)), []), G = m((e) => R((t) => {
|
|
75
|
+
let n = v, r = new Map(t);
|
|
76
|
+
return r[n(455)](e), r;
|
|
83
77
|
}), []);
|
|
84
78
|
y(() => {
|
|
85
|
-
let e = v, t =
|
|
86
|
-
if (!
|
|
87
|
-
B((
|
|
79
|
+
let e = v, t = w[e(401)];
|
|
80
|
+
if (!M || !t) {
|
|
81
|
+
B((e) => e.length ? [] : e);
|
|
88
82
|
return;
|
|
89
83
|
}
|
|
90
84
|
let n = () => {
|
|
91
|
-
let n = e, r = U
|
|
92
|
-
r && r[n(
|
|
93
|
-
let s = H
|
|
94
|
-
let t = n, r = e
|
|
95
|
-
i && a && H.current[t(
|
|
96
|
-
let o = e[
|
|
85
|
+
let n = e, r = U.current, i = getComputedStyle(t), a = parseFloat(i[n(441)]) || 0, o = t[n(461)] - parseFloat(i.paddingLeft) - parseFloat(i[n(469)]);
|
|
86
|
+
r && r[n(394)]().length && H[n(401)][n(438)](n(410), r.getBoundingClientRect()[n(447)]);
|
|
87
|
+
let s = H[n(401)][n(407)](n(410)) ?? t.querySelector(n(419))?.[n(449)] ?? 34, c = [...t[n(378)]][n(451)]((e) => e !== r).map((e) => {
|
|
88
|
+
let t = n, r = e[t(435)](t(472)) ? e : e[t(421)](t(458)), i = r?.[t(397)][t(406)], a = e[t(394)]()[t(471)] > 0;
|
|
89
|
+
i && a && H.current[t(438)](i, e.getBoundingClientRect().width);
|
|
90
|
+
let o = e.matches("[data-toolbar-spacer]") ? 0 : i ? H[t(401)][t(407)](i) ?? 0 : a ? e[t(443)]()[t(447)] : 0;
|
|
97
91
|
return {
|
|
98
92
|
id: i,
|
|
99
|
-
sep: r?.[t(
|
|
93
|
+
sep: r?.[t(409)](t(395)) ?? !1,
|
|
100
94
|
w: o
|
|
101
95
|
};
|
|
102
|
-
}), l = (e) => e.reduce((e, t) => e + t.w, 0) + a * Math
|
|
96
|
+
}), l = (e) => e.reduce((e, t) => e + t.w, 0) + a * Math[n(423)](e[n(471)] - 1, 0), u = c, d = [];
|
|
103
97
|
if (l(c) > o + .5) {
|
|
104
|
-
for (let e = c
|
|
98
|
+
for (let e = c.length - 1; e >= 0 && l(u) + a + s > o + .5; e--) {
|
|
105
99
|
let t = c[e].id;
|
|
106
|
-
t && (d
|
|
100
|
+
t && (d[n(459)](t), u = u[n(451)]((t) => t !== c[e]));
|
|
107
101
|
}
|
|
108
|
-
for (; u[n(
|
|
109
|
-
let e = u[u[n(
|
|
110
|
-
d
|
|
102
|
+
for (; u[n(471)] && u[u[n(471)] - 1][n(392)];) {
|
|
103
|
+
let e = u[u[n(471)] - 1];
|
|
104
|
+
d.unshift(e.id), u = u[n(425)](0, -1);
|
|
111
105
|
}
|
|
112
106
|
}
|
|
113
|
-
let f = d[n(
|
|
114
|
-
B((e) => e[n(
|
|
107
|
+
let f = d[n(446)]("|");
|
|
108
|
+
B((e) => e[n(446)]("|") === f ? e : d);
|
|
115
109
|
};
|
|
116
110
|
n();
|
|
117
111
|
let r = new ResizeObserver(n);
|
|
118
|
-
r[e(
|
|
112
|
+
r[e(436)](t);
|
|
119
113
|
let i = new MutationObserver(n);
|
|
120
|
-
return i[e(
|
|
121
|
-
|
|
114
|
+
return i[e(436)](t, { childList: !0 }), () => {
|
|
115
|
+
let t = e;
|
|
116
|
+
r[t(452)](), i[t(452)]();
|
|
122
117
|
};
|
|
123
|
-
}, [
|
|
124
|
-
let K = z
|
|
118
|
+
}, [M, L]);
|
|
119
|
+
let K = z[v(398)]((e) => ({
|
|
125
120
|
id: e,
|
|
126
|
-
entry: L
|
|
127
|
-
}))[v(
|
|
128
|
-
size:
|
|
121
|
+
entry: L[v(407)](e)
|
|
122
|
+
}))[v(451)]((e) => !!e[v(456)])[v(451)]((e, t, n) => !e.entry[v(418)] || t > 0 && t < n[v(471)] - 1 && !n[t - 1][v(456)].separator), q = b(() => ({
|
|
123
|
+
size: d,
|
|
129
124
|
orientation: i,
|
|
130
|
-
overflow:
|
|
125
|
+
overflow: M,
|
|
131
126
|
hidden: V,
|
|
132
127
|
register: W,
|
|
133
128
|
unregister: G
|
|
134
129
|
}), [
|
|
135
|
-
|
|
130
|
+
d,
|
|
136
131
|
i,
|
|
137
|
-
|
|
132
|
+
M,
|
|
138
133
|
V,
|
|
139
134
|
W,
|
|
140
135
|
G
|
|
141
136
|
]);
|
|
142
|
-
return
|
|
137
|
+
return T(D[v(404)], {
|
|
143
138
|
value: q,
|
|
144
|
-
children:
|
|
145
|
-
ref:
|
|
146
|
-
role: v(
|
|
139
|
+
children: E(v(424), {
|
|
140
|
+
ref: w,
|
|
141
|
+
role: v(388),
|
|
147
142
|
"aria-label": n,
|
|
148
143
|
"aria-labelledby": r,
|
|
149
144
|
"aria-orientation": i,
|
|
150
|
-
className:
|
|
145
|
+
className: o(v(415), v(475) + a, v(475) + d, i === "vertical" && "ds-toolbar--vertical", M && "ds-toolbar--overflow", g),
|
|
151
146
|
style: _,
|
|
152
147
|
onFocus: F,
|
|
153
148
|
onKeyDown: I,
|
|
154
|
-
children: [t,
|
|
149
|
+
children: [t, M && T("span", {
|
|
155
150
|
ref: U,
|
|
156
|
-
className: v(
|
|
157
|
-
style: K[v(
|
|
158
|
-
children:
|
|
159
|
-
align:
|
|
151
|
+
className: v(390),
|
|
152
|
+
style: K[v(471)] ? void 0 : { display: v(431) },
|
|
153
|
+
children: T(s, {
|
|
154
|
+
align: "end",
|
|
160
155
|
"aria-label": h,
|
|
161
|
-
trigger:
|
|
156
|
+
trigger: T(j, {
|
|
162
157
|
label: h,
|
|
163
|
-
icon:
|
|
158
|
+
icon: T(C, {}),
|
|
164
159
|
collapsible: !1
|
|
165
160
|
}),
|
|
166
|
-
children: K
|
|
167
|
-
icon: t[v(
|
|
168
|
-
shortcut: t
|
|
169
|
-
disabled: t[v(
|
|
170
|
-
onSelect: () => t[v(
|
|
161
|
+
children: K[v(398)](({ id: e, entry: t }) => t.separator ? T(u, {}, e) : t[v(427)] === void 0 ? T(l, {
|
|
162
|
+
icon: t[v(433)],
|
|
163
|
+
shortcut: t[v(400)],
|
|
164
|
+
disabled: t[v(389)],
|
|
165
|
+
onSelect: () => t[v(383)]?.(),
|
|
171
166
|
children: t.label
|
|
172
|
-
}, e) :
|
|
173
|
-
icon: t
|
|
174
|
-
shortcut: t
|
|
175
|
-
disabled: t[v(
|
|
176
|
-
checked: t[v(
|
|
167
|
+
}, e) : T(c, {
|
|
168
|
+
icon: t.icon,
|
|
169
|
+
shortcut: t[v(400)],
|
|
170
|
+
disabled: t[v(389)],
|
|
171
|
+
checked: t[v(427)],
|
|
177
172
|
closeOnSelect: !0,
|
|
178
|
-
onCheckedChange: () => t[v(
|
|
179
|
-
children: t
|
|
173
|
+
onCheckedChange: () => t[v(383)]?.(),
|
|
174
|
+
children: t[v(403)]
|
|
180
175
|
}, e))
|
|
181
176
|
})
|
|
182
177
|
})]
|
|
183
178
|
})
|
|
184
179
|
});
|
|
185
180
|
}
|
|
186
|
-
var
|
|
187
|
-
let N = e, P = h(
|
|
188
|
-
v(M, () => F
|
|
189
|
-
let I = c !== void 0 || l !== void 0, [L, R] = i(c, l ?? !1, u), z = !!b && S == null, B = _(), V = !!P?.[N(
|
|
181
|
+
var j = p(function({ label: r, variant: s = e(432), pressed: c, defaultPressed: l, onPressedChange: u, shortcut: d, tooltip: f, tooltipSide: p, collapsible: m = !0, icon: b, children: S, className: C, disabled: O, onClick: k, style: A, ...j }, M) {
|
|
182
|
+
let N = e, P = h(D), F = x(null);
|
|
183
|
+
v(M, () => F.current);
|
|
184
|
+
let I = c !== void 0 || l !== void 0, [L, R] = i(c, l ?? !1, u), z = !!b && S == null, B = _(), V = !!P?.[N(444)] && m, H = V && P.hidden[N(391)](B), U = d?.[N(446)]("\n"), W = P?.[N(460)], G = P?.[N(464)];
|
|
190
185
|
y(() => {
|
|
191
186
|
let e = N;
|
|
192
187
|
V && W && W(B, {
|
|
193
188
|
label: r,
|
|
194
189
|
icon: b,
|
|
195
|
-
shortcut: U?.[e(
|
|
190
|
+
shortcut: U?.[e(382)]("\n"),
|
|
196
191
|
pressed: I ? L : void 0,
|
|
197
|
-
disabled:
|
|
198
|
-
click: () => F[e(
|
|
192
|
+
disabled: O,
|
|
193
|
+
click: () => F.current?.[e(383)]()
|
|
199
194
|
});
|
|
200
195
|
}, [
|
|
201
196
|
V,
|
|
@@ -206,46 +201,47 @@ var M = p(function({ label: r, variant: a = "ghost", pressed: c, defaultPressed:
|
|
|
206
201
|
U,
|
|
207
202
|
I,
|
|
208
203
|
L,
|
|
209
|
-
|
|
204
|
+
O
|
|
210
205
|
]), g(() => V && G ? () => G(B) : void 0, [
|
|
211
206
|
V,
|
|
212
207
|
G,
|
|
213
208
|
B
|
|
214
209
|
]);
|
|
215
|
-
let K =
|
|
210
|
+
let K = T(a, {
|
|
216
211
|
ref: F,
|
|
217
|
-
variant:
|
|
218
|
-
size: P?.[N(
|
|
212
|
+
variant: s,
|
|
213
|
+
size: P?.[N(411)] ?? "md",
|
|
219
214
|
icon: b,
|
|
220
215
|
iconOnly: z,
|
|
221
216
|
shortcut: d,
|
|
222
217
|
"aria-label": z ? r : void 0,
|
|
223
218
|
"aria-pressed": I ? L : void 0,
|
|
224
|
-
"data-state": I ? L ? "on" :
|
|
219
|
+
"data-state": I ? L ? "on" : N(405) : void 0,
|
|
225
220
|
"data-toolbar-id": V ? B : void 0,
|
|
226
|
-
disabled:
|
|
227
|
-
className:
|
|
221
|
+
disabled: O,
|
|
222
|
+
className: o(N(454), C),
|
|
228
223
|
style: H ? {
|
|
229
224
|
...A,
|
|
230
|
-
display:
|
|
225
|
+
display: "none"
|
|
231
226
|
} : A,
|
|
232
227
|
onClick: (e) => {
|
|
233
|
-
|
|
228
|
+
let t = N;
|
|
229
|
+
k?.(e), I && !e[t(402)] && R(!L);
|
|
234
230
|
},
|
|
235
231
|
...j,
|
|
236
232
|
children: S
|
|
237
233
|
});
|
|
238
|
-
return !(f === void 0 ? z : f !== !1) || H ? K :
|
|
239
|
-
content: f !== void 0 && f !== !0 ? f :
|
|
234
|
+
return !(f === void 0 ? z : f !== !1) || H ? K : T(n, {
|
|
235
|
+
content: f !== void 0 && f !== !0 ? f : E(w, { children: [r, d && T(t, {
|
|
240
236
|
keys: d,
|
|
241
237
|
size: "sm"
|
|
242
238
|
})] }),
|
|
243
|
-
side: p ?? (P?.[N(
|
|
239
|
+
side: p ?? (P?.[N(442)] === "vertical" ? N(470) : N(413)),
|
|
244
240
|
children: K
|
|
245
241
|
});
|
|
246
242
|
});
|
|
247
|
-
function
|
|
248
|
-
let t = e, n = h(
|
|
243
|
+
function M() {
|
|
244
|
+
let t = e, n = h(D), i = _(), a = !!n?.[t(444)], o = n?.register, s = n?.[t(464)];
|
|
249
245
|
y(() => {
|
|
250
246
|
a && o && o(i, { separator: !0 });
|
|
251
247
|
}, [
|
|
@@ -257,25 +253,31 @@ function N() {
|
|
|
257
253
|
s,
|
|
258
254
|
i
|
|
259
255
|
]);
|
|
260
|
-
let c = a && n
|
|
261
|
-
return
|
|
262
|
-
className: t(
|
|
256
|
+
let c = a && n[t(474)].has(i);
|
|
257
|
+
return T(t(453), {
|
|
258
|
+
className: t(417),
|
|
263
259
|
"data-toolbar-id": a ? i : void 0,
|
|
264
260
|
"data-toolbar-sep": "",
|
|
265
|
-
style: c ? { display:
|
|
266
|
-
children:
|
|
267
|
-
orientation: n?.
|
|
261
|
+
style: c ? { display: "none" } : void 0,
|
|
262
|
+
children: T(r, {
|
|
263
|
+
orientation: n?.[t(442)] === t(448) ? t(466) : t(448),
|
|
268
264
|
decorative: !1
|
|
269
265
|
})
|
|
270
266
|
});
|
|
271
267
|
}
|
|
272
|
-
function
|
|
268
|
+
function N() {
|
|
273
269
|
let t = e;
|
|
274
|
-
return
|
|
275
|
-
className: t(
|
|
270
|
+
return T(t(453), {
|
|
271
|
+
className: t(377),
|
|
276
272
|
"data-toolbar-spacer": "",
|
|
277
273
|
"aria-hidden": !0
|
|
278
274
|
});
|
|
279
275
|
}
|
|
280
|
-
|
|
281
|
-
|
|
276
|
+
function P() {
|
|
277
|
+
let e = /* @__PURE__ */ "z2v0qM91BMrPBMDdBgLLBNrszwn0.B3zLCMzSB3C.CgfYzw50rwXLBwvUDa.AM9PBG.D2LKDgG.DMvYDgLJywW.B2zMC2v0sgvPz2H0.mta0mdCWD2v5B0D1.zMLSDgvY.zgLZy29UBMvJDa.C3bHBG.zhmTDg9VBgjHCL9FyNrU.zgvSzxrL.zw50CNK.mZeZmtmXmg5wwwfwrG.oNnJB3bLid4Gw2rHDgeTDg9VBgjHCI1Pzf0.Dw5ZAgLMDa.CMvNAxn0zxi.y2XPzw50v2LKDgG.qxjYB3DeB3DU.nZu0mZKZA3bdC1fx.Dw5YzwDPC3rLCG.rw5K.Ag9YAxPVBNrHBa.DgfYz2v0.mJHtthvRr0y.CgfKzgLUz1jPz2H0.CMLNAhq.BgvUz3rO.w2rHDgeTDg9VBgjHCI1Pzf0.sg9Tzq.AgLKzgvU.zhmTDg9VBgjHCI0T.zhmTDg9VBgjHCL9FC3bHy2vY.y2HPBgrYzw4.BMf0AxzLrxzLBNq.A2v5.u3bHy2vY.C3bSAxq.y2XPy2S.CxvLCNLtzwXLy3rVCKfSBa.qNv0Dg9U.y2XVC2vZDa.u2vWyxjHDg9Y.Dg9VBgjHCG.zgLZywjSzwq.zhmTDg9VBgjHCL9FBw9Yzq.AgfZ.C2vW.zMLUzeLUzgv4.z2v0q2XPzw50uMvJDhm.zgf0ys10B29SyMfYlxnLCa.mtC5mJK2tNnmqxrZ.zgf0yxnLDa.BwfW.w3jVBgu9iNrVB2XIyxiIxq.C2HVCNrJDxq.y3vYCMvUDa.zgvMyxvSDfbYzxzLBNrLza.BgfIzwW.uhjVDMLKzxi.B2zM.Dg9VBgjHCKLK.z2v0.mJi1tLbSvfvs.AgfZqxr0CMLIDxrL.x19TB3jL.C2L6zq.mJqYnZe2mZbdrhnYsfq.Dg9W.y3rYBeTLEq.zhmTDg9VBgjHCG.mti2mtm3mMntvvjUzG.zhmTDg9VBgjHCL9FC2vW.C2vWyxjHDg9Y.lMrZlwj0BG.Aw5WDxq6BM90kfT0ExbLpwj1DhrVBL0PoM5VDcHBDhLWzt1JAgvJA2jVEf0PoM5VDcHBDhLWzt1YywrPB10Plcb0zxH0yxjLysWGC2vSzwn0lcbBy29UDgvUDgvKAxrHyMXLpsj0CNvLiL0.CxvLCNLtzwXLy3rVCG.y29UDgfPBNm.Bwf4.zgL2.C2XPy2u.C3r5Bgu.ChjLC3nLza.ChjLDMvUDerLzMf1Bhq.qxjYB3DvCa.mtbwr0vsEhO.BM9Uzq.z2HVC3q.AwnVBG.DgfIsw5KzxG.Bwf0y2HLCW.B2jZzxj2zq.qxjYB3DsAwDODa.C2v0.Aw5JBhvKzxm.nZa5nti2ne1bBhjorq.y29SDw1Ur2fW.B3jPzw50yxrPB24".split(".");
|
|
278
|
+
return P = function() {
|
|
279
|
+
return e;
|
|
280
|
+
}, P();
|
|
281
|
+
}
|
|
282
|
+
A[e(385)] = j, A[e(387)] = M, A[e(381)] = N;
|
|
283
|
+
export { A as Toolbar, j as ToolbarButton, M as ToolbarSeparator, N as ToolbarSpacer };
|