@mechane-ai/elements 0.61.0 → 0.62.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 +211 -212
- package/dist/{article-COShcQPh.js → article-DBRkXW1r.js} +6 -6
- package/dist/article.js +1 -1
- package/dist/catalog.json +13 -1
- package/dist/{categorical-values-DdZLdWhL.js → categorical-values-Bq5dMg0i.js} +1 -1
- package/dist/{cells-BTTLURWI.js → cells-X8SVrZBc.js} +1 -1
- package/dist/charts/cartesian.js +1 -1
- package/dist/charts/cells.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 +4 -4
- package/dist/charts/relationship.js +1 -1
- package/dist/charts/text.js +1 -1
- package/dist/charts/timeline.js +2 -2
- package/dist/charts/trend.js +1 -1
- package/dist/charts.js +2 -2
- package/dist/{code-block-BZsY2sh3.js → code-block-C_Ze7QLO.js} +1 -1
- package/dist/collections.js +1 -1
- package/dist/{commands-D0bF2JxV.js → commands-BWwMKUdd.js} +2 -2
- 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 +1 -1
- package/dist/content/tree.js +2 -2
- package/dist/{content-link-PnpcnTCx.js → content-link-BSR0a887.js} +1 -1
- package/dist/content.js +1 -1
- package/dist/{dates-Cq90-D2X.js → dates-DNb7_KSp.js} +31 -32
- package/dist/{dumbbell-plot-BeHhL-01.js → dumbbell-plot-DWybxZAH.js} +4 -4
- package/dist/{embedding-map-DbETVJXp.js → embedding-map-B5JjgyGR.js} +7 -7
- package/dist/feedback.js +1 -1
- package/dist/{figure-frame-ClYRIRAq.js → figure-frame-zyCmHlgX.js} +11 -11
- package/dist/forms/dates.js +1 -1
- package/dist/{forms-CEbwzlRR.js → forms-C5vXBA_C.js} +17 -17
- package/dist/forms.js +2 -2
- package/dist/{image-grid-DB5U7Jtx.js → image-grid-Cgkz2fsU.js} +3 -3
- package/dist/index.js +1 -1
- package/dist/kits/evaluation.js +5 -5
- package/dist/kits/interpretability.js +12 -12
- package/dist/kits/operations.js +6 -6
- package/dist/kits/research.js +8 -8
- package/dist/kits/training.js +6 -6
- package/dist/layout.js +1 -1
- package/dist/lesson.js +3 -3
- package/dist/{markdown-VpLw_P9T.js → markdown-BkFwgQzJ.js} +2 -2
- package/dist/mdx.js +6 -6
- package/dist/navigation/commands.js +1 -1
- package/dist/navigation-Bqouujdr.js +44 -0
- package/dist/navigation.js +3 -3
- package/dist/packages/charts/src/plot/plot-marks.d.ts +2 -1
- package/dist/packages/charts/src/timeline/trace-timeline-layout.d.ts +7 -2
- package/dist/packages/charts/src/timeline/trace-timeline.d.ts +4 -2
- package/dist/packages/charts/src/timeline/waterfall.d.ts +3 -1
- package/dist/packages/core/src/filter-chips.d.ts +21 -0
- package/dist/packages/core/src/index.d.ts +2 -0
- package/dist/packages/navigation/src/navigation.d.ts +4 -0
- package/dist/{param-BdqTpZER.js → param-BLGHbZoi.js} +1 -1
- package/dist/{pierre-diff-aGyQK5xK.js → pierre-diff-TAaZTeg-.js} +1 -1
- package/dist/{plot-layout-B-b6tioh.js → plot-layout-JgEcW4fY.js} +2 -2
- package/dist/{plot-marks-FVsbFkUs.js → plot-marks-DgCtcd3L.js} +7 -6
- package/dist/{plot-surface-BlR44uTL.js → plot-surface-CAAzoXJh.js} +1 -1
- package/dist/{reference-lines-BDfsv8dy.js → reference-lines-BGE13uMG.js} +2 -2
- package/dist/{scene-CY05-A1k.js → scene-GBAHedGg.js} +7 -7
- package/dist/scene.js +1 -1
- package/dist/{slope-chart-DTyF1lNG.js → slope-chart-Bh7fntOb.js} +5 -5
- package/dist/{src-BAlO76fa.js → src-CoRsRnHQ.js} +40 -40
- package/dist/{src-Dxs3Buo_.js → src-D_BL6n5Q.js} +186 -187
- package/dist/{src-Cuwx-PLT.js → src-Ddx3fHei.js} +119 -120
- package/dist/{src-C-Wg9m9H.js → src-DxZdE_P5.js} +20 -21
- package/dist/{src-Ci8DeY8J.js → src-KTMBylbq.js} +1 -1
- package/dist/{src-4qgpiWvP.js → src-XMHLpSe9.js} +44 -44
- package/dist/{src-9EJskqB_.js → src-k0l1Y4Xl.js} +662 -428
- package/dist/styles2.css +41 -12
- package/dist/{time-series-BbUBF3IE.js → time-series-_wZflmIb.js} +34 -34
- package/dist/timeline-DsNPo_57.js +869 -0
- package/dist/{token-heatmap-o_9l6vaq.js → token-heatmap-Chnea1Iv.js} +3 -3
- package/dist/{token-predictions-DaAztlOS.js → token-predictions-DQEd5sj7.js} +4 -4
- package/dist/{transport-4V9rfYHN.js → transport-CagqVWwW.js} +4 -4
- package/dist/{tree-diagram-BDj4TGXb.js → tree-diagram-CL8RI9gT.js} +8 -8
- package/dist/{treemap-DUSFlCPK.js → treemap-C3zmI4of.js} +4 -4
- package/dist/{use-tween-BsaEO862.js → use-tween-C2VZtQjV.js} +1 -1
- package/dist/{violin-plot-ULdC_dcY.js → violin-plot-CgpyGuSe.js} +4 -4
- package/dist/waterfall-S8CLEUib.js +740 -0
- package/package.json +1 -1
- package/dist/control-styles-D3q_Qyxi.js +0 -179
- package/dist/navigation-CveMIuXI.js +0 -39
- package/dist/timeline-kDb6bY7M.js +0 -712
- package/dist/waterfall-Dre6i02Z.js +0 -684
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import { a as
|
|
4
|
-
import { n as
|
|
5
|
-
import { a as
|
|
6
|
-
import { r as
|
|
7
|
-
import { r as g } from "./control-styles-D3q_Qyxi.js";
|
|
1
|
+
import { E as e, F as t, M as n, O as r, i, k as a, l as o, n as s, u as c } from "./src-k0l1Y4Xl.js";
|
|
2
|
+
import { t as l } from "./use-scroll-tab-index-Dxpdh4W7.js";
|
|
3
|
+
import { a as u, i as d } from "./src-KTMBylbq.js";
|
|
4
|
+
import { n as f } from "./accessibility-P89UG9-r.js";
|
|
5
|
+
import { a as p, i as m, t as h } from "./src-na2DdkKI.js";
|
|
6
|
+
import { r as g } from "./commands-BWwMKUdd.js";
|
|
8
7
|
import * as _ from "@stylexjs/stylex";
|
|
9
8
|
import { Button as v } from "@ui-sdk/react/button";
|
|
10
9
|
import { createParts as y, mergeProps as b } from "@ui-sdk/react/primitive";
|
|
@@ -128,10 +127,10 @@ var se = k({
|
|
|
128
127
|
navigation: z.navigationFooter
|
|
129
128
|
};
|
|
130
129
|
function B({ header: e, navigationHeader: t, footer: n, close: r, children: i }) {
|
|
131
|
-
let a = C(R), o = a !== null && !a.isExpanded,
|
|
130
|
+
let a = C(R), o = a !== null && !a.isExpanded, s = e != null;
|
|
132
131
|
return /* @__PURE__ */ M(A, { children: [
|
|
133
132
|
/* @__PURE__ */ M("div", {
|
|
134
|
-
..._.props(z.header,
|
|
133
|
+
..._.props(z.header, c.blockEnd, !s && z.emptyHeader),
|
|
135
134
|
children: [/* @__PURE__ */ j("div", {
|
|
136
135
|
...{
|
|
137
136
|
0: { className: "x78zum5 x6s0dn4 x98rzlu xeuugli x1dc62k6" },
|
|
@@ -156,8 +155,8 @@ function B({ header: e, navigationHeader: t, footer: n, close: r, children: i })
|
|
|
156
155
|
function ue() {
|
|
157
156
|
return /* @__PURE__ */ j("div", {
|
|
158
157
|
className: "x78zum5 x6s0dn4 xl56j7k x14j3e4g x2lah0s",
|
|
159
|
-
children: /* @__PURE__ */ j(
|
|
160
|
-
render: /* @__PURE__ */ j(
|
|
158
|
+
children: /* @__PURE__ */ j(p.Close, {
|
|
159
|
+
render: /* @__PURE__ */ j(r, {
|
|
161
160
|
variant: "ghost",
|
|
162
161
|
"aria-label": "Close navigation"
|
|
163
162
|
}),
|
|
@@ -203,7 +202,7 @@ function pe({ children: e, icon: t, isSelected: n = !1, shouldCloseOnActivate: r
|
|
|
203
202
|
}[!!n | 0],
|
|
204
203
|
children: /* @__PURE__ */ M(v, {
|
|
205
204
|
...s,
|
|
206
|
-
...
|
|
205
|
+
...f({
|
|
207
206
|
className: a,
|
|
208
207
|
style: o,
|
|
209
208
|
styles: {
|
|
@@ -232,20 +231,20 @@ function pe({ children: e, icon: t, isSelected: n = !1, shouldCloseOnActivate: r
|
|
|
232
231
|
})
|
|
233
232
|
});
|
|
234
233
|
}
|
|
235
|
-
function me({ children: e, icon: t, isSelected:
|
|
234
|
+
function me({ children: e, icon: t, isSelected: r = !1, onClick: i, className: a, style: o, ...s }) {
|
|
236
235
|
let c = C(R), l = T(), u = c !== null && !c.isExpanded, d = {
|
|
237
236
|
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" },
|
|
238
237
|
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" },
|
|
239
238
|
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" },
|
|
240
239
|
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" }
|
|
241
|
-
}[!!u << 1 | !!
|
|
242
|
-
return /* @__PURE__ */ M(
|
|
240
|
+
}[!!u << 1 | !!r];
|
|
241
|
+
return /* @__PURE__ */ M(n, {
|
|
243
242
|
...s,
|
|
244
|
-
"aria-current":
|
|
243
|
+
"aria-current": r ? "page" : void 0,
|
|
245
244
|
"aria-labelledby": s["aria-labelledby"] ?? (s["aria-label"] === void 0 ? l : void 0),
|
|
246
245
|
title: s.title ?? (typeof e == "string" ? e : void 0),
|
|
247
246
|
onClick: (e) => {
|
|
248
|
-
if (
|
|
247
|
+
if (i !== void 0 && i(e), c === null || e.button !== 0) return;
|
|
249
248
|
let t = e.metaKey || e.ctrlKey, n = e.shiftKey || e.altKey;
|
|
250
249
|
t || n || c.onNavigate();
|
|
251
250
|
},
|
|
@@ -306,32 +305,32 @@ function ge({ children: e, shouldGrow: t = !1 }) {
|
|
|
306
305
|
function _e({ children: e, layout: t = "inline" }) {
|
|
307
306
|
let n = C(R), r = n !== null && !n.isExpanded;
|
|
308
307
|
return /* @__PURE__ */ j("div", {
|
|
309
|
-
..._.props(z.footer,
|
|
308
|
+
..._.props(z.footer, c.blockStart, r && z.collapsedFooter, le[t]),
|
|
310
309
|
children: e
|
|
311
310
|
});
|
|
312
311
|
}
|
|
313
312
|
function ve() {
|
|
314
|
-
let
|
|
315
|
-
return
|
|
316
|
-
..._.props(z.toggleCell,
|
|
317
|
-
children: /* @__PURE__ */ j(
|
|
318
|
-
ref:
|
|
313
|
+
let e = C(R);
|
|
314
|
+
return e === null ? null : /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j("div", {
|
|
315
|
+
..._.props(z.toggleCell, c.inlineEnd, z.desktop),
|
|
316
|
+
children: /* @__PURE__ */ j(r, {
|
|
317
|
+
ref: e.navigationToggleRef,
|
|
319
318
|
variant: "ghost",
|
|
320
|
-
"aria-label":
|
|
321
|
-
"aria-controls":
|
|
322
|
-
"aria-expanded":
|
|
323
|
-
onClick:
|
|
319
|
+
"aria-label": e.isExpanded ? "Collapse navigation" : "Expand navigation",
|
|
320
|
+
"aria-controls": e.sidebarId,
|
|
321
|
+
"aria-expanded": e.isExpanded,
|
|
322
|
+
onClick: e.onToggle,
|
|
324
323
|
children: /* @__PURE__ */ j(N, {
|
|
325
324
|
size: 16,
|
|
326
325
|
"aria-hidden": !0
|
|
327
326
|
})
|
|
328
327
|
})
|
|
329
328
|
}), /* @__PURE__ */ j("div", {
|
|
330
|
-
..._.props(z.toggleCell,
|
|
331
|
-
children: /* @__PURE__ */ j(
|
|
332
|
-
ref:
|
|
333
|
-
controller:
|
|
334
|
-
render: /* @__PURE__ */ j(
|
|
329
|
+
..._.props(z.toggleCell, c.inlineEnd, z.mobile),
|
|
330
|
+
children: /* @__PURE__ */ j(p.Trigger, {
|
|
331
|
+
ref: e.mobileNavigationToggleRef,
|
|
332
|
+
controller: e.drawerController,
|
|
333
|
+
render: /* @__PURE__ */ j(r, {
|
|
335
334
|
variant: "ghost",
|
|
336
335
|
"aria-label": "Open navigation"
|
|
337
336
|
}),
|
|
@@ -373,7 +372,7 @@ var V = {
|
|
|
373
372
|
}
|
|
374
373
|
};
|
|
375
374
|
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,
|
|
375
|
+
let a = x.toArray(e).length > 0, o = x.toArray(t).length > 0, s = x.toArray(i).length > 0;
|
|
377
376
|
if (x.toArray([
|
|
378
377
|
e,
|
|
379
378
|
t,
|
|
@@ -381,9 +380,9 @@ function ye({ title: e, actions: t, showBreadcrumb: n = !1, showNavigation: r =
|
|
|
381
380
|
]).length === 0) return null;
|
|
382
381
|
let l = n ? "nav" : I, u = n ? "div" : "span";
|
|
383
382
|
return /* @__PURE__ */ M("div", {
|
|
384
|
-
..._.props(V.toolbar,
|
|
383
|
+
..._.props(V.toolbar, c.blockEnd),
|
|
385
384
|
children: [
|
|
386
|
-
|
|
385
|
+
s ? /* @__PURE__ */ j("div", {
|
|
387
386
|
className: "x78zum5 x6s0dn4 xyibt8p x2lah0s",
|
|
388
387
|
children: i
|
|
389
388
|
}) : r && /* @__PURE__ */ j(ve, {}),
|
|
@@ -403,38 +402,38 @@ function ye({ title: e, actions: t, showBreadcrumb: n = !1, showNavigation: r =
|
|
|
403
402
|
]
|
|
404
403
|
});
|
|
405
404
|
}
|
|
406
|
-
function be({ icon:
|
|
407
|
-
let i =
|
|
405
|
+
function be({ icon: t, children: n, ...r }) {
|
|
406
|
+
let i = t != null;
|
|
408
407
|
return /* @__PURE__ */ j("div", {
|
|
409
408
|
className: "x9f619 x78zum5 x1qjc9v5 xeuugli",
|
|
410
|
-
children: /* @__PURE__ */ M(
|
|
409
|
+
children: /* @__PURE__ */ M(e, {
|
|
411
410
|
...r,
|
|
412
411
|
variant: "ghost",
|
|
413
|
-
"aria-label": r["aria-label"] ?? (typeof
|
|
412
|
+
"aria-label": r["aria-label"] ?? (typeof n == "string" ? n : void 0),
|
|
414
413
|
xstyle: V.action,
|
|
415
414
|
children: [i && /* @__PURE__ */ j("span", {
|
|
416
415
|
"aria-hidden": !0,
|
|
417
416
|
className: "x3nfvp2 x2lah0s x6s0dn4",
|
|
418
|
-
children:
|
|
419
|
-
}), i || typeof
|
|
417
|
+
children: t
|
|
418
|
+
}), i || typeof n == "string" ? /* @__PURE__ */ j("span", {
|
|
420
419
|
...{
|
|
421
420
|
0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
|
|
422
421
|
1: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft xt0psk2 xlllsrz" }
|
|
423
422
|
}[!!i | 0],
|
|
424
|
-
children:
|
|
425
|
-
}) :
|
|
423
|
+
children: n
|
|
424
|
+
}) : n]
|
|
426
425
|
})
|
|
427
426
|
});
|
|
428
427
|
}
|
|
429
428
|
// packages/layout/src/page-layout.tsx
|
|
430
429
|
function H({ ref: e, navigation: t, children: n, scrollRestorationId: r = "page-body", ...i }) {
|
|
431
|
-
let a =
|
|
430
|
+
let a = l();
|
|
432
431
|
return /* @__PURE__ */ M("div", {
|
|
433
432
|
ref: e,
|
|
434
433
|
className: "xtdtrs8 xmz0i5r xeuugli x2lwn1j xrvj5dj x16p6thf",
|
|
435
434
|
children: [/* @__PURE__ */ M("div", {
|
|
436
435
|
className: "xeuugli",
|
|
437
|
-
children: [/* @__PURE__ */ j(ye, { ...i }), t !== void 0 && ("isPlaceholder" in t ? /* @__PURE__ */ j(
|
|
436
|
+
children: [/* @__PURE__ */ j(ye, { ...i }), t !== void 0 && ("isPlaceholder" in t ? /* @__PURE__ */ j(u, { ...t }) : /* @__PURE__ */ j(d, { ...t }))]
|
|
438
437
|
}), /* @__PURE__ */ j("div", {
|
|
439
438
|
ref: a.ref,
|
|
440
439
|
tabIndex: a.tabIndex,
|
|
@@ -446,13 +445,13 @@ function H({ ref: e, navigation: t, children: n, scrollRestorationId: r = "page-
|
|
|
446
445
|
});
|
|
447
446
|
}
|
|
448
447
|
function xe({ children: e, summary: t, breakdown: n, ...r }) {
|
|
449
|
-
let i = t != null && t !== !1,
|
|
448
|
+
let i = t != null && t !== !1, a = e != null && e !== !1, s = T(), c = r.id ?? s;
|
|
450
449
|
return /* @__PURE__ */ M(ce, {
|
|
451
450
|
"aria-labelledby": c,
|
|
452
451
|
className: "xeuugli x2lah0s xc8icb0",
|
|
453
452
|
children: [/* @__PURE__ */ j("div", {
|
|
454
453
|
className: "x1uhb9sk xsbffnv x13vifvy x11ru5tl",
|
|
455
|
-
children: /* @__PURE__ */ j(
|
|
454
|
+
children: /* @__PURE__ */ j(o, {
|
|
456
455
|
...r,
|
|
457
456
|
id: c
|
|
458
457
|
})
|
|
@@ -461,7 +460,7 @@ function xe({ children: e, summary: t, breakdown: n, ...r }) {
|
|
|
461
460
|
children: [
|
|
462
461
|
i && /* @__PURE__ */ j(F, { children: t }),
|
|
463
462
|
n,
|
|
464
|
-
|
|
463
|
+
a && /* @__PURE__ */ j(F, { children: e })
|
|
465
464
|
]
|
|
466
465
|
})]
|
|
467
466
|
});
|
|
@@ -482,9 +481,9 @@ var Se = { bar: {
|
|
|
482
481
|
function we({ children: e = "DevTools", actions: t, tone: n = "neutral" }) {
|
|
483
482
|
return /* @__PURE__ */ M("aside", {
|
|
484
483
|
"aria-label": "Developer tools",
|
|
485
|
-
..._.props(
|
|
484
|
+
..._.props(c.row, c.blockStart, Se.bar, Ce[n]),
|
|
486
485
|
children: [e, t != null && /* @__PURE__ */ j("div", {
|
|
487
|
-
..._.props(
|
|
486
|
+
..._.props(c.trailing),
|
|
488
487
|
children: t
|
|
489
488
|
})]
|
|
490
489
|
});
|
|
@@ -503,7 +502,7 @@ function Te(e) {
|
|
|
503
502
|
return t(), globalThis.addEventListener("pageshow", t), globalThis.addEventListener("storage", i), () => {
|
|
504
503
|
globalThis.removeEventListener("pageshow", t), globalThis.removeEventListener("storage", i);
|
|
505
504
|
};
|
|
506
|
-
}, [e]),
|
|
505
|
+
}, [e]), g({
|
|
507
506
|
target: typeof document > "u" ? null : document.documentElement,
|
|
508
507
|
isEnabled: !0,
|
|
509
508
|
commands: [{
|
|
@@ -570,81 +569,81 @@ var U = S("rail"), W = {
|
|
|
570
569
|
function Ee(e) {
|
|
571
570
|
return /* @__PURE__ */ j(G, { ...e });
|
|
572
571
|
}
|
|
573
|
-
function G({ label:
|
|
574
|
-
let
|
|
575
|
-
function
|
|
572
|
+
function G({ label: i, links: o, action: s, isFooter: c = !1 }) {
|
|
573
|
+
let l = C(U) === "drawer", u = C(R);
|
|
574
|
+
function d(e, t) {
|
|
576
575
|
e?.(t);
|
|
577
576
|
let n = t.metaKey || t.ctrlKey, r = t.shiftKey || t.altKey;
|
|
578
|
-
t.button !== 0 || n || r ||
|
|
577
|
+
t.button !== 0 || n || r || u?.onNavigate();
|
|
579
578
|
}
|
|
580
|
-
let
|
|
581
|
-
|
|
579
|
+
let f = (e) => {
|
|
580
|
+
s?.onClick(e), e.defaultPrevented || u?.onNavigate();
|
|
582
581
|
};
|
|
583
|
-
return
|
|
582
|
+
return l ? /* @__PURE__ */ M("div", {
|
|
584
583
|
className: "x78zum5 xdt5ytf x1qjc9v5 x2lah0s xeuugli",
|
|
585
584
|
children: [/* @__PURE__ */ j("nav", {
|
|
586
|
-
"aria-label":
|
|
585
|
+
"aria-label": i,
|
|
587
586
|
...{
|
|
588
587
|
0: { className: "xrvj5dj xnby9oq xunmzkg x1s01oa9" },
|
|
589
588
|
1: { className: "xrvj5dj xunmzkg x1717udv x1mkdm3x" }
|
|
590
|
-
}[!!
|
|
591
|
-
children:
|
|
592
|
-
...b(_.props(
|
|
593
|
-
"aria-current":
|
|
594
|
-
onClick: (e) =>
|
|
589
|
+
}[!!c | 0],
|
|
590
|
+
children: o.map(({ label: e, icon: r, isCurrent: i = !1, ...a }) => /* @__PURE__ */ M(n, {
|
|
591
|
+
...b(_.props(t.base, t.button, W.mobileLink, c && W.drawerFooterLink, W.rounded, W.selected), a),
|
|
592
|
+
"aria-current": i ? "location" : void 0,
|
|
593
|
+
onClick: (e) => d(a.onClick, e),
|
|
595
594
|
children: [/* @__PURE__ */ j("span", {
|
|
596
595
|
"aria-hidden": !0,
|
|
597
596
|
className: "x3nfvp2 x2lah0s xtwnzbg x18utl2x",
|
|
598
|
-
children:
|
|
597
|
+
children: r
|
|
599
598
|
}), /* @__PURE__ */ j("span", {
|
|
600
599
|
className: "xeuugli x193iq5w xj0a0fe",
|
|
601
600
|
children: e
|
|
602
601
|
})]
|
|
603
|
-
},
|
|
604
|
-
}),
|
|
602
|
+
}, a.href))
|
|
603
|
+
}), s !== void 0 && /* @__PURE__ */ j("div", {
|
|
605
604
|
className: "xrvj5dj x14w6jbu xngumbj xso031l x1q0q8m5 x1qndepd",
|
|
606
|
-
children: /* @__PURE__ */ M(
|
|
605
|
+
children: /* @__PURE__ */ M(e, {
|
|
607
606
|
variant: "ghost",
|
|
608
|
-
onClick:
|
|
607
|
+
onClick: f,
|
|
609
608
|
children: [/* @__PURE__ */ j("span", {
|
|
610
609
|
"aria-hidden": !0,
|
|
611
610
|
className: "x3nfvp2 x2lah0s xtwnzbg x18utl2x",
|
|
612
|
-
children:
|
|
613
|
-
}),
|
|
611
|
+
children: s.icon
|
|
612
|
+
}), s.label]
|
|
614
613
|
})
|
|
615
614
|
})]
|
|
616
615
|
}) : /* @__PURE__ */ M("div", {
|
|
617
616
|
...{
|
|
618
617
|
0: { className: "x78zum5 xdt5ytf x1qjc9v5 x2lah0s xeuugli" },
|
|
619
618
|
1: { className: "x78zum5 xdt5ytf x1qjc9v5 x2lah0s xeuugli x1yrrsrt x1c526fk" }
|
|
620
|
-
}[!
|
|
619
|
+
}[!c | 0],
|
|
621
620
|
children: [/* @__PURE__ */ j("nav", {
|
|
622
|
-
"aria-label":
|
|
621
|
+
"aria-label": i,
|
|
623
622
|
className: "x78zum5 xdt5ytf x6s0dn4 xunmzkg",
|
|
624
|
-
children:
|
|
625
|
-
render: /* @__PURE__ */ j(
|
|
626
|
-
render: /* @__PURE__ */ j(
|
|
627
|
-
...b({ className: "x1yk04ar" },
|
|
623
|
+
children: o.map(({ label: e, icon: t, isCurrent: r = !1, ...i }) => /* @__PURE__ */ M(h.Root, { children: [/* @__PURE__ */ j(h.Trigger, {
|
|
624
|
+
render: /* @__PURE__ */ j(a, {
|
|
625
|
+
render: /* @__PURE__ */ j(n, {}),
|
|
626
|
+
...b({ className: "x1yk04ar" }, i),
|
|
628
627
|
"aria-current": r ? "location" : void 0,
|
|
629
628
|
"aria-label": e,
|
|
630
|
-
onClick: (e) =>
|
|
629
|
+
onClick: (e) => d(i.onClick, e)
|
|
631
630
|
}),
|
|
632
|
-
children:
|
|
633
|
-
}), /* @__PURE__ */ j(
|
|
631
|
+
children: t
|
|
632
|
+
}), /* @__PURE__ */ j(h.Popup, {
|
|
634
633
|
side: "right",
|
|
635
634
|
children: e
|
|
636
|
-
})] },
|
|
637
|
-
}),
|
|
638
|
-
render: /* @__PURE__ */ j(
|
|
635
|
+
})] }, i.href))
|
|
636
|
+
}), s !== void 0 && /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j("hr", { className: "xc342km x178xt8z x13fuv20 xhjagg4 xv06hpe xn92wy8" }), /* @__PURE__ */ M(h.Root, { children: [/* @__PURE__ */ j(h.Trigger, {
|
|
637
|
+
render: /* @__PURE__ */ j(r, {
|
|
639
638
|
variant: "ghost",
|
|
640
|
-
"aria-label":
|
|
639
|
+
"aria-label": s.label,
|
|
641
640
|
xstyle: W.action
|
|
642
641
|
}),
|
|
643
|
-
onClick:
|
|
644
|
-
children:
|
|
645
|
-
}), /* @__PURE__ */ j(
|
|
642
|
+
onClick: f,
|
|
643
|
+
children: s.icon
|
|
644
|
+
}), /* @__PURE__ */ j(h.Popup, {
|
|
646
645
|
side: "right",
|
|
647
|
-
children:
|
|
646
|
+
children: s.label
|
|
648
647
|
})] })] })]
|
|
649
648
|
});
|
|
650
649
|
}
|
|
@@ -683,7 +682,7 @@ var ke = {
|
|
|
683
682
|
align: "start"
|
|
684
683
|
}
|
|
685
684
|
};
|
|
686
|
-
function q({ label:
|
|
685
|
+
function q({ label: e, icon: t, children: n }) {
|
|
687
686
|
let i = C(U), [a, o] = O(!1);
|
|
688
687
|
return w(() => {
|
|
689
688
|
let e = globalThis.matchMedia(L.sidebarDesktopQuery);
|
|
@@ -691,29 +690,29 @@ function q({ label: t, icon: n, children: r }) {
|
|
|
691
690
|
o(!1);
|
|
692
691
|
}
|
|
693
692
|
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
|
|
694
|
-
}, []), /* @__PURE__ */ M(
|
|
693
|
+
}, []), /* @__PURE__ */ M(m.Root, {
|
|
695
694
|
open: a,
|
|
696
695
|
onOpenChange: o,
|
|
697
696
|
modal: !1,
|
|
698
|
-
children: [/* @__PURE__ */ M(
|
|
697
|
+
children: [/* @__PURE__ */ M(h.Root, {
|
|
699
698
|
disabled: a || i === "drawer",
|
|
700
|
-
children: [/* @__PURE__ */ j(
|
|
701
|
-
render: /* @__PURE__ */ j(
|
|
699
|
+
children: [/* @__PURE__ */ j(h.Trigger, {
|
|
700
|
+
render: /* @__PURE__ */ j(m.Trigger, { render: /* @__PURE__ */ j(r, {
|
|
702
701
|
variant: "ghost",
|
|
703
|
-
"aria-label":
|
|
702
|
+
"aria-label": e
|
|
704
703
|
}) }),
|
|
705
|
-
children: n
|
|
706
|
-
}), /* @__PURE__ */ j(m.Popup, {
|
|
707
|
-
side: "right",
|
|
708
704
|
children: t
|
|
705
|
+
}), /* @__PURE__ */ j(h.Popup, {
|
|
706
|
+
side: "right",
|
|
707
|
+
children: e
|
|
709
708
|
})]
|
|
710
|
-
}), /* @__PURE__ */ j(
|
|
709
|
+
}), /* @__PURE__ */ j(m.Popup, {
|
|
711
710
|
...ke[i],
|
|
712
711
|
sideOffset: 4,
|
|
713
712
|
collisionPadding: 8,
|
|
714
|
-
"aria-label":
|
|
713
|
+
"aria-label": e,
|
|
715
714
|
className: "x1uncgzr",
|
|
716
|
-
children:
|
|
715
|
+
children: n
|
|
717
716
|
})]
|
|
718
717
|
});
|
|
719
718
|
}
|
|
@@ -785,8 +784,8 @@ function Y({ footer: e }) {
|
|
|
785
784
|
}), /* @__PURE__ */ j(q, { ...e.menu })] }) })
|
|
786
785
|
});
|
|
787
786
|
}
|
|
788
|
-
function je({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, bottomBar: a, children: o, mainId:
|
|
789
|
-
let u = a != null && typeof a != "boolean", d = e != null, [
|
|
787
|
+
function je({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, bottomBar: a, children: o, mainId: s = "main", shouldFocus: l = !1 }) {
|
|
788
|
+
let u = a != null && typeof a != "boolean", d = e != null, [f, m] = O(!0), [h, g] = O(!1), v = l || d && !f, [y] = O(() => p.createController()), b = T(), x = D(null), S = D(null), C = D(null), E = D(!1);
|
|
790
789
|
return w(() => {
|
|
791
790
|
let e = globalThis.matchMedia(L.sidebarDesktopQuery);
|
|
792
791
|
function t() {
|
|
@@ -795,7 +794,7 @@ function je({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, b
|
|
|
795
794
|
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
|
|
796
795
|
}, []), /* @__PURE__ */ M(R.Provider, {
|
|
797
796
|
value: {
|
|
798
|
-
isExpanded:
|
|
797
|
+
isExpanded: f,
|
|
799
798
|
sidebarId: b,
|
|
800
799
|
drawerController: y,
|
|
801
800
|
navigationToggleRef: x,
|
|
@@ -815,7 +814,7 @@ function je({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, b
|
|
|
815
814
|
children: [
|
|
816
815
|
d && /* @__PURE__ */ M("div", {
|
|
817
816
|
hidden: l,
|
|
818
|
-
..._.props(J.sidebar,
|
|
817
|
+
..._.props(J.sidebar, c.inlineEnd, J.rail, l && J.hidden),
|
|
819
818
|
children: [/* @__PURE__ */ j("div", {
|
|
820
819
|
className: "x98rzlu x2lwn1j x1odjw0f x1e4zzel",
|
|
821
820
|
children: e
|
|
@@ -825,7 +824,7 @@ function je({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, b
|
|
|
825
824
|
id: b,
|
|
826
825
|
"aria-label": "Navigation",
|
|
827
826
|
hidden: v,
|
|
828
|
-
..._.props(J.sidebar,
|
|
827
|
+
..._.props(J.sidebar, c.inlineEnd, d && J.secondary, !d && !f && J.collapsed, v && J.hidden),
|
|
829
828
|
children: /* @__PURE__ */ j(B, {
|
|
830
829
|
header: n,
|
|
831
830
|
footer: i,
|
|
@@ -833,24 +832,24 @@ function je({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, b
|
|
|
833
832
|
})
|
|
834
833
|
}),
|
|
835
834
|
/* @__PURE__ */ j("main", {
|
|
836
|
-
id:
|
|
835
|
+
id: s,
|
|
837
836
|
tabIndex: -1,
|
|
838
837
|
className: "xeuugli x2lwn1j x98rzlu x78zum5 xdt5ytf x1odjw0f x6i9wio",
|
|
839
838
|
children: o
|
|
840
839
|
})
|
|
841
840
|
]
|
|
842
841
|
}), u && /* @__PURE__ */ j(Ae, { children: a })]
|
|
843
|
-
}), /* @__PURE__ */ M(
|
|
842
|
+
}), /* @__PURE__ */ M(p.Root, {
|
|
844
843
|
controller: y,
|
|
845
844
|
open: h && !l,
|
|
846
845
|
onOpenChange: g,
|
|
847
|
-
children: [/* @__PURE__ */ j(
|
|
846
|
+
children: [/* @__PURE__ */ j(p.Backdrop, {}), /* @__PURE__ */ M(p.Popup, {
|
|
848
847
|
ref: C,
|
|
849
848
|
xstyle: J.drawer,
|
|
850
849
|
finalFocus: () => {
|
|
851
850
|
if (E.current) {
|
|
852
851
|
E.current = !1;
|
|
853
|
-
let e = document.querySelector(`#${CSS.escape(
|
|
852
|
+
let e = document.querySelector(`#${CSS.escape(s)}`), t = document.activeElement;
|
|
854
853
|
if (t instanceof HTMLElement) {
|
|
855
854
|
let e = t.closest("[role=\"dialog\"], [role=\"alertdialog\"]");
|
|
856
855
|
if (e !== null && e !== C.current) return t;
|
|
@@ -859,7 +858,7 @@ function je({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, b
|
|
|
859
858
|
}
|
|
860
859
|
return globalThis.matchMedia(L.sidebarDesktopQuery).matches ? x.current : S.current;
|
|
861
860
|
},
|
|
862
|
-
children: [/* @__PURE__ */ j(
|
|
861
|
+
children: [/* @__PURE__ */ j(p.Title, {
|
|
863
862
|
isVisuallyHidden: !0,
|
|
864
863
|
children: "Navigation"
|
|
865
864
|
}), /* @__PURE__ */ j(B, {
|
|
@@ -1034,7 +1033,7 @@ function Re({ header: e, children: t, inspector: n, isResizable: r = !1, inspect
|
|
|
1034
1033
|
});
|
|
1035
1034
|
}
|
|
1036
1035
|
function ze({ label: e, children: t, isFlush: n = !1, scrollRestorationId: r }) {
|
|
1037
|
-
let i =
|
|
1036
|
+
let i = l();
|
|
1038
1037
|
return /* @__PURE__ */ j("div", {
|
|
1039
1038
|
ref: i.ref,
|
|
1040
1039
|
role: "region",
|
|
@@ -1091,14 +1090,14 @@ function Ue({ header: e, children: t }) {
|
|
|
1091
1090
|
});
|
|
1092
1091
|
}
|
|
1093
1092
|
// packages/layout/src/record-page.tsx
|
|
1094
|
-
function We({ backLabel: e, backHref: t, onBack:
|
|
1095
|
-
return /* @__PURE__ */ M(
|
|
1093
|
+
function We({ backLabel: e, backHref: t, onBack: r }) {
|
|
1094
|
+
return /* @__PURE__ */ M(n, {
|
|
1096
1095
|
href: t,
|
|
1097
1096
|
className: "x3nfvp2 x6s0dn4 x1hnptsi xid9utz xeuugli x193iq5w xbixft xkrqix3 x5638nf x13qnu6 x9v5kkp x19rmrnh x1bqaal",
|
|
1098
1097
|
onClick: (e) => {
|
|
1099
|
-
if (
|
|
1100
|
-
let t = e.metaKey || e.ctrlKey,
|
|
1101
|
-
t ||
|
|
1098
|
+
if (r === void 0 || e.defaultPrevented || e.button !== 0) return;
|
|
1099
|
+
let t = e.metaKey || e.ctrlKey, n = e.shiftKey || e.altKey;
|
|
1100
|
+
t || n || (e.preventDefault(), r());
|
|
1102
1101
|
},
|
|
1103
1102
|
children: [/* @__PURE__ */ j(ee, {
|
|
1104
1103
|
size: 16,
|
|
@@ -1138,7 +1137,7 @@ function qe({ children: e }) {
|
|
|
1138
1137
|
children: e
|
|
1139
1138
|
});
|
|
1140
1139
|
}
|
|
1141
|
-
function Je({ title: e, description: t, icon: n, titleRef:
|
|
1140
|
+
function Je({ title: e, description: t, icon: n, titleRef: r }) {
|
|
1142
1141
|
return /* @__PURE__ */ M("header", {
|
|
1143
1142
|
className: "xrvj5dj x1n8ia3y xeuugli",
|
|
1144
1143
|
children: [/* @__PURE__ */ M("div", {
|
|
@@ -1148,13 +1147,13 @@ function Je({ title: e, description: t, icon: n, titleRef: i }) {
|
|
|
1148
1147
|
className: "x3nfvp2 x6s0dn4 x2lah0s",
|
|
1149
1148
|
children: n
|
|
1150
1149
|
}), /* @__PURE__ */ j(I, {
|
|
1151
|
-
render: /* @__PURE__ */ j(
|
|
1152
|
-
ref:
|
|
1150
|
+
render: /* @__PURE__ */ j(s, {}),
|
|
1151
|
+
ref: r,
|
|
1153
1152
|
tabIndex: -1,
|
|
1154
1153
|
className: "xeuugli x1t137rt",
|
|
1155
1154
|
children: e
|
|
1156
1155
|
})]
|
|
1157
|
-
}), t != null && /* @__PURE__ */ j(
|
|
1156
|
+
}), t != null && /* @__PURE__ */ j(i, { children: t })]
|
|
1158
1157
|
});
|
|
1159
1158
|
}
|
|
1160
1159
|
function Ye({ children: e, label: t = "Properties" }) {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as n, n as r, r as i, t as a } from "./control-styles-D3q_Qyxi.js";
|
|
1
|
+
import { F as e, L as t, N as n, P as r, i, s as a } from "./src-k0l1Y4Xl.js";
|
|
3
2
|
import { i as o } from "./tokens.stylex-dF5CACEJ.js";
|
|
4
3
|
import { t as s } from "./accessibility-P89UG9-r.js";
|
|
5
4
|
import { t as c } from "./chart-tones-ei3BC2AL.js";
|
|
@@ -13,20 +12,20 @@ import { Meter as re, MeterIndicator as w, MeterLabel as T, MeterTrack as E } fr
|
|
|
13
12
|
import { Progress as ie, ProgressIndicator as ae, ProgressLabel as oe, ProgressTrack as se } from "@ui-sdk/react/progress";
|
|
14
13
|
import { Toast as ce, ToastAction as D, ToastClose as O, ToastDescription as k, ToastRegion as A, ToastTitle as j, createToaster as M } from "@ui-sdk/react/toast";
|
|
15
14
|
// packages/feedback/src/feedback.tsx
|
|
16
|
-
function N({ title:
|
|
15
|
+
function N({ title: e, children: t, action: n, ...r }) {
|
|
17
16
|
return /* @__PURE__ */ y("div", {
|
|
18
|
-
...d({ className: "x78zum5 xdt5ytf x6s0dn4 xl56j7k x2b8uid xeuugli x193iq5w x9f619 x9w77qv xnx3t7k x1n8ia3y x1hz01jw xj57cvi xvmahel xj0a0fe" },
|
|
17
|
+
...d({ className: "x78zum5 xdt5ytf x6s0dn4 xl56j7k x2b8uid xeuugli x193iq5w x9f619 x9w77qv xnx3t7k x1n8ia3y x1hz01jw xj57cvi xvmahel xj0a0fe" }, r),
|
|
19
18
|
children: [
|
|
20
19
|
/* @__PURE__ */ v(b, {
|
|
21
20
|
size: 22,
|
|
22
21
|
"aria-hidden": !0,
|
|
23
22
|
className: "x153jb6y x2lah0s"
|
|
24
23
|
}),
|
|
25
|
-
/* @__PURE__ */ v(
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
/* @__PURE__ */ v(a, { children: e }),
|
|
25
|
+
t != null && /* @__PURE__ */ v(i, { children: t }),
|
|
26
|
+
n != null && /* @__PURE__ */ v("div", {
|
|
28
27
|
className: "x78zum5 xl56j7k x1a02dak x1hnptsi xeuugli x193iq5w",
|
|
29
|
-
children:
|
|
28
|
+
children: n
|
|
30
29
|
})
|
|
31
30
|
]
|
|
32
31
|
});
|
|
@@ -140,37 +139,37 @@ var B = {
|
|
|
140
139
|
],
|
|
141
140
|
rows: (e) => [V, { "--x-height": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(`calc(${e} * 1lh + 2 * ${o.paddingBlock} + 2px)`) }]
|
|
142
141
|
};
|
|
143
|
-
function U({ width:
|
|
142
|
+
function U({ width: t = "7ch", isIconOnly: i = !1, density: a = "standard", xstyle: s }) {
|
|
144
143
|
return /* @__PURE__ */ v("span", {
|
|
145
144
|
"aria-hidden": !0,
|
|
146
145
|
inert: !0,
|
|
147
|
-
...u.props(
|
|
148
|
-
children:
|
|
146
|
+
...u.props(e.base, e.button, r[a], n[a], i && e.iconButton, H.button, s),
|
|
147
|
+
children: i ? /* @__PURE__ */ v(L, {
|
|
149
148
|
width: o.iconSize,
|
|
150
149
|
height: o.iconSize
|
|
151
|
-
}) : /* @__PURE__ */ v(R, { width:
|
|
150
|
+
}) : /* @__PURE__ */ v(R, { width: t })
|
|
152
151
|
});
|
|
153
152
|
}
|
|
154
|
-
function W({ label:
|
|
153
|
+
function W({ label: n, hint: i, isMultiline: a = !1, density: o = "standard", rows: s = 4, width: c = "100%", xstyle: l }) {
|
|
155
154
|
let d = a ? Math.min(s, 6) : 1;
|
|
156
155
|
return /* @__PURE__ */ y("div", {
|
|
157
156
|
"aria-hidden": !0,
|
|
158
|
-
...u.props(
|
|
157
|
+
...u.props(e.fieldRoot, H.width(c), l),
|
|
159
158
|
children: [
|
|
160
|
-
|
|
161
|
-
...u.props(
|
|
162
|
-
children:
|
|
159
|
+
n !== void 0 && /* @__PURE__ */ v("span", {
|
|
160
|
+
...u.props(e.label),
|
|
161
|
+
children: n
|
|
163
162
|
}),
|
|
164
163
|
/* @__PURE__ */ v("div", {
|
|
165
|
-
...u.props(
|
|
164
|
+
...u.props(e.base, e.field, r[o], !a && e.singleLineField, !a && t[o], !a && H.singleLine, a && e.textarea, a && H.rows(s)),
|
|
166
165
|
children: /* @__PURE__ */ v(R, {
|
|
167
166
|
width: "60%",
|
|
168
167
|
lines: d
|
|
169
168
|
})
|
|
170
169
|
}),
|
|
171
|
-
|
|
172
|
-
...u.props(
|
|
173
|
-
children:
|
|
170
|
+
i !== void 0 && /* @__PURE__ */ v("span", {
|
|
171
|
+
...u.props(e.description),
|
|
172
|
+
children: i
|
|
174
173
|
})
|
|
175
174
|
]
|
|
176
175
|
});
|