@mechane-ai/elements 0.12.0 → 0.14.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.
Files changed (88) hide show
  1. package/README.md +50 -11
  2. package/dist/ai.js +175 -148
  3. package/dist/{categorical-values-CTrHn9jH.js → categorical-values-BnWfIPlv.js} +3 -3
  4. package/dist/{chart-frame-38ES6kwK.js → chart-frame-Dm8UNfYD.js} +6 -6
  5. package/dist/{chart-input-C9fu7f1Q.js → chart-input-ceiMZYI-.js} +3 -3
  6. package/dist/charts/cartesian.js +16 -16
  7. package/dist/charts/distribution.js +6 -6
  8. package/dist/charts/graph.js +5 -5
  9. package/dist/charts/hierarchy.js +3 -3
  10. package/dist/charts/matrix.js +13 -13
  11. package/dist/charts/timeline.js +30 -30
  12. package/dist/charts.js +1 -1
  13. package/dist/{code-block-BjV2EFZS.js → code-block-D07N6mYS.js} +4 -4
  14. package/dist/collections.js +414 -395
  15. package/dist/constants.stylex-bbdiv1fD.js +83 -0
  16. package/dist/content/code.js +1 -1
  17. package/dist/content/diff.js +5 -5
  18. package/dist/content/link.js +1 -1
  19. package/dist/content/markdown.js +4 -4
  20. package/dist/content/tree.js +2 -2
  21. package/dist/{content-link-C460m-O7.js → content-link-CEx2s1MU.js} +1 -1
  22. package/dist/content.js +5 -5
  23. package/dist/elements.css +71 -120
  24. package/dist/feedback.js +1 -1
  25. package/dist/forms/dates.js +21 -21
  26. package/dist/forms.js +1 -1
  27. package/dist/index.js +1 -1
  28. package/dist/layout.js +22 -22
  29. package/dist/navigation/commands.js +6 -6
  30. package/dist/navigation.js +30 -16
  31. package/dist/overlays.js +1 -1
  32. package/dist/packages/ai/src/approval.d.ts +1 -1
  33. package/dist/packages/ai/src/conversation.d.ts +4 -4
  34. package/dist/packages/ai/src/index.d.ts +2 -2
  35. package/dist/packages/ai/src/prompt-input.d.ts +9 -5
  36. package/dist/packages/charts/src/cartesian/time-series-data.d.ts +1 -1
  37. package/dist/packages/charts/src/cartesian/time-series.d.ts +2 -2
  38. package/dist/packages/charts/src/chart-frame.d.ts +2 -2
  39. package/dist/packages/collections/src/collection-controls.d.ts +8 -7
  40. package/dist/packages/collections/src/collection-scroll.d.ts +2 -2
  41. package/dist/packages/collections/src/data-table.d.ts +23 -6
  42. package/dist/packages/collections/src/index.d.ts +4 -5
  43. package/dist/packages/content/src/code/code-block.d.ts +4 -4
  44. package/dist/packages/content/src/diff/diff-source.d.ts +1 -1
  45. package/dist/packages/content/src/diff/pierre-diff.d.ts +2 -2
  46. package/dist/packages/content/src/markdown/markdown.d.ts +2 -2
  47. package/dist/packages/content/src/trace.d.ts +3 -3
  48. package/dist/packages/core/src/actions.d.ts +2 -2
  49. package/dist/packages/core/src/surfaces.d.ts +6 -6
  50. package/dist/packages/core/src/text.d.ts +2 -2
  51. package/dist/packages/feedback/src/async-region.d.ts +18 -10
  52. package/dist/packages/feedback/src/control-placeholders.d.ts +10 -5
  53. package/dist/packages/feedback/src/feedback.d.ts +2 -2
  54. package/dist/packages/feedback/src/index.d.ts +2 -3
  55. package/dist/packages/forms/src/form-actions.d.ts +2 -2
  56. package/dist/packages/forms/src/forms.d.ts +2 -2
  57. package/dist/packages/forms/src/selection-styles.d.ts +1 -1
  58. package/dist/packages/foundations/src/constants.stylex.d.ts +90 -0
  59. package/dist/packages/foundations/src/control-styles.d.ts +21 -0
  60. package/dist/packages/foundations/src/tokens.d.ts +2 -0
  61. package/dist/packages/foundations/src/tokens.stylex.d.ts +0 -85
  62. package/dist/packages/layout/src/app-shell.d.ts +2 -2
  63. package/dist/packages/layout/src/page-toolbar.d.ts +3 -3
  64. package/dist/packages/layout/src/record-page.d.ts +2 -2
  65. package/dist/packages/layout/src/resizable.d.ts +2 -2
  66. package/dist/packages/layout/src/sidebar.d.ts +6 -6
  67. package/dist/packages/layout/src/view-stack.d.ts +2 -2
  68. package/dist/packages/layout/src/workbench.d.ts +2 -2
  69. package/dist/packages/navigation/src/commands/command.d.ts +3 -3
  70. package/dist/packages/navigation/src/index.d.ts +2 -2
  71. package/dist/packages/navigation/src/page-navigation.d.ts +7 -2
  72. package/dist/packages/overlays/src/drawer.d.ts +2 -2
  73. package/dist/{pierre-diff-sUAU-xeL.js → pierre-diff-C_j0nxwS.js} +2 -2
  74. package/dist/pierre-theme-BUeJim8s.js +127 -0
  75. package/dist/{pierre-tree-DKN2eGlZ.js → pierre-tree-CBBDlJ_Y.js} +4 -4
  76. package/dist/{src-DOzle5d4.js → src-BkXlN6aZ.js} +180 -195
  77. package/dist/{src-CI6KtN2w.js → src-C9GQP3px.js} +353 -377
  78. package/dist/{src-3gzujMhN.js → src-CyJd2qSZ.js} +47 -33
  79. package/dist/{src-CVlgjAlw.js → src-d7EAi61b.js} +9 -9
  80. package/dist/theme.js +1 -1
  81. package/dist/tokens.js +3 -203
  82. package/dist/tokens.stylex-DTHHFbyl.js +128 -0
  83. package/package.json +4 -2
  84. package/packages/foundations/src/constants.stylex.ts +91 -0
  85. package/packages/foundations/src/tokens.stylex.ts +0 -88
  86. package/dist/packages/collections/src/table.d.ts +0 -17
  87. package/dist/packages/feedback/src/loading.d.ts +0 -7
  88. package/dist/pierre-theme-CBAncKdH.js +0 -126
