@mechane-ai/ui 0.2.2 → 0.3.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 (139) hide show
  1. package/README.md +34 -13
  2. package/dist/ai.js +315 -0
  3. package/dist/assets/stylex.css +1533 -360
  4. package/dist/cartesian-Bwt6ZnF5.js +847 -0
  5. package/dist/chart-input-Bti0gyzz.js +173 -0
  6. package/dist/charts/cartesian.js +1 -0
  7. package/dist/charts/distribution.js +1 -0
  8. package/dist/charts/graph.js +1 -0
  9. package/dist/charts/matrix.js +1 -0
  10. package/dist/charts.js +98 -93
  11. package/dist/code-BJp-g4Fw.js +172 -0
  12. package/dist/collections.js +666 -0
  13. package/dist/content/code.js +1 -0
  14. package/dist/content/diff.js +101 -0
  15. package/dist/content/link.js +1 -0
  16. package/dist/content/tree.js +77 -0
  17. package/dist/content-link-52aZVX3X.js +26 -0
  18. package/dist/content.js +367 -0
  19. package/dist/distribution-CViLvcPP.js +609 -0
  20. package/dist/graph-DAfo72ZD.js +230 -0
  21. package/dist/index.js +1 -1
  22. package/dist/layout.js +201 -160
  23. package/dist/matrix-B9dybkce.js +785 -0
  24. package/dist/packages/ai/src/approval.d.ts +29 -0
  25. package/dist/packages/ai/src/conversation.d.ts +34 -0
  26. package/dist/packages/ai/src/index.d.ts +10 -0
  27. package/dist/packages/ai/src/message.d.ts +19 -0
  28. package/dist/packages/ai/src/prompt-input.d.ts +25 -0
  29. package/dist/packages/ai/src/sources.d.ts +17 -0
  30. package/dist/packages/charts/src/cartesian/categorical.d.ts +43 -0
  31. package/dist/packages/charts/src/cartesian/index.d.ts +8 -0
  32. package/dist/packages/charts/src/cartesian/sparkline.d.ts +11 -0
  33. package/dist/packages/charts/src/cartesian/time-series-data.d.ts +54 -0
  34. package/dist/packages/charts/src/cartesian/time-series-line.d.ts +9 -0
  35. package/dist/packages/charts/src/cartesian/time-series.d.ts +29 -0
  36. package/dist/packages/charts/src/chart-frame.d.ts +34 -0
  37. package/dist/packages/charts/src/chart-input.d.ts +10 -0
  38. package/dist/packages/charts/src/chart-theme.d.ts +48 -0
  39. package/dist/packages/charts/src/distribution/distribution-input.d.ts +14 -0
  40. package/dist/packages/charts/src/distribution/distribution-plot.d.ts +135 -0
  41. package/dist/packages/charts/src/distribution/ecdf.d.ts +23 -0
  42. package/dist/packages/charts/src/distribution/histogram.d.ts +26 -0
  43. package/dist/packages/charts/src/distribution/index.d.ts +8 -0
  44. package/dist/packages/charts/src/distribution/interval-plot.d.ts +24 -0
  45. package/dist/packages/charts/src/distribution/ranked-bars.d.ts +22 -0
  46. package/dist/packages/charts/src/graph/index.d.ts +2 -0
  47. package/dist/packages/charts/src/graph/relation-graph.d.ts +45 -0
  48. package/dist/packages/charts/src/index.d.ts +13 -0
  49. package/dist/packages/charts/src/matrix/color-legend.d.ts +7 -0
  50. package/dist/packages/charts/src/matrix/heatmap-scale.d.ts +8 -0
  51. package/dist/packages/charts/src/matrix/index.d.ts +9 -0
  52. package/dist/packages/charts/src/matrix/matrix.d.ts +34 -0
  53. package/dist/packages/charts/src/matrix/scatter-plot.d.ts +37 -0
  54. package/dist/packages/charts/src/matrix/token-heatmap.d.ts +20 -0
  55. package/dist/packages/charts/src/plot-width.d.ts +5 -0
  56. package/dist/packages/collections/src/calendar.d.ts +32 -0
  57. package/dist/packages/collections/src/collection-controls.d.ts +41 -0
  58. package/dist/packages/collections/src/command.d.ts +37 -0
  59. package/dist/packages/collections/src/data-table.d.ts +49 -0
  60. package/dist/packages/collections/src/date-range-picker.d.ts +16 -0
  61. package/dist/packages/collections/src/index.d.ts +13 -0
  62. package/dist/packages/content/src/code/code-block.d.ts +22 -0
  63. package/dist/packages/content/src/code/index.d.ts +2 -0
  64. package/dist/packages/content/src/code/use-highlighted-code.d.ts +9 -0
  65. package/dist/packages/content/src/content-link.d.ts +8 -0
  66. package/dist/packages/content/src/diff/diff-source.d.ts +32 -0
  67. package/dist/packages/content/src/diff/diff-viewer.d.ts +3 -0
  68. package/dist/packages/content/src/diff/index.d.ts +2 -0
  69. package/dist/packages/content/src/diff/pierre-diff.d.ts +14 -0
  70. package/dist/packages/content/src/index.d.ts +10 -0
  71. package/dist/packages/content/src/json-viewer.d.ts +11 -0
  72. package/dist/packages/content/src/link.d.ts +2 -0
  73. package/dist/packages/content/src/log-viewer.d.ts +9 -0
  74. package/dist/packages/content/src/markdown.d.ts +7 -0
  75. package/dist/packages/content/src/pierre-theme.d.ts +36 -0
  76. package/dist/packages/content/src/stack-trace.d.ts +16 -0
  77. package/dist/packages/content/src/tree/file-tree-types.d.ts +12 -0
  78. package/dist/packages/content/src/tree/file-tree.d.ts +3 -0
  79. package/dist/packages/content/src/tree/index.d.ts +2 -0
  80. package/dist/packages/content/src/tree/pierre-tree.d.ts +3 -0
  81. package/dist/packages/core/src/alert-dialog.d.ts +18 -0
  82. package/dist/packages/core/src/combobox.d.ts +81 -0
  83. package/dist/{control-state.d.ts → packages/core/src/control-state.d.ts} +18 -2
  84. package/dist/{copy-value.d.ts → packages/core/src/copy-value.d.ts} +2 -1
  85. package/dist/packages/core/src/details-controls.d.ts +23 -0
  86. package/dist/packages/core/src/disclosure.d.ts +33 -0
  87. package/dist/packages/core/src/field-styles.d.ts +66 -0
  88. package/dist/packages/core/src/form-controls.d.ts +81 -0
  89. package/dist/{forms.d.ts → packages/core/src/forms.d.ts} +1 -1
  90. package/dist/packages/core/src/index.d.ts +32 -0
  91. package/dist/packages/core/src/menu.d.ts +51 -0
  92. package/dist/packages/core/src/navigation.d.ts +24 -0
  93. package/dist/packages/core/src/popover.d.ts +24 -0
  94. package/dist/packages/core/src/popup-styles.d.ts +84 -0
  95. package/dist/packages/core/src/preview.d.ts +17 -0
  96. package/dist/packages/core/src/progress.d.ts +10 -0
  97. package/dist/packages/core/src/selection-styles.d.ts +110 -0
  98. package/dist/packages/core/src/selection.d.ts +57 -0
  99. package/dist/packages/core/src/skeleton.d.ts +18 -0
  100. package/dist/packages/core/src/theme.d.ts +16 -0
  101. package/dist/packages/core/src/toast.d.ts +28 -0
  102. package/dist/{tokens.stylex.d.ts → packages/core/src/tokens.stylex.d.ts} +60 -0
  103. package/dist/packages/core/src/trace.d.ts +35 -0
  104. package/dist/{layout → packages/layout/src}/index.d.ts +2 -0
  105. package/dist/{layout → packages/layout/src}/page-toolbar.d.ts +1 -1
  106. package/dist/packages/layout/src/resizable.d.ts +27 -0
  107. package/dist/{layout → packages/layout/src}/sidebar.d.ts +1 -1
  108. package/dist/pierre-diff-D3m4JCu0.js +66 -0
  109. package/dist/pierre-theme-CPlfl-AA.js +96 -0
  110. package/dist/pierre-tree-BaEkz16y.js +105 -0
  111. package/dist/plot-width--OgdohB5.js +18 -0
  112. package/dist/src-E7YRJBMO.js +2821 -0
  113. package/dist/tokens.js +118 -64
  114. package/package.json +67 -10
  115. package/{src → packages/core/src}/tokens.stylex.ts +64 -0
  116. package/dist/charts/index.d.ts +0 -2
  117. package/dist/index.d.ts +0 -16
  118. package/dist/src-Czfi0YQa.js +0 -1319
  119. /package/dist/{charts → packages/charts/src}/waterfall.d.ts +0 -0
  120. /package/dist/{inspector.d.ts → packages/collections/src/inspector.d.ts} +0 -0
  121. /package/dist/{list-footer.d.ts → packages/collections/src/list-footer.d.ts} +0 -0
  122. /package/dist/{table.d.ts → packages/collections/src/table.d.ts} +0 -0
  123. /package/dist/{accessibility.d.ts → packages/core/src/accessibility.d.ts} +0 -0
  124. /package/dist/{actions.d.ts → packages/core/src/actions.d.ts} +0 -0
  125. /package/dist/{dialog.d.ts → packages/core/src/dialog.d.ts} +0 -0
  126. /package/dist/{drawer.d.ts → packages/core/src/drawer.d.ts} +0 -0
  127. /package/dist/{loading.d.ts → packages/core/src/loading.d.ts} +0 -0
  128. /package/dist/{metrics.d.ts → packages/core/src/metrics.d.ts} +0 -0
  129. /package/dist/{overlay-styles.d.ts → packages/core/src/overlay-styles.d.ts} +0 -0
  130. /package/dist/{select.d.ts → packages/core/src/select.d.ts} +0 -0
  131. /package/dist/{skip-link.d.ts → packages/core/src/skip-link.d.ts} +0 -0
  132. /package/dist/{style-composition.d.ts → packages/core/src/style-composition.d.ts} +0 -0
  133. /package/dist/{surfaces.d.ts → packages/core/src/surfaces.d.ts} +0 -0
  134. /package/dist/{tabs.d.ts → packages/core/src/tabs.d.ts} +0 -0
  135. /package/dist/{text.d.ts → packages/core/src/text.d.ts} +0 -0
  136. /package/dist/{tooltip.d.ts → packages/core/src/tooltip.d.ts} +0 -0
  137. /package/dist/{layout → packages/layout/src}/app-shell.d.ts +0 -0
  138. /package/dist/{layout → packages/layout/src}/detail-page.d.ts +0 -0
  139. /package/dist/{layout → packages/layout/src}/frame.stylex.d.ts +0 -0
