@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 { Key, ReactElement, ReactNode } from 'react';
|
|
2
|
-
import { type SharedModalContentProps, SharedOverlayClose, type SharedOverlayCloseProps, SharedOverlayDescription, type SharedOverlayDescriptionProps, SharedOverlayTitle, type SharedOverlayTitleProps, SharedOverlayTrigger, type SharedOverlayTriggerProps } from '../../internal/react-aria/OverlayParts';
|
|
3
|
-
import { type ResponsiveValue } from '../../internal/styling/responsive';
|
|
4
|
-
/** Supported physical modes expressed with logical inline placement. */
|
|
5
|
-
export type DrawerPlacement = 'start' | 'end' | 'bottom';
|
|
6
|
-
/** Canonical inline drawer widths. Bottom drawers always remain full width. */
|
|
7
|
-
export type DrawerSize = 'default' | 'medium' | 'wide';
|
|
8
|
-
/** Desktop-only boundary used to layer a nested drawer beside existing content. */
|
|
9
|
-
export interface DrawerAdjacentLayer {
|
|
10
|
-
/** Inline-end viewport space reserved for the existing layer, in CSS pixels. */
|
|
11
|
-
inlineEndOffset: number;
|
|
12
|
-
}
|
|
13
|
-
interface DrawerRootSharedProps {
|
|
14
|
-
/** Trigger and drawer content. */ children: ReactNode;
|
|
15
|
-
}
|
|
16
|
-
interface ControlledDrawerRootProps {
|
|
17
|
-
/** Current open state. */ open: boolean;
|
|
18
|
-
/** Called with the next open state. */ onOpenChange: (open: boolean) => void;
|
|
19
|
-
defaultOpen?: never;
|
|
20
|
-
readOnly?: false;
|
|
21
|
-
}
|
|
22
|
-
interface ReadOnlyDrawerRootProps {
|
|
23
|
-
/** Current immutable open state. */ open: boolean;
|
|
24
|
-
/** Marks controlled state immutable. */ readOnly: true;
|
|
25
|
-
defaultOpen?: never;
|
|
26
|
-
onOpenChange?: never;
|
|
27
|
-
}
|
|
28
|
-
interface UncontrolledDrawerRootProps {
|
|
29
|
-
/** Initial open state. */ defaultOpen?: boolean;
|
|
30
|
-
/** Called with the next open state. */ onOpenChange?: (open: boolean) => void;
|
|
31
|
-
open?: never;
|
|
32
|
-
readOnly?: false;
|
|
33
|
-
}
|
|
34
|
-
interface TriggeredDrawerRootProps extends DrawerRootSharedProps {
|
|
35
|
-
/** Uses a compound trigger to coordinate drawer state. */
|
|
36
|
-
triggerless?: false;
|
|
37
|
-
}
|
|
38
|
-
interface TriggerlessDrawerRootProps extends DrawerRootSharedProps {
|
|
39
|
-
defaultOpen?: never;
|
|
40
|
-
/** Called with the next externally controlled open state. */
|
|
41
|
-
onOpenChange: (open: boolean) => void;
|
|
42
|
-
/** Current externally controlled open state. */
|
|
43
|
-
open: boolean;
|
|
44
|
-
readOnly?: never;
|
|
45
|
-
/** Omits a compound trigger for state controlled by an external action. */
|
|
46
|
-
triggerless: true;
|
|
47
|
-
}
|
|
48
|
-
/** Props for controlled, read-only, or uncontrolled drawer state. */ export type DrawerRootProps = (TriggeredDrawerRootProps & (ControlledDrawerRootProps | ReadOnlyDrawerRootProps | UncontrolledDrawerRootProps)) | TriggerlessDrawerRootProps;
|
|
49
|
-
/** Props for the drawer trigger. */ export type DrawerTriggerProps = SharedOverlayTriggerProps;
|
|
50
|
-
/** Props for a responsive modal drawer surface. */ export interface DrawerContentProps extends Omit<SharedModalContentProps, 'modalClassName' | 'modalState' | 'overlayClassName' | 'overlayStyle' | 'surfaceClassName'> {
|
|
51
|
-
/** Clips and positions this layer beside reserved content on wide screens. */
|
|
52
|
-
adjacent?: DrawerAdjacentLayer;
|
|
53
|
-
/** Header treatment. `none` leaves all content unframed for application-owned shell drawers. Defaults to `default`. */
|
|
54
|
-
chrome?: 'default' | 'none' | 'soft';
|
|
55
|
-
/** Responsive logical edge. Defaults to `end`. */ placement?: ResponsiveValue<DrawerPlacement>;
|
|
56
|
-
/** Resets the scrollable body to the start whenever this value changes. */ scrollResetKey?: Key;
|
|
57
|
-
/** Canonical inline width. Bottom placement remains full width. Defaults to `default`. */
|
|
58
|
-
size?: DrawerSize;
|
|
59
|
-
}
|
|
60
|
-
/** Props for the required drawer title. */ export type DrawerTitleProps = SharedOverlayTitleProps;
|
|
61
|
-
/** Props for the required drawer description. */ export type DrawerDescriptionProps = SharedOverlayDescriptionProps;
|
|
62
|
-
/** Props for a semantic drawer close action. */ export type DrawerCloseProps = SharedOverlayCloseProps;
|
|
63
|
-
/** Coordinates a modal panel that enters from a logical viewport edge. */
|
|
64
|
-
export declare function Root(props: Readonly<DrawerRootProps>): ReactElement;
|
|
65
|
-
export declare function Content({ adjacent, children, chrome, placement, ref, scrollResetKey, size, ...props }: Readonly<DrawerContentProps>): ReactElement;
|
|
66
|
-
/**
|
|
67
|
-
* Presents a modal task surface from a logical viewport edge with responsive
|
|
68
|
-
* placement, focus containment, and controlled or trigger-owned state.
|
|
69
|
-
*
|
|
70
|
-
* @summary responsive edge-mounted modal task surface
|
|
71
|
-
*/
|
|
72
|
-
export declare const Drawer: {
|
|
73
|
-
/** Semantic action that closes the current drawer layer. */
|
|
74
|
-
Close: typeof SharedOverlayClose;
|
|
75
|
-
/** Responsive modal drawer surface and focus scope. */
|
|
76
|
-
Content: typeof Content;
|
|
77
|
-
/** Required accessible drawer description. */
|
|
78
|
-
Description: typeof SharedOverlayDescription;
|
|
79
|
-
/** Controlled, read-only, or uncontrolled open-state coordinator. */
|
|
80
|
-
Root: typeof Root;
|
|
81
|
-
/** Required accessible drawer title. */
|
|
82
|
-
Title: typeof SharedOverlayTitle;
|
|
83
|
-
/** Semantic action that opens the drawer. */
|
|
84
|
-
Trigger: typeof SharedOverlayTrigger;
|
|
85
|
-
};
|
|
86
|
-
export {};
|
|
87
|
-
//# sourceMappingURL=Drawer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/primitives/Drawer/Drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,GAAG,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAezE,OAAO,EAEL,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;AAChD,OAAO,EAEL,KAAK,eAAe,EACrB,MAAM,mCAAmC,CAAC;AAM3C,wEAAwE;AACxE,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC;AACzD,+EAA+E;AAC/E,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;AACvD,mFAAmF;AACnF,MAAM,WAAW,mBAAmB;IAClC,gFAAgF;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from 'react';
|
|
2
|
-
import type { DropZoneFileReadFailure, FileRejection } from '../../internal/types/file';
|
|
3
|
-
import { type FileFeedbackPartProps } from '../file/FileFeedback';
|
|
4
|
-
type WithoutEventHandlers<Props> = {
|
|
5
|
-
[Key in keyof Props as Key extends `on${string}` ? never : Key]: Props[Key];
|
|
6
|
-
};
|
|
7
|
-
type DropZoneNativeProps = Omit<WithoutEventHandlers<HTMLAttributes<HTMLDivElement>>, 'children' | 'style'>;
|
|
8
|
-
/** Props for an accessible native-file drop target. */
|
|
9
|
-
export interface DropZoneRootProps extends DropZoneNativeProps {
|
|
10
|
-
/** Drop-zone label, guidance, trigger, and feedback. */
|
|
11
|
-
children: ReactNode;
|
|
12
|
-
/** Accepted MIME types, wildcard MIME groups, or extensions. */
|
|
13
|
-
acceptedFileTypes?: readonly string[];
|
|
14
|
-
/** Allows more than one dropped file. Defaults to `false`. */
|
|
15
|
-
allowsMultiple?: boolean;
|
|
16
|
-
/** Prevents focus and dropping. Defaults to `false`. */
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
/** Exposes invalid state to assistive technology. Defaults to `false`. */
|
|
19
|
-
invalid?: boolean;
|
|
20
|
-
/** Maximum accepted file size in bytes. */
|
|
21
|
-
maxFileSize?: number;
|
|
22
|
-
/** Called with dropped native files. */
|
|
23
|
-
onFiles: (files: File[]) => void;
|
|
24
|
-
/** Called with files rejected by Breeze constraints. */
|
|
25
|
-
onReject?: (rejections: FileRejection[]) => void;
|
|
26
|
-
/** Called once when native file reading fails. Mixed drops are atomic: `onFiles` and `onReject` are not called when any item fails to read. */
|
|
27
|
-
onFileReadError?: (failures: DropZoneFileReadFailure[]) => void;
|
|
28
|
-
/** Ref to the rendered drop-zone root. */
|
|
29
|
-
ref?: Ref<HTMLDivElement>;
|
|
30
|
-
/** Exposes required presentation and validation state. Defaults to `false`. */
|
|
31
|
-
required?: boolean;
|
|
32
|
-
}
|
|
33
|
-
/** Props for built-in dropped-file rejection feedback. */
|
|
34
|
-
export type DropZoneFeedbackProps = FileFeedbackPartProps;
|
|
35
|
-
/** Props for supporting drop-zone guidance. */
|
|
36
|
-
export interface DropZoneDescriptionProps extends Omit<HTMLAttributes<HTMLParagraphElement>, 'id' | 'style'> {
|
|
37
|
-
/** Guidance describing accepted files or interaction. */
|
|
38
|
-
children: ReactNode;
|
|
39
|
-
/** Ref to the rendered description. */
|
|
40
|
-
ref?: Ref<HTMLParagraphElement>;
|
|
41
|
-
}
|
|
42
|
-
/** Props for accessible invalid-state feedback. */
|
|
43
|
-
export interface DropZoneErrorProps extends Omit<HTMLAttributes<HTMLParagraphElement>, 'id' | 'style'> {
|
|
44
|
-
/** Validation message shown while the root is invalid. */
|
|
45
|
-
children: ReactNode;
|
|
46
|
-
/** Ref to the rendered error. */
|
|
47
|
-
ref?: Ref<HTMLParagraphElement>;
|
|
48
|
-
}
|
|
49
|
-
/** Props for the visible drop-zone label. */
|
|
50
|
-
export interface DropZoneLabelProps extends Omit<HTMLAttributes<HTMLElement>, 'style'> {
|
|
51
|
-
/** Persistent label that names the drop target. */
|
|
52
|
-
children: ReactNode;
|
|
53
|
-
/** Ref to the rendered label. */
|
|
54
|
-
ref?: Ref<HTMLElement>;
|
|
55
|
-
}
|
|
56
|
-
/** Receives file drops through React Aria's pointer and keyboard model. */
|
|
57
|
-
export declare function Root({ acceptedFileTypes, allowsMultiple, children, className, disabled, invalid, maxFileSize, onFiles, onFileReadError, onReject, ref, required, ...props }: Readonly<DropZoneRootProps>): ReactElement;
|
|
58
|
-
/** Renders supporting guidance associated with the drop target. */
|
|
59
|
-
export declare function Description({ ref, ...props }: Readonly<DropZoneDescriptionProps>): ReactElement;
|
|
60
|
-
/** Renders an associated validation message while the root is invalid. */
|
|
61
|
-
declare function ErrorMessage({ ref, ...props }: Readonly<DropZoneErrorProps>): ReactElement | null;
|
|
62
|
-
export { ErrorMessage as Error };
|
|
63
|
-
/** Announces Breeze-owned type, size, and count rejection feedback. */
|
|
64
|
-
export declare function Feedback(props: Readonly<DropZoneFeedbackProps>): ReactElement | null;
|
|
65
|
-
/** Renders the visible label consumed by React Aria's drop affordance. */
|
|
66
|
-
export declare function Label({ className, ref, ...props }: Readonly<DropZoneLabelProps>): ReactElement;
|
|
67
|
-
/**
|
|
68
|
-
* Accepts native file drops through an accessible drop target while Breeze
|
|
69
|
-
* validates file constraints and applications own upload processing.
|
|
70
|
-
*
|
|
71
|
-
* @summary accessible native-file drop target with validation feedback
|
|
72
|
-
*/
|
|
73
|
-
export declare const DropZone: {
|
|
74
|
-
/** Supporting drop guidance. */
|
|
75
|
-
Description: typeof Description;
|
|
76
|
-
/** Invalid-state validation feedback. */
|
|
77
|
-
Error: typeof ErrorMessage;
|
|
78
|
-
/** Accessible Breeze-owned file rejection feedback. */
|
|
79
|
-
Feedback: typeof Feedback;
|
|
80
|
-
/** Persistent accessible drop-target label. */
|
|
81
|
-
Label: typeof Label;
|
|
82
|
-
/** Native-file drop interaction boundary. */
|
|
83
|
-
Root: typeof Root;
|
|
84
|
-
};
|
|
85
|
-
//# sourceMappingURL=DropZone.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DropZone.d.ts","sourceRoot":"","sources":["../../../src/primitives/DropZone/DropZone.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,cAAc,EACd,YAAY,EACZ,SAAS,EACT,GAAG,EACJ,MAAM,OAAO,CAAC;AAgBf,OAAO,KAAK,EACV,uBAAuB,EACvB,aAAa,EACd,MAAM,2BAA2B,CAAC;AAEnC,OAAqB,EAAE,KAAK,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAyBhF,KAAK,oBAAoB,CAAC,KAAK,IAAI;KAChC,GAAG,IAAI,MAAM,KAAK,IAAI,GAAG,SAAS,KAAK,MAAM,EAAE,GAAG,KAAK,GAAG,GAAG,GAAG,KAAK,CAAC,GAAG,CAAC;CAC5E,CAAC;AAEF,KAAK,mBAAmB,GAAG,IAAI,CAC7B,oBAAoB,CAAC,cAA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;;IAEhC,yCAAyC;;IAEzC,uDAAuD;;IAEvD,+CAA+C;;IAE/C,6CAA6C;;CAE9C,CAAC"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import type { FieldsetHTMLAttributes, HTMLAttributes, ReactElement, ReactNode, Ref } from 'react';
|
|
2
|
-
/** Props for a native group of related form controls. */
|
|
3
|
-
export interface FieldsetRootProps extends Omit<FieldsetHTMLAttributes<HTMLFieldSetElement>, 'style'> {
|
|
4
|
-
/** Legend, description, error, and related controls. */
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
/** Exposes invalid group state to assistive technology and error association. Defaults to `false`. */
|
|
7
|
-
invalid?: boolean;
|
|
8
|
-
/** Ref to the rendered fieldset. */
|
|
9
|
-
ref?: Ref<HTMLFieldSetElement>;
|
|
10
|
-
}
|
|
11
|
-
/** Props for the native fieldset legend. */
|
|
12
|
-
export interface FieldsetLegendProps extends Omit<HTMLAttributes<HTMLLegendElement>, 'style'> {
|
|
13
|
-
/** Persistent group name. */
|
|
14
|
-
children: ReactNode;
|
|
15
|
-
/** Ref to the rendered legend. */
|
|
16
|
-
ref?: Ref<HTMLLegendElement>;
|
|
17
|
-
}
|
|
18
|
-
/** Props for supporting text associated with the fieldset. */
|
|
19
|
-
export interface FieldsetDescriptionProps extends Omit<HTMLAttributes<HTMLParagraphElement>, 'id' | 'style'> {
|
|
20
|
-
/** Supporting guidance for the control group. */
|
|
21
|
-
children: ReactNode;
|
|
22
|
-
/** Ref to the rendered description. */
|
|
23
|
-
ref?: Ref<HTMLParagraphElement>;
|
|
24
|
-
}
|
|
25
|
-
/** Props for an accessible fieldset validation message. */
|
|
26
|
-
export interface FieldsetErrorProps extends Omit<HTMLAttributes<HTMLParagraphElement>, 'id' | 'style'> {
|
|
27
|
-
/** Validation message for the control group. */
|
|
28
|
-
children: ReactNode;
|
|
29
|
-
/** Ref to the rendered error message. */
|
|
30
|
-
ref?: Ref<HTMLParagraphElement>;
|
|
31
|
-
}
|
|
32
|
-
/** Renders a native form-control group with associated compound guidance. */
|
|
33
|
-
export declare function Root({ 'aria-describedby': ariaDescribedBy, children, className, invalid, ref, ...props }: Readonly<FieldsetRootProps>): ReactElement;
|
|
34
|
-
/** Renders the native accessible name for a Fieldset. */
|
|
35
|
-
export declare function Legend({ className, ref, ...props }: Readonly<FieldsetLegendProps>): ReactElement;
|
|
36
|
-
/** Renders supporting guidance associated with a Fieldset. */
|
|
37
|
-
export declare function Description({ className, ref, ...props }: Readonly<FieldsetDescriptionProps>): ReactElement;
|
|
38
|
-
/** Renders a validation message associated with an invalid Fieldset. */
|
|
39
|
-
declare function ErrorMessage({ className, ref, ...props }: Readonly<FieldsetErrorProps>): ReactElement;
|
|
40
|
-
export { ErrorMessage as Error };
|
|
41
|
-
/**
|
|
42
|
-
* Groups related form controls with native fieldset and legend semantics plus
|
|
43
|
-
* associated guidance and group-level validation feedback.
|
|
44
|
-
*
|
|
45
|
-
* @summary native form-control group with accessible compound guidance
|
|
46
|
-
*/
|
|
47
|
-
export declare const Fieldset: {
|
|
48
|
-
/** Supporting guidance associated with the group. */
|
|
49
|
-
Description: typeof Description;
|
|
50
|
-
/** Validation message associated with an invalid group. */
|
|
51
|
-
Error: typeof ErrorMessage;
|
|
52
|
-
/** Persistent native group name. */
|
|
53
|
-
Legend: typeof Legend;
|
|
54
|
-
/** Native fieldset and accessibility root. */
|
|
55
|
-
Root: typeof Root;
|
|
56
|
-
};
|
|
57
|
-
//# sourceMappingURL=Fieldset.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Fieldset.d.ts","sourceRoot":"","sources":["../../../src/primitives/Fieldset/Fieldset.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,cAAc,EACd,YAAY,EACZ,SAAS,EACT,GAAG,EACJ,MAAM,OAAO,CAAC;AA+Cf,yDAAyD;AACzD,MAAM,WAAW,iBACf,SAAQ,IAAI,CAAC,sBAAsB,CAAC,mBAAmB,CA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A8D;AAC9D,wBAAgB,WAAW,CAAC,EAC1B,SAAS,EACT,GAAG,EACH,GAAG,KAAK,EACT,EAAE,QAAQ,CAAC,wBAAwB,CAAC,GAAG,YAAY,CAUnD;AAED,wEAAwE;AACxE,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,GAAG,EACH,GAAG,KAAK,EACT,EAAE,QAAQ,CAAC,kBAAkB,CAAC,GAAG,YAAY,CAU7C;AAED,OAAO,EAAE,YAAY,IAAI,KAAK,EAAE,CAAC;AAEjC;;;;;GAKG;AACH,eAAO,MAAM,QAAQ;IACnB,qDAAqD;;IAErD,2DAA2D;;IAE3D,oCAAoC;;IAEpC,8CAA8C;;CAE/C,CAAC"}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import type { InputHTMLAttributes, ReactElement, ReactNode, Ref } from 'react';
|
|
2
|
-
import type { FileRejection } from '../../internal/types/file';
|
|
3
|
-
import type { NativeButtonProps } from '../../internal/types/native';
|
|
4
|
-
import { type FileFeedbackPartProps } from '../file/FileFeedback';
|
|
5
|
-
type WithoutEventHandlers<Props> = {
|
|
6
|
-
[Key in keyof Props as Key extends `on${string}` ? never : Key]: Props[Key];
|
|
7
|
-
};
|
|
8
|
-
type NativeFileInputProps = Omit<WithoutEventHandlers<InputHTMLAttributes<HTMLInputElement>>, 'accept' | 'capture' | 'children' | 'className' | 'disabled' | 'form' | 'multiple' | 'name' | 'required' | 'style' | 'type'>;
|
|
9
|
-
/** Props for the native file-dialog boundary. */
|
|
10
|
-
export interface FileTriggerRootProps extends NativeFileInputProps {
|
|
11
|
-
/** Pressable trigger and file-selection feedback. */
|
|
12
|
-
children: ReactNode;
|
|
13
|
-
/** Accepted MIME types, wildcard MIME groups, or extensions. */
|
|
14
|
-
acceptedFileTypes?: readonly string[];
|
|
15
|
-
/** Enables native directory selection instead of individual files. Defaults to `false`. */
|
|
16
|
-
acceptDirectory?: boolean;
|
|
17
|
-
/** Allows more than one file to be selected. Defaults to `false`. */
|
|
18
|
-
allowsMultiple?: boolean;
|
|
19
|
-
/** Prevents opening the native file dialog. Defaults to `false`. */
|
|
20
|
-
disabled?: boolean;
|
|
21
|
-
/** Requests the user-facing or environment camera for media capture. */
|
|
22
|
-
defaultCamera?: 'environment' | 'user';
|
|
23
|
-
/** External native form id. */
|
|
24
|
-
form?: string;
|
|
25
|
-
/** Exposes invalid state to assistive technology. Defaults to `false`. */
|
|
26
|
-
invalid?: boolean;
|
|
27
|
-
/** Maximum accepted file size in bytes. */
|
|
28
|
-
maxFileSize?: number;
|
|
29
|
-
/** Native form field name. */
|
|
30
|
-
name?: string;
|
|
31
|
-
/** Called with selected native files. */
|
|
32
|
-
onFiles: (files: File[]) => void;
|
|
33
|
-
/** Called with files rejected by Breeze constraints. */
|
|
34
|
-
onReject?: (rejections: FileRejection[]) => void;
|
|
35
|
-
/** Marks file selection as required for assistive technology. Defaults to `false`. */
|
|
36
|
-
required?: boolean;
|
|
37
|
-
/** Ref to the hidden native file input. */
|
|
38
|
-
ref?: Ref<HTMLInputElement>;
|
|
39
|
-
}
|
|
40
|
-
/** Props for built-in file-selection rejection feedback. */
|
|
41
|
-
export type FileTriggerFeedbackProps = FileFeedbackPartProps;
|
|
42
|
-
/** Props for the keyboard-operable dialog trigger. */
|
|
43
|
-
export interface FileTriggerButtonProps extends NativeButtonProps {
|
|
44
|
-
/** Trigger label or content. */
|
|
45
|
-
children: ReactNode;
|
|
46
|
-
/** Placement and composition classes. */
|
|
47
|
-
className?: string;
|
|
48
|
-
/** Ref to the rendered trigger button. */
|
|
49
|
-
ref?: Ref<HTMLButtonElement>;
|
|
50
|
-
}
|
|
51
|
-
/** Coordinates native file selection with a React Aria pressable trigger. */
|
|
52
|
-
export declare function Root({ acceptDirectory, acceptedFileTypes, allowsMultiple, children, disabled, defaultCamera, form, invalid, maxFileSize, name, onFiles, onReject, ref, required, ...props }: Readonly<FileTriggerRootProps>): ReactElement;
|
|
53
|
-
/** Announces Breeze-owned type, size, and count rejection feedback. */
|
|
54
|
-
export declare function Feedback(props: Readonly<FileTriggerFeedbackProps>): ReactElement | null;
|
|
55
|
-
/** Opens the associated native file dialog by pointer or keyboard. */
|
|
56
|
-
export declare function Trigger({ children, className, ref, ...props }: Readonly<FileTriggerButtonProps>): ReactElement;
|
|
57
|
-
/**
|
|
58
|
-
* Opens the native file dialog from a keyboard-operable trigger, validates the
|
|
59
|
-
* selected files, and returns accepted files through semantic callbacks.
|
|
60
|
-
*
|
|
61
|
-
* @summary accessible native file selection with validation feedback
|
|
62
|
-
*/
|
|
63
|
-
export declare const FileTrigger: {
|
|
64
|
-
/** Accessible Breeze-owned file rejection feedback. */
|
|
65
|
-
Feedback: typeof Feedback;
|
|
66
|
-
/** Native input and selection boundary. */
|
|
67
|
-
Root: typeof Root;
|
|
68
|
-
/** Keyboard-operable file-dialog trigger. */
|
|
69
|
-
Trigger: typeof Trigger;
|
|
70
|
-
};
|
|
71
|
-
export {};
|
|
72
|
-
//# sourceMappingURL=FileTrigger.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FileTrigger.d.ts","sourceRoot":"","sources":["../../../src/primitives/FileTrigger/FileTrigger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,mBAAmB,EACnB,YAAY,EACZ,SAAS,EACT,GAAG,EAEJ,MAAM,OAAO,CAAC;AAcf,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAErE,OAAqB,EAAE,KAAK,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAWhF,KAAK,oBAAoB,CAAC,KAAK,IAAI;KAChC,GAAG,IAAI,MAAM,KAAK,IAAI,GAAG,SAAS,KAAK,MAAM,EAAE,GAAG,KAAK,GAAG,GAAG,GAAG,KAAK,CAAC,GAAG,CAAC;CAC5E,CAAC;AAEF,KAAK,oBAAoB,GAAG,IAAI,CAC9B,oBAAoB,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