@@ -9,7 +9,7 @@ type TextProps = ComponentProps<'span'> & {
9
9
  readonly xstyle?: PlacementStyle;
10
10
  };
11
11
  type HeadingProps = ComponentProps<'h1'> & {
12
- readonly compact?: boolean;
12
+ readonly isCompact?: boolean;
13
13
  };
14
14
  type SubheadingProps = ComponentProps<'h2'>;
15
15
  type MutedProps = ComponentProps<'p'>;
@@ -22,7 +22,7 @@ type StatusProps = ComponentProps<'span'> & {
22
22
  readonly tone?: StatusTone;
23
23
  };
24
24
  export declare function Text({ variant, tone, xstyle, ...props }: TextProps): ReactNode;
25
- export declare function Heading({ compact, ...props }: HeadingProps): ReactNode;
25
+ export declare function Heading({ isCompact, ...props }: HeadingProps): ReactNode;
26
26
  export declare function Subheading(props: SubheadingProps): ReactNode;
27
27
  export declare function Muted(props: MutedProps): ReactNode;
28
28
  export declare function Identifier(props: IdentifierProps): ReactNode;
@@ -1,17 +1,25 @@
1
1
  import type { ReactNode } from 'react';
2
+ export type LoadingScopeProps = {
3
+ readonly identity: string | number;
4
+ /** Preserve elapsed loading time when a document hands its first read to React. */
5
+ readonly initialStartedAt?: number;
6
+ readonly children: ReactNode;
7
+ };
8
+ export declare function LoadingScope({ identity, initialStartedAt, children }: LoadingScopeProps): ReactNode;
2
9
  export type ContentRevealProps = {
3
- readonly enter: boolean;
4
- readonly fill?: boolean | undefined;
10
+ readonly shouldEnter: boolean;
5
11
  readonly children: ReactNode;
6
12
  };
7
- export declare function ContentReveal({ enter, fill, children }: ContentRevealProps): ReactNode;
13
+ export declare function ContentReveal({ shouldEnter, children }: ContentRevealProps): ReactNode;
14
+ export type AsyncRegionState = 'pending' | 'ready' | 'failed';
8
15
  export type AsyncRegionProps = {
9
- readonly pending: boolean;
10
16
  readonly label: string;
11
17
  readonly placeholder: ReactNode;
12
- readonly children?: ReactNode;
13
- readonly fill?: boolean | undefined;
14
- readonly startedAt?: number | undefined;
15
- readonly delayMs?: number | undefined;
16
- };
17
- export declare function AsyncRegion({ pending, label, placeholder, children, fill, startedAt, delayMs, }: AsyncRegionProps): ReactNode;
18
+ } & ({
19
+ readonly state: 'pending';
20
+ readonly children?: never;
21
+ } | {
22
+ readonly state: 'ready' | 'failed';
23
+ readonly children: ReactNode;
24
+ });
25
+ export declare function AsyncRegion(props: AsyncRegionProps): ReactNode;
@@ -1,16 +1,21 @@
1
1
  import type { ReactNode } from 'react';
