@mechane-ai/elements 0.22.1 → 0.23.0
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/README.md +8 -6
- package/dist/ai.js +4 -4
- package/dist/{categorical-values-B_Z-X-tI.js → categorical-values-lk7xoiOz.js} +2 -2
- package/dist/{chart-frame-CT_mfkYD.js → chart-frame-CFEDXxpC.js} +1 -1
- package/dist/{chart-input-C78Vq8ON.js → chart-input-BrzNr3oe.js} +2 -2
- package/dist/charts/cartesian.js +6 -6
- package/dist/charts/distribution.js +2 -2
- package/dist/charts/graph.js +2 -2
- package/dist/charts/hierarchy.js +3 -3
- package/dist/charts/matrix.js +2 -2
- package/dist/charts/timeline.js +2 -2
- package/dist/charts.js +1 -1
- package/dist/{code-block-C3wqGP_q.js → code-block-DENC5fD_.js} +1 -1
- package/dist/collections.js +3 -3
- package/dist/content/code.js +1 -1
- package/dist/content/diff.js +2 -2
- package/dist/content/link.js +1 -1
- package/dist/content/markdown.js +2 -2
- package/dist/content/tree.js +2 -2
- package/dist/{content-link-Dc-pl2ee.js → content-link-CGIua9If.js} +1 -1
- package/dist/content.js +3 -3
- package/dist/elements.css +8 -0
- package/dist/feedback.js +1 -1
- package/dist/forms/dates.js +1 -1
- package/dist/forms.js +1 -1
- package/dist/index.js +1 -1
- package/dist/layout.js +298 -233
- package/dist/navigation/commands.js +1 -1
- package/dist/packages/core/src/avatar.d.ts +3 -1
- package/dist/packages/layout/src/app-shell.d.ts +2 -1
- package/dist/packages/layout/src/index.d.ts +2 -0
- package/dist/packages/layout/src/navigation-rail-menu.d.ts +7 -0
- package/dist/packages/layout/src/navigation-rail.d.ts +1 -1
- package/dist/{pierre-tree-Ba80jL2Z.js → pierre-tree-C3nKYyoN.js} +2 -2
- package/dist/{src-CWA2Tigm.js → src-CQOgWIzP.js} +1 -1
- package/dist/{src-D3AGX7uZ.js → src-DHYcohZP.js} +1 -1
- package/dist/{src-F1zdubkU.js → src-DLReNPV9.js} +70 -62
- package/package.json +1 -1
package/dist/layout.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { a as e, t } from "./src-d7EAi61b.js";
|
|
2
|
-
import { C as
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { Button as
|
|
6
|
-
import { mergeProps as
|
|
7
|
-
import * as
|
|
8
|
-
import { Children as
|
|
9
|
-
import { Fragment as
|
|
10
|
-
import { ArrowLeft as
|
|
11
|
-
import { Group as
|
|
1
|
+
import { a as e, i as t, t as n } from "./src-d7EAi61b.js";
|
|
2
|
+
import { C as r, O as i, T as a, i as o, n as s, p as c, w as l } from "./src-DLReNPV9.js";
|
|
3
|
+
import { t as u } from "./style-composition-uYlczSsB.js";
|
|
4
|
+
import { t as d } from "./use-scroll-tab-index-Dxpdh4W7.js";
|
|
5
|
+
import { Button as f } from "@base-ui/react/button";
|
|
6
|
+
import { mergeProps as p } from "@base-ui/react/merge-props";
|
|
7
|
+
import * as m from "@stylexjs/stylex";
|
|
8
|
+
import { Children as h, createContext as g, useContext as _, useEffect as v, useId as y, useRef as b, useState as x } from "react";
|
|
9
|
+
import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
10
|
+
import { ArrowLeft as T, PanelLeft as E, X as D } from "lucide-react";
|
|
11
|
+
import { Group as O, Panel as k, Separator as A } from "react-resizable-panels";
|
|
12
12
|
// packages/layout/src/frame.stylex.ts
|
|
13
|
-
var
|
|
13
|
+
var j = {
|
|
14
14
|
sidebarMobile: "@media (max-width:800px)",
|
|
15
15
|
sidebarDesktopQuery: "(min-width:801px)",
|
|
16
16
|
sidebarCoarse: "@media (min-width:801px) and (pointer: coarse)",
|
|
17
17
|
detailMobile: "@media (max-width:720px)",
|
|
18
18
|
toolbarCompact: "@container toolbar (max-width:600px)",
|
|
19
19
|
workbenchCompact: "@container workbench (max-width:860px)"
|
|
20
|
-
},
|
|
20
|
+
}, M = g(null), N = {
|
|
21
21
|
footer: {
|
|
22
22
|
kB7OPa: "x9f619",
|
|
23
23
|
k1xSpc: "x78zum5",
|
|
@@ -51,53 +51,53 @@ var k = {
|
|
|
51
51
|
k8WAf4: "xn9t2bk",
|
|
52
52
|
$$css: !0
|
|
53
53
|
}
|
|
54
|
-
},
|
|
55
|
-
inline:
|
|
56
|
-
navigation:
|
|
54
|
+
}, P = {
|
|
55
|
+
inline: N.inlineFooter,
|
|
56
|
+
navigation: N.navigationFooter
|
|
57
57
|
};
|
|
58
|
-
function
|
|
59
|
-
return /* @__PURE__ */
|
|
60
|
-
/* @__PURE__ */
|
|
58
|
+
function F({ header: e, navigationHeader: t, footer: n, close: r, children: i }) {
|
|
59
|
+
return /* @__PURE__ */ w(S, { children: [
|
|
60
|
+
/* @__PURE__ */ w("div", {
|
|
61
61
|
...{
|
|
62
62
|
0: { className: "x9f619 x78zum5 x1qjc9v5 xnyqvp6 x2lah0s xeuugli xso031l x1q0q8m5 x1qndepd" },
|
|
63
63
|
1: { className: "x9f619 x1qjc9v5 xnyqvp6 x2lah0s xeuugli xso031l x1q0q8m5 x1qndepd x1s85apg x1rhi5y4" }
|
|
64
64
|
}[e == null | 0],
|
|
65
|
-
children: [/* @__PURE__ */
|
|
65
|
+
children: [/* @__PURE__ */ C("div", {
|
|
66
66
|
className: "x78zum5 x6s0dn4 x98rzlu xeuugli",
|
|
67
67
|
children: e
|
|
68
68
|
}), r]
|
|
69
69
|
}),
|
|
70
70
|
t,
|
|
71
|
-
/* @__PURE__ */
|
|
71
|
+
/* @__PURE__ */ C("div", {
|
|
72
72
|
role: "region",
|
|
73
73
|
"aria-label": "Navigation links",
|
|
74
74
|
className: "x98rzlu x2lwn1j x1odjw0f xish69e x1t137rt x7d1sxj x13qnu6 x9v5kkp x19rmrnh x1bqaal",
|
|
75
75
|
children: i
|
|
76
76
|
}),
|
|
77
|
-
n != null && /* @__PURE__ */
|
|
77
|
+
n != null && /* @__PURE__ */ C("div", {
|
|
78
78
|
className: "x2lah0s xeuugli xr1yuqi xpvm0e4 x153jb6y",
|
|
79
79
|
children: n
|
|
80
80
|
})
|
|
81
81
|
] });
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
return /* @__PURE__ */
|
|
83
|
+
function ee() {
|
|
84
|
+
return /* @__PURE__ */ C("div", {
|
|
85
85
|
className: "x78zum5 x6s0dn4 xl56j7k x14j3e4g x2lah0s",
|
|
86
|
-
children: /* @__PURE__ */
|
|
87
|
-
render: /* @__PURE__ */
|
|
86
|
+
children: /* @__PURE__ */ C(e.Close, {
|
|
87
|
+
render: /* @__PURE__ */ C(l, {
|
|
88
88
|
variant: "ghost",
|
|
89
89
|
"aria-label": "Close navigation"
|
|
90
90
|
}),
|
|
91
|
-
children: /* @__PURE__ */
|
|
91
|
+
children: /* @__PURE__ */ C(D, {
|
|
92
92
|
size: 16,
|
|
93
93
|
"aria-hidden": !0
|
|
94
94
|
})
|
|
95
95
|
})
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
|
-
function
|
|
99
|
-
let n =
|
|
100
|
-
return /* @__PURE__ */
|
|
98
|
+
function te({ children: e, label: t = "Main" }) {
|
|
99
|
+
let n = _(M), r = n !== null && !n.isExpanded;
|
|
100
|
+
return /* @__PURE__ */ C("nav", {
|
|
101
101
|
"aria-label": t,
|
|
102
102
|
...{
|
|
103
103
|
0: { className: "x78zum5 xdt5ytf xksvo5r" },
|
|
@@ -106,12 +106,12 @@ function P({ children: e, label: t = "Main" }) {
|
|
|
106
106
|
children: e
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
let n =
|
|
111
|
-
return /* @__PURE__ */
|
|
109
|
+
function I({ children: e, label: t }) {
|
|
110
|
+
let n = _(M), r = n !== null && !n.isExpanded, i = y();
|
|
111
|
+
return /* @__PURE__ */ w("section", {
|
|
112
112
|
"aria-labelledby": i,
|
|
113
113
|
className: "xn9t2bk",
|
|
114
|
-
children: [/* @__PURE__ */
|
|
114
|
+
children: [/* @__PURE__ */ C("div", {
|
|
115
115
|
id: i,
|
|
116
116
|
...{
|
|
117
117
|
0: { className: "xeuugli xn9t2bk xksvo5r x153jb6y x1hz01jw xy8obcc xas2l8k xk4h15q xj0a0fe" },
|
|
@@ -121,52 +121,52 @@ function F({ children: e, label: t }) {
|
|
|
121
121
|
}), e]
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
|
-
function
|
|
125
|
-
let c =
|
|
126
|
-
return /* @__PURE__ */
|
|
124
|
+
function L({ children: e, icon: t, isSelected: n = !1, shouldCloseOnActivate: r = !0, onClick: i, className: a, style: o, ...s }) {
|
|
125
|
+
let c = _(M), l = y(), d = c !== null && !c.isExpanded;
|
|
126
|
+
return /* @__PURE__ */ C("div", {
|
|
127
127
|
...{
|
|
128
128
|
0: { className: "x78zum5 xeuugli x1ok0vyi" },
|
|
129
129
|
1: { className: "x78zum5 xeuugli x1ok0vyi x1r7kqkb" }
|
|
130
130
|
}[!!n | 0],
|
|
131
|
-
children: /* @__PURE__ */
|
|
131
|
+
children: /* @__PURE__ */ w(f, {
|
|
132
132
|
...s,
|
|
133
|
-
...
|
|
133
|
+
...u({
|
|
134
134
|
className: a,
|
|
135
135
|
style: o,
|
|
136
136
|
styles: {
|
|
137
137
|
0: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft xjbqb8w x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal xc342km x1ypdohk xwj21n9 x1m8qfh3 x1nhvcw1 x1hnptsi x15rya3k x992rv9 x1avwmir xh8yej3 xeuugli xt970qd xksvo5r" },
|
|
138
138
|
1: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft xjbqb8w x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal xc342km x1ypdohk xwj21n9 x1m8qfh3 x1hnptsi x15rya3k x992rv9 x1avwmir xh8yej3 xeuugli xt970qd xksvo5r xl56j7k x1l31gyv" }
|
|
139
|
-
}[!!
|
|
139
|
+
}[!!d | 0]
|
|
140
140
|
}),
|
|
141
141
|
"aria-current": n ? "page" : void 0,
|
|
142
|
-
"aria-labelledby": s["aria-labelledby"] ?? (s["aria-label"] === void 0 ?
|
|
142
|
+
"aria-labelledby": s["aria-labelledby"] ?? (s["aria-label"] === void 0 ? l : void 0),
|
|
143
143
|
title: s.title ?? (typeof e == "string" ? e : void 0),
|
|
144
144
|
onClick: (e) => {
|
|
145
145
|
i !== void 0 && i(e), !e.defaultPrevented && c !== null && r && c.onNavigate();
|
|
146
146
|
},
|
|
147
|
-
children: [t != null && /* @__PURE__ */
|
|
147
|
+
children: [t != null && /* @__PURE__ */ C("span", {
|
|
148
148
|
"aria-hidden": !0,
|
|
149
149
|
className: "x3nfvp2 x6s0dn4 xl56j7k xtwnzbg x18utl2x x2lah0s",
|
|
150
150
|
children: t
|
|
151
|
-
}), /* @__PURE__ */
|
|
152
|
-
id:
|
|
151
|
+
}), /* @__PURE__ */ C("span", {
|
|
152
|
+
id: l,
|
|
153
153
|
...{
|
|
154
154
|
0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
|
|
155
155
|
1: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft x1s85apg xeod2sa" }
|
|
156
|
-
}[!!
|
|
156
|
+
}[!!d | 0],
|
|
157
157
|
children: e
|
|
158
158
|
})]
|
|
159
159
|
})
|
|
160
160
|
});
|
|
161
161
|
}
|
|
162
|
-
function
|
|
163
|
-
let s =
|
|
162
|
+
function R({ children: e, icon: t, isSelected: n = !1, onClick: r, className: i, style: a, ...o }) {
|
|
163
|
+
let s = _(M), c = y(), l = s !== null && !s.isExpanded, u = {
|
|
164
164
|
0: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft xjbqb8w x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal x1nhvcw1 x1hnptsi x15rya3k x992rv9 x1avwmir xh8yej3 xeuugli xt970qd xksvo5r" },
|
|
165
165
|
2: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft xjbqb8w x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal x1hnptsi x15rya3k x992rv9 x1avwmir xh8yej3 xeuugli xt970qd xksvo5r xl56j7k x1l31gyv" },
|
|
166
166
|
1: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal x1nhvcw1 x1hnptsi x15rya3k x992rv9 x1avwmir xh8yej3 xeuugli xt970qd xksvo5r x1r7kqkb" },
|
|
167
167
|
3: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal x1hnptsi x15rya3k x992rv9 x1avwmir xh8yej3 xeuugli xt970qd xksvo5r xl56j7k x1l31gyv x1r7kqkb" }
|
|
168
168
|
}[!!l << 1 | !!n];
|
|
169
|
-
return /* @__PURE__ */
|
|
169
|
+
return /* @__PURE__ */ w("a", {
|
|
170
170
|
...o,
|
|
171
171
|
"aria-current": n ? "page" : void 0,
|
|
172
172
|
"aria-labelledby": o["aria-labelledby"] ?? (o["aria-label"] === void 0 ? c : void 0),
|
|
@@ -181,11 +181,11 @@ function L({ children: e, icon: t, isSelected: n = !1, onClick: r, className: i,
|
|
|
181
181
|
...u.style,
|
|
182
182
|
...a
|
|
183
183
|
},
|
|
184
|
-
children: [t != null && /* @__PURE__ */
|
|
184
|
+
children: [t != null && /* @__PURE__ */ C("span", {
|
|
185
185
|
"aria-hidden": !0,
|
|
186
186
|
className: "x3nfvp2 x6s0dn4 xl56j7k xtwnzbg x18utl2x x2lah0s",
|
|
187
187
|
children: t
|
|
188
|
-
}), /* @__PURE__ */
|
|
188
|
+
}), /* @__PURE__ */ C("span", {
|
|
189
189
|
id: c,
|
|
190
190
|
...{
|
|
191
191
|
0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
|
|
@@ -195,9 +195,9 @@ function L({ children: e, icon: t, isSelected: n = !1, onClick: r, className: i,
|
|
|
195
195
|
})]
|
|
196
196
|
});
|
|
197
197
|
}
|
|
198
|
-
function
|
|
199
|
-
let n =
|
|
200
|
-
return /* @__PURE__ */
|
|
198
|
+
function z({ children: e, shouldGrow: t = !1 }) {
|
|
199
|
+
let n = _(M), r = n !== null && !n.isExpanded;
|
|
200
|
+
return /* @__PURE__ */ C("span", {
|
|
201
201
|
...{
|
|
202
202
|
0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
|
|
203
203
|
2: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft x78zum5 x6s0dn4 x1hnptsi x98rzlu" },
|
|
@@ -207,39 +207,39 @@ function R({ children: e, shouldGrow: t = !1 }) {
|
|
|
207
207
|
children: e
|
|
208
208
|
});
|
|
209
209
|
}
|
|
210
|
-
function
|
|
211
|
-
let n =
|
|
212
|
-
return /* @__PURE__ */
|
|
213
|
-
...
|
|
210
|
+
function B({ children: e, layout: t = "inline" }) {
|
|
211
|
+
let n = _(M), r = n !== null && !n.isExpanded;
|
|
212
|
+
return /* @__PURE__ */ C("div", {
|
|
213
|
+
...m.props(N.footer, r && N.collapsedFooter, P[t]),
|
|
214
214
|
children: e
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
|
-
function
|
|
218
|
-
let t =
|
|
219
|
-
return t === null ? null : /* @__PURE__ */
|
|
217
|
+
function V() {
|
|
218
|
+
let t = _(M);
|
|
219
|
+
return t === null ? null : /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C("div", {
|
|
220
220
|
className: "x9f619 x6s0dn4 xl56j7k x2lah0s x14j3e4g xs1s249 x32b0ac xelkwwr x78zum5 x1ykma7f",
|
|
221
|
-
children: /* @__PURE__ */
|
|
221
|
+
children: /* @__PURE__ */ C(l, {
|
|
222
222
|
ref: t.navigationToggleRef,
|
|
223
223
|
variant: "ghost",
|
|
224
224
|
"aria-label": t.isExpanded ? "Collapse navigation" : "Expand navigation",
|
|
225
225
|
"aria-controls": t.sidebarId,
|
|
226
226
|
"aria-expanded": t.isExpanded,
|
|
227
227
|
onClick: t.onToggle,
|
|
228
|
-
children: /* @__PURE__ */
|
|
228
|
+
children: /* @__PURE__ */ C(E, {
|
|
229
229
|
size: 16,
|
|
230
230
|
"aria-hidden": !0
|
|
231
231
|
})
|
|
232
232
|
})
|
|
233
|
-
}), /* @__PURE__ */
|
|
233
|
+
}), /* @__PURE__ */ C("div", {
|
|
234
234
|
className: "x9f619 x6s0dn4 xl56j7k x2lah0s x14j3e4g xs1s249 x32b0ac xelkwwr x1s85apg x1rhi5y4",
|
|
235
|
-
children: /* @__PURE__ */
|
|
235
|
+
children: /* @__PURE__ */ C(e.Trigger, {
|
|
236
236
|
ref: t.mobileNavigationToggleRef,
|
|
237
237
|
handle: t.drawerHandle,
|
|
238
|
-
render: /* @__PURE__ */
|
|
238
|
+
render: /* @__PURE__ */ C(l, {
|
|
239
239
|
variant: "ghost",
|
|
240
240
|
"aria-label": "Open navigation"
|
|
241
241
|
}),
|
|
242
|
-
children: /* @__PURE__ */
|
|
242
|
+
children: /* @__PURE__ */ C(E, {
|
|
243
243
|
size: 16,
|
|
244
244
|
"aria-hidden": !0
|
|
245
245
|
})
|
|
@@ -247,7 +247,7 @@ function B() {
|
|
|
247
247
|
})] });
|
|
248
248
|
}
|
|
249
249
|
// packages/layout/src/navigation-rail.tsx
|
|
250
|
-
var
|
|
250
|
+
var H = g("rail"), U = {
|
|
251
251
|
mobileSelected: {
|
|
252
252
|
kWkggS: "x1r7kqkb",
|
|
253
253
|
$$css: !0
|
|
@@ -277,126 +277,135 @@ var V = h(!1), H = {
|
|
|
277
277
|
$$css: !0
|
|
278
278
|
}
|
|
279
279
|
};
|
|
280
|
-
function
|
|
281
|
-
let s =
|
|
280
|
+
function W({ label: e, links: t, action: o }) {
|
|
281
|
+
let s = _(H) === "drawer", c = _(M);
|
|
282
282
|
function u(e, t) {
|
|
283
283
|
e?.(t);
|
|
284
284
|
let n = t.metaKey || t.ctrlKey, r = t.shiftKey || t.altKey;
|
|
285
|
-
t.button !== 0 || n || r ||
|
|
285
|
+
t.button !== 0 || n || r || c?.onNavigate();
|
|
286
286
|
}
|
|
287
287
|
let d = (e) => {
|
|
288
|
-
o?.onClick(e), e.defaultPrevented ||
|
|
288
|
+
o?.onClick(e), e.defaultPrevented || c?.onNavigate();
|
|
289
289
|
};
|
|
290
|
-
return s ? /* @__PURE__ */
|
|
290
|
+
return s ? /* @__PURE__ */ w("div", {
|
|
291
291
|
className: "x78zum5 xdt5ytf x1qjc9v5 x2lah0s xeuugli",
|
|
292
|
-
children: [/* @__PURE__ */
|
|
292
|
+
children: [/* @__PURE__ */ C("nav", {
|
|
293
293
|
"aria-label": e,
|
|
294
294
|
className: "xrvj5dj x1mt1orb x1rnidkh xunmzkg x1s01oa9",
|
|
295
|
-
children:
|
|
296
|
-
...
|
|
295
|
+
children: t.map(({ label: e, icon: t, isCurrent: n = !1, ...r }) => /* @__PURE__ */ w("a", {
|
|
296
|
+
...p(m.props(i.base, i.button, U.mobileLink, U.rounded, n && U.mobileSelected), r),
|
|
297
297
|
"aria-current": n ? "location" : void 0,
|
|
298
|
-
onClick: (e) => u(
|
|
299
|
-
children: [/* @__PURE__ */
|
|
298
|
+
onClick: (e) => u(r.onClick, e),
|
|
299
|
+
children: [/* @__PURE__ */ C("span", {
|
|
300
300
|
"aria-hidden": !0,
|
|
301
301
|
className: "x3nfvp2 x2lah0s xtwnzbg x18utl2x",
|
|
302
302
|
children: t
|
|
303
|
-
}), /* @__PURE__ */
|
|
303
|
+
}), /* @__PURE__ */ C("span", {
|
|
304
304
|
className: "xeuugli x193iq5w xj0a0fe",
|
|
305
305
|
children: e
|
|
306
306
|
})]
|
|
307
|
-
},
|
|
308
|
-
}), o !== void 0 && /* @__PURE__ */
|
|
307
|
+
}, r.href))
|
|
308
|
+
}), o !== void 0 && /* @__PURE__ */ C("div", {
|
|
309
309
|
className: "xrvj5dj x14w6jbu xngumbj xso031l x1q0q8m5 x1qndepd",
|
|
310
|
-
children: /* @__PURE__ */
|
|
310
|
+
children: /* @__PURE__ */ w(r, {
|
|
311
311
|
variant: "ghost",
|
|
312
312
|
onClick: d,
|
|
313
|
-
children: [/* @__PURE__ */
|
|
313
|
+
children: [/* @__PURE__ */ C("span", {
|
|
314
314
|
"aria-hidden": !0,
|
|
315
315
|
className: "x3nfvp2 x2lah0s xtwnzbg x18utl2x",
|
|
316
316
|
children: o.icon
|
|
317
317
|
}), o.label]
|
|
318
318
|
})
|
|
319
319
|
})]
|
|
320
|
-
}) : /* @__PURE__ */
|
|
320
|
+
}) : /* @__PURE__ */ C(n.Provider, { children: /* @__PURE__ */ w("div", {
|
|
321
321
|
className: "x78zum5 xdt5ytf x1qjc9v5 x2lah0s xeuugli",
|
|
322
|
-
children: [/* @__PURE__ */
|
|
322
|
+
children: [/* @__PURE__ */ C("nav", {
|
|
323
323
|
"aria-label": e,
|
|
324
324
|
className: "x78zum5 xdt5ytf x1qjc9v5",
|
|
325
|
-
children:
|
|
325
|
+
children: t.map(({ label: e, icon: t, isCurrent: r = !1, ...i }) => /* @__PURE__ */ C("div", {
|
|
326
326
|
...{
|
|
327
327
|
0: { className: "x1n2onr6 x78zum5 x6s0dn4 xl56j7k x1oec0jp" },
|
|
328
328
|
1: { className: "x1n2onr6 x78zum5 x6s0dn4 xl56j7k x1oec0jp x1r7kqkb xh3r7i3" }
|
|
329
329
|
}[!!r | 0],
|
|
330
|
-
children: /* @__PURE__ */
|
|
331
|
-
render: /* @__PURE__ */
|
|
332
|
-
...
|
|
330
|
+
children: /* @__PURE__ */ w(n.Root, { children: [/* @__PURE__ */ C(n.Trigger, {
|
|
331
|
+
render: /* @__PURE__ */ C(a, {
|
|
332
|
+
...i,
|
|
333
333
|
"aria-label": e,
|
|
334
334
|
"aria-current": r ? "location" : void 0,
|
|
335
|
-
onClick: (e) => u(
|
|
335
|
+
onClick: (e) => u(i.onClick, e)
|
|
336
336
|
}),
|
|
337
|
-
children:
|
|
338
|
-
}), /* @__PURE__ */
|
|
337
|
+
children: t
|
|
338
|
+
}), /* @__PURE__ */ C(n.Portal, { children: /* @__PURE__ */ C(n.Positioner, {
|
|
339
339
|
side: "right",
|
|
340
|
-
children: /* @__PURE__ */
|
|
340
|
+
children: /* @__PURE__ */ C(n.Popup, { children: e })
|
|
341
341
|
}) })] })
|
|
342
|
-
},
|
|
343
|
-
}), o !== void 0 && /* @__PURE__ */
|
|
342
|
+
}, i.href))
|
|
343
|
+
}), o !== void 0 && /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C("hr", { className: "xc342km x178xt8z x13fuv20 xhjagg4 xv06hpe xn92wy8" }), /* @__PURE__ */ C("div", {
|
|
344
344
|
className: "x1n2onr6 x78zum5 x6s0dn4 xl56j7k x1oec0jp",
|
|
345
|
-
children: /* @__PURE__ */
|
|
346
|
-
render: /* @__PURE__ */
|
|
345
|
+
children: /* @__PURE__ */ w(n.Root, { children: [/* @__PURE__ */ C(n.Trigger, {
|
|
346
|
+
render: /* @__PURE__ */ C(l, {
|
|
347
347
|
variant: "ghost",
|
|
348
348
|
"aria-label": o.label
|
|
349
349
|
}),
|
|
350
350
|
onClick: d,
|
|
351
351
|
children: o.icon
|
|
352
|
-
}), /* @__PURE__ */
|
|
352
|
+
}), /* @__PURE__ */ C(n.Portal, { children: /* @__PURE__ */ C(n.Positioner, {
|
|
353
353
|
side: "right",
|
|
354
|
-
children: /* @__PURE__ */
|
|
354
|
+
children: /* @__PURE__ */ C(n.Popup, { children: o.label })
|
|
355
355
|
}) })] })
|
|
356
356
|
})] })]
|
|
357
357
|
}) });
|
|
358
358
|
}
|
|
359
359
|
// packages/layout/src/app-shell.tsx
|
|
360
|
-
var
|
|
360
|
+
var G = { drawer: {
|
|
361
361
|
kzqmXN: "x68ju84",
|
|
362
362
|
ks0D6T: "x1recik0",
|
|
363
363
|
$$css: !0
|
|
364
364
|
} };
|
|
365
|
-
function
|
|
366
|
-
let
|
|
367
|
-
return
|
|
368
|
-
let e = globalThis.matchMedia(
|
|
365
|
+
function K({ rail: t, railFooter: n, sidebarHeader: r, sidebar: i, footer: a, children: o, mainId: s = "main", shouldFocus: c = !1 }) {
|
|
366
|
+
let l = t != null, u = n != null, [d, f] = x(!0), [p, m] = x(!1), h = c || l && !d, [g] = x(() => e.createHandle()), _ = y(), T = b(null), E = b(null), D = b(null), O = b(!1);
|
|
367
|
+
return v(() => {
|
|
368
|
+
let e = globalThis.matchMedia(j.sidebarDesktopQuery);
|
|
369
369
|
function t() {
|
|
370
|
-
e.matches &&
|
|
370
|
+
e.matches && m(!1);
|
|
371
371
|
}
|
|
372
372
|
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
|
|
373
|
-
}, []), /* @__PURE__ */
|
|
373
|
+
}, []), /* @__PURE__ */ w(M.Provider, {
|
|
374
374
|
value: {
|
|
375
|
-
isExpanded:
|
|
376
|
-
sidebarId:
|
|
377
|
-
drawerHandle:
|
|
378
|
-
navigationToggleRef:
|
|
379
|
-
mobileNavigationToggleRef:
|
|
380
|
-
onToggle: () =>
|
|
375
|
+
isExpanded: d,
|
|
376
|
+
sidebarId: _,
|
|
377
|
+
drawerHandle: g,
|
|
378
|
+
navigationToggleRef: T,
|
|
379
|
+
mobileNavigationToggleRef: E,
|
|
380
|
+
onToggle: () => f((e) => !e),
|
|
381
381
|
onNavigate: () => {
|
|
382
|
-
|
|
382
|
+
O.current = p, m(!1);
|
|
383
383
|
}
|
|
384
384
|
},
|
|
385
|
-
children: [/* @__PURE__ */
|
|
385
|
+
children: [/* @__PURE__ */ w("div", {
|
|
386
386
|
className: "x9f619 x1ov3xa9 x78zum5 xpvm0e4 xbixft x1hz01jw xtqrqnz x1778rvt xvmahel",
|
|
387
387
|
children: [
|
|
388
|
-
|
|
389
|
-
hidden:
|
|
388
|
+
l && /* @__PURE__ */ w("div", {
|
|
389
|
+
hidden: c,
|
|
390
390
|
...{
|
|
391
391
|
0: { className: "x9f619 x78zum5 x1ykma7f xdt5ytf xs1s249 x32b0ac xelkwwr xpvm0e4 x7wzq59 x13vifvy xtdtrs8 x2lah0s x2lwn1j xeuugli x14j3e4g" },
|
|
392
392
|
1: { className: "x9f619 xdt5ytf xs1s249 x32b0ac xelkwwr xpvm0e4 x7wzq59 x13vifvy xtdtrs8 x2lah0s x2lwn1j xeuugli x14j3e4g x1s85apg" }
|
|
393
|
-
}[!!
|
|
394
|
-
children:
|
|
393
|
+
}[!!c | 0],
|
|
394
|
+
children: [/* @__PURE__ */ C("div", {
|
|
395
|
+
className: "x98rzlu x2lwn1j x1odjw0f x1e4zzel",
|
|
396
|
+
children: t
|
|
397
|
+
}), u && /* @__PURE__ */ C("div", {
|
|
398
|
+
className: "x2lah0s x1a148e8",
|
|
399
|
+
children: /* @__PURE__ */ C("div", {
|
|
400
|
+
className: "x78zum5 x6s0dn4 xl56j7k x14j3e4g xnyqvp6",
|
|
401
|
+
children: n
|
|
402
|
+
})
|
|
403
|
+
})]
|
|
395
404
|
}),
|
|
396
|
-
/* @__PURE__ */
|
|
397
|
-
id:
|
|
405
|
+
/* @__PURE__ */ C("aside", {
|
|
406
|
+
id: _,
|
|
398
407
|
"aria-label": "Navigation",
|
|
399
|
-
hidden:
|
|
408
|
+
hidden: h,
|
|
400
409
|
...{
|
|
401
410
|
0: { className: "x9f619 x78zum5 x1ykma7f xdt5ytf xs1s249 x32b0ac xelkwwr xpvm0e4 x7wzq59 x13vifvy xtdtrs8 x68ju84 x2lah0s x2lwn1j xeuugli" },
|
|
402
411
|
4: { className: "x9f619 x78zum5 x1ykma7f xdt5ytf xs1s249 x32b0ac xelkwwr xpvm0e4 x7wzq59 x13vifvy xtdtrs8 x2lah0s x2lwn1j xeuugli xuqhkz3" },
|
|
@@ -406,91 +415,147 @@ function G({ rail: t, sidebarHeader: n, sidebar: r, footer: i, children: a, main
|
|
|
406
415
|
5: { className: "x9f619 xdt5ytf xs1s249 x32b0ac xelkwwr xpvm0e4 x7wzq59 x13vifvy xtdtrs8 x2lah0s x2lwn1j xeuugli xuqhkz3 x1s85apg" },
|
|
407
416
|
3: { className: "x9f619 xdt5ytf xs1s249 x32b0ac xelkwwr xpvm0e4 x7wzq59 x13vifvy xtdtrs8 x2lah0s x2lwn1j xeuugli x14j3e4g x1s85apg" },
|
|
408
417
|
7: { className: "x9f619 xdt5ytf xs1s249 x32b0ac xelkwwr xpvm0e4 x7wzq59 x13vifvy xtdtrs8 x2lah0s x2lwn1j xeuugli x14j3e4g x1s85apg" }
|
|
409
|
-
}[!!
|
|
410
|
-
children: /* @__PURE__ */
|
|
411
|
-
header:
|
|
412
|
-
footer:
|
|
413
|
-
children:
|
|
418
|
+
}[!!l << 2 | !(l || d) << 1 | !!h],
|
|
419
|
+
children: /* @__PURE__ */ C(F, {
|
|
420
|
+
header: r,
|
|
421
|
+
footer: a,
|
|
422
|
+
children: i
|
|
414
423
|
})
|
|
415
424
|
}),
|
|
416
|
-
/* @__PURE__ */
|
|
417
|
-
id:
|
|
425
|
+
/* @__PURE__ */ C("main", {
|
|
426
|
+
id: s,
|
|
418
427
|
tabIndex: -1,
|
|
419
428
|
className: "xeuugli x98rzlu",
|
|
420
|
-
children:
|
|
429
|
+
children: o
|
|
421
430
|
})
|
|
422
431
|
]
|
|
423
|
-
}), /* @__PURE__ */
|
|
424
|
-
handle:
|
|
425
|
-
open:
|
|
426
|
-
onOpenChange:
|
|
427
|
-
children: /* @__PURE__ */
|
|
428
|
-
ref:
|
|
429
|
-
xstyle:
|
|
432
|
+
}), /* @__PURE__ */ C(e.Root, {
|
|
433
|
+
handle: g,
|
|
434
|
+
open: p && !c,
|
|
435
|
+
onOpenChange: m,
|
|
436
|
+
children: /* @__PURE__ */ w(e.Portal, { children: [/* @__PURE__ */ C(e.Backdrop, {}), /* @__PURE__ */ C(e.Viewport, { children: /* @__PURE__ */ w(e.Popup, {
|
|
437
|
+
ref: D,
|
|
438
|
+
xstyle: G.drawer,
|
|
430
439
|
finalFocus: () => {
|
|
431
|
-
if (
|
|
432
|
-
|
|
433
|
-
let e = document.querySelector(`#${CSS.escape(
|
|
440
|
+
if (O.current) {
|
|
441
|
+
O.current = !1;
|
|
442
|
+
let e = document.querySelector(`#${CSS.escape(s)}`), t = document.activeElement;
|
|
434
443
|
if (t instanceof HTMLElement) {
|
|
435
444
|
let e = t.closest("[role=\"dialog\"], [role=\"alertdialog\"]");
|
|
436
|
-
if (e !== null && e !==
|
|
445
|
+
if (e !== null && e !== D.current) return t;
|
|
437
446
|
}
|
|
438
447
|
return t instanceof HTMLElement && e?.contains(t) === !0 ? t : e;
|
|
439
448
|
}
|
|
440
|
-
return globalThis.matchMedia(
|
|
449
|
+
return globalThis.matchMedia(j.sidebarDesktopQuery).matches ? T.current : E.current;
|
|
441
450
|
},
|
|
442
|
-
children: [/* @__PURE__ */
|
|
451
|
+
children: [/* @__PURE__ */ C(e.Title, {
|
|
443
452
|
isVisuallyHidden: !0,
|
|
444
453
|
children: "Navigation"
|
|
445
|
-
}), /* @__PURE__ */
|
|
446
|
-
header:
|
|
447
|
-
navigationHeader:
|
|
448
|
-
value:
|
|
454
|
+
}), /* @__PURE__ */ C(F, {
|
|
455
|
+
header: r,
|
|
456
|
+
navigationHeader: l && /* @__PURE__ */ C(H.Provider, {
|
|
457
|
+
value: "drawer",
|
|
449
458
|
children: t
|
|
450
459
|
}),
|
|
451
|
-
footer:
|
|
452
|
-
|
|
453
|
-
|
|
460
|
+
footer: /* @__PURE__ */ w(S, { children: [a, l && u && /* @__PURE__ */ C(H.Provider, {
|
|
461
|
+
value: "drawer",
|
|
462
|
+
children: /* @__PURE__ */ C("div", {
|
|
463
|
+
className: "x2lah0s x1a148e8",
|
|
464
|
+
children: /* @__PURE__ */ C("div", {
|
|
465
|
+
className: "x78zum5 x6s0dn4 xl56j7k x14j3e4g xnyqvp6",
|
|
466
|
+
children: n
|
|
467
|
+
})
|
|
468
|
+
})
|
|
469
|
+
})] }),
|
|
470
|
+
close: /* @__PURE__ */ C(ee, {}),
|
|
471
|
+
children: i
|
|
454
472
|
})]
|
|
455
473
|
}) })] })
|
|
456
474
|
})]
|
|
457
475
|
});
|
|
458
476
|
}
|
|
477
|
+
// packages/layout/src/navigation-rail-menu.tsx
|
|
478
|
+
var q = {
|
|
479
|
+
rail: {
|
|
480
|
+
side: "right",
|
|
481
|
+
align: "end"
|
|
482
|
+
},
|
|
483
|
+
drawer: {
|
|
484
|
+
side: "top",
|
|
485
|
+
align: "start"
|
|
486
|
+
}
|
|
487
|
+
};
|
|
488
|
+
function J({ label: e, icon: r, children: i }) {
|
|
489
|
+
let a = _(H), [o, s] = x(!1);
|
|
490
|
+
return v(() => {
|
|
491
|
+
let e = globalThis.matchMedia(j.sidebarDesktopQuery);
|
|
492
|
+
function t() {
|
|
493
|
+
s(!1);
|
|
494
|
+
}
|
|
495
|
+
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
|
|
496
|
+
}, []), /* @__PURE__ */ w(t.Root, {
|
|
497
|
+
open: o,
|
|
498
|
+
onOpenChange: s,
|
|
499
|
+
modal: !1,
|
|
500
|
+
children: [/* @__PURE__ */ C(n.Provider, { children: /* @__PURE__ */ w(n.Root, {
|
|
501
|
+
disabled: o || a === "drawer",
|
|
502
|
+
children: [/* @__PURE__ */ C(n.Trigger, {
|
|
503
|
+
render: /* @__PURE__ */ C(t.Trigger, { render: /* @__PURE__ */ C(l, {
|
|
504
|
+
variant: "ghost",
|
|
505
|
+
"aria-label": e
|
|
506
|
+
}) }),
|
|
507
|
+
children: r
|
|
508
|
+
}), /* @__PURE__ */ C(n.Portal, { children: /* @__PURE__ */ C(n.Positioner, {
|
|
509
|
+
side: "right",
|
|
510
|
+
children: /* @__PURE__ */ C(n.Popup, { children: e })
|
|
511
|
+
}) })]
|
|
512
|
+
}) }), /* @__PURE__ */ C(t.Portal, { children: /* @__PURE__ */ C(t.Positioner, {
|
|
513
|
+
...q[a],
|
|
514
|
+
sideOffset: 4,
|
|
515
|
+
collisionPadding: 8,
|
|
516
|
+
children: /* @__PURE__ */ C(t.Popup, {
|
|
517
|
+
"aria-label": e,
|
|
518
|
+
className: "x1uncgzr",
|
|
519
|
+
children: i
|
|
520
|
+
})
|
|
521
|
+
}) })]
|
|
522
|
+
});
|
|
523
|
+
}
|
|
459
524
|
// packages/layout/src/detail-page.tsx
|
|
460
|
-
function
|
|
461
|
-
return /* @__PURE__ */
|
|
525
|
+
function Y({ children: e }) {
|
|
526
|
+
return /* @__PURE__ */ C("div", {
|
|
462
527
|
className: "x9f619 x13na7z x96idz6 x9g60mw xeuugli xvueqy4 xnjsko4 x10gdey3 x14y0u4g x1foqgtu x1uwsqpk x14oio8y",
|
|
463
528
|
children: e
|
|
464
529
|
});
|
|
465
530
|
}
|
|
466
531
|
// packages/layout/src/focus-page.tsx
|
|
467
|
-
function
|
|
468
|
-
return /* @__PURE__ */
|
|
532
|
+
function X({ children: e }) {
|
|
533
|
+
return /* @__PURE__ */ C("main", {
|
|
469
534
|
id: "main",
|
|
470
535
|
tabIndex: -1,
|
|
471
536
|
className: "x9f619 x1ov3xa9 xeuugli xrvj5dj x1ku5rj1 x1jvlu93 xpvm0e4 xbixft x1hz01jw xtqrqnz x1778rvt xvmahel",
|
|
472
|
-
children: /* @__PURE__ */
|
|
537
|
+
children: /* @__PURE__ */ C("div", {
|
|
473
538
|
className: "xh8yej3 xxc7z9f xeuugli xrvj5dj x1mkdm3x x1j825kq",
|
|
474
539
|
children: e
|
|
475
540
|
})
|
|
476
541
|
});
|
|
477
542
|
}
|
|
478
543
|
// packages/layout/src/workbench.tsx
|
|
479
|
-
function
|
|
480
|
-
return /* @__PURE__ */
|
|
544
|
+
function Z({ header: e, children: t, inspector: n }) {
|
|
545
|
+
return /* @__PURE__ */ w("div", {
|
|
481
546
|
className: "x78zum5 xdt5ytf x1r09gfs xeuugli x2lwn1j x12h1iku x1a75771 xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel",
|
|
482
|
-
children: [e != null && /* @__PURE__ */
|
|
547
|
+
children: [e != null && /* @__PURE__ */ C("div", {
|
|
483
548
|
className: "xeuugli x2lah0s x1ydxw8w xnx3t7k xso031l x1q0q8m5 x1qndepd",
|
|
484
549
|
children: e
|
|
485
|
-
}), /* @__PURE__ */
|
|
550
|
+
}), /* @__PURE__ */ w("div", {
|
|
486
551
|
className: "x78zum5 x98rzlu xeuugli x2lwn1j x7giv3",
|
|
487
|
-
children: [/* @__PURE__ */
|
|
552
|
+
children: [/* @__PURE__ */ C("div", {
|
|
488
553
|
...{
|
|
489
554
|
0: { className: "x1n2onr6 x78zum5 x98rzlu xdt5ytf xeuugli x2lwn1j" },
|
|
490
555
|
1: { className: "x1n2onr6 x98rzlu xdt5ytf xeuugli x2lwn1j x78zum5 x152g2jv" }
|
|
491
556
|
}[n !== void 0 | 0],
|
|
492
557
|
children: t
|
|
493
|
-
}), n !== void 0 && /* @__PURE__ */
|
|
558
|
+
}), n !== void 0 && /* @__PURE__ */ C("aside", {
|
|
494
559
|
"aria-label": n.label,
|
|
495
560
|
className: "x9f619 x1peuizl x1vx4hiz xeuugli x2lah0s x1odjw0f x1c8xbx5 xpvm0e4 xe0pwq xs311s2 x19ypqd9 x1l3ounx",
|
|
496
561
|
children: n.content
|
|
@@ -498,9 +563,9 @@ function ne({ header: e, children: t, inspector: n }) {
|
|
|
498
563
|
})]
|
|
499
564
|
});
|
|
500
565
|
}
|
|
501
|
-
function
|
|
502
|
-
let i =
|
|
503
|
-
return /* @__PURE__ */
|
|
566
|
+
function ne({ label: e, children: t, isFlush: n = !1, scrollRestorationId: r }) {
|
|
567
|
+
let i = d();
|
|
568
|
+
return /* @__PURE__ */ C("div", {
|
|
504
569
|
ref: i.ref,
|
|
505
570
|
role: "region",
|
|
506
571
|
"aria-label": e,
|
|
@@ -513,21 +578,21 @@ function J({ label: e, children: t, isFlush: n = !1, scrollRestorationId: r }) {
|
|
|
513
578
|
children: t
|
|
514
579
|
});
|
|
515
580
|
}
|
|
516
|
-
function
|
|
517
|
-
return /* @__PURE__ */
|
|
581
|
+
function re({ children: e }) {
|
|
582
|
+
return /* @__PURE__ */ C("div", {
|
|
518
583
|
className: "x2lah0s x1c8xbx5 x178xt8z x13fuv20 xhjagg4 xpvm0e4",
|
|
519
584
|
children: e
|
|
520
585
|
});
|
|
521
586
|
}
|
|
522
587
|
// packages/layout/src/view-stack.tsx
|
|
523
|
-
function
|
|
524
|
-
return /* @__PURE__ */
|
|
588
|
+
function ie({ children: e }) {
|
|
589
|
+
return /* @__PURE__ */ C("div", {
|
|
525
590
|
className: "x1n2onr6 x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j",
|
|
526
591
|
children: e
|
|
527
592
|
});
|
|
528
593
|
}
|
|
529
|
-
function
|
|
530
|
-
return /* @__PURE__ */
|
|
594
|
+
function ae({ isActive: e, children: t }) {
|
|
595
|
+
return /* @__PURE__ */ C("section", {
|
|
531
596
|
"aria-hidden": !e,
|
|
532
597
|
inert: !e,
|
|
533
598
|
...{
|
|
@@ -537,62 +602,62 @@ function Z({ isActive: e, children: t }) {
|
|
|
537
602
|
children: t
|
|
538
603
|
});
|
|
539
604
|
}
|
|
540
|
-
var
|
|
541
|
-
Root:
|
|
542
|
-
Panel:
|
|
543
|
-
},
|
|
605
|
+
var oe = {
|
|
606
|
+
Root: ie,
|
|
607
|
+
Panel: ae
|
|
608
|
+
}, se = { action: {
|
|
544
609
|
k7Eaqz: "xeuugli",
|
|
545
610
|
ks0D6T: "x193iq5w",
|
|
546
611
|
$$css: !0
|
|
547
612
|
} };
|
|
548
613
|
function Q({ title: e, actions: t, showBreadcrumb: n = !1, showNavigation: r = !0, views: i, leading: a }) {
|
|
549
|
-
let o =
|
|
550
|
-
return
|
|
614
|
+
let o = h.toArray(e).length > 0, s = h.toArray(t).length > 0, c = h.toArray(i).length > 0, l = h.toArray(a).length > 0;
|
|
615
|
+
return h.toArray([
|
|
551
616
|
e,
|
|
552
617
|
t,
|
|
553
618
|
i,
|
|
554
619
|
a
|
|
555
|
-
]).length === 0 ? null : /* @__PURE__ */
|
|
620
|
+
]).length === 0 ? null : /* @__PURE__ */ w("div", {
|
|
556
621
|
className: "x9f619 x78zum5 x12h1iku x14ut1dr x1qjc9v5 xnyqvp6 x2lah0s xso031l x1q0q8m5 x1qndepd xpvm0e4 xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xeuugli",
|
|
557
622
|
children: [
|
|
558
|
-
l ? /* @__PURE__ */
|
|
623
|
+
l ? /* @__PURE__ */ C("div", {
|
|
559
624
|
className: "x78zum5 x6s0dn4 xyibt8p x2lah0s",
|
|
560
625
|
children: a
|
|
561
|
-
}) : r && /* @__PURE__ */
|
|
562
|
-
o && /* @__PURE__ */
|
|
626
|
+
}) : r && /* @__PURE__ */ C(V, {}),
|
|
627
|
+
o && /* @__PURE__ */ C(n ? "nav" : "h1", {
|
|
563
628
|
tabIndex: n ? void 0 : -1,
|
|
564
629
|
"aria-label": n ? "Breadcrumb" : void 0,
|
|
565
630
|
className: "x78zum5 x6s0dn4 x1hnptsi x1dc62k6 xeuugli xs83m0k x1ghz6dp x1qlqyl8 xj57cvi x1t137rt",
|
|
566
|
-
children: /* @__PURE__ */
|
|
631
|
+
children: /* @__PURE__ */ C("span", {
|
|
567
632
|
className: "xeuugli xb3r6kr xlyipyv xuxw1ft",
|
|
568
633
|
children: e
|
|
569
634
|
})
|
|
570
635
|
}),
|
|
571
|
-
c && /* @__PURE__ */
|
|
636
|
+
c && /* @__PURE__ */ C("div", {
|
|
572
637
|
className: "x78zum5 x6s0dn4 xeuugli x2lah0s",
|
|
573
638
|
children: i
|
|
574
639
|
}),
|
|
575
|
-
s && /* @__PURE__ */
|
|
640
|
+
s && /* @__PURE__ */ C("div", {
|
|
576
641
|
className: "x78zum5 x6s0dn4 xunmzkg x1dc62k6 xeuugli x2lah0s x8x9d4c",
|
|
577
642
|
children: t
|
|
578
643
|
})
|
|
579
644
|
]
|
|
580
645
|
});
|
|
581
646
|
}
|
|
582
|
-
function
|
|
647
|
+
function ce({ icon: e, children: t, ...n }) {
|
|
583
648
|
let i = e != null;
|
|
584
|
-
return /* @__PURE__ */
|
|
649
|
+
return /* @__PURE__ */ C("div", {
|
|
585
650
|
className: "x9f619 x78zum5 x1qjc9v5 xeuugli",
|
|
586
|
-
children: /* @__PURE__ */
|
|
587
|
-
...
|
|
651
|
+
children: /* @__PURE__ */ w(r, {
|
|
652
|
+
...n,
|
|
588
653
|
variant: "ghost",
|
|
589
|
-
"aria-label":
|
|
590
|
-
xstyle:
|
|
591
|
-
children: [i && /* @__PURE__ */
|
|
654
|
+
"aria-label": n["aria-label"] ?? (typeof t == "string" ? t : void 0),
|
|
655
|
+
xstyle: se.action,
|
|
656
|
+
children: [i && /* @__PURE__ */ C("span", {
|
|
592
657
|
"aria-hidden": !0,
|
|
593
658
|
className: "x3nfvp2 x2lah0s x6s0dn4",
|
|
594
659
|
children: e
|
|
595
|
-
}), i || typeof t == "string" ? /* @__PURE__ */
|
|
660
|
+
}), i || typeof t == "string" ? /* @__PURE__ */ C("span", {
|
|
596
661
|
...{
|
|
597
662
|
0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
|
|
598
663
|
1: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft xt0psk2 xlllsrz" }
|
|
@@ -603,32 +668,32 @@ function ae({ icon: e, children: t, ...r }) {
|
|
|
603
668
|
});
|
|
604
669
|
}
|
|
605
670
|
// packages/layout/src/page-content.tsx
|
|
606
|
-
function
|
|
607
|
-
return /* @__PURE__ */
|
|
671
|
+
function le({ children: e }) {
|
|
672
|
+
return /* @__PURE__ */ C("div", {
|
|
608
673
|
className: "x9f619 x78zum5 xdt5ytf xdz4d12 xeuugli xg7ukam",
|
|
609
674
|
children: e
|
|
610
675
|
});
|
|
611
676
|
}
|
|
612
677
|
// packages/layout/src/report-section.tsx
|
|
613
|
-
function
|
|
614
|
-
return /* @__PURE__ */
|
|
678
|
+
function ue({ summary: e, children: t }) {
|
|
679
|
+
return /* @__PURE__ */ w(c, {
|
|
615
680
|
isCompact: !0,
|
|
616
681
|
children: [e, t]
|
|
617
682
|
});
|
|
618
683
|
}
|
|
619
684
|
// packages/layout/src/record-page.tsx
|
|
620
|
-
function
|
|
621
|
-
return /* @__PURE__ */
|
|
685
|
+
function de({ children: e }) {
|
|
686
|
+
return /* @__PURE__ */ C("div", {
|
|
622
687
|
className: "x78zum5 xdt5ytf xeuugli xbixft x1hz01jw xtqrqnz x1778rvt xvmahel",
|
|
623
688
|
children: e
|
|
624
689
|
});
|
|
625
690
|
}
|
|
626
|
-
function
|
|
627
|
-
return /* @__PURE__ */
|
|
691
|
+
function fe({ backLabel: e, backHref: t, onBack: n, actions: r, showNavigation: i = !0 }) {
|
|
692
|
+
return /* @__PURE__ */ C(Q, {
|
|
628
693
|
showBreadcrumb: !0,
|
|
629
694
|
showNavigation: i,
|
|
630
695
|
actions: r,
|
|
631
|
-
title: /* @__PURE__ */
|
|
696
|
+
title: /* @__PURE__ */ w("a", {
|
|
632
697
|
href: t,
|
|
633
698
|
className: "x3nfvp2 x6s0dn4 x1hnptsi xid9utz xeuugli x193iq5w xbixft xkrqix3 x5638nf x13qnu6 x9v5kkp x19rmrnh x1bqaal",
|
|
634
699
|
onClick: (e) => {
|
|
@@ -636,65 +701,65 @@ function le({ backLabel: e, backHref: t, onBack: n, actions: r, showNavigation:
|
|
|
636
701
|
let t = e.metaKey || e.ctrlKey, r = e.shiftKey || e.altKey;
|
|
637
702
|
t || r || (e.preventDefault(), n());
|
|
638
703
|
},
|
|
639
|
-
children: [/* @__PURE__ */
|
|
704
|
+
children: [/* @__PURE__ */ C(T, {
|
|
640
705
|
size: 16,
|
|
641
706
|
"aria-hidden": !0,
|
|
642
707
|
className: "x2lah0s"
|
|
643
|
-
}), /* @__PURE__ */
|
|
708
|
+
}), /* @__PURE__ */ C("span", {
|
|
644
709
|
className: "xeuugli xb3r6kr xlyipyv xuxw1ft",
|
|
645
710
|
children: e
|
|
646
711
|
})]
|
|
647
712
|
})
|
|
648
713
|
});
|
|
649
714
|
}
|
|
650
|
-
function
|
|
651
|
-
return /* @__PURE__ */
|
|
715
|
+
function pe({ children: e }) {
|
|
716
|
+
return /* @__PURE__ */ C(Y, { children: /* @__PURE__ */ C("div", {
|
|
652
717
|
className: "x78zum5 x1a02dak x1cy8zhl xdz4d12 xeuugli",
|
|
653
718
|
children: e
|
|
654
719
|
}) });
|
|
655
720
|
}
|
|
656
|
-
function
|
|
657
|
-
return /* @__PURE__ */
|
|
721
|
+
function $({ children: e }) {
|
|
722
|
+
return /* @__PURE__ */ C("div", {
|
|
658
723
|
className: "x78zum5 xdt5ytf x1ewej1i x1iyjqo2 xdz4d12 xeuugli",
|
|
659
724
|
children: e
|
|
660
725
|
});
|
|
661
726
|
}
|
|
662
|
-
function
|
|
663
|
-
return /* @__PURE__ */
|
|
727
|
+
function me({ title: e, description: t, icon: n, titleRef: r }) {
|
|
728
|
+
return /* @__PURE__ */ w("header", {
|
|
664
729
|
className: "xrvj5dj x1n8ia3y xeuugli",
|
|
665
|
-
children: [/* @__PURE__ */
|
|
730
|
+
children: [/* @__PURE__ */ w("div", {
|
|
666
731
|
className: "x78zum5 x6s0dn4 x1n8ia3y xeuugli",
|
|
667
|
-
children: [n != null && /* @__PURE__ */
|
|
732
|
+
children: [n != null && /* @__PURE__ */ C("span", {
|
|
668
733
|
"aria-hidden": !0,
|
|
669
734
|
className: "x3nfvp2 x6s0dn4 x2lah0s",
|
|
670
735
|
children: n
|
|
671
|
-
}), /* @__PURE__ */
|
|
736
|
+
}), /* @__PURE__ */ C(s, {
|
|
672
737
|
ref: r,
|
|
673
738
|
tabIndex: -1,
|
|
674
739
|
className: "xeuugli x1t137rt",
|
|
675
740
|
children: e
|
|
676
741
|
})]
|
|
677
|
-
}), t != null && /* @__PURE__ */
|
|
742
|
+
}), t != null && /* @__PURE__ */ C(o, { children: t })]
|
|
678
743
|
});
|
|
679
744
|
}
|
|
680
|
-
function
|
|
681
|
-
return /* @__PURE__ */
|
|
745
|
+
function he({ children: e, label: t = "Properties" }) {
|
|
746
|
+
return /* @__PURE__ */ C("aside", {
|
|
682
747
|
"aria-label": t,
|
|
683
748
|
className: "x78zum5 xdt5ytf x1irul0l x1iyjqo2 x1j825kq xeuugli",
|
|
684
749
|
children: e
|
|
685
750
|
});
|
|
686
751
|
}
|
|
687
|
-
var
|
|
688
|
-
Root:
|
|
689
|
-
Toolbar:
|
|
690
|
-
Body:
|
|
691
|
-
Content:
|
|
692
|
-
Header:
|
|
693
|
-
Aside:
|
|
752
|
+
var ge = {
|
|
753
|
+
Root: de,
|
|
754
|
+
Toolbar: fe,
|
|
755
|
+
Body: pe,
|
|
756
|
+
Content: $,
|
|
757
|
+
Header: me,
|
|
758
|
+
Aside: he
|
|
694
759
|
};
|
|
695
760
|
// packages/layout/src/resizable.tsx
|
|
696
|
-
function
|
|
697
|
-
return /* @__PURE__ */
|
|
761
|
+
function _e({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n, disabled: r, ref: i, ...a }) {
|
|
762
|
+
return /* @__PURE__ */ C(O, {
|
|
698
763
|
orientation: e,
|
|
699
764
|
defaultLayout: t,
|
|
700
765
|
onLayoutChanged: (e, t) => {
|
|
@@ -706,29 +771,29 @@ function me({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n,
|
|
|
706
771
|
coarse: 44,
|
|
707
772
|
fine: 12
|
|
708
773
|
},
|
|
709
|
-
...
|
|
774
|
+
...p({ className: "xeuugli x2lwn1j xh8yej3 x5yr21d" }, a)
|
|
710
775
|
});
|
|
711
776
|
}
|
|
712
|
-
function
|
|
713
|
-
return /* @__PURE__ */
|
|
777
|
+
function ve({ id: e, initialSizePercent: t, minimumSizePercent: n = 10, maximumSizePercent: r = 100, canCollapse: i = !1, ref: a, ...o }) {
|
|
778
|
+
return /* @__PURE__ */ C(k, {
|
|
714
779
|
id: e,
|
|
715
780
|
defaultSize: t === void 0 ? void 0 : `${t}%`,
|
|
716
781
|
minSize: `${n}%`,
|
|
717
782
|
maxSize: `${r}%`,
|
|
718
783
|
collapsible: i,
|
|
719
784
|
elementRef: a,
|
|
720
|
-
...
|
|
785
|
+
...p({ className: "xeuugli x2lwn1j xysyzu8" }, o)
|
|
721
786
|
});
|
|
722
787
|
}
|
|
723
|
-
function
|
|
724
|
-
return /* @__PURE__ */
|
|
788
|
+
function ye({ ref: e, ...t }) {
|
|
789
|
+
return /* @__PURE__ */ C(A, {
|
|
725
790
|
elementRef: e,
|
|
726
|
-
...
|
|
791
|
+
...p({ className: "x1fa40ue x1i1rx1s xgc0pbm xir5lan xfaai28 x1rbdpqn x8wp5i9 x13qnu6 x9v5kkp x19rmrnh x13iak60" }, t)
|
|
727
792
|
});
|
|
728
793
|
}
|
|
729
|
-
var
|
|
730
|
-
Root:
|
|
731
|
-
Pane:
|
|
732
|
-
Handle:
|
|
794
|
+
var be = {
|
|
795
|
+
Root: _e,
|
|
796
|
+
Pane: ve,
|
|
797
|
+
Handle: ye
|
|
733
798
|
};
|
|
734
|
-
export {
|
|
799
|
+
export { K as AppShell, Y as DetailPage, X as FocusPage, te as Navigation, L as NavigationItem, R as NavigationLink, W as NavigationRail, J as NavigationRailMenu, I as NavigationSection, le as PageContent, Q as PageToolbar, ge as RecordPage, ue as ReportSection, be as Resizable, B as SidebarFooter, z as SidebarLabel, ce as ToolbarAction, oe as ViewStack, Z as Workbench, re as WorkbenchFooter, ne as WorkbenchScroll };
|