@@ -0,0 +1,3 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { FileTreeProps } from './file-tree-types.ts';
3
+ export declare function PierreTree({ paths, label, selectedPaths, onSelectedPathsChange, statuses, height, }: FileTreeProps): ReactNode;
@@ -0,0 +1,18 @@
1
+ import { AlertDialog as BaseAlertDialog } from '@base-ui/react/alert-dialog';
2
+ import type { ReactNode } from 'react';
3
+ import type { OpenStateProperties } from './control-state.ts';
4
+ type AlertDialogRootProps<Payload> = Omit<BaseAlertDialog.Root.Props<Payload>, 'open' | 'defaultOpen' | 'onOpenChange'> & OpenStateProperties<NonNullable<BaseAlertDialog.Root.Props<Payload>['onOpenChange']>>;
5
+ declare function AlertDialogRoot<Payload = unknown>(props: AlertDialogRootProps<Payload>): ReactNode;
6
+ export declare const AlertDialog: {
7
+ Root: typeof AlertDialogRoot;
8
+ Trigger: BaseAlertDialog.Trigger;
9
+ Portal: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").DialogPortalProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
10
+ Backdrop: ({ className, style, ...props }: Omit<import("@base-ui/react").DialogBackdropProps, "ref"> & import("react").RefAttributes<HTMLDivElement>) => ReactNode;
11
+ Popup: ({ className, style, xstyle, ...props }: Omit<import("@base-ui/react").DialogPopupProps, "ref"> & import("react").RefAttributes<HTMLDivElement> & {
12
+ readonly xstyle?: import("./style-composition.ts").PlacementStyle;
13
+ }) => ReactNode;
14
+ Title: ({ className, style, ...props }: Omit<import("@base-ui/react").DialogTitleProps, "ref"> & import("react").RefAttributes<HTMLHeadingElement>) => ReactNode;
15
+ Description: ({ className, style, ...props }: Omit<import("@base-ui/react").DialogDescriptionProps, "ref"> & import("react").RefAttributes<HTMLParagraphElement>) => ReactNode;
16
+ Close: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").DialogCloseProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
17
+ };
18
+ export {};
@@ -0,0 +1,81 @@
1
+ import { Combobox as BaseCombobox } from '@base-ui/react/combobox';
2
+ import type { ComponentProps, ReactNode } from 'react';
3
+ import type { OpenStateProperties, ReadOnlyValueProperties, ValueStateProperties } from './control-state.ts';
4
+ import type { PlacementStyle } from './style-composition.ts';
5
+ type InputQueryProperties<Change> = {
6
+ readonly inputValue: string;
7
+ readonly defaultInputValue?: never;
8
+ readonly onInputValueChange: Change;
9
+ } | {
10
+ readonly inputValue?: never;
11
+ readonly defaultInputValue?: string;
12
+ readonly onInputValueChange?: Change;
13
+ };
14
+ type ComboboxRootProps<Value, Multiple extends boolean | undefined, Item> = Omit<BaseCombobox.Root.Props<Value, Multiple, Item>, 'value' | 'defaultValue' | 'onValueChange' | 'open' | 'defaultOpen' | 'onOpenChange' | 'inputValue' | 'defaultInputValue' | 'onInputValueChange'> & OpenStateProperties<NonNullable<BaseCombobox.Root.Props<Value, Multiple, Item>['onOpenChange']>> & InputQueryProperties<NonNullable<BaseCombobox.Root.Props<Value, Multiple, Item>['onInputValueChange']>> & (ValueStateProperties<Exclude<BaseCombobox.Root.Props<Value, Multiple, Item>['value'], undefined>, NonNullable<BaseCombobox.Root.Props<Value, Multiple, Item>['onValueChange']>> | ReadOnlyValueProperties<Exclude<BaseCombobox.Root.Props<Value, Multiple, Item>['value'], undefined>, NonNullable<BaseCombobox.Root.Props<Value, Multiple, Item>['onValueChange']>>);
15
+ type ComboboxInputGroupProps = ComponentProps<typeof BaseCombobox.InputGroup> & {
16
+ readonly xstyle?: PlacementStyle;
17
+ };
18
+ type ComboboxLabelProps = ComponentProps<typeof BaseCombobox.Label>;
19
+ type ComboboxValueProps<Value> = Omit<ComponentProps<typeof BaseCombobox.Value>, 'children'> & {
20
+ readonly children?: ReactNode | ((value: Value) => ReactNode);
21
+ };
22
+ type ComboboxInputProps = ComponentProps<typeof BaseCombobox.Input>;
23
+ type ComboboxTriggerProps = ComponentProps<typeof BaseCombobox.Trigger>;
24
+ type ComboboxClearProps = ComponentProps<typeof BaseCombobox.Clear>;
25
+ type ComboboxPositionerProps = ComponentProps<typeof BaseCombobox.Positioner> & {
26
+ readonly xstyle?: PlacementStyle;
27
+ };
28
+ type ComboboxPopupProps = ComponentProps<typeof BaseCombobox.Popup>;
29
+ type ComboboxListProps<Item> = Omit<ComponentProps<typeof BaseCombobox.List>, 'children'> & {
30
+ readonly children?: ReactNode | ((item: Item, index: number) => ReactNode);
31
+ };
32
+ type ComboboxItemProps = ComponentProps<typeof BaseCombobox.Item>;
33
+ type ComboboxIndicatorProps = ComponentProps<typeof BaseCombobox.ItemIndicator>;
34
+ type ComboboxEmptyProps = ComponentProps<typeof BaseCombobox.Empty>;
35
+ type ComboboxStatusProps = ComponentProps<typeof BaseCombobox.Status>;
36
+ type ComboboxGroupLabelProps = ComponentProps<typeof BaseCombobox.GroupLabel>;
37
+ type ComboboxChipsProps = ComponentProps<typeof BaseCombobox.Chips>;
38
+ type ComboboxChipProps = ComponentProps<typeof BaseCombobox.Chip>;
39
+ type ComboboxChipRemoveProps = ComponentProps<typeof BaseCombobox.ChipRemove>;
40
+ declare function ComboboxRoot<Value, Multiple extends boolean | undefined = false, Item = Value>(props: ComboboxRootProps<Value, Multiple, Item>): ReactNode;
41
+ declare function ComboboxInputGroup({ className, style, xstyle, ...props }: ComboboxInputGroupProps): ReactNode;
42
+ declare function ComboboxLabel({ className, style, ...props }: ComboboxLabelProps): ReactNode;
43
+ declare function ComboboxValue<Value>(props: ComboboxValueProps<Value>): ReactNode;
44
+ declare function ComboboxInput({ className, style, ...props }: ComboboxInputProps): ReactNode;
45
+ declare function ComboboxTrigger({ children, 'aria-label': label, className, style, ...props }: ComboboxTriggerProps): ReactNode;
46
+ declare function ComboboxClear({ children, 'aria-label': label, className, style, ...props }: ComboboxClearProps): ReactNode;
47
+ declare function ComboboxPositioner({ sideOffset, className, style, xstyle, ...props }: ComboboxPositionerProps): ReactNode;
48
+ declare function ComboboxPopup({ className, style, ...props }: ComboboxPopupProps): ReactNode;
49
+ declare function ComboboxList<Item>({ className, style, ...props }: ComboboxListProps<Item>): ReactNode;
50
+ declare function ComboboxItem({ className, style, ...props }: ComboboxItemProps): ReactNode;
51
+ declare function ComboboxIndicator({ children, className, style, ...props }: ComboboxIndicatorProps): ReactNode;
52
+ declare function ComboboxEmpty({ className, style, ...props }: ComboboxEmptyProps): ReactNode;
53
+ declare function ComboboxStatus({ className, style, ...props }: ComboboxStatusProps): ReactNode;
54
+ declare function ComboboxGroupLabel({ className, style, ...props }: ComboboxGroupLabelProps): ReactNode;
55
+ declare function ComboboxChips({ className, style, ...props }: ComboboxChipsProps): ReactNode;
56
+ declare function ComboboxChip({ className, style, ...props }: ComboboxChipProps): ReactNode;
57
+ declare function ComboboxChipRemove({ children, className, style, ...props }: ComboboxChipRemoveProps): ReactNode;
58
+ export declare const Combobox: {
59
+ Root: typeof ComboboxRoot;
60
+ Label: typeof ComboboxLabel;
61
+ InputGroup: typeof ComboboxInputGroup;
62
+ Input: typeof ComboboxInput;
63
+ Trigger: typeof ComboboxTrigger;
64
+ Clear: typeof ComboboxClear;
65
+ Portal: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").ComboboxPortalProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
66
+ Positioner: typeof ComboboxPositioner;
67
+ Popup: typeof ComboboxPopup;
68
+ List: typeof ComboboxList;
69
+ Item: typeof ComboboxItem;
70
+ ItemIndicator: typeof ComboboxIndicator;
71
+ Empty: typeof ComboboxEmpty;
72
+ Status: typeof ComboboxStatus;
73
+ Group: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").ComboboxGroupProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
74
+ GroupLabel: typeof ComboboxGroupLabel;
75
+ Chips: typeof ComboboxChips;
76
+ Chip: typeof ComboboxChip;
77
+ ChipRemove: typeof ComboboxChipRemove;
78
+ Value: typeof ComboboxValue;
79
+ Collection: typeof BaseCombobox.Collection;
80
+ };
81
+ export {};
@@ -9,13 +9,13 @@ export type OpenStateProperties<Change> = {
9
9
  readonly defaultOpen?: Dialog.Root.Props['defaultOpen'];
10
10
  readonly onOpenChange?: Change;
11
11
  };