2
2
  import type { PlacementStyle } from '../../foundations/src/style-composition.ts';
3
3
  export type ButtonPlaceholderProps = {
4
- readonly width?: number | string;
5
4
  readonly xstyle?: PlacementStyle;
6
- };
5
+ } & ({
6
+ readonly isIconOnly: true;
7
+ readonly width?: never;
8
+ } | {
9
+ readonly isIconOnly?: false;
10
+ readonly width?: number | string;
11
+ });
7
12
  export type FieldPlaceholderProps = {
8
13
  readonly label?: string;
9
14
  readonly hint?: string;
10
- readonly multiline?: boolean;
15
+ readonly isMultiline?: boolean;
11
16
  readonly rows?: number;
12
17
  readonly width?: number | string;
13
18
  readonly xstyle?: PlacementStyle;
14
19
  };
15
- export declare function ButtonPlaceholder({ width, xstyle }: ButtonPlaceholderProps): ReactNode;
16
- export declare function FieldPlaceholder({ label, hint, multiline, rows, width, xstyle, }: FieldPlaceholderProps): ReactNode;
20
+ export declare function ButtonPlaceholder({ width, isIconOnly, xstyle }: ButtonPlaceholderProps): ReactNode;
21
+ export declare function FieldPlaceholder({ label, hint, isMultiline, rows, width, xstyle, }: FieldPlaceholderProps): ReactNode;
@@ -4,8 +4,8 @@ type EmptyStateProps = Omit<ComponentProps<'div'>, 'title'> & {
4
4
  readonly action?: ReactNode;
5
5
  };
6
6
  type NoticeProps = ComponentProps<'div'> & {
7
- readonly error?: boolean;
7
+ readonly hasError?: boolean;
8
8
  };
9
9
  export declare function EmptyState({ title, children, action, ...props }: EmptyStateProps): ReactNode;
10
- export declare function Notice({ error, ...props }: NoticeProps): ReactNode;
10
+ export declare function Notice({ hasError, ...props }: NoticeProps): ReactNode;
11
11
  export {};
@@ -1,7 +1,6 @@
1
1
  export { EmptyState, Notice } from './feedback.tsx';
2
2
  export type { ButtonPlaceholderProps, FieldPlaceholderProps } from './control-placeholders.tsx';
3
3
  export { ButtonPlaceholder, FieldPlaceholder } from './control-placeholders.tsx';
4
- export { Loading } from './loading.tsx';
5
4
  export type { ProgressProps, MeterProps } from './progress.tsx';
6
5
  export { Progress, Meter } from './progress.tsx';
7
6
  export type { SkeletonProps, SkeletonTextProps, SpinnerProps } from './skeleton.tsx';
@@ -10,5 +9,5 @@ export type { ExternalToast as ToastOptions } from 'sonner';
10
9
  export { toast } from 'sonner';
11
10
  export type { ToasterProps } from './toast.tsx';
12
11
  export { Toaster } from './toast.tsx';
13
- export type { AsyncRegionProps, ContentRevealProps } from './async-region.tsx';
14
- export { AsyncRegion, ContentReveal } from './async-region.tsx';
12
+ export type { AsyncRegionProps, AsyncRegionState, ContentRevealProps, LoadingScopeProps } from './async-region.tsx';
13
+ export { AsyncRegion, ContentReveal, LoadingScope } from './async-region.tsx';
@@ -4,8 +4,8 @@ type FormActionsAlignment = 'start' | 'end';
4
4
  export type FormActionsProps = {
5
5
  readonly children: ReactNode;
6
6
  readonly align?: FormActionsAlignment;
7
- readonly separated?: boolean;
7
+ readonly hasSeparator?: boolean;
8
8
  readonly xstyle?: PlacementStyle;
9
9
  };
10
- export declare function FormActions({ children, align, separated, xstyle }: FormActionsProps): ReactNode;
10
+ export declare function FormActions({ children, align, hasSeparator, xstyle }: FormActionsProps): ReactNode;
11
11
  export {};
@@ -17,7 +17,7 @@ export type InputProps = Omit<BaseInputProps, 'value' | 'defaultValue' | 'onChan
17
17
  type NativeTextareaProps = ComponentProps<'textarea'>;
