@mechane-ai/elements 0.5.1 → 0.7.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 +4 -2
- package/dist/ai.js +24 -23
- package/dist/assets/stylex.css +32 -4
- package/dist/{categorical-values-BfAEQUd0.js → categorical-values-75J0TUkR.js} +2 -2
- package/dist/{chart-frame-bX0VLC_W.js → chart-frame--DOsZKwP.js} +1 -1
- package/dist/{chart-input--VSrlMl-.js → chart-input-C-g586YE.js} +2 -2
- package/dist/charts/cartesian.js +203 -141
- package/dist/charts/distribution.js +2 -2
- package/dist/charts/graph.js +2 -2
- package/dist/charts/hierarchy.js +3 -3
- package/dist/charts/matrix.js +2 -2
- package/dist/charts/timeline.js +1 -1
- package/dist/charts.js +1 -1
- package/dist/{code-block-BiMcfdlB.js → code-block-D0Jmsj7w.js} +1 -1
- package/dist/collections.js +99 -87
- package/dist/content/code.js +1 -1
- package/dist/content/diff.js +2 -2
- package/dist/content/link.js +1 -1
- package/dist/content/markdown.js +2 -2
- package/dist/content/tree.js +2 -2
- package/dist/{content-link-Bm-Td5wm.js → content-link-HLYu0cmz.js} +1 -1
- package/dist/content.js +2 -2
- package/dist/feedback.js +1 -1
- package/dist/forms/dates.js +1 -1
- package/dist/forms.js +1 -1
- package/dist/index.js +1 -1
- package/dist/layout.js +77 -35
- package/dist/navigation/commands.js +1 -1
- package/dist/packages/ai/src/prompt-input.d.ts +2 -1
- package/dist/packages/charts/src/cartesian/bar-chart.d.ts +1 -0
- package/dist/packages/collections/src/data-table.d.ts +3 -2
- package/dist/packages/core/src/text.d.ts +4 -2
- package/dist/packages/forms/src/field-styles.d.ts +12 -0
- package/dist/packages/forms/src/form-controls.d.ts +1 -1
- package/dist/packages/forms/src/forms.d.ts +5 -3
- package/dist/packages/layout/src/focus-page.d.ts +4 -0
- package/dist/packages/layout/src/index.d.ts +2 -0
- package/dist/packages/layout/src/workbench.d.ts +12 -0
- package/dist/{pierre-tree-LY7PGy-7.js → pierre-tree-DVybsnm4.js} +2 -2
- package/dist/{src-CbJTK9oP.js → src-B_DCatpY.js} +1 -1
- package/dist/{src-CbYaLvhD.js → src-BkCsvZGi.js} +6 -2
- package/dist/{src-CjnbzSgq.js → src-DjTM64tN.js} +183 -170
- package/package.json +1 -1
- package/styles.css +2 -2
package/dist/layout.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as e } from "./src-CfDf8TY8.js";
|
|
2
|
-
import { i as t, n, v as r, y as i } from "./src-
|
|
2
|
+
import { i as t, n, v as r, y as i } from "./src-BkCsvZGi.js";
|
|
3
3
|
import { mergeProps as a } from "@base-ui/react/merge-props";
|
|
4
4
|
import "@stylexjs/stylex";
|
|
5
5
|
import { createContext as o, useContext as s, useEffect as c, useId as l, useRef as u, useState as d } from "react";
|
|
@@ -292,17 +292,59 @@ function P({ children: e }) {
|
|
|
292
292
|
children: e
|
|
293
293
|
});
|
|
294
294
|
}
|
|
295
|
+
// packages/layout/src/focus-page.tsx
|
|
296
|
+
function F({ children: e }) {
|
|
297
|
+
return /* @__PURE__ */ p("main", {
|
|
298
|
+
id: "main",
|
|
299
|
+
tabIndex: -1,
|
|
300
|
+
className: "x9f619 x1ov3xa9 xrvj5dj x1ku5rj1 x1jvlu93 xpvm0e4 xbixft x1hz01jw xtqrqnz x1778rvt xvmahel",
|
|
301
|
+
children: /* @__PURE__ */ p("div", {
|
|
302
|
+
className: "xh8yej3 xxc7z9f xrvj5dj x1j825kq",
|
|
303
|
+
children: e
|
|
304
|
+
})
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
// packages/layout/src/workbench.tsx
|
|
308
|
+
function I({ header: e, children: t, inspector: n }) {
|
|
309
|
+
return /* @__PURE__ */ m("div", {
|
|
310
|
+
className: "x78zum5 xdt5ytf x1b7uu3i xeuugli x2lwn1j",
|
|
311
|
+
children: [/* @__PURE__ */ p("div", {
|
|
312
|
+
className: "x1ydxw8w xnx3t7k xso031l x1q0q8m5 x1qndepd",
|
|
313
|
+
children: e
|
|
314
|
+
}), /* @__PURE__ */ m("div", {
|
|
315
|
+
className: "x78zum5 x98rzlu xeuugli x2lwn1j xb3r6kr",
|
|
316
|
+
children: [/* @__PURE__ */ p("div", {
|
|
317
|
+
...{
|
|
318
|
+
0: { className: "x78zum5 x98rzlu xdt5ytf xeuugli x2lwn1j" },
|
|
319
|
+
1: { className: "x98rzlu xdt5ytf xeuugli x2lwn1j x78zum5 x1g9v1si" }
|
|
320
|
+
}[n != null | 0],
|
|
321
|
+
children: t
|
|
322
|
+
}), n != null && /* @__PURE__ */ p("aside", {
|
|
323
|
+
"aria-label": "Execution inspector",
|
|
324
|
+
className: "x9f619 x1peuizl x1tama1k x2lah0s x1odjw0f x1c8xbx5 xpvm0e4 xe0pwq x19ypqd9 x1l3ounx",
|
|
325
|
+
children: n
|
|
326
|
+
})]
|
|
327
|
+
})]
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
function L({ children: e }) {
|
|
331
|
+
return /* @__PURE__ */ p("div", {
|
|
332
|
+
className: "x1odjw0f x98rzlu xeuugli x2lwn1j x1jvlu93",
|
|
333
|
+
children: e
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
function R({ children: e }) {
|
|
337
|
+
return /* @__PURE__ */ p("div", {
|
|
338
|
+
className: "x2lah0s x1c8xbx5 x178xt8z x13fuv20 xhjagg4 xpvm0e4",
|
|
339
|
+
children: e
|
|
340
|
+
});
|
|
341
|
+
}
|
|
295
342
|
// packages/layout/src/page-toolbar.tsx
|
|
296
|
-
var
|
|
297
|
-
kZKoxP: "x5yr21d",
|
|
298
|
-
k7Eaqz: "x167izq3",
|
|
299
|
-
k8WAf4: "xt970qd",
|
|
300
|
-
kg3NbH: "x1m92p3w",
|
|
301
|
-
kaIpWk: "x2u8bby",
|
|
343
|
+
var z = { action: {
|
|
302
344
|
kOIVth: "x1hnptsi",
|
|
303
345
|
$$css: !0
|
|
304
346
|
} };
|
|
305
|
-
function
|
|
347
|
+
function B({ title: e, actions: t, breadcrumb: n = !1, navigation: r = !0 }) {
|
|
306
348
|
return /* @__PURE__ */ m("div", {
|
|
307
349
|
className: "x9f619 x78zum5 x12h1iku x14ut1dr x1qjc9v5 xcn9na3 x2lah0s xso031l x1q0q8m5 x1qndepd xpvm0e4 xbixft x1hz01jw x12myhf4 x1778rvt xvmahel xeuugli",
|
|
308
350
|
children: [
|
|
@@ -317,22 +359,22 @@ function I({ title: e, actions: t, breadcrumb: n = !1, navigation: r = !0 }) {
|
|
|
317
359
|
})
|
|
318
360
|
}),
|
|
319
361
|
t != null && /* @__PURE__ */ p("div", {
|
|
320
|
-
className: "x78zum5
|
|
362
|
+
className: "x78zum5 x6s0dn4 xunmzkg x5g2kb4 xeuugli x2lah0s x8x9d4c",
|
|
321
363
|
children: t
|
|
322
364
|
})
|
|
323
365
|
]
|
|
324
366
|
});
|
|
325
367
|
}
|
|
326
|
-
function
|
|
368
|
+
function V({ icon: e, children: t, ...n }) {
|
|
327
369
|
let i = e != null;
|
|
328
370
|
return /* @__PURE__ */ p("div", {
|
|
329
|
-
className: "x9f619 x78zum5 x1qjc9v5 xeuugli
|
|
371
|
+
className: "x9f619 x78zum5 x1qjc9v5 xeuugli",
|
|
330
372
|
children: /* @__PURE__ */ m(r, {
|
|
331
373
|
...n,
|
|
332
374
|
variant: "ghost",
|
|
333
|
-
size: "
|
|
375
|
+
size: "sm",
|
|
334
376
|
"aria-label": n["aria-label"] ?? (typeof t == "string" ? t : void 0),
|
|
335
|
-
xstyle:
|
|
377
|
+
xstyle: z.action,
|
|
336
378
|
children: [e, i ? /* @__PURE__ */ p("span", {
|
|
337
379
|
className: "xeuugli xb3r6kr xlyipyv xuxw1ft xt0psk2 xlllsrz",
|
|
338
380
|
children: t
|
|
@@ -341,14 +383,14 @@ function L({ icon: e, children: t, ...n }) {
|
|
|
341
383
|
});
|
|
342
384
|
}
|
|
343
385
|
// packages/layout/src/record-page.tsx
|
|
344
|
-
function
|
|
386
|
+
function H({ children: e }) {
|
|
345
387
|
return /* @__PURE__ */ p("div", {
|
|
346
388
|
className: "x78zum5 xdt5ytf xeuugli xbixft x1hz01jw xtqrqnz x1778rvt xvmahel",
|
|
347
389
|
children: e
|
|
348
390
|
});
|
|
349
391
|
}
|
|
350
|
-
function
|
|
351
|
-
return /* @__PURE__ */ p(
|
|
392
|
+
function U({ backLabel: e, backHref: t, onBack: n, actions: r, navigation: i = !0 }) {
|
|
393
|
+
return /* @__PURE__ */ p(B, {
|
|
352
394
|
breadcrumb: !0,
|
|
353
395
|
navigation: i,
|
|
354
396
|
actions: r,
|
|
@@ -367,19 +409,19 @@ function z({ backLabel: e, backHref: t, onBack: n, actions: r, navigation: i = !
|
|
|
367
409
|
})
|
|
368
410
|
});
|
|
369
411
|
}
|
|
370
|
-
function
|
|
412
|
+
function W({ children: e }) {
|
|
371
413
|
return /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p("div", {
|
|
372
414
|
className: "x78zum5 x1a02dak x1cy8zhl x1m6b44x xeuugli",
|
|
373
415
|
children: e
|
|
374
416
|
}) });
|
|
375
417
|
}
|
|
376
|
-
function
|
|
418
|
+
function G({ children: e }) {
|
|
377
419
|
return /* @__PURE__ */ p("div", {
|
|
378
420
|
className: "x78zum5 xdt5ytf x1ewej1i x1iyjqo2 x1j825kq xeuugli",
|
|
379
421
|
children: e
|
|
380
422
|
});
|
|
381
423
|
}
|
|
382
|
-
function
|
|
424
|
+
function K({ title: e, description: r, icon: i, titleRef: a }) {
|
|
383
425
|
return /* @__PURE__ */ m("header", {
|
|
384
426
|
className: "xrvj5dj x1n8ia3y xeuugli",
|
|
385
427
|
children: [/* @__PURE__ */ m("div", {
|
|
@@ -396,23 +438,23 @@ function H({ title: e, description: r, icon: i, titleRef: a }) {
|
|
|
396
438
|
}), r != null && /* @__PURE__ */ p(t, { children: r })]
|
|
397
439
|
});
|
|
398
440
|
}
|
|
399
|
-
function
|
|
441
|
+
function q({ children: e, label: t = "Properties" }) {
|
|
400
442
|
return /* @__PURE__ */ p("aside", {
|
|
401
443
|
"aria-label": t,
|
|
402
444
|
className: "x78zum5 xdt5ytf x1irul0l x1iyjqo2 x1j825kq xeuugli",
|
|
403
445
|
children: e
|
|
404
446
|
});
|
|
405
447
|
}
|
|
406
|
-
var
|
|
407
|
-
Root:
|
|
408
|
-
Toolbar:
|
|
409
|
-
Body:
|
|
410
|
-
Content:
|
|
411
|
-
Header:
|
|
412
|
-
Aside:
|
|
448
|
+
var J = {
|
|
449
|
+
Root: H,
|
|
450
|
+
Toolbar: U,
|
|
451
|
+
Body: W,
|
|
452
|
+
Content: G,
|
|
453
|
+
Header: K,
|
|
454
|
+
Aside: q
|
|
413
455
|
};
|
|
414
456
|
// packages/layout/src/resizable.tsx
|
|
415
|
-
function
|
|
457
|
+
function Y({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n, disabled: r, ref: i, ...o }) {
|
|
416
458
|
return /* @__PURE__ */ p(v, {
|
|
417
459
|
orientation: e,
|
|
418
460
|
defaultLayout: t,
|
|
@@ -428,7 +470,7 @@ function G({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n, d
|
|
|
428
470
|
...a({ className: "xeuugli x2lwn1j xh8yej3 x5yr21d" }, o)
|
|
429
471
|
});
|
|
430
472
|
}
|
|
431
|
-
function
|
|
473
|
+
function X({ id: e, initialSizePercent: t, minimumSizePercent: n = 10, maximumSizePercent: r = 100, collapsible: i = !1, ref: o, ...s }) {
|
|
432
474
|
return /* @__PURE__ */ p(y, {
|
|
433
475
|
id: e,
|
|
434
476
|
defaultSize: t === void 0 ? void 0 : `${t}%`,
|
|
@@ -439,15 +481,15 @@ function K({ id: e, initialSizePercent: t, minimumSizePercent: n = 10, maximumSi
|
|
|
439
481
|
...a({ className: "xeuugli x2lwn1j xysyzu8" }, s)
|
|
440
482
|
});
|
|
441
483
|
}
|
|
442
|
-
function
|
|
484
|
+
function Z({ ref: e, ...t }) {
|
|
443
485
|
return /* @__PURE__ */ p(b, {
|
|
444
486
|
elementRef: e,
|
|
445
487
|
...a({ className: "x1fa40ue x1i1rx1s xgc0pbm xir5lan xfaai28 x1rbdpqn x8wp5i9 x13qnu6 x9v5kkp x19rmrnh x13iak60" }, t)
|
|
446
488
|
});
|
|
447
489
|
}
|
|
448
|
-
var
|
|
449
|
-
Root:
|
|
450
|
-
Pane:
|
|
451
|
-
Handle:
|
|
490
|
+
var Q = {
|
|
491
|
+
Root: Y,
|
|
492
|
+
Pane: X,
|
|
493
|
+
Handle: Z
|
|
452
494
|
};
|
|
453
|
-
export { N as AppShell, P as DetailPage, E as Navigation, D as NavigationItem, O as NavigationLink,
|
|
495
|
+
export { N as AppShell, P as DetailPage, F as FocusPage, E as Navigation, D as NavigationItem, O as NavigationLink, B as PageToolbar, J as RecordPage, Q as Resizable, A as SidebarFooter, k as SidebarLabel, V as ToolbarAction, I as Workbench, R as WorkbenchFooter, L as WorkbenchScroll };
|
|
@@ -14,6 +14,7 @@ export type PromptInputProps = {
|
|
|
14
14
|
readonly submitLabel?: string;
|
|
15
15
|
readonly pendingLabel?: string;
|
|
16
16
|
readonly enterBehavior?: 'newline' | 'submit';
|
|
17
|
+
readonly compact?: boolean;
|
|
17
18
|
readonly description?: ReactNode;
|
|
18
19
|
readonly error?: string | undefined;
|
|
19
20
|
readonly controls?: ReactNode;
|
|
@@ -22,4 +23,4 @@ export type PromptInputProps = {
|
|
|
22
23
|
readonly stopPending?: boolean;
|
|
23
24
|
readonly stopLabel?: string;
|
|
24
25
|
};
|
|
25
|
-
export declare function PromptInput({ label, value, onValueChange, onSubmit, name, placeholder, maxLength, required, pending, disabled, submitDisabled, submitLabel, pendingLabel, enterBehavior, description, error, controls, attachments, onStop, stopPending, stopLabel, }: PromptInputProps): ReactNode;
|
|
26
|
+
export declare function PromptInput({ label, value, onValueChange, onSubmit, name, placeholder, maxLength, required, pending, disabled, submitDisabled, submitLabel, pendingLabel, enterBehavior, compact, description, error, controls, attachments, onStop, stopPending, stopLabel, }: PromptInputProps): ReactNode;
|
|
@@ -13,6 +13,7 @@ export type BarChartProps = {
|
|
|
13
13
|
readonly categories: ReadonlyArray<{
|
|
14
14
|
readonly id: string;
|
|
15
15
|
readonly label: string;
|
|
16
|
+
readonly axisLabel?: string | undefined;
|
|
16
17
|
}>;
|
|
17
18
|
readonly series: ReadonlyArray<BarSeries>;
|
|
18
19
|
readonly domain: readonly [number, number];
|
|
@@ -54,7 +54,8 @@ export type DataTableProps<Row> = SortProperties<Row> & OptionalSelection<Row> &
|
|
|
54
54
|
readonly caption: string;
|
|
55
55
|
readonly empty: ReactNode;
|
|
56
56
|
readonly rowAction?: DataTableRowAction<Row>;
|
|
57
|
-
readonly activeRowId?: string;
|
|
57
|
+
readonly activeRowId?: string | undefined;
|
|
58
|
+
readonly focusRowId?: string | undefined;
|
|
58
59
|
readonly hideCaption?: boolean;
|
|
59
60
|
readonly hideHeaders?: boolean;
|
|
60
61
|
readonly window?: DataTableWindow;
|
|
@@ -62,5 +63,5 @@ export type DataTableProps<Row> = SortProperties<Row> & OptionalSelection<Row> &
|
|
|
62
63
|
readonly onEndReached?: () => void;
|
|
63
64
|
readonly footer?: ReactNode;
|
|
64
65
|
};
|
|
65
|
-
export declare function DataTable<Row extends object>({ rows, columns, getRowId, caption, empty, sort, onSortChange, selectedIds, onSelectionChange, selectionLabel, rowAction, activeRowId, hideCaption, hideHeaders, window, endContent, onEndReached, footer, }: DataTableProps<Row>): ReactNode;
|
|
66
|
+
export declare function DataTable<Row extends object>({ rows, columns, getRowId, caption, empty, sort, onSortChange, selectedIds, onSelectionChange, selectionLabel, rowAction, activeRowId, focusRowId, hideCaption, hideHeaders, window, endContent, onEndReached, footer, }: DataTableProps<Row>): ReactNode;
|
|
66
67
|
export {};
|
|
@@ -8,7 +8,9 @@ type TextProps = ComponentProps<'span'> & {
|
|
|
8
8
|
readonly tone?: TextTone;
|
|
9
9
|
readonly xstyle?: PlacementStyle;
|
|
10
10
|
};
|
|
11
|
-
type HeadingProps = ComponentProps<'h1'
|
|
11
|
+
type HeadingProps = ComponentProps<'h1'> & {
|
|
12
|
+
readonly compact?: boolean;
|
|
13
|
+
};
|
|
12
14
|
type SubheadingProps = ComponentProps<'h2'>;
|
|
13
15
|
type MutedProps = ComponentProps<'p'>;
|
|
14
16
|
type IdentifierProps = ComponentProps<'span'>;
|
|
@@ -20,7 +22,7 @@ type StatusProps = ComponentProps<'span'> & {
|
|
|
20
22
|
readonly tone?: StatusTone;
|
|
21
23
|
};
|
|
22
24
|
export declare function Text({ variant, tone, xstyle, ...props }: TextProps): ReactNode;
|
|
23
|
-
export declare function Heading(props: HeadingProps): ReactNode;
|
|
25
|
+
export declare function Heading({ compact, ...props }: HeadingProps): ReactNode;
|
|
24
26
|
export declare function Subheading(props: SubheadingProps): ReactNode;
|
|
25
27
|
export declare function Muted(props: MutedProps): ReactNode;
|
|
26
28
|
export declare function Identifier(props: IdentifierProps): ReactNode;
|
|
@@ -63,4 +63,16 @@ export declare const fieldStyles: Readonly<{
|
|
|
63
63
|
readonly resize: stylex.StyleXClassNameFor<"resize", "vertical">;
|
|
64
64
|
readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
|
|
65
65
|
}>;
|
|
66
|
+
readonly compactTextarea: Readonly<{
|
|
67
|
+
readonly minHeight: stylex.StyleXClassNameFor<"minHeight", 80>;
|
|
68
|
+
readonly maxHeight: stylex.StyleXClassNameFor<"maxHeight", "30dvh">;
|
|
69
|
+
}>;
|
|
70
|
+
}>;
|
|
71
|
+
export declare const inputSizeStyles: Readonly<{
|
|
72
|
+
readonly sm: Readonly<{
|
|
73
|
+
readonly minHeight: stylex.StyleXClassNameFor<"minHeight", string>;
|
|
74
|
+
readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", string>;
|
|
75
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
76
|
+
}>;
|
|
77
|
+
readonly md: {};
|
|
66
78
|
}>;
|
|
@@ -39,7 +39,7 @@ declare function FieldsetRoot({ className, style, xstyle, ...props }: FieldsetRo
|
|
|
39
39
|
declare function FieldsetLegend({ className, style, ...props }: FieldsetLegendProps): ReactNode;
|
|
40
40
|
declare function InputGroupRoot({ xstyle, ...props }: InputGroupRootProps): ReactNode;
|
|
41
41
|
declare function InputGroupAddon(props: InputGroupAddonProps): ReactNode;
|
|
42
|
-
declare function InputGroupInput({ className, style, xstyle, ...props }: InputProps): ReactNode;
|
|
42
|
+
declare function InputGroupInput({ className, style, xstyle, size, ...props }: InputProps): ReactNode;
|
|
43
43
|
declare function NumberFieldRoot({ className, style, xstyle, ...props }: NumberFieldRootProps): ReactNode;
|
|
44
44
|
declare function NumberFieldGroup({ className, style, ...props }: NumberFieldGroupProps): ReactNode;
|
|
45
45
|
declare function NumberFieldInput({ className, style, ...props }: NumberFieldInputProps): ReactNode;
|
|
@@ -10,12 +10,14 @@ type FieldLabelProps = ComponentProps<typeof BaseField.Label>;
|
|
|
10
10
|
type FieldDescriptionProps = ComponentProps<typeof BaseField.Description>;
|
|
11
11
|
type FieldErrorProps = ComponentProps<typeof BaseField.Error>;
|
|
12
12
|
type BaseInputProps = ComponentProps<typeof BaseInput>;
|
|
13
|
-
export type InputProps = Omit<BaseInputProps, 'value' | 'defaultValue' | 'onChange' | 'onValueChange' | 'readOnly'> & TextValueProperties<NonNullable<BaseInputProps['value']>, NonNullable<BaseInputProps['onChange']>, NonNullable<BaseInputProps['onValueChange']>> & {
|
|
13
|
+
export type InputProps = Omit<BaseInputProps, 'value' | 'defaultValue' | 'onChange' | 'onValueChange' | 'readOnly' | 'size'> & TextValueProperties<NonNullable<BaseInputProps['value']>, NonNullable<BaseInputProps['onChange']>, NonNullable<BaseInputProps['onValueChange']>> & {
|
|
14
|
+
readonly size?: 'sm' | 'md';
|
|
14
15
|
readonly xstyle?: PlacementStyle;
|
|
15
16
|
};
|
|
16
17
|
type NativeTextareaProps = ComponentProps<'textarea'>;
|
|
17
18
|
type TextareaProps = Omit<NativeTextareaProps, 'value' | 'defaultValue' | 'onChange' | 'readOnly'> & TextValueProperties<NonNullable<NativeTextareaProps['value']>, NonNullable<NativeTextareaProps['onChange']>, NonNullable<BaseInputProps['onValueChange']>> & {
|
|
18
19
|
readonly xstyle?: PlacementStyle;
|
|
20
|
+
readonly compact?: boolean;
|
|
19
21
|
};
|
|
20
22
|
declare function FieldRoot({ className, style, xstyle, ...props }: FieldRootProps): ReactNode;
|
|
21
23
|
declare function FieldLabel({ className, style, ...props }: FieldLabelProps): ReactNode;
|
|
@@ -27,6 +29,6 @@ export declare const Field: {
|
|
|
27
29
|
Description: typeof FieldDescription;
|
|
28
30
|
Error: typeof FieldError;
|
|
29
31
|
};
|
|
30
|
-
export declare function Input({ className, style, xstyle, ...props }: InputProps): ReactNode;
|
|
31
|
-
export declare function Textarea({ value, defaultValue, onValueChange, name, disabled, readOnly, required, className, style, xstyle, ...props }: TextareaProps): ReactNode;
|
|
32
|
+
export declare function Input({ className, style, xstyle, size, ...props }: InputProps): ReactNode;
|
|
33
|
+
export declare function Textarea({ compact, value, defaultValue, onValueChange, name, disabled, readOnly, required, className, style, xstyle, ...props }: TextareaProps): ReactNode;
|
|
32
34
|
export {};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { AppShell } from './app-shell.tsx';
|
|
2
2
|
export { DetailPage } from './detail-page.tsx';
|
|
3
|
+
export { FocusPage } from './focus-page.tsx';
|
|
4
|
+
export { Workbench, WorkbenchScroll, WorkbenchFooter } from './workbench.tsx';
|
|
3
5
|
export { PageToolbar, ToolbarAction } from './page-toolbar.tsx';
|
|
4
6
|
export type { RecordPageRootProps, RecordPageToolbarProps, RecordPageBodyProps, RecordPageHeaderProps, RecordPageContentProps, RecordPageAsideProps, } from './record-page.tsx';
|
|
5
7
|
export { RecordPage } from './record-page.tsx';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export declare function Workbench({ header, children, inspector, }: {
|
|
3
|
+
readonly header: ReactNode;
|
|
4
|
+
readonly children: ReactNode;
|
|
5
|
+
readonly inspector?: ReactNode;
|
|
6
|
+
}): ReactNode;
|
|
7
|
+
export declare function WorkbenchScroll({ children }: {
|
|
8
|
+
readonly children: ReactNode;
|
|
9
|
+
}): ReactNode;
|
|
10
|
+
export declare function WorkbenchFooter({ children }: {
|
|
11
|
+
readonly children: ReactNode;
|
|
12
|
+
}): ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as e } from "./src-
|
|
2
|
-
import { l as t } from "./src-
|
|
1
|
+
import { c as e } from "./src-BkCsvZGi.js";
|
|
2
|
+
import { l as t } from "./src-DjTM64tN.js";
|
|
3
3
|
import { conditions as n } from "./tokens.js";
|
|
4
4
|
import { r } from "./pierre-theme-BpESNIsV.js";
|
|
5
5
|
import * as i from "@stylexjs/stylex";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as e, s as t } from "./src-
|
|
1
|
+
import { i as e, s as t } from "./src-BkCsvZGi.js";
|
|
2
2
|
import { t as n } from "./accessibility-C-aIZ1Yx.js";
|
|
3
3
|
import { n as r, t as i } from "./popup-styles-CvtZDE2t.js";
|
|
4
4
|
import { t as a } from "./style-composition-uYlczSsB.js";
|
|
@@ -27,6 +27,7 @@ var x = {
|
|
|
27
27
|
k63SB2: "xk50ysn",
|
|
28
28
|
kGuDYH: "xtqrqnz",
|
|
29
29
|
kLWn49: "x1778rvt",
|
|
30
|
+
kMnn75: "xkrqix3",
|
|
30
31
|
kkrTdU: "x1ypdohk",
|
|
31
32
|
khDVqt: "xuxw1ft",
|
|
32
33
|
kUfY9r: "xdibjt2",
|
|
@@ -632,8 +633,11 @@ var X = {
|
|
|
632
633
|
function ae({ variant: e = "body", tone: t = "ink", xstyle: n, ...a }) {
|
|
633
634
|
return /* @__PURE__ */ l("span", { ...r(i.props(X.text, Z[e], Q[t], n), a) });
|
|
634
635
|
}
|
|
635
|
-
function oe(e) {
|
|
636
|
-
return /* @__PURE__ */ l("h1", { ...r({
|
|
636
|
+
function oe({ compact: e = !1, ...t }) {
|
|
637
|
+
return /* @__PURE__ */ l("h1", { ...r({
|
|
638
|
+
0: { className: "x1ghz6dp x1hz01jw xvmahel xc0f4dz x1sfszr9 xzju6ct x197eox2 x1s688f x1wjjqco xbixft xj0a0fe" },
|
|
639
|
+
1: { className: "x1ghz6dp x1hz01jw xvmahel x1i2cqwi x4fansv x1s688f xbixft" }
|
|
640
|
+
}[!!e | 0], t) });
|
|
637
641
|
}
|
|
638
642
|
function $(e) {
|
|
639
643
|
return /* @__PURE__ */ l("h2", { ...r({ className: "x1ghz6dp x1hz01jw xvmahel x1i2cqwi x4fansv x1s688f xbixft" }, e) });
|