@mechane-ai/elements 0.55.0 → 0.57.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/dist/ai.js +1 -1
- package/dist/{article-DPDk0Xgp.js → article-COShcQPh.js} +1 -1
- package/dist/article.js +1 -1
- package/dist/catalog.json +9 -1
- package/dist/{categorical-values-CGavb4HZ.js → categorical-values-DdZLdWhL.js} +1 -1
- package/dist/charts/cartesian.js +1 -1
- package/dist/charts/comparison.js +1 -1
- package/dist/charts/distribution.js +1 -1
- package/dist/charts/figure.js +12 -12
- package/dist/charts/graph.js +1 -1
- package/dist/charts/hierarchy.js +1 -1
- package/dist/charts/image.js +1 -1
- package/dist/charts/matrix.js +1 -1
- package/dist/charts/plot.js +3 -3
- package/dist/charts/relationship.js +1 -1
- package/dist/charts/text.js +1 -1
- package/dist/charts/timeline.js +1 -1
- package/dist/charts/trend.js +1 -1
- package/dist/charts.js +2 -2
- package/dist/collections.js +1 -1
- package/dist/commands-D0bF2JxV.js +107 -0
- package/dist/{dumbbell-plot-DJOyXW7m.js → dumbbell-plot-BeHhL-01.js} +3 -3
- package/dist/{embedding-map-BSlNwXs2.js → embedding-map-DbETVJXp.js} +3 -3
- package/dist/feedback.js +1 -1
- package/dist/{figure-frame-C2hCrRX4.js → figure-frame-ClYRIRAq.js} +2 -2
- package/dist/{image-grid-D0Xk_KNk.js → image-grid-DB5U7Jtx.js} +2 -2
- package/dist/kits/evaluation.js +4 -4
- package/dist/kits/interpretability.js +8 -8
- package/dist/kits/operations.js +5 -5
- package/dist/kits/research.js +5 -5
- package/dist/kits/training.js +4 -4
- package/dist/layout.js +1 -1
- package/dist/mdx.js +2 -2
- package/dist/navigation/commands.js +1 -95
- package/dist/packages/charts/src/timeline/event-strip.d.ts +2 -0
- package/dist/packages/layout/src/app-shell.d.ts +2 -1
- package/dist/packages/layout/src/devtools-bar.d.ts +9 -0
- package/dist/packages/layout/src/index.d.ts +1 -0
- package/dist/packages/layout/src/shell-bottom-bar.d.ts +4 -0
- package/dist/packages/navigation/src/commands/command.d.ts +1 -0
- package/dist/{plot-layout-PBlcYu9p.js → plot-layout-B-b6tioh.js} +1 -1
- package/dist/{plot-surface-CdqANDC1.js → plot-surface-BlR44uTL.js} +1 -1
- package/dist/{reference-lines-Cdrs0B3S.js → reference-lines-BDfsv8dy.js} +1 -1
- package/dist/{scene-CcJb3zcs.js → scene-CY05-A1k.js} +4 -4
- package/dist/scene.js +1 -1
- package/dist/{slope-chart-CagCaJYG.js → slope-chart-DTyF1lNG.js} +4 -4
- package/dist/{src-LEom7AhF.js → src-4qgpiWvP.js} +1 -1
- package/dist/{src-Bg4eyJZO.js → src-C-Wg9m9H.js} +2 -1
- package/dist/{src-DhWMspwr.js → src-Cuwx-PLT.js} +371 -282
- package/dist/styles2.css +33 -1
- package/dist/{time-series-g4trCNxp.js → time-series-CoAtNizi.js} +6 -6
- package/dist/{token-heatmap-CgJNUXJH.js → token-heatmap-o_9l6vaq.js} +2 -2
- package/dist/{token-predictions-BMVVfAL3.js → token-predictions-DaAztlOS.js} +3 -3
- package/dist/{tree-diagram-BHLewHQl.js → tree-diagram-BDj4TGXb.js} +3 -3
- package/dist/{treemap-n3Er3k6e.js → treemap-DUSFlCPK.js} +4 -4
- package/dist/{violin-plot-qCMn4e1I.js → violin-plot-ULdC_dcY.js} +3 -3
- package/dist/waterfall-BjUXqaWu.js +615 -0
- package/package.json +1 -1
- package/skills/use-elements/references/workspace.md +6 -0
- package/dist/waterfall-ChExGsn8.js +0 -605
|
@@ -3,22 +3,23 @@ import { t as c } from "./use-scroll-tab-index-Dxpdh4W7.js";
|
|
|
3
3
|
import { a as l, i as u } from "./src-Ci8DeY8J.js";
|
|
4
4
|
import { n as d } from "./accessibility-P89UG9-r.js";
|
|
5
5
|
import { a as f, i as p, t as m } from "./src-na2DdkKI.js";
|
|
6
|
-
import { r as h } from "./
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
6
|
+
import { r as h } from "./commands-D0bF2JxV.js";
|
|
7
|
+
import { r as g } from "./control-styles-D3q_Qyxi.js";
|
|
8
|
+
import * as _ from "@stylexjs/stylex";
|
|
9
|
+
import { Button as v } from "@ui-sdk/react/button";
|
|
10
|
+
import { createParts as y, mergeProps as b } from "@ui-sdk/react/primitive";
|
|
11
|
+
import { Children as x, createContext as S, useContext as C, useEffect as w, useId as T, useLayoutEffect as E, useRef as D, useState as O } from "react";
|
|
12
|
+
import { definePrimitive as k } from "@ui-sdk/core";
|
|
13
|
+
import { Fragment as A, jsx as j, jsxs as M } from "react/jsx-runtime";
|
|
14
|
+
import { ArrowLeft as ee, PanelLeft as N, X as te } from "lucide-react";
|
|
14
15
|
import { Resizable as ne, ResizableHandle as re, ResizablePanel as ie } from "@ui-sdk/react/resizable";
|
|
15
16
|
// packages/layout/src/page-content.tsx
|
|
16
|
-
var
|
|
17
|
-
function
|
|
18
|
-
let t =
|
|
19
|
-
return /* @__PURE__ */
|
|
17
|
+
var P = S(!1);
|
|
18
|
+
function F({ children: e }) {
|
|
19
|
+
let t = C(P);
|
|
20
|
+
return /* @__PURE__ */ j(P, {
|
|
20
21
|
value: !0,
|
|
21
|
-
children: /* @__PURE__ */
|
|
22
|
+
children: /* @__PURE__ */ j("div", {
|
|
22
23
|
...{
|
|
23
24
|
0: { className: "x9f619 x78zum5 xdt5ytf xdz4d12 xeuugli xg7ukam" },
|
|
24
25
|
1: { className: "x9f619 x78zum5 xdt5ytf xdz4d12 xeuugli x1717udv" }
|
|
@@ -28,19 +29,19 @@ function N({ children: e }) {
|
|
|
28
29
|
});
|
|
29
30
|
}
|
|
30
31
|
// packages/layout/src/page-context.tsx
|
|
31
|
-
var ae =
|
|
32
|
+
var ae = k({
|
|
32
33
|
name: "page-title",
|
|
33
34
|
state: () => ({}),
|
|
34
35
|
api: () => ({}),
|
|
35
36
|
agent: { actions: [] },
|
|
36
37
|
slots: (e) => ({ root: e({}) })
|
|
37
|
-
}),
|
|
38
|
+
}), I = y(ae, { root: "h1" }).Root;
|
|
38
39
|
function oe({ section: e }) {
|
|
39
40
|
if (e === null) return !1;
|
|
40
41
|
let t = e.closest("[data-page-viewport]"), n = Math.max(0, t?.getBoundingClientRect().top ?? 0), r = e.getBoundingClientRect();
|
|
41
42
|
return r.top <= n && r.bottom > n;
|
|
42
43
|
}
|
|
43
|
-
var se =
|
|
44
|
+
var se = k({
|
|
44
45
|
name: "page-section",
|
|
45
46
|
state: () => ({ section: null }),
|
|
46
47
|
api: () => ({}),
|
|
@@ -51,14 +52,14 @@ var se = D({
|
|
|
51
52
|
slots: (e) => ({ root: e({ bind(e, { store: t }) {
|
|
52
53
|
t.set({ section: e });
|
|
53
54
|
} }) })
|
|
54
|
-
}), ce =
|
|
55
|
+
}), ce = y(se, { root: "section" }).Root, L = {
|
|
55
56
|
sidebarMobile: "@media (max-width:800px)",
|
|
56
57
|
sidebarDesktopQuery: "(min-width:801px)",
|
|
57
58
|
sidebarCoarse: "@media (min-width:801px) and (pointer: coarse)",
|
|
58
59
|
detailMobile: "@media (max-width:720px)",
|
|
59
60
|
toolbarCompact: "@container toolbar (max-width:600px)",
|
|
60
61
|
workbenchCompact: "@container workbench (max-width:860px)"
|
|
61
|
-
},
|
|
62
|
+
}, R = S(null), z = {
|
|
62
63
|
header: {
|
|
63
64
|
kB7OPa: "x9f619",
|
|
64
65
|
kVAEAm: "x1n2onr6",
|
|
@@ -123,15 +124,15 @@ var se = D({
|
|
|
123
124
|
$$css: !0
|
|
124
125
|
}
|
|
125
126
|
}, le = {
|
|
126
|
-
inline:
|
|
127
|
-
navigation:
|
|
127
|
+
inline: z.inlineFooter,
|
|
128
|
+
navigation: z.navigationFooter
|
|
128
129
|
};
|
|
129
|
-
function
|
|
130
|
-
let a =
|
|
131
|
-
return /* @__PURE__ */ A
|
|
132
|
-
/* @__PURE__ */
|
|
133
|
-
...
|
|
134
|
-
children: [/* @__PURE__ */
|
|
130
|
+
function B({ header: e, navigationHeader: t, footer: n, close: r, children: i }) {
|
|
131
|
+
let a = C(R), o = a !== null && !a.isExpanded, c = e != null;
|
|
132
|
+
return /* @__PURE__ */ M(A, { children: [
|
|
133
|
+
/* @__PURE__ */ M("div", {
|
|
134
|
+
..._.props(z.header, s.blockEnd, !c && z.emptyHeader),
|
|
135
|
+
children: [/* @__PURE__ */ j("div", {
|
|
135
136
|
...{
|
|
136
137
|
0: { className: "x78zum5 x6s0dn4 x98rzlu xeuugli x1dc62k6" },
|
|
137
138
|
1: { className: "x78zum5 x6s0dn4 x98rzlu xeuugli xl56j7k x1l31gyv xnjsko4 x7qzpmf" }
|
|
@@ -140,27 +141,27 @@ function R({ header: e, navigationHeader: t, footer: n, close: r, children: i })
|
|
|
140
141
|
}), r]
|
|
141
142
|
}),
|
|
142
143
|
t,
|
|
143
|
-
/* @__PURE__ */
|
|
144
|
+
/* @__PURE__ */ j("div", {
|
|
144
145
|
role: "region",
|
|
145
146
|
"aria-label": "Navigation links",
|
|
146
147
|
className: "x98rzlu x2lwn1j x1odjw0f xish69e x1t137rt x7d1sxj x13qnu6 x9v5kkp x19rmrnh x1bqaal",
|
|
147
148
|
children: i
|
|
148
149
|
}),
|
|
149
|
-
n != null && /* @__PURE__ */
|
|
150
|
+
n != null && /* @__PURE__ */ j("div", {
|
|
150
151
|
className: "x2lah0s xeuugli xr1yuqi xpvm0e4 x153jb6y",
|
|
151
152
|
children: n
|
|
152
153
|
})
|
|
153
154
|
] });
|
|
154
155
|
}
|
|
155
156
|
function ue() {
|
|
156
|
-
return /* @__PURE__ */
|
|
157
|
+
return /* @__PURE__ */ j("div", {
|
|
157
158
|
className: "x78zum5 x6s0dn4 xl56j7k x14j3e4g x2lah0s",
|
|
158
|
-
children: /* @__PURE__ */
|
|
159
|
-
render: /* @__PURE__ */
|
|
159
|
+
children: /* @__PURE__ */ j(f.Close, {
|
|
160
|
+
render: /* @__PURE__ */ j(e, {
|
|
160
161
|
variant: "ghost",
|
|
161
162
|
"aria-label": "Close navigation"
|
|
162
163
|
}),
|
|
163
|
-
children: /* @__PURE__ */
|
|
164
|
+
children: /* @__PURE__ */ j(te, {
|
|
164
165
|
size: 16,
|
|
165
166
|
"aria-hidden": !0
|
|
166
167
|
})
|
|
@@ -168,8 +169,8 @@ function ue() {
|
|
|
168
169
|
});
|
|
169
170
|
}
|
|
170
171
|
function de({ children: e, label: t = "Main" }) {
|
|
171
|
-
let n =
|
|
172
|
-
return /* @__PURE__ */
|
|
172
|
+
let n = C(R), r = n !== null && !n.isExpanded;
|
|
173
|
+
return /* @__PURE__ */ j("nav", {
|
|
173
174
|
"aria-label": t,
|
|
174
175
|
...{
|
|
175
176
|
0: { className: "x78zum5 xdt5ytf xksvo5r" },
|
|
@@ -179,11 +180,11 @@ function de({ children: e, label: t = "Main" }) {
|
|
|
179
180
|
});
|
|
180
181
|
}
|
|
181
182
|
function fe({ children: e, label: t }) {
|
|
182
|
-
let n =
|
|
183
|
-
return /* @__PURE__ */
|
|
183
|
+
let n = C(R), r = n !== null && !n.isExpanded, i = T();
|
|
184
|
+
return /* @__PURE__ */ M("section", {
|
|
184
185
|
"aria-labelledby": i,
|
|
185
186
|
className: "xeuugli",
|
|
186
|
-
children: [/* @__PURE__ */
|
|
187
|
+
children: [/* @__PURE__ */ j("div", {
|
|
187
188
|
id: i,
|
|
188
189
|
...{
|
|
189
190
|
0: { className: "xeuugli xmblgzg xngumbj xksvo5r x153jb6y x1hz01jw xy8obcc xas2l8k xk4h15q xj0a0fe" },
|
|
@@ -194,13 +195,13 @@ function fe({ children: e, label: t }) {
|
|
|
194
195
|
});
|
|
195
196
|
}
|
|
196
197
|
function pe({ children: e, icon: t, isSelected: n = !1, shouldCloseOnActivate: r = !0, onClick: i, className: a, style: o, ...s }) {
|
|
197
|
-
let c =
|
|
198
|
-
return /* @__PURE__ */
|
|
198
|
+
let c = C(R), l = T(), u = c !== null && !c.isExpanded;
|
|
199
|
+
return /* @__PURE__ */ j("div", {
|
|
199
200
|
...{
|
|
200
201
|
0: { className: "x78zum5 xeuugli x1ok0vyi" },
|
|
201
202
|
1: { className: "x78zum5 xeuugli x1ok0vyi x1r7kqkb" }
|
|
202
203
|
}[!!n | 0],
|
|
203
|
-
children: /* @__PURE__ */
|
|
204
|
+
children: /* @__PURE__ */ M(v, {
|
|
204
205
|
...s,
|
|
205
206
|
...d({
|
|
206
207
|
className: a,
|
|
@@ -216,11 +217,11 @@ function pe({ children: e, icon: t, isSelected: n = !1, shouldCloseOnActivate: r
|
|
|
216
217
|
onClick: (e, t) => {
|
|
217
218
|
i !== void 0 && i(e, t), !e.defaultPrevented && c !== null && r && c.onNavigate();
|
|
218
219
|
},
|
|
219
|
-
children: [t != null && /* @__PURE__ */
|
|
220
|
+
children: [t != null && /* @__PURE__ */ j("span", {
|
|
220
221
|
"aria-hidden": !0,
|
|
221
222
|
className: "x3nfvp2 x6s0dn4 xl56j7k xtwnzbg x18utl2x x2lah0s",
|
|
222
223
|
children: t
|
|
223
|
-
}), /* @__PURE__ */
|
|
224
|
+
}), /* @__PURE__ */ j("span", {
|
|
224
225
|
id: l,
|
|
225
226
|
...{
|
|
226
227
|
0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
|
|
@@ -231,14 +232,14 @@ function pe({ children: e, icon: t, isSelected: n = !1, shouldCloseOnActivate: r
|
|
|
231
232
|
})
|
|
232
233
|
});
|
|
233
234
|
}
|
|
234
|
-
function
|
|
235
|
-
let c =
|
|
235
|
+
function me({ children: e, icon: t, isSelected: n = !1, onClick: r, className: a, style: o, ...s }) {
|
|
236
|
+
let c = C(R), l = T(), u = c !== null && !c.isExpanded, d = {
|
|
236
237
|
0: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft xjbqb8w x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal x1nhvcw1 x1hnptsi x1f9pz31 x992rv9 x17tes2r xh8yej3 xeuugli xt970qd xksvo5r" },
|
|
237
238
|
2: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft xjbqb8w x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal x1hnptsi x1f9pz31 x992rv9 x17tes2r xh8yej3 xeuugli xt970qd xksvo5r xl56j7k x1l31gyv" },
|
|
238
239
|
1: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal x1nhvcw1 x1hnptsi x1f9pz31 x992rv9 x17tes2r xh8yej3 xeuugli xt970qd xksvo5r x1r7kqkb" },
|
|
239
240
|
3: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal x1hnptsi x1f9pz31 x992rv9 x17tes2r xh8yej3 xeuugli xt970qd xksvo5r xl56j7k x1l31gyv x1r7kqkb" }
|
|
240
241
|
}[!!u << 1 | !!n];
|
|
241
|
-
return /* @__PURE__ */
|
|
242
|
+
return /* @__PURE__ */ M(i, {
|
|
242
243
|
...s,
|
|
243
244
|
"aria-current": n ? "page" : void 0,
|
|
244
245
|
"aria-labelledby": s["aria-labelledby"] ?? (s["aria-label"] === void 0 ? l : void 0),
|
|
@@ -253,11 +254,11 @@ function z({ children: e, icon: t, isSelected: n = !1, onClick: r, className: a,
|
|
|
253
254
|
...d.style,
|
|
254
255
|
...o
|
|
255
256
|
},
|
|
256
|
-
children: [t != null && /* @__PURE__ */
|
|
257
|
+
children: [t != null && /* @__PURE__ */ j("span", {
|
|
257
258
|
"aria-hidden": !0,
|
|
258
259
|
className: "x3nfvp2 x6s0dn4 xl56j7k xtwnzbg x18utl2x x2lah0s",
|
|
259
260
|
children: t
|
|
260
|
-
}), /* @__PURE__ */
|
|
261
|
+
}), /* @__PURE__ */ j("span", {
|
|
261
262
|
id: l,
|
|
262
263
|
...{
|
|
263
264
|
0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
|
|
@@ -267,32 +268,32 @@ function z({ children: e, icon: t, isSelected: n = !1, onClick: r, className: a,
|
|
|
267
268
|
})]
|
|
268
269
|
});
|
|
269
270
|
}
|
|
270
|
-
function
|
|
271
|
-
let r =
|
|
272
|
-
return /* @__PURE__ */
|
|
271
|
+
function he({ title: e, subtitle: t, icon: n }) {
|
|
272
|
+
let r = C(R), i = r !== null && !r.isExpanded;
|
|
273
|
+
return /* @__PURE__ */ M("div", {
|
|
273
274
|
className: "x78zum5 x6s0dn4 x1hnptsi xeuugli x98rzlu",
|
|
274
|
-
children: [n != null && /* @__PURE__ */
|
|
275
|
+
children: [n != null && /* @__PURE__ */ j("span", {
|
|
275
276
|
"aria-hidden": !0,
|
|
276
277
|
className: "x3nfvp2 x6s0dn4 xl56j7k xtwnzbg x18utl2x x2lah0s",
|
|
277
278
|
children: n
|
|
278
|
-
}), /* @__PURE__ */
|
|
279
|
+
}), /* @__PURE__ */ M("div", {
|
|
279
280
|
...{
|
|
280
281
|
0: { className: "x78zum5 xdt5ytf xeuugli x1u7k74" },
|
|
281
282
|
1: { className: "xdt5ytf xeuugli x1u7k74 x1s85apg xeod2sa" }
|
|
282
283
|
}[!!i | 0],
|
|
283
|
-
children: [/* @__PURE__ */
|
|
284
|
+
children: [/* @__PURE__ */ j("span", {
|
|
284
285
|
className: "xtqrqnz xk4h15q xbixft xb3r6kr xlyipyv xuxw1ft",
|
|
285
286
|
children: e
|
|
286
|
-
}), t !== void 0 && /* @__PURE__ */
|
|
287
|
+
}), t !== void 0 && /* @__PURE__ */ j("span", {
|
|
287
288
|
className: "xy8obcc x153jb6y xb3r6kr xlyipyv xuxw1ft",
|
|
288
289
|
children: t
|
|
289
290
|
})]
|
|
290
291
|
})]
|
|
291
292
|
});
|
|
292
293
|
}
|
|
293
|
-
function
|
|
294
|
-
let n =
|
|
295
|
-
return /* @__PURE__ */
|
|
294
|
+
function ge({ children: e, shouldGrow: t = !1 }) {
|
|
295
|
+
let n = C(R), r = n !== null && !n.isExpanded;
|
|
296
|
+
return /* @__PURE__ */ j("span", {
|
|
296
297
|
...{
|
|
297
298
|
0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
|
|
298
299
|
2: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft x78zum5 x6s0dn4 x1hnptsi x98rzlu" },
|
|
@@ -302,39 +303,39 @@ function me({ children: e, shouldGrow: t = !1 }) {
|
|
|
302
303
|
children: e
|
|
303
304
|
});
|
|
304
305
|
}
|
|
305
|
-
function
|
|
306
|
-
let n =
|
|
307
|
-
return /* @__PURE__ */
|
|
308
|
-
...
|
|
306
|
+
function _e({ children: e, layout: t = "inline" }) {
|
|
307
|
+
let n = C(R), r = n !== null && !n.isExpanded;
|
|
308
|
+
return /* @__PURE__ */ j("div", {
|
|
309
|
+
..._.props(z.footer, s.blockStart, r && z.collapsedFooter, le[t]),
|
|
309
310
|
children: e
|
|
310
311
|
});
|
|
311
312
|
}
|
|
312
|
-
function
|
|
313
|
-
let t =
|
|
314
|
-
return t === null ? null : /* @__PURE__ */ A
|
|
315
|
-
...
|
|
316
|
-
children: /* @__PURE__ */
|
|
313
|
+
function ve() {
|
|
314
|
+
let t = C(R);
|
|
315
|
+
return t === null ? null : /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j("div", {
|
|
316
|
+
..._.props(z.toggleCell, s.inlineEnd, z.desktop),
|
|
317
|
+
children: /* @__PURE__ */ j(e, {
|
|
317
318
|
ref: t.navigationToggleRef,
|
|
318
319
|
variant: "ghost",
|
|
319
320
|
"aria-label": t.isExpanded ? "Collapse navigation" : "Expand navigation",
|
|
320
321
|
"aria-controls": t.sidebarId,
|
|
321
322
|
"aria-expanded": t.isExpanded,
|
|
322
323
|
onClick: t.onToggle,
|
|
323
|
-
children: /* @__PURE__ */
|
|
324
|
+
children: /* @__PURE__ */ j(N, {
|
|
324
325
|
size: 16,
|
|
325
326
|
"aria-hidden": !0
|
|
326
327
|
})
|
|
327
328
|
})
|
|
328
|
-
}), /* @__PURE__ */
|
|
329
|
-
...
|
|
330
|
-
children: /* @__PURE__ */
|
|
329
|
+
}), /* @__PURE__ */ j("div", {
|
|
330
|
+
..._.props(z.toggleCell, s.inlineEnd, z.mobile),
|
|
331
|
+
children: /* @__PURE__ */ j(f.Trigger, {
|
|
331
332
|
ref: t.mobileNavigationToggleRef,
|
|
332
333
|
controller: t.drawerController,
|
|
333
|
-
render: /* @__PURE__ */
|
|
334
|
+
render: /* @__PURE__ */ j(e, {
|
|
334
335
|
variant: "ghost",
|
|
335
336
|
"aria-label": "Open navigation"
|
|
336
337
|
}),
|
|
337
|
-
children: /* @__PURE__ */
|
|
338
|
+
children: /* @__PURE__ */ j(N, {
|
|
338
339
|
size: 16,
|
|
339
340
|
"aria-hidden": !0
|
|
340
341
|
})
|
|
@@ -371,51 +372,51 @@ var V = {
|
|
|
371
372
|
$$css: !0
|
|
372
373
|
}
|
|
373
374
|
};
|
|
374
|
-
function
|
|
375
|
-
let a =
|
|
376
|
-
if (
|
|
375
|
+
function ye({ title: e, actions: t, showBreadcrumb: n = !1, showNavigation: r = !0, leading: i }) {
|
|
376
|
+
let a = x.toArray(e).length > 0, o = x.toArray(t).length > 0, c = x.toArray(i).length > 0;
|
|
377
|
+
if (x.toArray([
|
|
377
378
|
e,
|
|
378
379
|
t,
|
|
379
380
|
i
|
|
380
381
|
]).length === 0) return null;
|
|
381
|
-
let l = n ? "nav" :
|
|
382
|
-
return /* @__PURE__ */
|
|
383
|
-
...
|
|
382
|
+
let l = n ? "nav" : I, u = n ? "div" : "span";
|
|
383
|
+
return /* @__PURE__ */ M("div", {
|
|
384
|
+
..._.props(V.toolbar, s.blockEnd),
|
|
384
385
|
children: [
|
|
385
|
-
c ? /* @__PURE__ */
|
|
386
|
+
c ? /* @__PURE__ */ j("div", {
|
|
386
387
|
className: "x78zum5 x6s0dn4 xyibt8p x2lah0s",
|
|
387
388
|
children: i
|
|
388
|
-
}) : r && /* @__PURE__ */
|
|
389
|
-
a && /* @__PURE__ */
|
|
389
|
+
}) : r && /* @__PURE__ */ j(ve, {}),
|
|
390
|
+
a && /* @__PURE__ */ j(l, {
|
|
390
391
|
tabIndex: n ? void 0 : -1,
|
|
391
392
|
"aria-label": n ? "Breadcrumb" : void 0,
|
|
392
393
|
className: "x78zum5 x6s0dn4 x1hnptsi x1dc62k6 xjnfzvw x1oec0jp x1cqoux5 x1ghz6dp x1qlqyl8 xj57cvi x1t137rt",
|
|
393
|
-
children: /* @__PURE__ */
|
|
394
|
+
children: /* @__PURE__ */ j(u, {
|
|
394
395
|
className: "xeuugli xb3r6kr xlyipyv xuxw1ft",
|
|
395
396
|
children: e
|
|
396
397
|
})
|
|
397
398
|
}),
|
|
398
|
-
o && /* @__PURE__ */
|
|
399
|
+
o && /* @__PURE__ */ j("div", {
|
|
399
400
|
className: "x78zum5 x1a02dak x6s0dn4 xunmzkg x1dc62k6 xeuugli x1oec0jp x193iq5w x9f619 xs83m0k x8x9d4c",
|
|
400
401
|
children: t
|
|
401
402
|
})
|
|
402
403
|
]
|
|
403
404
|
});
|
|
404
405
|
}
|
|
405
|
-
function
|
|
406
|
+
function be({ icon: e, children: t, ...r }) {
|
|
406
407
|
let i = e != null;
|
|
407
|
-
return /* @__PURE__ */
|
|
408
|
+
return /* @__PURE__ */ j("div", {
|
|
408
409
|
className: "x9f619 x78zum5 x1qjc9v5 xeuugli",
|
|
409
|
-
children: /* @__PURE__ */
|
|
410
|
+
children: /* @__PURE__ */ M(n, {
|
|
410
411
|
...r,
|
|
411
412
|
variant: "ghost",
|
|
412
413
|
"aria-label": r["aria-label"] ?? (typeof t == "string" ? t : void 0),
|
|
413
414
|
xstyle: V.action,
|
|
414
|
-
children: [i && /* @__PURE__ */
|
|
415
|
+
children: [i && /* @__PURE__ */ j("span", {
|
|
415
416
|
"aria-hidden": !0,
|
|
416
417
|
className: "x3nfvp2 x2lah0s x6s0dn4",
|
|
417
418
|
children: e
|
|
418
|
-
}), i || typeof t == "string" ? /* @__PURE__ */
|
|
419
|
+
}), i || typeof t == "string" ? /* @__PURE__ */ j("span", {
|
|
419
420
|
...{
|
|
420
421
|
0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
|
|
421
422
|
1: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft xt0psk2 xlllsrz" }
|
|
@@ -428,13 +429,13 @@ function ve({ icon: e, children: t, ...r }) {
|
|
|
428
429
|
// packages/layout/src/page-layout.tsx
|
|
429
430
|
function H({ ref: e, navigation: t, children: n, scrollRestorationId: r = "page-body", ...i }) {
|
|
430
431
|
let a = c();
|
|
431
|
-
return /* @__PURE__ */
|
|
432
|
+
return /* @__PURE__ */ M("div", {
|
|
432
433
|
ref: e,
|
|
433
434
|
className: "xtdtrs8 xmz0i5r xeuugli x2lwn1j xrvj5dj x16p6thf",
|
|
434
|
-
children: [/* @__PURE__ */
|
|
435
|
+
children: [/* @__PURE__ */ M("div", {
|
|
435
436
|
className: "xeuugli",
|
|
436
|
-
children: [/* @__PURE__ */
|
|
437
|
-
}), /* @__PURE__ */
|
|
437
|
+
children: [/* @__PURE__ */ j(ye, { ...i }), t !== void 0 && ("isPlaceholder" in t ? /* @__PURE__ */ j(l, { ...t }) : /* @__PURE__ */ j(u, { ...t }))]
|
|
438
|
+
}), /* @__PURE__ */ j("div", {
|
|
438
439
|
ref: a.ref,
|
|
439
440
|
tabIndex: a.tabIndex,
|
|
440
441
|
"data-page-viewport": "",
|
|
@@ -444,29 +445,90 @@ function H({ ref: e, navigation: t, children: n, scrollRestorationId: r = "page-
|
|
|
444
445
|
})]
|
|
445
446
|
});
|
|
446
447
|
}
|
|
447
|
-
function
|
|
448
|
-
let i = t != null && t !== !1, o = e != null && e !== !1, s =
|
|
449
|
-
return /* @__PURE__ */
|
|
448
|
+
function xe({ children: e, summary: t, breakdown: n, ...r }) {
|
|
449
|
+
let i = t != null && t !== !1, o = e != null && e !== !1, s = T(), c = r.id ?? s;
|
|
450
|
+
return /* @__PURE__ */ M(ce, {
|
|
450
451
|
"aria-labelledby": c,
|
|
451
452
|
className: "xeuugli x2lah0s xc8icb0",
|
|
452
|
-
children: [/* @__PURE__ */
|
|
453
|
+
children: [/* @__PURE__ */ j("div", {
|
|
453
454
|
className: "x1uhb9sk xsbffnv x13vifvy x11ru5tl",
|
|
454
|
-
children: /* @__PURE__ */
|
|
455
|
+
children: /* @__PURE__ */ j(a, {
|
|
455
456
|
...r,
|
|
456
457
|
id: c
|
|
457
458
|
})
|
|
458
|
-
}), /* @__PURE__ */
|
|
459
|
+
}), /* @__PURE__ */ M("div", {
|
|
459
460
|
className: "xc8icb0",
|
|
460
461
|
children: [
|
|
461
|
-
i && /* @__PURE__ */
|
|
462
|
+
i && /* @__PURE__ */ j(F, { children: t }),
|
|
462
463
|
n,
|
|
463
|
-
o && /* @__PURE__ */
|
|
464
|
+
o && /* @__PURE__ */ j(F, { children: e })
|
|
464
465
|
]
|
|
465
466
|
})]
|
|
466
467
|
});
|
|
467
468
|
}
|
|
469
|
+
// packages/layout/src/devtools-bar.tsx
|
|
470
|
+
var Se = { bar: {
|
|
471
|
+
kOIVth: "x1n8ia3y",
|
|
472
|
+
kAzted: "xzhxzul",
|
|
473
|
+
$$css: !0
|
|
474
|
+
} }, Ce = {
|
|
475
|
+
neutral: { $$css: !0 },
|
|
476
|
+
accent: {
|
|
477
|
+
kWkggS: "x1r8u7ye",
|
|
478
|
+
kMwMTN: "x7ixh4y",
|
|
479
|
+
$$css: !0
|
|
480
|
+
}
|
|
481
|
+
};
|
|
482
|
+
function we({ children: e = "DevTools", actions: t, tone: n = "neutral" }) {
|
|
483
|
+
return /* @__PURE__ */ M("aside", {
|
|
484
|
+
"aria-label": "Developer tools",
|
|
485
|
+
..._.props(s.row, s.blockStart, Se.bar, Ce[n]),
|
|
486
|
+
children: [e, t != null && /* @__PURE__ */ j("div", {
|
|
487
|
+
..._.props(s.trailing),
|
|
488
|
+
children: t
|
|
489
|
+
})]
|
|
490
|
+
});
|
|
491
|
+
}
|
|
492
|
+
function Te(e) {
|
|
493
|
+
let [t, n] = O(!1), r = D(!1);
|
|
494
|
+
return E(() => {
|
|
495
|
+
function t() {
|
|
496
|
+
if (!r.current) try {
|
|
497
|
+
n(globalThis.localStorage.getItem(e) === "1");
|
|
498
|
+
} catch {}
|
|
499
|
+
}
|
|
500
|
+
function i(n) {
|
|
501
|
+
(n.key === e || n.key === null) && t();
|
|
502
|
+
}
|
|
503
|
+
return t(), globalThis.addEventListener("pageshow", t), globalThis.addEventListener("storage", i), () => {
|
|
504
|
+
globalThis.removeEventListener("pageshow", t), globalThis.removeEventListener("storage", i);
|
|
505
|
+
};
|
|
506
|
+
}, [e]), h({
|
|
507
|
+
target: typeof document > "u" ? null : document.documentElement,
|
|
508
|
+
isEnabled: !0,
|
|
509
|
+
commands: [{
|
|
510
|
+
id: "toggle-devtools-bar",
|
|
511
|
+
label: "Toggle DevTools",
|
|
512
|
+
shortcut: {
|
|
513
|
+
key: "\\",
|
|
514
|
+
code: "Backslash",
|
|
515
|
+
meta: !0,
|
|
516
|
+
alt: !0,
|
|
517
|
+
shift: !0
|
|
518
|
+
},
|
|
519
|
+
onSelect: () => {
|
|
520
|
+
n(!t);
|
|
521
|
+
try {
|
|
522
|
+
globalThis.localStorage.setItem(e, t ? "0" : "1"), r.current = !1;
|
|
523
|
+
} catch {
|
|
524
|
+
r.current = !0;
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
}]
|
|
528
|
+
}), t;
|
|
529
|
+
}
|
|
468
530
|
// packages/layout/src/navigation-rail.tsx
|
|
469
|
-
var U =
|
|
531
|
+
var U = S("rail"), W = {
|
|
470
532
|
action: {
|
|
471
533
|
kSGwAc: "xamitd3",
|
|
472
534
|
$$css: !0
|
|
@@ -505,11 +567,11 @@ var U = x("rail"), W = {
|
|
|
505
567
|
$$css: !0
|
|
506
568
|
}
|
|
507
569
|
};
|
|
508
|
-
function
|
|
509
|
-
return /* @__PURE__ */
|
|
570
|
+
function Ee(e) {
|
|
571
|
+
return /* @__PURE__ */ j(G, { ...e });
|
|
510
572
|
}
|
|
511
573
|
function G({ label: r, links: a, action: o, isFooter: s = !1 }) {
|
|
512
|
-
let c =
|
|
574
|
+
let c = C(U) === "drawer", l = C(R);
|
|
513
575
|
function u(e, t) {
|
|
514
576
|
e?.(t);
|
|
515
577
|
let n = t.metaKey || t.ctrlKey, r = t.shiftKey || t.altKey;
|
|
@@ -518,77 +580,77 @@ function G({ label: r, links: a, action: o, isFooter: s = !1 }) {
|
|
|
518
580
|
let d = (e) => {
|
|
519
581
|
o?.onClick(e), e.defaultPrevented || l?.onNavigate();
|
|
520
582
|
};
|
|
521
|
-
return c ? /* @__PURE__ */
|
|
583
|
+
return c ? /* @__PURE__ */ M("div", {
|
|
522
584
|
className: "x78zum5 xdt5ytf x1qjc9v5 x2lah0s xeuugli",
|
|
523
|
-
children: [/* @__PURE__ */
|
|
585
|
+
children: [/* @__PURE__ */ j("nav", {
|
|
524
586
|
"aria-label": r,
|
|
525
587
|
...{
|
|
526
588
|
0: { className: "xrvj5dj xnby9oq xunmzkg x1s01oa9" },
|
|
527
589
|
1: { className: "xrvj5dj xunmzkg x1717udv x1mkdm3x" }
|
|
528
590
|
}[!!s | 0],
|
|
529
|
-
children: a.map(({ label: e, icon: t, isCurrent: n = !1, ...r }) => /* @__PURE__ */
|
|
530
|
-
...
|
|
591
|
+
children: a.map(({ label: e, icon: t, isCurrent: n = !1, ...r }) => /* @__PURE__ */ M(i, {
|
|
592
|
+
...b(_.props(g.base, g.button, W.mobileLink, s && W.drawerFooterLink, W.rounded, W.selected), r),
|
|
531
593
|
"aria-current": n ? "location" : void 0,
|
|
532
594
|
onClick: (e) => u(r.onClick, e),
|
|
533
|
-
children: [/* @__PURE__ */
|
|
595
|
+
children: [/* @__PURE__ */ j("span", {
|
|
534
596
|
"aria-hidden": !0,
|
|
535
597
|
className: "x3nfvp2 x2lah0s xtwnzbg x18utl2x",
|
|
536
598
|
children: t
|
|
537
|
-
}), /* @__PURE__ */
|
|
599
|
+
}), /* @__PURE__ */ j("span", {
|
|
538
600
|
className: "xeuugli x193iq5w xj0a0fe",
|
|
539
601
|
children: e
|
|
540
602
|
})]
|
|
541
603
|
}, r.href))
|
|
542
|
-
}), o !== void 0 && /* @__PURE__ */
|
|
604
|
+
}), o !== void 0 && /* @__PURE__ */ j("div", {
|
|
543
605
|
className: "xrvj5dj x14w6jbu xngumbj xso031l x1q0q8m5 x1qndepd",
|
|
544
|
-
children: /* @__PURE__ */
|
|
606
|
+
children: /* @__PURE__ */ M(n, {
|
|
545
607
|
variant: "ghost",
|
|
546
608
|
onClick: d,
|
|
547
|
-
children: [/* @__PURE__ */
|
|
609
|
+
children: [/* @__PURE__ */ j("span", {
|
|
548
610
|
"aria-hidden": !0,
|
|
549
611
|
className: "x3nfvp2 x2lah0s xtwnzbg x18utl2x",
|
|
550
612
|
children: o.icon
|
|
551
613
|
}), o.label]
|
|
552
614
|
})
|
|
553
615
|
})]
|
|
554
|
-
}) : /* @__PURE__ */
|
|
616
|
+
}) : /* @__PURE__ */ M("div", {
|
|
555
617
|
...{
|
|
556
618
|
0: { className: "x78zum5 xdt5ytf x1qjc9v5 x2lah0s xeuugli" },
|
|
557
619
|
1: { className: "x78zum5 xdt5ytf x1qjc9v5 x2lah0s xeuugli x1yrrsrt x1c526fk" }
|
|
558
620
|
}[!s | 0],
|
|
559
|
-
children: [/* @__PURE__ */
|
|
621
|
+
children: [/* @__PURE__ */ j("nav", {
|
|
560
622
|
"aria-label": r,
|
|
561
623
|
className: "x78zum5 xdt5ytf x6s0dn4 xunmzkg",
|
|
562
|
-
children: a.map(({ label: e, icon: n, isCurrent: r = !1, ...a }) => /* @__PURE__ */
|
|
563
|
-
render: /* @__PURE__ */
|
|
564
|
-
render: /* @__PURE__ */
|
|
565
|
-
...
|
|
624
|
+
children: a.map(({ label: e, icon: n, isCurrent: r = !1, ...a }) => /* @__PURE__ */ M(m.Root, { children: [/* @__PURE__ */ j(m.Trigger, {
|
|
625
|
+
render: /* @__PURE__ */ j(t, {
|
|
626
|
+
render: /* @__PURE__ */ j(i, {}),
|
|
627
|
+
...b({ className: "x1yk04ar" }, a),
|
|
566
628
|
"aria-current": r ? "location" : void 0,
|
|
567
629
|
"aria-label": e,
|
|
568
630
|
onClick: (e) => u(a.onClick, e)
|
|
569
631
|
}),
|
|
570
632
|
children: n
|
|
571
|
-
}), /* @__PURE__ */
|
|
633
|
+
}), /* @__PURE__ */ j(m.Popup, {
|
|
572
634
|
side: "right",
|
|
573
635
|
children: e
|
|
574
636
|
})] }, a.href))
|
|
575
|
-
}), o !== void 0 && /* @__PURE__ */ A
|
|
576
|
-
render: /* @__PURE__ */
|
|
637
|
+
}), o !== void 0 && /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j("hr", { className: "xc342km x178xt8z x13fuv20 xhjagg4 xv06hpe xn92wy8" }), /* @__PURE__ */ M(m.Root, { children: [/* @__PURE__ */ j(m.Trigger, {
|
|
638
|
+
render: /* @__PURE__ */ j(e, {
|
|
577
639
|
variant: "ghost",
|
|
578
640
|
"aria-label": o.label,
|
|
579
641
|
xstyle: W.action
|
|
580
642
|
}),
|
|
581
643
|
onClick: d,
|
|
582
644
|
children: o.icon
|
|
583
|
-
}), /* @__PURE__ */
|
|
645
|
+
}), /* @__PURE__ */ j(m.Popup, {
|
|
584
646
|
side: "right",
|
|
585
647
|
children: o.label
|
|
586
648
|
})] })] })]
|
|
587
649
|
});
|
|
588
650
|
}
|
|
589
|
-
function
|
|
590
|
-
let t =
|
|
591
|
-
return /* @__PURE__ */
|
|
651
|
+
function De({ children: e }) {
|
|
652
|
+
let t = C(U) === "drawer";
|
|
653
|
+
return /* @__PURE__ */ j("div", {
|
|
592
654
|
...{
|
|
593
655
|
0: { className: "x78zum5 xdt5ytf x6s0dn4 xunmzkg x1yrrsrt x1c526fk" },
|
|
594
656
|
1: { className: "x78zum5 xdt5ytf xunmzkg x1yrrsrt x1c526fk x1cy8zhl x14w6jbu" }
|
|
@@ -597,21 +659,21 @@ function xe({ children: e }) {
|
|
|
597
659
|
});
|
|
598
660
|
}
|
|
599
661
|
function K({ children: e }) {
|
|
600
|
-
return /* @__PURE__ */
|
|
662
|
+
return /* @__PURE__ */ j("span", {
|
|
601
663
|
"aria-hidden": !0,
|
|
602
664
|
className: "xrvj5dj x1ku5rj1 x9c6wpo x1ff4b4a x1f9pz31 x992rv9",
|
|
603
665
|
children: e
|
|
604
666
|
});
|
|
605
667
|
}
|
|
606
|
-
function
|
|
607
|
-
return /* @__PURE__ */
|
|
668
|
+
function Oe({ count: e, icon: t }) {
|
|
669
|
+
return /* @__PURE__ */ j("div", {
|
|
608
670
|
"aria-hidden": !0,
|
|
609
671
|
className: "x1yrrsrt x1c526fk x78zum5 xdt5ytf x6s0dn4 xunmzkg",
|
|
610
|
-
children: Array.from({ length: e }, (e, n) => /* @__PURE__ */
|
|
672
|
+
children: Array.from({ length: e }, (e, n) => /* @__PURE__ */ j(K, { children: t }, n))
|
|
611
673
|
});
|
|
612
674
|
}
|
|
613
675
|
// packages/layout/src/navigation-rail-menu.tsx
|
|
614
|
-
var
|
|
676
|
+
var ke = {
|
|
615
677
|
rail: {
|
|
616
678
|
side: "right",
|
|
617
679
|
align: "end"
|
|
@@ -622,31 +684,31 @@ var Ce = {
|
|
|
622
684
|
}
|
|
623
685
|
};
|
|
624
686
|
function q({ label: t, icon: n, children: r }) {
|
|
625
|
-
let i =
|
|
626
|
-
return
|
|
627
|
-
let e = globalThis.matchMedia(
|
|
687
|
+
let i = C(U), [a, o] = O(!1);
|
|
688
|
+
return w(() => {
|
|
689
|
+
let e = globalThis.matchMedia(L.sidebarDesktopQuery);
|
|
628
690
|
function t() {
|
|
629
691
|
o(!1);
|
|
630
692
|
}
|
|
631
693
|
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
|
|
632
|
-
}, []), /* @__PURE__ */
|
|
694
|
+
}, []), /* @__PURE__ */ M(p.Root, {
|
|
633
695
|
open: a,
|
|
634
696
|
onOpenChange: o,
|
|
635
697
|
modal: !1,
|
|
636
|
-
children: [/* @__PURE__ */
|
|
698
|
+
children: [/* @__PURE__ */ M(m.Root, {
|
|
637
699
|
disabled: a || i === "drawer",
|
|
638
|
-
children: [/* @__PURE__ */
|
|
639
|
-
render: /* @__PURE__ */
|
|
700
|
+
children: [/* @__PURE__ */ j(m.Trigger, {
|
|
701
|
+
render: /* @__PURE__ */ j(p.Trigger, { render: /* @__PURE__ */ j(e, {
|
|
640
702
|
variant: "ghost",
|
|
641
703
|
"aria-label": t
|
|
642
704
|
}) }),
|
|
643
705
|
children: n
|
|
644
|
-
}), /* @__PURE__ */
|
|
706
|
+
}), /* @__PURE__ */ j(m.Popup, {
|
|
645
707
|
side: "right",
|
|
646
708
|
children: t
|
|
647
709
|
})]
|
|
648
|
-
}), /* @__PURE__ */
|
|
649
|
-
...
|
|
710
|
+
}), /* @__PURE__ */ j(p.Popup, {
|
|
711
|
+
...ke[i],
|
|
650
712
|
sideOffset: 4,
|
|
651
713
|
collisionPadding: 8,
|
|
652
714
|
"aria-label": t,
|
|
@@ -655,6 +717,28 @@ function q({ label: t, icon: n, children: r }) {
|
|
|
655
717
|
})]
|
|
656
718
|
});
|
|
657
719
|
}
|
|
720
|
+
// packages/layout/src/shell-bottom-bar.tsx
|
|
721
|
+
function Ae({ children: e }) {
|
|
722
|
+
let t = D(null);
|
|
723
|
+
return E(() => {
|
|
724
|
+
let e = t.current;
|
|
725
|
+
if (e === null) return;
|
|
726
|
+
let n = e.ownerDocument.documentElement;
|
|
727
|
+
function r() {
|
|
728
|
+
n.style.setProperty("--mechane-shell-bottom-inset", `${t.current?.getBoundingClientRect().height ?? 0}px`);
|
|
729
|
+
}
|
|
730
|
+
r();
|
|
731
|
+
let i = new ResizeObserver(r);
|
|
732
|
+
return i.observe(e, { box: "border-box" }), () => {
|
|
733
|
+
i.disconnect(), n.style.removeProperty("--mechane-shell-bottom-inset");
|
|
734
|
+
};
|
|
735
|
+
}, []), /* @__PURE__ */ j("div", {
|
|
736
|
+
ref: t,
|
|
737
|
+
"data-mechane-shell-bottom-bar": "",
|
|
738
|
+
className: "xeuugli xrvj5dj xbjcvb9 x1a148e8",
|
|
739
|
+
children: e
|
|
740
|
+
});
|
|
741
|
+
}
|
|
658
742
|
// packages/layout/src/app-shell.tsx
|
|
659
743
|
var J = {
|
|
660
744
|
sidebar: {
|
|
@@ -664,7 +748,6 @@ var J = {
|
|
|
664
748
|
kWkggS: "xpvm0e4",
|
|
665
749
|
kVAEAm: "x7wzq59",
|
|
666
750
|
k87sOh: "x13vifvy",
|
|
667
|
-
kZKoxP: "xtdtrs8",
|
|
668
751
|
kzqmXN: "x68ju84",
|
|
669
752
|
kmuXW: "x2lah0s",
|
|
670
753
|
kAzted: "x2lwn1j",
|
|
@@ -694,96 +777,102 @@ var J = {
|
|
|
694
777
|
}
|
|
695
778
|
};
|
|
696
779
|
function Y({ footer: e }) {
|
|
697
|
-
return /* @__PURE__ */
|
|
698
|
-
className: "x2lah0s
|
|
699
|
-
children: /* @__PURE__ */
|
|
780
|
+
return /* @__PURE__ */ j("div", {
|
|
781
|
+
className: "x2lah0s x1vod7vm",
|
|
782
|
+
children: /* @__PURE__ */ j(De, { children: "placeholder" in e ? /* @__PURE__ */ M(A, { children: [e.placeholder.linkIcon !== void 0 && /* @__PURE__ */ j(K, { children: e.placeholder.linkIcon }), /* @__PURE__ */ j(K, { children: e.placeholder.menuIcon })] }) : /* @__PURE__ */ M(A, { children: [e.navigation !== void 0 && /* @__PURE__ */ j(G, {
|
|
700
783
|
...e.navigation,
|
|
701
784
|
isFooter: !0
|
|
702
|
-
}), /* @__PURE__ */
|
|
785
|
+
}), /* @__PURE__ */ j(q, { ...e.menu })] }) })
|
|
703
786
|
});
|
|
704
787
|
}
|
|
705
|
-
function
|
|
706
|
-
let
|
|
707
|
-
return
|
|
708
|
-
let e = globalThis.matchMedia(
|
|
788
|
+
function je({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, bottomBar: a, children: o, mainId: c = "main", shouldFocus: l = !1 }) {
|
|
789
|
+
let u = a != null && typeof a != "boolean", d = e != null, [p, m] = O(!0), [h, g] = O(!1), v = l || d && !p, [y] = O(() => f.createController()), b = T(), x = D(null), S = D(null), C = D(null), E = D(!1);
|
|
790
|
+
return w(() => {
|
|
791
|
+
let e = globalThis.matchMedia(L.sidebarDesktopQuery);
|
|
709
792
|
function t() {
|
|
710
|
-
e.matches &&
|
|
793
|
+
e.matches && g(!1);
|
|
711
794
|
}
|
|
712
795
|
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
|
|
713
|
-
}, []), /* @__PURE__ */
|
|
796
|
+
}, []), /* @__PURE__ */ M(R.Provider, {
|
|
714
797
|
value: {
|
|
715
|
-
isExpanded:
|
|
716
|
-
sidebarId:
|
|
717
|
-
drawerController:
|
|
718
|
-
navigationToggleRef:
|
|
719
|
-
mobileNavigationToggleRef:
|
|
720
|
-
onToggle: () =>
|
|
798
|
+
isExpanded: p,
|
|
799
|
+
sidebarId: b,
|
|
800
|
+
drawerController: y,
|
|
801
|
+
navigationToggleRef: x,
|
|
802
|
+
mobileNavigationToggleRef: S,
|
|
803
|
+
onToggle: () => m((e) => !e),
|
|
721
804
|
onNavigate: () => {
|
|
722
|
-
|
|
805
|
+
E.current = h, g(!1);
|
|
723
806
|
}
|
|
724
807
|
},
|
|
725
|
-
children: [/* @__PURE__ */
|
|
726
|
-
className: "x9f619 xtdtrs8 xb3r6kr
|
|
727
|
-
children: [
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
808
|
+
children: [/* @__PURE__ */ M("div", {
|
|
809
|
+
className: "x9f619 xtdtrs8 xb3r6kr xrvj5dj x1sx1omo x1mkdm3x xpvm0e4 xbixft x1hz01jw xtqrqnz x1778rvt xvmahel",
|
|
810
|
+
children: [/* @__PURE__ */ M("div", {
|
|
811
|
+
...{
|
|
812
|
+
0: { className: "x78zum5 xeuugli x2lwn1j" },
|
|
813
|
+
1: { className: "x78zum5 xeuugli x2lwn1j xcl5tbm" }
|
|
814
|
+
}[!!u | 0],
|
|
815
|
+
children: [
|
|
816
|
+
d && /* @__PURE__ */ M("div", {
|
|
817
|
+
hidden: l,
|
|
818
|
+
..._.props(J.sidebar, s.inlineEnd, J.rail, l && J.hidden),
|
|
819
|
+
children: [/* @__PURE__ */ j("div", {
|
|
820
|
+
className: "x98rzlu x2lwn1j x1odjw0f x1e4zzel",
|
|
821
|
+
children: e
|
|
822
|
+
}), t !== void 0 && /* @__PURE__ */ j(Y, { footer: t })]
|
|
823
|
+
}),
|
|
824
|
+
/* @__PURE__ */ j("aside", {
|
|
825
|
+
id: b,
|
|
826
|
+
"aria-label": "Navigation",
|
|
827
|
+
hidden: v,
|
|
828
|
+
..._.props(J.sidebar, s.inlineEnd, d && J.secondary, !d && !p && J.collapsed, v && J.hidden),
|
|
829
|
+
children: /* @__PURE__ */ j(B, {
|
|
830
|
+
header: n,
|
|
831
|
+
footer: i,
|
|
832
|
+
children: r
|
|
833
|
+
})
|
|
834
|
+
}),
|
|
835
|
+
/* @__PURE__ */ j("main", {
|
|
836
|
+
id: c,
|
|
837
|
+
tabIndex: -1,
|
|
838
|
+
className: "xeuugli x2lwn1j x98rzlu x78zum5 xdt5ytf x1odjw0f x6i9wio",
|
|
839
|
+
children: o
|
|
745
840
|
})
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
}), /* @__PURE__ */ A(f.Root, {
|
|
755
|
-
controller: _,
|
|
756
|
-
open: p && !c,
|
|
757
|
-
onOpenChange: m,
|
|
758
|
-
children: [/* @__PURE__ */ k(f.Backdrop, {}), /* @__PURE__ */ A(f.Popup, {
|
|
759
|
-
ref: x,
|
|
841
|
+
]
|
|
842
|
+
}), u && /* @__PURE__ */ j(Ae, { children: a })]
|
|
843
|
+
}), /* @__PURE__ */ M(f.Root, {
|
|
844
|
+
controller: y,
|
|
845
|
+
open: h && !l,
|
|
846
|
+
onOpenChange: g,
|
|
847
|
+
children: [/* @__PURE__ */ j(f.Backdrop, {}), /* @__PURE__ */ M(f.Popup, {
|
|
848
|
+
ref: C,
|
|
760
849
|
xstyle: J.drawer,
|
|
761
850
|
finalFocus: () => {
|
|
762
|
-
if (
|
|
763
|
-
|
|
764
|
-
let e = document.querySelector(`#${CSS.escape(
|
|
851
|
+
if (E.current) {
|
|
852
|
+
E.current = !1;
|
|
853
|
+
let e = document.querySelector(`#${CSS.escape(c)}`), t = document.activeElement;
|
|
765
854
|
if (t instanceof HTMLElement) {
|
|
766
855
|
let e = t.closest("[role=\"dialog\"], [role=\"alertdialog\"]");
|
|
767
|
-
if (e !== null && e !==
|
|
856
|
+
if (e !== null && e !== C.current) return t;
|
|
768
857
|
}
|
|
769
858
|
return t instanceof HTMLElement && e?.contains(t) === !0 ? t : e;
|
|
770
859
|
}
|
|
771
|
-
return globalThis.matchMedia(
|
|
860
|
+
return globalThis.matchMedia(L.sidebarDesktopQuery).matches ? x.current : S.current;
|
|
772
861
|
},
|
|
773
|
-
children: [/* @__PURE__ */
|
|
862
|
+
children: [/* @__PURE__ */ j(f.Title, {
|
|
774
863
|
isVisuallyHidden: !0,
|
|
775
864
|
children: "Navigation"
|
|
776
|
-
}), /* @__PURE__ */
|
|
865
|
+
}), /* @__PURE__ */ j(B, {
|
|
777
866
|
header: n,
|
|
778
|
-
navigationHeader:
|
|
867
|
+
navigationHeader: d && /* @__PURE__ */ j(U.Provider, {
|
|
779
868
|
value: "drawer",
|
|
780
869
|
children: e
|
|
781
870
|
}),
|
|
782
|
-
footer: /* @__PURE__ */ A
|
|
871
|
+
footer: /* @__PURE__ */ M(A, { children: [i, d && t !== void 0 && /* @__PURE__ */ j(U.Provider, {
|
|
783
872
|
value: "drawer",
|
|
784
|
-
children: /* @__PURE__ */
|
|
873
|
+
children: /* @__PURE__ */ j(Y, { footer: t })
|
|
785
874
|
})] }),
|
|
786
|
-
close: /* @__PURE__ */
|
|
875
|
+
close: /* @__PURE__ */ j(ue, {}),
|
|
787
876
|
children: r
|
|
788
877
|
})]
|
|
789
878
|
})]
|
|
@@ -792,7 +881,7 @@ function we({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, c
|
|
|
792
881
|
}
|
|
793
882
|
// packages/layout/src/detail-page.tsx
|
|
794
883
|
function X({ children: e, isWide: t = !1, isBleed: n = !1 }) {
|
|
795
|
-
return /* @__PURE__ */
|
|
884
|
+
return /* @__PURE__ */ j("div", {
|
|
796
885
|
...{
|
|
797
886
|
0: { className: "x9f619 x13na7z x96idz6 x9g60mw xeuugli xvueqy4 xnjsko4 x10gdey3 x14y0u4g x1foqgtu x1uwsqpk x14oio8y" },
|
|
798
887
|
2: { className: "x9f619 xeuugli xvueqy4 xh8yej3 x1x1rfll x1dc62k6 x10d9x1d x1l52sgj" },
|
|
@@ -823,35 +912,35 @@ var Z = {
|
|
|
823
912
|
kumcoG: "x185a7wo x1u207gz x1kgop2p",
|
|
824
913
|
$$css: !0
|
|
825
914
|
}
|
|
826
|
-
},
|
|
915
|
+
}, Me = {
|
|
827
916
|
"2-up": Z.twoUp,
|
|
828
917
|
"hero-aside": Z.heroAside,
|
|
829
918
|
"3-up": Z.threeUp
|
|
830
919
|
};
|
|
831
|
-
function
|
|
832
|
-
return /* @__PURE__ */
|
|
920
|
+
function Ne({ layout: e = "2-up", children: t, ...n }) {
|
|
921
|
+
return /* @__PURE__ */ j("div", {
|
|
833
922
|
className: "x12h1iku x1rb1qiq xeuugli",
|
|
834
|
-
children: /* @__PURE__ */
|
|
835
|
-
...
|
|
923
|
+
children: /* @__PURE__ */ j("div", {
|
|
924
|
+
...b(_.props(Z.grid, Me[e]), n),
|
|
836
925
|
children: t
|
|
837
926
|
})
|
|
838
927
|
});
|
|
839
928
|
}
|
|
840
929
|
// packages/layout/src/focus-page.tsx
|
|
841
|
-
function
|
|
842
|
-
return /* @__PURE__ */
|
|
930
|
+
function Pe({ children: e }) {
|
|
931
|
+
return /* @__PURE__ */ j("main", {
|
|
843
932
|
id: "main",
|
|
844
933
|
tabIndex: -1,
|
|
845
934
|
className: "x9f619 x1ov3xa9 xeuugli xrvj5dj x1ku5rj1 x1jvlu93 xpvm0e4 xbixft x1hz01jw xtqrqnz x1778rvt xvmahel",
|
|
846
|
-
children: /* @__PURE__ */
|
|
935
|
+
children: /* @__PURE__ */ j("div", {
|
|
847
936
|
className: "xh8yej3 xxc7z9f xeuugli xrvj5dj x1mkdm3x x1j825kq",
|
|
848
937
|
children: e
|
|
849
938
|
})
|
|
850
939
|
});
|
|
851
940
|
}
|
|
852
941
|
// packages/layout/src/resizable.tsx
|
|
853
|
-
function
|
|
854
|
-
return /* @__PURE__ */
|
|
942
|
+
function Fe({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n, disabled: r = !1, ref: i, ...a }) {
|
|
943
|
+
return /* @__PURE__ */ j(ne, {
|
|
855
944
|
orientation: e,
|
|
856
945
|
...t !== void 0 && { defaultLayout: t },
|
|
857
946
|
onLayoutCommit: (e, { event: t }) => {
|
|
@@ -859,63 +948,63 @@ function Oe({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n,
|
|
|
859
948
|
},
|
|
860
949
|
disabled: r,
|
|
861
950
|
ref: i,
|
|
862
|
-
...
|
|
951
|
+
...b({ className: "xeuugli x2lwn1j xh8yej3 x5yr21d" }, a)
|
|
863
952
|
});
|
|
864
953
|
}
|
|
865
|
-
function
|
|
866
|
-
return /* @__PURE__ */
|
|
954
|
+
function Ie({ id: e, initialSizePercent: t, minimumSizePercent: n = 10, maximumSizePercent: r = 100, canCollapse: i = !1, ref: a, ...o }) {
|
|
955
|
+
return /* @__PURE__ */ j(ie, {
|
|
867
956
|
id: e,
|
|
868
957
|
...t !== void 0 && { defaultSize: t },
|
|
869
958
|
minSize: n,
|
|
870
959
|
maxSize: r,
|
|
871
960
|
collapsible: i,
|
|
872
961
|
ref: a,
|
|
873
|
-
...
|
|
962
|
+
...b({ className: "xeuugli x2lwn1j xysyzu8" }, o)
|
|
874
963
|
});
|
|
875
964
|
}
|
|
876
|
-
function
|
|
877
|
-
return /* @__PURE__ */
|
|
965
|
+
function Le({ ref: e, ...t }) {
|
|
966
|
+
return /* @__PURE__ */ j(re, {
|
|
878
967
|
ref: e,
|
|
879
|
-
...
|
|
968
|
+
...b({ className: "x1n2onr6 x1vjfegm x9f619 x1fa40ue xqkn89t xsmyaan x1ff4b4a x7b6jwd xse4jxt x1jy3mcf x1k8hp4o x1rbdpqn x1ehdxp2 x1wg4s0h xse41gn xiti608 xxf9m8b x1ep60v ximv7tn xls05dq xkkvcqt x13qnu6 x9v5kkp x19rmrnh x13iak60" }, t)
|
|
880
969
|
});
|
|
881
970
|
}
|
|
882
971
|
var Q = {
|
|
883
|
-
Root:
|
|
884
|
-
Pane:
|
|
885
|
-
Handle:
|
|
972
|
+
Root: Fe,
|
|
973
|
+
Pane: Ie,
|
|
974
|
+
Handle: Le
|
|
886
975
|
};
|
|
887
976
|
// packages/layout/src/workbench.tsx
|
|
888
|
-
function
|
|
977
|
+
function Re({ header: e, children: t, inspector: n, isResizable: r = !1, inspectorInitialPercent: i = 36 }) {
|
|
889
978
|
let a = r && n !== void 0, o = Math.max(30, Math.min(80, 100 - i));
|
|
890
|
-
return /* @__PURE__ */
|
|
979
|
+
return /* @__PURE__ */ M("div", {
|
|
891
980
|
className: "x78zum5 xdt5ytf xtdtrs8 xmz0i5r x98rzlu xeuugli x2lwn1j x12h1iku x1a75771 xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel",
|
|
892
|
-
children: [e != null && /* @__PURE__ */
|
|
981
|
+
children: [e != null && /* @__PURE__ */ j("div", {
|
|
893
982
|
className: "xeuugli x2lah0s x1ydxw8w xnx3t7k xso031l x1q0q8m5 x1qndepd",
|
|
894
983
|
children: e
|
|
895
|
-
}), /* @__PURE__ */
|
|
984
|
+
}), /* @__PURE__ */ j("div", {
|
|
896
985
|
className: "x78zum5 x98rzlu xeuugli x2lwn1j x7giv3",
|
|
897
|
-
children: a ? /* @__PURE__ */ A
|
|
986
|
+
children: a ? /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j("div", {
|
|
898
987
|
className: "x78zum5 x152g2jv x98rzlu xeuugli x2lwn1j",
|
|
899
|
-
children: /* @__PURE__ */
|
|
988
|
+
children: /* @__PURE__ */ M(Q.Root, {
|
|
900
989
|
orientation: "horizontal",
|
|
901
990
|
initialSizes: [o, 100 - o],
|
|
902
991
|
children: [
|
|
903
|
-
/* @__PURE__ */
|
|
992
|
+
/* @__PURE__ */ j(Q.Pane, {
|
|
904
993
|
id: "workbench-main",
|
|
905
994
|
initialSizePercent: o,
|
|
906
995
|
minimumSizePercent: 30,
|
|
907
|
-
children: /* @__PURE__ */
|
|
996
|
+
children: /* @__PURE__ */ j("div", {
|
|
908
997
|
className: "x1n2onr6 x78zum5 x98rzlu xdt5ytf xeuugli x2lwn1j",
|
|
909
998
|
children: t
|
|
910
999
|
})
|
|
911
1000
|
}),
|
|
912
|
-
/* @__PURE__ */
|
|
913
|
-
/* @__PURE__ */
|
|
1001
|
+
/* @__PURE__ */ j(Q.Handle, { "aria-label": `Resize ${n.label}` }),
|
|
1002
|
+
/* @__PURE__ */ j(Q.Pane, {
|
|
914
1003
|
id: "workbench-inspector",
|
|
915
1004
|
initialSizePercent: 100 - o,
|
|
916
1005
|
minimumSizePercent: 20,
|
|
917
1006
|
maximumSizePercent: 70,
|
|
918
|
-
children: /* @__PURE__ */
|
|
1007
|
+
children: /* @__PURE__ */ j("aside", {
|
|
919
1008
|
"aria-label": n.label,
|
|
920
1009
|
className: "x9f619 xh8yej3 x5yr21d xeuugli x1odjw0f x1c8xbx5 xpvm0e4",
|
|
921
1010
|
children: n.content
|
|
@@ -923,20 +1012,20 @@ function je({ header: e, children: t, inspector: n, isResizable: r = !1, inspect
|
|
|
923
1012
|
})
|
|
924
1013
|
]
|
|
925
1014
|
})
|
|
926
|
-
}), /* @__PURE__ */
|
|
1015
|
+
}), /* @__PURE__ */ j("div", {
|
|
927
1016
|
className: "x1s85apg xbv8p1s x98rzlu xeuugli x2lwn1j",
|
|
928
|
-
children: /* @__PURE__ */
|
|
1017
|
+
children: /* @__PURE__ */ j("aside", {
|
|
929
1018
|
"aria-label": n.label,
|
|
930
1019
|
className: "x9f619 x1peuizl x1vx4hiz xeuugli x2lah0s x1odjw0f x1c8xbx5 xpvm0e4 xe0pwq xs311s2 x19ypqd9 x1l3ounx",
|
|
931
1020
|
children: n.content
|
|
932
1021
|
})
|
|
933
|
-
})] }) : /* @__PURE__ */ A
|
|
1022
|
+
})] }) : /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j("div", {
|
|
934
1023
|
...{
|
|
935
1024
|
0: { className: "x1n2onr6 x78zum5 x98rzlu xdt5ytf xeuugli x2lwn1j" },
|
|
936
1025
|
1: { className: "x1n2onr6 x98rzlu xdt5ytf xeuugli x2lwn1j x78zum5 x152g2jv" }
|
|
937
1026
|
}[n !== void 0 | 0],
|
|
938
1027
|
children: t
|
|
939
|
-
}), n !== void 0 && /* @__PURE__ */
|
|
1028
|
+
}), n !== void 0 && /* @__PURE__ */ j("aside", {
|
|
940
1029
|
"aria-label": n.label,
|
|
941
1030
|
className: "x9f619 x1peuizl x1vx4hiz xeuugli x2lah0s x1odjw0f x1c8xbx5 xpvm0e4 xe0pwq xs311s2 x19ypqd9 x1l3ounx",
|
|
942
1031
|
children: n.content
|
|
@@ -944,9 +1033,9 @@ function je({ header: e, children: t, inspector: n, isResizable: r = !1, inspect
|
|
|
944
1033
|
})]
|
|
945
1034
|
});
|
|
946
1035
|
}
|
|
947
|
-
function
|
|
1036
|
+
function ze({ label: e, children: t, isFlush: n = !1, scrollRestorationId: r }) {
|
|
948
1037
|
let i = c();
|
|
949
|
-
return /* @__PURE__ */
|
|
1038
|
+
return /* @__PURE__ */ j("div", {
|
|
950
1039
|
ref: i.ref,
|
|
951
1040
|
role: "region",
|
|
952
1041
|
"aria-label": e,
|
|
@@ -959,21 +1048,21 @@ function Me({ label: e, children: t, isFlush: n = !1, scrollRestorationId: r })
|
|
|
959
1048
|
children: t
|
|
960
1049
|
});
|
|
961
1050
|
}
|
|
962
|
-
function
|
|
963
|
-
return /* @__PURE__ */
|
|
1051
|
+
function Be({ children: e }) {
|
|
1052
|
+
return /* @__PURE__ */ j("div", {
|
|
964
1053
|
className: "x2lah0s x1c8xbx5 x178xt8z x13fuv20 xhjagg4 xpvm0e4",
|
|
965
1054
|
children: e
|
|
966
1055
|
});
|
|
967
1056
|
}
|
|
968
1057
|
// packages/layout/src/view-stack.tsx
|
|
969
|
-
function
|
|
970
|
-
return /* @__PURE__ */
|
|
1058
|
+
function Ve({ children: e }) {
|
|
1059
|
+
return /* @__PURE__ */ j("div", {
|
|
971
1060
|
className: "x1n2onr6 x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j",
|
|
972
1061
|
children: e
|
|
973
1062
|
});
|
|
974
1063
|
}
|
|
975
1064
|
function $({ isActive: e, children: t }) {
|
|
976
|
-
return /* @__PURE__ */
|
|
1065
|
+
return /* @__PURE__ */ j("section", {
|
|
977
1066
|
"aria-hidden": !e,
|
|
978
1067
|
inert: !e,
|
|
979
1068
|
...{
|
|
@@ -983,27 +1072,27 @@ function $({ isActive: e, children: t }) {
|
|
|
983
1072
|
children: t
|
|
984
1073
|
});
|
|
985
1074
|
}
|
|
986
|
-
var
|
|
987
|
-
Root:
|
|
1075
|
+
var He = {
|
|
1076
|
+
Root: Ve,
|
|
988
1077
|
Panel: $
|
|
989
1078
|
};
|
|
990
1079
|
// packages/layout/src/collection-layout.tsx
|
|
991
|
-
function
|
|
992
|
-
return /* @__PURE__ */
|
|
1080
|
+
function Ue({ header: e, children: t }) {
|
|
1081
|
+
return /* @__PURE__ */ M("div", {
|
|
993
1082
|
"data-page-layout": "collection",
|
|
994
1083
|
className: "x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j x7giv3",
|
|
995
|
-
children: [/* @__PURE__ */
|
|
1084
|
+
children: [/* @__PURE__ */ j("div", {
|
|
996
1085
|
className: "x2lah0s xeuugli",
|
|
997
1086
|
children: e
|
|
998
|
-
}), /* @__PURE__ */
|
|
1087
|
+
}), /* @__PURE__ */ j("div", {
|
|
999
1088
|
className: "x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j",
|
|
1000
1089
|
children: t
|
|
1001
1090
|
})]
|
|
1002
1091
|
});
|
|
1003
1092
|
}
|
|
1004
1093
|
// packages/layout/src/record-page.tsx
|
|
1005
|
-
function
|
|
1006
|
-
return /* @__PURE__ */
|
|
1094
|
+
function We({ backLabel: e, backHref: t, onBack: n }) {
|
|
1095
|
+
return /* @__PURE__ */ M(i, {
|
|
1007
1096
|
href: t,
|
|
1008
1097
|
className: "x3nfvp2 x6s0dn4 x1hnptsi xid9utz xeuugli x193iq5w xbixft xkrqix3 x5638nf x13qnu6 x9v5kkp x19rmrnh x1bqaal",
|
|
1009
1098
|
onClick: (e) => {
|
|
@@ -1011,75 +1100,75 @@ function Le({ backLabel: e, backHref: t, onBack: n }) {
|
|
|
1011
1100
|
let t = e.metaKey || e.ctrlKey, r = e.shiftKey || e.altKey;
|
|
1012
1101
|
t || r || (e.preventDefault(), n());
|
|
1013
1102
|
},
|
|
1014
|
-
children: [/* @__PURE__ */
|
|
1103
|
+
children: [/* @__PURE__ */ j(ee, {
|
|
1015
1104
|
size: 16,
|
|
1016
1105
|
"aria-hidden": !0,
|
|
1017
1106
|
className: "x2lah0s"
|
|
1018
|
-
}), /* @__PURE__ */
|
|
1107
|
+
}), /* @__PURE__ */ j("span", {
|
|
1019
1108
|
className: "xeuugli xb3r6kr xlyipyv xuxw1ft",
|
|
1020
1109
|
children: e
|
|
1021
1110
|
})]
|
|
1022
1111
|
});
|
|
1023
1112
|
}
|
|
1024
|
-
function
|
|
1025
|
-
return /* @__PURE__ */
|
|
1113
|
+
function Ge({ navigation: e, children: t, ...n }) {
|
|
1114
|
+
return /* @__PURE__ */ j(H, {
|
|
1026
1115
|
showBreadcrumb: !0,
|
|
1027
1116
|
showNavigation: n.showNavigation ?? !0,
|
|
1028
1117
|
actions: n.actions,
|
|
1029
|
-
title: /* @__PURE__ */
|
|
1118
|
+
title: /* @__PURE__ */ j(We, { ...n }),
|
|
1030
1119
|
navigation: e,
|
|
1031
1120
|
children: t
|
|
1032
1121
|
});
|
|
1033
1122
|
}
|
|
1034
|
-
function
|
|
1035
|
-
return /* @__PURE__ */
|
|
1123
|
+
function Ke({ children: e, isWide: t = !1 }) {
|
|
1124
|
+
return /* @__PURE__ */ j("div", {
|
|
1036
1125
|
className: "x78zum5 xdt5ytf xeuugli xbixft x1hz01jw xtqrqnz x1778rvt xvmahel",
|
|
1037
|
-
children: /* @__PURE__ */
|
|
1126
|
+
children: /* @__PURE__ */ j(X, {
|
|
1038
1127
|
isWide: t,
|
|
1039
|
-
children: /* @__PURE__ */
|
|
1128
|
+
children: /* @__PURE__ */ j("div", {
|
|
1040
1129
|
className: "x78zum5 x1a02dak x1cy8zhl xdz4d12 xeuugli",
|
|
1041
1130
|
children: e
|
|
1042
1131
|
})
|
|
1043
1132
|
})
|
|
1044
1133
|
});
|
|
1045
1134
|
}
|
|
1046
|
-
function
|
|
1047
|
-
return /* @__PURE__ */
|
|
1135
|
+
function qe({ children: e }) {
|
|
1136
|
+
return /* @__PURE__ */ j("div", {
|
|
1048
1137
|
className: "x78zum5 xdt5ytf x1ewej1i x1iyjqo2 xdz4d12 xeuugli",
|
|
1049
1138
|
children: e
|
|
1050
1139
|
});
|
|
1051
1140
|
}
|
|
1052
|
-
function
|
|
1053
|
-
return /* @__PURE__ */
|
|
1141
|
+
function Je({ title: e, description: t, icon: n, titleRef: i }) {
|
|
1142
|
+
return /* @__PURE__ */ M("header", {
|
|
1054
1143
|
className: "xrvj5dj x1n8ia3y xeuugli",
|
|
1055
|
-
children: [/* @__PURE__ */
|
|
1144
|
+
children: [/* @__PURE__ */ M("div", {
|
|
1056
1145
|
className: "x78zum5 x6s0dn4 x1n8ia3y xeuugli",
|
|
1057
|
-
children: [n != null && /* @__PURE__ */
|
|
1146
|
+
children: [n != null && /* @__PURE__ */ j("span", {
|
|
1058
1147
|
"aria-hidden": !0,
|
|
1059
1148
|
className: "x3nfvp2 x6s0dn4 x2lah0s",
|
|
1060
1149
|
children: n
|
|
1061
|
-
}), /* @__PURE__ */
|
|
1062
|
-
render: /* @__PURE__ */
|
|
1150
|
+
}), /* @__PURE__ */ j(I, {
|
|
1151
|
+
render: /* @__PURE__ */ j(o, {}),
|
|
1063
1152
|
ref: i,
|
|
1064
1153
|
tabIndex: -1,
|
|
1065
1154
|
className: "xeuugli x1t137rt",
|
|
1066
1155
|
children: e
|
|
1067
1156
|
})]
|
|
1068
|
-
}), t != null && /* @__PURE__ */
|
|
1157
|
+
}), t != null && /* @__PURE__ */ j(r, { children: t })]
|
|
1069
1158
|
});
|
|
1070
1159
|
}
|
|
1071
|
-
function
|
|
1072
|
-
return /* @__PURE__ */
|
|
1160
|
+
function Ye({ children: e, label: t = "Properties" }) {
|
|
1161
|
+
return /* @__PURE__ */ j("aside", {
|
|
1073
1162
|
"aria-label": t,
|
|
1074
1163
|
className: "x78zum5 xdt5ytf x1irul0l x1iyjqo2 x1j825kq xeuugli",
|
|
1075
1164
|
children: e
|
|
1076
1165
|
});
|
|
1077
1166
|
}
|
|
1078
|
-
var
|
|
1079
|
-
Layout:
|
|
1080
|
-
Body:
|
|
1081
|
-
Content:
|
|
1082
|
-
Header:
|
|
1083
|
-
Aside:
|
|
1167
|
+
var Xe = {
|
|
1168
|
+
Layout: Ge,
|
|
1169
|
+
Body: Ke,
|
|
1170
|
+
Content: qe,
|
|
1171
|
+
Header: Je,
|
|
1172
|
+
Aside: Ye
|
|
1084
1173
|
};
|
|
1085
|
-
export {
|
|
1174
|
+
export { fe as C, F as D, ge as E, me as S, _e as T, H as _, Be as a, de as b, Pe as c, je as d, q as f, Te as g, we as h, Re as i, Ne as l, Oe as m, Ue as n, ze as o, Ee as p, He as r, Q as s, Xe as t, X as u, xe as v, he as w, pe as x, be as y };
|