18
18
  type TextareaProps = Omit<NativeTextareaProps, 'value' | 'defaultValue' | 'onChange' | 'readOnly'> & TextValueProperties<NonNullable<NativeTextareaProps['value']>, NonNullable<NativeTextareaProps['onChange']>, NonNullable<BaseInputProps['onValueChange']>> & {
19
19
  readonly xstyle?: PlacementStyle;
20
- readonly compact?: boolean;
20
+ readonly isCompact?: boolean;
21
21
  readonly appearance?: TextareaAppearance;
22
22
  };
23
23
  declare function FieldRoot({ className, style, xstyle, ...props }: FieldRootProps): ReactNode;
@@ -31,5 +31,5 @@ export declare const Field: {
31
31
  Error: typeof FieldError;
32
32
  };
33
33
  export declare function Input({ className, style, xstyle, ...props }: InputProps): ReactNode;
34
- export declare function Textarea({ compact, appearance, value, defaultValue, onValueChange, name, disabled, readOnly, required, className, style, xstyle, ...props }: TextareaProps): ReactNode;
34
+ export declare function Textarea({ isCompact, appearance, value, defaultValue, onValueChange, name, disabled, readOnly, required, className, style, xstyle, ...props }: TextareaProps): ReactNode;
35
35
  export {};
@@ -1,5 +1,5 @@
1
1
  import * as stylex from '@stylexjs/stylex';
