@mechane-ai/elements 0.56.0 → 0.58.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 +1 -1
- package/dist/catalog.json +61 -21
- package/dist/content.js +1 -1
- package/dist/kits/research.js +2 -2
- package/dist/layout.js +1 -1
- package/dist/packages/content/src/index.d.ts +8 -2
- package/dist/packages/content/src/playback-bar.d.ts +22 -0
- package/dist/packages/content/src/timeline-scrubber.d.ts +28 -0
- package/dist/packages/content/src/viewport-frame.d.ts +27 -0
- package/dist/packages/layout/src/devtools-bar.d.ts +7 -1
- package/dist/{src-BqY5rsqi.js → src-Cuwx-PLT.js} +59 -48
- package/dist/src-Cw1yrc2P.js +871 -0
- package/dist/styles2.css +75 -0
- package/package.json +1 -1
- package/dist/src-DFW49IAs.js +0 -441
package/dist/ai.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { D as e, O as t, T as n, h as r, i, k as a, m as o, t as s, v as c } from "./src-9EJskqB_.js";
|
|
2
2
|
import { t as l } from "./code-block-BZsY2sh3.js";
|
|
3
|
-
import {
|
|
3
|
+
import { f as u } from "./src-Cw1yrc2P.js";
|
|
4
4
|
import { t as d } from "./content-link-PnpcnTCx.js";
|
|
5
5
|
import { n as f, r as p } from "./markdown-VpLw_P9T.js";
|
|
6
6
|
import { r as m, t as h } from "./src-na2DdkKI.js";
|
package/dist/catalog.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"package": "@mechane-ai/elements",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.58.0",
|
|
4
4
|
"recipes": [
|
|
5
5
|
{
|
|
6
6
|
"slug": "allocation-report",
|
|
@@ -1251,6 +1251,14 @@
|
|
|
1251
1251
|
"kind": "value",
|
|
1252
1252
|
"declaration": "dist/packages/content/src/media-viewer.d.ts"
|
|
1253
1253
|
},
|
|
1254
|
+
"PlaybackBarProps": {
|
|
1255
|
+
"kind": "type",
|
|
1256
|
+
"declaration": "dist/packages/content/src/playback-bar.d.ts"
|
|
1257
|
+
},
|
|
1258
|
+
"PlaybackBar": {
|
|
1259
|
+
"kind": "value",
|
|
1260
|
+
"declaration": "dist/packages/content/src/playback-bar.d.ts"
|
|
1261
|
+
},
|
|
1254
1262
|
"StackFrame": {
|
|
1255
1263
|
"kind": "type",
|
|
1256
1264
|
"declaration": "dist/packages/content/src/stack-trace.d.ts"
|
|
@@ -1263,26 +1271,6 @@
|
|
|
1263
1271
|
"kind": "value",
|
|
1264
1272
|
"declaration": "dist/packages/content/src/stack-trace.d.ts"
|
|
1265
1273
|
},
|
|
1266
|
-
"TraceStatus": {
|
|
1267
|
-
"kind": "type",
|
|
1268
|
-
"declaration": "dist/packages/content/src/trace.d.ts"
|
|
1269
|
-
},
|
|
1270
|
-
"TraceRootProps": {
|
|
1271
|
-
"kind": "type",
|
|
1272
|
-
"declaration": "dist/packages/content/src/trace.d.ts"
|
|
1273
|
-
},
|
|
1274
|
-
"TraceGroupProps": {
|
|
1275
|
-
"kind": "type",
|
|
1276
|
-
"declaration": "dist/packages/content/src/trace.d.ts"
|
|
1277
|
-
},
|
|
1278
|
-
"TraceItemProps": {
|
|
1279
|
-
"kind": "type",
|
|
1280
|
-
"declaration": "dist/packages/content/src/trace.d.ts"
|
|
1281
|
-
},
|
|
1282
|
-
"Trace": {
|
|
1283
|
-
"kind": "value",
|
|
1284
|
-
"declaration": "dist/packages/content/src/trace.d.ts"
|
|
1285
|
-
},
|
|
1286
1274
|
"MatchRange": {
|
|
1287
1275
|
"kind": "type",
|
|
1288
1276
|
"declaration": "dist/packages/content/src/text-match.d.ts"
|
|
@@ -1318,6 +1306,58 @@
|
|
|
1318
1306
|
"TextMatch": {
|
|
1319
1307
|
"kind": "value",
|
|
1320
1308
|
"declaration": "dist/packages/content/src/text-match.d.ts"
|
|
1309
|
+
},
|
|
1310
|
+
"TimelineMarker": {
|
|
1311
|
+
"kind": "type",
|
|
1312
|
+
"declaration": "dist/packages/content/src/timeline-scrubber.d.ts"
|
|
1313
|
+
},
|
|
1314
|
+
"TimelineMarkerTone": {
|
|
1315
|
+
"kind": "type",
|
|
1316
|
+
"declaration": "dist/packages/content/src/timeline-scrubber.d.ts"
|
|
1317
|
+
},
|
|
1318
|
+
"TimelineScrubberProps": {
|
|
1319
|
+
"kind": "type",
|
|
1320
|
+
"declaration": "dist/packages/content/src/timeline-scrubber.d.ts"
|
|
1321
|
+
},
|
|
1322
|
+
"TimelineScrubber": {
|
|
1323
|
+
"kind": "value",
|
|
1324
|
+
"declaration": "dist/packages/content/src/timeline-scrubber.d.ts"
|
|
1325
|
+
},
|
|
1326
|
+
"TraceStatus": {
|
|
1327
|
+
"kind": "type",
|
|
1328
|
+
"declaration": "dist/packages/content/src/trace.d.ts"
|
|
1329
|
+
},
|
|
1330
|
+
"TraceRootProps": {
|
|
1331
|
+
"kind": "type",
|
|
1332
|
+
"declaration": "dist/packages/content/src/trace.d.ts"
|
|
1333
|
+
},
|
|
1334
|
+
"TraceGroupProps": {
|
|
1335
|
+
"kind": "type",
|
|
1336
|
+
"declaration": "dist/packages/content/src/trace.d.ts"
|
|
1337
|
+
},
|
|
1338
|
+
"TraceItemProps": {
|
|
1339
|
+
"kind": "type",
|
|
1340
|
+
"declaration": "dist/packages/content/src/trace.d.ts"
|
|
1341
|
+
},
|
|
1342
|
+
"Trace": {
|
|
1343
|
+
"kind": "value",
|
|
1344
|
+
"declaration": "dist/packages/content/src/trace.d.ts"
|
|
1345
|
+
},
|
|
1346
|
+
"ViewportAspectRatio": {
|
|
1347
|
+
"kind": "type",
|
|
1348
|
+
"declaration": "dist/packages/content/src/viewport-frame.d.ts"
|
|
1349
|
+
},
|
|
1350
|
+
"ViewportFrameProps": {
|
|
1351
|
+
"kind": "type",
|
|
1352
|
+
"declaration": "dist/packages/content/src/viewport-frame.d.ts"
|
|
1353
|
+
},
|
|
1354
|
+
"ViewportFrameState": {
|
|
1355
|
+
"kind": "type",
|
|
1356
|
+
"declaration": "dist/packages/content/src/viewport-frame.d.ts"
|
|
1357
|
+
},
|
|
1358
|
+
"ViewportFrame": {
|
|
1359
|
+
"kind": "value",
|
|
1360
|
+
"declaration": "dist/packages/content/src/viewport-frame.d.ts"
|
|
1321
1361
|
}
|
|
1322
1362
|
},
|
|
1323
1363
|
"@mechane-ai/elements/content/link": {
|
package/dist/content.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { p as JsonViewer, f as LogViewer, u as MediaViewer, d as MediaViewerPlaceholder, l as PlaybackBar, c as StackTrace, i as TextMatch, r as TimelineScrubber, n as Trace, t as ViewportFrame, a as fuzzyScore, o as matchRanges, s as matchSegments } from "./src-Cw1yrc2P.js";
|
package/dist/kits/research.js
CHANGED
|
@@ -2,12 +2,12 @@ import { d as e, f as t, g as n, h as r, m as i, n as a, o, u as s, y as c } fro
|
|
|
2
2
|
import { c as l, f as u, h as d, l as f, m as p, o as m, p as h, r as g, t as _, v } from "../src-9EJskqB_.js";
|
|
3
3
|
import { m as y, p as b, s as x, t as S } from "../src-C-Wg9m9H.js";
|
|
4
4
|
import { u as C } from "../src-Dxs3Buo_.js";
|
|
5
|
-
import { D as w, _ as T, i as E, n as D } from "../src-
|
|
5
|
+
import { D as w, _ as T, i as E, n as D } from "../src-Cuwx-PLT.js";
|
|
6
6
|
import { r as O } from "../figure-format-B8kRZMlo.js";
|
|
7
7
|
import { n as k } from "../src-na2DdkKI.js";
|
|
8
8
|
import { a as A, t as j } from "../tree-diagram-BDj4TGXb.js";
|
|
9
9
|
import { f as M } from "../time-series-CoAtNizi.js";
|
|
10
|
-
import {
|
|
10
|
+
import { i as N } from "../src-Cw1yrc2P.js";
|
|
11
11
|
import "@stylexjs/stylex";
|
|
12
12
|
import { useEffect as ee, useState as P } from "react";
|
|
13
13
|
import { Fragment as F, jsx as I, jsxs as L } from "react/jsx-runtime";
|
package/dist/layout.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { d as AppShell, n as CollectionLayout, u as DetailPage, h as DevToolsBar, l as FigureGrid, c as FocusPage, b as Navigation, x as NavigationItem, S as NavigationLink, p as NavigationRail, f as NavigationRailMenu, m as NavigationRailPlaceholder, C as NavigationSection, D as PageContent, _ as PageLayout, v as PageSection, t as RecordPage, s as Resizable, w as SidebarBrand, T as SidebarFooter, E as SidebarLabel, y as ToolbarAction, r as ViewStack, i as Workbench, a as WorkbenchFooter, o as WorkbenchScroll, g as useDevToolsBar } from "./src-
|
|
1
|
+
export { d as AppShell, n as CollectionLayout, u as DetailPage, h as DevToolsBar, l as FigureGrid, c as FocusPage, b as Navigation, x as NavigationItem, S as NavigationLink, p as NavigationRail, f as NavigationRailMenu, m as NavigationRailPlaceholder, C as NavigationSection, D as PageContent, _ as PageLayout, v as PageSection, t as RecordPage, s as Resizable, w as SidebarBrand, T as SidebarFooter, E as SidebarLabel, y as ToolbarAction, r as ViewStack, i as Workbench, a as WorkbenchFooter, o as WorkbenchScroll, g as useDevToolsBar } from "./src-Cuwx-PLT.js";
|
|
@@ -4,9 +4,15 @@ export type { LogViewerProps } from './log-viewer.tsx';
|
|
|
4
4
|
export { LogViewer } from './log-viewer.tsx';
|
|
5
5
|
export type { MediaViewerProps } from './media-viewer.tsx';
|
|
6
6
|
export { MediaViewer, MediaViewerPlaceholder } from './media-viewer.tsx';
|
|
7
|
+
export type { PlaybackBarProps } from './playback-bar.tsx';
|
|
8
|
+
export { PlaybackBar } from './playback-bar.tsx';
|
|
7
9
|
export type { StackFrame, StackTraceProps } from './stack-trace.tsx';
|
|
8
10
|
export { StackTrace } from './stack-trace.tsx';
|
|
9
|
-
export type { TraceStatus, TraceRootProps, TraceGroupProps, TraceItemProps } from './trace.tsx';
|
|
10
|
-
export { Trace } from './trace.tsx';
|
|
11
11
|
export type { MatchRange, MatchSegment, TextMatchMode, TextMatchProps, TextMatchTone } from './text-match.tsx';
|
|
12
12
|
export { fuzzyScore, matchRanges, matchSegments, TextMatch } from './text-match.tsx';
|
|
13
|
+
export type { TimelineMarker, TimelineMarkerTone, TimelineScrubberProps } from './timeline-scrubber.tsx';
|
|
14
|
+
export { TimelineScrubber } from './timeline-scrubber.tsx';
|
|
15
|
+
export type { TraceStatus, TraceRootProps, TraceGroupProps, TraceItemProps } from './trace.tsx';
|
|
16
|
+
export { Trace } from './trace.tsx';
|
|
17
|
+
export type { ViewportAspectRatio, ViewportFrameProps, ViewportFrameState } from './viewport-frame.tsx';
|
|
18
|
+
export { ViewportFrame } from './viewport-frame.tsx';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ControlDensity } from '../../core/src/index.ts';
|
|
3
|
+
export type PlaybackBarProps = {
|
|
4
|
+
readonly isPlaying: boolean;
|
|
5
|
+
readonly onPlayingChange: (isPlaying: boolean) => void;
|
|
6
|
+
readonly onStepBackward?: () => void;
|
|
7
|
+
readonly onStepForward?: () => void;
|
|
8
|
+
readonly speed?: number;
|
|
9
|
+
readonly speeds?: ReadonlyArray<number>;
|
|
10
|
+
readonly onSpeedChange?: (speed: number) => void;
|
|
11
|
+
readonly readout?: string;
|
|
12
|
+
readonly actions?: ReactNode;
|
|
13
|
+
readonly density?: ControlDensity;
|
|
14
|
+
readonly isDisabled?: boolean;
|
|
15
|
+
readonly playLabel?: string;
|
|
16
|
+
readonly pauseLabel?: string;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Horizontal transport control bar composing play/pause, optional step buttons, a speed selector, a tabular readout,
|
|
20
|
+
* and trailing actions. Leaves playback clocks, frame advancement, and media state to the consuming application.
|
|
21
|
+
*/
|
|
22
|
+
export declare function PlaybackBar({ isPlaying, onPlayingChange, onStepBackward, onStepForward, speed, speeds, onSpeedChange, readout, actions, density, isDisabled, playLabel, pauseLabel, }: PlaybackBarProps): ReactNode;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export type TimelineMarkerTone = 'neutral' | 'positive' | 'warning' | 'negative' | 'accent';
|
|
3
|
+
export type TimelineMarker = {
|
|
4
|
+
readonly id: string;
|
|
5
|
+
readonly position: number;
|
|
6
|
+
readonly tone?: TimelineMarkerTone;
|
|
7
|
+
readonly label: string;
|
|
8
|
+
};
|
|
9
|
+
export type TimelineScrubberProps = {
|
|
10
|
+
readonly value: number;
|
|
11
|
+
readonly max: number;
|
|
12
|
+
readonly min?: number;
|
|
13
|
+
readonly step?: number;
|
|
14
|
+
readonly onValueChange: (value: number) => void;
|
|
15
|
+
readonly onScrubStart?: () => void;
|
|
16
|
+
readonly onScrubEnd?: () => void;
|
|
17
|
+
readonly markers?: ReadonlyArray<TimelineMarker>;
|
|
18
|
+
readonly onMarkerSelect?: (marker: TimelineMarker) => void;
|
|
19
|
+
readonly formatValue?: (value: number) => string;
|
|
20
|
+
readonly isDisabled?: boolean;
|
|
21
|
+
/** Accessible name applied to the scrubber slider. */
|
|
22
|
+
readonly label: string;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Accessible horizontal scrub track for media or simulation timelines with optional clickable event markers. Supports
|
|
26
|
+
* keyboard stepping, pointer capture dragging, and marker jump selection while leaving playback timing to the caller.
|
|
27
|
+
*/
|
|
28
|
+
export declare function TimelineScrubber({ value, max, min, step, onValueChange, onScrubStart, onScrubEnd, markers, onMarkerSelect, formatValue, isDisabled, label, }: TimelineScrubberProps): ReactNode;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export type ViewportAspectRatio = '16/9' | '16/10' | '4/3' | 'fill';
|
|
3
|
+
export type ViewportFrameState = 'pending' | 'ready' | 'failed';
|
|
4
|
+
export type ViewportFrameProps = {
|
|
5
|
+
/** Frame aspect ratio, or `'fill'` to occupy the parent container's height. Defaults to `'16/9'`. */
|
|
6
|
+
readonly aspectRatio?: ViewportAspectRatio;
|
|
7
|
+
/** Leading header content, such as a title or status indicator. */
|
|
8
|
+
readonly headerStart?: ReactNode;
|
|
9
|
+
/** Trailing header content, such as view actions or controls. */
|
|
10
|
+
readonly headerEnd?: ReactNode;
|
|
11
|
+
/** Optional inline notice bar rendered below the header and above the stage. */
|
|
12
|
+
readonly notice?: ReactNode;
|
|
13
|
+
/** Readiness of the stage content. Defaults to `'ready'`. */
|
|
14
|
+
readonly state?: ViewportFrameState;
|
|
15
|
+
/** Centered overlay shown over the stage while `state` is `'pending'` or `'failed'`. */
|
|
16
|
+
readonly placeholder?: ReactNode;
|
|
17
|
+
/** Media, canvas, or embedded frame mounted inside the contained `inset: 0` stage slot. */
|
|
18
|
+
readonly children: ReactNode;
|
|
19
|
+
/** Accessible name applied to the stage region. */
|
|
20
|
+
readonly label?: string;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Framed container for canvas, iframe, or custom media stages with an optional header bar, inline notice strip, and
|
|
24
|
+
* pending or failed overlay. Isolates stage geometry inside an `inset: 0` wrapper so embedded content cannot expand
|
|
25
|
+
* surrounding CSS Grid or flex tracks.
|
|
26
|
+
*/
|
|
27
|
+
export declare function ViewportFrame({ aspectRatio, headerStart, headerEnd, notice, state, placeholder, children, label, }: ViewportFrameProps): ReactNode;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
type DevToolsBarProps = {
|
|
3
|
+
readonly children?: ReactNode;
|
|
4
|
+
readonly actions?: ReactNode;
|
|
5
|
+
readonly tone?: 'neutral' | 'accent';
|
|
6
|
+
};
|
|
7
|
+
export declare function DevToolsBar({ children, actions, tone }: DevToolsBarProps): ReactNode;
|
|
3
8
|
export declare function useDevToolsBar(storageKey: string): boolean;
|
|
9
|
+
export {};
|
|
@@ -468,17 +468,28 @@ function xe({ children: e, summary: t, breakdown: n, ...r }) {
|
|
|
468
468
|
}
|
|
469
469
|
// packages/layout/src/devtools-bar.tsx
|
|
470
470
|
var Se = { bar: {
|
|
471
|
+
kOIVth: "x1n8ia3y",
|
|
471
472
|
kAzted: "xzhxzul",
|
|
472
473
|
$$css: !0
|
|
473
|
-
} }
|
|
474
|
-
|
|
475
|
-
|
|
474
|
+
} }, Ce = {
|
|
475
|
+
neutral: { $$css: !0 },
|
|
476
|
+
accent: {
|
|
477
|
+
kWkggS: "x1r8u7ye",
|
|
478
|
+
kMwMTN: "x7ixh4y",
|
|
479
|
+
$$css: !0
|
|
480
|
+
}
|
|
481
|
+
};
|
|
482
|
+
function we({ children: e = "DevTools", actions: t, tone: n = "neutral" }) {
|
|
483
|
+
return /* @__PURE__ */ M("aside", {
|
|
476
484
|
"aria-label": "Developer tools",
|
|
477
|
-
..._.props(s.row, s.blockStart, Se.bar),
|
|
478
|
-
children: "
|
|
485
|
+
..._.props(s.row, s.blockStart, Se.bar, Ce[n]),
|
|
486
|
+
children: [e, t != null && /* @__PURE__ */ j("div", {
|
|
487
|
+
..._.props(s.trailing),
|
|
488
|
+
children: t
|
|
489
|
+
})]
|
|
479
490
|
});
|
|
480
491
|
}
|
|
481
|
-
function
|
|
492
|
+
function Te(e) {
|
|
482
493
|
let [t, n] = O(!1), r = D(!1);
|
|
483
494
|
return E(() => {
|
|
484
495
|
function t() {
|
|
@@ -556,7 +567,7 @@ var U = S("rail"), W = {
|
|
|
556
567
|
$$css: !0
|
|
557
568
|
}
|
|
558
569
|
};
|
|
559
|
-
function
|
|
570
|
+
function Ee(e) {
|
|
560
571
|
return /* @__PURE__ */ j(G, { ...e });
|
|
561
572
|
}
|
|
562
573
|
function G({ label: r, links: a, action: o, isFooter: s = !1 }) {
|
|
@@ -637,7 +648,7 @@ function G({ label: r, links: a, action: o, isFooter: s = !1 }) {
|
|
|
637
648
|
})] })] })]
|
|
638
649
|
});
|
|
639
650
|
}
|
|
640
|
-
function
|
|
651
|
+
function De({ children: e }) {
|
|
641
652
|
let t = C(U) === "drawer";
|
|
642
653
|
return /* @__PURE__ */ j("div", {
|
|
643
654
|
...{
|
|
@@ -654,7 +665,7 @@ function K({ children: e }) {
|
|
|
654
665
|
children: e
|
|
655
666
|
});
|
|
656
667
|
}
|
|
657
|
-
function
|
|
668
|
+
function Oe({ count: e, icon: t }) {
|
|
658
669
|
return /* @__PURE__ */ j("div", {
|
|
659
670
|
"aria-hidden": !0,
|
|
660
671
|
className: "x1yrrsrt x1c526fk x78zum5 xdt5ytf x6s0dn4 xunmzkg",
|
|
@@ -662,7 +673,7 @@ function De({ count: e, icon: t }) {
|
|
|
662
673
|
});
|
|
663
674
|
}
|
|
664
675
|
// packages/layout/src/navigation-rail-menu.tsx
|
|
665
|
-
var
|
|
676
|
+
var ke = {
|
|
666
677
|
rail: {
|
|
667
678
|
side: "right",
|
|
668
679
|
align: "end"
|
|
@@ -697,7 +708,7 @@ function q({ label: t, icon: n, children: r }) {
|
|
|
697
708
|
children: t
|
|
698
709
|
})]
|
|
699
710
|
}), /* @__PURE__ */ j(p.Popup, {
|
|
700
|
-
...
|
|
711
|
+
...ke[i],
|
|
701
712
|
sideOffset: 4,
|
|
702
713
|
collisionPadding: 8,
|
|
703
714
|
"aria-label": t,
|
|
@@ -707,7 +718,7 @@ function q({ label: t, icon: n, children: r }) {
|
|
|
707
718
|
});
|
|
708
719
|
}
|
|
709
720
|
// packages/layout/src/shell-bottom-bar.tsx
|
|
710
|
-
function
|
|
721
|
+
function Ae({ children: e }) {
|
|
711
722
|
let t = D(null);
|
|
712
723
|
return E(() => {
|
|
713
724
|
let e = t.current;
|
|
@@ -768,13 +779,13 @@ var J = {
|
|
|
768
779
|
function Y({ footer: e }) {
|
|
769
780
|
return /* @__PURE__ */ j("div", {
|
|
770
781
|
className: "x2lah0s x1vod7vm",
|
|
771
|
-
children: /* @__PURE__ */ j(
|
|
782
|
+
children: /* @__PURE__ */ j(De, { children: "placeholder" in e ? /* @__PURE__ */ M(A, { children: [e.placeholder.linkIcon !== void 0 && /* @__PURE__ */ j(K, { children: e.placeholder.linkIcon }), /* @__PURE__ */ j(K, { children: e.placeholder.menuIcon })] }) : /* @__PURE__ */ M(A, { children: [e.navigation !== void 0 && /* @__PURE__ */ j(G, {
|
|
772
783
|
...e.navigation,
|
|
773
784
|
isFooter: !0
|
|
774
785
|
}), /* @__PURE__ */ j(q, { ...e.menu })] }) })
|
|
775
786
|
});
|
|
776
787
|
}
|
|
777
|
-
function
|
|
788
|
+
function je({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, bottomBar: a, children: o, mainId: c = "main", shouldFocus: l = !1 }) {
|
|
778
789
|
let u = a != null && typeof a != "boolean", d = e != null, [p, m] = O(!0), [h, g] = O(!1), v = l || d && !p, [y] = O(() => f.createController()), b = T(), x = D(null), S = D(null), C = D(null), E = D(!1);
|
|
779
790
|
return w(() => {
|
|
780
791
|
let e = globalThis.matchMedia(L.sidebarDesktopQuery);
|
|
@@ -828,7 +839,7 @@ function Ae({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, b
|
|
|
828
839
|
children: o
|
|
829
840
|
})
|
|
830
841
|
]
|
|
831
|
-
}), u && /* @__PURE__ */ j(
|
|
842
|
+
}), u && /* @__PURE__ */ j(Ae, { children: a })]
|
|
832
843
|
}), /* @__PURE__ */ M(f.Root, {
|
|
833
844
|
controller: y,
|
|
834
845
|
open: h && !l,
|
|
@@ -901,22 +912,22 @@ var Z = {
|
|
|
901
912
|
kumcoG: "x185a7wo x1u207gz x1kgop2p",
|
|
902
913
|
$$css: !0
|
|
903
914
|
}
|
|
904
|
-
},
|
|
915
|
+
}, Me = {
|
|
905
916
|
"2-up": Z.twoUp,
|
|
906
917
|
"hero-aside": Z.heroAside,
|
|
907
918
|
"3-up": Z.threeUp
|
|
908
919
|
};
|
|
909
|
-
function
|
|
920
|
+
function Ne({ layout: e = "2-up", children: t, ...n }) {
|
|
910
921
|
return /* @__PURE__ */ j("div", {
|
|
911
922
|
className: "x12h1iku x1rb1qiq xeuugli",
|
|
912
923
|
children: /* @__PURE__ */ j("div", {
|
|
913
|
-
...b(_.props(Z.grid,
|
|
924
|
+
...b(_.props(Z.grid, Me[e]), n),
|
|
914
925
|
children: t
|
|
915
926
|
})
|
|
916
927
|
});
|
|
917
928
|
}
|
|
918
929
|
// packages/layout/src/focus-page.tsx
|
|
919
|
-
function
|
|
930
|
+
function Pe({ children: e }) {
|
|
920
931
|
return /* @__PURE__ */ j("main", {
|
|
921
932
|
id: "main",
|
|
922
933
|
tabIndex: -1,
|
|
@@ -928,7 +939,7 @@ function Ne({ children: e }) {
|
|
|
928
939
|
});
|
|
929
940
|
}
|
|
930
941
|
// packages/layout/src/resizable.tsx
|
|
931
|
-
function
|
|
942
|
+
function Fe({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n, disabled: r = !1, ref: i, ...a }) {
|
|
932
943
|
return /* @__PURE__ */ j(ne, {
|
|
933
944
|
orientation: e,
|
|
934
945
|
...t !== void 0 && { defaultLayout: t },
|
|
@@ -940,7 +951,7 @@ function Pe({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n,
|
|
|
940
951
|
...b({ className: "xeuugli x2lwn1j xh8yej3 x5yr21d" }, a)
|
|
941
952
|
});
|
|
942
953
|
}
|
|
943
|
-
function
|
|
954
|
+
function Ie({ id: e, initialSizePercent: t, minimumSizePercent: n = 10, maximumSizePercent: r = 100, canCollapse: i = !1, ref: a, ...o }) {
|
|
944
955
|
return /* @__PURE__ */ j(ie, {
|
|
945
956
|
id: e,
|
|
946
957
|
...t !== void 0 && { defaultSize: t },
|
|
@@ -951,19 +962,19 @@ function Fe({ id: e, initialSizePercent: t, minimumSizePercent: n = 10, maximumS
|
|
|
951
962
|
...b({ className: "xeuugli x2lwn1j xysyzu8" }, o)
|
|
952
963
|
});
|
|
953
964
|
}
|
|
954
|
-
function
|
|
965
|
+
function Le({ ref: e, ...t }) {
|
|
955
966
|
return /* @__PURE__ */ j(re, {
|
|
956
967
|
ref: e,
|
|
957
968
|
...b({ 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)
|
|
958
969
|
});
|
|
959
970
|
}
|
|
960
971
|
var Q = {
|
|
961
|
-
Root:
|
|
962
|
-
Pane:
|
|
963
|
-
Handle:
|
|
972
|
+
Root: Fe,
|
|
973
|
+
Pane: Ie,
|
|
974
|
+
Handle: Le
|
|
964
975
|
};
|
|
965
976
|
// packages/layout/src/workbench.tsx
|
|
966
|
-
function
|
|
977
|
+
function Re({ header: e, children: t, inspector: n, isResizable: r = !1, inspectorInitialPercent: i = 36 }) {
|
|
967
978
|
let a = r && n !== void 0, o = Math.max(30, Math.min(80, 100 - i));
|
|
968
979
|
return /* @__PURE__ */ M("div", {
|
|
969
980
|
className: "x78zum5 xdt5ytf xtdtrs8 xmz0i5r x98rzlu xeuugli x2lwn1j x12h1iku x1a75771 xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel",
|
|
@@ -1022,7 +1033,7 @@ function Le({ header: e, children: t, inspector: n, isResizable: r = !1, inspect
|
|
|
1022
1033
|
})]
|
|
1023
1034
|
});
|
|
1024
1035
|
}
|
|
1025
|
-
function
|
|
1036
|
+
function ze({ label: e, children: t, isFlush: n = !1, scrollRestorationId: r }) {
|
|
1026
1037
|
let i = c();
|
|
1027
1038
|
return /* @__PURE__ */ j("div", {
|
|
1028
1039
|
ref: i.ref,
|
|
@@ -1037,20 +1048,20 @@ function Re({ label: e, children: t, isFlush: n = !1, scrollRestorationId: r })
|
|
|
1037
1048
|
children: t
|
|
1038
1049
|
});
|
|
1039
1050
|
}
|
|
1040
|
-
function
|
|
1051
|
+
function Be({ children: e }) {
|
|
1041
1052
|
return /* @__PURE__ */ j("div", {
|
|
1042
1053
|
className: "x2lah0s x1c8xbx5 x178xt8z x13fuv20 xhjagg4 xpvm0e4",
|
|
1043
1054
|
children: e
|
|
1044
1055
|
});
|
|
1045
1056
|
}
|
|
1046
1057
|
// packages/layout/src/view-stack.tsx
|
|
1047
|
-
function
|
|
1058
|
+
function Ve({ children: e }) {
|
|
1048
1059
|
return /* @__PURE__ */ j("div", {
|
|
1049
1060
|
className: "x1n2onr6 x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j",
|
|
1050
1061
|
children: e
|
|
1051
1062
|
});
|
|
1052
1063
|
}
|
|
1053
|
-
function
|
|
1064
|
+
function $({ isActive: e, children: t }) {
|
|
1054
1065
|
return /* @__PURE__ */ j("section", {
|
|
1055
1066
|
"aria-hidden": !e,
|
|
1056
1067
|
inert: !e,
|
|
@@ -1061,12 +1072,12 @@ function Ve({ isActive: e, children: t }) {
|
|
|
1061
1072
|
children: t
|
|
1062
1073
|
});
|
|
1063
1074
|
}
|
|
1064
|
-
var
|
|
1065
|
-
Root:
|
|
1066
|
-
Panel:
|
|
1075
|
+
var He = {
|
|
1076
|
+
Root: Ve,
|
|
1077
|
+
Panel: $
|
|
1067
1078
|
};
|
|
1068
1079
|
// packages/layout/src/collection-layout.tsx
|
|
1069
|
-
function
|
|
1080
|
+
function Ue({ header: e, children: t }) {
|
|
1070
1081
|
return /* @__PURE__ */ M("div", {
|
|
1071
1082
|
"data-page-layout": "collection",
|
|
1072
1083
|
className: "x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j x7giv3",
|
|
@@ -1080,7 +1091,7 @@ function He({ header: e, children: t }) {
|
|
|
1080
1091
|
});
|
|
1081
1092
|
}
|
|
1082
1093
|
// packages/layout/src/record-page.tsx
|
|
1083
|
-
function
|
|
1094
|
+
function We({ backLabel: e, backHref: t, onBack: n }) {
|
|
1084
1095
|
return /* @__PURE__ */ M(i, {
|
|
1085
1096
|
href: t,
|
|
1086
1097
|
className: "x3nfvp2 x6s0dn4 x1hnptsi xid9utz xeuugli x193iq5w xbixft xkrqix3 x5638nf x13qnu6 x9v5kkp x19rmrnh x1bqaal",
|
|
@@ -1099,17 +1110,17 @@ function Ue({ backLabel: e, backHref: t, onBack: n }) {
|
|
|
1099
1110
|
})]
|
|
1100
1111
|
});
|
|
1101
1112
|
}
|
|
1102
|
-
function
|
|
1113
|
+
function Ge({ navigation: e, children: t, ...n }) {
|
|
1103
1114
|
return /* @__PURE__ */ j(H, {
|
|
1104
1115
|
showBreadcrumb: !0,
|
|
1105
1116
|
showNavigation: n.showNavigation ?? !0,
|
|
1106
1117
|
actions: n.actions,
|
|
1107
|
-
title: /* @__PURE__ */ j(
|
|
1118
|
+
title: /* @__PURE__ */ j(We, { ...n }),
|
|
1108
1119
|
navigation: e,
|
|
1109
1120
|
children: t
|
|
1110
1121
|
});
|
|
1111
1122
|
}
|
|
1112
|
-
function
|
|
1123
|
+
function Ke({ children: e, isWide: t = !1 }) {
|
|
1113
1124
|
return /* @__PURE__ */ j("div", {
|
|
1114
1125
|
className: "x78zum5 xdt5ytf xeuugli xbixft x1hz01jw xtqrqnz x1778rvt xvmahel",
|
|
1115
1126
|
children: /* @__PURE__ */ j(X, {
|
|
@@ -1121,13 +1132,13 @@ function Ge({ children: e, isWide: t = !1 }) {
|
|
|
1121
1132
|
})
|
|
1122
1133
|
});
|
|
1123
1134
|
}
|
|
1124
|
-
function
|
|
1135
|
+
function qe({ children: e }) {
|
|
1125
1136
|
return /* @__PURE__ */ j("div", {
|
|
1126
1137
|
className: "x78zum5 xdt5ytf x1ewej1i x1iyjqo2 xdz4d12 xeuugli",
|
|
1127
1138
|
children: e
|
|
1128
1139
|
});
|
|
1129
1140
|
}
|
|
1130
|
-
function
|
|
1141
|
+
function Je({ title: e, description: t, icon: n, titleRef: i }) {
|
|
1131
1142
|
return /* @__PURE__ */ M("header", {
|
|
1132
1143
|
className: "xrvj5dj x1n8ia3y xeuugli",
|
|
1133
1144
|
children: [/* @__PURE__ */ M("div", {
|
|
@@ -1146,18 +1157,18 @@ function qe({ title: e, description: t, icon: n, titleRef: i }) {
|
|
|
1146
1157
|
}), t != null && /* @__PURE__ */ j(r, { children: t })]
|
|
1147
1158
|
});
|
|
1148
1159
|
}
|
|
1149
|
-
function
|
|
1160
|
+
function Ye({ children: e, label: t = "Properties" }) {
|
|
1150
1161
|
return /* @__PURE__ */ j("aside", {
|
|
1151
1162
|
"aria-label": t,
|
|
1152
1163
|
className: "x78zum5 xdt5ytf x1irul0l x1iyjqo2 x1j825kq xeuugli",
|
|
1153
1164
|
children: e
|
|
1154
1165
|
});
|
|
1155
1166
|
}
|
|
1156
|
-
var
|
|
1157
|
-
Layout:
|
|
1158
|
-
Body:
|
|
1159
|
-
Content:
|
|
1160
|
-
Header:
|
|
1161
|
-
Aside:
|
|
1167
|
+
var Xe = {
|
|
1168
|
+
Layout: Ge,
|
|
1169
|
+
Body: Ke,
|
|
1170
|
+
Content: qe,
|
|
1171
|
+
Header: Je,
|
|
1172
|
+
Aside: Ye
|
|
1162
1173
|
};
|
|
1163
|
-
export { fe as C, F as D, ge as E, me as S, _e as T, H as _,
|
|
1174
|
+
export { fe as C, F as D, ge as E, me as S, _e as T, H as _, Be as a, de as b, Pe as c, je as d, q as f, Te as g, we as h, Re as i, Ne as l, Oe as m, Ue as n, ze as o, Ee as p, He as r, Q as s, Xe as t, X as u, xe as v, he as w, pe as x, be as y };
|