@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,174 @@
|
|
|
1
|
+
import type { ButtonHTMLAttributes, HTMLAttributes, InputHTMLAttributes, ReactElement, ReactNode, Ref } from 'react';
|
|
2
|
+
import type { ControlSize } from '../../internal/styling/visual';
|
|
3
|
+
import type { BreezeCollectionItem, CollectionContentProps, CollectionKey } from '../../internal/types/collection';
|
|
4
|
+
import { type ListBoxItemProps } from '../ListBox/ListBox';
|
|
5
|
+
import { type TextFieldDescriptionProps, type TextFieldErrorProps, type TextFieldLabelProps } from '../TextField/TextField';
|
|
6
|
+
type Native = Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'defaultValue' | 'onChange' | 'style'>;
|
|
7
|
+
interface Shared extends Native {
|
|
8
|
+
/** Compound label, input, trigger, popover, options, and guidance parts. */ children: ReactNode;
|
|
9
|
+
/** Prevents focus, input, and selection. Defaults to `false`. */ disabled?: boolean;
|
|
10
|
+
/** Associates the native form value with an external form. */ form?: string;
|
|
11
|
+
/** Exposes invalid state to the input and validation message. Defaults to `false`. */ invalid?: boolean;
|
|
12
|
+
/** Native form field name for the selected key or free-form text. */ name?: string;
|
|
13
|
+
/** Temporary text shown when the input is empty. */ placeholder?: string;
|
|
14
|
+
/** Marks the combobox as required. Defaults to `false`. */ required?: boolean;
|
|
15
|
+
/** Ref to the rendered field root. */ ref?: Ref<HTMLDivElement>;
|
|
16
|
+
}
|
|
17
|
+
type SelectionControlled = {
|
|
18
|
+
/** Current selected key, or `null` when no option is selected. */
|
|
19
|
+
selection: CollectionKey | null;
|
|
20
|
+
/** Called when the selected key changes. */
|
|
21
|
+
onSelectionChange: (selection: CollectionKey | null) => void;
|
|
22
|
+
/** Excluded when selection is controlled. */
|
|
23
|
+
defaultSelection?: never;
|
|
24
|
+
} | {
|
|
25
|
+
/** Initial selected key. */
|
|
26
|
+
defaultSelection?: CollectionKey;
|
|
27
|
+
/** Called when the selected key changes. */
|
|
28
|
+
onSelectionChange?: (selection: CollectionKey | null) => void;
|
|
29
|
+
/** Excluded when selection is uncontrolled. */
|
|
30
|
+
selection?: never;
|
|
31
|
+
};
|
|
32
|
+
type InputControlled = {
|
|
33
|
+
/** Current text displayed in the input. */
|
|
34
|
+
inputValue: string;
|
|
35
|
+
/** Called when the displayed input text changes. */
|
|
36
|
+
onInputChange: (value: string) => void;
|
|
37
|
+
/** Excluded when input text is controlled. */
|
|
38
|
+
defaultInputValue?: never;
|
|
39
|
+
} | {
|
|
40
|
+
/** Initial text displayed in the input. */
|
|
41
|
+
defaultInputValue?: string;
|
|
42
|
+
/** Called when the displayed input text changes. */
|
|
43
|
+
onInputChange?: (value: string) => void;
|
|
44
|
+
/** Excluded when input text is uncontrolled. */
|
|
45
|
+
inputValue?: never;
|
|
46
|
+
};
|
|
47
|
+
type Mutable = SelectionControlled & InputControlled & {
|
|
48
|
+
/** Mutable state cannot be marked read-only. */
|
|
49
|
+
readOnly?: false;
|
|
50
|
+
};
|
|
51
|
+
interface SelectionReadOnly {
|
|
52
|
+
/** Current selected key, or `null` when no option is selected. */
|
|
53
|
+
selection: CollectionKey | null;
|
|
54
|
+
/** Current immutable input text. */
|
|
55
|
+
inputValue: string;
|
|
56
|
+
/** Prevents changes to the controlled input and selection. */
|
|
57
|
+
readOnly: true;
|
|
58
|
+
/** Excluded when selection is controlled. */
|
|
59
|
+
defaultSelection?: never;
|
|
60
|
+
/** Excluded when input text is controlled. */
|
|
61
|
+
defaultInputValue?: never;
|
|
62
|
+
/** Excluded because read-only selection cannot change. */
|
|
63
|
+
onSelectionChange?: never;
|
|
64
|
+
/** Excluded because read-only input text cannot change. */
|
|
65
|
+
onInputChange?: never;
|
|
66
|
+
}
|
|
67
|
+
interface CustomValueReadOnly {
|
|
68
|
+
/** Current immutable free-form input text. */
|
|
69
|
+
inputValue: string;
|
|
70
|
+
/** Current suggestion key, or `null` when no option is selected. */
|
|
71
|
+
selection?: CollectionKey | null;
|
|
72
|
+
/** Prevents changes to the controlled input and selection. */
|
|
73
|
+
readOnly: true;
|
|
74
|
+
/** Excluded when selection is controlled. */
|
|
75
|
+
defaultSelection?: never;
|
|
76
|
+
/** Excluded when input text is controlled. */
|
|
77
|
+
defaultInputValue?: never;
|
|
78
|
+
/** Excluded because read-only selection cannot change. */
|
|
79
|
+
onSelectionChange?: never;
|
|
80
|
+
/** Excluded because read-only input text cannot change. */
|
|
81
|
+
onInputChange?: never;
|
|
82
|
+
}
|
|
83
|
+
type SelectionOnly = {
|
|
84
|
+
/** Requires the committed value to match an option. This is the default. */
|
|
85
|
+
allowsCustomValue?: false;
|
|
86
|
+
/** Free-form commits are unavailable in selection-only mode. */
|
|
87
|
+
onCommit?: never;
|
|
88
|
+
} & (Mutable | SelectionReadOnly);
|
|
89
|
+
type CustomValue = {
|
|
90
|
+
/** Allows arbitrary text to be committed without selecting an option. */
|
|
91
|
+
allowsCustomValue: true;
|
|
92
|
+
/** Called with the current text when Enter commits without a highlighted option. */
|
|
93
|
+
onCommit?: (value: string) => void;
|
|
94
|
+
} & (Mutable | CustomValueReadOnly);
|
|
95
|
+
/** Props for selection-only or free-form ComboBox state. */ export type ComboBoxRootProps = Shared & (SelectionOnly | CustomValue);
|
|
96
|
+
/** Props for the visible combobox label. */ export type ComboBoxLabelProps = TextFieldLabelProps;
|
|
97
|
+
/** Props for supporting combobox guidance. */ export type ComboBoxDescriptionProps = TextFieldDescriptionProps;
|
|
98
|
+
/** Props for a combobox validation message. */ export type ComboBoxErrorProps = TextFieldErrorProps;
|
|
99
|
+
/** Props for the single-surface combobox input and trigger group. */
|
|
100
|
+
export interface ComboBoxGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, 'style'> {
|
|
101
|
+
/** Editable input and popup trigger. */
|
|
102
|
+
children: ReactNode;
|
|
103
|
+
/** Ref to the rendered group. */
|
|
104
|
+
ref?: Ref<HTMLDivElement>;
|
|
105
|
+
/** Canonical size applied to every grouped control part. Defaults to `md`. */
|
|
106
|
+
size?: ControlSize;
|
|
107
|
+
}
|
|
108
|
+
/** Editable combobox input props. */ export interface ComboBoxInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'defaultValue' | 'disabled' | 'onChange' | 'readOnly' | 'required' | 'size' | 'style' | 'value'> {
|
|
109
|
+
/** Ref to the rendered native text input. */ ref?: Ref<HTMLInputElement>;
|
|
110
|
+
/** Standalone input size. A containing Group takes precedence. Defaults to `md`. */
|
|
111
|
+
size?: ControlSize;
|
|
112
|
+
}
|
|
113
|
+
/** Popup trigger props. */ export interface ComboBoxTriggerProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick' | 'style'> {
|
|
114
|
+
/** Optional trigger content. Defaults to the Breeze down chevron. */ children?: ReactNode;
|
|
115
|
+
/** Ref to the popup trigger button. */ ref?: Ref<HTMLButtonElement>;
|
|
116
|
+
/** Standalone trigger size. A containing Group takes precedence. Defaults to `md`. */
|
|
117
|
+
size?: ControlSize;
|
|
118
|
+
}
|
|
119
|
+
/** Popover props. */ export interface ComboBoxPopoverProps extends Omit<HTMLAttributes<HTMLElement>, 'style'> {
|
|
120
|
+
/** Option-list content. */ children: ReactNode;
|
|
121
|
+
/** Ref to the positioned popover element. */ ref?: Ref<HTMLElement>;
|
|
122
|
+
}
|
|
123
|
+
/** Static or typed generic option-list props. */ export type ComboBoxListBoxProps<Item extends BreezeCollectionItem = BreezeCollectionItem> = Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'style'> & CollectionContentProps<Item> & {
|
|
124
|
+
/** Content announced and displayed when filtering leaves no matching options. */ emptyContent?: ReactNode;
|
|
125
|
+
/** Ref to the rendered listbox. */ ref?: Ref<HTMLDivElement>;
|
|
126
|
+
};
|
|
127
|
+
/** Props for one keyed combobox option. */ export type ComboBoxItemProps = ListBoxItemProps;
|
|
128
|
+
/** Props for application-owned asynchronous option loading presentation. */
|
|
129
|
+
export interface ComboBoxLoadingProps extends Omit<HTMLAttributes<HTMLDivElement>, 'style'> {
|
|
130
|
+
/** Loading message announced politely while options are pending. */
|
|
131
|
+
children: ReactNode;
|
|
132
|
+
/** Ref to the rendered loading status. */
|
|
133
|
+
ref?: Ref<HTMLDivElement>;
|
|
134
|
+
}
|
|
135
|
+
/** Props for application-owned option loading failure presentation. */
|
|
136
|
+
export interface ComboBoxOptionsErrorProps extends Omit<HTMLAttributes<HTMLDivElement>, 'style'> {
|
|
137
|
+
/** Failure message announced assertively when options cannot load. */
|
|
138
|
+
children: ReactNode;
|
|
139
|
+
/** Ref to the rendered option failure alert. */
|
|
140
|
+
ref?: Ref<HTMLDivElement>;
|
|
141
|
+
}
|
|
142
|
+
/** Coordinates selection-only or free-form input, options, and form state. */
|
|
143
|
+
export declare function Root({ allowsCustomValue, children, className, defaultInputValue, defaultSelection, disabled, form, inputValue, invalid, name, onCommit, onInputChange, onSelectionChange, placeholder, readOnly, ref, required, selection, ...props }: Readonly<ComboBoxRootProps>): ReactElement;
|
|
144
|
+
/** Groups the editable input and popup trigger as one visual control. */
|
|
145
|
+
export declare function Group({ className, ref, role, size, ...props }: Readonly<ComboBoxGroupProps>): ReactElement;
|
|
146
|
+
/** Renders the editable option filter or free-form input. */ export declare function Input({ className, onKeyDownCapture, ref, size, ...props }: Readonly<ComboBoxInputProps>): ReactElement;
|
|
147
|
+
/** Opens the option popup. */ export declare function Trigger({ children, className, ref, size, ...props }: Readonly<ComboBoxTriggerProps>): ReactElement;
|
|
148
|
+
/** Positions options. */ export declare function Popover({ className, ref, ...props }: Readonly<ComboBoxPopoverProps>): ReactElement;
|
|
149
|
+
/** Renders static or generic options. */ export declare function ListBox<Item extends BreezeCollectionItem>({ children, className, emptyContent, items, ref, ...props }: Readonly<ComboBoxListBoxProps<Item>>): ReactElement;
|
|
150
|
+
/** Announces application-owned option loading without orchestrating data. */
|
|
151
|
+
export declare function Loading({ className, ref, ...props }: Readonly<ComboBoxLoadingProps>): ReactElement;
|
|
152
|
+
/** Announces an application-owned option loading failure. */
|
|
153
|
+
export declare function OptionsError({ className, ref, ...props }: Readonly<ComboBoxOptionsErrorProps>): ReactElement;
|
|
154
|
+
/**
|
|
155
|
+
* Accessible selection-only or free-form combobox primitive.
|
|
156
|
+
*
|
|
157
|
+
* @summary editable keyed option selection with explicit free-form mode
|
|
158
|
+
*/
|
|
159
|
+
export declare const ComboBox: {
|
|
160
|
+
/** Supporting guidance associated with the combobox. */ Description: typeof import("../TextField/TextField").Description;
|
|
161
|
+
/** Validation feedback associated with the combobox. */ Error: typeof import("../TextField/TextField").Error;
|
|
162
|
+
/** Single-surface editable input and popup trigger group. */ Group: typeof Group;
|
|
163
|
+
/** Editable input that filters and displays the selected option. */ Input: typeof Input;
|
|
164
|
+
/** One keyed option within `ComboBox.ListBox`. */ Item: typeof import("../ListBox/ListBox").Item;
|
|
165
|
+
/** Visible label associated with the combobox input. */ Label: typeof import("../TextField/TextField").Label;
|
|
166
|
+
/** Static or typed generic option collection. */ ListBox: typeof ListBox;
|
|
167
|
+
/** Polite application-owned asynchronous option loading status. */ Loading: typeof Loading;
|
|
168
|
+
/** Assertive application-owned option loading failure alert. */ OptionsError: typeof OptionsError;
|
|
169
|
+
/** Popup positioned relative to the input and trigger. */ Popover: typeof Popover;
|
|
170
|
+
/** Input, selection, validation, and native-form coordination root. */ Root: typeof Root;
|
|
171
|
+
/** Button that opens and closes the option popup. */ Trigger: typeof Trigger;
|
|
172
|
+
};
|
|
173
|
+
export {};
|
|
174
|
+
//# sourceMappingURL=ComboBox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComboBox.d.ts","sourceRoot":"","sources":["../../../src/primitives/ComboBox/ComboBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EAEpB,cAAc,EACd,mBAAmB,EAEnB,YAAY,EACZ,SAAS,EACT,GAAG,EACJ,MAAM,OAAO,CAAC;AAgBf,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,KAAK,EACV,oBAAoB,EACpB,sBAAsB,EACtB,aAAa,EACd,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAEL,KAAK,gBAAgB,EACtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAEL,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACzB,MAAM,wBAAwB,CAAC;AAyFhC,KAAK,MAAM,GAAG,IAAI,CAChB,cAAc,CAAC,cAAc,CAAC,EAC9B,UAAU,GAAG,cAAc,GAAG,UAAU,GAAG,OAAO,CACnD,CAAC;AACF,UAAU,MAAO,SAAQ,MAAM;IAC7B,4EAA4E,CAAC,QAAQ,EAAE,SAAS,CAAC;IACjG,iEAAiE,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACrF,8DAA8D,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAC7E,sFAAsF,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IACzG,qEAAqE,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACpF,oDAAoD,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;I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tD,CAAC"}
|
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
import { type LayoutElementProps, type ResponsiveSpace } from '../../internal/styling/layout';
|
|
2
|
+
/** Props for the bounded Breeze application workspace. */
|
|
3
|
+
export interface ContainerProps extends LayoutElementProps {
|
|
4
|
+
/** Responsive inline and block gutter. Defaults from `md` at base to `page` at `lg`. */
|
|
5
|
+
padding?: ResponsiveSpace;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Centers content in a full-width workspace with responsive
|
|
9
|
+
* page gutters.
|
|
10
|
+
*
|
|
11
|
+
* @summary bounded application workspace with responsive page gutters
|
|
12
|
+
*/
|
|
13
|
+
export declare function Container({ className, padding, ...props }: Readonly<ContainerProps>): import("react").DetailedReactHTMLElement<{
|
|
14
|
+
key?: import("react").Key | null | undefined;
|
|
15
|
+
ref?: import("react").Ref<HTMLDivElement> | undefined;
|
|
16
|
+
children?: import("react").ReactNode | undefined;
|
|
17
|
+
dangerouslySetInnerHTML?: {
|
|
18
|
+
__html: string | TrustedHTML;
|
|
19
|
+
} | undefined;
|
|
20
|
+
onCopy?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
21
|
+
onCopyCapture?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
22
|
+
onCut?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
23
|
+
onCutCapture?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
24
|
+
onPaste?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
25
|
+
onPasteCapture?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
26
|
+
onCompositionEnd?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
27
|
+
onCompositionEndCapture?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
28
|
+
onCompositionStart?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
29
|
+
onCompositionStartCapture?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
30
|
+
onCompositionUpdate?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
31
|
+
onCompositionUpdateCapture?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
32
|
+
onFocus?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
33
|
+
onFocusCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
34
|
+
onBlur?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
35
|
+
onBlurCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
36
|
+
onChange?: import("react").ChangeEventHandler<HTMLDivElement, Element> | undefined;
|
|
37
|
+
onChangeCapture?: import("react").ChangeEventHandler<HTMLDivElement, Element> | undefined;
|
|
38
|
+
onBeforeInput?: import("react").InputEventHandler<HTMLDivElement> | undefined;
|
|
39
|
+
onBeforeInputCapture?: import("react").InputEventHandler<HTMLDivElement> | undefined;
|
|
40
|
+
onInput?: import("react").InputEventHandler<HTMLDivElement> | undefined;
|
|
41
|
+
onInputCapture?: import("react").InputEventHandler<HTMLDivElement> | undefined;
|
|
42
|
+
onReset?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
43
|
+
onResetCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
44
|
+
onSubmit?: import("react").SubmitEventHandler<HTMLDivElement> | undefined;
|
|
45
|
+
onSubmitCapture?: import("react").SubmitEventHandler<HTMLDivElement> | undefined;
|
|
46
|
+
onInvalid?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
47
|
+
onInvalidCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
48
|
+
onLoad?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
49
|
+
onLoadCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
50
|
+
onError?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
51
|
+
onErrorCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
52
|
+
onKeyDown?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
53
|
+
onKeyDownCapture?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
54
|
+
onKeyPress?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
55
|
+
onKeyPressCapture?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
56
|
+
onKeyUp?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
57
|
+
onKeyUpCapture?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
58
|
+
onAbort?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
59
|
+
onAbortCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
60
|
+
onCanPlay?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
61
|
+
onCanPlayCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
62
|
+
onCanPlayThrough?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
63
|
+
onCanPlayThroughCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
64
|
+
onDurationChange?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
65
|
+
onDurationChangeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
66
|
+
onEmptied?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
67
|
+
onEmptiedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
68
|
+
onEncrypted?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
69
|
+
onEncryptedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
70
|
+
onEnded?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
71
|
+
onEndedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
72
|
+
onLoadedData?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
73
|
+
onLoadedDataCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
74
|
+
onLoadedMetadata?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
75
|
+
onLoadedMetadataCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
76
|
+
onLoadStart?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
77
|
+
onLoadStartCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
78
|
+
onPause?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
79
|
+
onPauseCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
80
|
+
onPlay?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
81
|
+
onPlayCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
82
|
+
onPlaying?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
83
|
+
onPlayingCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
84
|
+
onProgress?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
85
|
+
onProgressCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
86
|
+
onRateChange?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
87
|
+
onRateChangeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
88
|
+
onSeeked?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
89
|
+
onSeekedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
90
|
+
onSeeking?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
91
|
+
onSeekingCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
92
|
+
onStalled?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
93
|
+
onStalledCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
94
|
+
onSuspend?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
95
|
+
onSuspendCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
96
|
+
onTimeUpdate?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
97
|
+
onTimeUpdateCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
98
|
+
onVolumeChange?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
99
|
+
onVolumeChangeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
100
|
+
onWaiting?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
101
|
+
onWaitingCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
102
|
+
onAuxClick?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
103
|
+
onAuxClickCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
104
|
+
onClick?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
105
|
+
onClickCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
106
|
+
onContextMenu?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
107
|
+
onContextMenuCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
108
|
+
onDoubleClick?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
109
|
+
onDoubleClickCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
110
|
+
onDrag?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
111
|
+
onDragCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
112
|
+
onDragEnd?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
113
|
+
onDragEndCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
114
|
+
onDragEnter?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
115
|
+
onDragEnterCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
116
|
+
onDragExit?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
117
|
+
onDragExitCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
118
|
+
onDragLeave?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
119
|
+
onDragLeaveCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
120
|
+
onDragOver?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
121
|
+
onDragOverCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
122
|
+
onDragStart?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
123
|
+
onDragStartCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
124
|
+
onDrop?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
125
|
+
onDropCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
126
|
+
onMouseDown?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
127
|
+
onMouseDownCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
128
|
+
onMouseEnter?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
129
|
+
onMouseLeave?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
130
|
+
onMouseMove?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
131
|
+
onMouseMoveCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
132
|
+
onMouseOut?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
133
|
+
onMouseOutCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
134
|
+
onMouseOver?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
135
|
+
onMouseOverCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
136
|
+
onMouseUp?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
137
|
+
onMouseUpCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
138
|
+
onSelect?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
139
|
+
onSelectCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
140
|
+
onTouchCancel?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
141
|
+
onTouchCancelCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
142
|
+
onTouchEnd?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
143
|
+
onTouchEndCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
144
|
+
onTouchMove?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
145
|
+
onTouchMoveCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
146
|
+
onTouchStart?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
147
|
+
onTouchStartCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
148
|
+
onPointerDown?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
149
|
+
onPointerDownCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
150
|
+
onPointerMove?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
151
|
+
onPointerMoveCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
152
|
+
onPointerUp?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
153
|
+
onPointerUpCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
154
|
+
onPointerCancel?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
155
|
+
onPointerCancelCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
156
|
+
onPointerEnter?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
157
|
+
onPointerLeave?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
158
|
+
onPointerOver?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
159
|
+
onPointerOverCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
160
|
+
onPointerOut?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
161
|
+
onPointerOutCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
162
|
+
onGotPointerCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
163
|
+
onGotPointerCaptureCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
164
|
+
onLostPointerCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
165
|
+
onLostPointerCaptureCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
166
|
+
onScroll?: import("react").UIEventHandler<HTMLDivElement> | undefined;
|
|
167
|
+
onScrollCapture?: import("react").UIEventHandler<HTMLDivElement> | undefined;
|
|
168
|
+
onScrollEnd?: import("react").UIEventHandler<HTMLDivElement> | undefined;
|
|
169
|
+
onScrollEndCapture?: import("react").UIEventHandler<HTMLDivElement> | undefined;
|
|
170
|
+
onWheel?: import("react").WheelEventHandler<HTMLDivElement> | undefined;
|
|
171
|
+
onWheelCapture?: import("react").WheelEventHandler<HTMLDivElement> | undefined;
|
|
172
|
+
onAnimationStart?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
173
|
+
onAnimationStartCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
174
|
+
onAnimationEnd?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
175
|
+
onAnimationEndCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
176
|
+
onAnimationIteration?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
177
|
+
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
178
|
+
onToggle?: import("react").ToggleEventHandler<HTMLDivElement> | undefined;
|
|
179
|
+
onBeforeToggle?: import("react").ToggleEventHandler<HTMLDivElement> | undefined;
|
|
180
|
+
onTransitionCancel?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
181
|
+
onTransitionCancelCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
182
|
+
onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
183
|
+
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
184
|
+
onTransitionRun?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
185
|
+
onTransitionRunCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
186
|
+
onTransitionStart?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
187
|
+
onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
188
|
+
"aria-activedescendant"?: string | undefined;
|
|
189
|
+
"aria-atomic"?: ("false" | "true" | boolean) | undefined;
|
|
190
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
191
|
+
"aria-braillelabel"?: string | undefined;
|
|
192
|
+
"aria-brailleroledescription"?: string | undefined;
|
|
193
|
+
"aria-busy"?: ("false" | "true" | boolean) | undefined;
|
|
194
|
+
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
195
|
+
"aria-colcount"?: number | undefined;
|
|
196
|
+
"aria-colindex"?: number | undefined;
|
|
197
|
+
"aria-colindextext"?: string | undefined;
|
|
198
|
+
"aria-colspan"?: number | undefined;
|
|
199
|
+
"aria-controls"?: string | undefined;
|
|
200
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
201
|
+
"aria-describedby"?: string | undefined;
|
|
202
|
+
"aria-description"?: string | undefined;
|
|
203
|
+
"aria-details"?: string | undefined;
|
|
204
|
+
"aria-disabled"?: ("false" | "true" | boolean) | undefined;
|
|
205
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
206
|
+
"aria-errormessage"?: string | undefined;
|
|
207
|
+
"aria-expanded"?: ("false" | "true" | boolean) | undefined;
|
|
208
|
+
"aria-flowto"?: string | undefined;
|
|
209
|
+
"aria-grabbed"?: ("false" | "true" | boolean) | undefined;
|
|
210
|
+
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
211
|
+
"aria-hidden"?: ("false" | "true" | boolean) | undefined;
|
|
212
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
213
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
214
|
+
"aria-label"?: string | undefined;
|
|
215
|
+
"aria-labelledby"?: string | undefined;
|
|
216
|
+
"aria-level"?: number | undefined;
|
|
217
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
218
|
+
"aria-modal"?: ("false" | "true" | boolean) | undefined;
|
|
219
|
+
"aria-multiline"?: ("false" | "true" | boolean) | undefined;
|
|
220
|
+
"aria-multiselectable"?: ("false" | "true" | boolean) | undefined;
|
|
221
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
222
|
+
"aria-owns"?: string | undefined;
|
|
223
|
+
"aria-placeholder"?: string | undefined;
|
|
224
|
+
"aria-posinset"?: number | undefined;
|
|
225
|
+
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
226
|
+
"aria-readonly"?: ("false" | "true" | boolean) | undefined;
|
|
227
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
228
|
+
"aria-required"?: ("false" | "true" | boolean) | undefined;
|
|
229
|
+
"aria-roledescription"?: string | undefined;
|
|
230
|
+
"aria-rowcount"?: number | undefined;
|
|
231
|
+
"aria-rowindex"?: number | undefined;
|
|
232
|
+
"aria-rowindextext"?: string | undefined;
|
|
233
|
+
"aria-rowspan"?: number | undefined;
|
|
234
|
+
"aria-selected"?: ("false" | "true" | boolean) | undefined;
|
|
235
|
+
"aria-setsize"?: number | undefined;
|
|
236
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
237
|
+
"aria-valuemax"?: number | undefined;
|
|
238
|
+
"aria-valuemin"?: number | undefined;
|
|
239
|
+
"aria-valuenow"?: number | undefined;
|
|
240
|
+
"aria-valuetext"?: string | undefined;
|
|
241
|
+
defaultChecked?: boolean | undefined;
|
|
242
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
243
|
+
suppressContentEditableWarning?: boolean | undefined;
|
|
244
|
+
suppressHydrationWarning?: boolean | undefined;
|
|
245
|
+
accessKey?: string | undefined;
|
|
246
|
+
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
|
|
247
|
+
autoFocus?: boolean | undefined;
|
|
248
|
+
contentEditable?: ("false" | "true" | boolean) | "inherit" | "plaintext-only" | undefined;
|
|
249
|
+
contextMenu?: string | undefined;
|
|
250
|
+
dir?: string | undefined;
|
|
251
|
+
draggable?: ("false" | "true" | boolean) | undefined;
|
|
252
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
253
|
+
hidden?: boolean | undefined;
|
|
254
|
+
id?: string | undefined;
|
|
255
|
+
lang?: string | undefined;
|
|
256
|
+
nonce?: string | undefined;
|
|
257
|
+
slot?: string | undefined;
|
|
258
|
+
spellCheck?: ("false" | "true" | boolean) | undefined;
|
|
259
|
+
tabIndex?: number | undefined;
|
|
260
|
+
title?: string | undefined;
|
|
261
|
+
translate?: "yes" | "no" | undefined;
|
|
262
|
+
radioGroup?: string | undefined;
|
|
263
|
+
role?: import("react").AriaRole | undefined;
|
|
264
|
+
about?: string | undefined;
|
|
265
|
+
content?: string | undefined;
|
|
266
|
+
datatype?: string | undefined;
|
|
267
|
+
inlist?: any;
|
|
268
|
+
prefix?: string | undefined;
|
|
269
|
+
property?: string | undefined;
|
|
270
|
+
rel?: string | undefined;
|
|
271
|
+
resource?: string | undefined;
|
|
272
|
+
rev?: string | undefined;
|
|
273
|
+
typeof?: string | undefined;
|
|
274
|
+
vocab?: string | undefined;
|
|
275
|
+
autoCorrect?: string | undefined;
|
|
276
|
+
autoSave?: string | undefined;
|
|
277
|
+
color?: string | undefined;
|
|
278
|
+
itemProp?: string | undefined;
|
|
279
|
+
itemScope?: boolean | undefined;
|
|
280
|
+
itemType?: string | undefined;
|
|
281
|
+
itemID?: string | undefined;
|
|
282
|
+
itemRef?: string | undefined;
|
|
283
|
+
results?: number | undefined;
|
|
284
|
+
security?: string | undefined;
|
|
285
|
+
unselectable?: "on" | "off" | undefined;
|
|
286
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined;
|
|
287
|
+
popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
|
|
288
|
+
popoverTarget?: string | undefined;
|
|
289
|
+
inert?: boolean | undefined;
|
|
290
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
291
|
+
is?: string | undefined;
|
|
292
|
+
exportparts?: string | undefined;
|
|
293
|
+
part?: string | undefined;
|
|
294
|
+
className: string;
|
|
295
|
+
}, HTMLDivElement>;
|
|
296
|
+
//# sourceMappingURL=Container.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Container.d.ts","sourceRoot":"","sources":["../../../src/primitives/Container/Container.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,kBAAkB,EAEvB,KAAK,eAAe,EACrB,MAAM,+BAA+B,CAAC;AAevC,0DAA0D;AAC1D,MAAM,WAAW,cAAe,SAAQ,kBAAkB;IACxD,wFAAwF;IACxF,OAAO,CAAC,EAAE,eAAe,CAAC;CAC3B;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,EACxB,SAAS,EACT,OAAwB,EACxB,GAAG,KAAK,EACT,EAAE,QAAQ,CAAC,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAS1B"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactElement, ReactNode, Ref } from 'react';
|
|
2
|
+
import { DateInputPart, type DateInputPartProps } from '../date/DateInput';
|
|
3
|
+
import { type TextFieldDescriptionProps, type TextFieldErrorProps, type TextFieldLabelProps } from '../TextField/TextField';
|
|
4
|
+
type NativeRootProps = Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'defaultValue' | 'onChange' | 'style'>;
|
|
5
|
+
interface SharedDateFieldRootProps extends NativeRootProps {
|
|
6
|
+
/** Compound label, segmented input, description, and error parts. */
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
/** Prevents focus and date editing. Defaults to `false`. */
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
/** Associates the hidden native date input with an external form. */
|
|
11
|
+
form?: string;
|
|
12
|
+
/** Hidden native date input ref used for form integration. */
|
|
13
|
+
inputRef?: Ref<HTMLInputElement>;
|
|
14
|
+
/** Exposes invalid state to the segmented input. Defaults to `false`. */
|
|
15
|
+
invalid?: boolean;
|
|
16
|
+
/** Returns whether a stable date string is unavailable. */
|
|
17
|
+
isDateUnavailable?: (date: string) => boolean;
|
|
18
|
+
/** Latest selectable `YYYY-MM-DD` date. */
|
|
19
|
+
maxValue?: string;
|
|
20
|
+
/** Earliest selectable `YYYY-MM-DD` date. */
|
|
21
|
+
minValue?: string;
|
|
22
|
+
/** Native form field name for the stable date string. */
|
|
23
|
+
name?: string;
|
|
24
|
+
/** Marks the date as required. Defaults to `false`. */
|
|
25
|
+
required?: boolean;
|
|
26
|
+
/** Ref to the rendered date-field root. */
|
|
27
|
+
ref?: Ref<HTMLDivElement>;
|
|
28
|
+
}
|
|
29
|
+
type DateFieldState = {
|
|
30
|
+
/** Current controlled date, or `null` when empty. */
|
|
31
|
+
value: string | null;
|
|
32
|
+
/** Called with the next stable date string or `null`. */
|
|
33
|
+
onChange: (value: string | null) => void;
|
|
34
|
+
/** Excluded when the date is controlled. */
|
|
35
|
+
defaultValue?: never;
|
|
36
|
+
/** Mutable controlled state cannot be marked read-only. */
|
|
37
|
+
readOnly?: false;
|
|
38
|
+
} | {
|
|
39
|
+
/** Current immutable date, or `null` when empty. */
|
|
40
|
+
value: string | null;
|
|
41
|
+
/** Prevents changes to the controlled date. */
|
|
42
|
+
readOnly: true;
|
|
43
|
+
/** Excluded when the date is controlled. */
|
|
44
|
+
defaultValue?: never;
|
|
45
|
+
/** Excluded because read-only dates cannot change. */
|
|
46
|
+
onChange?: never;
|
|
47
|
+
} | {
|
|
48
|
+
/** Initial uncontrolled date, or `null` when empty. */
|
|
49
|
+
defaultValue?: string | null;
|
|
50
|
+
/** Called with the next stable date string or `null`. */
|
|
51
|
+
onChange?: (value: string | null) => void;
|
|
52
|
+
/** Uncontrolled state cannot be marked read-only. */
|
|
53
|
+
readOnly?: false;
|
|
54
|
+
/** Excluded when the date is uncontrolled. */
|
|
55
|
+
value?: never;
|
|
56
|
+
};
|
|
57
|
+
/** Props for controlled, uncontrolled, or read-only stable date state. */
|
|
58
|
+
export type DateFieldRootProps = SharedDateFieldRootProps & DateFieldState;
|
|
59
|
+
/** Props for the visible date-field label. */
|
|
60
|
+
export type DateFieldLabelProps = TextFieldLabelProps;
|
|
61
|
+
/** Props for the segmented date input. */
|
|
62
|
+
export type DateFieldInputProps = DateInputPartProps;
|
|
63
|
+
/** Props for supporting date-field guidance. */
|
|
64
|
+
export type DateFieldDescriptionProps = TextFieldDescriptionProps;
|
|
65
|
+
/** Props for a date-field validation message. */
|
|
66
|
+
export type DateFieldErrorProps = TextFieldErrorProps;
|
|
67
|
+
/** Coordinates stable date strings with locale-aware editable segments. */
|
|
68
|
+
export declare function Root({ children, className, defaultValue, disabled, form, inputRef, invalid, isDateUnavailable, maxValue, minValue, name, onChange, readOnly, ref, required, value, ...props }: Readonly<DateFieldRootProps>): ReactElement;
|
|
69
|
+
/**
|
|
70
|
+
* Accessible compound date field with stable string values.
|
|
71
|
+
*
|
|
72
|
+
* @summary locale-aware segmented entry for one stable date
|
|
73
|
+
*/
|
|
74
|
+
export declare const DateField: {
|
|
75
|
+
/** Supporting guidance associated with the date field. */
|
|
76
|
+
Description: typeof import("../TextField/TextField").Description;
|
|
77
|
+
/** Validation feedback associated with the date field. */
|
|
78
|
+
Error: typeof import("../TextField/TextField").Error;
|
|
79
|
+
/** Locale-aware editable date segments. */
|
|
80
|
+
Input: typeof DateInputPart;
|
|
81
|
+
/** Visible label associated with the segmented input. */
|
|
82
|
+
Label: typeof import("../TextField/TextField").Label;
|
|
83
|
+
/** Stable date state, constraints, validation, and form root. */
|
|
84
|
+
Root: typeof Root;
|
|
85
|
+
};
|
|
86
|
+
export {};
|
|
87
|
+
//# sourceMappingURL=DateField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateField.d.ts","sourceRoot":"","sources":["../../../src/primitives/DateField/DateField.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,cAAc,EACd,YAAY,EACZ,SAAS,EACT,GAAG,EACJ,MAAM,OAAO,CAAC;AAUf,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAEL,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACzB,MAAM,wBAAwB,CAAC;AAIhC,KAAK,eAAe,GAAG,IAAI,CACzB,cAAc,CAAC,cAAc,CAAC,EAC9B,UAAU,GAAG,cAAc,GAAG,UAAU,GAAG,OAAO,CACnD,CAAC;AAEF,UAAU,wBAAyB,SAAQ,eAAe;IACxD,qEAAqE;IACrE,QA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