@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,65 +1,65 @@
|
|
|
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
|
-
})(k, 492583);
|
|
12
|
-
import { cx as t } from "../../primitives/index.js";
|
|
13
|
-
import { collapseLayout as n, expandLayout as r, initialLayout as i, isCollapsed as a, loadLayout as o, resetPair as s, resizeLayout as c, sameLayout as l, saveLayout as u } from "./layout.js";
|
|
14
|
-
/* empty css */
|
|
15
|
-
import { Children as d, Fragment as f, createContext as p, isValidElement as m, useContext as h, useEffect as g, useId as _, useRef as v, useState as y } from "react";
|
|
16
|
-
import { jsx as b } from "react/jsx-runtime";
|
|
17
|
-
function x(e, t) {
|
|
18
|
-
e -= 119;
|
|
19
|
-
let n = k(), r = n[e];
|
|
20
|
-
x.OiMIUJ === void 0 && (x.HBJiSF = function(e) {
|
|
2
|
+
const e = t;
|
|
3
|
+
function t(e, n) {
|
|
4
|
+
e -= 343;
|
|
5
|
+
let r = O(), i = r[e];
|
|
6
|
+
t.eZIuno === void 0 && (t.GNRDbt = function(e) {
|
|
21
7
|
let t = "", n = "";
|
|
22
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);
|
|
23
9
|
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
24
10
|
return decodeURIComponent(n);
|
|
25
|
-
},
|
|
26
|
-
let
|
|
27
|
-
|
|
28
|
-
let
|
|
29
|
-
return
|
|
11
|
+
}, t.AGWsTK = {}, t.eZIuno = !0);
|
|
12
|
+
let a = r[0];
|
|
13
|
+
t.AmWtMV !== a && (t.AGWsTK = {}, t.AmWtMV = a);
|
|
14
|
+
let o = t.AGWsTK[e];
|
|
15
|
+
return o === void 0 ? (i = t.GNRDbt(i), t.AGWsTK[e] = i) : i = o, i;
|
|
30
16
|
}
|
|
31
|
-
|
|
32
|
-
let t =
|
|
17
|
+
(function(e, n) {
|
|
18
|
+
let r = t, i = e();
|
|
19
|
+
for (;;) try {
|
|
20
|
+
if (parseInt(r(343)) / 1 * (parseInt(r(401)) / 2) + parseInt(r(357)) / 3 + parseInt(r(348)) / 4 * (-parseInt(r(361)) / 5) + -parseInt(r(362)) / 6 * (parseInt(r(344)) / 7) + parseInt(r(397)) / 8 * (parseInt(r(370)) / 9) + -parseInt(r(391)) / 10 + parseInt(r(368)) / 11 == n) break;
|
|
21
|
+
i.push(i.shift());
|
|
22
|
+
} catch {
|
|
23
|
+
i.push(i.shift());
|
|
24
|
+
}
|
|
25
|
+
})(O, 698292);
|
|
26
|
+
import { cx as n } from "../../primitives/index.js";
|
|
27
|
+
import { collapseLayout as r, expandLayout as i, initialLayout as a, isCollapsed as o, loadLayout as s, resetPair as c, resizeLayout as l, sameLayout as u, saveLayout as d } from "./layout.js";
|
|
28
|
+
/* empty css */
|
|
29
|
+
import { Children as f, Fragment as p, createContext as m, isValidElement as h, useContext as g, useEffect as _, useId as v, useRef as y, useState as b } from "react";
|
|
30
|
+
import { jsx as x } from "react/jsx-runtime";
|
|
31
|
+
var S = m(null), C = m(-1), w = (e) => {
|
|
32
|
+
let t = g(S);
|
|
33
33
|
if (!t) throw Error(e + " must be inside a ResizablePanelGroup");
|
|
34
34
|
return t;
|
|
35
|
-
}, T = (t, n = "") =>
|
|
35
|
+
}, T = (t, n = "") => f.toArray(t)[e(390)]((t) => {
|
|
36
36
|
let r = e;
|
|
37
|
-
if (!
|
|
38
|
-
let i = "" + n + String(t[r(
|
|
39
|
-
return t[r(
|
|
37
|
+
if (!h(t)) return [];
|
|
38
|
+
let i = "" + n + String(t[r(355)]);
|
|
39
|
+
return t[r(345)] === p ? T(t[r(374)][r(403)], i + "/") : [{
|
|
40
40
|
el: t,
|
|
41
41
|
key: i
|
|
42
42
|
}];
|
|
43
|
-
}),
|
|
44
|
-
let n = e, r = t.collapsedSize ?? 0, i = Math[n(
|
|
43
|
+
}), ee = 16, E = (t) => {
|
|
44
|
+
let n = e, r = t.collapsedSize ?? 0, i = Math[n(371)](t.minSize ?? 10, r);
|
|
45
45
|
return {
|
|
46
46
|
min: i,
|
|
47
|
-
max: Math[n(
|
|
48
|
-
collapsible: !!t[n(
|
|
47
|
+
max: Math[n(371)](i, t[n(381)] ?? 100),
|
|
48
|
+
collapsible: !!t[n(395)],
|
|
49
49
|
collapsedSize: r,
|
|
50
|
-
defaultSize: t[n(
|
|
50
|
+
defaultSize: t[n(376)]
|
|
51
51
|
};
|
|
52
52
|
};
|
|
53
|
-
function D({ direction:
|
|
54
|
-
let
|
|
53
|
+
function D({ direction: t = e(396), children: f, autoSaveId: p, onLayoutChange: m, onLayout: h, className: g, style: w, ...D }) {
|
|
54
|
+
let O = e, j = y(null), M = v(), N = T(f), P = N[O(356)](({ el: e }) => e[O(345)] === k).map(({ el: e }) => e), F = P[O(359)]((e) => E(e[O(374)])), I = P[O(359)]((e, t) => e.props.id ?? M + "-panel-" + t), L = F[O(359)]((e, t) => I[t] + ":" + (e.defaultSize ?? "") + ":" + e[O(358)] + ":" + e.max).join("|"), R = () => a(F, P[O(359)]((e) => !!(e[O(374)][O(372)] ?? e[O(374)][O(409)]))), [z, B] = b(() => ({
|
|
55
55
|
signature: L,
|
|
56
|
-
sizes: p &&
|
|
57
|
-
})), V = z
|
|
58
|
-
z[
|
|
56
|
+
sizes: p && s(p, F[O(366)]) || R()
|
|
57
|
+
})), V = z[O(379)];
|
|
58
|
+
z[O(402)] !== L && (V = R(), B({
|
|
59
59
|
signature: L,
|
|
60
60
|
sizes: V
|
|
61
61
|
}));
|
|
62
|
-
let [H, U] =
|
|
62
|
+
let [H, U] = b(null), W = y(null), G = y({}), K = y({
|
|
63
63
|
sizes: V,
|
|
64
64
|
panels: F,
|
|
65
65
|
panelEls: P,
|
|
@@ -67,8 +67,9 @@ function D({ direction: d = "horizontal", children: f, autoSaveId: p, onLayoutCh
|
|
|
67
67
|
onLayout: h,
|
|
68
68
|
autoSaveId: p
|
|
69
69
|
});
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
_(() => {
|
|
71
|
+
let e = O;
|
|
72
|
+
K[e(382)] = {
|
|
72
73
|
sizes: V,
|
|
73
74
|
panels: F,
|
|
74
75
|
panelEls: P,
|
|
@@ -81,84 +82,85 @@ function D({ direction: d = "horizontal", children: f, autoSaveId: p, onLayoutCh
|
|
|
81
82
|
...t,
|
|
82
83
|
sizes: e
|
|
83
84
|
})), J = (e, t, n = !0) => {
|
|
84
|
-
let r =
|
|
85
|
-
q(e), !
|
|
86
|
-
let l = r, u =
|
|
87
|
-
d && !u && (G[l(
|
|
88
|
-
}), s?.(e), c &&
|
|
85
|
+
let r = O, { panels: i, panelEls: a, onLayout: s, autoSaveId: c } = K[r(382)];
|
|
86
|
+
q(e), !u(e, t) && (i[r(387)]((s, c) => {
|
|
87
|
+
let l = r, u = o(t, i, c), d = o(e, i, c);
|
|
88
|
+
d && !u && (G[l(382)][c] = t[c]), d !== u && n && a[c]?.[l(374)][l(394)]?.(d);
|
|
89
|
+
}), s?.(e), c && d(c, e));
|
|
89
90
|
}, Y = () => {
|
|
90
|
-
let e =
|
|
91
|
-
return Math[e(
|
|
92
|
-
}, te = (e) => G
|
|
91
|
+
let e = O, n = j[e(382)]?.[e(398)]();
|
|
92
|
+
return Math[e(371)](1, (t === "horizontal" ? n?.[e(369)] : n?.[e(349)]) ?? 1);
|
|
93
|
+
}, te = (e) => G[O(382)][e] ?? F[e][O(376)] ?? F[e][O(358)], X = (e, t, n) => n ? r(e, F, t) : i(e, F, t, te(t)), Z = y({
|
|
93
94
|
commit: J,
|
|
94
95
|
foldOrOpen: X
|
|
95
96
|
});
|
|
96
|
-
|
|
97
|
-
|
|
97
|
+
_(() => {
|
|
98
|
+
let e = O;
|
|
99
|
+
Z[e(382)] = {
|
|
98
100
|
commit: J,
|
|
99
101
|
foldOrOpen: X
|
|
100
102
|
};
|
|
101
103
|
});
|
|
102
|
-
let ne = P[
|
|
103
|
-
|
|
104
|
-
let e =
|
|
105
|
-
if (W[e(
|
|
106
|
-
let { sizes: t, panels: n, panelEls: r } = K
|
|
107
|
-
r[e(
|
|
108
|
-
let
|
|
109
|
-
s !== void 0 && n[r]
|
|
110
|
-
}), i !== t && Z.current[e(
|
|
104
|
+
let ne = P[O(359)]((e) => e[O(374)][O(372)] === void 0 ? "" : e[O(374)][O(372)] ? "1" : "0")[O(392)]("");
|
|
105
|
+
_(() => {
|
|
106
|
+
let e = O;
|
|
107
|
+
if (W[e(382)]) return;
|
|
108
|
+
let { sizes: t, panels: n, panelEls: r } = K.current, i = t;
|
|
109
|
+
r[e(387)]((t, r) => {
|
|
110
|
+
let a = e, s = t[a(374)][a(372)];
|
|
111
|
+
s !== void 0 && n[r].collapsible && s !== o(i, n, r) && (i = Z[a(382)][a(389)](i, r, s));
|
|
112
|
+
}), i !== t && Z.current[e(365)](i, t, !1);
|
|
111
113
|
}, [ne, H]);
|
|
112
|
-
let re = (e,
|
|
113
|
-
let
|
|
114
|
-
|
|
114
|
+
let re = (e, n) => {
|
|
115
|
+
let r = O;
|
|
116
|
+
n.button === 0 && (n.preventDefault(), n.currentTarget[r(375)](n[r(393)]), n[r(350)][r(415)]({ preventScroll: !0 }), W[r(382)] = {
|
|
115
117
|
handle: e,
|
|
116
|
-
pointer:
|
|
118
|
+
pointer: t === r(396) ? n[r(411)] : n[r(367)],
|
|
117
119
|
start: V,
|
|
118
120
|
last: V,
|
|
119
121
|
px: Y()
|
|
120
122
|
}, U(e));
|
|
121
123
|
}, ie = (e) => {
|
|
122
|
-
let
|
|
123
|
-
if (!
|
|
124
|
-
let
|
|
125
|
-
|
|
124
|
+
let n = O, r = W[n(382)];
|
|
125
|
+
if (!r) return;
|
|
126
|
+
let i = ((t === "horizontal" ? e[n(411)] : e[n(367)]) - r.pointer) / r.px * 100, a = l(r.start, F, r[n(405)], i, .5);
|
|
127
|
+
u(a, r[n(378)]) || (r[n(378)] = a, q(a), m?.(a));
|
|
126
128
|
}, ae = () => {
|
|
127
|
-
let e =
|
|
128
|
-
t && (W[e(
|
|
129
|
+
let e = O, t = W[e(382)];
|
|
130
|
+
t && (W[e(382)] = null, U(null), J(t[e(378)], t[e(385)]));
|
|
129
131
|
}, oe = () => {
|
|
130
|
-
let e =
|
|
131
|
-
t && (W[e(
|
|
132
|
+
let e = O, t = W[e(382)];
|
|
133
|
+
t && (W[e(382)] = null, U(null), q(t.start), m?.(t.start));
|
|
132
134
|
}, Q = (e) => {
|
|
133
|
-
let t = F[e].collapsible ? e : F[e + 1]?.
|
|
134
|
-
J(
|
|
135
|
-
}, se = (e,
|
|
136
|
-
let
|
|
137
|
-
if (
|
|
138
|
-
|
|
135
|
+
let t = O, n = F[e].collapsible ? e : F[e + 1]?.[t(395)] ? e + 1 : -1;
|
|
136
|
+
J(n >= 0 ? X(V, n, !o(V, F, n)) : c(V, F, e, R()), V);
|
|
137
|
+
}, se = (e, n) => {
|
|
138
|
+
let r = O;
|
|
139
|
+
if (n[r(355)] === r(377) && W[r(382)]) {
|
|
140
|
+
n.preventDefault(), oe();
|
|
139
141
|
return;
|
|
140
142
|
}
|
|
141
|
-
if (W
|
|
142
|
-
let
|
|
143
|
-
if (
|
|
144
|
-
else if (
|
|
145
|
-
else if (
|
|
146
|
-
else if (
|
|
147
|
-
else if (
|
|
148
|
-
|
|
143
|
+
if (W.current) return;
|
|
144
|
+
let i = t === r(396) ? r(351) : r(347), a = t === r(396) ? "ArrowRight" : r(353), o = (n[r(412)] ? 64 : ee) / Y() * 100, s = F[e], c = F[e + 1], u = null;
|
|
145
|
+
if (n[r(355)] === i) u = -o;
|
|
146
|
+
else if (n.key === a) u = o;
|
|
147
|
+
else if (n[r(355)] === r(407)) u = -Math[r(371)](0, V[e] - s[r(358)]);
|
|
148
|
+
else if (n[r(355)] === "End") u = Math.max(0, Math[r(358)](s[r(371)] - V[e], V[e + 1] - c[r(358)]));
|
|
149
|
+
else if (n[r(355)] === r(360)) {
|
|
150
|
+
n[r(354)](), Q(e);
|
|
149
151
|
return;
|
|
150
152
|
}
|
|
151
|
-
|
|
152
|
-
}, $ = -1, ce = N
|
|
153
|
-
let n =
|
|
154
|
-
return e
|
|
153
|
+
u !== null && (n[r(354)](), J(l(V, F, e, u, 0), V));
|
|
154
|
+
}, $ = -1, ce = N[O(359)](({ el: e, key: t }) => {
|
|
155
|
+
let n = O, r = -1;
|
|
156
|
+
return e.type === k ? r = ++$ : e[n(345)] === A && (r = $), x(C[n(346)], {
|
|
155
157
|
value: r,
|
|
156
158
|
children: e
|
|
157
159
|
}, t);
|
|
158
160
|
});
|
|
159
|
-
return
|
|
161
|
+
return x(S[O(346)], {
|
|
160
162
|
value: {
|
|
161
|
-
direction:
|
|
163
|
+
direction: t,
|
|
162
164
|
sizes: V,
|
|
163
165
|
panels: F,
|
|
164
166
|
panelIds: I,
|
|
@@ -169,10 +171,10 @@ function D({ direction: d = "horizontal", children: f, autoSaveId: p, onLayoutCh
|
|
|
169
171
|
onHandleKey: se,
|
|
170
172
|
toggle: Q
|
|
171
173
|
},
|
|
172
|
-
children:
|
|
174
|
+
children: x(O(400), {
|
|
173
175
|
ref: j,
|
|
174
|
-
className:
|
|
175
|
-
"data-direction":
|
|
176
|
+
className: n(O(364), g),
|
|
177
|
+
"data-direction": t,
|
|
176
178
|
"data-dragging": H !== null || void 0,
|
|
177
179
|
style: w,
|
|
178
180
|
...D,
|
|
@@ -180,57 +182,57 @@ function D({ direction: d = "horizontal", children: f, autoSaveId: p, onLayoutCh
|
|
|
180
182
|
})
|
|
181
183
|
});
|
|
182
184
|
}
|
|
183
|
-
function O(
|
|
184
|
-
let
|
|
185
|
-
return
|
|
185
|
+
function O() {
|
|
186
|
+
let e = /* @__PURE__ */ "CgfUzwXZ.C3rHCNq.zhmTCMvZAxPHyMXLx19NCMLW.zM9YrwfJAa.zgLYzwn0Aw9U.zM9Sze9Yt3bLBG.zMXHDe1HCa.mtiZmJa3otbIquHfDfG.AM9PBG.Cg9PBNrLCKLK.B25dB2XSyxbZzwrdAgfUz2u.y29SBgfWC2LIBgu.Ag9YAxPVBNrHBa.mJmYqvjICxzK.z2v0qM91BMrPBMDdBgLLBNrszwn0.zw5KrhjHzW.zgL2.mMDjt21fwa.C2LNBMf0DxjL.y2HPBgrYzw4.zhmTCMvZAxPHyMXLx19Oyw5KBgu.AgfUzgXL.uMvZAxPHyMXLsgfUzgXL.sg9Tzq.CM91BMq.zgvMyxvSDenVBgXHChnLza.C3bHBG.y2XPzw50wa.C2HPzNrlzxK.7yYO64sqio2bRoQ4ScdSOBdSOiG.B25iyw5KBgvlzxK.zM9JDxm.mteWmZC3r3DXD2f6.mtrgtNjpEwG.DhLWzq.uhjVDMLKzxi.qxjYB3DvCa.mJuWnhb5tePmDq.AgvPz2H0.y3vYCMvUDfrHCMDLDa.qxjYB3Dmzwz0.C2vWyxjHDg9Y.qxjYB3DeB3DU.ChjLDMvUDerLzMf1Bhq.A2v5.zMLSDgvY.mZq4mtu1neXXsfDnuW.BwLU.BwfW.rw50zxi.ode1mer5sK1IDG.mte3ndm0nejLqurkva.DMvYDgLJywW.zhmTCMvZAxPHyMXL.y29TBwL0.BgvUz3rO.y2XPzw50wq.mtuYnde1odLzu0jdtM8.D2LKDgG.mJeYoda1D2vNv1vs.Bwf4.y29SBgfWC2vK.y29SBgfWC2vKu2L6zq.ChjVChm.C2v0ug9PBNrLCKnHChr1CMu.zgvMyxvSDfnPEMu.rxnJyxbL.BgfZDa.C2L6zxm.CgfUzwXjzhm.Bwf4u2L6zq.y3vYCMvUDa.uMvZAxPHyMXLugfUzwW".split(".");
|
|
187
|
+
return O = function() {
|
|
188
|
+
return e;
|
|
189
|
+
}, O();
|
|
190
|
+
}
|
|
191
|
+
function k({ defaultSize: t, minSize: r, maxSize: i, collapsible: a, collapsedSize: s, collapsed: c, defaultCollapsed: l, onCollapsedChange: u, id: d, className: f, style: p, children: m, ...h }) {
|
|
192
|
+
let _ = e, v = w(_(383)), y = g(C), b = v.sizes[y] ?? 0, S = v[_(384)][y], T = !!S && o(v[_(379)], v[_(384)], y);
|
|
193
|
+
return x("div", {
|
|
186
194
|
id: v.panelIds[y],
|
|
187
|
-
className:
|
|
195
|
+
className: n("ds-resizable__panel", f),
|
|
188
196
|
"data-collapsed": T || void 0,
|
|
189
|
-
"data-size": Math
|
|
190
|
-
inert: T && S[_(
|
|
197
|
+
"data-size": Math[_(408)](b),
|
|
198
|
+
inert: T && S[_(373)] === 0 ? !0 : void 0,
|
|
191
199
|
style: {
|
|
192
|
-
flexGrow:
|
|
200
|
+
flexGrow: b,
|
|
193
201
|
...p
|
|
194
202
|
},
|
|
195
|
-
...
|
|
203
|
+
...h,
|
|
196
204
|
children: m
|
|
197
205
|
});
|
|
198
206
|
}
|
|
199
|
-
function
|
|
200
|
-
let e =
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
function A({ withGrip: n, disabled: r, className: i, "aria-label": a, ...o }) {
|
|
206
|
-
let s = e, c = w(s(159)), l = h(C), u = c[s(170)][l];
|
|
207
|
-
if (!u || !c[s(170)][l + 1]) return null;
|
|
208
|
-
let d = c[s(180)][l], f = c[s(183)] === l;
|
|
209
|
-
return b(s(119), {
|
|
210
|
-
role: s(121),
|
|
207
|
+
function A({ withGrip: t, disabled: r, className: i, "aria-label": a, ...o }) {
|
|
208
|
+
let s = e, c = w(s(406)), l = g(C), u = c[s(384)][l];
|
|
209
|
+
if (!u || !c[s(384)][l + 1]) return null;
|
|
210
|
+
let d = c[s(379)][l], f = c.dragging === l;
|
|
211
|
+
return x("div", {
|
|
212
|
+
role: s(352),
|
|
211
213
|
tabIndex: r ? void 0 : 0,
|
|
212
|
-
"aria-orientation": c[s(
|
|
213
|
-
"aria-label": a ?? s(
|
|
214
|
-
"aria-controls": c[s(
|
|
215
|
-
"aria-valuenow": Math
|
|
216
|
-
"aria-valuemin": Math[s(
|
|
217
|
-
"aria-valuemax": Math[s(
|
|
214
|
+
"aria-orientation": c[s(388)] === s(396) ? s(363) : "horizontal",
|
|
215
|
+
"aria-label": a ?? s(413),
|
|
216
|
+
"aria-controls": c[s(380)][l],
|
|
217
|
+
"aria-valuenow": Math.round(d),
|
|
218
|
+
"aria-valuemin": Math[s(408)](u[s(395)] ? u[s(373)] : u.min),
|
|
219
|
+
"aria-valuemax": Math[s(408)](u[s(371)]),
|
|
218
220
|
"aria-disabled": r || void 0,
|
|
219
|
-
className:
|
|
221
|
+
className: n(s(404), i),
|
|
220
222
|
"data-dragging": f || void 0,
|
|
221
223
|
"data-disabled": r || void 0,
|
|
222
|
-
onPointerDown: r ? void 0 : (e) => c
|
|
223
|
-
onPointerMove: c
|
|
224
|
-
onPointerUp: c[s(
|
|
225
|
-
onPointerCancel: c[s(
|
|
226
|
-
onLostPointerCapture: c[s(
|
|
227
|
-
onDoubleClick: r ? void 0 : () => c
|
|
228
|
-
onKeyDown: r ? void 0 : (e) => c[s(
|
|
224
|
+
onPointerDown: r ? void 0 : (e) => c.startDrag(l, e),
|
|
225
|
+
onPointerMove: c.moveDrag,
|
|
226
|
+
onPointerUp: c[s(399)],
|
|
227
|
+
onPointerCancel: c[s(399)],
|
|
228
|
+
onLostPointerCapture: c[s(399)],
|
|
229
|
+
onDoubleClick: r ? void 0 : () => c.toggle(l),
|
|
230
|
+
onKeyDown: r ? void 0 : (e) => c[s(414)](l, e),
|
|
229
231
|
...o,
|
|
230
|
-
children:
|
|
231
|
-
className: s(
|
|
232
|
+
children: t && x(s(410), {
|
|
233
|
+
className: s(386),
|
|
232
234
|
"aria-hidden": !0
|
|
233
235
|
})
|
|
234
236
|
});
|
|
235
237
|
}
|
|
236
|
-
export { A as ResizableHandle,
|
|
238
|
+
export { A as ResizableHandle, k as ResizablePanel, D as ResizablePanelGroup };
|
|
@@ -1,107 +1,107 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const e =
|
|
3
|
-
function t() {
|
|
4
|
-
let e = /* @__PURE__ */ "C2XPy2u.Bwf4.CgfYC2u.odmWotffthDoB3i.BgvUz3rO.mtuWnJuWmefztMrqsq.BhvTzw46CMvZAxPHyMXLoG.odaYndCXmMXsrLLqAq.mZK5nteXnNzqzKTRwG.zMLSDgvY.CMvKDwnL.zgvMyxvSDfnPEMu.zNjVBq.mtiWnZi0oxjqu3zWDq.z2v0sxrLBq.mZa2odm1mJfsvMXjuxu.mtKXnZK2q1vey214.ywjZ.y29SBgfWC2LIBgu.BwLU.Bg9JywXtDg9YywDL.BwfW.mJj3z0ftsgm.ouXpuwXSAW.C3rYAw5NAwz5.CM91BMq.nu9eyKLizG.AxnbCNjHEq.mJu5ELHPEKDH.y29SBgfWC2vKu2L6zq".split(".");
|
|
5
|
-
return t = function() {
|
|
6
|
-
return e;
|
|
7
|
-
}, t();
|
|
8
|
-
}
|
|
2
|
+
const e = l;
|
|
9
3
|
(function(e, t) {
|
|
10
|
-
let n =
|
|
4
|
+
let n = l, r = e();
|
|
11
5
|
for (;;) try {
|
|
12
|
-
if (-parseInt(n(
|
|
6
|
+
if (-parseInt(n(131)) / 1 * (parseInt(n(136)) / 2) + -parseInt(n(122)) / 3 * (parseInt(n(110)) / 4) + -parseInt(n(134)) / 5 + -parseInt(n(106)) / 6 * (-parseInt(n(118)) / 7) + -parseInt(n(123)) / 8 * (parseInt(n(113)) / 9) + -parseInt(n(114)) / 10 + parseInt(n(112)) / 11 == t) break;
|
|
13
7
|
r.push(r.shift());
|
|
14
8
|
} catch {
|
|
15
9
|
r.push(r.shift());
|
|
16
10
|
}
|
|
17
|
-
})(
|
|
18
|
-
var
|
|
19
|
-
function
|
|
20
|
-
let o = e, s =
|
|
11
|
+
})(u, 126173);
|
|
12
|
+
var t = .01, n = (t, n, r) => Math[e(127)](r, Math[e(133)](n, t)), r = (n, r, i) => r[i][e(109)] && n[i] <= r[i][e(111)] + t, i = (t) => t[e(105)]((e, t) => e + t, 0), a = (t, n) => [...Array[e(132)]({ length: t - n - 1 }, (e, t) => n + 1 + t), ...Array[e(132)]({ length: n }, (e, t) => n - 1 - t)];
|
|
13
|
+
function o(r, a) {
|
|
14
|
+
let o = e, s = i(r[o(128)]((e) => e[o(121)] ?? 0)), c = r[o(126)]((e) => e[o(121)] === void 0)[o(115)], l = c ? Math[o(133)](0, 100 - s) / c : 0, u = r[o(128)]((e, t) => a[t] && e[o(109)] ? e[o(111)] : n(e.defaultSize ?? l, e[o(127)], e[o(133)])), d = 100 - i(u), f = [...r[o(128)]((e, t) => t)[o(126)]((e) => r[e][o(121)] === void 0), ...r.map((e, t) => t)[o(126)]((e) => r[e].defaultSize !== void 0)].filter((e) => !(a[e] && r[e].collapsible));
|
|
21
15
|
for (let e of f) {
|
|
22
|
-
if (Math[o(
|
|
23
|
-
let i =
|
|
16
|
+
if (Math[o(125)](d) <= t) break;
|
|
17
|
+
let i = n(u[e] + d, r[e][o(127)], r[e].max);
|
|
24
18
|
d -= i - u[e], u[e] = i;
|
|
25
19
|
}
|
|
26
|
-
return Math
|
|
20
|
+
return Math[o(125)](d) > t && f[o(115)] && (u[f[f.length - 1]] += d), u;
|
|
27
21
|
}
|
|
28
|
-
function
|
|
22
|
+
function s(n, i, a, o, s = .5) {
|
|
29
23
|
let c = e;
|
|
30
|
-
if (Math
|
|
31
|
-
let l =
|
|
32
|
-
if (
|
|
33
|
-
let e = p.min - p
|
|
34
|
-
if (m < e * s) return
|
|
35
|
-
m = Math
|
|
24
|
+
if (Math[c(125)](o) < t) return n;
|
|
25
|
+
let l = i.length, u = n[c(130)](), d = o > 0 ? a : a + 1, f = o > 0 ? Array[c(132)]({ length: l - a - 1 }, (e, t) => a + 1 + t) : Array[c(132)]({ length: a + 1 }, (e, t) => a - t), p = i[d], m = Math[c(125)](o), h = 0;
|
|
26
|
+
if (r(n, i, d)) {
|
|
27
|
+
let e = p.min - p[c(111)];
|
|
28
|
+
if (m < e * s) return n;
|
|
29
|
+
m = Math.max(m, e), h = e;
|
|
36
30
|
}
|
|
37
|
-
let g = p[c(133)] -
|
|
38
|
-
if (m = Math
|
|
31
|
+
let g = p[c(133)] - n[d];
|
|
32
|
+
if (m = Math.min(m, g), m <= t) return n;
|
|
39
33
|
let _ = 0;
|
|
40
34
|
for (let e of f) {
|
|
41
35
|
let a = m - _;
|
|
42
|
-
if (a <=
|
|
43
|
-
let o =
|
|
44
|
-
if (
|
|
45
|
-
let l = Math[c(133)](0, u[e] - o[c(
|
|
46
|
-
if (o[c(
|
|
36
|
+
if (a <= t) break;
|
|
37
|
+
let o = i[e];
|
|
38
|
+
if (r(n, i, e)) continue;
|
|
39
|
+
let l = Math[c(133)](0, u[e] - o[c(127)]);
|
|
40
|
+
if (o[c(109)] && a > l + (o[c(127)] - o.collapsedSize) * s && _ + u[e] - o[c(111)] <= g + t) _ += u[e] - o[c(111)], u[e] = o[c(111)];
|
|
47
41
|
else {
|
|
48
|
-
let t = Math
|
|
42
|
+
let t = Math[c(127)](l, a);
|
|
49
43
|
u[e] -= t, _ += t;
|
|
50
44
|
}
|
|
51
45
|
}
|
|
52
|
-
return _ < h -
|
|
46
|
+
return _ < h - t || _ <= t ? n : (u[d] += _, u);
|
|
53
47
|
}
|
|
54
|
-
function
|
|
55
|
-
let s = e, c =
|
|
56
|
-
if (!c
|
|
57
|
-
let l =
|
|
58
|
-
l[
|
|
59
|
-
for (let e of
|
|
60
|
-
if (u <=
|
|
61
|
-
if (
|
|
62
|
-
let a = Math
|
|
48
|
+
function c(n, i, o) {
|
|
49
|
+
let s = e, c = i[o];
|
|
50
|
+
if (!c[s(109)] || r(n, i, o)) return n;
|
|
51
|
+
let l = n[s(130)](), u = l[o] - c.collapsedSize;
|
|
52
|
+
l[o] = c[s(111)];
|
|
53
|
+
for (let e of a(i[s(115)], o)) {
|
|
54
|
+
if (u <= t) break;
|
|
55
|
+
if (r(n, i, e)) continue;
|
|
56
|
+
let a = Math.min(u, Math[s(133)](0, i[e][s(133)] - l[e]));
|
|
63
57
|
l[e] += a, u -= a;
|
|
64
58
|
}
|
|
65
|
-
return u >
|
|
66
|
-
}
|
|
67
|
-
function u(t, a, s, c) {
|
|
68
|
-
let l = e, u = a[s], d = t[l(132)](), f = r(c, u[l(121)], u.max) - d[s];
|
|
69
|
-
if (f <= n) return t;
|
|
70
|
-
let p = 0;
|
|
71
|
-
for (let e of o(a[l(136)], s)) {
|
|
72
|
-
if (f - p <= n) break;
|
|
73
|
-
if (i(t, a, e)) continue;
|
|
74
|
-
let r = Math[l(121)](f - p, Math[l(133)](0, d[e] - a[e][l(121)]));
|
|
75
|
-
d[e] -= r, p += r;
|
|
76
|
-
}
|
|
77
|
-
return d[s] + p < u[l(121)] - n ? t : (d[s] += p, d);
|
|
78
|
-
}
|
|
79
|
-
function d(t, i, a, o) {
|
|
80
|
-
let s = e, c = a, l = a + 1, u = t[c] + t[l], d = r(u * (o[c] / Math.max(n, o[c] + o[l])), Math[s(133)](i[c][s(121)], u - i[l][s(133)]), Math.min(i[c][s(133)], u - i[l].min)), f = t[s(132)]();
|
|
81
|
-
return f[c] = d, f[l] = u - d, f;
|
|
59
|
+
return u > t ? n : l;
|
|
82
60
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
m.CYjxsl === void 0 && (m.ThKkyL = function(e) {
|
|
61
|
+
function l(e, t) {
|
|
62
|
+
e -= 105;
|
|
63
|
+
let n = u(), r = n[e];
|
|
64
|
+
l.PAHjYi === void 0 && (l.TlEife = function(e) {
|
|
88
65
|
let t = "", n = "";
|
|
89
66
|
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);
|
|
90
67
|
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
91
68
|
return decodeURIComponent(n);
|
|
92
|
-
},
|
|
93
|
-
let
|
|
94
|
-
|
|
95
|
-
let
|
|
96
|
-
return
|
|
69
|
+
}, l.ZjqsPk = {}, l.PAHjYi = !0);
|
|
70
|
+
let i = n[0];
|
|
71
|
+
l.LOvpdW !== i && (l.ZjqsPk = {}, l.LOvpdW = i);
|
|
72
|
+
let a = l.ZjqsPk[e];
|
|
73
|
+
return a === void 0 ? (r = l.TlEife(r), l.ZjqsPk[e] = r) : r = a, r;
|
|
74
|
+
}
|
|
75
|
+
function u() {
|
|
76
|
+
let e = /* @__PURE__ */ "mtbMEevZAhm.CMvKDwnL.nMLXze52yW.CgfYC2u.BNvTyMvY.y29SBgfWC2LIBgu.nffusuTnBW.y29SBgfWC2vKu2L6zq.odqZmZaWn1DoBgHHva.mtiZntm0rgPjzgTm.mtiZndeWmfbOCefztW.BgvUz3rO.C2v0sxrLBq.AxngAw5PDgu.mJCXodmXDNv6t3fZ.Bg9JywXtDg9YywDL.AxnbCNjHEq.zgvMyxvSDfnPEMu.mta5ndeZwgvPzLni.otzIrKTnzwu.CM91BMq.ywjZ.zMLSDgvY.BwLU.BwfW.zxzLCNK.C2XPy2u.mJi0odzUDhbzqwi.zNjVBq.Bwf4.mtiXmtm3mhnTsvrgrq.C3rYAw5NAwz5".split(".");
|
|
77
|
+
return u = function() {
|
|
78
|
+
return e;
|
|
79
|
+
}, u();
|
|
80
|
+
}
|
|
81
|
+
function d(i, o, s, c) {
|
|
82
|
+
let l = e, u = o[s], d = i[l(130)](), f = n(c, u[l(127)], u[l(133)]) - d[s];
|
|
83
|
+
if (f <= t) return i;
|
|
84
|
+
let p = 0;
|
|
85
|
+
for (let e of a(o[l(115)], s)) {
|
|
86
|
+
if (f - p <= t) break;
|
|
87
|
+
if (r(i, o, e)) continue;
|
|
88
|
+
let n = Math[l(127)](f - p, Math[l(133)](0, d[e] - o[e][l(127)]));
|
|
89
|
+
d[e] -= n, p += n;
|
|
90
|
+
}
|
|
91
|
+
return d[s] + p < u[l(127)] - t ? i : (d[s] += p, d);
|
|
92
|
+
}
|
|
93
|
+
function f(r, i, a, o) {
|
|
94
|
+
let s = e, c = a, l = a + 1, u = r[c] + r[l], d = n(u * (o[c] / Math.max(t, o[c] + o[l])), Math.max(i[c][s(127)], u - i[l].max), Math.min(i[c][s(133)], u - i[l][s(127)])), f = r[s(130)]();
|
|
95
|
+
return f[c] = d, f[l] = u - d, f;
|
|
97
96
|
}
|
|
97
|
+
var p = (n, r) => n.length === r[e(115)] && n[e(129)]((n, i) => Math[e(125)](n - r[i]) <= t), m = "lumen:resizable:";
|
|
98
98
|
function h(t, n) {
|
|
99
99
|
let r = e;
|
|
100
100
|
try {
|
|
101
|
-
let e = window[r(
|
|
101
|
+
let e = window[r(119)].getItem(m + t);
|
|
102
102
|
if (!e) return null;
|
|
103
|
-
let
|
|
104
|
-
return !Array[r(
|
|
103
|
+
let a = JSON[r(107)](e);
|
|
104
|
+
return !Array[r(120)](a) || a[r(115)] !== n || !a.every((e) => typeof e === r(108) && Number[r(117)](e) && e >= 0) || Math[r(125)](i(a) - 100) > .5 ? null : a;
|
|
105
105
|
} catch {
|
|
106
106
|
return null;
|
|
107
107
|
}
|
|
@@ -109,7 +109,7 @@ function h(t, n) {
|
|
|
109
109
|
function g(t, n) {
|
|
110
110
|
let r = e;
|
|
111
111
|
try {
|
|
112
|
-
window
|
|
112
|
+
window[r(119)][r(116)](m + t, JSON[r(135)](n.map((e) => Math[r(124)](e * 100) / 100)));
|
|
113
113
|
} catch {}
|
|
114
114
|
}
|
|
115
|
-
export {
|
|
115
|
+
export { c as collapseLayout, d as expandLayout, o as initialLayout, r as isCollapsed, h as loadLayout, f as resetPair, s as resizeLayout, p as sameLayout, g as saveLayout };
|