@mechane-ai/elements 0.32.1 → 0.33.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 +20 -14
- package/dist/ai.js +43 -43
- package/dist/{categorical-values-Devj1xYe.js → categorical-values-bWZBzMpX.js} +2 -2
- package/dist/{chart-frame-DepdezdL.js → chart-frame-Cr4P6MF5.js} +20 -19
- package/dist/{chart-input-8sNm47Rp.js → chart-input-3wX0JoPE.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 +3 -3
- package/dist/charts.js +1 -1
- package/dist/{code-block-B_qJ1JJ3.js → code-block-DT1TCkTC.js} +1 -1
- package/dist/collections.js +47 -46
- 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-BtaiSKk8.js → content-link-B3ObdyZY.js} +1 -1
- package/dist/content.js +1 -1
- package/dist/elements.css +6 -10
- package/dist/feedback.js +1 -1
- package/dist/forms/dates.js +1 -1
- package/dist/forms.js +1 -1
- package/dist/header-styles-COxCYFZx.js +90 -0
- package/dist/index.js +1 -1
- package/dist/layout.js +126 -124
- package/dist/navigation/commands.js +1 -1
- package/dist/navigation.js +171 -76
- package/dist/packages/navigation/src/page-navigation.d.ts +4 -2
- package/dist/packages/navigation/src/tab-styles.d.ts +89 -0
- package/dist/{pierre-tree-CPhT5CUP.js → pierre-tree-Dd5Vd79M.js} +2 -2
- package/dist/{src-BjmKVOb2.js → src-BOZsJ8td.js} +18 -18
- package/dist/{src-CALHXF-U.js → src-C-Sx37kz.js} +373 -458
- package/dist/{src-BPIIuMeE.js → src-CD6veX7n.js} +133 -133
- package/dist/{src-DfPfFOu1.js → src-D9DktxEq.js} +17 -17
- package/package.json +1 -1
package/dist/layout.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as
|
|
1
|
+
import { t as e } from "./header-styles-COxCYFZx.js";
|
|
2
|
+
import { a as t, i as n, t as r } from "./src-d7EAi61b.js";
|
|
3
|
+
import { E as i, T as a, i as o, j as s, n as c, w as l } from "./src-C-Sx37kz.js";
|
|
3
4
|
import { t as u } from "./style-composition-uYlczSsB.js";
|
|
4
5
|
import { t as d } from "./use-scroll-tab-index-Dxpdh4W7.js";
|
|
5
6
|
import { Button as f } from "@base-ui/react/button";
|
|
@@ -85,37 +86,37 @@ var j = {
|
|
|
85
86
|
inline: N.inlineFooter,
|
|
86
87
|
navigation: N.navigationFooter
|
|
87
88
|
};
|
|
88
|
-
function F({ header:
|
|
89
|
-
let
|
|
89
|
+
function F({ header: t, navigationHeader: n, footer: r, close: i, children: a }) {
|
|
90
|
+
let o = _(M), s = o !== null && !o.isExpanded, c = t != null;
|
|
90
91
|
return /* @__PURE__ */ w(S, { children: [
|
|
91
92
|
/* @__PURE__ */ w("div", {
|
|
92
|
-
...m.props(N.header,
|
|
93
|
+
...m.props(N.header, e.blockEnd, !c && N.emptyHeader),
|
|
93
94
|
children: [/* @__PURE__ */ C("div", {
|
|
94
95
|
...{
|
|
95
96
|
0: { className: "x78zum5 x6s0dn4 x98rzlu xeuugli x1dc62k6" },
|
|
96
97
|
1: { className: "x78zum5 x6s0dn4 x98rzlu xeuugli xl56j7k x1l31gyv xnjsko4 x7qzpmf" }
|
|
97
98
|
}[!!s | 0],
|
|
98
|
-
children:
|
|
99
|
-
}),
|
|
99
|
+
children: t
|
|
100
|
+
}), i]
|
|
100
101
|
}),
|
|
101
|
-
|
|
102
|
+
n,
|
|
102
103
|
/* @__PURE__ */ C("div", {
|
|
103
104
|
role: "region",
|
|
104
105
|
"aria-label": "Navigation links",
|
|
105
106
|
className: "x98rzlu x2lwn1j x1odjw0f xish69e x1t137rt x7d1sxj x13qnu6 x9v5kkp x19rmrnh x1bqaal",
|
|
106
|
-
children:
|
|
107
|
+
children: a
|
|
107
108
|
}),
|
|
108
|
-
|
|
109
|
+
r != null && /* @__PURE__ */ C("div", {
|
|
109
110
|
className: "x2lah0s xeuugli xr1yuqi xpvm0e4 x153jb6y",
|
|
110
|
-
children:
|
|
111
|
+
children: r
|
|
111
112
|
})
|
|
112
113
|
] });
|
|
113
114
|
}
|
|
114
115
|
function I() {
|
|
115
116
|
return /* @__PURE__ */ C("div", {
|
|
116
117
|
className: "x78zum5 x6s0dn4 xl56j7k x14j3e4g x2lah0s",
|
|
117
|
-
children: /* @__PURE__ */ C(
|
|
118
|
-
render: /* @__PURE__ */ C(
|
|
118
|
+
children: /* @__PURE__ */ C(t.Close, {
|
|
119
|
+
render: /* @__PURE__ */ C(a, {
|
|
119
120
|
variant: "ghost",
|
|
120
121
|
"aria-label": "Close navigation"
|
|
121
122
|
}),
|
|
@@ -238,35 +239,35 @@ function ne({ children: e, shouldGrow: t = !1 }) {
|
|
|
238
239
|
children: e
|
|
239
240
|
});
|
|
240
241
|
}
|
|
241
|
-
function re({ children:
|
|
242
|
-
let
|
|
242
|
+
function re({ children: t, layout: n = "inline" }) {
|
|
243
|
+
let r = _(M), i = r !== null && !r.isExpanded;
|
|
243
244
|
return /* @__PURE__ */ C("div", {
|
|
244
|
-
...m.props(N.footer,
|
|
245
|
-
children:
|
|
245
|
+
...m.props(N.footer, e.blockStart, i && N.collapsedFooter, P[n]),
|
|
246
|
+
children: t
|
|
246
247
|
});
|
|
247
248
|
}
|
|
248
249
|
function ie() {
|
|
249
|
-
let
|
|
250
|
-
return
|
|
251
|
-
...m.props(N.toggleCell,
|
|
252
|
-
children: /* @__PURE__ */ C(
|
|
253
|
-
ref:
|
|
250
|
+
let n = _(M);
|
|
251
|
+
return n === null ? null : /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C("div", {
|
|
252
|
+
...m.props(N.toggleCell, e.inlineEnd, N.desktop),
|
|
253
|
+
children: /* @__PURE__ */ C(a, {
|
|
254
|
+
ref: n.navigationToggleRef,
|
|
254
255
|
variant: "ghost",
|
|
255
|
-
"aria-label":
|
|
256
|
-
"aria-controls":
|
|
257
|
-
"aria-expanded":
|
|
258
|
-
onClick:
|
|
256
|
+
"aria-label": n.isExpanded ? "Collapse navigation" : "Expand navigation",
|
|
257
|
+
"aria-controls": n.sidebarId,
|
|
258
|
+
"aria-expanded": n.isExpanded,
|
|
259
|
+
onClick: n.onToggle,
|
|
259
260
|
children: /* @__PURE__ */ C(E, {
|
|
260
261
|
size: 16,
|
|
261
262
|
"aria-hidden": !0
|
|
262
263
|
})
|
|
263
264
|
})
|
|
264
265
|
}), /* @__PURE__ */ C("div", {
|
|
265
|
-
...m.props(N.toggleCell,
|
|
266
|
-
children: /* @__PURE__ */ C(
|
|
267
|
-
ref:
|
|
268
|
-
handle:
|
|
269
|
-
render: /* @__PURE__ */ C(
|
|
266
|
+
...m.props(N.toggleCell, e.inlineEnd, N.mobile),
|
|
267
|
+
children: /* @__PURE__ */ C(t.Trigger, {
|
|
268
|
+
ref: n.mobileNavigationToggleRef,
|
|
269
|
+
handle: n.drawerHandle,
|
|
270
|
+
render: /* @__PURE__ */ C(a, {
|
|
270
271
|
variant: "ghost",
|
|
271
272
|
"aria-label": "Open navigation"
|
|
272
273
|
}),
|
|
@@ -308,25 +309,25 @@ var z = g("rail"), B = {
|
|
|
308
309
|
$$css: !0
|
|
309
310
|
}
|
|
310
311
|
};
|
|
311
|
-
function V({ label:
|
|
312
|
-
let
|
|
312
|
+
function V({ label: e, links: t, action: n }) {
|
|
313
|
+
let o = _(z) === "drawer", c = _(M);
|
|
313
314
|
function u(e, t) {
|
|
314
315
|
e?.(t);
|
|
315
316
|
let n = t.metaKey || t.ctrlKey, r = t.shiftKey || t.altKey;
|
|
316
317
|
t.button !== 0 || n || r || c?.onNavigate();
|
|
317
318
|
}
|
|
318
319
|
let d = (e) => {
|
|
319
|
-
|
|
320
|
+
n?.onClick(e), e.defaultPrevented || c?.onNavigate();
|
|
320
321
|
};
|
|
321
|
-
return
|
|
322
|
+
return o ? /* @__PURE__ */ w("div", {
|
|
322
323
|
className: "x78zum5 xdt5ytf x1qjc9v5 x2lah0s xeuugli",
|
|
323
324
|
children: [/* @__PURE__ */ C("nav", {
|
|
324
|
-
"aria-label":
|
|
325
|
+
"aria-label": e,
|
|
325
326
|
className: "xrvj5dj x1mt1orb x1rnidkh xunmzkg x1s01oa9",
|
|
326
|
-
children:
|
|
327
|
-
...p(m.props(
|
|
328
|
-
"aria-current":
|
|
329
|
-
onClick: (e) => u(
|
|
327
|
+
children: t.map(({ label: e, icon: t, isCurrent: n = !1, ...r }) => /* @__PURE__ */ w("a", {
|
|
328
|
+
...p(m.props(s.base, s.button, B.mobileLink, B.rounded, B.selected), r),
|
|
329
|
+
"aria-current": n ? "location" : void 0,
|
|
330
|
+
onClick: (e) => u(r.onClick, e),
|
|
330
331
|
children: [/* @__PURE__ */ C("span", {
|
|
331
332
|
"aria-hidden": !0,
|
|
332
333
|
className: "x3nfvp2 x2lah0s xtwnzbg x18utl2x",
|
|
@@ -335,51 +336,51 @@ function V({ label: i, links: a, action: o }) {
|
|
|
335
336
|
className: "xeuugli x193iq5w xj0a0fe",
|
|
336
337
|
children: e
|
|
337
338
|
})]
|
|
338
|
-
},
|
|
339
|
-
}),
|
|
339
|
+
}, r.href))
|
|
340
|
+
}), n !== void 0 && /* @__PURE__ */ C("div", {
|
|
340
341
|
className: "xrvj5dj x14w6jbu xngumbj xso031l x1q0q8m5 x1qndepd",
|
|
341
|
-
children: /* @__PURE__ */ w(
|
|
342
|
+
children: /* @__PURE__ */ w(l, {
|
|
342
343
|
variant: "ghost",
|
|
343
344
|
onClick: d,
|
|
344
345
|
children: [/* @__PURE__ */ C("span", {
|
|
345
346
|
"aria-hidden": !0,
|
|
346
347
|
className: "x3nfvp2 x2lah0s xtwnzbg x18utl2x",
|
|
347
|
-
children:
|
|
348
|
-
}),
|
|
348
|
+
children: n.icon
|
|
349
|
+
}), n.label]
|
|
349
350
|
})
|
|
350
351
|
})]
|
|
351
|
-
}) : /* @__PURE__ */ C(
|
|
352
|
+
}) : /* @__PURE__ */ C(r.Provider, { children: /* @__PURE__ */ w("div", {
|
|
352
353
|
className: "x78zum5 xdt5ytf x1qjc9v5 x2lah0s xeuugli",
|
|
353
354
|
children: [/* @__PURE__ */ C("nav", {
|
|
354
|
-
"aria-label":
|
|
355
|
+
"aria-label": e,
|
|
355
356
|
className: "x78zum5 xdt5ytf x1qjc9v5",
|
|
356
|
-
children:
|
|
357
|
+
children: t.map(({ label: e, icon: t, isCurrent: n = !1, ...a }) => /* @__PURE__ */ C("div", {
|
|
357
358
|
className: "x1n2onr6 x78zum5 x6s0dn4 xl56j7k x1oec0jp",
|
|
358
|
-
children: /* @__PURE__ */ w(
|
|
359
|
-
render: /* @__PURE__ */ C(
|
|
360
|
-
...p({ className: "x1yk04ar" },
|
|
361
|
-
"aria-label":
|
|
362
|
-
"aria-current":
|
|
363
|
-
onClick: (e) => u(
|
|
359
|
+
children: /* @__PURE__ */ w(r.Root, { children: [/* @__PURE__ */ C(r.Trigger, {
|
|
360
|
+
render: /* @__PURE__ */ C(i, {
|
|
361
|
+
...p({ className: "x1yk04ar" }, a),
|
|
362
|
+
"aria-label": e,
|
|
363
|
+
"aria-current": n ? "location" : void 0,
|
|
364
|
+
onClick: (e) => u(a.onClick, e)
|
|
364
365
|
}),
|
|
365
|
-
children:
|
|
366
|
-
}), /* @__PURE__ */ C(
|
|
366
|
+
children: t
|
|
367
|
+
}), /* @__PURE__ */ C(r.Portal, { children: /* @__PURE__ */ C(r.Positioner, {
|
|
367
368
|
side: "right",
|
|
368
|
-
children: /* @__PURE__ */ C(
|
|
369
|
+
children: /* @__PURE__ */ C(r.Popup, { children: e })
|
|
369
370
|
}) })] })
|
|
370
|
-
},
|
|
371
|
-
}),
|
|
371
|
+
}, a.href))
|
|
372
|
+
}), n !== void 0 && /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C("hr", { className: "xc342km x178xt8z x13fuv20 xhjagg4 xv06hpe xn92wy8" }), /* @__PURE__ */ C("div", {
|
|
372
373
|
className: "x1n2onr6 x78zum5 x6s0dn4 xl56j7k x1oec0jp",
|
|
373
|
-
children: /* @__PURE__ */ w(
|
|
374
|
-
render: /* @__PURE__ */ C(
|
|
374
|
+
children: /* @__PURE__ */ w(r.Root, { children: [/* @__PURE__ */ C(r.Trigger, {
|
|
375
|
+
render: /* @__PURE__ */ C(a, {
|
|
375
376
|
variant: "ghost",
|
|
376
|
-
"aria-label":
|
|
377
|
+
"aria-label": n.label
|
|
377
378
|
}),
|
|
378
379
|
onClick: d,
|
|
379
|
-
children:
|
|
380
|
-
}), /* @__PURE__ */ C(
|
|
380
|
+
children: n.icon
|
|
381
|
+
}), /* @__PURE__ */ C(r.Portal, { children: /* @__PURE__ */ C(r.Positioner, {
|
|
381
382
|
side: "right",
|
|
382
|
-
children: /* @__PURE__ */ C(
|
|
383
|
+
children: /* @__PURE__ */ C(r.Popup, { children: n.label })
|
|
383
384
|
}) })] })
|
|
384
385
|
})] })]
|
|
385
386
|
}) });
|
|
@@ -422,8 +423,8 @@ var H = {
|
|
|
422
423
|
$$css: !0
|
|
423
424
|
}
|
|
424
425
|
};
|
|
425
|
-
function U({ rail:
|
|
426
|
-
let u =
|
|
426
|
+
function U({ rail: n, railFooter: r, sidebarHeader: i, sidebar: a, footer: o, children: s, mainId: c = "main", shouldFocus: l = !1 }) {
|
|
427
|
+
let u = n != null, d = r != null, [f, p] = x(!0), [h, g] = x(!1), _ = l || u && !f, [T] = x(() => t.createHandle()), E = y(), D = b(null), O = b(null), k = b(null), A = b(!1);
|
|
427
428
|
return v(() => {
|
|
428
429
|
let e = globalThis.matchMedia(j.sidebarDesktopQuery);
|
|
429
430
|
function t() {
|
|
@@ -447,15 +448,15 @@ function U({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, ch
|
|
|
447
448
|
children: [
|
|
448
449
|
u && /* @__PURE__ */ w("div", {
|
|
449
450
|
hidden: l,
|
|
450
|
-
...m.props(H.sidebar,
|
|
451
|
+
...m.props(H.sidebar, e.inlineEnd, H.rail, l && H.hidden),
|
|
451
452
|
children: [/* @__PURE__ */ C("div", {
|
|
452
453
|
className: "x98rzlu x2lwn1j x1odjw0f x1e4zzel",
|
|
453
|
-
children:
|
|
454
|
+
children: n
|
|
454
455
|
}), d && /* @__PURE__ */ C("div", {
|
|
455
456
|
className: "x2lah0s x1a148e8",
|
|
456
457
|
children: /* @__PURE__ */ C("div", {
|
|
457
458
|
className: "x78zum5 x6s0dn4 xl56j7k x14j3e4g xnyqvp6",
|
|
458
|
-
children:
|
|
459
|
+
children: r
|
|
459
460
|
})
|
|
460
461
|
})]
|
|
461
462
|
}),
|
|
@@ -463,25 +464,25 @@ function U({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, ch
|
|
|
463
464
|
id: E,
|
|
464
465
|
"aria-label": "Navigation",
|
|
465
466
|
hidden: _,
|
|
466
|
-
...m.props(H.sidebar,
|
|
467
|
+
...m.props(H.sidebar, e.inlineEnd, u && H.secondary, !u && !f && H.collapsed, _ && H.hidden),
|
|
467
468
|
children: /* @__PURE__ */ C(F, {
|
|
468
|
-
header:
|
|
469
|
-
footer:
|
|
470
|
-
children:
|
|
469
|
+
header: i,
|
|
470
|
+
footer: o,
|
|
471
|
+
children: a
|
|
471
472
|
})
|
|
472
473
|
}),
|
|
473
474
|
/* @__PURE__ */ C("main", {
|
|
474
475
|
id: c,
|
|
475
476
|
tabIndex: -1,
|
|
476
477
|
className: "xeuugli x98rzlu",
|
|
477
|
-
children:
|
|
478
|
+
children: s
|
|
478
479
|
})
|
|
479
480
|
]
|
|
480
|
-
}), /* @__PURE__ */ C(
|
|
481
|
+
}), /* @__PURE__ */ C(t.Root, {
|
|
481
482
|
handle: T,
|
|
482
483
|
open: h && !l,
|
|
483
484
|
onOpenChange: g,
|
|
484
|
-
children: /* @__PURE__ */ w(
|
|
485
|
+
children: /* @__PURE__ */ w(t.Portal, { children: [/* @__PURE__ */ C(t.Backdrop, {}), /* @__PURE__ */ C(t.Viewport, { children: /* @__PURE__ */ w(t.Popup, {
|
|
485
486
|
ref: k,
|
|
486
487
|
xstyle: H.drawer,
|
|
487
488
|
finalFocus: () => {
|
|
@@ -496,27 +497,27 @@ function U({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, ch
|
|
|
496
497
|
}
|
|
497
498
|
return globalThis.matchMedia(j.sidebarDesktopQuery).matches ? D.current : O.current;
|
|
498
499
|
},
|
|
499
|
-
children: [/* @__PURE__ */ C(
|
|
500
|
+
children: [/* @__PURE__ */ C(t.Title, {
|
|
500
501
|
isVisuallyHidden: !0,
|
|
501
502
|
children: "Navigation"
|
|
502
503
|
}), /* @__PURE__ */ C(F, {
|
|
503
|
-
header:
|
|
504
|
+
header: i,
|
|
504
505
|
navigationHeader: u && /* @__PURE__ */ C(z.Provider, {
|
|
505
506
|
value: "drawer",
|
|
506
|
-
children:
|
|
507
|
+
children: n
|
|
507
508
|
}),
|
|
508
|
-
footer: /* @__PURE__ */ w(S, { children: [
|
|
509
|
+
footer: /* @__PURE__ */ w(S, { children: [o, u && d && /* @__PURE__ */ C(z.Provider, {
|
|
509
510
|
value: "drawer",
|
|
510
511
|
children: /* @__PURE__ */ C("div", {
|
|
511
512
|
className: "x2lah0s x1a148e8",
|
|
512
513
|
children: /* @__PURE__ */ C("div", {
|
|
513
514
|
className: "x78zum5 x6s0dn4 xl56j7k x14j3e4g xnyqvp6",
|
|
514
|
-
children:
|
|
515
|
+
children: r
|
|
515
516
|
})
|
|
516
517
|
})
|
|
517
518
|
})] }),
|
|
518
519
|
close: /* @__PURE__ */ C(I, {}),
|
|
519
|
-
children:
|
|
520
|
+
children: a
|
|
520
521
|
})]
|
|
521
522
|
}) })] })
|
|
522
523
|
})]
|
|
@@ -533,38 +534,38 @@ var W = {
|
|
|
533
534
|
align: "start"
|
|
534
535
|
}
|
|
535
536
|
};
|
|
536
|
-
function G({ label: e, icon:
|
|
537
|
-
let
|
|
537
|
+
function G({ label: e, icon: t, children: i }) {
|
|
538
|
+
let o = _(z), [s, c] = x(!1);
|
|
538
539
|
return v(() => {
|
|
539
540
|
let e = globalThis.matchMedia(j.sidebarDesktopQuery);
|
|
540
541
|
function t() {
|
|
541
|
-
|
|
542
|
+
c(!1);
|
|
542
543
|
}
|
|
543
544
|
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
|
|
544
|
-
}, []), /* @__PURE__ */ w(
|
|
545
|
-
open:
|
|
546
|
-
onOpenChange:
|
|
545
|
+
}, []), /* @__PURE__ */ w(n.Root, {
|
|
546
|
+
open: s,
|
|
547
|
+
onOpenChange: c,
|
|
547
548
|
modal: !1,
|
|
548
|
-
children: [/* @__PURE__ */ C(
|
|
549
|
-
disabled:
|
|
550
|
-
children: [/* @__PURE__ */ C(
|
|
551
|
-
render: /* @__PURE__ */ C(
|
|
549
|
+
children: [/* @__PURE__ */ C(r.Provider, { children: /* @__PURE__ */ w(r.Root, {
|
|
550
|
+
disabled: s || o === "drawer",
|
|
551
|
+
children: [/* @__PURE__ */ C(r.Trigger, {
|
|
552
|
+
render: /* @__PURE__ */ C(n.Trigger, { render: /* @__PURE__ */ C(a, {
|
|
552
553
|
variant: "ghost",
|
|
553
554
|
"aria-label": e
|
|
554
555
|
}) }),
|
|
555
|
-
children:
|
|
556
|
-
}), /* @__PURE__ */ C(
|
|
556
|
+
children: t
|
|
557
|
+
}), /* @__PURE__ */ C(r.Portal, { children: /* @__PURE__ */ C(r.Positioner, {
|
|
557
558
|
side: "right",
|
|
558
|
-
children: /* @__PURE__ */ C(
|
|
559
|
+
children: /* @__PURE__ */ C(r.Popup, { children: e })
|
|
559
560
|
}) })]
|
|
560
|
-
}) }), /* @__PURE__ */ C(
|
|
561
|
-
...W[
|
|
561
|
+
}) }), /* @__PURE__ */ C(n.Portal, { children: /* @__PURE__ */ C(n.Positioner, {
|
|
562
|
+
...W[o],
|
|
562
563
|
sideOffset: 4,
|
|
563
564
|
collisionPadding: 8,
|
|
564
|
-
children: /* @__PURE__ */ C(
|
|
565
|
+
children: /* @__PURE__ */ C(n.Popup, {
|
|
565
566
|
"aria-label": e,
|
|
566
567
|
className: "x1uncgzr",
|
|
567
|
-
children:
|
|
568
|
+
children: i
|
|
568
569
|
})
|
|
569
570
|
}) })]
|
|
570
571
|
});
|
|
@@ -661,10 +662,11 @@ var ce = {
|
|
|
661
662
|
kB7OPa: "x9f619",
|
|
662
663
|
kVAEAm: "x1n2onr6",
|
|
663
664
|
k1xSpc: "x78zum5",
|
|
665
|
+
kwnvtZ: "x1a02dak",
|
|
664
666
|
k9g6sI: "x12h1iku",
|
|
665
667
|
kanfag: "x14ut1dr",
|
|
666
668
|
kGNEyG: "x1qjc9v5",
|
|
667
|
-
|
|
669
|
+
kAzted: "x1oec0jp",
|
|
668
670
|
kmuXW: "x2lah0s",
|
|
669
671
|
kWkggS: "xpvm0e4",
|
|
670
672
|
kMwMTN: "xbixft",
|
|
@@ -682,60 +684,60 @@ var ce = {
|
|
|
682
684
|
$$css: !0
|
|
683
685
|
}
|
|
684
686
|
};
|
|
685
|
-
function Z({ title:
|
|
686
|
-
let s = h.toArray(
|
|
687
|
+
function Z({ title: t, actions: n, showBreadcrumb: r = !1, showNavigation: i = !0, views: a, leading: o }) {
|
|
688
|
+
let s = h.toArray(t).length > 0, c = h.toArray(n).length > 0, l = h.toArray(a).length > 0, u = h.toArray(o).length > 0;
|
|
687
689
|
if (h.toArray([
|
|
688
|
-
e,
|
|
689
690
|
t,
|
|
690
|
-
|
|
691
|
-
a
|
|
691
|
+
n,
|
|
692
|
+
a,
|
|
693
|
+
o
|
|
692
694
|
]).length === 0) return null;
|
|
693
|
-
let d =
|
|
695
|
+
let d = r ? "nav" : "h1", f = r ? "div" : "span";
|
|
694
696
|
return /* @__PURE__ */ w("div", {
|
|
695
|
-
...m.props(X.toolbar,
|
|
697
|
+
...m.props(X.toolbar, e.blockEnd),
|
|
696
698
|
children: [
|
|
697
699
|
u ? /* @__PURE__ */ C("div", {
|
|
698
700
|
className: "x78zum5 x6s0dn4 xyibt8p x2lah0s",
|
|
699
|
-
children:
|
|
700
|
-
}) :
|
|
701
|
+
children: o
|
|
702
|
+
}) : i && /* @__PURE__ */ C(ie, {}),
|
|
701
703
|
s && /* @__PURE__ */ C(d, {
|
|
702
|
-
tabIndex:
|
|
703
|
-
"aria-label":
|
|
704
|
-
className: "x78zum5 x6s0dn4 x1hnptsi x1dc62k6
|
|
704
|
+
tabIndex: r ? void 0 : -1,
|
|
705
|
+
"aria-label": r ? "Breadcrumb" : void 0,
|
|
706
|
+
className: "x78zum5 x6s0dn4 x1hnptsi x1dc62k6 xjnfzvw x1oec0jp x1cqoux5 x1ghz6dp x1qlqyl8 xj57cvi x1t137rt",
|
|
705
707
|
children: /* @__PURE__ */ C(f, {
|
|
706
708
|
className: "xeuugli xb3r6kr xlyipyv xuxw1ft",
|
|
707
|
-
children:
|
|
709
|
+
children: t
|
|
708
710
|
})
|
|
709
711
|
}),
|
|
710
712
|
l && /* @__PURE__ */ C("div", {
|
|
711
713
|
className: "x78zum5 x6s0dn4 xeuugli x2lah0s",
|
|
712
|
-
children:
|
|
714
|
+
children: a
|
|
713
715
|
}),
|
|
714
716
|
c && /* @__PURE__ */ C("div", {
|
|
715
|
-
className: "x78zum5 x6s0dn4 xunmzkg x1dc62k6 xeuugli
|
|
716
|
-
children:
|
|
717
|
+
className: "x78zum5 x1a02dak x6s0dn4 xunmzkg x1dc62k6 xeuugli x1oec0jp x193iq5w x9f619 xs83m0k x8x9d4c",
|
|
718
|
+
children: n
|
|
717
719
|
})
|
|
718
720
|
]
|
|
719
721
|
});
|
|
720
722
|
}
|
|
721
723
|
function le({ icon: e, children: t, ...n }) {
|
|
722
|
-
let
|
|
724
|
+
let r = e != null;
|
|
723
725
|
return /* @__PURE__ */ C("div", {
|
|
724
726
|
className: "x9f619 x78zum5 x1qjc9v5 xeuugli",
|
|
725
|
-
children: /* @__PURE__ */ w(
|
|
727
|
+
children: /* @__PURE__ */ w(l, {
|
|
726
728
|
...n,
|
|
727
729
|
variant: "ghost",
|
|
728
730
|
"aria-label": n["aria-label"] ?? (typeof t == "string" ? t : void 0),
|
|
729
731
|
xstyle: X.action,
|
|
730
|
-
children: [
|
|
732
|
+
children: [r && /* @__PURE__ */ C("span", {
|
|
731
733
|
"aria-hidden": !0,
|
|
732
734
|
className: "x3nfvp2 x2lah0s x6s0dn4",
|
|
733
735
|
children: e
|
|
734
|
-
}),
|
|
736
|
+
}), r || typeof t == "string" ? /* @__PURE__ */ C("span", {
|
|
735
737
|
...{
|
|
736
738
|
0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
|
|
737
739
|
1: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft xt0psk2 xlllsrz" }
|
|
738
|
-
}[!!
|
|
740
|
+
}[!!r | 0],
|
|
739
741
|
children: t
|
|
740
742
|
}) : t]
|
|
741
743
|
})
|
|
@@ -825,13 +827,13 @@ function he({ title: e, description: t, icon: n, titleRef: r }) {
|
|
|
825
827
|
"aria-hidden": !0,
|
|
826
828
|
className: "x3nfvp2 x6s0dn4 x2lah0s",
|
|
827
829
|
children: n
|
|
828
|
-
}), /* @__PURE__ */ C(
|
|
830
|
+
}), /* @__PURE__ */ C(c, {
|
|
829
831
|
ref: r,
|
|
830
832
|
tabIndex: -1,
|
|
831
833
|
className: "xeuugli x1t137rt",
|
|
832
834
|
children: e
|
|
833
835
|
})]
|
|
834
|
-
}), t != null && /* @__PURE__ */ C(
|
|
836
|
+
}), t != null && /* @__PURE__ */ C(o, { children: t })]
|
|
835
837
|
});
|
|
836
838
|
}
|
|
837
839
|
function ge({ children: e, label: t = "Properties" }) {
|