@motech-development/breeze-ui 3.8.2 → 4.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/lib/{Cabin-LICENSE.txt → Public-Sans-LICENSE.txt} +1 -1
- package/lib/assets/public-sans-latin-wght-normal-DdeTHZLK.woff2 +0 -0
- package/lib/index.d.ts +4 -99
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +103 -6083
- package/lib/index.js.map +1 -1
- package/lib/primitives/Button/Button.d.ts +51 -25
- package/lib/primitives/Button/Button.d.ts.map +1 -1
- package/lib/provider/BreezeContext.d.ts +5 -14
- package/lib/provider/BreezeContext.d.ts.map +1 -1
- package/lib/provider/BreezeProvider.d.ts +8 -21
- package/lib/provider/BreezeProvider.d.ts.map +1 -1
- package/lib/provider/en-GB.d.ts +5 -0
- package/lib/provider/en-GB.d.ts.map +1 -0
- package/lib/reset.css +1 -2
- package/lib/styles.css +1 -1
- package/package.json +4 -13
- package/lib/assets/cabin-latin-wght-normal-DZW_uTKI.woff2 +0 -0
- package/lib/formatting/FormattedDateTime/FormattedDateTime.d.ts +0 -17
- package/lib/formatting/FormattedDateTime/FormattedDateTime.d.ts.map +0 -1
- package/lib/formatting/FormattedList/FormattedList.d.ts +0 -17
- package/lib/formatting/FormattedList/FormattedList.d.ts.map +0 -1
- package/lib/formatting/FormattedNumber/FormattedNumber.d.ts +0 -17
- package/lib/formatting/FormattedNumber/FormattedNumber.d.ts.map +0 -1
- package/lib/formatting/RelativeTime/RelativeTime.d.ts +0 -21
- package/lib/formatting/RelativeTime/RelativeTime.d.ts.map +0 -1
- package/lib/icons/index.d.ts +0 -83
- package/lib/icons/index.d.ts.map +0 -1
- package/lib/icons.js +0 -29
- package/lib/icons.js.map +0 -1
- package/lib/internal/collections/VirtualizedCollection.d.ts +0 -16
- package/lib/internal/collections/VirtualizedCollection.d.ts.map +0 -1
- package/lib/internal/collections/collectionKey.d.ts +0 -6
- package/lib/internal/collections/collectionKey.d.ts.map +0 -1
- package/lib/internal/collections/useCollectionEmptyContent.d.ts +0 -3
- package/lib/internal/collections/useCollectionEmptyContent.d.ts.map +0 -1
- package/lib/internal/collections/useLoadMoreHandler.d.ts +0 -7
- package/lib/internal/collections/useLoadMoreHandler.d.ts.map +0 -1
- package/lib/internal/date/conversion.d.ts +0 -16
- package/lib/internal/date/conversion.d.ts.map +0 -1
- package/lib/internal/files/validation.d.ts +0 -17
- package/lib/internal/files/validation.d.ts.map +0 -1
- package/lib/internal/hooks/useForwardedRef.d.ts +0 -3
- package/lib/internal/hooks/useForwardedRef.d.ts.map +0 -1
- package/lib/internal/react-aria/DisclosureParts.d.ts +0 -27
- package/lib/internal/react-aria/DisclosureParts.d.ts.map +0 -1
- package/lib/internal/react-aria/OverlayParts.d.ts +0 -55
- package/lib/internal/react-aria/OverlayParts.d.ts.map +0 -1
- package/lib/internal/react-aria/renderNativeButton.d.ts +0 -6
- package/lib/internal/react-aria/renderNativeButton.d.ts.map +0 -1
- package/lib/internal/styling/actions.d.ts +0 -72
- package/lib/internal/styling/actions.d.ts.map +0 -1
- package/lib/internal/styling/breakpoints.d.ts +0 -5
- package/lib/internal/styling/breakpoints.d.ts.map +0 -1
- package/lib/internal/styling/formControls.d.ts +0 -23
- package/lib/internal/styling/formControls.d.ts.map +0 -1
- package/lib/internal/styling/layout.d.ts +0 -108
- package/lib/internal/styling/layout.d.ts.map +0 -1
- package/lib/internal/styling/responsive.d.ts +0 -22
- package/lib/internal/styling/responsive.d.ts.map +0 -1
- package/lib/internal/styling/visual.d.ts +0 -7
- package/lib/internal/styling/visual.d.ts.map +0 -1
- package/lib/internal/types/collection.d.ts +0 -60
- package/lib/internal/types/collection.d.ts.map +0 -1
- package/lib/internal/types/date.d.ts +0 -8
- package/lib/internal/types/date.d.ts.map +0 -1
- package/lib/internal/types/file.d.ts +0 -21
- package/lib/internal/types/file.d.ts.map +0 -1
- package/lib/internal/types/native.d.ts +0 -8
- package/lib/internal/types/native.d.ts.map +0 -1
- package/lib/patterns/ApplicationShell/ApplicationShell.d.ts +0 -50
- package/lib/patterns/ApplicationShell/ApplicationShell.d.ts.map +0 -1
- package/lib/patterns/ButtonGroup/ButtonGroup.d.ts +0 -20
- package/lib/patterns/ButtonGroup/ButtonGroup.d.ts.map +0 -1
- package/lib/patterns/ConfirmationDialog/ConfirmationDialog.d.ts +0 -76
- package/lib/patterns/ConfirmationDialog/ConfirmationDialog.d.ts.map +0 -1
- package/lib/patterns/ContextSwitcher/ContextSwitcher.d.ts +0 -42
- package/lib/patterns/ContextSwitcher/ContextSwitcher.d.ts.map +0 -1
- package/lib/patterns/FileAttachment/FileAttachment.d.ts +0 -17
- package/lib/patterns/FileAttachment/FileAttachment.d.ts.map +0 -1
- package/lib/patterns/FileUpload/FileUpload.d.ts +0 -35
- package/lib/patterns/FileUpload/FileUpload.d.ts.map +0 -1
- package/lib/patterns/FormActions/FormActions.d.ts +0 -25
- package/lib/patterns/FormActions/FormActions.d.ts.map +0 -1
- package/lib/patterns/FormSection/FormSection.d.ts +0 -31
- package/lib/patterns/FormSection/FormSection.d.ts.map +0 -1
- package/lib/patterns/MetricCard/MetricCard.d.ts +0 -28
- package/lib/patterns/MetricCard/MetricCard.d.ts.map +0 -1
- package/lib/patterns/NavigationSection/NavigationSection.d.ts +0 -17
- package/lib/patterns/NavigationSection/NavigationSection.d.ts.map +0 -1
- package/lib/patterns/PageHeader/PageHeader.d.ts +0 -21
- package/lib/patterns/PageHeader/PageHeader.d.ts.map +0 -1
- package/lib/patterns/Pagination/Pagination.d.ts +0 -23
- package/lib/patterns/Pagination/Pagination.d.ts.map +0 -1
- package/lib/patterns/PasswordField/PasswordField.d.ts +0 -58
- package/lib/patterns/PasswordField/PasswordField.d.ts.map +0 -1
- package/lib/patterns/SectionHeader/SectionHeader.d.ts +0 -21
- package/lib/patterns/SectionHeader/SectionHeader.d.ts.map +0 -1
- package/lib/patterns/SegmentedControl/SegmentedControl.d.ts +0 -56
- package/lib/patterns/SegmentedControl/SegmentedControl.d.ts.map +0 -1
- package/lib/patterns/StatePanel/StatePanel.d.ts +0 -25
- package/lib/patterns/StatePanel/StatePanel.d.ts.map +0 -1
- package/lib/patterns/UserMenu/UserMenu.d.ts +0 -63
- package/lib/patterns/UserMenu/UserMenu.d.ts.map +0 -1
- package/lib/primitives/Accordion/Accordion.d.ts +0 -76
- package/lib/primitives/Accordion/Accordion.d.ts.map +0 -1
- package/lib/primitives/Alert/Alert.d.ts +0 -23
- package/lib/primitives/Alert/Alert.d.ts.map +0 -1
- package/lib/primitives/AlertDialog/AlertDialog.d.ts +0 -77
- package/lib/primitives/AlertDialog/AlertDialog.d.ts.map +0 -1
- package/lib/primitives/Avatar/Avatar.d.ts +0 -308
- package/lib/primitives/Avatar/Avatar.d.ts.map +0 -1
- package/lib/primitives/Badge/Badge.d.ts +0 -299
- package/lib/primitives/Badge/Badge.d.ts.map +0 -1
- package/lib/primitives/Breadcrumbs/Breadcrumbs.d.ts +0 -40
- package/lib/primitives/Breadcrumbs/Breadcrumbs.d.ts.map +0 -1
- package/lib/primitives/Calendar/Calendar.d.ts +0 -61
- package/lib/primitives/Calendar/Calendar.d.ts.map +0 -1
- package/lib/primitives/Card/Card.d.ts +0 -63
- package/lib/primitives/Card/Card.d.ts.map +0 -1
- package/lib/primitives/Center/Center.d.ts +0 -295
- package/lib/primitives/Center/Center.d.ts.map +0 -1
- package/lib/primitives/Checkbox/Checkbox.d.ts +0 -106
- package/lib/primitives/Checkbox/Checkbox.d.ts.map +0 -1
- package/lib/primitives/CheckboxGroup/CheckboxGroup.d.ts +0 -76
- package/lib/primitives/CheckboxGroup/CheckboxGroup.d.ts.map +0 -1
- package/lib/primitives/ComboBox/ComboBox.d.ts +0 -174
- package/lib/primitives/ComboBox/ComboBox.d.ts.map +0 -1
- package/lib/primitives/Container/Container.d.ts +0 -296
- package/lib/primitives/Container/Container.d.ts.map +0 -1
- package/lib/primitives/DateField/DateField.d.ts +0 -87
- package/lib/primitives/DateField/DateField.d.ts.map +0 -1
- package/lib/primitives/DatePicker/DatePicker.d.ts +0 -74
- package/lib/primitives/DatePicker/DatePicker.d.ts.map +0 -1
- package/lib/primitives/DateRangePicker/DateRangePicker.d.ts +0 -116
- package/lib/primitives/DateRangePicker/DateRangePicker.d.ts.map +0 -1
- package/lib/primitives/DateTimePicker/DateTimePicker.d.ts +0 -93
- package/lib/primitives/DateTimePicker/DateTimePicker.d.ts.map +0 -1
- package/lib/primitives/DescriptionList/DescriptionList.d.ts +0 -45
- package/lib/primitives/DescriptionList/DescriptionList.d.ts.map +0 -1
- package/lib/primitives/Dialog/Dialog.d.ts +0 -56
- package/lib/primitives/Dialog/Dialog.d.ts.map +0 -1
- package/lib/primitives/Disclosure/Disclosure.d.ts +0 -59
- package/lib/primitives/Disclosure/Disclosure.d.ts.map +0 -1
- package/lib/primitives/Drawer/Drawer.d.ts +0 -87
- package/lib/primitives/Drawer/Drawer.d.ts.map +0 -1
- package/lib/primitives/DropZone/DropZone.d.ts +0 -85
- package/lib/primitives/DropZone/DropZone.d.ts.map +0 -1
- package/lib/primitives/Fieldset/Fieldset.d.ts +0 -57
- package/lib/primitives/Fieldset/Fieldset.d.ts.map +0 -1
- package/lib/primitives/FileTrigger/FileTrigger.d.ts +0 -72
- package/lib/primitives/FileTrigger/FileTrigger.d.ts.map +0 -1
- package/lib/primitives/Grid/Grid.d.ts +0 -307
- package/lib/primitives/Grid/Grid.d.ts.map +0 -1
- package/lib/primitives/GridList/GridList.d.ts +0 -131
- package/lib/primitives/GridList/GridList.d.ts.map +0 -1
- package/lib/primitives/IconButton/IconButton.d.ts +0 -37
- package/lib/primitives/IconButton/IconButton.d.ts.map +0 -1
- package/lib/primitives/IconTile/IconTile.d.ts +0 -312
- package/lib/primitives/IconTile/IconTile.d.ts.map +0 -1
- package/lib/primitives/Inline/Inline.d.ts +0 -302
- package/lib/primitives/Inline/Inline.d.ts.map +0 -1
- package/lib/primitives/InputGroup/InputGroup.d.ts +0 -36
- package/lib/primitives/InputGroup/InputGroup.d.ts.map +0 -1
- package/lib/primitives/Link/Link.d.ts +0 -28
- package/lib/primitives/Link/Link.d.ts.map +0 -1
- package/lib/primitives/LinkButton/LinkButton.d.ts +0 -31
- package/lib/primitives/LinkButton/LinkButton.d.ts.map +0 -1
- package/lib/primitives/List/List.d.ts +0 -29
- package/lib/primitives/List/List.d.ts.map +0 -1
- package/lib/primitives/ListBox/ListBox.d.ts +0 -102
- package/lib/primitives/ListBox/ListBox.d.ts.map +0 -1
- package/lib/primitives/Logo/Logo.d.ts +0 -292
- package/lib/primitives/Logo/Logo.d.ts.map +0 -1
- package/lib/primitives/Menu/Menu.d.ts +0 -161
- package/lib/primitives/Menu/Menu.d.ts.map +0 -1
- package/lib/primitives/Meter/Meter.d.ts +0 -28
- package/lib/primitives/Meter/Meter.d.ts.map +0 -1
- package/lib/primitives/NavigationList/NavigationList.d.ts +0 -44
- package/lib/primitives/NavigationList/NavigationList.d.ts.map +0 -1
- package/lib/primitives/NumberField/NumberField.d.ts +0 -118
- package/lib/primitives/NumberField/NumberField.d.ts.map +0 -1
- package/lib/primitives/Popover/Popover.d.ts +0 -61
- package/lib/primitives/Popover/Popover.d.ts.map +0 -1
- package/lib/primitives/ProgressBar/ProgressBar.d.ts +0 -41
- package/lib/primitives/ProgressBar/ProgressBar.d.ts.map +0 -1
- package/lib/primitives/RadioGroup/RadioGroup.d.ts +0 -131
- package/lib/primitives/RadioGroup/RadioGroup.d.ts.map +0 -1
- package/lib/primitives/RangeCalendar/RangeCalendar.d.ts +0 -57
- package/lib/primitives/RangeCalendar/RangeCalendar.d.ts.map +0 -1
- package/lib/primitives/SearchField/SearchField.d.ts +0 -70
- package/lib/primitives/SearchField/SearchField.d.ts.map +0 -1
- package/lib/primitives/Select/Select.d.ts +0 -110
- package/lib/primitives/Select/Select.d.ts.map +0 -1
- package/lib/primitives/Separator/Separator.d.ts +0 -302
- package/lib/primitives/Separator/Separator.d.ts.map +0 -1
- package/lib/primitives/Skeleton/Skeleton.d.ts +0 -27
- package/lib/primitives/Skeleton/Skeleton.d.ts.map +0 -1
- package/lib/primitives/SkipLink/SkipLink.d.ts +0 -21
- package/lib/primitives/SkipLink/SkipLink.d.ts.map +0 -1
- package/lib/primitives/Slider/Slider.d.ts +0 -148
- package/lib/primitives/Slider/Slider.d.ts.map +0 -1
- package/lib/primitives/Spinner/Spinner.d.ts +0 -23
- package/lib/primitives/Spinner/Spinner.d.ts.map +0 -1
- package/lib/primitives/Stack/Stack.d.ts +0 -300
- package/lib/primitives/Stack/Stack.d.ts.map +0 -1
- package/lib/primitives/Stepper/Stepper.d.ts +0 -42
- package/lib/primitives/Stepper/Stepper.d.ts.map +0 -1
- package/lib/primitives/Surface/Surface.d.ts +0 -306
- package/lib/primitives/Surface/Surface.d.ts.map +0 -1
- package/lib/primitives/Switch/Switch.d.ts +0 -118
- package/lib/primitives/Switch/Switch.d.ts.map +0 -1
- package/lib/primitives/Table/Table.d.ts +0 -233
- package/lib/primitives/Table/Table.d.ts.map +0 -1
- package/lib/primitives/Tabs/Tabs.d.ts +0 -105
- package/lib/primitives/Tabs/Tabs.d.ts.map +0 -1
- package/lib/primitives/Tag/Tag.d.ts +0 -18
- package/lib/primitives/Tag/Tag.d.ts.map +0 -1
- package/lib/primitives/TagGroup/TagGroup.d.ts +0 -60
- package/lib/primitives/TagGroup/TagGroup.d.ts.map +0 -1
- package/lib/primitives/TextArea/TextArea.d.ts +0 -40
- package/lib/primitives/TextArea/TextArea.d.ts.map +0 -1
- package/lib/primitives/TextField/TextField.d.ts +0 -102
- package/lib/primitives/TextField/TextField.d.ts.map +0 -1
- package/lib/primitives/TimeField/TimeField.d.ts +0 -58
- package/lib/primitives/TimeField/TimeField.d.ts.map +0 -1
- package/lib/primitives/Toast/Toast.d.ts +0 -88
- package/lib/primitives/Toast/Toast.d.ts.map +0 -1
- package/lib/primitives/ToggleButton/ToggleButton.d.ts +0 -55
- package/lib/primitives/ToggleButton/ToggleButton.d.ts.map +0 -1
- package/lib/primitives/ToggleGroup/ToggleGroup.d.ts +0 -48
- package/lib/primitives/ToggleGroup/ToggleGroup.d.ts.map +0 -1
- package/lib/primitives/Toolbar/Toolbar.d.ts +0 -17
- package/lib/primitives/Toolbar/Toolbar.d.ts.map +0 -1
- package/lib/primitives/Tooltip/Tooltip.d.ts +0 -66
- package/lib/primitives/Tooltip/Tooltip.d.ts.map +0 -1
- package/lib/primitives/Typography/Typography.d.ts +0 -317
- package/lib/primitives/Typography/Typography.d.ts.map +0 -1
- package/lib/primitives/VisuallyHidden/VisuallyHidden.d.ts +0 -294
- package/lib/primitives/VisuallyHidden/VisuallyHidden.d.ts.map +0 -1
- package/lib/primitives/date/CalendarParts.d.ts +0 -26
- package/lib/primitives/date/CalendarParts.d.ts.map +0 -1
- package/lib/primitives/date/DateInput.d.ts +0 -9
- package/lib/primitives/date/DateInput.d.ts.map +0 -1
- package/lib/primitives/date/PickerFieldParts.d.ts +0 -11
- package/lib/primitives/date/PickerFieldParts.d.ts.map +0 -1
- package/lib/primitives/date/PickerParts.d.ts +0 -29
- package/lib/primitives/date/PickerParts.d.ts.map +0 -1
- package/lib/primitives/file/FileFeedback.d.ts +0 -14
- package/lib/primitives/file/FileFeedback.d.ts.map +0 -1
- package/lib/provider/messages.d.ts +0 -43
- package/lib/provider/messages.d.ts.map +0 -1
- package/lib/theme.css +0 -5
|
@@ -1,87 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,QAAQ,EAAE,SAAS,CAAC;IACpB,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qEAAqE;IACrE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC;IACjC,yEAAyE;IACzE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,2DAA2D;IAC3D,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;IAC9C,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yDAAyD;IACzD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uDAAuD;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,2CAA2C;IAC3C,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC3B;AA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jB,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,QAAgB,EAChB,GAAG,EACH,QAAgB,EAChB,KAAK,EACL,GAAG,KAAK,EACT,EAAE,QAAQ,CAAC,kBAAkB,CAAC,GAAG,YAAY,CA8B7C;AAED;;;;GAIG;AACH,eAAO,MAAM,SAAS;IACpB,0DAA0D;;IAE1D,0DAA0D;;IAE1D,2CAA2C;;IAE3C,yDAAyD;;IAEzD,iEAAiE;;CAElE,CAAC"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import type { HTMLAttributes, ReactElement, ReactNode, Ref } from 'react';
|
|
2
|
-
import { type DateInputPartProps } from '../date/DateInput';
|
|
3
|
-
import { PickerCalendarPart, type PickerCalendarPartProps, type PickerGroupPartProps, type PickerPopoverPartProps, type PickerTriggerPartProps } from '../date/PickerParts';
|
|
4
|
-
import { type TextFieldDescriptionProps, type TextFieldErrorProps, type TextFieldLabelProps } from '../TextField/TextField';
|
|
5
|
-
interface Shared extends Omit<HTMLAttributes<HTMLDivElement>, 'defaultValue' | 'onChange' | 'style'> {
|
|
6
|
-
/** Label, hidden state input, long-date trigger, calendar popup, and guidance. */ children: ReactNode;
|
|
7
|
-
/** Prevents focus and selection. */ disabled?: boolean;
|
|
8
|
-
/** External native form id. */ form?: string;
|
|
9
|
-
/** Exposes invalid state. */ invalid?: boolean;
|
|
10
|
-
/** Returns whether a stable date is unavailable. */ isDateUnavailable?: (date: string) => boolean;
|
|
11
|
-
/** Latest selectable date. */ maxValue?: string;
|
|
12
|
-
/** Earliest selectable date. */ minValue?: string;
|
|
13
|
-
/** Native form field name. */ name?: string;
|
|
14
|
-
/** Marks the picker as required. */ required?: boolean;
|
|
15
|
-
/** Ref to the rendered picker root. */ ref?: Ref<HTMLDivElement>;
|
|
16
|
-
}
|
|
17
|
-
type State = {
|
|
18
|
-
/** Current controlled date, or `null` when empty. */ value: string | null;
|
|
19
|
-
/** Called with the next stable date or `null`. */ onChange: (value: string | null) => void;
|
|
20
|
-
/** Excluded when controlled. */ defaultValue?: never;
|
|
21
|
-
/** Mutable controlled pickers cannot be read-only. */ readOnly?: false;
|
|
22
|
-
} | {
|
|
23
|
-
/** Current immutable date, or `null` when empty. */ value: string | null;
|
|
24
|
-
/** Prevents date changes. */ readOnly: true;
|
|
25
|
-
/** Excluded when controlled. */ defaultValue?: never;
|
|
26
|
-
/** Excluded because read-only pickers cannot change. */ onChange?: never;
|
|
27
|
-
} | {
|
|
28
|
-
/** Initial uncontrolled date, or `null` when empty. */ defaultValue?: string | null;
|
|
29
|
-
/** Called with the next stable date or `null`. */ onChange?: (value: string | null) => void;
|
|
30
|
-
/** Uncontrolled pickers cannot be read-only. */ readOnly?: false;
|
|
31
|
-
/** Excluded when uncontrolled. */ value?: never;
|
|
32
|
-
};
|
|
33
|
-
/** Props for controlled, uncontrolled, or read-only stable date picker state. */
|
|
34
|
-
export type DatePickerRootProps = Shared & State;
|
|
35
|
-
/** Props for the visible label. */
|
|
36
|
-
export type DatePickerLabelProps = TextFieldLabelProps;
|
|
37
|
-
/** Props for the hidden date-state input. */
|
|
38
|
-
export type DatePickerInputProps = DateInputPartProps;
|
|
39
|
-
/** Props for the full-width calendar trigger group. */
|
|
40
|
-
export type DatePickerGroupProps = PickerGroupPartProps;
|
|
41
|
-
/** Props for the visible long-date calendar trigger. */
|
|
42
|
-
export type DatePickerTriggerProps = PickerTriggerPartProps;
|
|
43
|
-
/** Props for the calendar popover, positioned at `bottom end` by default. */
|
|
44
|
-
export type DatePickerPopoverProps = PickerPopoverPartProps;
|
|
45
|
-
/** Props for the picker calendar. */
|
|
46
|
-
export type DatePickerCalendarProps = PickerCalendarPartProps;
|
|
47
|
-
/** Props for supporting guidance. */
|
|
48
|
-
export type DatePickerDescriptionProps = TextFieldDescriptionProps;
|
|
49
|
-
/** Props for validation feedback. */
|
|
50
|
-
export type DatePickerErrorProps = TextFieldErrorProps;
|
|
51
|
-
export declare function Group({ className, ...props }: Readonly<DatePickerGroupProps>): ReactElement;
|
|
52
|
-
export declare function Input({ className, ...props }: Readonly<DatePickerInputProps>): ReactElement;
|
|
53
|
-
export declare function Trigger({ children, className, ...props }: Readonly<DatePickerTriggerProps>): ReactElement;
|
|
54
|
-
export declare function Popover({ placement, ...props }: Readonly<DatePickerPopoverProps>): ReactElement;
|
|
55
|
-
/** Coordinates date entry with an optional calendar popover. */
|
|
56
|
-
export declare function Root({ children, className, defaultValue, disabled, form, invalid, isDateUnavailable, maxValue, minValue, name, onChange, readOnly, ref, required, value, ...props }: Readonly<DatePickerRootProps>): ReactElement;
|
|
57
|
-
/**
|
|
58
|
-
* Accessible full-width calendar-selection control with stable date strings.
|
|
59
|
-
*
|
|
60
|
-
* @summary long-date control with a locale-aware calendar popup
|
|
61
|
-
*/
|
|
62
|
-
export declare const DatePicker: {
|
|
63
|
-
/** Locale-aware calendar. */ Calendar: typeof PickerCalendarPart;
|
|
64
|
-
/** Supporting guidance. */ Description: typeof import("../TextField/TextField").Description;
|
|
65
|
-
/** Validation feedback. */ Error: typeof import("../TextField/TextField").Error;
|
|
66
|
-
/** Hidden date-state input and trigger group. */ Group: typeof Group;
|
|
67
|
-
/** Hidden date-state input. */ Input: typeof Input;
|
|
68
|
-
/** Visible field label. */ Label: typeof import("../TextField/TextField").Label;
|
|
69
|
-
/** Positioned calendar popup. */ Popover: typeof Popover;
|
|
70
|
-
/** Stable date state and constraints. */ Root: typeof Root;
|
|
71
|
-
/** Visible long-date calendar popup trigger. */ Trigger: typeof Trigger;
|
|
72
|
-
};
|
|
73
|
-
export {};
|
|
74
|
-
//# sourceMappingURL=DatePicker.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../src/primitives/DatePicker/DatePicker.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,cAAc,EACd,YAAY,EACZ,SAAS,EACT,GAAG,EACJ,MAAM,OAAO,CAAC;AAef,OAAO,EAAiB,KAAK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AAoB,CAAC,GAAG,YAAY,CAQ/C;AAED,wBAAgB,OAAO,CAAC,EACtB,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,QAAQ,CAAC,sBAAsB,CAAC,GAAG,YAAY,CAqCjD;AAED,wBAAgB,OAAO,CAAC,EACtB,SAAwB,EACxB,GAAG,KAAK,EACT,EAAE,QAAQ,CAAC,sBAAsB,CAAC,GAAG,YAAY,CAKjD;AAED,gEAAgE;AAChE,wBAAgB,IAAI,CAAC,EACnB,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,QAAgB,EAChB,IAAI,EACJ,OAAe,EACf,iBAAiB,EACjB,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,QAAgB,EAChB,GAAG,EACH,QAAgB,EAChB,KAAK,EACL,GAAG,KAAK,EACT,EAAE,QAAQ,CAAC,mBAAmB,CAAC,GAAG,YAAY,CAyB9C;AACD;;;;GAIG;AACH,eAAO,MAAM,UAAU;IACrB,6BAA6B;IAC7B,2BAA2B;IAC3B,2BAA2B;IAC3B,iDAAiD;IACjD,+BAA+B;IAC/B,2BAA2B;IAC3B,iCAAiC;IACjC,yCAAyC;IACzC,gDAAgD;CACjD,CAAC"}
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import type { HTMLAttributes, ReactElement, ReactNode, Ref } from 'react';
|
|
2
|
-
import type { DateRangeValue } from '../../internal/types/date';
|
|
3
|
-
import { type PickerFieldGroupPartProps, type PickerFieldInputPartProps, type PickerFieldTriggerPartProps } from '../date/PickerFieldParts';
|
|
4
|
-
import { type PickerCalendarPartProps, PickerPopoverPart, type PickerPopoverPartProps, PickerRangeCalendarPart } from '../date/PickerParts';
|
|
5
|
-
import { type TextFieldDescriptionProps, type TextFieldErrorProps, type TextFieldLabelProps } from '../TextField/TextField';
|
|
6
|
-
interface Shared extends Omit<HTMLAttributes<HTMLDivElement>, 'defaultValue' | 'onChange' | 'style'> {
|
|
7
|
-
/** Label, start/end inputs, trigger, range calendar, and guidance. */
|
|
8
|
-
children: ReactNode;
|
|
9
|
-
/** Allows ranges containing unavailable dates. */
|
|
10
|
-
allowsNonContiguousRanges?: boolean;
|
|
11
|
-
/** Prevents focus and editing. */
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
/** External native form id. */
|
|
14
|
-
form?: string;
|
|
15
|
-
/** Exposes invalid state. */
|
|
16
|
-
invalid?: boolean;
|
|
17
|
-
/** Returns whether a stable date is unavailable for an optional anchor. */
|
|
18
|
-
isDateUnavailable?: (date: string, anchorDate: string | null) => boolean;
|
|
19
|
-
/** Latest selectable date. */
|
|
20
|
-
maxValue?: string;
|
|
21
|
-
/** Earliest selectable date. */
|
|
22
|
-
minValue?: string;
|
|
23
|
-
/** Marks the range as required. */
|
|
24
|
-
required?: boolean;
|
|
25
|
-
/** Ref to the rendered picker root. */
|
|
26
|
-
ref?: Ref<HTMLDivElement>;
|
|
27
|
-
}
|
|
28
|
-
type FormNames = {
|
|
29
|
-
/** Native form field name for the inclusive range end. */
|
|
30
|
-
endName: string;
|
|
31
|
-
/** Native form field name for the inclusive range start. */
|
|
32
|
-
startName: string;
|
|
33
|
-
} | {
|
|
34
|
-
/** End name is unavailable without a start name. */
|
|
35
|
-
endName?: never;
|
|
36
|
-
/** Start name is unavailable without an end name. */
|
|
37
|
-
startName?: never;
|
|
38
|
-
};
|
|
39
|
-
type State = {
|
|
40
|
-
/** Current controlled range, or `null` when empty. */
|
|
41
|
-
value: DateRangeValue | null;
|
|
42
|
-
/** Called with the next stable range or `null`. */
|
|
43
|
-
onChange: (value: DateRangeValue | null) => void;
|
|
44
|
-
/** Excluded when controlled. */
|
|
45
|
-
defaultValue?: never;
|
|
46
|
-
/** Mutable controlled pickers cannot be read-only. */
|
|
47
|
-
readOnly?: false;
|
|
48
|
-
} | {
|
|
49
|
-
/** Current immutable range, or `null` when empty. */
|
|
50
|
-
value: DateRangeValue | null;
|
|
51
|
-
/** Prevents range changes. */
|
|
52
|
-
readOnly: true;
|
|
53
|
-
/** Excluded when controlled. */
|
|
54
|
-
defaultValue?: never;
|
|
55
|
-
/** Excluded because read-only pickers cannot change. */
|
|
56
|
-
onChange?: never;
|
|
57
|
-
} | {
|
|
58
|
-
/** Initial uncontrolled range, or `null` when empty. */
|
|
59
|
-
defaultValue?: DateRangeValue | null;
|
|
60
|
-
/** Called with the next stable range or `null`. */
|
|
61
|
-
onChange?: (value: DateRangeValue | null) => void;
|
|
62
|
-
/** Uncontrolled pickers cannot be read-only. */
|
|
63
|
-
readOnly?: false;
|
|
64
|
-
/** Excluded when uncontrolled. */
|
|
65
|
-
value?: never;
|
|
66
|
-
};
|
|
67
|
-
/** Props for controlled, uncontrolled, or read-only stable range state. */
|
|
68
|
-
export type DateRangePickerRootProps = Shared & FormNames & State;
|
|
69
|
-
/** Props for the visible label. */
|
|
70
|
-
export type DateRangePickerLabelProps = TextFieldLabelProps;
|
|
71
|
-
/** Props shared by the start and end segmented inputs. */
|
|
72
|
-
export type DateRangePickerInputProps = PickerFieldInputPartProps;
|
|
73
|
-
/** Props for the coherent start-input, separator, end-input, and trigger group. */
|
|
74
|
-
export type DateRangePickerGroupProps = PickerFieldGroupPartProps;
|
|
75
|
-
/** Props for the visual range separator. */
|
|
76
|
-
export interface DateRangePickerSeparatorProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'children' | 'style'> {
|
|
77
|
-
/** Ref to the rendered visual separator. */
|
|
78
|
-
ref?: Ref<HTMLSpanElement>;
|
|
79
|
-
}
|
|
80
|
-
/** Props for the calendar trigger. */
|
|
81
|
-
export type DateRangePickerTriggerProps = PickerFieldTriggerPartProps;
|
|
82
|
-
/** Props for the range-calendar popover. */
|
|
83
|
-
export type DateRangePickerPopoverProps = PickerPopoverPartProps;
|
|
84
|
-
/** Props for the range calendar. */
|
|
85
|
-
export type DateRangePickerCalendarProps = PickerCalendarPartProps;
|
|
86
|
-
/** Props for supporting guidance. */
|
|
87
|
-
export type DateRangePickerDescriptionProps = TextFieldDescriptionProps;
|
|
88
|
-
/** Props for validation feedback. */
|
|
89
|
-
export type DateRangePickerErrorProps = TextFieldErrorProps;
|
|
90
|
-
export declare function Group({ ...props }: Readonly<DateRangePickerGroupProps>): ReactElement;
|
|
91
|
-
export declare function StartInput({ className, ...props }: Readonly<DateRangePickerInputProps>): ReactElement;
|
|
92
|
-
export declare function EndInput({ className, ...props }: Readonly<DateRangePickerInputProps>): ReactElement;
|
|
93
|
-
export declare function Separator({ className, ref, ...props }: Readonly<DateRangePickerSeparatorProps>): ReactElement;
|
|
94
|
-
export declare function Trigger({ ...props }: Readonly<DateRangePickerTriggerProps>): ReactElement;
|
|
95
|
-
/** Coordinates start and end date entry with a range-calendar popover. */
|
|
96
|
-
export declare function Root({ allowsNonContiguousRanges, children, className, defaultValue, disabled, endName, form, invalid, isDateUnavailable, maxValue, minValue, onChange, readOnly, ref, required, startName, value, ...props }: Readonly<DateRangePickerRootProps>): ReactElement;
|
|
97
|
-
/**
|
|
98
|
-
* Accessible compound date-range picker with stable string values.
|
|
99
|
-
*
|
|
100
|
-
* @summary segmented start and end dates with a range-calendar popup
|
|
101
|
-
*/
|
|
102
|
-
export declare const DateRangePicker: {
|
|
103
|
-
/** Range calendar. */ Calendar: typeof PickerRangeCalendarPart;
|
|
104
|
-
/** Supporting guidance. */ Description: typeof import("../TextField/TextField").Description;
|
|
105
|
-
/** End-date segmented input. */ EndInput: typeof EndInput;
|
|
106
|
-
/** Validation feedback. */ Error: typeof import("../TextField/TextField").Error;
|
|
107
|
-
/** Coherent start-input, separator, end-input, and trigger control. */ Group: typeof Group;
|
|
108
|
-
/** Visible field label. */ Label: typeof import("../TextField/TextField").Label;
|
|
109
|
-
/** Positioned range-calendar popup. */ Popover: typeof PickerPopoverPart;
|
|
110
|
-
/** Stable range state and constraints. */ Root: typeof Root;
|
|
111
|
-
/** Visual direction between the start and end inputs. */ Separator: typeof Separator;
|
|
112
|
-
/** Start-date segmented input. */ StartInput: typeof StartInput;
|
|
113
|
-
/** Range-calendar popup trigger. */ Trigger: typeof Trigger;
|
|
114
|
-
};
|
|
115
|
-
export {};
|
|
116
|
-
//# sourceMappingURL=DateRangePicker.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DateRangePicker.d.ts","sourceRoot":"","sources":["../../../src/primitives/DateRangePicker/DateRangePicker.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,cAAc,EACd,YAAY,EACZ,SAAS,EACT,GAAG,EACJ,MAAM,OAAO,CAAC;AAmBf,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAEhE,OAAO,EAEL,KAAK,yBAAyB,EAE9B,KAAK,yBAAyB,EAG9B,KAAK,2BAA2B,EACjC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,KAAK,uBAAuB,EAC5B,iBAAiB,EACjB,KAAK,sBAAsB,EAC3B,uBAAuB,EACxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACzB,MAAM,wBAAwB,CAAC;AAMhC,UAAU,MACR,SAAQ,IAAI,CACV,cAAc,CAAC,cAAc,CAAC,EAC9B,cAAc,GAAG,UAAU,GAAG,OAAO,CACtC;IACD,sEAAsE;IACtE,QAAQ,EAAE,SAAS,CAAC;IACpB,kDAAkD;IAClD,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,kCAAkC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,+BAA+B;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,6BAA6B;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,2EAA2E;IAC3E,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI,KAAK,OAAO,CAAC;IACzE,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gCAAgC;IA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,YAAY,CAEtD;AAED,0EAA0E;AAC1E,wBAAgB,IAAI,CAAC,EACnB,yBAAiC,EACjC,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,QAAgB,EAChB,OAAO,EACP,IAAI,EACJ,OAAe,EACf,iBAAiB,EACjB,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,QAAgB,EAChB,GAAG,EACH,QAAgB,EAChB,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACT,EAAE,QAAQ,CAAC,wBAAwB,CAAC,GAAG,YAAY,CAwGnD;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe;IAC1B,sBAAsB;IACtB,2BAA2B;IAC3B,gCAAgC;IAChC,2BAA2B;IAC3B,uEAAuE;IACvE,2BAA2B;IAC3B,uCAAuC;IACvC,0CAA0C;IAC1C,yDAAyD;IACzD,kCAAkC;IAClC,oCAAoC;CACrC,CAAC"}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import type { HTMLAttributes, ReactElement, ReactNode, Ref } from 'react';
|
|
2
|
-
import { PickerFieldGroupPart, type PickerFieldGroupPartProps, PickerFieldInputPart, type PickerFieldInputPartProps, PickerFieldTriggerPart, type PickerFieldTriggerPartProps } from '../date/PickerFieldParts';
|
|
3
|
-
import { type PickerCalendarPartProps, type PickerPopoverPartProps } from '../date/PickerParts';
|
|
4
|
-
import { type TextFieldDescriptionProps, type TextFieldErrorProps, type TextFieldLabelProps } from '../TextField/TextField';
|
|
5
|
-
interface Shared extends Omit<HTMLAttributes<HTMLDivElement>, 'defaultValue' | 'onChange' | 'style'> {
|
|
6
|
-
/** Label, segmented input, trigger, calendar popup, and guidance. */
|
|
7
|
-
children: ReactNode;
|
|
8
|
-
/** Prevents focus and editing. */
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
/** External native form id. */
|
|
11
|
-
form?: string;
|
|
12
|
-
/** Exposes invalid state. */
|
|
13
|
-
invalid?: boolean;
|
|
14
|
-
/** Latest selectable explicit-offset ISO instant. */
|
|
15
|
-
maxValue?: string;
|
|
16
|
-
/** Earliest selectable explicit-offset ISO instant. */
|
|
17
|
-
minValue?: string;
|
|
18
|
-
/** Native form field name. */
|
|
19
|
-
name?: string;
|
|
20
|
-
/** Marks the picker as required. */
|
|
21
|
-
required?: boolean;
|
|
22
|
-
/** Ref to the rendered picker root. */
|
|
23
|
-
ref?: Ref<HTMLDivElement>;
|
|
24
|
-
}
|
|
25
|
-
type State = {
|
|
26
|
-
/** Current controlled explicit-offset instant. */
|
|
27
|
-
value: string | null;
|
|
28
|
-
/** Called with the next explicit-offset instant. */
|
|
29
|
-
onChange: (value: string | null) => void;
|
|
30
|
-
/** Excluded when controlled. */
|
|
31
|
-
defaultValue?: never;
|
|
32
|
-
/** Mutable controlled pickers cannot be read-only. */
|
|
33
|
-
readOnly?: false;
|
|
34
|
-
} | {
|
|
35
|
-
/** Current immutable explicit-offset instant. */
|
|
36
|
-
value: string | null;
|
|
37
|
-
/** Prevents changes. */
|
|
38
|
-
readOnly: true;
|
|
39
|
-
/** Excluded when controlled. */
|
|
40
|
-
defaultValue?: never;
|
|
41
|
-
/** Excluded because read-only pickers cannot change. */
|
|
42
|
-
onChange?: never;
|
|
43
|
-
} | {
|
|
44
|
-
/** Initial uncontrolled explicit-offset instant. */
|
|
45
|
-
defaultValue?: string | null;
|
|
46
|
-
/** Called with the next explicit-offset instant. */
|
|
47
|
-
onChange?: (value: string | null) => void;
|
|
48
|
-
/** Uncontrolled state cannot be read-only. */
|
|
49
|
-
readOnly?: false;
|
|
50
|
-
/** Excluded when uncontrolled. */
|
|
51
|
-
value?: never;
|
|
52
|
-
};
|
|
53
|
-
/** Props for stable explicit-offset date-time picker state. */
|
|
54
|
-
export type DateTimePickerRootProps = Shared & State;
|
|
55
|
-
/** Props for the visible label. */
|
|
56
|
-
export type DateTimePickerLabelProps = TextFieldLabelProps;
|
|
57
|
-
/** Props for the segmented input. */
|
|
58
|
-
export type DateTimePickerInputProps = PickerFieldInputPartProps;
|
|
59
|
-
/** Props for the coherent segmented-input and trigger group. */
|
|
60
|
-
export type DateTimePickerGroupProps = PickerFieldGroupPartProps;
|
|
61
|
-
/** Props for the calendar trigger. */
|
|
62
|
-
export type DateTimePickerTriggerProps = PickerFieldTriggerPartProps;
|
|
63
|
-
/** Props for the calendar popover. */
|
|
64
|
-
export type DateTimePickerPopoverProps = PickerPopoverPartProps;
|
|
65
|
-
/** Props for the complete date-and-time calendar surface. */
|
|
66
|
-
export type DateTimePickerCalendarProps = PickerCalendarPartProps;
|
|
67
|
-
/** Props for supporting guidance. */
|
|
68
|
-
export type DateTimePickerDescriptionProps = TextFieldDescriptionProps;
|
|
69
|
-
/** Props for validation feedback. */
|
|
70
|
-
export type DateTimePickerErrorProps = TextFieldErrorProps;
|
|
71
|
-
export declare function Calendar({ className, ref, ...props }: Readonly<DateTimePickerCalendarProps>): ReactElement;
|
|
72
|
-
export declare function Popover({ 'aria-label': ariaLabel, placement, ...props }: Readonly<DateTimePickerPopoverProps>): ReactElement;
|
|
73
|
-
/** Coordinates explicit-offset instants with provider-zone display and behavior. */
|
|
74
|
-
export declare function Root({ children, className, defaultValue, disabled, form, invalid, maxValue, minValue, name, onChange, readOnly, ref, required, value, ...props }: Readonly<DateTimePickerRootProps>): ReactElement;
|
|
75
|
-
/**
|
|
76
|
-
* Accessible compound date-time picker with stable explicit-offset values.
|
|
77
|
-
*
|
|
78
|
-
* @summary locale-aware instant selection with explicit-offset values
|
|
79
|
-
*/
|
|
80
|
-
export declare const DateTimePicker: {
|
|
81
|
-
/** Complete provider-zone date and segmented-time selection surface. */
|
|
82
|
-
Calendar: typeof Calendar;
|
|
83
|
-
/** Supporting guidance. */ Description: typeof import("../TextField/TextField").Description;
|
|
84
|
-
/** Validation feedback. */ Error: typeof import("../TextField/TextField").Error;
|
|
85
|
-
/** Coherent segmented-input and trigger control. */ Group: typeof PickerFieldGroupPart;
|
|
86
|
-
/** Borderless locale-aware date and time segments. */ Input: typeof PickerFieldInputPart;
|
|
87
|
-
/** Visible field label. */ Label: typeof import("../TextField/TextField").Label;
|
|
88
|
-
/** Positioned complete date-and-time popup. */ Popover: typeof Popover;
|
|
89
|
-
/** Stable instant state and constraints. */ Root: typeof Root;
|
|
90
|
-
/** Integrated calendar popup trigger. */ Trigger: typeof PickerFieldTriggerPart;
|
|
91
|
-
};
|
|
92
|
-
export {};
|
|
93
|
-
//# sourceMappingURL=DateTimePicker.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DateTimePicker.d.ts","sourceRoot":"","sources":["../../../src/primitives/DateTimePicker/DateTimePicker.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,cAAc,EACd,YAAY,EACZ,SAAS,EACT,GAAG,EACJ,MAAM,OAAO,CAAC;AAgBf,OAAO,EACL,oBAAoB,EACpB,KAAK,yBAAyB,EAC9B,oBAAoB,EACpB,KAAK,yBAAyB,EAE9B,sBAAsB,EACtB,KAAK,2BAA2B,EACjC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAEL,KAAK,uBAAuB,EAE5B,KAAK,sBAAsB,EAC5B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACzB,MAAM,wBAAwB,CAAC;AAoBhC,UAAU,MACR,SAAQ,IAAI,CACV,cAAc,CAAC,cAAc,CAAC,EAC9B,cAAc,GAAG,UAAU,GAAG,OAAO,CACtC;IACD,qEAAqE;IACrE,QAAQ,EAAE,SAAS,CAAC;IACpB,kCAAkC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,+BAA+B;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,6BAA6B;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,qDAAqD;IACrD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uDAAuD;IACvD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8BAA8B;IAC9B,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AAC;AACrE,sCAAsC;AACtC,MAAM,MAAM,0BAA0B,GAAG,sBAAsB,CAAC;AAChE,6DAA6D;AAC7D,MAAM,MAAM,2BAA2B,GAAG,uBAAuB,CAAC;AAClE,qCAAqC;AACrC,MAAM,MAAM,8BAA8B,GAAG,yBAAyB,CAAC;AACvE,qCAAqC;AACrC,MAAM,MAAM,wBAAwB,GAAG,mBAAmB,CAAC;AAc3D,wBAAgB,QAAQ,CAAC,EACvB,SAAS,EACT,GAAG,EACH,GAAG,KAAK,EACT,EAAE,QAAQ,CAAC,2BAA2B,CAAC,GAAG,YAAY,CA4CtD;AAED,wBAAgB,OAAO,CAAC,EACtB,YAAY,EAAE,SAAS,EACvB,SAAwB,EACxB,GAAG,KAAK,EACT,EAAE,QAAQ,CAAC,0BAA0B,CAAC,GAAG,YAAY,CAQrD;AAED,oFAAoF;AACpF,wBAAgB,IAAI,CAAC,EACnB,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,QAAgB,EAChB,IAAI,EACJ,OAAe,EACf,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,QAAgB,EAChB,GAAG,EACH,QAAgB,EAChB,KAAK,EACL,GAAG,KAAK,EACT,EAAE,QAAQ,CAAC,uBAAuB,CAAC,GAAG,YAAY,CA8BlD;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc;IACzB,wEAAwE;;IAExE,2BAA2B;IAC3B,2BAA2B;IAC3B,oDAAoD;IAEpD,sDAAsD;IAEtD,2BAA2B;IAC3B,+CAA+C;IAC/C,4CAA4C;IAC5C,yCAAyC;CAC1C,CAAC"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import type { HTMLAttributes, ReactElement, Ref } from 'react';
|
|
2
|
-
/** Props for the native description-list container. */
|
|
3
|
-
export interface DescriptionListRootProps extends Omit<HTMLAttributes<HTMLDListElement>, 'style'> {
|
|
4
|
-
/** Ref to the rendered description list. */
|
|
5
|
-
ref?: Ref<HTMLDListElement>;
|
|
6
|
-
}
|
|
7
|
-
/** Props for one visually grouped term-description pair. */
|
|
8
|
-
export interface DescriptionListItemProps extends Omit<HTMLAttributes<HTMLDivElement>, 'style'> {
|
|
9
|
-
/** Ref to the rendered pair container. */
|
|
10
|
-
ref?: Ref<HTMLDivElement>;
|
|
11
|
-
}
|
|
12
|
-
/** Props for a native description-list term. */
|
|
13
|
-
export interface DescriptionListTermProps extends Omit<HTMLAttributes<HTMLElement>, 'style'> {
|
|
14
|
-
/** Ref to the rendered term element. */
|
|
15
|
-
ref?: Ref<HTMLElement>;
|
|
16
|
-
}
|
|
17
|
-
/** Props for the description associated with a term. */
|
|
18
|
-
export interface DescriptionListDescriptionProps extends Omit<HTMLAttributes<HTMLElement>, 'style'> {
|
|
19
|
-
/** Ref to the rendered description element. */
|
|
20
|
-
ref?: Ref<HTMLElement>;
|
|
21
|
-
}
|
|
22
|
-
/** Renders a native description list that becomes two columns when space permits. */
|
|
23
|
-
export declare function Root({ className, ref, ...props }: Readonly<DescriptionListRootProps>): ReactElement;
|
|
24
|
-
/** Visually groups one or more native terms with their descriptions. */
|
|
25
|
-
export declare function Item({ className, ref, ...props }: Readonly<DescriptionListItemProps>): ReactElement;
|
|
26
|
-
/** Renders a native description-list term. */
|
|
27
|
-
export declare function Term({ className, ref, ...props }: Readonly<DescriptionListTermProps>): ReactElement;
|
|
28
|
-
/** Renders the native description associated with a preceding term. */
|
|
29
|
-
export declare function Description({ className, ref, ...props }: Readonly<DescriptionListDescriptionProps>): ReactElement;
|
|
30
|
-
/**
|
|
31
|
-
* Semantic compound primitive for term-description metadata.
|
|
32
|
-
*
|
|
33
|
-
* @summary responsive native term-description metadata
|
|
34
|
-
*/
|
|
35
|
-
export declare const DescriptionList: {
|
|
36
|
-
/** Description associated with a term. */
|
|
37
|
-
Description: typeof Description;
|
|
38
|
-
/** Visual grouping for a term-description pair. */
|
|
39
|
-
Item: typeof Item;
|
|
40
|
-
/** Native description-list container. */
|
|
41
|
-
Root: typeof Root;
|
|
42
|
-
/** Native description-list term. */
|
|
43
|
-
Term: typeof Term;
|
|
44
|
-
};
|
|
45
|
-
//# sourceMappingURL=DescriptionList.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DescriptionList.d.ts","sourceRoot":"","sources":["../../../src/primitives/DescriptionList/DescriptionList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAsB/D,uDAAuD;AACvD,MAAM,WAAW,wBACf,SAAQ,IAAI,CAAC,cAAc,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IACvD,4CAA4C;IAC5C,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC;CAC7B;AAED,4DAA4D;AAC5D,MAAM,WAAW,wBACf,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;IACrD,0CAA0C;IAC1C,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC3B;AAED,gDAAgD;AAChD,MAAM,WAAW,wBACf,SAAQ,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAClD,wCAAwC;IACxC,GAAG,CAAC,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC;CACxB;AAED,wDAAwD;AACxD,MAAM,WAAW,+BACf,SAAQ,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAClD,+CAA+C;IAC/C,GAAG,CAAC,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC;CACxB;AAED,qFAAqF;AACrF,wBAAgB,IAAI,CAAC,EACnB,SAAS,EACT,GAAG,EACH,GAAG,KAAK,EACT,EAAE,QAAQ,CAAC,wBAAwB,CAAC,GAAG,YAAY,CAUnD;AAED,wEAAwE;AACxE,wBAAgB,IAAI,CAAC,EACnB,SAAS,EACT,GAAG,EACH,GAAG,KAAK,EACT,EAAE,QAAQ,CAAC,wBAAwB,CAAC,GAAG,YAAY,CAQnD;AAED,8CAA8C;AAC9C,wBAAgB,IAAI,CAAC,EACnB,SAAS,EACT,GAAG,EACH,GAAG,KAAK,EACT,EAAE,QAAQ,CAAC,wBAAwB,CAAC,GAAG,YAAY,CAQnD;AAED,uEAAuE;AACvE,wBAAgB,WAAW,CAAC,EAC1B,SAAS,EACT,GAAG,EACH,GAAG,KAAK,EACT,EAAE,QAAQ,CAAC,+BAA+B,CAAC,GAAG,YAAY,CAQ1D;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe;IAC1B,0CAA0C;;IAE1C,mDAAmD;;IAEnD,yCAAyC;;IAEzC,oCAAoC;;CAErC,CAAC"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import type { ReactElement, ReactNode } from 'react';
|
|
2
|
-
import { SharedModalContent, type SharedModalContentProps, SharedOverlayClose, type SharedOverlayCloseProps, SharedOverlayDescription, type SharedOverlayDescriptionProps, SharedOverlayTitle, type SharedOverlayTitleProps, SharedOverlayTrigger, type SharedOverlayTriggerProps } from '../../internal/react-aria/OverlayParts';
|
|
3
|
-
interface DialogRootSharedProps {
|
|
4
|
-
/** Trigger and content parts. */ children: ReactNode;
|
|
5
|
-
}
|
|
6
|
-
interface ControlledDialogRootProps {
|
|
7
|
-
/** Current open state. */ open: boolean;
|
|
8
|
-
/** Called with the next open state. */ onOpenChange: (open: boolean) => void;
|
|
9
|
-
defaultOpen?: never;
|
|
10
|
-
readOnly?: false;
|
|
11
|
-
}
|
|
12
|
-
interface ReadOnlyDialogRootProps {
|
|
13
|
-
/** Current immutable open state. */ open: boolean;
|
|
14
|
-
/** Marks controlled state as intentionally immutable. */ readOnly: true;
|
|
15
|
-
defaultOpen?: never;
|
|
16
|
-
onOpenChange?: never;
|
|
17
|
-
}
|
|
18
|
-
interface UncontrolledDialogRootProps {
|
|
19
|
-
/** Initial open state. Defaults to `false`. */ defaultOpen?: boolean;
|
|
20
|
-
/** Called with the next open state. */ onOpenChange?: (open: boolean) => void;
|
|
21
|
-
open?: never;
|
|
22
|
-
readOnly?: false;
|
|
23
|
-
}
|
|
24
|
-
/** Props for controlled, read-only, or uncontrolled dialog state. */
|
|
25
|
-
export type DialogRootProps = DialogRootSharedProps & (ControlledDialogRootProps | ReadOnlyDialogRootProps | UncontrolledDialogRootProps);
|
|
26
|
-
/** Props for the dialog trigger action. */ export type DialogTriggerProps = SharedOverlayTriggerProps;
|
|
27
|
-
/** Props for modal dialog content. */ export interface DialogContentProps extends Omit<SharedModalContentProps, 'modalState'> {
|
|
28
|
-
/** Allows pointer dismissal outside the dialog. Defaults to `true`. */ dismissible?: boolean;
|
|
29
|
-
/** Prevents Escape dismissal. Defaults to `false`. */ keyboardDismissDisabled?: boolean;
|
|
30
|
-
}
|
|
31
|
-
/** Props for the required accessible dialog title. */ export type DialogTitleProps = SharedOverlayTitleProps;
|
|
32
|
-
/** Props for the required accessible dialog description. */ export type DialogDescriptionProps = SharedOverlayDescriptionProps;
|
|
33
|
-
/** Props for a semantic dialog close action. */ export type DialogCloseProps = SharedOverlayCloseProps;
|
|
34
|
-
/** Coordinates dialog trigger, open state, focus, and restoration. */
|
|
35
|
-
export declare function Root({ defaultOpen, onOpenChange, open, readOnly: _readOnly, ...props }: Readonly<DialogRootProps>): ReactElement;
|
|
36
|
-
/**
|
|
37
|
-
* Accessible compound modal dialog primitive.
|
|
38
|
-
*
|
|
39
|
-
* @summary modal content with focus containment and restoration
|
|
40
|
-
*/
|
|
41
|
-
export declare const Dialog: {
|
|
42
|
-
/** Semantic action that closes the dialog and restores trigger focus. */
|
|
43
|
-
Close: typeof SharedOverlayClose;
|
|
44
|
-
/** Modal surface, focus scope, backdrop, and dismissal boundary. */
|
|
45
|
-
Content: typeof SharedModalContent;
|
|
46
|
-
/** Required accessible dialog description. */
|
|
47
|
-
Description: typeof SharedOverlayDescription;
|
|
48
|
-
/** Controlled, read-only, or uncontrolled open-state coordinator. */
|
|
49
|
-
Root: typeof Root;
|
|
50
|
-
/** Required accessible dialog title. */
|
|
51
|
-
Title: typeof SharedOverlayTitle;
|
|
52
|
-
/** Semantic action that opens the dialog. */
|
|
53
|
-
Trigger: typeof SharedOverlayTrigger;
|
|
54
|
-
};
|
|
55
|
-
export {};
|
|
56
|
-
//# sourceMappingURL=Dialog.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../src/primitives/Dialog/Dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGrD,OAAO,EACL,kBAAkB,EAClB,KAAK,uBAAuB,EAC5B,kBAAkB,EAClB,KAAK,uBAAuB,EAC5B,wBAAwB,EACxB,KAAK,6BAA6B,EAClC,kBAAkB,EAClB,KAAK,uBAAuB,EAC5B,oBAAoB,EACpB,KAAK,yBAAyB,EAC/B,MAAM,wCAAwC,CAAC;AAGhD,UAAU,qBAAqB;IAC7B,iCAAiC,CAAC,QAAQ,EAAE,SAAS,CAAC;CACvD;AACD,UAAU,yBAAyB;IACjC,0BAA0B,CAAC,IAAI,EAAE,OAAO,CAAC;IACzC,uCAAuC,CAAC,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9E,WAAW,CAAC,EAAE,KAAK,CAAC;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC;CAClB;AACD,UAAU,uBAAuB;IAC/B,oCAAoC,CAAC,IAAI,EAAE,OAAO,CAAC;IACnD,yDAAyD,CAAC,QAAQ,EAAE,IAAI,CAAC;IACzE,WAAW,CAAC,EAAE,KAAK,CAAC;IACpB,YAAY,CAAC,EAAE,KAAK,CAAC;CACtB;AACD,UAAU,2BAA2B;IACnC,+CAA+C,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtE,uCAAuC,CAAC,YAAY,CAAC,EAAE,CACrD,IAAI,EAAE,OAAO,KACV,IAAI,CAAC;IACV,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,QAAQ,CAAC,EAAE,KAAK,CAAC;CAClB;AACD,qEAAqE;AACrE,MAAM,MAAM,eAAe,GAAG,qBAAqB,GACjD,CACI,yBAAyB,GACzB,uBAAuB,GACvB,2BAA2B,CAC9B,CAAC;AACJ,2CAA2C,CAAC,MAAM,MAAM,kBAAkB,GACxE,yBAAyB,CAAC;AAC5B,sCAAsC,CAAC,MAAM,WAAW,kBACtD,SAAQ,IAAI,CAAC,uBAAuB,EAAE,YAAY,CAAC;IACnD,uEAAuE,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAC9F,sDAAsD,CAAC,uBAAuB,CAAC,EAAE,OAAO,CAAC;CAC1F;AACD,sDAAsD,CAAC,MAAM,MAAM,gBAAgB,GACjF,uBAAuB,CAAC;AAC1B,4DAA4D,CAAC,MAAM,MAAM,sBAAsB,GAC7F,6BAA6B,CAAC;AAChC,gDAAgD,CAAC,MAAM,MAAM,gBAAgB,GAC3E,uBAAuB,CAAC;AAE1B,sEAAsE;AACtE,wBAAgB,IAAI,CAAC,EACnB,WAAW,EACX,YAAY,EACZ,IAAI,EACJ,QAAQ,EAAE,SAAS,EACnB,GAAG,KAAK,EACT,EAAE,QAAQ,CAAC,eAAe,CAAC,GAAG,YAAY,CAQ1C;AAED;;;;GAIG;AACH,eAAO,MAAM,MAAM;IACjB,yEAAyE;;IAEzE,oEAAoE;;IAEpE,8CAA8C;;IAE9C,qEAAqE;;IAErE,wCAAwC;;IAExC,6CAA6C;;CAE9C,CAAC"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import type { HTMLAttributes, ReactElement, ReactNode, Ref } from 'react';
|
|
2
|
-
import { SharedDisclosurePanel, type SharedDisclosurePanelProps, SharedDisclosureTrigger, type SharedDisclosureTriggerProps } from '../../internal/react-aria/DisclosureParts';
|
|
3
|
-
type DisclosureRootNativeProps = Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'onChange' | 'style'>;
|
|
4
|
-
interface DisclosureRootSharedProps extends DisclosureRootNativeProps {
|
|
5
|
-
/** Trigger and panel parts. */
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
/** Prevents the trigger from changing state. Defaults to `false`. */
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
/** Ref to the rendered disclosure root. */
|
|
10
|
-
ref?: Ref<HTMLDivElement>;
|
|
11
|
-
}
|
|
12
|
-
interface ControlledDisclosureRootProps {
|
|
13
|
-
/** Current expanded state. */
|
|
14
|
-
open: boolean;
|
|
15
|
-
/** Called with the next expanded state. */
|
|
16
|
-
onOpenChange: (open: boolean) => void;
|
|
17
|
-
defaultOpen?: never;
|
|
18
|
-
readOnly?: false;
|
|
19
|
-
}
|
|
20
|
-
interface ReadOnlyDisclosureRootProps {
|
|
21
|
-
/** Current immutable expanded state. */
|
|
22
|
-
open: boolean;
|
|
23
|
-
/** Marks controlled state as intentionally immutable. */
|
|
24
|
-
readOnly: true;
|
|
25
|
-
defaultOpen?: never;
|
|
26
|
-
onOpenChange?: never;
|
|
27
|
-
}
|
|
28
|
-
interface UncontrolledDisclosureRootProps {
|
|
29
|
-
/** Initial expanded state. Defaults to `false`. */
|
|
30
|
-
defaultOpen?: boolean;
|
|
31
|
-
/** Called with the next expanded state. */
|
|
32
|
-
onOpenChange?: (open: boolean) => void;
|
|
33
|
-
open?: never;
|
|
34
|
-
readOnly?: false;
|
|
35
|
-
}
|
|
36
|
-
/** Props for controlled, read-only, or uncontrolled disclosure state. */
|
|
37
|
-
export type DisclosureRootProps = DisclosureRootSharedProps & (ControlledDisclosureRootProps | ReadOnlyDisclosureRootProps | UncontrolledDisclosureRootProps);
|
|
38
|
-
/** Props for the disclosure heading button. */
|
|
39
|
-
export type DisclosureTriggerProps = SharedDisclosureTriggerProps;
|
|
40
|
-
/** Props for the collapsible disclosure content. */
|
|
41
|
-
export type DisclosurePanelProps = SharedDisclosurePanelProps;
|
|
42
|
-
/** Coordinates the trigger and collapsible panel state. */
|
|
43
|
-
export declare function Root({ className, defaultOpen, disabled, onOpenChange, open, readOnly: _readOnly, ref, ...props }: Readonly<DisclosureRootProps>): ReactElement;
|
|
44
|
-
/**
|
|
45
|
-
* Reveals supporting content from a labelled trigger while preserving controlled,
|
|
46
|
-
* read-only, and uncontrolled state ownership.
|
|
47
|
-
*
|
|
48
|
-
* @summary collapsible supporting content with accessible trigger semantics
|
|
49
|
-
*/
|
|
50
|
-
export declare const Disclosure: {
|
|
51
|
-
/** Collapsible panel content. */
|
|
52
|
-
Panel: typeof SharedDisclosurePanel;
|
|
53
|
-
/** State and semantic root. */
|
|
54
|
-
Root: typeof Root;
|
|
55
|
-
/** Heading button that toggles the panel. */
|
|
56
|
-
Trigger: typeof SharedDisclosureTrigger;
|
|
57
|
-
};
|
|
58
|
-
export {};
|
|
59
|
-
//# sourceMappingURL=Disclosure.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Disclosure.d.ts","sourceRoot":"","sources":["../../../src/primitives/Disclosure/Disclosure.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAK1E,OAAO,EACL,qBAAqB,EACrB,KAAK,0BAA0B,EAC/B,uBAAuB,EACvB,KAAK,4BAA4B,EAClC,MAAM,2CAA2C,CAAC;AAOnD,KAAK,yBAAyB,GAAG,IAAI,CACnC,cAAc,CAAC,cAAc,CAAC,EAC9B,UAAU,GAAG,UAAU,GAAG,OAAO,CAClC,CAAC;AAEF,UAAU,yBAA0B,SAAQ,yBAAyB;IACnE,+BAA+B;IAC/B,QAAQ,EAAE,SAAS,CAAC;IACpB,qEAAqE;IACrE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,2CAA2C;IAC3C,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC3B;AAED,UAAU,6BAA6B;IACrC,8BAA8B;IAC9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