@mechane-ai/elements 0.63.0 → 0.65.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 +18 -17
- package/dist/ai.js +7 -7
- package/dist/{article-lhByzGCW.js → article-BrUa4Wz1.js} +6 -6
- package/dist/article.js +1 -1
- package/dist/catalog.json +59 -15
- package/dist/{categorical-values-3g2m87_m.js → categorical-values-AXJkMt-Y.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 +2 -2
- package/dist/charts/trend.js +1 -1
- package/dist/charts.js +2 -2
- package/dist/{code-block-CJkiWSrX.js → code-block-BDRmjlES.js} +1 -1
- package/dist/collections.js +1 -1
- package/dist/{commands-DlitIiMJ.js → commands-rzsDElrG.js} +2 -2
- package/dist/content/code.js +1 -1
- package/dist/content/diff.js +3 -3
- 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-DQ3tt_SK.js → content-link-DRaNf1mD.js} +1 -1
- package/dist/content.js +1 -1
- package/dist/{dates-Cvrsj4l9.js → dates-wu-gKO2C.js} +2 -2
- package/dist/{dumbbell-plot-CEShrjuI.js → dumbbell-plot-VFajQtEW.js} +3 -3
- package/dist/{embedding-map-CQZn0DCg.js → embedding-map-BqDEmy88.js} +6 -6
- package/dist/feedback.js +1 -1
- package/dist/{figure-frame-BljHBC77.js → figure-frame-Dd-pOeZN.js} +3 -3
- package/dist/forms/dates.js +1 -1
- package/dist/{forms-BYk8t91h.js → forms-Bjx7JQ30.js} +1 -1
- package/dist/forms.js +2 -2
- package/dist/{image-grid-ClMUSwqO.js → image-grid-Dpyqxgwy.js} +3 -3
- package/dist/index.js +1 -1
- package/dist/kits/evaluation.js +4 -4
- package/dist/kits/interpretability.js +11 -11
- package/dist/kits/operations.js +6 -6
- package/dist/kits/research.js +128 -149
- package/dist/kits/training.js +5 -5
- package/dist/layout.js +1 -1
- package/dist/lesson.js +3 -3
- package/dist/{markdown-_4ZFsDyM.js → markdown--nfaDoR1.js} +2 -2
- package/dist/mdx.js +6 -6
- package/dist/navigation/commands.js +1 -1
- package/dist/{navigation-CwXM887i.js → navigation-Cp3p0gss.js} +1 -1
- package/dist/navigation.js +4 -4
- package/dist/packages/collections/src/data-table-styles.d.ts +4 -0
- package/dist/packages/collections/src/data-table-text.d.ts +3 -1
- package/dist/packages/collections/src/table-query.d.ts +4 -3
- package/dist/packages/collections/src/use-collection-controls.d.ts +6 -0
- package/dist/packages/kits/src/research/collection-page.d.ts +3 -4
- package/dist/packages/layout/src/app-shell.d.ts +3 -1
- package/dist/packages/layout/src/index.d.ts +4 -4
- package/dist/packages/layout/src/page-inset.d.ts +5 -0
- package/dist/packages/layout/src/page-layout.d.ts +4 -9
- package/dist/packages/layout/src/page-toolbar.d.ts +1 -2
- package/dist/packages/layout/src/reading-column.d.ts +4 -0
- package/dist/packages/layout/src/record-page.d.ts +4 -6
- package/dist/packages/layout/src/sidebar.d.ts +3 -1
- package/dist/packages/layout/src/workbench.d.ts +2 -6
- package/dist/packages/navigation/src/current-page-click.d.ts +3 -0
- package/dist/packages/navigation/src/index.d.ts +1 -0
- package/dist/{param-BxLsoDip.js → param-CwT1RvUS.js} +1 -1
- package/dist/{pierre-diff-DwmKtFYy.js → pierre-diff-DuvK3kLF.js} +1 -1
- package/dist/{plot-layout-oXzW4fgJ.js → plot-layout-CvkeUuG6.js} +3 -3
- package/dist/{plot-surface-BuXeoeBq.js → plot-surface-yy37R4vs.js} +1 -1
- package/dist/{reference-lines-Kmxs_hXa.js → reference-lines-AMeDkYlo.js} +1 -1
- package/dist/{scene-AWpudPHv.js → scene-BRhI8XSy.js} +6 -6
- package/dist/scene.js +1 -1
- package/dist/{slope-chart-DzbDOBUo.js → slope-chart-BMOCaa8R.js} +4 -4
- package/dist/{src-yrBVxkaf.js → src-9n2M1V_y.js} +376 -399
- package/dist/{src-DpVApV62.js → src-BdyO4PgQ.js} +1 -1
- package/dist/{src-DH2Xqu32.js → src-BgmAkau8.js} +38 -32
- package/dist/{src-CZyleIH0.js → src-Bns-5joF.js} +4 -4
- package/dist/{src-CuTIcRwk.js → src-C5SH3jjU.js} +2 -2
- package/dist/{src-CJ-0r20F.js → src-C_E29-DX.js} +46 -32
- package/dist/{src-DFkzV7H0.js → src-Tu6d_Pm8.js} +541 -532
- package/dist/styles2.css +93 -56
- package/dist/{time-series-D7TCUK56.js → time-series-CTNVqoUQ.js} +8 -8
- package/dist/{timeline-CR5VPm_f.js → timeline-DrsDtEIW.js} +263 -254
- package/dist/{token-heatmap-DEpcsiRR.js → token-heatmap-DddArdH8.js} +3 -3
- package/dist/{token-predictions-DMYbc2-N.js → token-predictions-CBykmPID.js} +3 -3
- package/dist/{transport-VwKG58nR.js → transport-r1QgELf8.js} +4 -4
- package/dist/{tree-diagram-BqL3fTdB.js → tree-diagram-BIJFK4pl.js} +4 -4
- package/dist/{treemap-C0CeP3PD.js → treemap-DgmEw_mr.js} +4 -4
- package/dist/{use-tween-D-wmSMa8.js → use-tween-BWf44Jy4.js} +1 -1
- package/dist/{violin-plot-6829_9q5.js → violin-plot-BYJnv6sG.js} +3 -3
- package/dist/{waterfall-C5HRWlEe.js → waterfall-BNseqMas.js} +27 -24
- package/package.json +1 -1
- package/recipes/allocation-report.tsx +4 -4
- package/recipes/calendar-workspace.tsx +14 -10
- package/recipes/consequential-form.tsx +4 -4
- package/recipes/searchable-collection.tsx +69 -59
- package/recipes/sectioned-report.tsx +17 -18
- package/recipes/session-timeline.tsx +59 -0
- package/recipes/tabbed-workspace.tsx +7 -8
- package/recipes/workspace-files.tsx +94 -0
- package/recipes/workspace-report.tsx +130 -0
- package/skills/extend-elements/SKILL.md +20 -0
- package/skills/review-elements/SKILL.md +10 -7
- package/skills/upgrade-elements/references/releases.md +16 -0
- package/skills/use-elements/SKILL.md +6 -2
- package/skills/use-elements/references/collections.md +8 -2
- package/skills/use-elements/references/editorial-restraint.md +13 -18
- package/skills/use-elements/references/reports.md +4 -1
- package/skills/use-elements/references/workspace.md +18 -14
- package/dist/packages/layout/src/detail-page.d.ts +0 -9
- package/dist/packages/layout/src/page-content.d.ts +0 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as e, L as t, N as n, P as r, i, s as a } from "./src-
|
|
1
|
+
import { F as e, L as t, N as n, P as r, i, s as a } from "./src-BgmAkau8.js";
|
|
2
2
|
import { i as o } from "./tokens.stylex-dF5CACEJ.js";
|
|
3
3
|
import { t as s } from "./accessibility-P89UG9-r.js";
|
|
4
4
|
import { t as c } from "./chart-tones-ei3BC2AL.js";
|
|
@@ -1445,82 +1445,88 @@ var Y = {
|
|
|
1445
1445
|
copied: Y.visible,
|
|
1446
1446
|
failed: Y.hidden
|
|
1447
1447
|
};
|
|
1448
|
-
function xe({ value: i, label: a, display: o = "value", children: s, className:
|
|
1449
|
-
let [
|
|
1448
|
+
function xe({ value: i, label: a, display: o = "value", children: s, className: f, style: p, disabled: g = !1, onClick: _, render: v, ...b }) {
|
|
1449
|
+
let [x, S] = d({
|
|
1450
1450
|
value: i,
|
|
1451
1451
|
status: "idle"
|
|
1452
|
-
}),
|
|
1452
|
+
}), C = u(0), w = l(), T = `Copy ${a}`, E = x.value === i ? x.status : "idle";
|
|
1453
1453
|
c(() => () => {
|
|
1454
|
-
|
|
1454
|
+
C.current += 1;
|
|
1455
1455
|
}, [i]), c(() => {
|
|
1456
|
-
if (!ve.has(
|
|
1456
|
+
if (!ve.has(x.status)) return;
|
|
1457
1457
|
let e = globalThis.setTimeout(() => {
|
|
1458
|
-
|
|
1458
|
+
S((e) => e === x ? {
|
|
1459
1459
|
value: i,
|
|
1460
1460
|
status: "idle"
|
|
1461
1461
|
} : e);
|
|
1462
1462
|
}, _e);
|
|
1463
1463
|
return () => globalThis.clearTimeout(e);
|
|
1464
|
-
}, [
|
|
1465
|
-
async function
|
|
1466
|
-
|
|
1467
|
-
let e =
|
|
1468
|
-
|
|
1464
|
+
}, [x, i]);
|
|
1465
|
+
async function D() {
|
|
1466
|
+
C.current += 1;
|
|
1467
|
+
let e = C.current;
|
|
1468
|
+
S({
|
|
1469
1469
|
value: i,
|
|
1470
1470
|
status: "pending"
|
|
1471
1471
|
});
|
|
1472
1472
|
try {
|
|
1473
|
-
await navigator.clipboard.writeText(typeof i == "string" ? i : i()),
|
|
1473
|
+
await navigator.clipboard.writeText(typeof i == "string" ? i : i()), C.current === e && S({
|
|
1474
1474
|
value: i,
|
|
1475
1475
|
status: "copied"
|
|
1476
1476
|
});
|
|
1477
1477
|
} catch {
|
|
1478
|
-
|
|
1478
|
+
C.current === e && S({
|
|
1479
1479
|
value: i,
|
|
1480
1480
|
status: "failed"
|
|
1481
1481
|
});
|
|
1482
1482
|
}
|
|
1483
1483
|
}
|
|
1484
|
-
let
|
|
1484
|
+
let O = E === "copied" ? y : ee, k = {
|
|
1485
1485
|
idle: "",
|
|
1486
1486
|
pending: "",
|
|
1487
1487
|
copied: `${a} copied`,
|
|
1488
1488
|
failed: `Could not copy ${a}. Select and copy the value.`
|
|
1489
1489
|
};
|
|
1490
1490
|
return /* @__PURE__ */ h(r, {
|
|
1491
|
-
...
|
|
1492
|
-
...
|
|
1491
|
+
...b,
|
|
1492
|
+
...v !== void 0 && { render: v },
|
|
1493
1493
|
onClick: (e, t) => {
|
|
1494
|
-
|
|
1494
|
+
_?.(e, t), e.defaultPrevented || D();
|
|
1495
1495
|
},
|
|
1496
1496
|
...e({
|
|
1497
|
-
className:
|
|
1498
|
-
style:
|
|
1497
|
+
className: f,
|
|
1498
|
+
style: p,
|
|
1499
1499
|
styles: {
|
|
1500
1500
|
0: {},
|
|
1501
1501
|
1: { className: "x3nfvp2 x6s0dn4 x193iq5w x16exltd x17oiadl xbgj81g x1717udv xc342km xjbqb8w x153jb6y x1hz01jw xj57cvi xvmahel xtqrqnz x1778rvt x1yc453h x1ypdohk xy7uoan xoqm7u7 xdibjt2 xwpgcpl xknznnm x19rmrnh x9v5kkp x13qnu6 x7s97pk" }
|
|
1502
|
-
}[
|
|
1502
|
+
}[v === void 0 | 0]
|
|
1503
1503
|
}),
|
|
1504
1504
|
type: "button",
|
|
1505
|
-
"aria-label":
|
|
1506
|
-
"aria-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1505
|
+
"aria-label": o === "icon" ? T : void 0,
|
|
1506
|
+
"aria-labelledby": b["aria-labelledby"] ?? (o === "value" ? `${w}-action ${w}-display` : void 0),
|
|
1507
|
+
"aria-busy": E === "pending" || b["aria-busy"],
|
|
1508
|
+
disabled: g || E === "pending",
|
|
1509
|
+
focusableWhenDisabled: E === "pending" || b.focusableWhenDisabled === !0,
|
|
1510
1510
|
children: [
|
|
1511
1511
|
o === "value" && /* @__PURE__ */ h("span", {
|
|
1512
|
+
id: `${w}-display`,
|
|
1512
1513
|
className: "xwz0xwf xeuugli",
|
|
1513
1514
|
children: [/* @__PURE__ */ m("span", {
|
|
1514
|
-
"aria-hidden":
|
|
1515
|
-
...n.props(Y.value, ye[
|
|
1515
|
+
"aria-hidden": E === "copied",
|
|
1516
|
+
...n.props(Y.value, ye[E]),
|
|
1516
1517
|
children: s ?? (typeof i == "string" ? i : a)
|
|
1517
1518
|
}), /* @__PURE__ */ m("span", {
|
|
1518
|
-
"aria-hidden":
|
|
1519
|
-
...n.props(Y.value, be[
|
|
1519
|
+
"aria-hidden": E !== "copied",
|
|
1520
|
+
...n.props(Y.value, be[E]),
|
|
1520
1521
|
children: "Copied"
|
|
1521
1522
|
})]
|
|
1522
1523
|
}),
|
|
1523
|
-
/* @__PURE__ */ m(
|
|
1524
|
+
o === "value" && /* @__PURE__ */ m("span", {
|
|
1525
|
+
id: `${w}-action`,
|
|
1526
|
+
...n.props(t.hidden),
|
|
1527
|
+
children: T
|
|
1528
|
+
}),
|
|
1529
|
+
/* @__PURE__ */ m(O, {
|
|
1524
1530
|
size: o === "icon" ? 16 : 12,
|
|
1525
1531
|
"aria-hidden": !0,
|
|
1526
1532
|
className: "x2lah0s"
|
|
@@ -1528,7 +1534,7 @@ function xe({ value: i, label: a, display: o = "value", children: s, className:
|
|
|
1528
1534
|
/* @__PURE__ */ m("span", {
|
|
1529
1535
|
role: "status",
|
|
1530
1536
|
...n.props(t.hidden),
|
|
1531
|
-
children: E
|
|
1537
|
+
children: k[E]
|
|
1532
1538
|
})
|
|
1533
1539
|
]
|
|
1534
1540
|
});
|
|
@@ -1553,7 +1559,7 @@ function we({ label: e, options: t, value: r, onValueChange: i, allLabel: a }) {
|
|
|
1553
1559
|
return /* @__PURE__ */ h("div", {
|
|
1554
1560
|
role: "group",
|
|
1555
1561
|
"aria-label": e,
|
|
1556
|
-
className: "x78zum5 x1a02dak x6s0dn4 xva7r70",
|
|
1562
|
+
className: "x78zum5 x1a02dak x6s0dn4 xva7r70 xeuugli",
|
|
1557
1563
|
children: [a !== void 0 && /* @__PURE__ */ m("button", {
|
|
1558
1564
|
type: "button",
|
|
1559
1565
|
"aria-pressed": r === null,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as e, E as t, O as n, b as r, c as i, v as a } from "./src-
|
|
1
|
+
import { A as e, E as t, O as n, b as r, c as i, v as a } from "./src-BgmAkau8.js";
|
|
2
2
|
import { t as o } from "./use-scroll-tab-index-Dxpdh4W7.js";
|
|
3
3
|
import { t as s } from "./viewer-styles-DsFYri4K.js";
|
|
4
|
-
import { i as c, t as l } from "./code-block-
|
|
5
|
-
import { p as u } from "./src-
|
|
6
|
-
import { t as d } from "./content-link-
|
|
4
|
+
import { i as c, t as l } from "./code-block-BDRmjlES.js";
|
|
5
|
+
import { p as u } from "./src-C5SH3jjU.js";
|
|
6
|
+
import { t as d } from "./content-link-DRaNf1mD.js";
|
|
7
7
|
import * as f from "@stylexjs/stylex";
|
|
8
8
|
import { usePart as p, usePrimitive as m } from "@ui-sdk/react/primitive";
|
|
9
9
|
import { useCallback as h, useLayoutEffect as g, useMemo as _, useRef as v, useState as y, useSyncExternalStore as b } from "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as e, F as t, I as n, L as r, N as i, O as a, P as o, i as s, o as c, s as l, w as u, x as d } from "./src-
|
|
1
|
+
import { C as e, F as t, I as n, L as r, N as i, O as a, P as o, i as s, o as c, s as l, w as u, x as d } from "./src-BgmAkau8.js";
|
|
2
2
|
import { n as f } from "./accessibility-P89UG9-r.js";
|
|
3
|
-
import { r as p } from "./forms-
|
|
3
|
+
import { r as p } from "./forms-Bjx7JQ30.js";
|
|
4
4
|
import * as m from "@stylexjs/stylex";
|
|
5
5
|
import { createParts as ee, mergeProps as h } from "@ui-sdk/react/primitive";
|
|
6
6
|
import { createContext as g, useContext as _, useId as v, useState as te } from "react";
|
|
@@ -1,11 +1,27 @@
|
|
|
1
|
-
import { M as e, u as t } from "./src-
|
|
1
|
+
import { M as e, u as t } from "./src-BgmAkau8.js";
|
|
2
2
|
import * as n from "@stylexjs/stylex";
|
|
3
3
|
import { mergeProps as r } from "@ui-sdk/react/primitive";
|
|
4
4
|
import { Children as i, useState as a } from "react";
|
|
5
5
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
6
|
import { Tabs as c, TabsList as l, TabsPanel as u, TabsTab as d } from "@ui-sdk/react/tabs";
|
|
7
|
+
// packages/navigation/src/current-page-click.ts
|
|
8
|
+
function f(e) {
|
|
9
|
+
let t = e.ownerDocument, n = e.getAttribute("target") ?? t.querySelector("base[target]")?.target, r = t.defaultView;
|
|
10
|
+
switch (n?.toLowerCase()) {
|
|
11
|
+
case void 0:
|
|
12
|
+
case "":
|
|
13
|
+
case "_self": return !0;
|
|
14
|
+
case "_parent": return r?.parent === r;
|
|
15
|
+
case "_top": return r?.top === r;
|
|
16
|
+
default: return n === r?.name;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
function p(e) {
|
|
20
|
+
let t = e.currentTarget, n = e.metaKey || e.ctrlKey, r = e.shiftKey || e.altKey;
|
|
21
|
+
return e.button !== 0 || n || r ? !1 : t.hasAttribute("href") && !t.hasAttribute("download") && f(t);
|
|
22
|
+
}
|
|
7
23
|
// packages/navigation/src/tab-styles.ts
|
|
8
|
-
var
|
|
24
|
+
var m = {
|
|
9
25
|
list: {
|
|
10
26
|
k1xSpc: "x78zum5",
|
|
11
27
|
kOIVth: "xxhr3t",
|
|
@@ -71,7 +87,7 @@ var f = {
|
|
|
71
87
|
kiEn40: "x1bqaal",
|
|
72
88
|
$$css: !0
|
|
73
89
|
}
|
|
74
|
-
},
|
|
90
|
+
}, h = {
|
|
75
91
|
navigation: {
|
|
76
92
|
kt9PQ7: "x1qhh985",
|
|
77
93
|
kUk6DE: "x12lumcd",
|
|
@@ -90,93 +106,91 @@ var f = {
|
|
|
90
106
|
$$css: !0
|
|
91
107
|
}
|
|
92
108
|
};
|
|
93
|
-
function
|
|
109
|
+
function g({ items: e, actions: r }) {
|
|
94
110
|
return /* @__PURE__ */ s("div", {
|
|
95
111
|
"aria-hidden": !0,
|
|
96
112
|
inert: !0,
|
|
97
113
|
className: "x78zum5 x1a02dak x1qjc9v5 xeuugli x2lah0s xso031l x1q0q8m5 x1qndepd",
|
|
98
114
|
children: [/* @__PURE__ */ o("div", {
|
|
99
|
-
...n.props(
|
|
115
|
+
...n.props(m.list, h.navigation),
|
|
100
116
|
children: e.map((e) => /* @__PURE__ */ o("span", {
|
|
101
|
-
...n.props(
|
|
117
|
+
...n.props(m.item),
|
|
102
118
|
children: e.label
|
|
103
119
|
}, e.id))
|
|
104
120
|
}), i.toArray(r).length > 0 && /* @__PURE__ */ o("div", {
|
|
105
|
-
...n.props(t.row,
|
|
121
|
+
...n.props(t.row, h.actions),
|
|
106
122
|
children: r
|
|
107
123
|
})]
|
|
108
124
|
});
|
|
109
125
|
}
|
|
110
|
-
function
|
|
126
|
+
function _({ items: r, selectedId: a, onNavigate: c, label: l = "Page sections", actions: u }) {
|
|
111
127
|
return /* @__PURE__ */ s("div", {
|
|
112
128
|
className: "x78zum5 x1a02dak x1qjc9v5 xeuugli x2lah0s xso031l x1q0q8m5 x1qndepd",
|
|
113
129
|
children: [/* @__PURE__ */ o("nav", {
|
|
114
130
|
"aria-label": l,
|
|
115
|
-
...n.props(
|
|
131
|
+
...n.props(m.list, h.navigation),
|
|
116
132
|
children: r.map((t) => /* @__PURE__ */ o(e, {
|
|
117
133
|
href: t.href,
|
|
118
134
|
"aria-current": t.id === a ? "page" : void 0,
|
|
119
|
-
...n.props(
|
|
135
|
+
...n.props(m.item),
|
|
120
136
|
onClick: (e) => {
|
|
121
|
-
|
|
122
|
-
let n = e.metaKey || e.ctrlKey, r = e.shiftKey || e.altKey;
|
|
123
|
-
n || r || (e.preventDefault(), c(t));
|
|
137
|
+
c !== void 0 && !e.defaultPrevented && p(e) && (e.preventDefault(), c(t));
|
|
124
138
|
},
|
|
125
139
|
children: t.label
|
|
126
140
|
}, t.id))
|
|
127
141
|
}), i.toArray(u).length > 0 && /* @__PURE__ */ o("div", {
|
|
128
|
-
...n.props(t.row,
|
|
142
|
+
...n.props(t.row, h.actions),
|
|
129
143
|
children: u
|
|
130
144
|
})]
|
|
131
145
|
});
|
|
132
146
|
}
|
|
133
147
|
// packages/navigation/src/skip-link.tsx
|
|
134
|
-
function
|
|
148
|
+
function v(e) {
|
|
135
149
|
return /* @__PURE__ */ o("a", { ...r({ className: "xixxii4 x1ridm32 x12hha37 x1b4oyad x174j0rr x1mvvolr x9f619 xvv7f4i xj0a0fe x1ok0vyi xpvm0e4 xbixft x1hz01jw xk4h15q xtqrqnz x1778rvt xvmahel xujl8zx x1wfrlr2 x1tkds87 x1de710j x1gnsi0 x1cm8ssg" }, e) });
|
|
136
150
|
}
|
|
137
151
|
// packages/navigation/src/tabs.tsx
|
|
138
|
-
function
|
|
152
|
+
function y(e) {
|
|
139
153
|
return /* @__PURE__ */ o(c, { ...r({ className: "x1hz01jw xj57cvi xtqrqnz x1778rvt xbixft xvmahel xeuugli xsg5m96 x7bu0ch x18eqmq0" }, e) });
|
|
140
154
|
}
|
|
141
|
-
function
|
|
142
|
-
return /* @__PURE__ */ o(l, { ...r(n.props(
|
|
155
|
+
function b(e) {
|
|
156
|
+
return /* @__PURE__ */ o(l, { ...r(n.props(m.list), e) });
|
|
143
157
|
}
|
|
144
|
-
function
|
|
158
|
+
function x({ value: e, ...t }) {
|
|
145
159
|
return /* @__PURE__ */ o(d, {
|
|
146
160
|
value: e,
|
|
147
|
-
...r(n.props(
|
|
161
|
+
...r(n.props(m.item), t)
|
|
148
162
|
});
|
|
149
163
|
}
|
|
150
|
-
function
|
|
164
|
+
function S({ value: e, ...t }) {
|
|
151
165
|
return /* @__PURE__ */ o(u, {
|
|
152
166
|
value: e,
|
|
153
167
|
...r({ className: "x1o3kwql xeuugli x1k57tk5 xcqfl4l xwqq6z6 x13qnu6 x9v5kkp x19rmrnh x7s97pk" }, t)
|
|
154
168
|
});
|
|
155
169
|
}
|
|
156
|
-
var
|
|
157
|
-
Root:
|
|
158
|
-
List:
|
|
159
|
-
Tab:
|
|
160
|
-
Panel:
|
|
170
|
+
var C = {
|
|
171
|
+
Root: y,
|
|
172
|
+
List: b,
|
|
173
|
+
Tab: x,
|
|
174
|
+
Panel: S
|
|
161
175
|
};
|
|
162
176
|
// packages/navigation/src/content-tabs.tsx
|
|
163
|
-
function
|
|
177
|
+
function w(e) {
|
|
164
178
|
let [t, n] = a(e.defaultSelectedId ?? e.items[0]?.id), r = e.items.find((e) => e.id === t) ?? e.items[0];
|
|
165
|
-
return /* @__PURE__ */ s(
|
|
179
|
+
return /* @__PURE__ */ s(C.Root, {
|
|
166
180
|
value: r?.id ?? null,
|
|
167
181
|
onValueChange: (e) => n(e ?? void 0),
|
|
168
182
|
className: "x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j",
|
|
169
|
-
children: [/* @__PURE__ */ o(
|
|
183
|
+
children: [/* @__PURE__ */ o(C.List, {
|
|
170
184
|
"aria-label": e.label,
|
|
171
|
-
children: e.items.map((e) => /* @__PURE__ */ o(
|
|
185
|
+
children: e.items.map((e) => /* @__PURE__ */ o(C.Tab, {
|
|
172
186
|
value: e.id,
|
|
173
187
|
children: e.label
|
|
174
188
|
}, e.id))
|
|
175
|
-
}), r !== void 0 && /* @__PURE__ */ o(
|
|
189
|
+
}), r !== void 0 && /* @__PURE__ */ o(C.Panel, {
|
|
176
190
|
value: r.id,
|
|
177
191
|
className: "x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j x1odjw0f xexx8yu",
|
|
178
192
|
children: r.content
|
|
179
193
|
}, r.id)]
|
|
180
194
|
});
|
|
181
195
|
}
|
|
182
|
-
export {
|
|
196
|
+
export { g as a, _ as i, C as n, p as o, v as r, w as t };
|