2
- import { conditions } from '../../foundations/src/tokens.stylex.ts';
2
+ import { conditions } from '../../foundations/src/constants.stylex.ts';
3
3
  export declare const selectionStyles: Readonly<{
4
4
  readonly trigger: Readonly<{
5
5
  readonly display: stylex.StyleXClassNameFor<"display", "inline-flex">;
@@ -0,0 +1,90 @@
1
+ export declare const darkColors: {
2
+ canvas: string;
3
+ surface: string;
4
+ ink: string;
5
+ inkHover: string;
6
+ inverse: string;
7
+ muted: string;
8
+ faint: string;
9
+ line: string;
10
+ focus: string;
11
+ accent: string;
12
+ accentSoft: string;
13
+ warning: string;
14
+ warningSoft: string;
15
+ danger: string;
16
+ dangerHover: string;
17
+ dangerSoft: string;
18
+ overlay: string;
19
+ };
20
+ export declare const darkChartColors: {
21
+ series1: string;
22
+ series2: string;
23
+ series3: string;
24
+ series4: string;
25
+ series5: string;
26
+ series6: string;
27
+ negative: string;
28
+ positive: string;
29
+ missing: string;
30
+ };
31
+ export declare const darkAvatarColors: {
32
+ identity1: string;
33
+ identity2: string;
34
+ identity3: string;
35
+ identity4: string;
36
+ identity5: string;
37
+ identity6: string;
38
+ identity7: string;
39
+ identity8: string;
40
+ identity9: string;
41
+ identity10: string;
42
+ identity11: string;
43
+ identity12: string;
44
+ identity13: string;
45
+ identity14: string;
46
+ identity15: string;
47
+ identity16: string;
48
+ identity17: string;
49
+ identity18: string;
50
+ identity19: string;
51
+ identity20: string;
52
+ identity21: string;
53
+ identity22: string;
54
+ identity23: string;
55
+ identity24: string;
56
+ };
57
+ export declare const darkSyntaxColors: {
58
+ keyword: string;
59
+ string: string;
60
+ comment: string;
61
+ number: string;
62
+ type: string;
63
+ };
64
+ export declare const loading: {
65
+ delaySeconds: number;
66
+ revealMs: number;
67
+ placeholderMs: number;
68
+ };
69
+ export declare const darkShadows: {
70
+ popup: string;
71
+ };
72
+ export declare const layers: {
73
+ sticky: string;
74
+ backdrop: string;
75
+ dialog: string;
76
+ popup: string;
77
+ tooltip: string;
78
+ skipLink: string;
79
+ };
80
+ export declare const tableGeometry: {
81
+ rowHeight: number;
82
+ headerHeight: number;
83
+ };
84
+ export declare const conditions: {
85
+ coarsePointer: string;
86
+ hoverPointer: string;
87
+ compactText: string;
88
+ compactTable: string;
89
+ reducedMotion: string;
90
+ };
@@ -25,6 +25,10 @@ export declare const controlStyles: Readonly<{
25
25
  readonly overflowWrap: stylex.StyleXClassNameFor<"overflowWrap", "anywhere">;
26
26
  readonly textAlign: stylex.StyleXClassNameFor<"textAlign", "center">;
27
27
  }>;
28
+ readonly iconButton: Readonly<{
29
+ readonly minWidth: stylex.StyleXClassNameFor<"minWidth", string>;
30
+ readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", 0>;
31
+ }>;
28
32
  readonly field: Readonly<{
29
33
  readonly display: stylex.StyleXClassNameFor<"display", "block">;
30
34
  readonly width: stylex.StyleXClassNameFor<"width", "100%">;
@@ -62,6 +66,23 @@ export declare const controlStyles: Readonly<{
62
66
  readonly resize: stylex.StyleXClassNameFor<"resize", "vertical">;
63
67
  readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
64
68
  }>;
69
+ readonly plainTextarea: Readonly<{
70
+ readonly minHeight: stylex.StyleXClassNameFor<"minHeight", string>;
71
+ readonly maxHeight: stylex.StyleXClassNameFor<"maxHeight", "30dvh">;
72
+ readonly fieldSizing: stylex.StyleXClassNameFor<"fieldSizing", "content">;
73
+ readonly resize: stylex.StyleXClassNameFor<"resize", "none">;
74
+ readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", 0>;
75
+ readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", 0>;
76
+ readonly borderWidth: stylex.StyleXClassNameFor<"borderWidth", 0>;
77
+ readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", 0>;
78
+ readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "transparent">;
79
+ readonly ':focus-visible': stylex.StyleXClassNameFor<":focus-visible", {
80
+ readonly outlineStyle: "none";
81
+ }>;
82
+ readonly ':disabled': stylex.StyleXClassNameFor<":disabled", {
83
+ readonly backgroundColor: "transparent";
84
+ }>;
85
+ }>;
65
86
  readonly group: Readonly<{
66
87
  readonly position: stylex.StyleXClassNameFor<"position", "relative">;
67
88
  readonly display: stylex.StyleXClassNameFor<"display", "flex">;
@@ -0,0 +1,2 @@
1
+ export { conditions, darkAvatarColors, darkChartColors, darkColors, darkShadows, darkSyntaxColors, layers, loading, tableGeometry, } from './constants.stylex.ts';
2
+ export { avatarColors, chartColors, colors, controls, motion, pageGeometry, radii, shadows, spacing, syntaxColors, typography, } from './tokens.stylex.ts';
@@ -18,25 +18,6 @@ export declare const colors: stylex.VarGroup<Readonly<{
18
18
  dangerSoft: string;
19
19
  overlay: string;
20
20
  }>, symbol>;
21
- export declare const darkColors: {
22
- canvas: string;
23
- surface: string;
24
- ink: string;
25
- inkHover: string;
26
- inverse: string;
27
- muted: string;
28
- faint: string;
29
- line: string;
30
- focus: string;
31
- accent: string;
32
- accentSoft: string;
33
- warning: string;
34
- warningSoft: string;
35
- danger: string;
36
- dangerHover: string;
37
- dangerSoft: string;
38
- overlay: string;
39
- };
40
21
  export declare const chartColors: stylex.VarGroup<Readonly<{
41
22
  series1: string;
42
23
  series2: string;
@@ -48,17 +29,6 @@ export declare const chartColors: stylex.VarGroup<Readonly<{
48
29
  positive: string;
49
30
  missing: string;
50
31
  }>, symbol>;
51
- export declare const darkChartColors: {
52
- series1: string;
53
- series2: string;
54
- series3: string;
55
- series4: string;
56
- series5: string;
57
- series6: string;
58
- negative: string;
59
- positive: string;
60
- missing: string;
61
- };
62
32
  export declare const avatarColors: stylex.VarGroup<Readonly<{
63
33
  identity1: string;
64
34
  identity2: string;
@@ -85,32 +55,6 @@ export declare const avatarColors: stylex.VarGroup<Readonly<{
85
55
  identity23: string;
86
56
  identity24: string;
87
57
  }>, symbol>;
88
- export declare const darkAvatarColors: {
89
- identity1: string;
90
- identity2: string;
91
- identity3: string;
92
- identity4: string;
93
- identity5: string;
94
- identity6: string;
95
- identity7: string;
96
- identity8: string;
97
- identity9: string;
98
- identity10: string;
99
- identity11: string;
100
- identity12: string;
101
- identity13: string;
102
- identity14: string;
103
- identity15: string;
104
- identity16: string;
105
- identity17: string;
106
- identity18: string;
107
- identity19: string;
108
- identity20: string;
109
- identity21: string;
110
- identity22: string;
111
- identity23: string;
112
- identity24: string;
113
- };
114
58
  export declare const syntaxColors: stylex.VarGroup<Readonly<{
115
59
  keyword: string;
116
60
  string: string;
@@ -118,13 +62,6 @@ export declare const syntaxColors: stylex.VarGroup<Readonly<{
118
62
  number: string;
119
63
  type: string;
120
64
  }>, symbol>;
121
- export declare const darkSyntaxColors: {
122
- keyword: string;
123
- string: string;
124
- comment: string;
125
- number: string;
126
- type: string;
127
- };
128
65
  export declare const spacing: stylex.VarGroup<Readonly<{
129
66
  xxs: string;
130
67
  xs: string;
@@ -186,25 +123,3 @@ export declare const shadows: stylex.VarGroup<Readonly<{
186
123
  popup: string;
187
124
  selection: string;
188
125
  }>, symbol>;
189
- export declare const darkShadows: {
190
- popup: string;
191
- };
192
- export declare const layers: {
193
- sticky: string;
194
- backdrop: string;
195
- dialog: string;
196
- popup: string;
197
- tooltip: string;
198
- skipLink: string;
199
- };
200
- export declare const tableGeometry: {
201
- rowHeight: number;
202
- headerHeight: number;
203
- };
204
- export declare const conditions: {
205
- coarsePointer: string;
206
- hoverPointer: string;
207
- compactText: string;
208
- compactTable: string;
209
- reducedMotion: string;
210
- };
@@ -5,7 +5,7 @@ type AppShellProps = {
5
5
  readonly footer?: ReactNode;
6
6
  readonly children: ReactNode;
7
7
  readonly mainId?: string;
8
- readonly focus?: boolean;
8
+ readonly shouldFocus?: boolean;
9
9
  };
10
- export declare function AppShell({ sidebarHeader, sidebar, footer, children, mainId, focus, }: AppShellProps): ReactNode;
10
+ export declare function AppShell({ sidebarHeader, sidebar, footer, children, mainId, shouldFocus, }: AppShellProps): ReactNode;
11
11
  export {};
@@ -3,14 +3,14 @@ import { Button } from '../../core/src/index.ts';
3
3
  type PageToolbarProps = {
4
4
  readonly title: ReactNode;
5
5
  readonly actions?: ReactNode;
6
- readonly breadcrumb?: boolean;
7
- readonly navigation?: boolean;
6
+ readonly showBreadcrumb?: boolean;
7
+ readonly showNavigation?: boolean;
8
8
  readonly views?: ReactNode;
9
9
  readonly leading?: ReactNode;
10
10
  };
11
11
  type ToolbarActionProps = Omit<ComponentProps<typeof Button>, 'variant' | 'xstyle'> & {
12
12
  readonly icon?: ReactNode;
13
13
  };
14
- export declare function PageToolbar({ title, actions, breadcrumb, navigation, views, leading, }: PageToolbarProps): ReactNode;
14
+ export declare function PageToolbar({ title, actions, showBreadcrumb, showNavigation, views, leading, }: PageToolbarProps): ReactNode;
15
15
  export declare function ToolbarAction({ icon, children, ...props }: ToolbarActionProps): ReactNode;
16
16
  export {};
@@ -13,7 +13,7 @@ export type RecordPageToolbarProps = {
13
13
  readonly backHref: string;
14
14
  readonly onBack?: () => void;
15
15
  readonly actions?: ReactNode;
16
- readonly navigation?: boolean;
16
+ readonly showNavigation?: boolean;
17
17
  };
18
18
  export type RecordPageHeaderProps = {
19
19
  readonly title: ReactNode;
@@ -26,7 +26,7 @@ export type RecordPageAsideProps = {
26
26
  readonly label?: string;
27
27
  };
28
28
  declare function RecordPageRoot({ children }: RecordPageRootProps): ReactNode;
29
- declare function RecordPageToolbar({ backLabel, backHref, onBack, actions, navigation, }: RecordPageToolbarProps): ReactNode;
29
+ declare function RecordPageToolbar({ backLabel, backHref, onBack, actions, showNavigation, }: RecordPageToolbarProps): ReactNode;
30
30
  declare function RecordPageBody({ children }: RecordPageBodyProps): ReactNode;
31
31
  declare function RecordPageContent({ children }: RecordPageContentProps): ReactNode;
32
32
  declare function RecordPageHeader({ title, description, icon, titleRef }: RecordPageHeaderProps): ReactNode;
@@ -10,14 +10,14 @@ export type ResizablePaneProps = {
10
10
  readonly initialSizePercent?: number;
11
11
  readonly minimumSizePercent?: number;
12
12
  readonly maximumSizePercent?: number;
13
- readonly collapsible?: boolean;
13
+ readonly canCollapse?: boolean;
14
14
  } & Omit<ComponentProps<'div'>, 'id' | 'onResize'>;
15
15
  export type ResizableHandleProps = {
16
16
  readonly 'aria-label': string;
17
17
  readonly 'disabled'?: boolean;
18
18
  } & Omit<ComponentProps<'div'>, 'children'>;
19
19
  declare function ResizableRoot({ orientation, initialSizes, onSizesChange, disabled, ref, ...props }: ResizableRootProps): ReactNode;
20
- declare function ResizablePane({ id, initialSizePercent, minimumSizePercent, maximumSizePercent, collapsible, ref, ...props }: ResizablePaneProps): ReactNode;
20
+ declare function ResizablePane({ id, initialSizePercent, minimumSizePercent, maximumSizePercent, canCollapse, ref, ...props }: ResizablePaneProps): ReactNode;
21
21
  declare function ResizableHandle({ ref, ...props }: ResizableHandleProps): ReactNode;
22
22
  export declare const Resizable: {
23
23
  Root: typeof ResizableRoot;
@@ -23,15 +23,15 @@ type NavigationProps = {
23
23
  };
24
24
  type NavigationItemProps = ComponentProps<typeof BaseButton> & {
25
25
  readonly icon?: ReactNode;
26
- readonly selected?: boolean;
26
+ readonly isSelected?: boolean;
27
27
  };
28
28
  type NavigationLinkProps = ComponentProps<'a'> & {
29
29
  readonly icon?: ReactNode;
30
- readonly selected?: boolean;
30
+ readonly isSelected?: boolean;
31
31
  };
32
32
  type SidebarLabelProps = {
33
33
  readonly children: ReactNode;
34
- readonly grow?: boolean;
34
+ readonly shouldGrow?: boolean;
35
35
  };
36
36
  type SidebarFooterLayout = 'inline' | 'navigation';
37
37
  type SidebarFooterProps = {
@@ -45,9 +45,9 @@ export declare function NavigationSection({ children, label, }: {
45
45
  readonly children: ReactNode;
46
46
  readonly label: string;
47
47
  }): ReactNode;
48
- export declare function NavigationItem({ children, icon, selected, onClick, className, style, ...props }: NavigationItemProps): ReactNode;
49
- export declare function NavigationLink({ children, icon, selected, onClick, className, style, ...props }: NavigationLinkProps): ReactNode;
50
- export declare function SidebarLabel({ children, grow }: SidebarLabelProps): ReactNode;
48
+ export declare function NavigationItem({ children, icon, isSelected, onClick, className, style, ...props }: NavigationItemProps): ReactNode;
49
+ export declare function NavigationLink({ children, icon, isSelected, onClick, className, style, ...props }: NavigationLinkProps): ReactNode;
50
+ export declare function SidebarLabel({ children, shouldGrow }: SidebarLabelProps): ReactNode;
51
51
  export declare function SidebarFooter({ children, layout }: SidebarFooterProps): ReactNode;
52
52
  export declare function SidebarToggle(): ReactNode;
53
53
  export {};
@@ -2,8 +2,8 @@ import type { ReactNode } from 'react';
2
2
  declare function ViewStackRoot({ children }: {
3
3
  readonly children: ReactNode;
4
4
  }): ReactNode;
5
- declare function ViewStackPanel({ active, children }: {
6
- readonly active: boolean;
5
+ declare function ViewStackPanel({ isActive, children, }: {
6
+ readonly isActive: boolean;
7
7
  readonly children: ReactNode;
8
8
  }): ReactNode;
9
9
  export declare const ViewStack: {
@@ -4,10 +4,10 @@ export declare function Workbench({ header, children, inspector, }: {
4
4
  readonly children: ReactNode;
5
5
  readonly inspector?: ReactNode;
6
6
  }): ReactNode;
7
- export declare function WorkbenchScroll({ label, children, flush, scrollRestorationId, }: {
7
+ export declare function WorkbenchScroll({ label, children, isFlush, scrollRestorationId, }: {
8
8
  readonly label: string;
9
9
  readonly children: ReactNode;
10
- readonly flush?: boolean;
10
+ readonly isFlush?: boolean;
11
11
  readonly scrollRestorationId?: string;
12
12
  }): ReactNode;
13
13
  export declare function WorkbenchFooter({ children }: {
@@ -12,15 +12,15 @@ export type CommandAction = {
12
12
  readonly label: string;
13
13
  readonly description?: string;
14
14
  readonly shortcut?: CommandShortcut;
15
- readonly disabled?: boolean;
15
+ readonly isDisabled?: boolean;
16
16
  readonly onSelect: () => void;
17
17
  };
18
18
  export type CommandShortcutsOptions = {
19
19
  readonly commands: ReadonlyArray<CommandAction>;
20
20
  readonly target: RefObject<HTMLElement | null> | HTMLElement | null;
21
- readonly enabled: boolean;
21
+ readonly isEnabled: boolean;
22
22
  };
23
- export declare function useCommandShortcuts({ commands, target, enabled }: CommandShortcutsOptions): void;
23
+ export declare function useCommandShortcuts({ commands, target, isEnabled }: CommandShortcutsOptions): void;
24
24
  export type ShortcutHintProps = {
25
25
  readonly shortcut: CommandShortcut;
26
26
  };
@@ -1,5 +1,5 @@
1
1
  export { Kbd, Breadcrumb } from './navigation.tsx';
2
- export type { PageNavigationItem, PageNavigationProps } from './page-navigation.tsx';
3
- export { PageNavigation } from './page-navigation.tsx';
2
+ export type { PageNavigationItem, PageNavigationProps, PageNavigationPlaceholderProps } from './page-navigation.tsx';
3
+ export { PageNavigation, PageNavigationPlaceholder } from './page-navigation.tsx';
4
4
  export { SkipLink } from './skip-link.tsx';
5
5
  export { Tabs } from './tabs.tsx';
@@ -9,6 +9,11 @@ export type PageNavigationProps<ItemId extends string = string> = {
9
9
  readonly selectedId: ItemId;
10
10
  readonly onNavigate?: (id: ItemId) => void;
11
11
  readonly label?: string;
12
- readonly embedded?: boolean;
12
+ readonly isEmbedded?: boolean;
13
13
  };
14
- export declare function PageNavigation<ItemId extends string>({ items, selectedId, onNavigate, label, embedded, }: PageNavigationProps<ItemId>): ReactNode;
14
+ export type PageNavigationPlaceholderProps = {
15
+ readonly items: ReadonlyArray<Pick<PageNavigationItem, 'id' | 'label'>>;
16
+ readonly isEmbedded?: boolean;
17
+ };
18
+ export declare function PageNavigationPlaceholder({ items, isEmbedded }: PageNavigationPlaceholderProps): ReactNode;
19
+ export declare function PageNavigation<ItemId extends string>({ items, selectedId, onNavigate, label, isEmbedded, }: PageNavigationProps<ItemId>): ReactNode;
@@ -9,14 +9,14 @@ type DrawerPopupProps = ComponentProps<typeof BaseDrawer.Popup> & {
9
9
  readonly xstyle?: PlacementStyle;
10
10
  };
11
11
  type DrawerTitleProps = ComponentProps<typeof BaseDrawer.Title> & {
12
- readonly visuallyHidden?: boolean;
12
+ readonly isVisuallyHidden?: boolean;
13
13
  };
14
14
  type DrawerDescriptionProps = ComponentProps<typeof BaseDrawer.Description>;
15
15
  declare function DrawerRoot<Payload = unknown>(props: DrawerRootProps<Payload>): ReactNode;
16
16
  declare function DrawerBackdrop({ className, style, ...props }: DrawerBackdropProps): ReactNode;
17
17
  declare function DrawerViewport({ className, style, ...props }: DrawerViewportProps): ReactNode;
18
18
  declare function DrawerPopup({ className, style, xstyle, ...props }: DrawerPopupProps): ReactNode;
19
- declare function DrawerTitle({ className, style, visuallyHidden, ...props }: DrawerTitleProps): ReactNode;
19
+ declare function DrawerTitle({ className, style, isVisuallyHidden, ...props }: DrawerTitleProps): ReactNode;
20
20
  declare function DrawerDescription({ className, style, ...props }: DrawerDescriptionProps): ReactNode;
21
21
  export declare const Drawer: {
22
22
  createHandle: typeof BaseDrawer.createHandle;
@@ -1,4 +1,4 @@
1
- import { n as e, t } from "./pierre-theme-CBAncKdH.js";
1
+ import { n as e, t } from "./pierre-theme-BUeJim8s.js";
2
2
  import { t as n } from "./viewer-styles-CpHqp5Qv.js";
3
3
  import * as r from "@stylexjs/stylex";
4
4
  import { useCallback as i, useState as a } from "react";
@@ -28,7 +28,7 @@ function h(e) {
28
28
  function g(e) {
29
29
  return e.patch === void 0 ? [c(h(e.before), h(e.after), {}, !0)] : l(e.patch, { throwOnError: !0 }).flatMap((e) => e.files);
30
30
  }
31
- function _({ files: t, layout: c, wrap: l, showUnchanged: u, annotations: p, maxHeight: h, label: g }) {
31
+ function _({ files: t, layout: c, shouldWrap: l, showUnchanged: u, annotations: p, maxHeight: h, label: g }) {
32
32
  let [_] = a(() => new s()), v = i((e) => {
33
33
  e === null ? _.cleanUp() : _.setup(e);
34
34
  }, [_]);