@mechane-ai/elements 0.25.0 → 0.27.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 +9 -6
- package/dist/ai.js +56 -56
- package/dist/{categorical-values-CPRt9uzI.js → categorical-values-DqoH9l1M.js} +2 -2
- package/dist/chart-frame-CYdrUwvP.js +239 -0
- package/dist/{chart-input-DDAjzy-O.js → chart-input--Q3Jdono.js} +4 -3
- package/dist/charts/cartesian.js +527 -434
- package/dist/charts/distribution.js +134 -126
- package/dist/charts/graph.js +46 -43
- package/dist/charts/hierarchy.js +28 -26
- package/dist/charts/matrix.js +81 -77
- package/dist/charts/timeline.js +87 -80
- package/dist/charts.js +1 -1
- package/dist/{code-block-DENC5fD_.js → code-block-DPeyW4sm.js} +3 -3
- package/dist/collections.js +55 -54
- package/dist/content/code.js +1 -1
- package/dist/content/diff.js +10 -10
- 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-CGIua9If.js → content-link-5oRGjDHa.js} +1 -1
- package/dist/content.js +18 -18
- package/dist/elements.css +22 -0
- package/dist/feedback.js +1 -1
- package/dist/forms/dates.js +7 -7
- package/dist/forms.js +1 -1
- package/dist/index.js +1 -1
- package/dist/layout.js +125 -97
- package/dist/navigation/commands.js +1 -1
- package/dist/navigation.js +61 -25
- package/dist/packages/charts/src/cartesian/bar-chart.d.ts +5 -4
- package/dist/packages/charts/src/cartesian/breakdown-bar.d.ts +3 -2
- package/dist/packages/charts/src/cartesian/index.d.ts +2 -2
- package/dist/packages/charts/src/cartesian/scatter-plot.d.ts +2 -1
- package/dist/packages/charts/src/cartesian/time-series.d.ts +12 -3
- package/dist/packages/charts/src/chart-frame.d.ts +15 -7
- package/dist/packages/charts/src/chart-input.d.ts +3 -1
- package/dist/packages/charts/src/chart-inspection.d.ts +3 -1
- package/dist/packages/charts/src/chart-series-summary.d.ts +6 -0
- package/dist/packages/charts/src/chart-theme.d.ts +5 -0
- package/dist/packages/charts/src/distribution/ecdf.d.ts +3 -2
- package/dist/packages/charts/src/distribution/histogram.d.ts +3 -2
- package/dist/packages/charts/src/distribution/interval-plot.d.ts +3 -2
- package/dist/packages/charts/src/distribution/ranked-bars.d.ts +3 -2
- package/dist/packages/charts/src/graph/relation-graph.d.ts +3 -2
- package/dist/packages/charts/src/hierarchy/treemap.d.ts +3 -2
- package/dist/packages/charts/src/index.d.ts +1 -1
- package/dist/packages/charts/src/matrix/matrix.d.ts +3 -2
- package/dist/packages/charts/src/matrix/token-heatmap.d.ts +3 -2
- package/dist/packages/charts/src/timeline/waterfall.d.ts +4 -1
- package/dist/packages/core/src/index.d.ts +2 -0
- package/dist/packages/core/src/section-heading.d.ts +8 -0
- package/dist/packages/layout/src/collection-layout.d.ts +6 -0
- package/dist/packages/layout/src/detail-page.d.ts +2 -1
- package/dist/packages/layout/src/index.d.ts +4 -0
- package/dist/packages/layout/src/record-page.d.ts +2 -1
- package/dist/packages/layout/src/report-content.d.ts +6 -0
- package/dist/packages/navigation/src/content-tabs.d.ts +17 -0
- package/dist/packages/navigation/src/index.d.ts +2 -0
- package/dist/{pierre-diff-CHQsoQSZ.js → pierre-diff-C3U_qae6.js} +1 -1
- package/dist/{pierre-theme-CLgk9v3e.js → pierre-theme-DsrSwl5m.js} +19 -20
- package/dist/{pierre-tree-C3nKYyoN.js → pierre-tree-KSFewJrY.js} +4 -4
- package/dist/{src-CQOgWIzP.js → src-DYwAhQHt.js} +98 -98
- package/dist/{src-DLReNPV9.js → src-E3Or8tkO.js} +38 -18
- package/dist/{src-DHYcohZP.js → src-eWcNz_oB.js} +25 -26
- package/dist/tokens.js +1 -3
- package/dist/{tokens.stylex-DTHHFbyl.js → tokens.stylex-BoRZ3D8s.js} +92 -12
- package/package.json +1 -1
- package/dist/chart-frame-CNr8M_b2.js +0 -166
- package/dist/constants.stylex-BILvnwUk.js +0 -84
package/dist/layout.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as e, i as t, t as n } from "./src-d7EAi61b.js";
|
|
2
|
-
import {
|
|
2
|
+
import { E as r, T as i, i as a, k as o, m as s, n as c, w as l } from "./src-E3Or8tkO.js";
|
|
3
3
|
import { t as u } from "./style-composition-uYlczSsB.js";
|
|
4
4
|
import { t as d } from "./use-scroll-tab-index-Dxpdh4W7.js";
|
|
5
5
|
import { Button as f } from "@base-ui/react/button";
|
|
@@ -84,7 +84,7 @@ function ee() {
|
|
|
84
84
|
return /* @__PURE__ */ C("div", {
|
|
85
85
|
className: "x78zum5 x6s0dn4 xl56j7k x14j3e4g x2lah0s",
|
|
86
86
|
children: /* @__PURE__ */ C(e.Close, {
|
|
87
|
-
render: /* @__PURE__ */ C(
|
|
87
|
+
render: /* @__PURE__ */ C(i, {
|
|
88
88
|
variant: "ghost",
|
|
89
89
|
"aria-label": "Close navigation"
|
|
90
90
|
}),
|
|
@@ -106,7 +106,7 @@ function te({ children: e, label: t = "Main" }) {
|
|
|
106
106
|
children: e
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function ne({ children: e, label: t }) {
|
|
110
110
|
let n = _(M), r = n !== null && !n.isExpanded, i = y();
|
|
111
111
|
return /* @__PURE__ */ w("section", {
|
|
112
112
|
"aria-labelledby": i,
|
|
@@ -121,7 +121,7 @@ function I({ children: e, label: t }) {
|
|
|
121
121
|
}), e]
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function re({ children: e, icon: t, isSelected: n = !1, shouldCloseOnActivate: r = !0, onClick: i, className: a, style: o, ...s }) {
|
|
125
125
|
let c = _(M), l = y(), d = c !== null && !c.isExpanded;
|
|
126
126
|
return /* @__PURE__ */ C("div", {
|
|
127
127
|
...{
|
|
@@ -159,7 +159,7 @@ function L({ children: e, icon: t, isSelected: n = !1, shouldCloseOnActivate: r
|
|
|
159
159
|
})
|
|
160
160
|
});
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function I({ children: e, icon: t, isSelected: n = !1, onClick: r, className: i, style: a, ...o }) {
|
|
163
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" },
|
|
@@ -195,7 +195,7 @@ function R({ children: e, icon: t, isSelected: n = !1, onClick: r, className: i,
|
|
|
195
195
|
})]
|
|
196
196
|
});
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function L({ children: e, shouldGrow: t = !1 }) {
|
|
199
199
|
let n = _(M), r = n !== null && !n.isExpanded;
|
|
200
200
|
return /* @__PURE__ */ C("span", {
|
|
201
201
|
...{
|
|
@@ -207,18 +207,18 @@ function z({ children: e, shouldGrow: t = !1 }) {
|
|
|
207
207
|
children: e
|
|
208
208
|
});
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function R({ children: e, layout: t = "inline" }) {
|
|
211
211
|
let n = _(M), r = n !== null && !n.isExpanded;
|
|
212
212
|
return /* @__PURE__ */ C("div", {
|
|
213
213
|
...m.props(N.footer, r && N.collapsedFooter, P[t]),
|
|
214
214
|
children: e
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function z() {
|
|
218
218
|
let t = _(M);
|
|
219
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__ */ C(
|
|
221
|
+
children: /* @__PURE__ */ C(i, {
|
|
222
222
|
ref: t.navigationToggleRef,
|
|
223
223
|
variant: "ghost",
|
|
224
224
|
"aria-label": t.isExpanded ? "Collapse navigation" : "Expand navigation",
|
|
@@ -235,7 +235,7 @@ function V() {
|
|
|
235
235
|
children: /* @__PURE__ */ C(e.Trigger, {
|
|
236
236
|
ref: t.mobileNavigationToggleRef,
|
|
237
237
|
handle: t.drawerHandle,
|
|
238
|
-
render: /* @__PURE__ */ C(
|
|
238
|
+
render: /* @__PURE__ */ C(i, {
|
|
239
239
|
variant: "ghost",
|
|
240
240
|
"aria-label": "Open navigation"
|
|
241
241
|
}),
|
|
@@ -247,7 +247,7 @@ function V() {
|
|
|
247
247
|
})] });
|
|
248
248
|
}
|
|
249
249
|
// packages/layout/src/navigation-rail.tsx
|
|
250
|
-
var
|
|
250
|
+
var B = g("rail"), V = {
|
|
251
251
|
selected: {
|
|
252
252
|
kHjaVl: "x1yk04ar",
|
|
253
253
|
$$css: !0
|
|
@@ -277,15 +277,15 @@ var H = g("rail"), U = {
|
|
|
277
277
|
$$css: !0
|
|
278
278
|
}
|
|
279
279
|
};
|
|
280
|
-
function
|
|
281
|
-
let s = _(
|
|
280
|
+
function H({ label: e, links: t, action: a }) {
|
|
281
|
+
let s = _(B) === "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
285
|
t.button !== 0 || n || r || c?.onNavigate();
|
|
286
286
|
}
|
|
287
287
|
let d = (e) => {
|
|
288
|
-
|
|
288
|
+
a?.onClick(e), e.defaultPrevented || c?.onNavigate();
|
|
289
289
|
};
|
|
290
290
|
return s ? /* @__PURE__ */ w("div", {
|
|
291
291
|
className: "x78zum5 xdt5ytf x1qjc9v5 x2lah0s xeuugli",
|
|
@@ -293,7 +293,7 @@ function W({ label: e, links: t, action: o }) {
|
|
|
293
293
|
"aria-label": e,
|
|
294
294
|
className: "xrvj5dj x1mt1orb x1rnidkh xunmzkg x1s01oa9",
|
|
295
295
|
children: t.map(({ label: e, icon: t, isCurrent: n = !1, ...r }) => /* @__PURE__ */ w("a", {
|
|
296
|
-
...p(m.props(
|
|
296
|
+
...p(m.props(o.base, o.button, V.mobileLink, V.rounded, V.selected), r),
|
|
297
297
|
"aria-current": n ? "location" : void 0,
|
|
298
298
|
onClick: (e) => u(r.onClick, e),
|
|
299
299
|
children: [/* @__PURE__ */ C("span", {
|
|
@@ -305,16 +305,16 @@ function W({ label: e, links: t, action: o }) {
|
|
|
305
305
|
children: e
|
|
306
306
|
})]
|
|
307
307
|
}, r.href))
|
|
308
|
-
}),
|
|
308
|
+
}), a !== void 0 && /* @__PURE__ */ C("div", {
|
|
309
309
|
className: "xrvj5dj x14w6jbu xngumbj xso031l x1q0q8m5 x1qndepd",
|
|
310
|
-
children: /* @__PURE__ */ w(
|
|
310
|
+
children: /* @__PURE__ */ w(l, {
|
|
311
311
|
variant: "ghost",
|
|
312
312
|
onClick: d,
|
|
313
313
|
children: [/* @__PURE__ */ C("span", {
|
|
314
314
|
"aria-hidden": !0,
|
|
315
315
|
className: "x3nfvp2 x2lah0s xtwnzbg x18utl2x",
|
|
316
|
-
children:
|
|
317
|
-
}),
|
|
316
|
+
children: a.icon
|
|
317
|
+
}), a.label]
|
|
318
318
|
})
|
|
319
319
|
})]
|
|
320
320
|
}) : /* @__PURE__ */ C(n.Provider, { children: /* @__PURE__ */ w("div", {
|
|
@@ -322,44 +322,44 @@ function W({ label: e, links: t, action: o }) {
|
|
|
322
322
|
children: [/* @__PURE__ */ C("nav", {
|
|
323
323
|
"aria-label": e,
|
|
324
324
|
className: "x78zum5 xdt5ytf x1qjc9v5",
|
|
325
|
-
children: t.map(({ label: e, icon: t, isCurrent:
|
|
325
|
+
children: t.map(({ label: e, icon: t, isCurrent: i = !1, ...a }) => /* @__PURE__ */ C("div", {
|
|
326
326
|
className: "x1n2onr6 x78zum5 x6s0dn4 xl56j7k x1oec0jp",
|
|
327
327
|
children: /* @__PURE__ */ w(n.Root, { children: [/* @__PURE__ */ C(n.Trigger, {
|
|
328
|
-
render: /* @__PURE__ */ C(
|
|
329
|
-
...p({ className: "x1yk04ar" },
|
|
328
|
+
render: /* @__PURE__ */ C(r, {
|
|
329
|
+
...p({ className: "x1yk04ar" }, a),
|
|
330
330
|
"aria-label": e,
|
|
331
|
-
"aria-current":
|
|
332
|
-
onClick: (e) => u(
|
|
331
|
+
"aria-current": i ? "location" : void 0,
|
|
332
|
+
onClick: (e) => u(a.onClick, e)
|
|
333
333
|
}),
|
|
334
334
|
children: t
|
|
335
335
|
}), /* @__PURE__ */ C(n.Portal, { children: /* @__PURE__ */ C(n.Positioner, {
|
|
336
336
|
side: "right",
|
|
337
337
|
children: /* @__PURE__ */ C(n.Popup, { children: e })
|
|
338
338
|
}) })] })
|
|
339
|
-
},
|
|
340
|
-
}),
|
|
339
|
+
}, a.href))
|
|
340
|
+
}), a !== void 0 && /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C("hr", { className: "xc342km x178xt8z x13fuv20 xhjagg4 xv06hpe xn92wy8" }), /* @__PURE__ */ C("div", {
|
|
341
341
|
className: "x1n2onr6 x78zum5 x6s0dn4 xl56j7k x1oec0jp",
|
|
342
342
|
children: /* @__PURE__ */ w(n.Root, { children: [/* @__PURE__ */ C(n.Trigger, {
|
|
343
|
-
render: /* @__PURE__ */ C(
|
|
343
|
+
render: /* @__PURE__ */ C(i, {
|
|
344
344
|
variant: "ghost",
|
|
345
|
-
"aria-label":
|
|
345
|
+
"aria-label": a.label
|
|
346
346
|
}),
|
|
347
347
|
onClick: d,
|
|
348
|
-
children:
|
|
348
|
+
children: a.icon
|
|
349
349
|
}), /* @__PURE__ */ C(n.Portal, { children: /* @__PURE__ */ C(n.Positioner, {
|
|
350
350
|
side: "right",
|
|
351
|
-
children: /* @__PURE__ */ C(n.Popup, { children:
|
|
351
|
+
children: /* @__PURE__ */ C(n.Popup, { children: a.label })
|
|
352
352
|
}) })] })
|
|
353
353
|
})] })]
|
|
354
354
|
}) });
|
|
355
355
|
}
|
|
356
356
|
// packages/layout/src/app-shell.tsx
|
|
357
|
-
var
|
|
357
|
+
var U = { drawer: {
|
|
358
358
|
kzqmXN: "x68ju84",
|
|
359
359
|
ks0D6T: "x1recik0",
|
|
360
360
|
$$css: !0
|
|
361
361
|
} };
|
|
362
|
-
function
|
|
362
|
+
function W({ rail: t, railFooter: n, sidebarHeader: r, sidebar: i, footer: a, children: o, mainId: s = "main", shouldFocus: c = !1 }) {
|
|
363
363
|
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);
|
|
364
364
|
return v(() => {
|
|
365
365
|
let e = globalThis.matchMedia(j.sidebarDesktopQuery);
|
|
@@ -432,7 +432,7 @@ function K({ rail: t, railFooter: n, sidebarHeader: r, sidebar: i, footer: a, ch
|
|
|
432
432
|
onOpenChange: m,
|
|
433
433
|
children: /* @__PURE__ */ w(e.Portal, { children: [/* @__PURE__ */ C(e.Backdrop, {}), /* @__PURE__ */ C(e.Viewport, { children: /* @__PURE__ */ w(e.Popup, {
|
|
434
434
|
ref: D,
|
|
435
|
-
xstyle:
|
|
435
|
+
xstyle: U.drawer,
|
|
436
436
|
finalFocus: () => {
|
|
437
437
|
if (O.current) {
|
|
438
438
|
O.current = !1;
|
|
@@ -450,11 +450,11 @@ function K({ rail: t, railFooter: n, sidebarHeader: r, sidebar: i, footer: a, ch
|
|
|
450
450
|
children: "Navigation"
|
|
451
451
|
}), /* @__PURE__ */ C(F, {
|
|
452
452
|
header: r,
|
|
453
|
-
navigationHeader: l && /* @__PURE__ */ C(
|
|
453
|
+
navigationHeader: l && /* @__PURE__ */ C(B.Provider, {
|
|
454
454
|
value: "drawer",
|
|
455
455
|
children: t
|
|
456
456
|
}),
|
|
457
|
-
footer: /* @__PURE__ */ w(S, { children: [a, l && u && /* @__PURE__ */ C(
|
|
457
|
+
footer: /* @__PURE__ */ w(S, { children: [a, l && u && /* @__PURE__ */ C(B.Provider, {
|
|
458
458
|
value: "drawer",
|
|
459
459
|
children: /* @__PURE__ */ C("div", {
|
|
460
460
|
className: "x2lah0s x1a148e8",
|
|
@@ -472,7 +472,7 @@ function K({ rail: t, railFooter: n, sidebarHeader: r, sidebar: i, footer: a, ch
|
|
|
472
472
|
});
|
|
473
473
|
}
|
|
474
474
|
// packages/layout/src/navigation-rail-menu.tsx
|
|
475
|
-
var
|
|
475
|
+
var G = {
|
|
476
476
|
rail: {
|
|
477
477
|
side: "right",
|
|
478
478
|
align: "end"
|
|
@@ -482,22 +482,22 @@ var q = {
|
|
|
482
482
|
align: "start"
|
|
483
483
|
}
|
|
484
484
|
};
|
|
485
|
-
function
|
|
486
|
-
let
|
|
485
|
+
function K({ label: e, icon: r, children: a }) {
|
|
486
|
+
let o = _(B), [s, c] = x(!1);
|
|
487
487
|
return v(() => {
|
|
488
488
|
let e = globalThis.matchMedia(j.sidebarDesktopQuery);
|
|
489
489
|
function t() {
|
|
490
|
-
|
|
490
|
+
c(!1);
|
|
491
491
|
}
|
|
492
492
|
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
|
|
493
493
|
}, []), /* @__PURE__ */ w(t.Root, {
|
|
494
|
-
open:
|
|
495
|
-
onOpenChange:
|
|
494
|
+
open: s,
|
|
495
|
+
onOpenChange: c,
|
|
496
496
|
modal: !1,
|
|
497
497
|
children: [/* @__PURE__ */ C(n.Provider, { children: /* @__PURE__ */ w(n.Root, {
|
|
498
|
-
disabled:
|
|
498
|
+
disabled: s || o === "drawer",
|
|
499
499
|
children: [/* @__PURE__ */ C(n.Trigger, {
|
|
500
|
-
render: /* @__PURE__ */ C(t.Trigger, { render: /* @__PURE__ */ C(
|
|
500
|
+
render: /* @__PURE__ */ C(t.Trigger, { render: /* @__PURE__ */ C(i, {
|
|
501
501
|
variant: "ghost",
|
|
502
502
|
"aria-label": e
|
|
503
503
|
}) }),
|
|
@@ -507,26 +507,29 @@ function J({ label: e, icon: r, children: i }) {
|
|
|
507
507
|
children: /* @__PURE__ */ C(n.Popup, { children: e })
|
|
508
508
|
}) })]
|
|
509
509
|
}) }), /* @__PURE__ */ C(t.Portal, { children: /* @__PURE__ */ C(t.Positioner, {
|
|
510
|
-
...
|
|
510
|
+
...G[o],
|
|
511
511
|
sideOffset: 4,
|
|
512
512
|
collisionPadding: 8,
|
|
513
513
|
children: /* @__PURE__ */ C(t.Popup, {
|
|
514
514
|
"aria-label": e,
|
|
515
515
|
className: "x1uncgzr",
|
|
516
|
-
children:
|
|
516
|
+
children: a
|
|
517
517
|
})
|
|
518
518
|
}) })]
|
|
519
519
|
});
|
|
520
520
|
}
|
|
521
521
|
// packages/layout/src/detail-page.tsx
|
|
522
|
-
function
|
|
522
|
+
function q({ children: e, isWide: t = !1 }) {
|
|
523
523
|
return /* @__PURE__ */ C("div", {
|
|
524
|
-
|
|
524
|
+
...{
|
|
525
|
+
0: { className: "x9f619 x13na7z x96idz6 x9g60mw xeuugli xvueqy4 xnjsko4 x10gdey3 x14y0u4g x1foqgtu x1uwsqpk x14oio8y" },
|
|
526
|
+
1: { className: "x9f619 xeuugli xvueqy4 xh8yej3 x1x1rfll xnjsko4 xexx8yu x18d9i69" }
|
|
527
|
+
}[!!t | 0],
|
|
525
528
|
children: e
|
|
526
529
|
});
|
|
527
530
|
}
|
|
528
531
|
// packages/layout/src/focus-page.tsx
|
|
529
|
-
function
|
|
532
|
+
function J({ children: e }) {
|
|
530
533
|
return /* @__PURE__ */ C("main", {
|
|
531
534
|
id: "main",
|
|
532
535
|
tabIndex: -1,
|
|
@@ -538,7 +541,7 @@ function X({ children: e }) {
|
|
|
538
541
|
});
|
|
539
542
|
}
|
|
540
543
|
// packages/layout/src/workbench.tsx
|
|
541
|
-
function
|
|
544
|
+
function Y({ header: e, children: t, inspector: n }) {
|
|
542
545
|
return /* @__PURE__ */ w("div", {
|
|
543
546
|
className: "x78zum5 xdt5ytf x1r09gfs xeuugli x2lwn1j x12h1iku x1a75771 xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel",
|
|
544
547
|
children: [e != null && /* @__PURE__ */ C("div", {
|
|
@@ -560,7 +563,7 @@ function Z({ header: e, children: t, inspector: n }) {
|
|
|
560
563
|
})]
|
|
561
564
|
});
|
|
562
565
|
}
|
|
563
|
-
function
|
|
566
|
+
function X({ label: e, children: t, isFlush: n = !1, scrollRestorationId: r }) {
|
|
564
567
|
let i = d();
|
|
565
568
|
return /* @__PURE__ */ C("div", {
|
|
566
569
|
ref: i.ref,
|
|
@@ -575,20 +578,20 @@ function ne({ label: e, children: t, isFlush: n = !1, scrollRestorationId: r })
|
|
|
575
578
|
children: t
|
|
576
579
|
});
|
|
577
580
|
}
|
|
578
|
-
function
|
|
581
|
+
function ie({ children: e }) {
|
|
579
582
|
return /* @__PURE__ */ C("div", {
|
|
580
583
|
className: "x2lah0s x1c8xbx5 x178xt8z x13fuv20 xhjagg4 xpvm0e4",
|
|
581
584
|
children: e
|
|
582
585
|
});
|
|
583
586
|
}
|
|
584
587
|
// packages/layout/src/view-stack.tsx
|
|
585
|
-
function
|
|
588
|
+
function ae({ children: e }) {
|
|
586
589
|
return /* @__PURE__ */ C("div", {
|
|
587
590
|
className: "x1n2onr6 x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j",
|
|
588
591
|
children: e
|
|
589
592
|
});
|
|
590
593
|
}
|
|
591
|
-
function
|
|
594
|
+
function oe({ isActive: e, children: t }) {
|
|
592
595
|
return /* @__PURE__ */ C("section", {
|
|
593
596
|
"aria-hidden": !e,
|
|
594
597
|
inert: !e,
|
|
@@ -599,15 +602,15 @@ function ae({ isActive: e, children: t }) {
|
|
|
599
602
|
children: t
|
|
600
603
|
});
|
|
601
604
|
}
|
|
602
|
-
var
|
|
603
|
-
Root:
|
|
604
|
-
Panel:
|
|
605
|
-
},
|
|
605
|
+
var se = {
|
|
606
|
+
Root: ae,
|
|
607
|
+
Panel: oe
|
|
608
|
+
}, ce = { action: {
|
|
606
609
|
k7Eaqz: "xeuugli",
|
|
607
610
|
ks0D6T: "x193iq5w",
|
|
608
611
|
$$css: !0
|
|
609
612
|
} };
|
|
610
|
-
function
|
|
613
|
+
function Z({ title: e, actions: t, showBreadcrumb: n = !1, showNavigation: r = !0, views: i, leading: a }) {
|
|
611
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;
|
|
612
615
|
return h.toArray([
|
|
613
616
|
e,
|
|
@@ -620,7 +623,7 @@ function Q({ title: e, actions: t, showBreadcrumb: n = !1, showNavigation: r = !
|
|
|
620
623
|
l ? /* @__PURE__ */ C("div", {
|
|
621
624
|
className: "x78zum5 x6s0dn4 xyibt8p x2lah0s",
|
|
622
625
|
children: a
|
|
623
|
-
}) : r && /* @__PURE__ */ C(
|
|
626
|
+
}) : r && /* @__PURE__ */ C(z, {}),
|
|
624
627
|
o && /* @__PURE__ */ C(n ? "nav" : "h1", {
|
|
625
628
|
tabIndex: n ? void 0 : -1,
|
|
626
629
|
"aria-label": n ? "Breadcrumb" : void 0,
|
|
@@ -641,52 +644,74 @@ function Q({ title: e, actions: t, showBreadcrumb: n = !1, showNavigation: r = !
|
|
|
641
644
|
]
|
|
642
645
|
});
|
|
643
646
|
}
|
|
644
|
-
function
|
|
645
|
-
let
|
|
647
|
+
function le({ icon: e, children: t, ...n }) {
|
|
648
|
+
let r = e != null;
|
|
646
649
|
return /* @__PURE__ */ C("div", {
|
|
647
650
|
className: "x9f619 x78zum5 x1qjc9v5 xeuugli",
|
|
648
|
-
children: /* @__PURE__ */ w(
|
|
651
|
+
children: /* @__PURE__ */ w(l, {
|
|
649
652
|
...n,
|
|
650
653
|
variant: "ghost",
|
|
651
654
|
"aria-label": n["aria-label"] ?? (typeof t == "string" ? t : void 0),
|
|
652
|
-
xstyle:
|
|
653
|
-
children: [
|
|
655
|
+
xstyle: ce.action,
|
|
656
|
+
children: [r && /* @__PURE__ */ C("span", {
|
|
654
657
|
"aria-hidden": !0,
|
|
655
658
|
className: "x3nfvp2 x2lah0s x6s0dn4",
|
|
656
659
|
children: e
|
|
657
|
-
}),
|
|
660
|
+
}), r || typeof t == "string" ? /* @__PURE__ */ C("span", {
|
|
658
661
|
...{
|
|
659
662
|
0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
|
|
660
663
|
1: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft xt0psk2 xlllsrz" }
|
|
661
|
-
}[!!
|
|
664
|
+
}[!!r | 0],
|
|
662
665
|
children: t
|
|
663
666
|
}) : t]
|
|
664
667
|
})
|
|
665
668
|
});
|
|
666
669
|
}
|
|
667
670
|
// packages/layout/src/page-content.tsx
|
|
668
|
-
function
|
|
671
|
+
function Q({ children: e }) {
|
|
669
672
|
return /* @__PURE__ */ C("div", {
|
|
670
673
|
className: "x9f619 x78zum5 xdt5ytf xdz4d12 xeuugli xg7ukam",
|
|
671
674
|
children: e
|
|
672
675
|
});
|
|
673
676
|
}
|
|
677
|
+
// packages/layout/src/report-content.tsx
|
|
678
|
+
function ue({ summary: e, breakdown: t }) {
|
|
679
|
+
return /* @__PURE__ */ w("div", {
|
|
680
|
+
"data-page-layout": "report",
|
|
681
|
+
className: "xeuugli",
|
|
682
|
+
children: [/* @__PURE__ */ C(Q, { children: e }), t]
|
|
683
|
+
});
|
|
684
|
+
}
|
|
685
|
+
// packages/layout/src/collection-layout.tsx
|
|
686
|
+
function de({ header: e, children: t }) {
|
|
687
|
+
return /* @__PURE__ */ w("div", {
|
|
688
|
+
"data-page-layout": "collection",
|
|
689
|
+
className: "x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j x7giv3",
|
|
690
|
+
children: [/* @__PURE__ */ C("div", {
|
|
691
|
+
className: "x2lah0s xeuugli",
|
|
692
|
+
children: e
|
|
693
|
+
}), /* @__PURE__ */ C("div", {
|
|
694
|
+
className: "x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j",
|
|
695
|
+
children: t
|
|
696
|
+
})]
|
|
697
|
+
});
|
|
698
|
+
}
|
|
674
699
|
// packages/layout/src/report-section.tsx
|
|
675
|
-
function
|
|
676
|
-
return /* @__PURE__ */ w(
|
|
700
|
+
function fe({ summary: e, children: t }) {
|
|
701
|
+
return /* @__PURE__ */ w(s, {
|
|
677
702
|
isCompact: !0,
|
|
678
703
|
children: [e, t]
|
|
679
704
|
});
|
|
680
705
|
}
|
|
681
706
|
// packages/layout/src/record-page.tsx
|
|
682
|
-
function
|
|
707
|
+
function pe({ children: e }) {
|
|
683
708
|
return /* @__PURE__ */ C("div", {
|
|
684
709
|
className: "x78zum5 xdt5ytf xeuugli xbixft x1hz01jw xtqrqnz x1778rvt xvmahel",
|
|
685
710
|
children: e
|
|
686
711
|
});
|
|
687
712
|
}
|
|
688
|
-
function
|
|
689
|
-
return /* @__PURE__ */ C(
|
|
713
|
+
function $({ backLabel: e, backHref: t, onBack: n, actions: r, showNavigation: i = !0 }) {
|
|
714
|
+
return /* @__PURE__ */ C(Z, {
|
|
690
715
|
showBreadcrumb: !0,
|
|
691
716
|
showNavigation: i,
|
|
692
717
|
actions: r,
|
|
@@ -709,19 +734,22 @@ function fe({ backLabel: e, backHref: t, onBack: n, actions: r, showNavigation:
|
|
|
709
734
|
})
|
|
710
735
|
});
|
|
711
736
|
}
|
|
712
|
-
function
|
|
713
|
-
return /* @__PURE__ */ C(
|
|
714
|
-
|
|
715
|
-
children:
|
|
716
|
-
|
|
737
|
+
function me({ children: e, isWide: t = !1 }) {
|
|
738
|
+
return /* @__PURE__ */ C(q, {
|
|
739
|
+
isWide: t,
|
|
740
|
+
children: /* @__PURE__ */ C("div", {
|
|
741
|
+
className: "x78zum5 x1a02dak x1cy8zhl xdz4d12 xeuugli",
|
|
742
|
+
children: e
|
|
743
|
+
})
|
|
744
|
+
});
|
|
717
745
|
}
|
|
718
|
-
function
|
|
746
|
+
function he({ children: e }) {
|
|
719
747
|
return /* @__PURE__ */ C("div", {
|
|
720
748
|
className: "x78zum5 xdt5ytf x1ewej1i x1iyjqo2 xdz4d12 xeuugli",
|
|
721
749
|
children: e
|
|
722
750
|
});
|
|
723
751
|
}
|
|
724
|
-
function
|
|
752
|
+
function ge({ title: e, description: t, icon: n, titleRef: r }) {
|
|
725
753
|
return /* @__PURE__ */ w("header", {
|
|
726
754
|
className: "xrvj5dj x1n8ia3y xeuugli",
|
|
727
755
|
children: [/* @__PURE__ */ w("div", {
|
|
@@ -730,32 +758,32 @@ function me({ title: e, description: t, icon: n, titleRef: r }) {
|
|
|
730
758
|
"aria-hidden": !0,
|
|
731
759
|
className: "x3nfvp2 x6s0dn4 x2lah0s",
|
|
732
760
|
children: n
|
|
733
|
-
}), /* @__PURE__ */ C(
|
|
761
|
+
}), /* @__PURE__ */ C(c, {
|
|
734
762
|
ref: r,
|
|
735
763
|
tabIndex: -1,
|
|
736
764
|
className: "xeuugli x1t137rt",
|
|
737
765
|
children: e
|
|
738
766
|
})]
|
|
739
|
-
}), t != null && /* @__PURE__ */ C(
|
|
767
|
+
}), t != null && /* @__PURE__ */ C(a, { children: t })]
|
|
740
768
|
});
|
|
741
769
|
}
|
|
742
|
-
function
|
|
770
|
+
function _e({ children: e, label: t = "Properties" }) {
|
|
743
771
|
return /* @__PURE__ */ C("aside", {
|
|
744
772
|
"aria-label": t,
|
|
745
773
|
className: "x78zum5 xdt5ytf x1irul0l x1iyjqo2 x1j825kq xeuugli",
|
|
746
774
|
children: e
|
|
747
775
|
});
|
|
748
776
|
}
|
|
749
|
-
var
|
|
750
|
-
Root:
|
|
751
|
-
Toolbar:
|
|
752
|
-
Body:
|
|
753
|
-
Content:
|
|
754
|
-
Header:
|
|
755
|
-
Aside:
|
|
777
|
+
var ve = {
|
|
778
|
+
Root: pe,
|
|
779
|
+
Toolbar: $,
|
|
780
|
+
Body: me,
|
|
781
|
+
Content: he,
|
|
782
|
+
Header: ge,
|
|
783
|
+
Aside: _e
|
|
756
784
|
};
|
|
757
785
|
// packages/layout/src/resizable.tsx
|
|
758
|
-
function
|
|
786
|
+
function ye({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n, disabled: r, ref: i, ...a }) {
|
|
759
787
|
return /* @__PURE__ */ C(O, {
|
|
760
788
|
orientation: e,
|
|
761
789
|
defaultLayout: t,
|
|
@@ -771,7 +799,7 @@ function _e({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n,
|
|
|
771
799
|
...p({ className: "xeuugli x2lwn1j xh8yej3 x5yr21d" }, a)
|
|
772
800
|
});
|
|
773
801
|
}
|
|
774
|
-
function
|
|
802
|
+
function be({ id: e, initialSizePercent: t, minimumSizePercent: n = 10, maximumSizePercent: r = 100, canCollapse: i = !1, ref: a, ...o }) {
|
|
775
803
|
return /* @__PURE__ */ C(k, {
|
|
776
804
|
id: e,
|
|
777
805
|
defaultSize: t === void 0 ? void 0 : `${t}%`,
|
|
@@ -782,15 +810,15 @@ function ve({ id: e, initialSizePercent: t, minimumSizePercent: n = 10, maximumS
|
|
|
782
810
|
...p({ className: "xeuugli x2lwn1j xysyzu8" }, o)
|
|
783
811
|
});
|
|
784
812
|
}
|
|
785
|
-
function
|
|
813
|
+
function xe({ ref: e, ...t }) {
|
|
786
814
|
return /* @__PURE__ */ C(A, {
|
|
787
815
|
elementRef: e,
|
|
788
816
|
...p({ className: "x1fa40ue x1i1rx1s xgc0pbm xir5lan xfaai28 x1rbdpqn x8wp5i9 x13qnu6 x9v5kkp x19rmrnh x13iak60" }, t)
|
|
789
817
|
});
|
|
790
818
|
}
|
|
791
|
-
var
|
|
792
|
-
Root:
|
|
793
|
-
Pane:
|
|
794
|
-
Handle:
|
|
819
|
+
var Se = {
|
|
820
|
+
Root: ye,
|
|
821
|
+
Pane: be,
|
|
822
|
+
Handle: xe
|
|
795
823
|
};
|
|
796
|
-
export {
|
|
824
|
+
export { W as AppShell, de as CollectionLayout, q as DetailPage, J as FocusPage, te as Navigation, re as NavigationItem, I as NavigationLink, H as NavigationRail, K as NavigationRailMenu, ne as NavigationSection, Q as PageContent, Z as PageToolbar, ve as RecordPage, ue as ReportContent, fe as ReportSection, Se as Resizable, R as SidebarFooter, L as SidebarLabel, le as ToolbarAction, se as ViewStack, Y as Workbench, ie as WorkbenchFooter, X as WorkbenchScroll };
|