@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,40 +0,0 @@
|
|
|
1
|
-
import type { HTMLAttributes, ReactElement, ReactNode, Ref } from 'react';
|
|
2
|
-
import type { CollectionKey } from '../../internal/types/collection';
|
|
3
|
-
/** Props for the ordered breadcrumb trail. */
|
|
4
|
-
export interface BreadcrumbsRootProps extends Omit<HTMLAttributes<HTMLOListElement>, 'style'> {
|
|
5
|
-
/** Ordered hierarchy ending with the current location. */
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
/** Disables every navigable crumb. Defaults to `false`. */
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
/** Ref to the rendered ordered list. */
|
|
10
|
-
ref?: Ref<HTMLOListElement>;
|
|
11
|
-
}
|
|
12
|
-
/** Props for one location in a breadcrumb hierarchy. */
|
|
13
|
-
export interface BreadcrumbsItemProps extends Omit<HTMLAttributes<HTMLLIElement>, 'id' | 'style'> {
|
|
14
|
-
/** Visible location label. */
|
|
15
|
-
children: ReactNode;
|
|
16
|
-
/** Prevents navigation for this crumb. Defaults to `false`. */
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
/** Destination URL. Omit for the current location. */
|
|
19
|
-
href?: string;
|
|
20
|
-
/** Stable string or number crumb key. */
|
|
21
|
-
id: CollectionKey;
|
|
22
|
-
/** Ref to the rendered list item. */
|
|
23
|
-
ref?: Ref<HTMLLIElement>;
|
|
24
|
-
}
|
|
25
|
-
/** Renders the semantic ordered trail and supplies current-item semantics. */
|
|
26
|
-
export declare function Root({ className, disabled, ref, ...props }: Readonly<BreadcrumbsRootProps>): ReactElement;
|
|
27
|
-
/** Renders one navigable or current breadcrumb. */
|
|
28
|
-
export declare function Item({ children, className, disabled, href, id, ref, ...props }: Readonly<BreadcrumbsItemProps>): ReactElement;
|
|
29
|
-
/**
|
|
30
|
-
* Renders an ordered navigation hierarchy with current-location semantics.
|
|
31
|
-
*
|
|
32
|
-
* @summary ordered hierarchy navigation with current-location semantics
|
|
33
|
-
*/
|
|
34
|
-
export declare const Breadcrumbs: {
|
|
35
|
-
/** One keyed location in the hierarchy. */
|
|
36
|
-
Item: typeof Item;
|
|
37
|
-
/** Ordered breadcrumb trail root. */
|
|
38
|
-
Root: typeof Root;
|
|
39
|
-
};
|
|
40
|
-
//# sourceMappingURL=Breadcrumbs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumbs.d.ts","sourceRoot":"","sources":["../../../src/primitives/Breadcrumbs/Breadcrumbs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;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
|
-
import { type CalendarButtonPartProps, CalendarGridPart, type CalendarGridPartProps, CalendarHeaderPart, type CalendarHeaderPartProps, CalendarHeadingPart, type CalendarHeadingPartProps, CalendarNextButtonPart, CalendarPreviousButtonPart } from '../date/CalendarParts';
|
|
3
|
-
interface SharedProps extends Omit<HTMLAttributes<HTMLDivElement>, 'defaultValue' | 'onChange' | 'style'> {
|
|
4
|
-
/** Calendar navigation, heading, grid, and guidance. */ children: ReactNode;
|
|
5
|
-
/** Prevents focus and selection. */ disabled?: boolean;
|
|
6
|
-
/** Exposes invalid selection state. */ invalid?: boolean;
|
|
7
|
-
/** Returns whether a stable date is unavailable. */ isDateUnavailable?: (date: string) => boolean;
|
|
8
|
-
/** Latest selectable date. */ maxValue?: string;
|
|
9
|
-
/** Earliest selectable date. */ minValue?: string;
|
|
10
|
-
/** Ref to the rendered calendar root. */ ref?: Ref<HTMLDivElement>;
|
|
11
|
-
/** Number of visible months. Defaults to `1`. */ visibleMonths?: number;
|
|
12
|
-
}
|
|
13
|
-
type State = {
|
|
14
|
-
/** Current controlled date, or `null` when empty. */ value: string | null;
|
|
15
|
-
/** Called with the next stable date or `null`. */ onChange: (value: string | null) => void;
|
|
16
|
-
/** Excluded when controlled. */ defaultValue?: never;
|
|
17
|
-
/** Mutable controlled calendars cannot be read-only. */ readOnly?: false;
|
|
18
|
-
} | {
|
|
19
|
-
/** Current immutable date, or `null` when empty. */ value: string | null;
|
|
20
|
-
/** Prevents selection changes. */ readOnly: true;
|
|
21
|
-
/** Excluded when controlled. */ defaultValue?: never;
|
|
22
|
-
/** Excluded because read-only calendars cannot change. */ onChange?: never;
|
|
23
|
-
} | {
|
|
24
|
-
/** Initial uncontrolled date, or `null` when empty. */ defaultValue?: string | null;
|
|
25
|
-
/** Called with the next stable date or `null`. */ onChange?: (value: string | null) => void;
|
|
26
|
-
/** Uncontrolled calendars cannot be read-only. */ readOnly?: false;
|
|
27
|
-
/** Excluded when uncontrolled. */ value?: never;
|
|
28
|
-
};
|
|
29
|
-
/** Props for stable single-date calendar selection. */
|
|
30
|
-
export type CalendarRootProps = SharedProps & State;
|
|
31
|
-
/** Props for the navigation header. */
|
|
32
|
-
export type CalendarHeaderProps = CalendarHeaderPartProps;
|
|
33
|
-
/** Props for previous and next buttons. */
|
|
34
|
-
export type CalendarButtonProps = CalendarButtonPartProps;
|
|
35
|
-
/** Props for the locale-formatted heading. */
|
|
36
|
-
export type CalendarHeadingProps = CalendarHeadingPartProps;
|
|
37
|
-
/** Props for the calendar grid. */
|
|
38
|
-
export type CalendarGridProps = CalendarGridPartProps;
|
|
39
|
-
/** Coordinates a single-date calendar with locale-aware navigation. */
|
|
40
|
-
export declare function Root({ children, className, defaultValue, disabled, invalid, isDateUnavailable, maxValue, minValue, onChange, readOnly, ref, value, visibleMonths, ...props }: Readonly<CalendarRootProps>): ReactElement;
|
|
41
|
-
/**
|
|
42
|
-
* Selects one stable ISO date from an accessible locale-aware calendar.
|
|
43
|
-
*
|
|
44
|
-
* @summary locale-aware selection of one ISO date
|
|
45
|
-
*/
|
|
46
|
-
export declare const Calendar: {
|
|
47
|
-
/** Locale-aware weekday and day grid. */
|
|
48
|
-
Grid: typeof CalendarGridPart;
|
|
49
|
-
/** Navigation header container. */
|
|
50
|
-
Header: typeof CalendarHeaderPart;
|
|
51
|
-
/** Visible month heading. */
|
|
52
|
-
Heading: typeof CalendarHeadingPart;
|
|
53
|
-
/** Next-page navigation. */
|
|
54
|
-
NextButton: typeof CalendarNextButtonPart;
|
|
55
|
-
/** Previous-page navigation. */
|
|
56
|
-
PreviousButton: typeof CalendarPreviousButtonPart;
|
|
57
|
-
/** Stable date state and constraints. */
|
|
58
|
-
Root: typeof Root;
|
|
59
|
-
};
|
|
60
|
-
export {};
|
|
61
|
-
//# sourceMappingURL=Calendar.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Calendar.d.ts","sourceRoot":"","sources":["../../../src/primitives/Calendar/Calendar.tsx"],"names":[],"mappings":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|
3
|
-
export interface CardRootProps extends Omit<HTMLAttributes<HTMLElement>, 'style'> {
|
|
4
|
-
/** Ref to the rendered article element. */
|
|
5
|
-
ref?: Ref<HTMLElement>;
|
|
6
|
-
}
|
|
7
|
-
/** Props for the card heading region. */
|
|
8
|
-
export interface CardHeaderProps extends Omit<HTMLAttributes<HTMLElement>, 'style'> {
|
|
9
|
-
/** Ref to the rendered header element. */
|
|
10
|
-
ref?: Ref<HTMLElement>;
|
|
11
|
-
}
|
|
12
|
-
/** Props for the card title. */
|
|
13
|
-
export interface CardTitleProps extends Omit<HTMLAttributes<HTMLHeadingElement>, 'style'> {
|
|
14
|
-
/** Ref to the rendered level-three heading. */
|
|
15
|
-
ref?: Ref<HTMLHeadingElement>;
|
|
16
|
-
}
|
|
17
|
-
/** Props for supporting card title context. */
|
|
18
|
-
export interface CardDescriptionProps extends Omit<HTMLAttributes<HTMLParagraphElement>, 'style'> {
|
|
19
|
-
/** Ref to the rendered paragraph element. */
|
|
20
|
-
ref?: Ref<HTMLParagraphElement>;
|
|
21
|
-
}
|
|
22
|
-
/** Props for the card's primary content region. */
|
|
23
|
-
export interface CardBodyProps extends Omit<HTMLAttributes<HTMLDivElement>, 'style'> {
|
|
24
|
-
/** Ref to the rendered body element. */
|
|
25
|
-
ref?: Ref<HTMLDivElement>;
|
|
26
|
-
}
|
|
27
|
-
/** Props for the card's supporting action or metadata region. */
|
|
28
|
-
export interface CardFooterProps extends Omit<HTMLAttributes<HTMLElement>, 'style'> {
|
|
29
|
-
/** Ref to the rendered footer element. */
|
|
30
|
-
ref?: Ref<HTMLElement>;
|
|
31
|
-
}
|
|
32
|
-
/** Renders the semantic article that contains one domain-neutral summary. */
|
|
33
|
-
export declare function Root({ className, ref, ...props }: Readonly<CardRootProps>): ReactElement;
|
|
34
|
-
/** Groups a card title and its optional description or controls. */
|
|
35
|
-
export declare function Header({ className, ref, ...props }: Readonly<CardHeaderProps>): ReactElement;
|
|
36
|
-
/** Renders the canonical level-three card heading. */
|
|
37
|
-
export declare function Title({ className, ref, ...props }: Readonly<CardTitleProps>): ReactElement;
|
|
38
|
-
/** Renders supporting context directly associated with a card title. */
|
|
39
|
-
export declare function Description({ className, ref, ...props }: Readonly<CardDescriptionProps>): ReactElement;
|
|
40
|
-
/** Renders the primary card content region. */
|
|
41
|
-
export declare function Body({ className, ref, ...props }: Readonly<CardBodyProps>): ReactElement;
|
|
42
|
-
/** Renders a supporting action or metadata footer. */
|
|
43
|
-
export declare function Footer({ className, ref, ...props }: Readonly<CardFooterProps>): ReactElement;
|
|
44
|
-
/**
|
|
45
|
-
* Groups one related content summary in a domain-neutral compound surface.
|
|
46
|
-
*
|
|
47
|
-
* @summary compound surface for one related content summary
|
|
48
|
-
*/
|
|
49
|
-
export declare const Card: {
|
|
50
|
-
/** Primary content region. */
|
|
51
|
-
Body: typeof Body;
|
|
52
|
-
/** Supporting title context. */
|
|
53
|
-
Description: typeof Description;
|
|
54
|
-
/** Supporting action or metadata region. */
|
|
55
|
-
Footer: typeof Footer;
|
|
56
|
-
/** Title and description region. */
|
|
57
|
-
Header: typeof Header;
|
|
58
|
-
/** Semantic article container. */
|
|
59
|
-
Root: typeof Root;
|
|
60
|
-
/** Canonical level-three card heading. */
|
|
61
|
-
Title: typeof Title;
|
|
62
|
-
};
|
|
63
|
-
//# sourceMappingURL=Card.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/primitives/Card/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AA4B/D,6CAA6C;AAC7C,MAAM,WAAW,aACf,SAAQ,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAClD,2CAA2C;IAC3C,GAAG,CAAC,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC;CACxB;AAED,yCAAyC;AACzC,MAAM,WAAW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CAAC,GAAG,YAAY,CAQzC;AAED,wEAAwE;AACxE,wBAAgB,WAAW,CAAC,EAC1B,SAAS,EACT,GAAG,EACH,GAAG,KAAK,EACT,EAAE,QAAQ,CAAC,oBAAoB,CAAC,GAAG,YAAY,CAQ/C;AAED,+CAA+C;AAC/C,wBAAgB,IAAI,CAAC,EACnB,SAAS,EACT,GAAG,EACH,GAAG,KAAK,EACT,EAAE,QAAQ,CAAC,aAAa,CAAC,GAAG,YAAY,CAQxC;AAED,sDAAsD;AACtD,wBAAgB,MAAM,CAAC,EACrB,SAAS,EACT,GAAG,EACH,GAAG,KAAK,EACT,EAAE,QAAQ,CAAC,eAAe,CAAC,GAAG,YAAY,CAQ1C;AAED;;;;GAIG;AACH,eAAO,MAAM,IAAI;IACf,8BAA8B;;IAE9B,gCAAgC;;IAEhC,4CAA4C;;IAE5C,oCAAoC;;IAEpC,kCAAkC;;IAElC,0CAA0C;;CAE3C,CAAC"}
|
|
@@ -1,295 +0,0 @@
|
|
|
1
|
-
import type { LayoutElementProps } from '../../internal/styling/layout';
|
|
2
|
-
/** Props for a layout that centres one composition in both axes. */
|
|
3
|
-
export interface CenterProps extends LayoutElementProps {
|
|
4
|
-
/** Minimum block size. Defaults to `none`; `screen` fills the viewport. */
|
|
5
|
-
minHeight?: 'none' | 'screen';
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Centres content horizontally and vertically without imposing presentation.
|
|
9
|
-
*
|
|
10
|
-
* @summary two-axis layout centring with optional viewport height
|
|
11
|
-
*/
|
|
12
|
-
export declare function Center({ className, minHeight, ...props }: Readonly<CenterProps>): import("react").DetailedReactHTMLElement<{
|
|
13
|
-
key?: import("react").Key | null | undefined;
|
|
14
|
-
ref?: import("react").Ref<HTMLDivElement> | undefined;
|
|
15
|
-
children?: import("react").ReactNode | undefined;
|
|
16
|
-
dangerouslySetInnerHTML?: {
|
|
17
|
-
__html: string | TrustedHTML;
|
|
18
|
-
} | undefined;
|
|
19
|
-
onCopy?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
20
|
-
onCopyCapture?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
21
|
-
onCut?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
22
|
-
onCutCapture?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
23
|
-
onPaste?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
24
|
-
onPasteCapture?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
25
|
-
onCompositionEnd?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
26
|
-
onCompositionEndCapture?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
27
|
-
onCompositionStart?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
28
|
-
onCompositionStartCapture?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
29
|
-
onCompositionUpdate?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
30
|
-
onCompositionUpdateCapture?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
31
|
-
onFocus?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
32
|
-
onFocusCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
33
|
-
onBlur?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
34
|
-
onBlurCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
35
|
-
onChange?: import("react").ChangeEventHandler<HTMLDivElement, Element> | undefined;
|
|
36
|
-
onChangeCapture?: import("react").ChangeEventHandler<HTMLDivElement, Element> | undefined;
|
|
37
|
-
onBeforeInput?: import("react").InputEventHandler<HTMLDivElement> | undefined;
|
|
38
|
-
onBeforeInputCapture?: import("react").InputEventHandler<HTMLDivElement> | undefined;
|
|
39
|
-
onInput?: import("react").InputEventHandler<HTMLDivElement> | undefined;
|
|
40
|
-
onInputCapture?: import("react").InputEventHandler<HTMLDivElement> | undefined;
|
|
41
|
-
onReset?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
42
|
-
onResetCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
43
|
-
onSubmit?: import("react").SubmitEventHandler<HTMLDivElement> | undefined;
|
|
44
|
-
onSubmitCapture?: import("react").SubmitEventHandler<HTMLDivElement> | undefined;
|
|
45
|
-
onInvalid?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
46
|
-
onInvalidCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
47
|
-
onLoad?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
48
|
-
onLoadCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
49
|
-
onError?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
50
|
-
onErrorCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
51
|
-
onKeyDown?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
52
|
-
onKeyDownCapture?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
53
|
-
onKeyPress?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
54
|
-
onKeyPressCapture?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
55
|
-
onKeyUp?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
56
|
-
onKeyUpCapture?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
57
|
-
onAbort?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
58
|
-
onAbortCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
59
|
-
onCanPlay?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
60
|
-
onCanPlayCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
61
|
-
onCanPlayThrough?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
62
|
-
onCanPlayThroughCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
63
|
-
onDurationChange?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
64
|
-
onDurationChangeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
65
|
-
onEmptied?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
66
|
-
onEmptiedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
67
|
-
onEncrypted?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
68
|
-
onEncryptedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
69
|
-
onEnded?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
70
|
-
onEndedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
71
|
-
onLoadedData?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
72
|
-
onLoadedDataCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
73
|
-
onLoadedMetadata?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
74
|
-
onLoadedMetadataCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
75
|
-
onLoadStart?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
76
|
-
onLoadStartCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
77
|
-
onPause?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
78
|
-
onPauseCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
79
|
-
onPlay?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
80
|
-
onPlayCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
81
|
-
onPlaying?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
82
|
-
onPlayingCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
83
|
-
onProgress?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
84
|
-
onProgressCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
85
|
-
onRateChange?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
86
|
-
onRateChangeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
87
|
-
onSeeked?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
88
|
-
onSeekedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
89
|
-
onSeeking?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
90
|
-
onSeekingCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
91
|
-
onStalled?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
92
|
-
onStalledCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
93
|
-
onSuspend?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
94
|
-
onSuspendCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
95
|
-
onTimeUpdate?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
96
|
-
onTimeUpdateCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
97
|
-
onVolumeChange?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
98
|
-
onVolumeChangeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
99
|
-
onWaiting?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
100
|
-
onWaitingCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
101
|
-
onAuxClick?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
102
|
-
onAuxClickCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
103
|
-
onClick?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
104
|
-
onClickCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
105
|
-
onContextMenu?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
106
|
-
onContextMenuCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
107
|
-
onDoubleClick?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
108
|
-
onDoubleClickCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
109
|
-
onDrag?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
110
|
-
onDragCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
111
|
-
onDragEnd?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
112
|
-
onDragEndCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
113
|
-
onDragEnter?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
114
|
-
onDragEnterCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
115
|
-
onDragExit?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
116
|
-
onDragExitCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
117
|
-
onDragLeave?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
118
|
-
onDragLeaveCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
119
|
-
onDragOver?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
120
|
-
onDragOverCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
121
|
-
onDragStart?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
122
|
-
onDragStartCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
123
|
-
onDrop?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
124
|
-
onDropCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
125
|
-
onMouseDown?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
126
|
-
onMouseDownCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
127
|
-
onMouseEnter?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
128
|
-
onMouseLeave?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
129
|
-
onMouseMove?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
130
|
-
onMouseMoveCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
131
|
-
onMouseOut?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
132
|
-
onMouseOutCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
133
|
-
onMouseOver?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
134
|
-
onMouseOverCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
135
|
-
onMouseUp?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
136
|
-
onMouseUpCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
137
|
-
onSelect?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
138
|
-
onSelectCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
139
|
-
onTouchCancel?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
140
|
-
onTouchCancelCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
141
|
-
onTouchEnd?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
142
|
-
onTouchEndCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
143
|
-
onTouchMove?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
144
|
-
onTouchMoveCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
145
|
-
onTouchStart?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
146
|
-
onTouchStartCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
147
|
-
onPointerDown?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
148
|
-
onPointerDownCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
149
|
-
onPointerMove?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
150
|
-
onPointerMoveCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
151
|
-
onPointerUp?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
152
|
-
onPointerUpCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
153
|
-
onPointerCancel?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
154
|
-
onPointerCancelCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
155
|
-
onPointerEnter?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
156
|
-
onPointerLeave?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
157
|
-
onPointerOver?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
158
|
-
onPointerOverCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
159
|
-
onPointerOut?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
160
|
-
onPointerOutCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
161
|
-
onGotPointerCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
162
|
-
onGotPointerCaptureCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
163
|
-
onLostPointerCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
164
|
-
onLostPointerCaptureCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
165
|
-
onScroll?: import("react").UIEventHandler<HTMLDivElement> | undefined;
|
|
166
|
-
onScrollCapture?: import("react").UIEventHandler<HTMLDivElement> | undefined;
|
|
167
|
-
onScrollEnd?: import("react").UIEventHandler<HTMLDivElement> | undefined;
|
|
168
|
-
onScrollEndCapture?: import("react").UIEventHandler<HTMLDivElement> | undefined;
|
|
169
|
-
onWheel?: import("react").WheelEventHandler<HTMLDivElement> | undefined;
|
|
170
|
-
onWheelCapture?: import("react").WheelEventHandler<HTMLDivElement> | undefined;
|
|
171
|
-
onAnimationStart?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
172
|
-
onAnimationStartCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
173
|
-
onAnimationEnd?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
174
|
-
onAnimationEndCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
175
|
-
onAnimationIteration?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
176
|
-
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
177
|
-
onToggle?: import("react").ToggleEventHandler<HTMLDivElement> | undefined;
|
|
178
|
-
onBeforeToggle?: import("react").ToggleEventHandler<HTMLDivElement> | undefined;
|
|
179
|
-
onTransitionCancel?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
180
|
-
onTransitionCancelCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
181
|
-
onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
182
|
-
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
183
|
-
onTransitionRun?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
184
|
-
onTransitionRunCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
185
|
-
onTransitionStart?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
186
|
-
onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
187
|
-
"aria-activedescendant"?: string | undefined;
|
|
188
|
-
"aria-atomic"?: ("false" | "true" | boolean) | undefined;
|
|
189
|
-
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
190
|
-
"aria-braillelabel"?: string | undefined;
|
|
191
|
-
"aria-brailleroledescription"?: string | undefined;
|
|
192
|
-
"aria-busy"?: ("false" | "true" | boolean) | undefined;
|
|
193
|
-
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
194
|
-
"aria-colcount"?: number | undefined;
|
|
195
|
-
"aria-colindex"?: number | undefined;
|
|
196
|
-
"aria-colindextext"?: string | undefined;
|
|
197
|
-
"aria-colspan"?: number | undefined;
|
|
198
|
-
"aria-controls"?: string | undefined;
|
|
199
|
-
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
200
|
-
"aria-describedby"?: string | undefined;
|
|
201
|
-
"aria-description"?: string | undefined;
|
|
202
|
-
"aria-details"?: string | undefined;
|
|
203
|
-
"aria-disabled"?: ("false" | "true" | boolean) | undefined;
|
|
204
|
-
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
205
|
-
"aria-errormessage"?: string | undefined;
|
|
206
|
-
"aria-expanded"?: ("false" | "true" | boolean) | undefined;
|
|
207
|
-
"aria-flowto"?: string | undefined;
|
|
208
|
-
"aria-grabbed"?: ("false" | "true" | boolean) | undefined;
|
|
209
|
-
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
210
|
-
"aria-hidden"?: ("false" | "true" | boolean) | undefined;
|
|
211
|
-
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
212
|
-
"aria-keyshortcuts"?: string | undefined;
|
|
213
|
-
"aria-label"?: string | undefined;
|
|
214
|
-
"aria-labelledby"?: string | undefined;
|
|
215
|
-
"aria-level"?: number | undefined;
|
|
216
|
-
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
217
|
-
"aria-modal"?: ("false" | "true" | boolean) | undefined;
|
|
218
|
-
"aria-multiline"?: ("false" | "true" | boolean) | undefined;
|
|
219
|
-
"aria-multiselectable"?: ("false" | "true" | boolean) | undefined;
|
|
220
|
-
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
221
|
-
"aria-owns"?: string | undefined;
|
|
222
|
-
"aria-placeholder"?: string | undefined;
|
|
223
|
-
"aria-posinset"?: number | undefined;
|
|
224
|
-
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
225
|
-
"aria-readonly"?: ("false" | "true" | boolean) | undefined;
|
|
226
|
-
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
227
|
-
"aria-required"?: ("false" | "true" | boolean) | undefined;
|
|
228
|
-
"aria-roledescription"?: string | undefined;
|
|
229
|
-
"aria-rowcount"?: number | undefined;
|
|
230
|
-
"aria-rowindex"?: number | undefined;
|
|
231
|
-
"aria-rowindextext"?: string | undefined;
|
|
232
|
-
"aria-rowspan"?: number | undefined;
|
|
233
|
-
"aria-selected"?: ("false" | "true" | boolean) | undefined;
|
|
234
|
-
"aria-setsize"?: number | undefined;
|
|
235
|
-
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
236
|
-
"aria-valuemax"?: number | undefined;
|
|
237
|
-
"aria-valuemin"?: number | undefined;
|
|
238
|
-
"aria-valuenow"?: number | undefined;
|
|
239
|
-
"aria-valuetext"?: string | undefined;
|
|
240
|
-
defaultChecked?: boolean | undefined;
|
|
241
|
-
defaultValue?: string | number | readonly string[] | undefined;
|
|
242
|
-
suppressContentEditableWarning?: boolean | undefined;
|
|
243
|
-
suppressHydrationWarning?: boolean | undefined;
|
|
244
|
-
accessKey?: string | undefined;
|
|
245
|
-
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
|
|
246
|
-
autoFocus?: boolean | undefined;
|
|
247
|
-
contentEditable?: ("false" | "true" | boolean) | "inherit" | "plaintext-only" | undefined;
|
|
248
|
-
contextMenu?: string | undefined;
|
|
249
|
-
dir?: string | undefined;
|
|
250
|
-
draggable?: ("false" | "true" | boolean) | undefined;
|
|
251
|
-
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
252
|
-
hidden?: boolean | undefined;
|
|
253
|
-
id?: string | undefined;
|
|
254
|
-
lang?: string | undefined;
|
|
255
|
-
nonce?: string | undefined;
|
|
256
|
-
slot?: string | undefined;
|
|
257
|
-
spellCheck?: ("false" | "true" | boolean) | undefined;
|
|
258
|
-
tabIndex?: number | undefined;
|
|
259
|
-
title?: string | undefined;
|
|
260
|
-
translate?: "yes" | "no" | undefined;
|
|
261
|
-
radioGroup?: string | undefined;
|
|
262
|
-
role?: import("react").AriaRole | undefined;
|
|
263
|
-
about?: string | undefined;
|
|
264
|
-
content?: string | undefined;
|
|
265
|
-
datatype?: string | undefined;
|
|
266
|
-
inlist?: any;
|
|
267
|
-
prefix?: string | undefined;
|
|
268
|
-
property?: string | undefined;
|
|
269
|
-
rel?: string | undefined;
|
|
270
|
-
resource?: string | undefined;
|
|
271
|
-
rev?: string | undefined;
|
|
272
|
-
typeof?: string | undefined;
|
|
273
|
-
vocab?: string | undefined;
|
|
274
|
-
autoCorrect?: string | undefined;
|
|
275
|
-
autoSave?: string | undefined;
|
|
276
|
-
color?: string | undefined;
|
|
277
|
-
itemProp?: string | undefined;
|
|
278
|
-
itemScope?: boolean | undefined;
|
|
279
|
-
itemType?: string | undefined;
|
|
280
|
-
itemID?: string | undefined;
|
|
281
|
-
itemRef?: string | undefined;
|
|
282
|
-
results?: number | undefined;
|
|
283
|
-
security?: string | undefined;
|
|
284
|
-
unselectable?: "on" | "off" | undefined;
|
|
285
|
-
popover?: "" | "auto" | "manual" | "hint" | undefined;
|
|
286
|
-
popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
|
|
287
|
-
popoverTarget?: string | undefined;
|
|
288
|
-
inert?: boolean | undefined;
|
|
289
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
290
|
-
is?: string | undefined;
|
|
291
|
-
exportparts?: string | undefined;
|
|
292
|
-
part?: string | undefined;
|
|
293
|
-
className: string;
|
|
294
|
-
}, HTMLDivElement>;
|
|
295
|
-
//# sourceMappingURL=Center.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Center.d.ts","sourceRoot":"","sources":["../../../src/primitives/Center/Center.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAgBxE,oEAAoE;AACpE,MAAM,WAAW,WAAY,SAAQ,kBAAkB;IACrD,2EAA2E;IAC3E,SAAS,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;CAC/B;AAED;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,EACrB,SAAS,EACT,SAAS,EACT,GAAG,KAAK,EACT,EAAE,QAAQ,CAAC,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAUvB"}
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import type { HTMLAttributes, LabelHTMLAttributes, ReactElement, ReactNode, Ref, RefObject } from 'react';
|
|
2
|
-
import type { ControlSize } from '../../internal/styling/visual';
|
|
3
|
-
import { type TextFieldDescriptionProps, type TextFieldErrorProps } from '../TextField/TextField';
|
|
4
|
-
type CheckboxRootNativeProps = Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'defaultValue' | 'onChange' | 'style'>;
|
|
5
|
-
interface CheckboxRootSharedProps extends CheckboxRootNativeProps {
|
|
6
|
-
/** Compound control, description, and error parts. */
|
|
7
|
-
children: ReactNode;
|
|
8
|
-
/** Prevents focus and selection changes. Defaults to `false`. */
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
/** Associates the hidden native checkbox with an external form. */
|
|
11
|
-
form?: string;
|
|
12
|
-
/** Renders a mixed-state checkbox. Defaults to `false`. */
|
|
13
|
-
indeterminate?: boolean;
|
|
14
|
-
/** Exposes invalid state to assistive technology and error styling. Defaults to `false`. */
|
|
15
|
-
invalid?: boolean;
|
|
16
|
-
/** Native form field name. */
|
|
17
|
-
name?: string;
|
|
18
|
-
/** Marks the checkbox as required. Defaults to `false`. */
|
|
19
|
-
required?: boolean;
|
|
20
|
-
/** Ref to the rendered field container. */
|
|
21
|
-
ref?: Ref<HTMLDivElement>;
|
|
22
|
-
/** Ref to the hidden native checkbox used for focus and form integration. */
|
|
23
|
-
inputRef?: RefObject<HTMLInputElement | null>;
|
|
24
|
-
/** Native submitted value when selected. Defaults to `on`. */
|
|
25
|
-
value?: string;
|
|
26
|
-
}
|
|
27
|
-
interface ControlledCheckboxRootProps {
|
|
28
|
-
/** Current selected state. */
|
|
29
|
-
selected: boolean;
|
|
30
|
-
/** Called with the next selected state. */
|
|
31
|
-
onChange: (selected: boolean) => void;
|
|
32
|
-
defaultSelected?: never;
|
|
33
|
-
readOnly?: false;
|
|
34
|
-
}
|
|
35
|
-
interface ReadOnlyCheckboxRootProps {
|
|
36
|
-
/** Current immutable selected state. */
|
|
37
|
-
selected: boolean;
|
|
38
|
-
/** Marks a controlled selection as intentionally immutable. */
|
|
39
|
-
readOnly: true;
|
|
40
|
-
defaultSelected?: never;
|
|
41
|
-
onChange?: never;
|
|
42
|
-
}
|
|
43
|
-
interface UncontrolledCheckboxRootProps {
|
|
44
|
-
/** Initial selected state. Defaults to `false`. */
|
|
45
|
-
defaultSelected?: boolean;
|
|
46
|
-
/** Called with the next selected state. */
|
|
47
|
-
onChange?: (selected: boolean) => void;
|
|
48
|
-
readOnly?: false;
|
|
49
|
-
selected?: never;
|
|
50
|
-
}
|
|
51
|
-
/** Props for controlled, read-only, or uncontrolled checkbox state. */
|
|
52
|
-
export type CheckboxRootProps = CheckboxRootSharedProps & (ControlledCheckboxRootProps | ReadOnlyCheckboxRootProps | UncontrolledCheckboxRootProps);
|
|
53
|
-
/** Props for the clickable checkbox control and native label. */
|
|
54
|
-
export interface CheckboxControlProps extends Omit<LabelHTMLAttributes<HTMLLabelElement>, 'onClick' | 'onClickCapture' | 'style'> {
|
|
55
|
-
/** Indicator and persistent label content. */
|
|
56
|
-
children: ReactNode;
|
|
57
|
-
/** Ref to the rendered native label. */
|
|
58
|
-
ref?: Ref<HTMLLabelElement>;
|
|
59
|
-
}
|
|
60
|
-
/** Props for the visual checkbox indicator. */
|
|
61
|
-
export interface CheckboxIndicatorProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'children' | 'style'> {
|
|
62
|
-
/** Ref to the rendered indicator. */
|
|
63
|
-
ref?: Ref<HTMLSpanElement>;
|
|
64
|
-
/** Canonical indicator size. Defaults to `md`. */
|
|
65
|
-
size?: ControlSize;
|
|
66
|
-
}
|
|
67
|
-
/** Props for the visible checkbox label text. */
|
|
68
|
-
export interface CheckboxLabelProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'style'> {
|
|
69
|
-
/** Persistent text naming the checkbox. */
|
|
70
|
-
children: ReactNode;
|
|
71
|
-
/** Ref to the rendered label text. */
|
|
72
|
-
ref?: Ref<HTMLSpanElement>;
|
|
73
|
-
}
|
|
74
|
-
/** Props for supporting text associated with the checkbox. */
|
|
75
|
-
export type CheckboxDescriptionProps = TextFieldDescriptionProps;
|
|
76
|
-
/** Props for an accessible checkbox validation message. */
|
|
77
|
-
export type CheckboxErrorProps = TextFieldErrorProps;
|
|
78
|
-
/** Coordinates accessible checkbox state, validation, and native form participation. */
|
|
79
|
-
export declare function Root({ children, className, defaultSelected, disabled, form, indeterminate, inputRef, invalid, name, onChange, readOnly, ref, required, selected, value, ...props }: Readonly<CheckboxRootProps>): ReactElement;
|
|
80
|
-
/** Renders the pointer, touch, and keyboard checkbox target. */
|
|
81
|
-
export declare function Control({ className, ref, ...props }: Readonly<CheckboxControlProps>): ReactElement;
|
|
82
|
-
/** Renders the selected or indeterminate visual checkbox mark. */
|
|
83
|
-
export declare function Indicator({ className, ref, size, ...props }: Readonly<CheckboxIndicatorProps>): ReactElement;
|
|
84
|
-
/** Renders persistent visible label text within Checkbox.Control. */
|
|
85
|
-
export declare function Label({ ref, ...props }: Readonly<CheckboxLabelProps>): ReactElement;
|
|
86
|
-
/**
|
|
87
|
-
* Coordinates accessible Boolean selection with native form participation.
|
|
88
|
-
*
|
|
89
|
-
* @summary Boolean selection with native form participation
|
|
90
|
-
*/
|
|
91
|
-
export declare const Checkbox: {
|
|
92
|
-
/** Pointer, touch, and keyboard selection target. */
|
|
93
|
-
Control: typeof Control;
|
|
94
|
-
/** Supporting guidance associated with the checkbox. */
|
|
95
|
-
Description: typeof import("../TextField/TextField").Description;
|
|
96
|
-
/** Validation message associated with an invalid checkbox. */
|
|
97
|
-
Error: typeof import("../TextField/TextField").Error;
|
|
98
|
-
/** Visual selected or indeterminate mark. */
|
|
99
|
-
Indicator: typeof Indicator;
|
|
100
|
-
/** Persistent visible label text. */
|
|
101
|
-
Label: typeof Label;
|
|
102
|
-
/** State, validation, and native form root. */
|
|
103
|
-
Root: typeof Root;
|
|
104
|
-
};
|
|
105
|
-
export {};
|
|
106
|
-
//# sourceMappingURL=Checkbox.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/primitives/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,cAAc,EACd,mBAAmB,EACnB,YAAY,EACZ,SAAS,EACT,GAAG,EACH,SAAS,EACV,MAAM,OAAO,CAAC;AASf,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAEjE,OAAO,EAEL,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACzB,MAAM,wBAAwB,CAAC;AAwBhC,KAAK,uBAAuB,GAAG,IAAI,CACjC,cAAc,CAAC,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