@mechane-ai/elements 0.47.0 → 0.49.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 +288 -5
- package/bin/mechane-elements-catalog.mjs +104 -12
- package/dist/ai.js +5 -5
- package/dist/article-yyNPg6VU.js +1904 -0
- package/dist/article.js +1 -0
- package/dist/catalog.json +1691 -163
- package/dist/{categorical-values-DdfGIowV.js → categorical-values-DCznViFp.js} +1 -1
- package/dist/{cells--Bd1fQFR.js → cells-CNZE4us2.js} +2 -2
- 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 +3 -2
- package/dist/charts/plot.js +6 -6
- package/dist/charts/relationship.js +1 -1
- package/dist/charts/text.js +1 -1
- package/dist/charts/timeline.js +1 -1
- package/dist/charts/trend.js +1 -1
- package/dist/charts.js +2 -2
- package/dist/clock-DSm5lkNE.js +16 -0
- package/dist/{code-block-DioAM2bZ.js → code-block-BZsY2sh3.js} +1 -1
- package/dist/collections.js +1 -1
- 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 +2 -2
- package/dist/content/tree.js +1 -1
- package/dist/{content-link-NWuHp5rC.js → content-link-PnpcnTCx.js} +1 -1
- package/dist/content.js +1 -1
- package/dist/{dates-Cww8UR_n.js → dates-ckJdYF7t.js} +1 -1
- package/dist/describe-lesson-BmREzDpt.js +175 -0
- package/dist/{dumbbell-plot-B2ZTgQaI.js → dumbbell-plot-CMv9llfd.js} +9 -7
- package/dist/{embedding-map-CGM_k6lC.js → embedding-map-DC-lgzCq.js} +8 -8
- package/dist/feedback.js +1 -1
- package/dist/{figure-frame-wRkIEAwe.js → figure-frame-BjFzbl3m.js} +3 -3
- package/dist/forms/dates.js +1 -1
- package/dist/forms.js +3 -3
- package/dist/{image-grid-CVA4SOy_.js → image-grid-DHqtj_zs.js} +4 -4
- package/dist/index.js +1 -1
- package/dist/kits/evaluation.js +5 -5
- package/dist/kits/interpretability.js +320 -302
- package/dist/kits/operations.js +6 -6
- package/dist/kits/research.js +558 -0
- package/dist/kits/training.js +6 -6
- package/dist/layout.js +205 -110
- package/dist/lesson/agent.js +811 -0
- package/dist/lesson/spec.js +661 -0
- package/dist/lesson.js +5 -0
- package/dist/mdx.js +227 -0
- package/dist/navigation.js +2 -2
- package/dist/packages/charts/src/cartesian/index.d.ts +1 -1
- package/dist/packages/charts/src/cartesian/scatter-plot.d.ts +18 -0
- package/dist/packages/charts/src/chart-theme.d.ts +1 -1
- package/dist/packages/charts/src/matrix/index.d.ts +1 -0
- package/dist/packages/charts/src/plot/plot-marks.d.ts +7 -3
- package/dist/packages/charts/src/plot/plot-surface.d.ts +3 -1
- package/dist/packages/collections/src/index.d.ts +1 -1
- package/dist/packages/collections/src/metrics.d.ts +9 -1
- package/dist/packages/content/src/index.d.ts +2 -0
- package/dist/packages/content/src/text-match.d.ts +22 -0
- package/dist/packages/core/src/index.d.ts +1 -0
- package/dist/packages/core/src/surfaces.d.ts +12 -2
- package/dist/packages/forms/src/index.d.ts +2 -0
- package/dist/packages/forms/src/token-input.d.ts +24 -0
- package/dist/packages/kits/src/interpretability/index.d.ts +1 -1
- package/dist/packages/kits/src/interpretability/logit-lens.d.ts +10 -1
- package/dist/packages/kits/src/research/finding-card.d.ts +43 -0
- package/dist/packages/kits/src/research/index.d.ts +8 -0
- package/dist/packages/kits/src/research/milestone-path.d.ts +36 -0
- package/dist/packages/kits/src/research/specimen-diff.d.ts +41 -0
- package/dist/packages/kits/src/research/work-heartbeat.d.ts +34 -0
- package/dist/packages/layout/src/figure-grid.d.ts +8 -0
- package/dist/packages/layout/src/index.d.ts +4 -1
- package/dist/packages/layout/src/sidebar.d.ts +7 -0
- package/dist/packages/layout/src/workbench.d.ts +4 -1
- package/dist/packages/teaching/src/agent/index.d.ts +11 -0
- package/dist/packages/teaching/src/agent/learner-trace.d.ts +84 -0
- package/dist/packages/teaching/src/agent/lesson-bridge.d.ts +59 -0
- package/dist/packages/teaching/src/agent/lesson-tour.d.ts +63 -0
- package/dist/packages/teaching/src/agent/tutor-tools.d.ts +86 -0
- package/dist/packages/teaching/src/article/article-checks.d.ts +9 -0
- package/dist/packages/teaching/src/article/article-context.d.ts +49 -0
- package/dist/packages/teaching/src/article/article-error.d.ts +12 -0
- package/dist/packages/teaching/src/article/article-labels.d.ts +54 -0
- package/dist/packages/teaching/src/article/article-layout.stylex.d.ts +14 -0
- package/dist/packages/teaching/src/article/article-outline.d.ts +9 -0
- package/dist/packages/teaching/src/article/article.d.ts +42 -0
- package/dist/packages/teaching/src/article/beat-steps.d.ts +18 -0
- package/dist/packages/teaching/src/article/beat.d.ts +16 -0
- package/dist/packages/teaching/src/article/challenge.d.ts +29 -0
- package/dist/packages/teaching/src/article/exercise-styles.d.ts +76 -0
- package/dist/packages/teaching/src/article/figure.d.ts +51 -0
- package/dist/packages/teaching/src/article/index.d.ts +31 -0
- package/dist/packages/teaching/src/article/lesson-values.d.ts +5 -0
- package/dist/packages/teaching/src/article/notes.d.ts +36 -0
- package/dist/packages/teaching/src/article/outline-types.d.ts +73 -0
- package/dist/packages/teaching/src/article/predict.d.ts +58 -0
- package/dist/packages/teaching/src/article/progress-store.d.ts +64 -0
- package/dist/packages/teaching/src/article/scrolly.d.ts +26 -0
- package/dist/packages/{kits/src/explainers → teaching/src/article}/term.d.ts +8 -2
- package/dist/packages/teaching/src/article/tex.d.ts +12 -0
- package/dist/packages/teaching/src/article/view-essay.d.ts +13 -0
- package/dist/packages/teaching/src/article/view-present.d.ts +8 -0
- package/dist/packages/teaching/src/article/view-sheet.d.ts +7 -0
- package/dist/packages/teaching/src/article/view-static.d.ts +7 -0
- package/dist/packages/teaching/src/article/walk.d.ts +34 -0
- package/dist/packages/teaching/src/lesson/define-lesson.d.ts +136 -0
- package/dist/packages/teaching/src/lesson/index.d.ts +24 -0
- package/dist/packages/teaching/src/lesson/inline-choice.d.ts +12 -0
- package/dist/packages/teaching/src/lesson/lesson-context.d.ts +18 -0
- package/dist/packages/teaching/src/lesson/lesson-error.d.ts +12 -0
- package/dist/packages/teaching/src/lesson/lesson-locale.d.ts +4 -0
- package/dist/packages/teaching/src/lesson/lesson-persistence.d.ts +17 -0
- package/dist/packages/teaching/src/lesson/lesson-player.d.ts +51 -0
- package/dist/packages/teaching/src/lesson/lesson-store.d.ts +84 -0
- package/dist/packages/teaching/src/lesson/lesson.d.ts +39 -0
- package/dist/packages/teaching/src/lesson/param-controls.d.ts +14 -0
- package/dist/packages/teaching/src/lesson/param.d.ts +34 -0
- package/dist/packages/teaching/src/lesson/playback.d.ts +42 -0
- package/dist/packages/teaching/src/lesson/transport.d.ts +19 -0
- package/dist/packages/teaching/src/lesson/use-lesson.d.ts +36 -0
- package/dist/packages/teaching/src/mdx/essay-components.d.ts +79 -0
- package/dist/packages/teaching/src/mdx/essay-markdown.d.ts +41 -0
- package/dist/packages/teaching/src/mdx/essay.d.ts +32 -0
- package/dist/packages/teaching/src/mdx/index.d.ts +9 -0
- package/dist/packages/teaching/src/mdx/requested-view.d.ts +6 -0
- package/dist/packages/teaching/src/scene/flow/flow-layout.d.ts +38 -0
- package/dist/packages/teaching/src/scene/flow/flow-pulse.d.ts +16 -0
- package/dist/packages/teaching/src/scene/flow/scene-flow.d.ts +81 -0
- package/dist/packages/teaching/src/scene/index.d.ts +77 -0
- package/dist/packages/teaching/src/scene/morph/morph-scope.d.ts +28 -0
- package/dist/packages/teaching/src/scene/plane/plane-hit.d.ts +22 -0
- package/dist/packages/teaching/src/scene/plane/plane-label.d.ts +23 -0
- package/dist/packages/teaching/src/scene/plane/plane-labels.d.ts +42 -0
- package/dist/packages/teaching/src/scene/plane/plane-math.d.ts +45 -0
- package/dist/packages/teaching/src/scene/plane/scene-axes.d.ts +30 -0
- package/dist/packages/teaching/src/scene/plane/scene-curve.d.ts +42 -0
- package/dist/packages/teaching/src/scene/plane/scene-point.d.ts +59 -0
- package/dist/packages/teaching/src/scene/plane/scene-projection.d.ts +27 -0
- package/dist/packages/teaching/src/scene/plane/scene-region.d.ts +38 -0
- package/dist/packages/teaching/src/scene/plane/scene-rule.d.ts +35 -0
- package/dist/packages/teaching/src/scene/plane/scene-vector.d.ts +39 -0
- package/dist/packages/teaching/src/scene/scene-bracket.d.ts +24 -0
- package/dist/packages/teaching/src/scene/scene-callout.d.ts +26 -0
- package/dist/packages/teaching/src/scene/scene-context.d.ts +179 -0
- package/dist/packages/teaching/src/scene/scene-custom.d.ts +31 -0
- package/dist/packages/teaching/src/scene/scene-geometry.d.ts +181 -0
- package/dist/packages/teaching/src/scene/scene-group.d.ts +28 -0
- package/dist/packages/teaching/src/scene/scene-highlight.d.ts +19 -0
- package/dist/packages/teaching/src/scene/scene-layer.d.ts +16 -0
- package/dist/packages/teaching/src/scene/scene-node.d.ts +67 -0
- package/dist/packages/teaching/src/scene/scene-obstacles.d.ts +27 -0
- package/dist/packages/teaching/src/scene/scene-registry.d.ts +79 -0
- package/dist/packages/teaching/src/scene/scene-stagger.d.ts +43 -0
- package/dist/packages/teaching/src/scene/scene-style.d.ts +14 -0
- package/dist/packages/teaching/src/scene/scene-validate.d.ts +65 -0
- package/dist/packages/teaching/src/scene/scene-wire.d.ts +45 -0
- package/dist/packages/teaching/src/scene/scene.d.ts +36 -0
- package/dist/packages/teaching/src/scene/shapes/cell-color.d.ts +11 -0
- package/dist/packages/teaching/src/scene/shapes/cell-grid.d.ts +69 -0
- package/dist/packages/teaching/src/scene/shapes/scene-card.d.ts +114 -0
- package/dist/packages/teaching/src/scene/shapes/scene-cells.d.ts +84 -0
- package/dist/packages/teaching/src/scene/shapes/scene-slot.d.ts +37 -0
- package/dist/packages/teaching/src/scene/shapes/scene-stack.d.ts +46 -0
- package/dist/packages/teaching/src/scene/shapes/scene-token.d.ts +63 -0
- package/dist/packages/teaching/src/scene/shapes/scene-tokens.d.ts +40 -0
- package/dist/packages/teaching/src/scene/shapes/stack-book.d.ts +35 -0
- package/dist/packages/teaching/src/scene/shapes/stack-layout.d.ts +63 -0
- package/dist/packages/teaching/src/scene/shapes/token-layout.d.ts +39 -0
- package/dist/packages/teaching/src/spec/advice.d.ts +23 -0
- package/dist/packages/teaching/src/spec/chart-names.d.ts +2 -0
- package/dist/packages/teaching/src/spec/describe-lesson.d.ts +85 -0
- package/dist/packages/teaching/src/spec/explainer-guide.d.ts +21 -0
- package/dist/packages/teaching/src/spec/findings.d.ts +39 -0
- package/dist/packages/teaching/src/spec/index.d.ts +14 -0
- package/dist/packages/teaching/src/spec/lesson-plan.d.ts +43 -0
- package/dist/packages/teaching/src/spec/validate-plan.d.ts +11 -0
- package/dist/packages/teaching/src/time/clock.d.ts +7 -0
- package/dist/packages/teaching/src/time/tween.d.ts +19 -0
- package/dist/packages/teaching/src/time/use-tween.d.ts +6 -0
- package/dist/param-BE3VMSkH.js +450 -0
- package/dist/{pierre-diff-DlvjyuJn.js → pierre-diff-aGyQK5xK.js} +1 -1
- package/dist/{plot-axes-DJkLW4wk.js → plot-axes-D5S9BnBa.js} +1 -1
- package/dist/{plot-layout-BEuoOHbs.js → plot-layout-Bqe4-0qZ.js} +4 -3
- package/dist/{plot-marks-A64v7aTw.js → plot-marks-FVsbFkUs.js} +18 -15
- package/dist/{plot-surface-CJTIqtck.js → plot-surface-DON6WUmk.js} +11 -11
- package/dist/{plot-width-DcqtSgzb.js → plot-width-D3hTycYX.js} +1 -1
- package/dist/{reference-lines-CWA8VeUR.js → reference-lines-hjuD1rRZ.js} +2 -2
- package/dist/scene-BP0Ue0R5.js +4938 -0
- package/dist/scene.js +1 -0
- package/dist/{slope-chart-DT22h_ym.js → slope-chart-C8eeSgL4.js} +7 -7
- package/dist/{src-CpdJlDhO.js → src-9EJskqB_.js} +73 -31
- package/dist/{src-D5NXRJZe.js → src-B2rgpWap.js} +48 -14
- package/dist/{src-BPTDJqt0.js → src-Ci8DeY8J.js} +1 -1
- package/dist/{src-CGc_hjxJ.js → src-DFW49IAs.js} +143 -111
- package/dist/{src-1EHkSFS-.js → src-Dxs3Buo_.js} +205 -139
- package/dist/{src-CExIrXPC.js → src-npqwq3Sa.js} +1 -1
- package/dist/styles2.css +542 -21
- package/dist/{time-series-IB3CB93O.js → time-series-BL933QyA.js} +787 -715
- package/dist/{token-heatmap-C00DnoNO.js → token-heatmap-BB65awva.js} +4 -4
- package/dist/{token-predictions-Cxx29iDr.js → token-predictions-Pa8eUGan.js} +6 -6
- package/dist/transport-DzyxVXbL.js +715 -0
- package/dist/{tree-diagram-DsckNKaW.js → tree-diagram-DJhKBiia.js} +6 -6
- package/dist/{treemap-9_DpLCW9.js → treemap-CxxgABUg.js} +5 -5
- package/dist/use-tween-5HZ55_9d.js +72 -0
- package/dist/{violin-plot-BhPHKXsN.js → violin-plot-CoAEF_7Z.js} +7 -6
- package/dist/{waterfall-CGksuTy5.js → waterfall-DdoEXEkT.js} +7 -7
- package/package.json +30 -5
- package/recipes/counting-cards.tsx +656 -0
- package/recipes/explorable-essay.tsx +172 -0
- package/skills/extend-elements/SKILL.md +21 -0
- package/skills/plan-lesson/SKILL.md +86 -0
- package/skills/plan-lesson/references/plan-format.md +114 -0
- package/skills/plan-lesson/references/worked-plan.md +171 -0
- package/skills/review-elements/SKILL.md +4 -2
- package/skills/review-explainer/SKILL.md +97 -0
- package/skills/upgrade-elements/references/releases.md +65 -0
- package/skills/use-elements/SKILL.md +18 -16
- package/skills/use-elements/references/kits.md +9 -26
- package/skills/use-elements/references/teaching.md +36 -0
- package/skills/write-explainer/SKILL.md +112 -0
- package/skills/write-explainer/references/article.md +164 -0
- package/skills/write-explainer/references/lesson.md +148 -0
- package/skills/write-explainer/references/mdx.md +78 -0
- package/skills/write-explainer/references/scene-parts.md +273 -0
- package/skills/write-explainer/references/scene.md +168 -0
- package/skills/write-explainer/references/tutor.md +104 -0
- package/skills/write-explainer/references/worked-essay.md +459 -0
- package/templates/essay/AGENTS.md +14 -0
- package/templates/essay/README.md +59 -0
- package/templates/essay/index.html +17 -0
- package/templates/essay/package.template.json +21 -0
- package/templates/essay/plan.json +96 -0
- package/templates/essay/src/essay.mdx +97 -0
- package/templates/essay/src/figures.tsx +92 -0
- package/templates/essay/src/lesson.ts +83 -0
- package/templates/essay/src/main.tsx +53 -0
- package/templates/essay/src/mdx.d.ts +7 -0
- package/templates/essay/tsconfig.template.json +15 -0
- package/templates/essay/vite.config.template.txt +8 -0
- package/dist/kits/explainers.js +0 -452
- package/dist/packages/kits/src/explainers/figures.d.ts +0 -31
- package/dist/packages/kits/src/explainers/index.d.ts +0 -8
- package/dist/packages/kits/src/explainers/story-steps.d.ts +0 -46
- /package/dist/packages/{kits/src/explainers → teaching/src/article}/linked-target.d.ts +0 -0
- /package/dist/packages/{kits/src/explainers → teaching/src/lesson}/bound-value.d.ts +0 -0
package/dist/layout.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { D as e, O as t, T as n, i as r, j as i, l as a, n as o, u as s } from "./src-
|
|
1
|
+
import { D as e, O as t, T as n, i as r, j as i, l as a, n as o, u as s } from "./src-9EJskqB_.js";
|
|
2
2
|
import { t as c } from "./use-scroll-tab-index-Dxpdh4W7.js";
|
|
3
|
-
import { a as l, i as u } from "./src-
|
|
3
|
+
import { a as l, i as u } from "./src-Ci8DeY8J.js";
|
|
4
4
|
import { n as d } from "./accessibility-P89UG9-r.js";
|
|
5
5
|
import { a as f, i as p, t as m } from "./src-na2DdkKI.js";
|
|
6
6
|
import { r as h } from "./control-styles-D3q_Qyxi.js";
|
|
@@ -170,7 +170,7 @@ function de({ children: e, label: t = "Main" }) {
|
|
|
170
170
|
children: e
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function fe({ children: e, label: t }) {
|
|
174
174
|
let n = S(F), r = n !== null && !n.isExpanded, i = w();
|
|
175
175
|
return /* @__PURE__ */ A("section", {
|
|
176
176
|
"aria-labelledby": i,
|
|
@@ -185,7 +185,7 @@ function R({ children: e, label: t }) {
|
|
|
185
185
|
}), e]
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function pe({ children: e, icon: t, isSelected: n = !1, shouldCloseOnActivate: r = !0, onClick: i, className: a, style: o, ...s }) {
|
|
189
189
|
let c = S(F), l = w(), u = c !== null && !c.isExpanded;
|
|
190
190
|
return /* @__PURE__ */ k("div", {
|
|
191
191
|
...{
|
|
@@ -223,7 +223,7 @@ function z({ children: e, icon: t, isSelected: n = !1, shouldCloseOnActivate: r
|
|
|
223
223
|
})
|
|
224
224
|
});
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function R({ children: e, icon: t, isSelected: n = !1, onClick: r, className: a, style: o, ...s }) {
|
|
227
227
|
let c = S(F), l = w(), u = c !== null && !c.isExpanded, d = {
|
|
228
228
|
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" },
|
|
229
229
|
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" },
|
|
@@ -259,7 +259,30 @@ function B({ children: e, icon: t, isSelected: n = !1, onClick: r, className: a,
|
|
|
259
259
|
})]
|
|
260
260
|
});
|
|
261
261
|
}
|
|
262
|
-
function
|
|
262
|
+
function z({ title: e, subtitle: t, icon: n }) {
|
|
263
|
+
let r = S(F), i = r !== null && !r.isExpanded;
|
|
264
|
+
return /* @__PURE__ */ A("div", {
|
|
265
|
+
className: "x78zum5 x6s0dn4 x1hnptsi xeuugli x98rzlu",
|
|
266
|
+
children: [n != null && /* @__PURE__ */ k("span", {
|
|
267
|
+
"aria-hidden": !0,
|
|
268
|
+
className: "x3nfvp2 x6s0dn4 xl56j7k xtwnzbg x18utl2x x2lah0s",
|
|
269
|
+
children: n
|
|
270
|
+
}), /* @__PURE__ */ A("div", {
|
|
271
|
+
...{
|
|
272
|
+
0: { className: "x78zum5 xdt5ytf xeuugli x1u7k74" },
|
|
273
|
+
1: { className: "xdt5ytf xeuugli x1u7k74 x1s85apg xeod2sa" }
|
|
274
|
+
}[!!i | 0],
|
|
275
|
+
children: [/* @__PURE__ */ k("span", {
|
|
276
|
+
className: "xtqrqnz xk4h15q xbixft xb3r6kr xlyipyv xuxw1ft",
|
|
277
|
+
children: e
|
|
278
|
+
}), t !== void 0 && /* @__PURE__ */ k("span", {
|
|
279
|
+
className: "xy8obcc x153jb6y xb3r6kr xlyipyv xuxw1ft",
|
|
280
|
+
children: t
|
|
281
|
+
})]
|
|
282
|
+
})]
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
function B({ children: e, shouldGrow: t = !1 }) {
|
|
263
286
|
let n = S(F), r = n !== null && !n.isExpanded;
|
|
264
287
|
return /* @__PURE__ */ k("span", {
|
|
265
288
|
...{
|
|
@@ -271,14 +294,14 @@ function V({ children: e, shouldGrow: t = !1 }) {
|
|
|
271
294
|
children: e
|
|
272
295
|
});
|
|
273
296
|
}
|
|
274
|
-
function
|
|
297
|
+
function me({ children: e, layout: t = "inline" }) {
|
|
275
298
|
let n = S(F), r = n !== null && !n.isExpanded;
|
|
276
299
|
return /* @__PURE__ */ k("div", {
|
|
277
300
|
...g.props(I.footer, s.blockStart, r && I.collapsedFooter, le[t]),
|
|
278
301
|
children: e
|
|
279
302
|
});
|
|
280
303
|
}
|
|
281
|
-
function
|
|
304
|
+
function he() {
|
|
282
305
|
let t = S(F);
|
|
283
306
|
return t === null ? null : /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k("div", {
|
|
284
307
|
...g.props(I.toggleCell, s.inlineEnd, I.desktop),
|
|
@@ -311,7 +334,7 @@ function fe() {
|
|
|
311
334
|
})] });
|
|
312
335
|
}
|
|
313
336
|
// packages/layout/src/page-toolbar.tsx
|
|
314
|
-
var
|
|
337
|
+
var V = {
|
|
315
338
|
toolbar: {
|
|
316
339
|
kB7OPa: "x9f619",
|
|
317
340
|
kVAEAm: "x7wzq59",
|
|
@@ -340,7 +363,7 @@ var U = {
|
|
|
340
363
|
$$css: !0
|
|
341
364
|
}
|
|
342
365
|
};
|
|
343
|
-
function
|
|
366
|
+
function ge({ title: e, actions: t, showBreadcrumb: n = !1, showNavigation: r = !0, leading: i }) {
|
|
344
367
|
let a = b.toArray(e).length > 0, o = b.toArray(t).length > 0, c = b.toArray(i).length > 0;
|
|
345
368
|
if (b.toArray([
|
|
346
369
|
e,
|
|
@@ -349,12 +372,12 @@ function pe({ title: e, actions: t, showBreadcrumb: n = !1, showNavigation: r =
|
|
|
349
372
|
]).length === 0) return null;
|
|
350
373
|
let l = n ? "nav" : N, u = n ? "div" : "span";
|
|
351
374
|
return /* @__PURE__ */ A("div", {
|
|
352
|
-
...g.props(
|
|
375
|
+
...g.props(V.toolbar, s.blockEnd),
|
|
353
376
|
children: [
|
|
354
377
|
c ? /* @__PURE__ */ k("div", {
|
|
355
378
|
className: "x78zum5 x6s0dn4 xyibt8p x2lah0s",
|
|
356
379
|
children: i
|
|
357
|
-
}) : r && /* @__PURE__ */ k(
|
|
380
|
+
}) : r && /* @__PURE__ */ k(he, {}),
|
|
358
381
|
a && /* @__PURE__ */ k(l, {
|
|
359
382
|
tabIndex: n ? void 0 : -1,
|
|
360
383
|
"aria-label": n ? "Breadcrumb" : void 0,
|
|
@@ -371,7 +394,7 @@ function pe({ title: e, actions: t, showBreadcrumb: n = !1, showNavigation: r =
|
|
|
371
394
|
]
|
|
372
395
|
});
|
|
373
396
|
}
|
|
374
|
-
function
|
|
397
|
+
function _e({ icon: e, children: t, ...r }) {
|
|
375
398
|
let i = e != null;
|
|
376
399
|
return /* @__PURE__ */ k("div", {
|
|
377
400
|
className: "x9f619 x78zum5 x1qjc9v5 xeuugli",
|
|
@@ -379,7 +402,7 @@ function me({ icon: e, children: t, ...r }) {
|
|
|
379
402
|
...r,
|
|
380
403
|
variant: "ghost",
|
|
381
404
|
"aria-label": r["aria-label"] ?? (typeof t == "string" ? t : void 0),
|
|
382
|
-
xstyle:
|
|
405
|
+
xstyle: V.action,
|
|
383
406
|
children: [i && /* @__PURE__ */ k("span", {
|
|
384
407
|
"aria-hidden": !0,
|
|
385
408
|
className: "x3nfvp2 x2lah0s x6s0dn4",
|
|
@@ -395,14 +418,14 @@ function me({ icon: e, children: t, ...r }) {
|
|
|
395
418
|
});
|
|
396
419
|
}
|
|
397
420
|
// packages/layout/src/page-layout.tsx
|
|
398
|
-
function
|
|
421
|
+
function H({ ref: e, navigation: t, children: n, scrollRestorationId: r = "page-body", ...i }) {
|
|
399
422
|
let a = c();
|
|
400
423
|
return /* @__PURE__ */ A("div", {
|
|
401
424
|
ref: e,
|
|
402
425
|
className: "xtdtrs8 xmz0i5r xeuugli x2lwn1j xrvj5dj x16p6thf",
|
|
403
426
|
children: [/* @__PURE__ */ A("div", {
|
|
404
427
|
className: "xeuugli",
|
|
405
|
-
children: [/* @__PURE__ */ k(
|
|
428
|
+
children: [/* @__PURE__ */ k(ge, { ...i }), t !== void 0 && ("isPlaceholder" in t ? /* @__PURE__ */ k(l, { ...t }) : /* @__PURE__ */ k(u, { ...t }))]
|
|
406
429
|
}), /* @__PURE__ */ k("div", {
|
|
407
430
|
ref: a.ref,
|
|
408
431
|
tabIndex: a.tabIndex,
|
|
@@ -413,7 +436,7 @@ function W({ ref: e, navigation: t, children: n, scrollRestorationId: r = "page-
|
|
|
413
436
|
})]
|
|
414
437
|
});
|
|
415
438
|
}
|
|
416
|
-
function
|
|
439
|
+
function ve({ children: e, summary: t, breakdown: n, ...r }) {
|
|
417
440
|
let i = t != null && t !== !1, o = w(), s = r.id ?? o;
|
|
418
441
|
return /* @__PURE__ */ A(ce, {
|
|
419
442
|
"aria-labelledby": s,
|
|
@@ -435,7 +458,7 @@ function he({ children: e, summary: t, breakdown: n, ...r }) {
|
|
|
435
458
|
});
|
|
436
459
|
}
|
|
437
460
|
// packages/layout/src/navigation-rail.tsx
|
|
438
|
-
var
|
|
461
|
+
var U = x("rail"), W = {
|
|
439
462
|
action: {
|
|
440
463
|
kSGwAc: "xamitd3",
|
|
441
464
|
$$css: !0
|
|
@@ -474,11 +497,11 @@ var G = x("rail"), K = {
|
|
|
474
497
|
$$css: !0
|
|
475
498
|
}
|
|
476
499
|
};
|
|
477
|
-
function
|
|
478
|
-
return /* @__PURE__ */ k(
|
|
500
|
+
function ye(e) {
|
|
501
|
+
return /* @__PURE__ */ k(G, { ...e });
|
|
479
502
|
}
|
|
480
|
-
function
|
|
481
|
-
let c = S(
|
|
503
|
+
function G({ label: r, links: a, action: o, isFooter: s = !1 }) {
|
|
504
|
+
let c = S(U) === "drawer", l = S(F);
|
|
482
505
|
function u(e, t) {
|
|
483
506
|
e?.(t);
|
|
484
507
|
let n = t.metaKey || t.ctrlKey, r = t.shiftKey || t.altKey;
|
|
@@ -496,7 +519,7 @@ function q({ label: r, links: a, action: o, isFooter: s = !1 }) {
|
|
|
496
519
|
1: { className: "xrvj5dj xunmzkg x1717udv x1mkdm3x" }
|
|
497
520
|
}[!!s | 0],
|
|
498
521
|
children: a.map(({ label: e, icon: t, isCurrent: n = !1, ...r }) => /* @__PURE__ */ A(i, {
|
|
499
|
-
...y(g.props(h.base, h.button,
|
|
522
|
+
...y(g.props(h.base, h.button, W.mobileLink, s && W.drawerFooterLink, W.rounded, W.selected), r),
|
|
500
523
|
"aria-current": n ? "location" : void 0,
|
|
501
524
|
onClick: (e) => u(r.onClick, e),
|
|
502
525
|
children: [/* @__PURE__ */ k("span", {
|
|
@@ -545,7 +568,7 @@ function q({ label: r, links: a, action: o, isFooter: s = !1 }) {
|
|
|
545
568
|
render: /* @__PURE__ */ k(e, {
|
|
546
569
|
variant: "ghost",
|
|
547
570
|
"aria-label": o.label,
|
|
548
|
-
xstyle:
|
|
571
|
+
xstyle: W.action
|
|
549
572
|
}),
|
|
550
573
|
onClick: d,
|
|
551
574
|
children: o.icon
|
|
@@ -555,8 +578,8 @@ function q({ label: r, links: a, action: o, isFooter: s = !1 }) {
|
|
|
555
578
|
})] })] })]
|
|
556
579
|
});
|
|
557
580
|
}
|
|
558
|
-
function
|
|
559
|
-
let t = S(
|
|
581
|
+
function be({ children: e }) {
|
|
582
|
+
let t = S(U) === "drawer";
|
|
560
583
|
return /* @__PURE__ */ k("div", {
|
|
561
584
|
...{
|
|
562
585
|
0: { className: "x78zum5 xdt5ytf x6s0dn4 xunmzkg x1yrrsrt x1c526fk" },
|
|
@@ -565,22 +588,22 @@ function _e({ children: e }) {
|
|
|
565
588
|
children: e
|
|
566
589
|
});
|
|
567
590
|
}
|
|
568
|
-
function
|
|
591
|
+
function K({ children: e }) {
|
|
569
592
|
return /* @__PURE__ */ k("span", {
|
|
570
593
|
"aria-hidden": !0,
|
|
571
594
|
className: "xrvj5dj x1ku5rj1 x9c6wpo x1ff4b4a x1f9pz31 x992rv9",
|
|
572
595
|
children: e
|
|
573
596
|
});
|
|
574
597
|
}
|
|
575
|
-
function
|
|
598
|
+
function xe({ count: e, icon: t }) {
|
|
576
599
|
return /* @__PURE__ */ k("div", {
|
|
577
600
|
"aria-hidden": !0,
|
|
578
601
|
className: "x1yrrsrt x1c526fk x78zum5 xdt5ytf x6s0dn4 xunmzkg",
|
|
579
|
-
children: Array.from({ length: e }, (e, n) => /* @__PURE__ */ k(
|
|
602
|
+
children: Array.from({ length: e }, (e, n) => /* @__PURE__ */ k(K, { children: t }, n))
|
|
580
603
|
});
|
|
581
604
|
}
|
|
582
605
|
// packages/layout/src/navigation-rail-menu.tsx
|
|
583
|
-
var
|
|
606
|
+
var Se = {
|
|
584
607
|
rail: {
|
|
585
608
|
side: "right",
|
|
586
609
|
align: "end"
|
|
@@ -590,8 +613,8 @@ var ye = {
|
|
|
590
613
|
align: "start"
|
|
591
614
|
}
|
|
592
615
|
};
|
|
593
|
-
function
|
|
594
|
-
let i = S(
|
|
616
|
+
function q({ label: t, icon: n, children: r }) {
|
|
617
|
+
let i = S(U), [a, o] = E(!1);
|
|
595
618
|
return C(() => {
|
|
596
619
|
let e = globalThis.matchMedia(P.sidebarDesktopQuery);
|
|
597
620
|
function t() {
|
|
@@ -615,7 +638,7 @@ function Y({ label: t, icon: n, children: r }) {
|
|
|
615
638
|
children: t
|
|
616
639
|
})]
|
|
617
640
|
}), /* @__PURE__ */ k(p.Popup, {
|
|
618
|
-
...
|
|
641
|
+
...Se[i],
|
|
619
642
|
sideOffset: 4,
|
|
620
643
|
collisionPadding: 8,
|
|
621
644
|
"aria-label": t,
|
|
@@ -625,7 +648,7 @@ function Y({ label: t, icon: n, children: r }) {
|
|
|
625
648
|
});
|
|
626
649
|
}
|
|
627
650
|
// packages/layout/src/app-shell.tsx
|
|
628
|
-
var
|
|
651
|
+
var J = {
|
|
629
652
|
sidebar: {
|
|
630
653
|
kB7OPa: "x9f619",
|
|
631
654
|
k1xSpc: "x78zum5 x1ykma7f",
|
|
@@ -662,16 +685,16 @@ var X = {
|
|
|
662
685
|
$$css: !0
|
|
663
686
|
}
|
|
664
687
|
};
|
|
665
|
-
function
|
|
688
|
+
function Y({ footer: e }) {
|
|
666
689
|
return /* @__PURE__ */ k("div", {
|
|
667
690
|
className: "x2lah0s x1a148e8",
|
|
668
|
-
children: /* @__PURE__ */ k(
|
|
691
|
+
children: /* @__PURE__ */ k(be, { children: "placeholder" in e ? /* @__PURE__ */ A(O, { children: [e.placeholder.linkIcon !== void 0 && /* @__PURE__ */ k(K, { children: e.placeholder.linkIcon }), /* @__PURE__ */ k(K, { children: e.placeholder.menuIcon })] }) : /* @__PURE__ */ A(O, { children: [e.navigation !== void 0 && /* @__PURE__ */ k(G, {
|
|
669
692
|
...e.navigation,
|
|
670
693
|
isFooter: !0
|
|
671
|
-
}), /* @__PURE__ */ k(
|
|
694
|
+
}), /* @__PURE__ */ k(q, { ...e.menu })] }) })
|
|
672
695
|
});
|
|
673
696
|
}
|
|
674
|
-
function
|
|
697
|
+
function Ce({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, children: a, mainId: o = "main", shouldFocus: c = !1 }) {
|
|
675
698
|
let l = e != null, [u, d] = E(!0), [p, m] = E(!1), h = c || l && !u, [_] = E(() => f.createController()), v = w(), y = T(null), b = T(null), x = T(null), S = T(!1);
|
|
676
699
|
return C(() => {
|
|
677
700
|
let e = globalThis.matchMedia(P.sidebarDesktopQuery);
|
|
@@ -696,17 +719,17 @@ function be({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, c
|
|
|
696
719
|
children: [
|
|
697
720
|
l && /* @__PURE__ */ A("div", {
|
|
698
721
|
hidden: c,
|
|
699
|
-
...g.props(
|
|
722
|
+
...g.props(J.sidebar, s.inlineEnd, J.rail, c && J.hidden),
|
|
700
723
|
children: [/* @__PURE__ */ k("div", {
|
|
701
724
|
className: "x98rzlu x2lwn1j x1odjw0f x1e4zzel",
|
|
702
725
|
children: e
|
|
703
|
-
}), t !== void 0 && /* @__PURE__ */ k(
|
|
726
|
+
}), t !== void 0 && /* @__PURE__ */ k(Y, { footer: t })]
|
|
704
727
|
}),
|
|
705
728
|
/* @__PURE__ */ k("aside", {
|
|
706
729
|
id: v,
|
|
707
730
|
"aria-label": "Navigation",
|
|
708
731
|
hidden: h,
|
|
709
|
-
...g.props(
|
|
732
|
+
...g.props(J.sidebar, s.inlineEnd, l && J.secondary, !l && !u && J.collapsed, h && J.hidden),
|
|
710
733
|
children: /* @__PURE__ */ k(L, {
|
|
711
734
|
header: n,
|
|
712
735
|
footer: i,
|
|
@@ -726,7 +749,7 @@ function be({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, c
|
|
|
726
749
|
onOpenChange: m,
|
|
727
750
|
children: [/* @__PURE__ */ k(f.Backdrop, {}), /* @__PURE__ */ A(f.Popup, {
|
|
728
751
|
ref: x,
|
|
729
|
-
xstyle:
|
|
752
|
+
xstyle: J.drawer,
|
|
730
753
|
finalFocus: () => {
|
|
731
754
|
if (S.current) {
|
|
732
755
|
S.current = !1;
|
|
@@ -744,13 +767,13 @@ function be({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, c
|
|
|
744
767
|
children: "Navigation"
|
|
745
768
|
}), /* @__PURE__ */ k(L, {
|
|
746
769
|
header: n,
|
|
747
|
-
navigationHeader: l && /* @__PURE__ */ k(
|
|
770
|
+
navigationHeader: l && /* @__PURE__ */ k(U.Provider, {
|
|
748
771
|
value: "drawer",
|
|
749
772
|
children: e
|
|
750
773
|
}),
|
|
751
|
-
footer: /* @__PURE__ */ A(O, { children: [i, l && t !== void 0 && /* @__PURE__ */ k(
|
|
774
|
+
footer: /* @__PURE__ */ A(O, { children: [i, l && t !== void 0 && /* @__PURE__ */ k(U.Provider, {
|
|
752
775
|
value: "drawer",
|
|
753
|
-
children: /* @__PURE__ */ k(
|
|
776
|
+
children: /* @__PURE__ */ k(Y, { footer: t })
|
|
754
777
|
})] }),
|
|
755
778
|
close: /* @__PURE__ */ k(ue, {}),
|
|
756
779
|
children: r
|
|
@@ -760,7 +783,7 @@ function be({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, c
|
|
|
760
783
|
});
|
|
761
784
|
}
|
|
762
785
|
// packages/layout/src/detail-page.tsx
|
|
763
|
-
function
|
|
786
|
+
function X({ children: e, isWide: t = !1 }) {
|
|
764
787
|
return /* @__PURE__ */ k("div", {
|
|
765
788
|
...{
|
|
766
789
|
0: { className: "x9f619 x13na7z x96idz6 x9g60mw xeuugli xvueqy4 xnjsko4 x10gdey3 x14y0u4g x1foqgtu x1uwsqpk x14oio8y" },
|
|
@@ -769,8 +792,43 @@ function Q({ children: e, isWide: t = !1 }) {
|
|
|
769
792
|
children: e
|
|
770
793
|
});
|
|
771
794
|
}
|
|
795
|
+
// packages/layout/src/figure-grid.tsx
|
|
796
|
+
var Z = {
|
|
797
|
+
grid: {
|
|
798
|
+
k1xSpc: "xrvj5dj",
|
|
799
|
+
kOIVth: "x1j825kq",
|
|
800
|
+
kGNEyG: "x1qjc9v5",
|
|
801
|
+
k7Eaqz: "xeuugli",
|
|
802
|
+
$$css: !0
|
|
803
|
+
},
|
|
804
|
+
twoUp: {
|
|
805
|
+
kumcoG: "xnby9oq x1kgop2p",
|
|
806
|
+
$$css: !0
|
|
807
|
+
},
|
|
808
|
+
heroAside: {
|
|
809
|
+
kumcoG: "x1lqi12u x1kgop2p",
|
|
810
|
+
$$css: !0
|
|
811
|
+
},
|
|
812
|
+
threeUp: {
|
|
813
|
+
kumcoG: "x185a7wo x1u207gz x1kgop2p",
|
|
814
|
+
$$css: !0
|
|
815
|
+
}
|
|
816
|
+
}, we = {
|
|
817
|
+
"2-up": Z.twoUp,
|
|
818
|
+
"hero-aside": Z.heroAside,
|
|
819
|
+
"3-up": Z.threeUp
|
|
820
|
+
};
|
|
821
|
+
function Te({ layout: e = "2-up", children: t, ...n }) {
|
|
822
|
+
return /* @__PURE__ */ k("div", {
|
|
823
|
+
className: "x12h1iku x1rb1qiq xeuugli",
|
|
824
|
+
children: /* @__PURE__ */ k("div", {
|
|
825
|
+
...y(g.props(Z.grid, we[e]), n),
|
|
826
|
+
children: t
|
|
827
|
+
})
|
|
828
|
+
});
|
|
829
|
+
}
|
|
772
830
|
// packages/layout/src/focus-page.tsx
|
|
773
|
-
function
|
|
831
|
+
function Ee({ children: e }) {
|
|
774
832
|
return /* @__PURE__ */ k("main", {
|
|
775
833
|
id: "main",
|
|
776
834
|
tabIndex: -1,
|
|
@@ -781,16 +839,88 @@ function xe({ children: e }) {
|
|
|
781
839
|
})
|
|
782
840
|
});
|
|
783
841
|
}
|
|
842
|
+
// packages/layout/src/resizable.tsx
|
|
843
|
+
function De({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n, disabled: r = !1, ref: i, ...a }) {
|
|
844
|
+
return /* @__PURE__ */ k(ne, {
|
|
845
|
+
orientation: e,
|
|
846
|
+
...t !== void 0 && { defaultLayout: t },
|
|
847
|
+
onLayoutCommit: (e, { event: t }) => {
|
|
848
|
+
t !== void 0 && n?.(e);
|
|
849
|
+
},
|
|
850
|
+
disabled: r,
|
|
851
|
+
ref: i,
|
|
852
|
+
...y({ className: "xeuugli x2lwn1j xh8yej3 x5yr21d" }, a)
|
|
853
|
+
});
|
|
854
|
+
}
|
|
855
|
+
function Oe({ id: e, initialSizePercent: t, minimumSizePercent: n = 10, maximumSizePercent: r = 100, canCollapse: i = !1, ref: a, ...o }) {
|
|
856
|
+
return /* @__PURE__ */ k(ie, {
|
|
857
|
+
id: e,
|
|
858
|
+
...t !== void 0 && { defaultSize: t },
|
|
859
|
+
minSize: n,
|
|
860
|
+
maxSize: r,
|
|
861
|
+
collapsible: i,
|
|
862
|
+
ref: a,
|
|
863
|
+
...y({ className: "xeuugli x2lwn1j xysyzu8" }, o)
|
|
864
|
+
});
|
|
865
|
+
}
|
|
866
|
+
function ke({ ref: e, ...t }) {
|
|
867
|
+
return /* @__PURE__ */ k(re, {
|
|
868
|
+
ref: e,
|
|
869
|
+
...y({ className: "x1n2onr6 x1vjfegm x9f619 x1fa40ue xqkn89t xsmyaan x1ff4b4a x7b6jwd xse4jxt x1jy3mcf x1k8hp4o x1rbdpqn x1ehdxp2 x1wg4s0h xse41gn xiti608 xxf9m8b x1ep60v ximv7tn xls05dq xkkvcqt x13qnu6 x9v5kkp x19rmrnh x13iak60" }, t)
|
|
870
|
+
});
|
|
871
|
+
}
|
|
872
|
+
var Q = {
|
|
873
|
+
Root: De,
|
|
874
|
+
Pane: Oe,
|
|
875
|
+
Handle: ke
|
|
876
|
+
};
|
|
784
877
|
// packages/layout/src/workbench.tsx
|
|
785
|
-
function
|
|
878
|
+
function Ae({ header: e, children: t, inspector: n, isResizable: r = !1, inspectorInitialPercent: i = 36 }) {
|
|
879
|
+
let a = r && n !== void 0, o = Math.max(30, Math.min(80, 100 - i));
|
|
786
880
|
return /* @__PURE__ */ A("div", {
|
|
787
881
|
className: "x78zum5 xdt5ytf xtdtrs8 xmz0i5r x98rzlu xeuugli x2lwn1j x12h1iku x1a75771 xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel",
|
|
788
882
|
children: [e != null && /* @__PURE__ */ k("div", {
|
|
789
883
|
className: "xeuugli x2lah0s x1ydxw8w xnx3t7k xso031l x1q0q8m5 x1qndepd",
|
|
790
884
|
children: e
|
|
791
|
-
}), /* @__PURE__ */
|
|
885
|
+
}), /* @__PURE__ */ k("div", {
|
|
792
886
|
className: "x78zum5 x98rzlu xeuugli x2lwn1j x7giv3",
|
|
793
|
-
children: [/* @__PURE__ */ k("div", {
|
|
887
|
+
children: a ? /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k("div", {
|
|
888
|
+
className: "x78zum5 x152g2jv x98rzlu xeuugli x2lwn1j",
|
|
889
|
+
children: /* @__PURE__ */ A(Q.Root, {
|
|
890
|
+
orientation: "horizontal",
|
|
891
|
+
initialSizes: [o, 100 - o],
|
|
892
|
+
children: [
|
|
893
|
+
/* @__PURE__ */ k(Q.Pane, {
|
|
894
|
+
id: "workbench-main",
|
|
895
|
+
initialSizePercent: o,
|
|
896
|
+
minimumSizePercent: 30,
|
|
897
|
+
children: /* @__PURE__ */ k("div", {
|
|
898
|
+
className: "x1n2onr6 x78zum5 x98rzlu xdt5ytf xeuugli x2lwn1j",
|
|
899
|
+
children: t
|
|
900
|
+
})
|
|
901
|
+
}),
|
|
902
|
+
/* @__PURE__ */ k(Q.Handle, { "aria-label": `Resize ${n.label}` }),
|
|
903
|
+
/* @__PURE__ */ k(Q.Pane, {
|
|
904
|
+
id: "workbench-inspector",
|
|
905
|
+
initialSizePercent: 100 - o,
|
|
906
|
+
minimumSizePercent: 20,
|
|
907
|
+
maximumSizePercent: 70,
|
|
908
|
+
children: /* @__PURE__ */ k("aside", {
|
|
909
|
+
"aria-label": n.label,
|
|
910
|
+
className: "x9f619 xh8yej3 x5yr21d xeuugli x1odjw0f x1c8xbx5 xpvm0e4",
|
|
911
|
+
children: n.content
|
|
912
|
+
})
|
|
913
|
+
})
|
|
914
|
+
]
|
|
915
|
+
})
|
|
916
|
+
}), /* @__PURE__ */ k("div", {
|
|
917
|
+
className: "x1s85apg xbv8p1s x98rzlu xeuugli x2lwn1j",
|
|
918
|
+
children: /* @__PURE__ */ k("aside", {
|
|
919
|
+
"aria-label": n.label,
|
|
920
|
+
className: "x9f619 x1peuizl x1vx4hiz xeuugli x2lah0s x1odjw0f x1c8xbx5 xpvm0e4 xe0pwq xs311s2 x19ypqd9 x1l3ounx",
|
|
921
|
+
children: n.content
|
|
922
|
+
})
|
|
923
|
+
})] }) : /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k("div", {
|
|
794
924
|
...{
|
|
795
925
|
0: { className: "x1n2onr6 x78zum5 x98rzlu xdt5ytf xeuugli x2lwn1j" },
|
|
796
926
|
1: { className: "x1n2onr6 x98rzlu xdt5ytf xeuugli x2lwn1j x78zum5 x152g2jv" }
|
|
@@ -800,11 +930,11 @@ function Se({ header: e, children: t, inspector: n }) {
|
|
|
800
930
|
"aria-label": n.label,
|
|
801
931
|
className: "x9f619 x1peuizl x1vx4hiz xeuugli x2lah0s x1odjw0f x1c8xbx5 xpvm0e4 xe0pwq xs311s2 x19ypqd9 x1l3ounx",
|
|
802
932
|
children: n.content
|
|
803
|
-
})]
|
|
933
|
+
})] })
|
|
804
934
|
})]
|
|
805
935
|
});
|
|
806
936
|
}
|
|
807
|
-
function
|
|
937
|
+
function je({ label: e, children: t, isFlush: n = !1, scrollRestorationId: r }) {
|
|
808
938
|
let i = c();
|
|
809
939
|
return /* @__PURE__ */ k("div", {
|
|
810
940
|
ref: i.ref,
|
|
@@ -819,20 +949,20 @@ function Ce({ label: e, children: t, isFlush: n = !1, scrollRestorationId: r })
|
|
|
819
949
|
children: t
|
|
820
950
|
});
|
|
821
951
|
}
|
|
822
|
-
function
|
|
952
|
+
function Me({ children: e }) {
|
|
823
953
|
return /* @__PURE__ */ k("div", {
|
|
824
954
|
className: "x2lah0s x1c8xbx5 x178xt8z x13fuv20 xhjagg4 xpvm0e4",
|
|
825
955
|
children: e
|
|
826
956
|
});
|
|
827
957
|
}
|
|
828
958
|
// packages/layout/src/view-stack.tsx
|
|
829
|
-
function
|
|
959
|
+
function Ne({ children: e }) {
|
|
830
960
|
return /* @__PURE__ */ k("div", {
|
|
831
961
|
className: "x1n2onr6 x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j",
|
|
832
962
|
children: e
|
|
833
963
|
});
|
|
834
964
|
}
|
|
835
|
-
function
|
|
965
|
+
function Pe({ isActive: e, children: t }) {
|
|
836
966
|
return /* @__PURE__ */ k("section", {
|
|
837
967
|
"aria-hidden": !e,
|
|
838
968
|
inert: !e,
|
|
@@ -843,12 +973,12 @@ function Ee({ isActive: e, children: t }) {
|
|
|
843
973
|
children: t
|
|
844
974
|
});
|
|
845
975
|
}
|
|
846
|
-
var
|
|
847
|
-
Root:
|
|
848
|
-
Panel:
|
|
976
|
+
var $ = {
|
|
977
|
+
Root: Ne,
|
|
978
|
+
Panel: Pe
|
|
849
979
|
};
|
|
850
980
|
// packages/layout/src/collection-layout.tsx
|
|
851
|
-
function
|
|
981
|
+
function Fe({ header: e, children: t }) {
|
|
852
982
|
return /* @__PURE__ */ A("div", {
|
|
853
983
|
"data-page-layout": "collection",
|
|
854
984
|
className: "x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j x7giv3",
|
|
@@ -862,7 +992,7 @@ function $({ header: e, children: t }) {
|
|
|
862
992
|
});
|
|
863
993
|
}
|
|
864
994
|
// packages/layout/src/record-page.tsx
|
|
865
|
-
function
|
|
995
|
+
function Ie({ backLabel: e, backHref: t, onBack: n }) {
|
|
866
996
|
return /* @__PURE__ */ A(i, {
|
|
867
997
|
href: t,
|
|
868
998
|
className: "x3nfvp2 x6s0dn4 x1hnptsi xid9utz xeuugli x193iq5w xbixft xkrqix3 x5638nf x13qnu6 x9v5kkp x19rmrnh x1bqaal",
|
|
@@ -881,20 +1011,20 @@ function Oe({ backLabel: e, backHref: t, onBack: n }) {
|
|
|
881
1011
|
})]
|
|
882
1012
|
});
|
|
883
1013
|
}
|
|
884
|
-
function
|
|
885
|
-
return /* @__PURE__ */ k(
|
|
1014
|
+
function Le({ navigation: e, children: t, ...n }) {
|
|
1015
|
+
return /* @__PURE__ */ k(H, {
|
|
886
1016
|
showBreadcrumb: !0,
|
|
887
1017
|
showNavigation: n.showNavigation ?? !0,
|
|
888
1018
|
actions: n.actions,
|
|
889
|
-
title: /* @__PURE__ */ k(
|
|
1019
|
+
title: /* @__PURE__ */ k(Ie, { ...n }),
|
|
890
1020
|
navigation: e,
|
|
891
1021
|
children: t
|
|
892
1022
|
});
|
|
893
1023
|
}
|
|
894
|
-
function
|
|
1024
|
+
function Re({ children: e, isWide: t = !1 }) {
|
|
895
1025
|
return /* @__PURE__ */ k("div", {
|
|
896
1026
|
className: "x78zum5 xdt5ytf xeuugli xbixft x1hz01jw xtqrqnz x1778rvt xvmahel",
|
|
897
|
-
children: /* @__PURE__ */ k(
|
|
1027
|
+
children: /* @__PURE__ */ k(X, {
|
|
898
1028
|
isWide: t,
|
|
899
1029
|
children: /* @__PURE__ */ k("div", {
|
|
900
1030
|
className: "x78zum5 x1a02dak x1cy8zhl xdz4d12 xeuugli",
|
|
@@ -903,13 +1033,13 @@ function Ae({ children: e, isWide: t = !1 }) {
|
|
|
903
1033
|
})
|
|
904
1034
|
});
|
|
905
1035
|
}
|
|
906
|
-
function
|
|
1036
|
+
function ze({ children: e }) {
|
|
907
1037
|
return /* @__PURE__ */ k("div", {
|
|
908
1038
|
className: "x78zum5 xdt5ytf x1ewej1i x1iyjqo2 xdz4d12 xeuugli",
|
|
909
1039
|
children: e
|
|
910
1040
|
});
|
|
911
1041
|
}
|
|
912
|
-
function
|
|
1042
|
+
function Be({ title: e, description: t, icon: n, titleRef: i }) {
|
|
913
1043
|
return /* @__PURE__ */ A("header", {
|
|
914
1044
|
className: "xrvj5dj x1n8ia3y xeuugli",
|
|
915
1045
|
children: [/* @__PURE__ */ A("div", {
|
|
@@ -928,53 +1058,18 @@ function Me({ title: e, description: t, icon: n, titleRef: i }) {
|
|
|
928
1058
|
}), t != null && /* @__PURE__ */ k(r, { children: t })]
|
|
929
1059
|
});
|
|
930
1060
|
}
|
|
931
|
-
function
|
|
1061
|
+
function Ve({ children: e, label: t = "Properties" }) {
|
|
932
1062
|
return /* @__PURE__ */ k("aside", {
|
|
933
1063
|
"aria-label": t,
|
|
934
1064
|
className: "x78zum5 xdt5ytf x1irul0l x1iyjqo2 x1j825kq xeuugli",
|
|
935
1065
|
children: e
|
|
936
1066
|
});
|
|
937
1067
|
}
|
|
938
|
-
var
|
|
939
|
-
Layout:
|
|
940
|
-
Body:
|
|
941
|
-
Content:
|
|
942
|
-
Header:
|
|
943
|
-
Aside:
|
|
944
|
-
};
|
|
945
|
-
// packages/layout/src/resizable.tsx
|
|
946
|
-
function Fe({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n, disabled: r = !1, ref: i, ...a }) {
|
|
947
|
-
return /* @__PURE__ */ k(ne, {
|
|
948
|
-
orientation: e,
|
|
949
|
-
...t !== void 0 && { defaultLayout: t },
|
|
950
|
-
onLayoutCommit: (e, { event: t }) => {
|
|
951
|
-
t !== void 0 && n?.(e);
|
|
952
|
-
},
|
|
953
|
-
disabled: r,
|
|
954
|
-
ref: i,
|
|
955
|
-
...y({ className: "xeuugli x2lwn1j xh8yej3 x5yr21d" }, a)
|
|
956
|
-
});
|
|
957
|
-
}
|
|
958
|
-
function Ie({ id: e, initialSizePercent: t, minimumSizePercent: n = 10, maximumSizePercent: r = 100, canCollapse: i = !1, ref: a, ...o }) {
|
|
959
|
-
return /* @__PURE__ */ k(ie, {
|
|
960
|
-
id: e,
|
|
961
|
-
...t !== void 0 && { defaultSize: t },
|
|
962
|
-
minSize: n,
|
|
963
|
-
maxSize: r,
|
|
964
|
-
collapsible: i,
|
|
965
|
-
ref: a,
|
|
966
|
-
...y({ className: "xeuugli x2lwn1j xysyzu8" }, o)
|
|
967
|
-
});
|
|
968
|
-
}
|
|
969
|
-
function Le({ ref: e, ...t }) {
|
|
970
|
-
return /* @__PURE__ */ k(re, {
|
|
971
|
-
ref: e,
|
|
972
|
-
...y({ className: "x1n2onr6 x1vjfegm x9f619 x1fa40ue xqkn89t xsmyaan x1ff4b4a x7b6jwd xse4jxt x1jy3mcf x1k8hp4o x1rbdpqn x1ehdxp2 x1wg4s0h xse41gn xiti608 xxf9m8b x1ep60v ximv7tn xls05dq xkkvcqt x13qnu6 x9v5kkp x19rmrnh x13iak60" }, t)
|
|
973
|
-
});
|
|
974
|
-
}
|
|
975
|
-
var Re = {
|
|
976
|
-
Root: Fe,
|
|
977
|
-
Pane: Ie,
|
|
978
|
-
Handle: Le
|
|
1068
|
+
var He = {
|
|
1069
|
+
Layout: Le,
|
|
1070
|
+
Body: Re,
|
|
1071
|
+
Content: ze,
|
|
1072
|
+
Header: Be,
|
|
1073
|
+
Aside: Ve
|
|
979
1074
|
};
|
|
980
|
-
export {
|
|
1075
|
+
export { Ce as AppShell, Fe as CollectionLayout, X as DetailPage, Te as FigureGrid, Ee as FocusPage, de as Navigation, pe as NavigationItem, R as NavigationLink, ye as NavigationRail, q as NavigationRailMenu, xe as NavigationRailPlaceholder, fe as NavigationSection, M as PageContent, H as PageLayout, ve as PageSection, He as RecordPage, Q as Resizable, z as SidebarBrand, me as SidebarFooter, B as SidebarLabel, _e as ToolbarAction, $ as ViewStack, Ae as Workbench, Me as WorkbenchFooter, je as WorkbenchScroll };
|