12
- export type ValueStateProperties<Value, Change> = {
12
+ export type ValueStateProperties<Value, Change, DefaultValue = Value> = {
13
13
  readonly value: Value;
14
14
  readonly defaultValue?: never;
15
15
  readonly onValueChange: Change;
16
16
  } | {
17
17
  readonly value?: never;
18
- readonly defaultValue?: Value;
18
+ readonly defaultValue?: DefaultValue;
19
19
  readonly onValueChange?: Change;
20
20
  };
21
21
  export type ReadOnlyValueProperties<Value, Change> = {
@@ -24,6 +24,22 @@ export type ReadOnlyValueProperties<Value, Change> = {
24
24
  readonly onValueChange?: Change;
25
25
  readonly readOnly: true;
26
26
  };
27
+ export type CheckedStateProperties<Change> = {
28
+ readonly checked: boolean;
29
+ readonly defaultChecked?: never;
30
+ readonly onCheckedChange: Change;
31
+ readonly readOnly?: boolean;
32
+ } | {
33
+ readonly checked: boolean;
34
+ readonly defaultChecked?: never;
35
+ readonly onCheckedChange?: Change;
36
+ readonly readOnly: true;
37
+ } | {
38
+ readonly checked?: never;
39
+ readonly defaultChecked?: boolean;
40
+ readonly onCheckedChange?: Change;
41
+ readonly readOnly?: boolean;
42
+ };
27
43
  export type TextValueProperties<Value, Change, ValueChange> = {
28
44
  readonly value: Value;
29
45
  readonly defaultValue?: never;
@@ -1,7 +1,8 @@
1
1
  import { Button as BaseButton } from '@base-ui/react/button';
2
2
  import type { ComponentProps, ReactNode } from 'react';
3
+ type CopySource = string | (() => string);
3
4
  type CopyValueProps = Omit<ComponentProps<typeof BaseButton>, 'value'> & {
4
- readonly value: string;
5
+ readonly value: CopySource;
5
6
  readonly label: string;
6
7
  };
7
8
  export declare function CopyValue({ value, label, children, className, style, disabled, onClick, ...props }: CopyValueProps): ReactNode;
@@ -0,0 +1,23 @@
1
+ import type { ReactNode } from 'react';
2
+ type AvatarSize = 'sm' | 'md' | 'lg';
3
+ export type AvatarProps = {
4
+ readonly label: string;
5
+ readonly fallback: string;
6
+ readonly src?: string;
7
+ readonly size?: AvatarSize;
8
+ };
9
+ export type SettingsRowProps = {
10
+ readonly label: string;
11
+ readonly description?: string;
12
+ readonly controlId: string;
13
+ readonly children: ReactNode;
14
+ };
15
+ export type TimestampProps = {
16
+ readonly dateTime: string;
17
+ readonly label: string;
18
+ readonly title?: string;
19
+ };
20
+ export declare function Avatar({ label, fallback, src, size }: AvatarProps): ReactNode;
21
+ export declare function SettingsRow({ label, description, controlId, children }: SettingsRowProps): ReactNode;
22
+ export declare function Timestamp({ dateTime, label, title }: TimestampProps): ReactNode;
23
+ export {};
@@ -0,0 +1,33 @@
1
+ import { Accordion as BaseAccordion } from '@base-ui/react/accordion';
2
+ import { Collapsible as BaseCollapsible } from '@base-ui/react/collapsible';
3
+ import type { ComponentProps, ReactNode } from 'react';
4
+ import type { OpenStateProperties, ValueStateProperties } from './control-state.ts';
5
+ type AccordionRootProps<Value> = Omit<BaseAccordion.Root.Props<Value>, 'value' | 'defaultValue' | 'onValueChange'> & ValueStateProperties<Array<Value>, NonNullable<BaseAccordion.Root.Props<Value>['onValueChange']>>;
6
+ type AccordionItemProps = ComponentProps<typeof BaseAccordion.Item>;
7
+ type AccordionHeaderProps = ComponentProps<typeof BaseAccordion.Header>;
8
+ type AccordionTriggerProps = ComponentProps<typeof BaseAccordion.Trigger>;
9
+ type AccordionPanelProps = ComponentProps<typeof BaseAccordion.Panel>;
10
+ type CollapsibleRootProps = Omit<BaseCollapsible.Root.Props, 'open' | 'defaultOpen' | 'onOpenChange'> & OpenStateProperties<NonNullable<BaseCollapsible.Root.Props['onOpenChange']>>;
11
+ type CollapsibleTriggerProps = ComponentProps<typeof BaseCollapsible.Trigger>;
12
+ type CollapsiblePanelProps = ComponentProps<typeof BaseCollapsible.Panel>;
13
+ declare function AccordionRoot<Value = string>({ className, style, ...props }: AccordionRootProps<Value>): ReactNode;
14
+ declare function AccordionItem({ className, style, ...props }: AccordionItemProps): ReactNode;
15
+ declare function AccordionHeader({ className, style, ...props }: AccordionHeaderProps): ReactNode;
16
+ declare function AccordionTrigger({ className, style, children, ...props }: AccordionTriggerProps): ReactNode;
17
+ declare function AccordionPanel({ className, style, ...props }: AccordionPanelProps): ReactNode;
18
+ declare function CollapsibleRoot({ className, style, ...props }: CollapsibleRootProps): ReactNode;
19
+ declare function CollapsibleTrigger({ className, style, children, ...props }: CollapsibleTriggerProps): ReactNode;
20
+ declare function CollapsiblePanel({ className, style, ...props }: CollapsiblePanelProps): ReactNode;
21
+ export declare const Accordion: {
22
+ Root: typeof AccordionRoot;
23
+ Item: typeof AccordionItem;
24
+ Header: typeof AccordionHeader;
25
+ Trigger: typeof AccordionTrigger;
26
+ Panel: typeof AccordionPanel;
27
+ };
28
+ export declare const Collapsible: {
29
+ Root: typeof CollapsibleRoot;
30
+ Trigger: typeof CollapsibleTrigger;
31
+ Panel: typeof CollapsiblePanel;
32
+ };
33
+ export {};
@@ -0,0 +1,66 @@
1
+ import * as stylex from '@stylexjs/stylex';
2
+ export declare const fieldStyles: Readonly<{
3
+ readonly root: Readonly<{
4
+ readonly display: stylex.StyleXClassNameFor<"display", "flex">;
5
+ readonly flexDirection: stylex.StyleXClassNameFor<"flexDirection", "column">;
6
+ readonly gap: stylex.StyleXClassNameFor<"gap", string>;
7
+ readonly minWidth: stylex.StyleXClassNameFor<"minWidth", 0>;
8
+ readonly fontFamily: stylex.StyleXClassNameFor<"fontFamily", string>;
9
+ }>;
10
+ readonly label: Readonly<{
11
+ readonly color: stylex.StyleXClassNameFor<"color", string>;
12
+ readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
13
+ readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
14
+ }>;
15
+ readonly description: Readonly<{
16
+ readonly margin: stylex.StyleXClassNameFor<"margin", 0>;
17
+ readonly color: stylex.StyleXClassNameFor<"color", string>;
18
+ readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
19
+ readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
20
+ }>;
21
+ readonly error: Readonly<{
22
+ readonly color: stylex.StyleXClassNameFor<"color", string>;
23
+ readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
24
+ readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
25
+ }>;
26
+ readonly input: Readonly<{
27
+ readonly display: stylex.StyleXClassNameFor<"display", "block">;
28
+ readonly boxSizing: stylex.StyleXClassNameFor<"boxSizing", "border-box">;
29
+ readonly width: stylex.StyleXClassNameFor<"width", "100%">;
30
+ readonly minHeight: stylex.StyleXClassNameFor<"minHeight", string>;
31
+ readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
32
+ readonly color: stylex.StyleXClassNameFor<"color", string>;
33
+ readonly borderWidth: stylex.StyleXClassNameFor<"borderWidth", 1>;
34
+ readonly borderStyle: stylex.StyleXClassNameFor<"borderStyle", "solid">;
35
+ readonly borderColor: stylex.StyleXClassNameFor<"borderColor", string>;
36
+ readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
37
+ readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", string>;
38
+ readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", string>;
39
+ readonly fontFamily: stylex.StyleXClassNameFor<"fontFamily", string>;
40
+ readonly WebkitFontSmoothing: stylex.StyleXClassNameFor<"WebkitFontSmoothing", "antialiased">;
41
+ readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
42
+ readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
43
+ readonly ':focus-visible': stylex.StyleXClassNameFor<":focus-visible", {
44
+ readonly outlineWidth: stylex.StyleXVar<string>;
45
+ readonly outlineStyle: "solid";
46
+ readonly outlineColor: stylex.StyleXVar<string>;
47
+ readonly outlineOffset: 1;
48
+ }>;
49
+ readonly ':is([data-invalid], [aria-invalid="true"])': stylex.StyleXClassNameFor<":is([data-invalid], [aria-invalid=\"true\"])", {
50
+ readonly borderColor: stylex.StyleXVar<string>;
51
+ }>;
52
+ readonly ':disabled': stylex.StyleXClassNameFor<":disabled", {
53
+ readonly color: stylex.StyleXVar<string>;
54
+ readonly backgroundColor: stylex.StyleXVar<string>;
55
+ readonly cursor: "not-allowed";
56
+ }>;
57
+ readonly '::placeholder': stylex.StyleXClassNameFor<"::placeholder", {
58
+ readonly color: stylex.StyleXVar<string>;
59
+ }>;
60
+ }>;
61
+ readonly textarea: Readonly<{
62
+ readonly minHeight: stylex.StyleXClassNameFor<"minHeight", 144>;
63
+ readonly resize: stylex.StyleXClassNameFor<"resize", "vertical">;
64
+ readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
65
+ }>;
66
+ }>;
@@ -0,0 +1,81 @@
1
+ import { Fieldset as BaseFieldset } from '@base-ui/react/fieldset';
2
+ import { Input as BaseInput } from '@base-ui/react/input';
3
+ import { NumberField as BaseNumberField } from '@base-ui/react/number-field';
4
+ import { Slider as BaseSlider } from '@base-ui/react/slider';
5
+ import type { ComponentProps, ReactNode } from 'react';
6
+ import type { ReadOnlyValueProperties, ValueStateProperties } from './control-state.ts';
7
+ import type { InputProps } from './forms.tsx';
8
+ import type { PlacementStyle } from './style-composition.ts';
9
+ type FieldsetRootProps = ComponentProps<typeof BaseFieldset.Root> & {
10
+ readonly xstyle?: PlacementStyle;
11
+ };
12
+ type FieldsetLegendProps = ComponentProps<typeof BaseFieldset.Legend>;
13
+ type InputGroupRootProps = ComponentProps<'div'> & {
14
+ readonly xstyle?: PlacementStyle;
15
+ };
16
+ type InputGroupAddonProps = ComponentProps<'span'>;
17
+ type NumberFieldRootProps = Omit<ComponentProps<typeof BaseNumberField.Root>, 'value' | 'defaultValue' | 'onValueChange' | 'locale'> & (ValueStateProperties<number | null, NonNullable<BaseNumberField.Root.Props['onValueChange']>, number> | ReadOnlyValueProperties<number | null, NonNullable<BaseNumberField.Root.Props['onValueChange']>>) & {
18
+ readonly locale: string;
19
+ readonly xstyle?: PlacementStyle;
20
+ };
21
+ type NumberFieldGroupProps = ComponentProps<typeof BaseNumberField.Group>;
22
+ type NumberFieldInputProps = ComponentProps<typeof BaseNumberField.Input>;
23
+ type NumberFieldIncrementProps = ComponentProps<typeof BaseNumberField.Increment>;
24
+ type NumberFieldDecrementProps = ComponentProps<typeof BaseNumberField.Decrement>;
25
+ type SliderRootProps<Value extends number | ReadonlyArray<number>> = Omit<BaseSlider.Root.Props<Value>, 'value' | 'defaultValue' | 'onValueChange' | 'locale'> & ValueStateProperties<Value, NonNullable<BaseSlider.Root.Props<Value>['onValueChange']>> & {
26
+ readonly locale: string;
27
+ readonly xstyle?: PlacementStyle;
28
+ };
29
+ type SliderControlProps = ComponentProps<typeof BaseSlider.Control>;
30
+ type SliderTrackProps = ComponentProps<typeof BaseSlider.Track>;
31
+ type SliderIndicatorProps = ComponentProps<typeof BaseSlider.Indicator>;
32
+ type SliderThumbProps = ComponentProps<typeof BaseSlider.Thumb>;
33
+ type SliderLabelProps = ComponentProps<typeof BaseSlider.Label>;
34
+ type SliderValueProps = ComponentProps<typeof BaseSlider.Value>;
35
+ type FilePickerProps = Omit<ComponentProps<typeof BaseInput>, 'type' | 'value' | 'defaultValue' | 'onValueChange'> & {
36
+ readonly xstyle?: PlacementStyle;
37
+ };
38
+ declare function FieldsetRoot({ className, style, xstyle, ...props }: FieldsetRootProps): ReactNode;
39
+ declare function FieldsetLegend({ className, style, ...props }: FieldsetLegendProps): ReactNode;
40
+ declare function InputGroupRoot({ xstyle, ...props }: InputGroupRootProps): ReactNode;
41
+ declare function InputGroupAddon(props: InputGroupAddonProps): ReactNode;
42
+ declare function InputGroupInput({ className, style, xstyle, ...props }: InputProps): ReactNode;
43
+ declare function NumberFieldRoot({ className, style, xstyle, ...props }: NumberFieldRootProps): ReactNode;
44
+ declare function NumberFieldGroup({ className, style, ...props }: NumberFieldGroupProps): ReactNode;
45
+ declare function NumberFieldInput({ className, style, ...props }: NumberFieldInputProps): ReactNode;
46
+ declare function NumberFieldIncrement({ children, 'aria-label': label, className, style, ...props }: NumberFieldIncrementProps): ReactNode;
47
+ declare function NumberFieldDecrement({ children, 'aria-label': label, className, style, ...props }: NumberFieldDecrementProps): ReactNode;
48
+ declare function SliderRoot<Value extends number | ReadonlyArray<number>>({ className, style, xstyle, ...props }: SliderRootProps<Value>): ReactNode;
49
+ declare function SliderControl({ className, style, ...props }: SliderControlProps): ReactNode;
50
+ declare function SliderTrack({ className, style, ...props }: SliderTrackProps): ReactNode;
51
+ declare function SliderIndicator({ className, style, ...props }: SliderIndicatorProps): ReactNode;
52
+ declare function SliderThumb({ className, style, ...props }: SliderThumbProps): ReactNode;
53
+ declare function SliderLabel({ className, style, ...props }: SliderLabelProps): ReactNode;
54
+ declare function SliderValue({ className, style, ...props }: SliderValueProps): ReactNode;
55
+ export declare function FilePicker({ className, style, xstyle, ...props }: FilePickerProps): ReactNode;
56
+ export declare const Fieldset: {
57
+ Root: typeof FieldsetRoot;
58
+ Legend: typeof FieldsetLegend;
59
+ };
60
+ export declare const InputGroup: {
61
+ Root: typeof InputGroupRoot;
62
+ Addon: typeof InputGroupAddon;
63
+ Input: typeof InputGroupInput;
64
+ };
65
+ export declare const NumberField: {
66
+ Root: typeof NumberFieldRoot;
67
+ Group: typeof NumberFieldGroup;
68
+ Input: typeof NumberFieldInput;
69
+ Increment: typeof NumberFieldIncrement;
70
+ Decrement: typeof NumberFieldDecrement;
71
+ };
72
+ export declare const Slider: {
73
+ Root: typeof SliderRoot;
74
+ Label: typeof SliderLabel;
75
+ Value: typeof SliderValue;
76
+ Control: typeof SliderControl;
77
+ Track: typeof SliderTrack;
78
+ Indicator: typeof SliderIndicator;
79
+ Thumb: typeof SliderThumb;
80
+ };
81
+ export {};
@@ -10,7 +10,7 @@ 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
- 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'> & TextValueProperties<NonNullable<BaseInputProps['value']>, NonNullable<BaseInputProps['onChange']>, NonNullable<BaseInputProps['onValueChange']>> & {
14
14
  readonly xstyle?: PlacementStyle;
15
15
  };
16
16
  type NativeTextareaProps = ComponentProps<'textarea'>;
@@ -0,0 +1,32 @@
1
+ export { Button, IconButton, TextButton, TextLink } from './actions.tsx';
2
+ export { Badge, Heading, Identifier, Muted, Prose, Status, Subheading, Text } from './text.tsx';
3
+ export { Field, Input, Textarea } from './forms.tsx';
4
+ export { Select } from './select.tsx';
5
+ export { Dialog } from './dialog.tsx';
6
+ export { Drawer } from './drawer.tsx';
7
+ export { Tooltip } from './tooltip.tsx';
8
+ export { Columns, Divider, EmptyState, Notice, Panel, Row, Stack } from './surfaces.tsx';
9
+ export { Metric, MetricGrid } from './metrics.tsx';
10
+ export { CopyValue } from './copy-value.tsx';
11
+ export { Loading } from './loading.tsx';
12
+ export { Tabs } from './tabs.tsx';
13
+ export { SkipLink } from './skip-link.tsx';
14
+ export { Checkbox, RadioGroup, Switch, ToggleGroup } from './selection.tsx';
15
+ export { Combobox } from './combobox.tsx';
16
+ export { Fieldset, InputGroup, NumberField, Slider, FilePicker } from './form-controls.tsx';
17
+ export { themeProps } from './theme.ts';
18
+ export { Menu } from './menu.tsx';
19
+ export { Popover } from './popover.tsx';
20
+ export { Preview } from './preview.tsx';
21
+ export { AlertDialog } from './alert-dialog.tsx';
22
+ export { Toast } from './toast.tsx';
23
+ export { Accordion, Collapsible } from './disclosure.tsx';
24
+ export { Breadcrumb, Kbd } from './navigation.tsx';
25
+ export { Skeleton, SkeletonText, Spinner } from './skeleton.tsx';
26
+ export type { SkeletonProps, SkeletonTextProps, SpinnerProps } from './skeleton.tsx';
27
+ export { Progress, Meter } from './progress.tsx';
28
+ export type { ProgressProps, MeterProps } from './progress.tsx';
29
+ export { Avatar, SettingsRow, Timestamp } from './details-controls.tsx';
30
+ export type { AvatarProps, SettingsRowProps, TimestampProps } from './details-controls.tsx';
31
+ export { Trace } from './trace.tsx';
32
+ export type { TraceStatus, TraceRootProps, TraceGroupProps, TraceItemProps } from './trace.tsx';
@@ -0,0 +1,51 @@
1
+ import { Menu as BaseMenu } from '@base-ui/react/menu';
2
+ import type { ComponentProps, ReactNode } from 'react';
3
+ import type { OpenStateProperties } from './control-state.ts';
4
+ type MenuRootProps<Payload> = Omit<BaseMenu.Root.Props<Payload>, 'open' | 'defaultOpen' | 'onOpenChange'> & OpenStateProperties<NonNullable<BaseMenu.Root.Props<Payload>['onOpenChange']>>;
5
+ type MenuPositionerProps = ComponentProps<typeof BaseMenu.Positioner>;
6
+ type MenuPopupProps = ComponentProps<typeof BaseMenu.Popup>;
7
+ type MenuItemProps = ComponentProps<typeof BaseMenu.Item>;
8
+ type MenuLinkItemProps = ComponentProps<typeof BaseMenu.LinkItem>;
9
+ type MenuGroupLabelProps = ComponentProps<typeof BaseMenu.GroupLabel>;
10
+ type MenuSeparatorProps = ComponentProps<typeof BaseMenu.Separator>;
11
+ type MenuCheckboxItemProps = Omit<ComponentProps<typeof BaseMenu.CheckboxItem>, 'checked' | 'defaultChecked' | 'onCheckedChange'> & {
12
+ readonly checked: boolean;
13
+ readonly onCheckedChange: NonNullable<BaseMenu.CheckboxItem.Props['onCheckedChange']>;
14
+ };
15
+ type MenuRadioGroupProps = Omit<ComponentProps<typeof BaseMenu.RadioGroup>, 'value' | 'defaultValue' | 'onValueChange'> & {
16
+ readonly value: string;
17
+ readonly onValueChange: NonNullable<BaseMenu.RadioGroup.Props['onValueChange']>;
18
+ };
19
+ type MenuRadioItemProps = ComponentProps<typeof BaseMenu.RadioItem>;
20
+ type MenuSubmenuTriggerProps = ComponentProps<typeof BaseMenu.SubmenuTrigger>;
21
+ type MenuSubmenuRootProps = Omit<BaseMenu.SubmenuRoot.Props, 'open' | 'defaultOpen' | 'onOpenChange'> & OpenStateProperties<NonNullable<BaseMenu.SubmenuRoot.Props['onOpenChange']>>;
22
+ declare function MenuRoot<Payload = unknown>(props: MenuRootProps<Payload>): ReactNode;
23
+ declare function MenuSubmenuRoot(props: MenuSubmenuRootProps): ReactNode;
24
+ declare function MenuPositioner({ className, style, sideOffset, ...props }: MenuPositionerProps): ReactNode;
25
+ declare function MenuPopup({ className, style, ...props }: MenuPopupProps): ReactNode;
26
+ declare function MenuItem({ className, style, ...props }: MenuItemProps): ReactNode;
27
+ declare function MenuLinkItem({ className, style, ...props }: MenuLinkItemProps): ReactNode;
28
+ declare function MenuGroupLabel({ className, style, ...props }: MenuGroupLabelProps): ReactNode;
29
+ declare function MenuSeparator({ className, style, ...props }: MenuSeparatorProps): ReactNode;
30
+ declare function MenuCheckboxItem({ className, style, children, ...props }: MenuCheckboxItemProps): ReactNode;
31
+ declare function MenuRadioGroup(props: MenuRadioGroupProps): ReactNode;
32
+ declare function MenuRadioItem({ className, style, children, ...props }: MenuRadioItemProps): ReactNode;
33
+ declare function MenuSubmenuTrigger({ className, style, ...props }: MenuSubmenuTriggerProps): ReactNode;
34
+ export declare const Menu: {
35
+ Root: typeof MenuRoot;
36
+ Trigger: BaseMenu.Trigger;
37
+ Portal: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").MenuPortalProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
38
+ Positioner: typeof MenuPositioner;
39
+ Popup: typeof MenuPopup;
40
+ Item: typeof MenuItem;
41
+ LinkItem: typeof MenuLinkItem;
42
+ Group: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").MenuGroupProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
43
+ GroupLabel: typeof MenuGroupLabel;
44
+ Separator: typeof MenuSeparator;
45
+ CheckboxItem: typeof MenuCheckboxItem;
46
+ RadioGroup: typeof MenuRadioGroup;
47
+ RadioItem: typeof MenuRadioItem;
48
+ SubmenuRoot: typeof MenuSubmenuRoot;
49
+ SubmenuTrigger: typeof MenuSubmenuTrigger;
50
+ };
51
+ export {};
@@ -0,0 +1,24 @@
1
+ import type { ComponentProps, ReactNode } from 'react';
2
+ type BreadcrumbRootProps = Omit<ComponentProps<'nav'>, 'aria-label'> & {
3
+ readonly 'aria-label': string;
4
+ };
5
+ type BreadcrumbListProps = ComponentProps<'ol'>;
6
+ type BreadcrumbItemProps = ComponentProps<'li'>;
7
+ type BreadcrumbCurrentProps = ComponentProps<'span'>;
8
+ type KbdProps = Omit<ComponentProps<'kbd'>, 'children'> & {
9
+ readonly children: string;
10
+ };
11
+ declare function BreadcrumbRoot(props: BreadcrumbRootProps): ReactNode;
12
+ declare function BreadcrumbList(props: BreadcrumbListProps): ReactNode;
13
+ declare function BreadcrumbItem(props: BreadcrumbItemProps): ReactNode;
14
+ declare function BreadcrumbCurrent(props: BreadcrumbCurrentProps): ReactNode;
15
+ declare function BreadcrumbSeparator(): ReactNode;
16
+ export declare function Kbd(props: KbdProps): ReactNode;
17
+ export declare const Breadcrumb: {
18
+ Root: typeof BreadcrumbRoot;
19
+ List: typeof BreadcrumbList;
20
+ Item: typeof BreadcrumbItem;
21
+ Current: typeof BreadcrumbCurrent;
22
+ Separator: typeof BreadcrumbSeparator;
23
+ };
24
+ export {};
@@ -0,0 +1,24 @@
1
+ import { Popover as BasePopover } from '@base-ui/react/popover';
2
+ import type { ComponentProps, ReactNode } from 'react';
3
+ import type { OpenStateProperties } from './control-state.ts';
4
+ type PopoverRootProps<Payload> = Omit<BasePopover.Root.Props<Payload>, 'open' | 'defaultOpen' | 'onOpenChange'> & OpenStateProperties<NonNullable<BasePopover.Root.Props<Payload>['onOpenChange']>>;
5
+ type PopoverPositionerProps = ComponentProps<typeof BasePopover.Positioner>;
6
+ type PopoverPopupProps = ComponentProps<typeof BasePopover.Popup>;
7
+ type PopoverTitleProps = ComponentProps<typeof BasePopover.Title>;
8
+ type PopoverDescriptionProps = ComponentProps<typeof BasePopover.Description>;
9
+ declare function PopoverRoot<Payload = unknown>(props: PopoverRootProps<Payload>): ReactNode;
10
+ declare function PopoverPositioner({ className, style, sideOffset, ...props }: PopoverPositionerProps): ReactNode;
11
+ declare function PopoverPopup({ className, style, ...props }: PopoverPopupProps): ReactNode;
12
+ declare function PopoverTitle({ className, style, ...props }: PopoverTitleProps): ReactNode;
13
+ declare function PopoverDescription({ className, style, ...props }: PopoverDescriptionProps): ReactNode;
14
+ export declare const Popover: {
15
+ Root: typeof PopoverRoot;
16
+ Trigger: BasePopover.Trigger;
17
+ Portal: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").PopoverPortalProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
18
+ Positioner: typeof PopoverPositioner;
19
+ Popup: typeof PopoverPopup;
20
+ Title: typeof PopoverTitle;
21
+ Description: typeof PopoverDescription;
22
+ Close: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").PopoverCloseProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
23
+ };
24
+ export {};
@@ -0,0 +1,84 @@
1
+ import * as stylex from '@stylexjs/stylex';
2
+ export declare const popupStyles: Readonly<{
3
+ readonly positioner: Readonly<{
4
+ readonly zIndex: stylex.StyleXClassNameFor<"zIndex", string>;
5
+ readonly outlineWidth: stylex.StyleXClassNameFor<"outlineWidth", 0>;
6
+ }>;
7
+ readonly surface: Readonly<{
8
+ readonly boxSizing: stylex.StyleXClassNameFor<"boxSizing", "border-box">;
9
+ readonly maxWidth: stylex.StyleXClassNameFor<"maxWidth", "min(360px, calc(100vw - 24px))">;
10
+ readonly maxHeight: stylex.StyleXClassNameFor<"maxHeight", "var(--available-height)">;
11
+ readonly overflowY: stylex.StyleXClassNameFor<"overflowY", "auto">;
12
+ readonly overscrollBehavior: stylex.StyleXClassNameFor<"overscrollBehavior", "contain">;
13
+ readonly borderWidth: stylex.StyleXClassNameFor<"borderWidth", 1>;
14
+ readonly borderStyle: stylex.StyleXClassNameFor<"borderStyle", "solid">;
15
+ readonly borderColor: stylex.StyleXClassNameFor<"borderColor", string>;
16
+ readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
17
+ readonly boxShadow: stylex.StyleXClassNameFor<"boxShadow", string>;
18
+ readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
19
+ readonly color: stylex.StyleXClassNameFor<"color", string>;
20
+ readonly fontFamily: stylex.StyleXClassNameFor<"fontFamily", string>;
21
+ readonly WebkitFontSmoothing: stylex.StyleXClassNameFor<"WebkitFontSmoothing", "antialiased">;
22
+ readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
23
+ readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
24
+ readonly outlineWidth: stylex.StyleXClassNameFor<"outlineWidth", 0>;
25
+ }>;
26
+ readonly content: Readonly<{
27
+ readonly display: stylex.StyleXClassNameFor<"display", "flex">;
28
+ readonly flexDirection: stylex.StyleXClassNameFor<"flexDirection", "column">;
29
+ readonly gap: stylex.StyleXClassNameFor<"gap", string>;
30
+ readonly padding: stylex.StyleXClassNameFor<"padding", string>;
31
+ }>;
32
+ readonly menu: Readonly<{
33
+ readonly minWidth: stylex.StyleXClassNameFor<"minWidth", 192>;
34
+ readonly padding: stylex.StyleXClassNameFor<"padding", string>;
35
+ }>;
36
+ readonly item: Readonly<{
37
+ readonly display: stylex.StyleXClassNameFor<"display", "flex">;
38
+ readonly boxSizing: stylex.StyleXClassNameFor<"boxSizing", "border-box">;
39
+ readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
40
+ readonly gap: stylex.StyleXClassNameFor<"gap", string>;
41
+ readonly minHeight: stylex.StyleXClassNameFor<"minHeight", string>;
42
+ readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", string>;
43
+ readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", string>;
44
+ readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
45
+ readonly cursor: stylex.StyleXClassNameFor<"cursor", "pointer">;
46
+ readonly textDecorationLine: stylex.StyleXClassNameFor<"textDecorationLine", "none">;
47
+ readonly color: stylex.StyleXClassNameFor<"color", string>;
48
+ readonly outlineWidth: stylex.StyleXClassNameFor<"outlineWidth", 0>;
49
+ readonly ':is([data-highlighted])': stylex.StyleXClassNameFor<":is([data-highlighted])", {
50
+ readonly backgroundColor: stylex.StyleXVar<string>;
51
+ }>;
52
+ readonly ':is([data-disabled])': stylex.StyleXClassNameFor<":is([data-disabled])", {
53
+ readonly opacity: stylex.StyleXVar<string>;
54
+ readonly cursor: "default";
55
+ }>;
56
+ readonly ':focus-visible': stylex.StyleXClassNameFor<":focus-visible", {
57
+ readonly outlineWidth: stylex.StyleXVar<string>;
58
+ readonly outlineStyle: "solid";
59
+ readonly outlineColor: stylex.StyleXVar<string>;
60
+ readonly outlineOffset: "-2px";
61
+ }>;
62
+ }>;
63
+ readonly label: Readonly<{
64
+ readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", string>;
65
+ readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", string>;
66
+ readonly color: stylex.StyleXClassNameFor<"color", string>;
67
+ readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
68
+ readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
69
+ }>;
70
+ readonly separator: Readonly<{
71
+ readonly height: stylex.StyleXClassNameFor<"height", 1>;
72
+ readonly borderWidth: stylex.StyleXClassNameFor<"borderWidth", 0>;
73
+ readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
74
+ readonly marginBlock: stylex.StyleXClassNameFor<"marginBlock", string>;
75
+ }>;
76
+ readonly indicator: Readonly<{
77
+ readonly width: stylex.StyleXClassNameFor<"width", string>;
78
+ readonly height: stylex.StyleXClassNameFor<"height", string>;
79
+ readonly display: stylex.StyleXClassNameFor<"display", "inline-flex">;
80
+ readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
81
+ readonly justifyContent: stylex.StyleXClassNameFor<"justifyContent", "center">;
82
+ readonly flexShrink: stylex.StyleXClassNameFor<"flexShrink", 0>;
83
+ }>;
84
+ }>;
@@ -0,0 +1,17 @@
1
+ import { PreviewCard as BasePreview } from '@base-ui/react/preview-card';
2
+ import type { ComponentProps, ReactNode } from 'react';
3
+ import type { OpenStateProperties } from './control-state.ts';
4
+ type PreviewRootProps<Payload> = Omit<BasePreview.Root.Props<Payload>, 'open' | 'defaultOpen' | 'onOpenChange'> & OpenStateProperties<NonNullable<BasePreview.Root.Props<Payload>['onOpenChange']>>;
5
+ type PreviewPositionerProps = ComponentProps<typeof BasePreview.Positioner>;
6
+ type PreviewPopupProps = ComponentProps<typeof BasePreview.Popup>;
7
+ declare function PreviewRoot<Payload = unknown>(props: PreviewRootProps<Payload>): ReactNode;
8
+ declare function PreviewPositioner({ className, style, sideOffset, ...props }: PreviewPositionerProps): ReactNode;
9
+ declare function PreviewPopup({ className, style, ...props }: PreviewPopupProps): ReactNode;
10
+ export declare const Preview: {
11
+ Root: typeof PreviewRoot;
12
+ Trigger: BasePreview.Trigger;
13
+ Portal: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").PreviewCardPortalProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
14
+ Positioner: typeof PreviewPositioner;
15
+ Popup: typeof PreviewPopup;
16
+ };
17
+ export {};
@@ -0,0 +1,10 @@
1
+ import type { ReactNode } from 'react';
2
+ export type ProgressProps = {
3
+ readonly label: string;
4
+ readonly value: number | null;
5
+ readonly max: number;
6
+ readonly valueLabel: string;
7
+ };
8
+ export type MeterProps = ProgressProps;
9
+ export declare function Progress({ label, value, max, valueLabel }: ProgressProps): ReactNode;
10
+ export declare function Meter({ label, value, max, valueLabel }: MeterProps): ReactNode;