@motech-development/breeze-ui 2.3.1 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Cabin-LICENSE.txt +93 -0
- package/dist/assets/cabin-latin-wght-normal-DZW_uTKI.woff2 +0 -0
- package/dist/formatting/FormattedDateTime/FormattedDateTime.d.ts +17 -0
- package/dist/formatting/FormattedDateTime/FormattedDateTime.d.ts.map +1 -0
- package/dist/formatting/FormattedList/FormattedList.d.ts +17 -0
- package/dist/formatting/FormattedList/FormattedList.d.ts.map +1 -0
- package/dist/formatting/FormattedNumber/FormattedNumber.d.ts +17 -0
- package/dist/formatting/FormattedNumber/FormattedNumber.d.ts.map +1 -0
- package/dist/formatting/RelativeTime/RelativeTime.d.ts +21 -0
- package/dist/formatting/RelativeTime/RelativeTime.d.ts.map +1 -0
- package/dist/icons/index.d.ts +77 -0
- package/dist/icons/index.d.ts.map +1 -0
- package/dist/icons.js +27 -0
- package/dist/index.d.ts +100 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5759 -0
- package/dist/internal/collections/VirtualizedCollection.d.ts +15 -0
- package/dist/internal/collections/VirtualizedCollection.d.ts.map +1 -0
- package/dist/internal/collections/useCollectionEmptyContent.d.ts +3 -0
- package/dist/internal/collections/useCollectionEmptyContent.d.ts.map +1 -0
- package/dist/internal/collections/useLoadMoreHandler.d.ts +7 -0
- package/dist/internal/collections/useLoadMoreHandler.d.ts.map +1 -0
- package/dist/internal/date/conversion.d.ts +16 -0
- package/dist/internal/date/conversion.d.ts.map +1 -0
- package/dist/internal/files/validation.d.ts +17 -0
- package/dist/internal/files/validation.d.ts.map +1 -0
- package/dist/internal/hooks/useForwardedRef.d.ts +3 -0
- package/dist/internal/hooks/useForwardedRef.d.ts.map +1 -0
- package/dist/internal/react-aria/DisclosureParts.d.ts +27 -0
- package/dist/internal/react-aria/DisclosureParts.d.ts.map +1 -0
- package/dist/internal/react-aria/OverlayParts.d.ts +55 -0
- package/dist/internal/react-aria/OverlayParts.d.ts.map +1 -0
- package/dist/internal/react-aria/renderNativeButton.d.ts +6 -0
- package/dist/internal/react-aria/renderNativeButton.d.ts.map +1 -0
- package/dist/internal/styling/actions.d.ts +72 -0
- package/dist/internal/styling/actions.d.ts.map +1 -0
- package/dist/internal/styling/formControls.d.ts +23 -0
- package/dist/internal/styling/formControls.d.ts.map +1 -0
- package/dist/internal/styling/layout.d.ts +108 -0
- package/dist/internal/styling/layout.d.ts.map +1 -0
- package/dist/internal/styling/responsive.d.ts +22 -0
- package/dist/internal/styling/responsive.d.ts.map +1 -0
- package/dist/internal/styling/visual.d.ts +7 -0
- package/dist/internal/styling/visual.d.ts.map +1 -0
- package/dist/internal/types/collection.d.ts +60 -0
- package/dist/internal/types/collection.d.ts.map +1 -0
- package/dist/internal/types/date.d.ts +8 -0
- package/dist/internal/types/date.d.ts.map +1 -0
- package/dist/internal/types/file.d.ts +21 -0
- package/dist/internal/types/file.d.ts.map +1 -0
- package/dist/internal/types/native.d.ts +8 -0
- package/dist/internal/types/native.d.ts.map +1 -0
- package/dist/patterns/ApplicationShell/ApplicationShell.d.ts +32 -0
- package/dist/patterns/ApplicationShell/ApplicationShell.d.ts.map +1 -0
- package/dist/patterns/ButtonGroup/ButtonGroup.d.ts +20 -0
- package/dist/patterns/ButtonGroup/ButtonGroup.d.ts.map +1 -0
- package/dist/patterns/ConfirmationDialog/ConfirmationDialog.d.ts +58 -0
- package/dist/patterns/ConfirmationDialog/ConfirmationDialog.d.ts.map +1 -0
- package/dist/patterns/ContextSwitcher/ContextSwitcher.d.ts +42 -0
- package/dist/patterns/ContextSwitcher/ContextSwitcher.d.ts.map +1 -0
- package/dist/patterns/FileAttachment/FileAttachment.d.ts +17 -0
- package/dist/patterns/FileAttachment/FileAttachment.d.ts.map +1 -0
- package/dist/patterns/FileUpload/FileUpload.d.ts +35 -0
- package/dist/patterns/FileUpload/FileUpload.d.ts.map +1 -0
- package/dist/patterns/FormActions/FormActions.d.ts +25 -0
- package/dist/patterns/FormActions/FormActions.d.ts.map +1 -0
- package/dist/patterns/FormSection/FormSection.d.ts +31 -0
- package/dist/patterns/FormSection/FormSection.d.ts.map +1 -0
- package/dist/patterns/MetricCard/MetricCard.d.ts +28 -0
- package/dist/patterns/MetricCard/MetricCard.d.ts.map +1 -0
- package/dist/patterns/NavigationSection/NavigationSection.d.ts +17 -0
- package/dist/patterns/NavigationSection/NavigationSection.d.ts.map +1 -0
- package/dist/patterns/PageHeader/PageHeader.d.ts +21 -0
- package/dist/patterns/PageHeader/PageHeader.d.ts.map +1 -0
- package/dist/patterns/Pagination/Pagination.d.ts +23 -0
- package/dist/patterns/Pagination/Pagination.d.ts.map +1 -0
- package/dist/patterns/PasswordField/PasswordField.d.ts +58 -0
- package/dist/patterns/PasswordField/PasswordField.d.ts.map +1 -0
- package/dist/patterns/SectionHeader/SectionHeader.d.ts +21 -0
- package/dist/patterns/SectionHeader/SectionHeader.d.ts.map +1 -0
- package/dist/patterns/SegmentedControl/SegmentedControl.d.ts +56 -0
- package/dist/patterns/SegmentedControl/SegmentedControl.d.ts.map +1 -0
- package/dist/patterns/StatePanel/StatePanel.d.ts +25 -0
- package/dist/patterns/StatePanel/StatePanel.d.ts.map +1 -0
- package/dist/patterns/UserMenu/UserMenu.d.ts +45 -0
- package/dist/patterns/UserMenu/UserMenu.d.ts.map +1 -0
- package/dist/primitives/Accordion/Accordion.d.ts +76 -0
- package/dist/primitives/Accordion/Accordion.d.ts.map +1 -0
- package/dist/primitives/Alert/Alert.d.ts +23 -0
- package/dist/primitives/Alert/Alert.d.ts.map +1 -0
- package/dist/primitives/AlertDialog/AlertDialog.d.ts +63 -0
- package/dist/primitives/AlertDialog/AlertDialog.d.ts.map +1 -0
- package/dist/primitives/Avatar/Avatar.d.ts +308 -0
- package/dist/primitives/Avatar/Avatar.d.ts.map +1 -0
- package/dist/primitives/Badge/Badge.d.ts +299 -0
- package/dist/primitives/Badge/Badge.d.ts.map +1 -0
- package/dist/primitives/Breadcrumbs/Breadcrumbs.d.ts +40 -0
- package/dist/primitives/Breadcrumbs/Breadcrumbs.d.ts.map +1 -0
- package/dist/primitives/Button/Button.d.ts +36 -0
- package/dist/primitives/Button/Button.d.ts.map +1 -0
- package/dist/primitives/Calendar/Calendar.d.ts +61 -0
- package/dist/primitives/Calendar/Calendar.d.ts.map +1 -0
- package/dist/primitives/Card/Card.d.ts +63 -0
- package/dist/primitives/Card/Card.d.ts.map +1 -0
- package/dist/primitives/Center/Center.d.ts +295 -0
- package/dist/primitives/Center/Center.d.ts.map +1 -0
- package/dist/primitives/Checkbox/Checkbox.d.ts +106 -0
- package/dist/primitives/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/primitives/CheckboxGroup/CheckboxGroup.d.ts +76 -0
- package/dist/primitives/CheckboxGroup/CheckboxGroup.d.ts.map +1 -0
- package/dist/primitives/ComboBox/ComboBox.d.ts +174 -0
- package/dist/primitives/ComboBox/ComboBox.d.ts.map +1 -0
- package/dist/primitives/Container/Container.d.ts +296 -0
- package/dist/primitives/Container/Container.d.ts.map +1 -0
- package/dist/primitives/DateField/DateField.d.ts +87 -0
- package/dist/primitives/DateField/DateField.d.ts.map +1 -0
- package/dist/primitives/DatePicker/DatePicker.d.ts +74 -0
- package/dist/primitives/DatePicker/DatePicker.d.ts.map +1 -0
- package/dist/primitives/DateRangePicker/DateRangePicker.d.ts +116 -0
- package/dist/primitives/DateRangePicker/DateRangePicker.d.ts.map +1 -0
- package/dist/primitives/DateTimePicker/DateTimePicker.d.ts +93 -0
- package/dist/primitives/DateTimePicker/DateTimePicker.d.ts.map +1 -0
- package/dist/primitives/DescriptionList/DescriptionList.d.ts +45 -0
- package/dist/primitives/DescriptionList/DescriptionList.d.ts.map +1 -0
- package/dist/primitives/Dialog/Dialog.d.ts +56 -0
- package/dist/primitives/Dialog/Dialog.d.ts.map +1 -0
- package/dist/primitives/Disclosure/Disclosure.d.ts +59 -0
- package/dist/primitives/Disclosure/Disclosure.d.ts.map +1 -0
- package/dist/primitives/Drawer/Drawer.d.ts +87 -0
- package/dist/primitives/Drawer/Drawer.d.ts.map +1 -0
- package/dist/primitives/DropZone/DropZone.d.ts +85 -0
- package/dist/primitives/DropZone/DropZone.d.ts.map +1 -0
- package/dist/primitives/Fieldset/Fieldset.d.ts +57 -0
- package/dist/primitives/Fieldset/Fieldset.d.ts.map +1 -0
- package/dist/primitives/FileTrigger/FileTrigger.d.ts +72 -0
- package/dist/primitives/FileTrigger/FileTrigger.d.ts.map +1 -0
- package/dist/primitives/Grid/Grid.d.ts +307 -0
- package/dist/primitives/Grid/Grid.d.ts.map +1 -0
- package/dist/primitives/GridList/GridList.d.ts +131 -0
- package/dist/primitives/GridList/GridList.d.ts.map +1 -0
- package/dist/primitives/IconButton/IconButton.d.ts +37 -0
- package/dist/primitives/IconButton/IconButton.d.ts.map +1 -0
- package/dist/primitives/IconTile/IconTile.d.ts +312 -0
- package/dist/primitives/IconTile/IconTile.d.ts.map +1 -0
- package/dist/primitives/Inline/Inline.d.ts +302 -0
- package/dist/primitives/Inline/Inline.d.ts.map +1 -0
- package/dist/primitives/InputGroup/InputGroup.d.ts +36 -0
- package/dist/primitives/InputGroup/InputGroup.d.ts.map +1 -0
- package/dist/primitives/Link/Link.d.ts +28 -0
- package/dist/primitives/Link/Link.d.ts.map +1 -0
- package/dist/primitives/LinkButton/LinkButton.d.ts +31 -0
- package/dist/primitives/LinkButton/LinkButton.d.ts.map +1 -0
- package/dist/primitives/List/List.d.ts +29 -0
- package/dist/primitives/List/List.d.ts.map +1 -0
- package/dist/primitives/ListBox/ListBox.d.ts +102 -0
- package/dist/primitives/ListBox/ListBox.d.ts.map +1 -0
- package/dist/primitives/Logo/Logo.d.ts +292 -0
- package/dist/primitives/Logo/Logo.d.ts.map +1 -0
- package/dist/primitives/Menu/Menu.d.ts +151 -0
- package/dist/primitives/Menu/Menu.d.ts.map +1 -0
- package/dist/primitives/Meter/Meter.d.ts +28 -0
- package/dist/primitives/Meter/Meter.d.ts.map +1 -0
- package/dist/primitives/NavigationList/NavigationList.d.ts +44 -0
- package/dist/primitives/NavigationList/NavigationList.d.ts.map +1 -0
- package/dist/primitives/NumberField/NumberField.d.ts +118 -0
- package/dist/primitives/NumberField/NumberField.d.ts.map +1 -0
- package/dist/primitives/Popover/Popover.d.ts +61 -0
- package/dist/primitives/Popover/Popover.d.ts.map +1 -0
- package/dist/primitives/ProgressBar/ProgressBar.d.ts +41 -0
- package/dist/primitives/ProgressBar/ProgressBar.d.ts.map +1 -0
- package/dist/primitives/RadioGroup/RadioGroup.d.ts +131 -0
- package/dist/primitives/RadioGroup/RadioGroup.d.ts.map +1 -0
- package/dist/primitives/RangeCalendar/RangeCalendar.d.ts +57 -0
- package/dist/primitives/RangeCalendar/RangeCalendar.d.ts.map +1 -0
- package/dist/primitives/SearchField/SearchField.d.ts +70 -0
- package/dist/primitives/SearchField/SearchField.d.ts.map +1 -0
- package/dist/primitives/Select/Select.d.ts +110 -0
- package/dist/primitives/Select/Select.d.ts.map +1 -0
- package/dist/primitives/Separator/Separator.d.ts +302 -0
- package/dist/primitives/Separator/Separator.d.ts.map +1 -0
- package/dist/primitives/Skeleton/Skeleton.d.ts +27 -0
- package/dist/primitives/Skeleton/Skeleton.d.ts.map +1 -0
- package/dist/primitives/SkipLink/SkipLink.d.ts +21 -0
- package/dist/primitives/SkipLink/SkipLink.d.ts.map +1 -0
- package/dist/primitives/Slider/Slider.d.ts +148 -0
- package/dist/primitives/Slider/Slider.d.ts.map +1 -0
- package/dist/primitives/Spinner/Spinner.d.ts +23 -0
- package/dist/primitives/Spinner/Spinner.d.ts.map +1 -0
- package/dist/primitives/Stack/Stack.d.ts +300 -0
- package/dist/primitives/Stack/Stack.d.ts.map +1 -0
- package/dist/primitives/Stepper/Stepper.d.ts +42 -0
- package/dist/primitives/Stepper/Stepper.d.ts.map +1 -0
- package/dist/primitives/Surface/Surface.d.ts +306 -0
- package/dist/primitives/Surface/Surface.d.ts.map +1 -0
- package/dist/primitives/Switch/Switch.d.ts +118 -0
- package/dist/primitives/Switch/Switch.d.ts.map +1 -0
- package/dist/primitives/Table/Table.d.ts +226 -0
- package/dist/primitives/Table/Table.d.ts.map +1 -0
- package/dist/primitives/Tabs/Tabs.d.ts +105 -0
- package/dist/primitives/Tabs/Tabs.d.ts.map +1 -0
- package/dist/primitives/Tag/Tag.d.ts +18 -0
- package/dist/primitives/Tag/Tag.d.ts.map +1 -0
- package/dist/primitives/TagGroup/TagGroup.d.ts +60 -0
- package/dist/primitives/TagGroup/TagGroup.d.ts.map +1 -0
- package/dist/primitives/TextArea/TextArea.d.ts +40 -0
- package/dist/primitives/TextArea/TextArea.d.ts.map +1 -0
- package/dist/primitives/TextField/TextField.d.ts +102 -0
- package/dist/primitives/TextField/TextField.d.ts.map +1 -0
- package/dist/primitives/TimeField/TimeField.d.ts +58 -0
- package/dist/primitives/TimeField/TimeField.d.ts.map +1 -0
- package/dist/primitives/Toast/Toast.d.ts +88 -0
- package/dist/primitives/Toast/Toast.d.ts.map +1 -0
- package/dist/primitives/ToggleButton/ToggleButton.d.ts +55 -0
- package/dist/primitives/ToggleButton/ToggleButton.d.ts.map +1 -0
- package/dist/primitives/ToggleGroup/ToggleGroup.d.ts +48 -0
- package/dist/primitives/ToggleGroup/ToggleGroup.d.ts.map +1 -0
- package/dist/primitives/Toolbar/Toolbar.d.ts +17 -0
- package/dist/primitives/Toolbar/Toolbar.d.ts.map +1 -0
- package/dist/primitives/Tooltip/Tooltip.d.ts +66 -0
- package/dist/primitives/Tooltip/Tooltip.d.ts.map +1 -0
- package/dist/primitives/Typography/Typography.d.ts +317 -0
- package/dist/primitives/Typography/Typography.d.ts.map +1 -0
- package/dist/primitives/VisuallyHidden/VisuallyHidden.d.ts +294 -0
- package/dist/primitives/VisuallyHidden/VisuallyHidden.d.ts.map +1 -0
- package/dist/primitives/date/CalendarParts.d.ts +26 -0
- package/dist/primitives/date/CalendarParts.d.ts.map +1 -0
- package/dist/primitives/date/DateInput.d.ts +9 -0
- package/dist/primitives/date/DateInput.d.ts.map +1 -0
- package/dist/primitives/date/PickerFieldParts.d.ts +11 -0
- package/dist/primitives/date/PickerFieldParts.d.ts.map +1 -0
- package/dist/primitives/date/PickerParts.d.ts +29 -0
- package/dist/primitives/date/PickerParts.d.ts.map +1 -0
- package/dist/primitives/file/FileFeedback.d.ts +14 -0
- package/dist/primitives/file/FileFeedback.d.ts.map +1 -0
- package/dist/provider/BreezeContext.d.ts +19 -0
- package/dist/provider/BreezeContext.d.ts.map +1 -0
- package/dist/provider/BreezeProvider.d.ts +30 -0
- package/dist/provider/BreezeProvider.d.ts.map +1 -0
- package/dist/provider/messages.d.ts +43 -0
- package/dist/provider/messages.d.ts.map +1 -0
- package/dist/reset.css +2 -0
- package/dist/styles.css +2 -0
- package/package.json +63 -91
- package/lib/index.cjs.js +0 -2900
- package/lib/index.cjs.js.map +0 -1
- package/lib/index.d.ts +0 -489
- package/lib/index.esm.js +0 -2846
- package/lib/index.esm.js.map +0 -1
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactElement, ReactNode, Ref } from 'react';
|
|
2
|
+
import type { BreezeCollectionItem, CollectionContentProps, CollectionKey, CollectionSelection, CollectionVirtualization } from '../../internal/types/collection';
|
|
3
|
+
/** Consumer-owned table sort descriptor. */
|
|
4
|
+
export interface TableSort {
|
|
5
|
+
/** Stable key of the sorted column. */
|
|
6
|
+
column: CollectionKey;
|
|
7
|
+
/** Current sort direction. */
|
|
8
|
+
direction: 'ascending' | 'descending';
|
|
9
|
+
}
|
|
10
|
+
/** Supported structural table presentation modes. */
|
|
11
|
+
export type TableLayout = 'responsive' | 'responsiveGrid' | 'grid';
|
|
12
|
+
/** Optional visual treatment for the table's lower edge. */
|
|
13
|
+
export type TableBoundary = 'none' | 'strong';
|
|
14
|
+
/** Canonical column widths for content, full controls, and icon actions. */
|
|
15
|
+
export type TableColumnWidth = 'auto' | 'control' | 'icon';
|
|
16
|
+
/** Domain-neutral emphasis applied to one data row. */
|
|
17
|
+
export type TableRowTone = 'default' | 'muted';
|
|
18
|
+
/** Structural presentation for records and grouped section rows. */
|
|
19
|
+
export type TableRowPresentation = 'data' | 'section';
|
|
20
|
+
type TableRootNativeProps = Omit<HTMLAttributes<HTMLTableElement>, 'children' | 'defaultValue' | 'onChange' | 'style'>;
|
|
21
|
+
interface TableRootSharedProps extends TableRootNativeProps {
|
|
22
|
+
/** Optional visual treatment for the table's lower edge. Defaults to `none`. */
|
|
23
|
+
boundary?: TableBoundary;
|
|
24
|
+
/** Ordered header, body, and optional footer sections. */
|
|
25
|
+
children: ReactNode;
|
|
26
|
+
/** Keys whose rows cannot receive focus, selection, or actions. */
|
|
27
|
+
disabledKeys?: Iterable<CollectionKey>;
|
|
28
|
+
/** Responsive native table, responsive desktop grid, or persistent CSS grid rows. Defaults to `responsive`. */
|
|
29
|
+
layout?: TableLayout;
|
|
30
|
+
/** Enables multiple row selection. Defaults to `false`. */
|
|
31
|
+
multiple?: boolean;
|
|
32
|
+
/** Ref to the rendered table or virtualized grid element. */
|
|
33
|
+
ref?: Ref<HTMLElement>;
|
|
34
|
+
/** Optional fixed- or variable-height row windowing configuration. */
|
|
35
|
+
virtualization?: CollectionVirtualization;
|
|
36
|
+
}
|
|
37
|
+
interface ControlledTableSelectionProps {
|
|
38
|
+
/** Current selected row keys. */
|
|
39
|
+
selection: CollectionSelection;
|
|
40
|
+
/** Called with the next selected row keys. */
|
|
41
|
+
onSelectionChange: (selection: CollectionSelection) => void;
|
|
42
|
+
/** Excluded when selection is controlled. */
|
|
43
|
+
defaultSelection?: never;
|
|
44
|
+
/** Controlled mutable state cannot be marked read-only. */
|
|
45
|
+
readOnly?: false;
|
|
46
|
+
}
|
|
47
|
+
interface ReadOnlyTableSelectionProps {
|
|
48
|
+
/** Current immutable selected row keys. */
|
|
49
|
+
selection: CollectionSelection;
|
|
50
|
+
/** Marks controlled row selection and sorting as intentionally immutable. */
|
|
51
|
+
readOnly: true;
|
|
52
|
+
/** Excluded when selection is controlled. */
|
|
53
|
+
defaultSelection?: never;
|
|
54
|
+
/** Excluded because read-only selection cannot change. */
|
|
55
|
+
onSelectionChange?: never;
|
|
56
|
+
}
|
|
57
|
+
interface UncontrolledTableSelectionProps {
|
|
58
|
+
/** Initial selected row keys. Defaults to an empty selection. */
|
|
59
|
+
defaultSelection?: CollectionSelection;
|
|
60
|
+
/** Called with the next selected row keys. */
|
|
61
|
+
onSelectionChange?: (selection: CollectionSelection) => void;
|
|
62
|
+
/** Uncontrolled state cannot be marked read-only. */
|
|
63
|
+
readOnly?: false;
|
|
64
|
+
/** Excluded when selection is uncontrolled. */
|
|
65
|
+
selection?: never;
|
|
66
|
+
}
|
|
67
|
+
interface ControlledTableSortProps {
|
|
68
|
+
/** Current consumer-owned sort descriptor. */
|
|
69
|
+
sort: TableSort;
|
|
70
|
+
/** Called when a sortable heading requests a new descriptor. */
|
|
71
|
+
onSortChange: (sort: TableSort) => void;
|
|
72
|
+
/** Excluded when sorting is controlled. */
|
|
73
|
+
defaultSort?: never;
|
|
74
|
+
}
|
|
75
|
+
interface UncontrolledTableSortProps {
|
|
76
|
+
/** Initial sort descriptor. */
|
|
77
|
+
defaultSort?: TableSort;
|
|
78
|
+
/** Called when the internally retained descriptor changes. */
|
|
79
|
+
onSortChange?: (sort: TableSort) => void;
|
|
80
|
+
/** Excluded when sorting is uncontrolled. */
|
|
81
|
+
sort?: never;
|
|
82
|
+
}
|
|
83
|
+
/** Props for a controlled, read-only, or uncontrolled interactive table. */
|
|
84
|
+
export type TableRootProps = TableRootSharedProps & (ControlledTableSelectionProps | ReadOnlyTableSelectionProps | UncontrolledTableSelectionProps) & (ControlledTableSortProps | UncontrolledTableSortProps);
|
|
85
|
+
/** Props for static or generic table columns. */
|
|
86
|
+
export type TableHeaderProps<Column extends BreezeCollectionItem = BreezeCollectionItem> = Omit<HTMLAttributes<HTMLTableSectionElement>, 'children' | 'style'> & CollectionContentProps<Column> & {
|
|
87
|
+
/** Stable key for this measurable ordered header section. */
|
|
88
|
+
id?: CollectionKey;
|
|
89
|
+
/** Ref to the rendered table header. */
|
|
90
|
+
ref?: Ref<HTMLTableSectionElement>;
|
|
91
|
+
};
|
|
92
|
+
/** Props for one accessible table column heading. */
|
|
93
|
+
export interface TableColumnProps extends Omit<HTMLAttributes<HTMLTableCellElement>, 'align' | 'id' | 'style'> {
|
|
94
|
+
/** Heading alignment. Defaults to `start`. */
|
|
95
|
+
align?: 'start' | 'center' | 'end';
|
|
96
|
+
/** Visible accessible column heading. */
|
|
97
|
+
children: ReactNode;
|
|
98
|
+
/** Derives a compact record label from this heading. Defaults to `true`. */
|
|
99
|
+
compactLabel?: boolean;
|
|
100
|
+
/** Stable string or number column key. */
|
|
101
|
+
id: CollectionKey;
|
|
102
|
+
/** Marks this heading as the row label announced during cell navigation. Defaults to `false`. */
|
|
103
|
+
rowHeader?: boolean;
|
|
104
|
+
/** Allows this heading to request sort changes. Defaults to `false`. */
|
|
105
|
+
sortable?: boolean;
|
|
106
|
+
/** Ref to the rendered column heading. */
|
|
107
|
+
ref?: Ref<HTMLTableCellElement>;
|
|
108
|
+
/** Plain-text accessible and compact label used when the visible heading is not a string. */
|
|
109
|
+
textValue?: string;
|
|
110
|
+
/** Canonical width for content, full controls, or icon actions. Defaults to `auto`. */
|
|
111
|
+
width?: TableColumnWidth;
|
|
112
|
+
}
|
|
113
|
+
/** Props for a static or generic ordered table body section. */
|
|
114
|
+
export type TableBodyProps<Item extends BreezeCollectionItem = BreezeCollectionItem> = Omit<HTMLAttributes<HTMLTableSectionElement>, 'children' | 'style'> & CollectionContentProps<Item> & {
|
|
115
|
+
/** Content displayed when this body has no rows. */
|
|
116
|
+
emptyContent?: ReactNode;
|
|
117
|
+
/** Stable key for this measurable ordered body section. */
|
|
118
|
+
id?: CollectionKey;
|
|
119
|
+
/** Ref to the rendered table body. */
|
|
120
|
+
ref?: Ref<HTMLTableSectionElement>;
|
|
121
|
+
};
|
|
122
|
+
/** Props for a static or generic ordered table footer section. */
|
|
123
|
+
export type TableFooterProps<Item extends BreezeCollectionItem = BreezeCollectionItem> = Omit<HTMLAttributes<HTMLTableSectionElement>, 'children' | 'style'> & CollectionContentProps<Item> & {
|
|
124
|
+
/** Stable key for this measurable ordered footer section. */
|
|
125
|
+
id?: CollectionKey;
|
|
126
|
+
/** Ref to the rendered table footer. */
|
|
127
|
+
ref?: Ref<HTMLTableSectionElement>;
|
|
128
|
+
};
|
|
129
|
+
/** Props for one keyed table row. */
|
|
130
|
+
export interface TableRowProps extends Omit<HTMLAttributes<HTMLTableRowElement>, 'id' | 'onClick' | 'onClickCapture' | 'style'> {
|
|
131
|
+
/** Ordered cells matching every visible table heading exactly once and in the same order, including after conditional column changes. */
|
|
132
|
+
children: ReactNode;
|
|
133
|
+
/** Prevents focus, selection, and actions for this row. Defaults to `false`. */
|
|
134
|
+
disabled?: boolean;
|
|
135
|
+
/** Stable string or number row key. */
|
|
136
|
+
id: CollectionKey;
|
|
137
|
+
/** Called with this row key when its action is invoked. */
|
|
138
|
+
onAction?: (key: CollectionKey) => void;
|
|
139
|
+
/** Record or grouped section geometry. Defaults to `data`. */
|
|
140
|
+
presentation?: TableRowPresentation;
|
|
141
|
+
/** Ref to the rendered row. */
|
|
142
|
+
ref?: Ref<HTMLTableRowElement>;
|
|
143
|
+
/** Plain-text row representation used for typeahead and accessibility. */
|
|
144
|
+
textValue: string;
|
|
145
|
+
/** Domain-neutral visual emphasis. Defaults to `default`. */
|
|
146
|
+
tone?: TableRowTone;
|
|
147
|
+
}
|
|
148
|
+
/** Props for one table data cell. */
|
|
149
|
+
export interface TableCellProps extends Omit<HTMLAttributes<HTMLTableCellElement>, 'align' | 'id' | 'style'> {
|
|
150
|
+
/** Cell alignment at table widths. Defaults to `start`. */
|
|
151
|
+
align?: 'start' | 'center' | 'end';
|
|
152
|
+
/** Visible cell content. */
|
|
153
|
+
children: ReactNode;
|
|
154
|
+
/** Stable key of the corresponding column heading. */
|
|
155
|
+
column: CollectionKey;
|
|
156
|
+
/** Canonical content geometry. `disclosure` positions one bare arrow for an actionable row. Defaults to `data`. */
|
|
157
|
+
presentation?: 'data' | 'disclosure';
|
|
158
|
+
/** Ref to the rendered data cell. */
|
|
159
|
+
ref?: Ref<HTMLTableCellElement>;
|
|
160
|
+
/** Plain-text cell value used for accessibility when content is not text. */
|
|
161
|
+
textValue?: string;
|
|
162
|
+
}
|
|
163
|
+
/** Props for the canonical action indicator of an actionable row. */
|
|
164
|
+
export interface TableDisclosureProps extends Omit<TableCellProps, 'children' | 'presentation' | 'textValue'> {
|
|
165
|
+
/** Position over a standard compact row or remain in an explicit grid track. Defaults to `overlay`. */
|
|
166
|
+
position?: 'flow' | 'overlay';
|
|
167
|
+
}
|
|
168
|
+
/** Props for a table loading row and load-more sentinel. */
|
|
169
|
+
export interface TableLoadMoreProps extends Omit<HTMLAttributes<HTMLTableRowElement>, 'style'> {
|
|
170
|
+
/** Visible loading-row content. */
|
|
171
|
+
children: ReactNode;
|
|
172
|
+
/** Shows the loading row and suppresses duplicate requests. Defaults to `false`. */
|
|
173
|
+
loading?: boolean;
|
|
174
|
+
/** Called once when more consumer-owned rows should be requested. */
|
|
175
|
+
onLoadMore: () => void | Promise<void>;
|
|
176
|
+
/** Trigger distance as a proportion of the scroll viewport. Defaults to `1`. */
|
|
177
|
+
offset?: number;
|
|
178
|
+
/** Ref to the rendered native or virtualized loading row. */
|
|
179
|
+
ref?: Ref<HTMLTableRowElement | HTMLDivElement>;
|
|
180
|
+
}
|
|
181
|
+
/** Coordinates semantic table navigation, row state, sorting, and responsive labels. */
|
|
182
|
+
export declare function Root({ boundary, children, className, defaultSelection, defaultSort, disabledKeys, layout, multiple, onSelectionChange, onSortChange, readOnly, ref, selection, sort, virtualization, ...props }: Readonly<TableRootProps>): ReactElement;
|
|
183
|
+
/** Renders one accessible heading that can optionally request sorting. */
|
|
184
|
+
export declare function Column(props: Readonly<TableColumnProps>): ReactElement;
|
|
185
|
+
/** Renders static or generic accessible column headings. */
|
|
186
|
+
export declare function Header<Column extends BreezeCollectionItem>({ children, className, id, items, ref, ...props }: Readonly<TableHeaderProps<Column>>): ReactElement;
|
|
187
|
+
/** Renders a stable ordered table body with static or generic rows. */
|
|
188
|
+
export declare function Body<Item extends BreezeCollectionItem>({ children, className, emptyContent, id, items, ref, ...props }: Readonly<TableBodyProps<Item>>): ReactElement;
|
|
189
|
+
/** Renders a stable ordered table footer with static or generic rows. */
|
|
190
|
+
export declare function Footer<Item extends BreezeCollectionItem>({ children, className, id, items, ref, ...props }: Readonly<TableFooterProps<Item>>): ReactElement;
|
|
191
|
+
/** Renders one keyed row whose cells follow heading order. */
|
|
192
|
+
export declare function Row({ 'aria-describedby': describedBy, className, disabled, id, onAction, presentation, ref, textValue, tone, ...props }: Readonly<TableRowProps>): ReactElement;
|
|
193
|
+
/** Renders one data cell and derives its compact label from the matching heading. */
|
|
194
|
+
export declare function Cell({ align, className, column, presentation, ref, textValue, ...props }: Readonly<TableCellProps>): ReactElement;
|
|
195
|
+
/** Renders the canonical bare arrow for an actionable row. */
|
|
196
|
+
export declare function Disclosure({ position, ...props }: Readonly<TableDisclosureProps>): ReactElement;
|
|
197
|
+
/** Renders a loading row and deduplicated intersection sentinel. */
|
|
198
|
+
export declare function LoadMore({ className, loading, offset, onLoadMore, ref, ...props }: Readonly<TableLoadMoreProps>): ReactElement;
|
|
199
|
+
/**
|
|
200
|
+
* Coordinates ordered static or generic table sections, responsive record
|
|
201
|
+
* labels, row interaction, consumer-owned sorting, and optional virtualization.
|
|
202
|
+
*
|
|
203
|
+
* @summary responsive compound data table with optional virtualization
|
|
204
|
+
*/
|
|
205
|
+
export declare const Table: {
|
|
206
|
+
/** Ordered static or generic row section. */
|
|
207
|
+
Body: typeof Body;
|
|
208
|
+
/** One cell associated with a stable heading key. */
|
|
209
|
+
Cell: typeof Cell;
|
|
210
|
+
/** One sortable or static accessible column heading. */
|
|
211
|
+
Column: typeof Column;
|
|
212
|
+
/** Canonical bare action indicator for an actionable row. */
|
|
213
|
+
Disclosure: typeof Disclosure;
|
|
214
|
+
/** Ordered static or generic footer section. */
|
|
215
|
+
Footer: typeof Footer;
|
|
216
|
+
/** Ordered static or generic heading section. */
|
|
217
|
+
Header: typeof Header;
|
|
218
|
+
/** Loading row and deduplicated load-more sentinel. */
|
|
219
|
+
LoadMore: typeof LoadMore;
|
|
220
|
+
/** Interactive semantic table root. */
|
|
221
|
+
Root: typeof Root;
|
|
222
|
+
/** One keyed selectable or actionable row. */
|
|
223
|
+
Row: typeof Row;
|
|
224
|
+
};
|
|
225
|
+
export {};
|
|
226
|
+
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/primitives/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,cAAc,EACd,YAAY,EACZ,SAAS,EACT,GAAG,EACJ,MAAM,OAAO,CAAC;AA4Bf,OAAO,KAAK,EACV,oBAAoB,EACpB,sBAAsB,EACtB,aAAa,EACb,mBAAmB,EACnB,wBAAwB,EACzB,MAAM,iCAAiC,CAAC;AA4HzC,4CAA4C;AAC5C,MAAM,WAAW,SAAS;IACxB,uCAAuC;IACvC,MAAM,EAAE,aAAa,CAAC;IACtB,8BAA8B;IAC9B,SAAS,EAAE,WAAW,GAAG,YAAY,CAAC;CACvC;AAED,qDAAqD;AACrD,MAAM,MAAM,WAAW,GAAG,YAAY,GAAG,gBAAgB,GAAG,MAAM,CAAC;AAEnE,4DAA4D;AAC5D,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,QAAQ,CAAC;AAE9C,4EAA4E;AAC5E,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,CAAC;AAE3D,uDAAuD;AACvD,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,OAAO,CAAC;AAE/C,oEAAoE;AACpE,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG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S,oBAAoB,EAAE,EACxD,QAAQ,EACR,SAAS,EACT,EAAE,EACF,KAAK,EACL,GAAG,EACH,GAAG,KAAK,EACT,EAAE,QAAQ,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,GAAG,YAAY,CAYjD;AAED,8DAA8D;AAC9D,wBAAgB,GAAG,CAAC,EAClB,kBAAkB,EAAE,WAAW,EAC/B,SAAS,EACT,QAAgB,EAChB,EAAE,EACF,QAAQ,EACR,YAAqB,EACrB,GAAG,EACH,SAAS,EACT,IAAgB,EAChB,GAAG,KAAK,EACT,EAAE,QAAQ,CAAC,aAAa,CAAC,GAAG,YAAY,CAkCxC;AAED,qFAAqF;AACrF,wBAAgB,IAAI,CAAC,EACnB,KAAe,EACf,SAAS,EACT,MAAM,EACN,YAAqB,EACrB,GAAG,EACH,SAAS,EACT,GAAG,KAAK,EACT,EAAE,QAAQ,CAAC,cAAc,CAAC,GAAG,YAAY,CAmBzC;AAED,8DAA8D;AAC9D,wBAAgB,UAAU,CAAC,EACzB,QAAoB,EACpB,GAAG,KAAK,EACT,EAAE,QAAQ,CAAC,oBAAoB,CAAC,GAAG,YAAY,CAQ/C;AAED,oEAAoE;AACpE,wBAAgB,QAAQ,CAAC,EACvB,SAAS,EACT,OAAe,EACf,MAAU,EACV,UAAU,EACV,GAAG,EACH,GAAG,KAAK,EACT,EAAE,QAAQ,CAAC,kBAAkB,CAAC,GAAG,YAAY,CA2B7C;AAED;;;;;GAKG;AACH,eAAO,MAAM,KAAK;IAChB,6CAA6C;;IAE7C,qDAAqD;;IAErD,wDAAwD;;IAExD,6DAA6D;;IAE7D,gDAAgD;;IAEhD,iDAAiD;;IAEjD,uDAAuD;;IAEvD,uCAAuC;;IAEvC,8CAA8C;;CAE/C,CAAC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactElement, ReactNode, Ref } from 'react';
|
|
2
|
+
import type { CollectionKey } from '../../internal/types/collection';
|
|
3
|
+
type TabsRootNativeProps = Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'defaultValue' | 'onChange' | 'style'>;
|
|
4
|
+
interface TabsRootSharedProps extends TabsRootNativeProps {
|
|
5
|
+
/** Tab list and panels. */
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
/** Disables every tab. Defaults to `false`. */
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
/** Arrow-key and layout direction. Defaults to `horizontal`. */
|
|
10
|
+
orientation?: 'horizontal' | 'vertical';
|
|
11
|
+
/** Ref to the rendered tabs root. */
|
|
12
|
+
ref?: Ref<HTMLDivElement>;
|
|
13
|
+
}
|
|
14
|
+
interface ControlledTabsRootProps {
|
|
15
|
+
/** Current selected tab key. */
|
|
16
|
+
value: CollectionKey;
|
|
17
|
+
/** Called with the next selected tab key. */
|
|
18
|
+
onChange: (value: CollectionKey) => void;
|
|
19
|
+
defaultValue?: never;
|
|
20
|
+
readOnly?: false;
|
|
21
|
+
}
|
|
22
|
+
interface ReadOnlyTabsRootProps {
|
|
23
|
+
/** Current immutable selected tab key. */
|
|
24
|
+
value: CollectionKey;
|
|
25
|
+
/** Marks controlled selection as intentionally immutable. */
|
|
26
|
+
readOnly: true;
|
|
27
|
+
defaultValue?: never;
|
|
28
|
+
onChange?: never;
|
|
29
|
+
}
|
|
30
|
+
interface UncontrolledTabsRootProps {
|
|
31
|
+
/** Initial selected tab key. */
|
|
32
|
+
defaultValue?: CollectionKey;
|
|
33
|
+
/** Called with the next selected tab key. */
|
|
34
|
+
onChange?: (value: CollectionKey) => void;
|
|
35
|
+
readOnly?: false;
|
|
36
|
+
value?: never;
|
|
37
|
+
}
|
|
38
|
+
/** Props for controlled, read-only, or uncontrolled tab selection. */
|
|
39
|
+
export type TabsRootProps = TabsRootSharedProps & (ControlledTabsRootProps | ReadOnlyTabsRootProps | UncontrolledTabsRootProps);
|
|
40
|
+
/** Props for the accessible list of tab labels. */
|
|
41
|
+
export interface TabsListProps extends Omit<HTMLAttributes<HTMLDivElement>, 'style'> {
|
|
42
|
+
/** Tab label parts. */
|
|
43
|
+
children: ReactNode;
|
|
44
|
+
/** Ref to the rendered tab list. */
|
|
45
|
+
ref?: Ref<HTMLDivElement>;
|
|
46
|
+
}
|
|
47
|
+
/** Props for one selectable tab label. */
|
|
48
|
+
export interface TabsTabProps extends Omit<HTMLAttributes<HTMLDivElement>, 'id' | 'onClick' | 'onClickCapture' | 'style'> {
|
|
49
|
+
/** Visible tab label. */
|
|
50
|
+
children: ReactNode;
|
|
51
|
+
/** Prevents focus and selection. Defaults to `false`. */
|
|
52
|
+
disabled?: boolean;
|
|
53
|
+
/** Stable string or number key matching its panel. */
|
|
54
|
+
id: CollectionKey;
|
|
55
|
+
/** Ref to the rendered tab. */
|
|
56
|
+
ref?: Ref<HTMLDivElement>;
|
|
57
|
+
}
|
|
58
|
+
/** Props for the optional grouping of tab panels. */
|
|
59
|
+
export interface TabsPanelsProps extends Omit<HTMLAttributes<HTMLDivElement>, 'style'> {
|
|
60
|
+
/** Tab panels. */
|
|
61
|
+
children: ReactNode;
|
|
62
|
+
/** Ref to the rendered panel group. */
|
|
63
|
+
ref?: Ref<HTMLDivElement>;
|
|
64
|
+
}
|
|
65
|
+
/** Props for content associated with one tab. */
|
|
66
|
+
export interface TabsPanelProps extends Omit<HTMLAttributes<HTMLDivElement>, 'id' | 'style'> {
|
|
67
|
+
/** Panel content. */
|
|
68
|
+
children: ReactNode;
|
|
69
|
+
/** Stable key matching its tab. */
|
|
70
|
+
id: CollectionKey;
|
|
71
|
+
/** Keeps inactive content mounted and inert. Defaults to `false`. */
|
|
72
|
+
forceMount?: boolean;
|
|
73
|
+
/** Ref to the rendered panel. */
|
|
74
|
+
ref?: Ref<HTMLDivElement>;
|
|
75
|
+
}
|
|
76
|
+
/** Coordinates tab selection, keyboard navigation, and panel visibility. */
|
|
77
|
+
export declare function Root({ className, defaultValue, disabled, onChange, orientation, readOnly: _readOnly, ref, value, ...props }: Readonly<TabsRootProps>): ReactElement;
|
|
78
|
+
/** Groups tab labels and inherits root orientation. */
|
|
79
|
+
export declare function List({ className, ref, ...props }: Readonly<TabsListProps>): ReactElement;
|
|
80
|
+
/** Renders one keyed tab label. */
|
|
81
|
+
export declare function Tab({ className, disabled, id, ref, ...props }: Readonly<TabsTabProps>): ReactElement;
|
|
82
|
+
/** Groups keyed panels for transition coordination. */
|
|
83
|
+
export declare function Panels({ className, ref, ...props }: Readonly<TabsPanelsProps>): ReactElement;
|
|
84
|
+
/** Renders content associated with a keyed tab. */
|
|
85
|
+
export declare function Panel({ className, forceMount, id, ref, ...props }: Readonly<TabsPanelProps>): ReactElement;
|
|
86
|
+
/**
|
|
87
|
+
* Coordinates keyed tab labels, orientation-aware keyboard navigation, and
|
|
88
|
+
* visibility of their associated panels.
|
|
89
|
+
*
|
|
90
|
+
* @summary accessible compound tabbed content navigation
|
|
91
|
+
*/
|
|
92
|
+
export declare const Tabs: {
|
|
93
|
+
/** List of selectable tab labels. */
|
|
94
|
+
List: typeof List;
|
|
95
|
+
/** Content associated with one tab. */
|
|
96
|
+
Panel: typeof Panel;
|
|
97
|
+
/** Optional panel collection wrapper. */
|
|
98
|
+
Panels: typeof Panels;
|
|
99
|
+
/** Selection and orientation root. */
|
|
100
|
+
Root: typeof Root;
|
|
101
|
+
/** One keyed selectable label. */
|
|
102
|
+
Tab: typeof Tab;
|
|
103
|
+
};
|
|
104
|
+
export {};
|
|
105
|
+
//# sourceMappingURL=Tabs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/primitives/Tabs/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,cAAc,EACd,YAAY,EACZ,SAAS,EACT,GAAG,EACJ,MAAM,OAAO,CAAC;AAWf,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AA8BrE,KAAK,mBAAmB,GAAG,IAAI,CAC7B,cAAc,CAAC,cAAc,CAAC,EAC9B,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IAAI,CAAC,EACnB,SAAS,EACT,GAAG,EACH,GAAG,KAAK,EACT,EAAE,QAAQ,CAAC,aAAa,CAAC,GAAG,YAAY,CAOxC;AAED,mCAAmC;AACnC,wBAAgB,GAAG,CAAC,EAClB,SAAS,EACT,QAAgB,EAChB,EAAE,EACF,GAAG,EACH,GAAG,KAAK,EACT,EAAE,QAAQ,CAAC,YAAY,CAAC,GAAG,YAAY,CAQvC;AAED,uDAAuD;AACvD,wBAAgB,MAAM,CAAC,EACrB,SAAS,EACT,GAAG,EACH,GAAG,KAAK,EACT,EAAE,QAAQ,CAAC,eAAe,CAAC,GAAG,YAAY,CAM1C;AAED,mDAAmD;AACnD,wBAAgB,KAAK,CAAC,EACpB,SAAS,EACT,UAAkB,EAClB,EAAE,EACF,GAAG,EACH,GAAG,KAAK,EACT,EAAE,QAAQ,CAAC,cAAc,CAAC,GAAG,YAAY,CAQzC;AAED;;;;;GAKG;AACH,eAAO,MAAM,IAAI;IACf,qCAAqC;;IAErC,uCAAuC;;IAEvC,yCAAyC;;IAEzC,sCAAsC;;IAEtC,kCAAkC;;CAEnC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactElement, ReactNode, Ref } from 'react';
|
|
2
|
+
import type { CollectionKey } from '../../internal/types/collection';
|
|
3
|
+
/** Props for one keyed tag. */ export interface TagProps extends Omit<HTMLAttributes<HTMLDivElement>, 'id' | 'onClick' | 'style'> {
|
|
4
|
+
/** Visible tag content. */ children: ReactNode;
|
|
5
|
+
/** Prevents focus, selection, actions, and removal. Defaults to `false`. */ disabled?: boolean;
|
|
6
|
+
/** Stable tag key. */ id: CollectionKey;
|
|
7
|
+
/** Called with this tag key when its semantic action is invoked. */ onAction?: (key: CollectionKey) => void;
|
|
8
|
+
/** Ref to the rendered tag. */ ref?: Ref<HTMLDivElement>;
|
|
9
|
+
/** Plain text for accessibility/typeahead. */ textValue: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Renders one keyed, focusable tag for selection, semantic actions, or removal
|
|
13
|
+
* by its containing TagGroup.
|
|
14
|
+
*
|
|
15
|
+
* @summary keyed interactive item for a tag collection
|
|
16
|
+
*/
|
|
17
|
+
export declare function Tag({ className, disabled, id, onAction, ref, ...props }: Readonly<TagProps>): ReactElement;
|
|
18
|
+
//# sourceMappingURL=Tag.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../src/primitives/Tag/Tag.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,cAAc,EACd,YAAY,EACZ,SAAS,EACT,GAAG,EACJ,MAAM,OAAO,CAAC;AAKf,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAKrE,+BAA+B,CAAC,MAAM,WAAW,QAC/C,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,IAAI,GAAG,SAAS,GAAG,OAAO,CAAC;IACxE,2BAA2B,CAAC,QAAQ,EAAE,SAAS,CAAC;IAChD,4EAA4E,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAChG,sBAAsB,CAAC,EAAE,EAAE,aAAa,CAAC;IACzC,oEAAoE,CAAC,QAAQ,CAAC,EAAE,CAC9E,GAAG,EAAE,aAAa,KACf,IAAI,CAAC;IACV,+BAA+B,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;IAC1D,8CAA8C,CAAC,SAAS,EAAE,MAAM,CAAC;CAClE;AACD;;;;;GAKG;AACH,wBAAgB,GAAG,CAAC,EAClB,SAAS,EACT,QAAgB,EAChB,EAAE,EACF,QAAQ,EACR,GAAG,EACH,GAAG,KAAK,EACT,EAAE,QAAQ,CAAC,QAAQ,CAAC,GAAG,YAAY,CAWnC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactElement, ReactNode, Ref } from 'react';
|
|
2
|
+
import type { BreezeCollectionItem, CollectionContentProps, CollectionKey, CollectionSelection } from '../../internal/types/collection';
|
|
3
|
+
import { type TextFieldDescriptionProps, type TextFieldLabelProps } from '../TextField/TextField';
|
|
4
|
+
interface Shared extends Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'onChange' | 'style'> {
|
|
5
|
+
/** Compound label, tag list, and supporting guidance parts. */ children: ReactNode;
|
|
6
|
+
/** Keys whose tags cannot receive focus, selection, actions, or removal. */ disabledKeys?: Iterable<CollectionKey>;
|
|
7
|
+
/** Called with the stable keys removed through keyboard interaction. */ onRemove?: (keys: CollectionKey[]) => void;
|
|
8
|
+
/** Ref to the rendered tag-group root. */ ref?: Ref<HTMLDivElement>;
|
|
9
|
+
}
|
|
10
|
+
type State = {
|
|
11
|
+
/** Current selected tag keys, or every key for select-all state. */
|
|
12
|
+
selection: CollectionSelection;
|
|
13
|
+
/** Called with the next selected tag keys. */
|
|
14
|
+
onSelectionChange: (selection: CollectionSelection) => void;
|
|
15
|
+
/** Excluded when selection is controlled. */
|
|
16
|
+
defaultSelection?: never;
|
|
17
|
+
/** Controlled mutable state cannot be marked read-only. */
|
|
18
|
+
readOnly?: false;
|
|
19
|
+
} | {
|
|
20
|
+
/** Current immutable selected tag keys. */
|
|
21
|
+
selection: CollectionSelection;
|
|
22
|
+
/** Prevents selection changes and removal. */
|
|
23
|
+
readOnly: true;
|
|
24
|
+
/** Excluded because read-only selection cannot change. */
|
|
25
|
+
onSelectionChange?: never;
|
|
26
|
+
/** Excluded when selection is controlled. */
|
|
27
|
+
defaultSelection?: never;
|
|
28
|
+
} | {
|
|
29
|
+
/** Initial selected tag keys. */
|
|
30
|
+
defaultSelection?: CollectionSelection;
|
|
31
|
+
/** Called with the next selected tag keys. */
|
|
32
|
+
onSelectionChange?: (selection: CollectionSelection) => void;
|
|
33
|
+
/** Excluded when selection is uncontrolled. */
|
|
34
|
+
selection?: never;
|
|
35
|
+
/** Uncontrolled state cannot be marked read-only. */
|
|
36
|
+
readOnly?: false;
|
|
37
|
+
};
|
|
38
|
+
/** Tag-group selection and removal props. */ export type TagGroupRootProps = Shared & State;
|
|
39
|
+
/** Props for the visible tag-group label. */ export type TagGroupLabelProps = TextFieldLabelProps;
|
|
40
|
+
/** Props for supporting tag-group guidance. */ export type TagGroupDescriptionProps = TextFieldDescriptionProps;
|
|
41
|
+
/** Static or generic tag list props. */ export type TagGroupListProps<Item extends BreezeCollectionItem = BreezeCollectionItem> = Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'style'> & CollectionContentProps<Item> & {
|
|
42
|
+
/** Content displayed when the tag collection has no items. */ emptyContent?: ReactNode;
|
|
43
|
+
/** Ref to the rendered tag-list element. */ ref?: Ref<HTMLDivElement>;
|
|
44
|
+
};
|
|
45
|
+
/** Coordinates tag selection, focus, and removal. */ export declare function Root({ children, className, defaultSelection, disabledKeys, onRemove, onSelectionChange, readOnly, ref, selection, ...props }: Readonly<TagGroupRootProps>): ReactElement;
|
|
46
|
+
/** Renders static or typed generic tags. */ export declare function List<Item extends BreezeCollectionItem>({ children, className, emptyContent, items, ref, ...props }: Readonly<TagGroupListProps<Item>>): ReactElement;
|
|
47
|
+
/**
|
|
48
|
+
* Coordinates a labelled static or generic tag collection with optional
|
|
49
|
+
* multiple selection, disabled keys, and application-owned removal.
|
|
50
|
+
*
|
|
51
|
+
* @summary accessible selectable and removable tag collection
|
|
52
|
+
*/
|
|
53
|
+
export declare const TagGroup: {
|
|
54
|
+
/** Supporting guidance associated with the tag group. */ Description: typeof import("../TextField/TextField").Description;
|
|
55
|
+
/** Visible label associated with the tag list. */ Label: typeof import("../TextField/TextField").Label;
|
|
56
|
+
/** Static or typed generic tag collection. */ List: typeof List;
|
|
57
|
+
/** Selection, focus, and removal coordination root. */ Root: typeof Root;
|
|
58
|
+
};
|
|
59
|
+
export {};
|
|
60
|
+
//# sourceMappingURL=TagGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TagGroup.d.ts","sour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;IAEzD,kDAAkD;IAClD,8CAA8C;IAC9C,uDAAuD;CACxD,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { ReactElement, Ref, TextareaHTMLAttributes } from 'react';
|
|
2
|
+
import type { ControlSize } from '../../internal/styling/visual';
|
|
3
|
+
import { type TextFieldDescriptionProps, type TextFieldErrorProps, type TextFieldLabelProps, type TextFieldRootProps } from '../TextField/TextField';
|
|
4
|
+
/** Props for controlled, read-only, or uncontrolled multiline field state. */
|
|
5
|
+
export type TextAreaRootProps = TextFieldRootProps;
|
|
6
|
+
/** Props for the visible multiline field label. */
|
|
7
|
+
export type TextAreaLabelProps = TextFieldLabelProps;
|
|
8
|
+
/** Props for supporting text associated with the multiline control. */
|
|
9
|
+
export type TextAreaDescriptionProps = TextFieldDescriptionProps;
|
|
10
|
+
/** Props for an accessible multiline validation message. */
|
|
11
|
+
export type TextAreaErrorProps = TextFieldErrorProps;
|
|
12
|
+
/** Props for the native multiline control part. */
|
|
13
|
+
export interface TextAreaControlProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'children' | 'className' | 'defaultValue' | 'disabled' | 'onChange' | 'readOnly' | 'required' | 'style' | 'value'> {
|
|
14
|
+
/** Placement and composition classes. */
|
|
15
|
+
className?: string;
|
|
16
|
+
/** Ref to the rendered textarea. */
|
|
17
|
+
ref?: Ref<HTMLTextAreaElement>;
|
|
18
|
+
/** Canonical control size. Defaults to `md`. */
|
|
19
|
+
size?: ControlSize;
|
|
20
|
+
}
|
|
21
|
+
/** Renders the editable native multiline control for a TextArea. */
|
|
22
|
+
export declare function Control({ className, ref, size, ...props }: Readonly<TextAreaControlProps>): ReactElement;
|
|
23
|
+
/**
|
|
24
|
+
* Accessible compound multiline text-entry primitive.
|
|
25
|
+
*
|
|
26
|
+
* @summary labelled multiline text entry with validation anatomy
|
|
27
|
+
*/
|
|
28
|
+
export declare const TextArea: {
|
|
29
|
+
/** Editable native multiline control. */
|
|
30
|
+
Control: typeof Control;
|
|
31
|
+
/** Supporting guidance associated with the control. */
|
|
32
|
+
Description: typeof import("../TextField/TextField").Description;
|
|
33
|
+
/** Validation message associated with an invalid control. */
|
|
34
|
+
Error: typeof import("../TextField/TextField").Error;
|
|
35
|
+
/** Persistent accessible label. */
|
|
36
|
+
Label: typeof import("../TextField/TextField").Label;
|
|
37
|
+
/** State and accessibility root. */
|
|
38
|
+
Root: typeof import("../TextField/TextField").Root;
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=TextArea.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../src/primitives/TextArea/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,sBAAsB,EAAE,MAAM,OAAO,CAAC;AAKvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAEL,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACxB,MAAM,wBAAwB,CAAC;AAgBhC,8EAA8E;AAC9E,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;AAEnD,mDAAmD;AACnD,MAAM,MAAM,kBAAkB,GAAG,mBAAmB,CAAC;AAErD,uEAAuE;AACvE,MAAM,MAAM,wBAAwB,GAAG,yBAAyB,CAAC;AAEjE,4DAA4D;AAC5D,MAAM,MAAM,kBAAkB,GAAG,mBAAmB,CAAC;AAErD,mDAAmD;AACnD,MAAM,WAAW,oBACf,SAAQ,IAAI,CACV,sBAAsB,CAAC,mBAAmB,CAAC,EACzC,UAAU,GACV,WAAW,GACX,cAAc,GACd,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,OAAO,GACP,OAAO,CACV;IACD,yCAAyC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oCAAoC;IACpC,GAAG,CAAC,EAAE,GAAG,CAAC,mBAAmB,CAAC,CAAC;IAC/B,gDAAgD;IAChD,IAAI,CAAC,EAAE,WAAW,CAAC;CACpB;AAED,oEAAoE;AACpE,wBAAgB,OAAO,CAAC,EACtB,SAAS,EACT,GAAG,EACH,IAAI,EACJ,GAAG,KAAK,EACT,EAAE,QAAQ,CAAC,oBAAoB,CAAC,GAAG,YAAY,CAQ/C;AAED;;;;GAIG;AACH,eAAO,MAAM,QAAQ;IACnB,yCAAyC;;IAEzC,uDAAuD;;IAEvD,6DAA6D;;IAE7D,mCAAmC;;IAEnC,oCAAoC;;CAErC,CAAC"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import type { HTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes, ReactElement, ReactNode, Ref } from 'react';
|
|
2
|
+
import type { ControlSize } from '../../internal/styling/visual';
|
|
3
|
+
type TextFieldRootNativeProps = Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'defaultValue' | 'onChange' | 'style'>;
|
|
4
|
+
interface TextFieldRootSharedProps extends TextFieldRootNativeProps {
|
|
5
|
+
/** Compound label, input, description, and error parts. */
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
/** Prevents editing and focus. Defaults to `false`. */
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
/** Exposes invalid state to assistive technology and error styling. Defaults to `false`. */
|
|
10
|
+
invalid?: boolean;
|
|
11
|
+
/** Marks the field as required for native validation and assistive technology. Defaults to `false`. */
|
|
12
|
+
required?: boolean;
|
|
13
|
+
/** Ref to the rendered field container. */
|
|
14
|
+
ref?: Ref<HTMLDivElement>;
|
|
15
|
+
}
|
|
16
|
+
interface ControlledTextFieldRootProps {
|
|
17
|
+
/** Current text value. */
|
|
18
|
+
value: string;
|
|
19
|
+
/** Called with the next text value. */
|
|
20
|
+
onChange: (value: string) => void;
|
|
21
|
+
defaultValue?: never;
|
|
22
|
+
readOnly?: false;
|
|
23
|
+
}
|
|
24
|
+
interface ReadOnlyTextFieldRootProps {
|
|
25
|
+
/** Current immutable text value. */
|
|
26
|
+
value: string;
|
|
27
|
+
/** Marks a controlled value as intentionally immutable. */
|
|
28
|
+
readOnly: true;
|
|
29
|
+
defaultValue?: never;
|
|
30
|
+
onChange?: never;
|
|
31
|
+
}
|
|
32
|
+
interface UncontrolledTextFieldRootProps {
|
|
33
|
+
/** Initial text value. Defaults to an empty string. */
|
|
34
|
+
defaultValue?: string;
|
|
35
|
+
/** Called with the next text value. */
|
|
36
|
+
onChange?: (value: string) => void;
|
|
37
|
+
readOnly?: false;
|
|
38
|
+
value?: never;
|
|
39
|
+
}
|
|
40
|
+
/** Props for controlled, read-only, or uncontrolled text field state. */
|
|
41
|
+
export type TextFieldRootProps = TextFieldRootSharedProps & (ControlledTextFieldRootProps | ReadOnlyTextFieldRootProps | UncontrolledTextFieldRootProps);
|
|
42
|
+
/** Props for the visible text field label. */
|
|
43
|
+
export interface TextFieldLabelProps extends Omit<LabelHTMLAttributes<HTMLLabelElement>, 'style'> {
|
|
44
|
+
/** Label content that persistently names the input. */
|
|
45
|
+
children: ReactNode;
|
|
46
|
+
/** Ref to the rendered label. */
|
|
47
|
+
ref?: Ref<HTMLLabelElement>;
|
|
48
|
+
}
|
|
49
|
+
/** Props for the native text input part. */
|
|
50
|
+
export interface TextFieldInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'children' | 'className' | 'defaultValue' | 'disabled' | 'onChange' | 'readOnly' | 'required' | 'size' | 'style' | 'type' | 'value'> {
|
|
51
|
+
/** Placement and composition classes. */
|
|
52
|
+
className?: string;
|
|
53
|
+
/** Ref to the rendered input. */
|
|
54
|
+
ref?: Ref<HTMLInputElement>;
|
|
55
|
+
/** Canonical control size. Defaults to `md`. */
|
|
56
|
+
size?: ControlSize;
|
|
57
|
+
/** Native text-entry purpose. Defaults to `text`. */
|
|
58
|
+
type?: 'email' | 'password' | 'tel' | 'text' | 'url';
|
|
59
|
+
}
|
|
60
|
+
/** Props for supporting text associated with the input. */
|
|
61
|
+
export interface TextFieldDescriptionProps extends Omit<HTMLAttributes<HTMLElement>, 'style'> {
|
|
62
|
+
/** Supporting guidance for the input. */
|
|
63
|
+
children: ReactNode;
|
|
64
|
+
/** Ref to the rendered description. */
|
|
65
|
+
ref?: Ref<HTMLElement>;
|
|
66
|
+
}
|
|
67
|
+
/** Props for an accessible validation message. */
|
|
68
|
+
export interface TextFieldErrorProps extends Omit<HTMLAttributes<HTMLElement>, 'style'> {
|
|
69
|
+
/** Validation message shown while the root is invalid. */
|
|
70
|
+
children: ReactNode;
|
|
71
|
+
/** Ref to the rendered error message. */
|
|
72
|
+
ref?: Ref<HTMLElement>;
|
|
73
|
+
}
|
|
74
|
+
/** Coordinates accessible text field state and compound anatomy. */
|
|
75
|
+
export declare function Root({ children, className, defaultValue, disabled, invalid, onChange, readOnly, ref, required, value, ...props }: Readonly<TextFieldRootProps>): ReactElement;
|
|
76
|
+
/** Renders the persistent accessible label for a TextField. */
|
|
77
|
+
export declare function Label({ className, ref, ...props }: Readonly<TextFieldLabelProps>): ReactElement;
|
|
78
|
+
/** Renders the editable native input for a TextField. */
|
|
79
|
+
export declare function Input({ className, ref, size, type, ...props }: Readonly<TextFieldInputProps>): ReactElement;
|
|
80
|
+
/** Renders supporting guidance and associates it with a TextField input. */
|
|
81
|
+
export declare function Description({ className, ref, ...props }: Readonly<TextFieldDescriptionProps>): ReactElement;
|
|
82
|
+
/** Renders an associated validation message while a TextField is invalid. */
|
|
83
|
+
declare function ErrorMessage({ className, ref, ...props }: Readonly<TextFieldErrorProps>): ReactElement;
|
|
84
|
+
export { ErrorMessage as Error };
|
|
85
|
+
/**
|
|
86
|
+
* Accessible compound single-line text-entry primitive.
|
|
87
|
+
*
|
|
88
|
+
* @summary labelled single-line text entry with validation anatomy
|
|
89
|
+
*/
|
|
90
|
+
export declare const TextField: {
|
|
91
|
+
/** Supporting guidance associated with the input. */
|
|
92
|
+
Description: typeof Description;
|
|
93
|
+
/** Validation message associated with an invalid input. */
|
|
94
|
+
Error: typeof ErrorMessage;
|
|
95
|
+
/** Editable native input. */
|
|
96
|
+
Input: typeof Input;
|
|
97
|
+
/** Persistent accessible label. */
|
|
98
|
+
Label: typeof Label;
|
|
99
|
+
/** State and accessibility root. */
|
|
100
|
+
Root: typeof Root;
|
|
101
|
+
};
|
|
102
|
+
//# sourceMappingURL=TextField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../src/primitives/TextField/TextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,cAAc,EACd,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,EACZ,SAAS,EACT,GAAG,EACJ,MAAM,OAAO,CAAC;AAUf,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAuBjE,KAAK,wBAAwB,GAAG,IAAI,CAClC,cAAc,CAAC,cAAc,CAAC,EAC9B,UAAU,GAAG,cAAc,GAAG,UAAU,GAAG,OAAO,CACnD,CAAC;AAEF,UAAU,wBAAyB,SAAQ,wBAAwB;IACjE,2DAA2D;IAC3D,QAAQ,EAAE,SAAS,CAAC;IACpB,uDAAuD;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,4FAA4F;IAC5F,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,uGAAuG;IACvG,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,2CAA2C;IAC3C,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC3B;AAED,UAAU,4BAA4B;IACpC,0BAA0B;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC;CAClB;AAED,UAAU,0BAA0B;IAClC,oCAAoC;IACpC,KAAK,EAAE,MAAM,CAA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