@amsterdam/design-system-react 2.1.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Avatar/Avatar.d.ts +2 -2
- package/dist/Card/Card.d.ts +1 -1
- package/dist/Card/CardHeading.d.ts +1 -1
- package/dist/Checkbox/Checkbox.d.ts +1 -1
- package/dist/DateInput/DateInput.d.ts +1 -1
- package/dist/FieldSet/FieldSet.d.ts +11 -0
- package/dist/FieldSet/FieldSet.js +3 -3
- package/dist/Hint/Hint.d.ts +1 -0
- package/dist/Hint/Hint.js +2 -2
- package/dist/Image/Image.js +1 -1
- package/dist/Label/Label.d.ts +11 -0
- package/dist/Label/Label.js +2 -2
- package/dist/LinkList/LinkList.d.ts +1 -1
- package/dist/Menu/MenuLink.d.ts +2 -2
- package/dist/Page/Page.d.ts +6 -2
- package/dist/Page/Page.js +1 -1
- package/dist/PageHeader/PageHeader.d.ts +1 -0
- package/dist/PageHeader/PageHeaderMenuIcon.js +1 -1
- package/dist/PageHeader/PageHeaderMenuLink.d.ts +7 -0
- package/dist/PageHeader/PageHeaderMenuLink.js +3 -2
- package/dist/PasswordInput/PasswordInput.d.ts +1 -1
- package/dist/Radio/Radio.d.ts +1 -1
- package/dist/SearchField/SearchField.d.ts +1 -1
- package/dist/TimeInput/TimeInput.d.ts +1 -1
- package/dist/index.cjs.js +29 -28
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1935 -61
- package/dist/index.esm.js +29 -28
- package/dist/index.esm.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +5 -5
- package/dist/Accordion/Accordion.test.d.ts +0 -5
- package/dist/Accordion/Accordion.test.js +0 -44
- package/dist/Accordion/AccordionSection.test.d.ts +0 -5
- package/dist/Accordion/AccordionSection.test.js +0 -100
- package/dist/ActionGroup/ActionGroup.test.d.ts +0 -5
- package/dist/ActionGroup/ActionGroup.test.js +0 -33
- package/dist/Alert/Alert.test.d.ts +0 -5
- package/dist/Alert/Alert.test.js +0 -74
- package/dist/App/App.d.ts +0 -12
- package/dist/App/App.js +0 -8
- package/dist/App/App.test.d.ts +0 -5
- package/dist/App/App.test.js +0 -33
- package/dist/App/index.d.ts +0 -6
- package/dist/App/index.js +0 -5
- package/dist/AppNavigation/AppNavigation.d.ts +0 -45
- package/dist/AppNavigation/AppNavigation.js +0 -18
- package/dist/AppNavigation/AppNavigation.test.d.ts +0 -5
- package/dist/AppNavigation/AppNavigation.test.js +0 -33
- package/dist/AppNavigation/AppNavigationButton.d.ts +0 -18
- package/dist/AppNavigation/AppNavigationButton.js +0 -17
- package/dist/AppNavigation/AppNavigationLink.d.ts +0 -19
- package/dist/AppNavigation/AppNavigationLink.js +0 -19
- package/dist/AppNavigation/AppNavigationMenu.d.ts +0 -9
- package/dist/AppNavigation/AppNavigationMenu.js +0 -5
- package/dist/AppNavigation/index.d.ts +0 -6
- package/dist/AppNavigation/index.js +0 -5
- package/dist/Avatar/Avatar.test.d.ts +0 -5
- package/dist/Avatar/Avatar.test.js +0 -63
- package/dist/Badge/Badge.test.d.ts +0 -5
- package/dist/Badge/Badge.test.js +0 -43
- package/dist/Blockquote/Blockquote.test.d.ts +0 -5
- package/dist/Blockquote/Blockquote.test.js +0 -46
- package/dist/Breadcrumb/Breadcrumb.test.d.ts +0 -5
- package/dist/Breadcrumb/Breadcrumb.test.js +0 -45
- package/dist/Breadcrumb/BreadcrumbLink.test.d.ts +0 -5
- package/dist/Breadcrumb/BreadcrumbLink.test.js +0 -40
- package/dist/Breakout/Breakout.test.d.ts +0 -5
- package/dist/Breakout/Breakout.test.js +0 -62
- package/dist/Breakout/BreakoutCell.test.d.ts +0 -5
- package/dist/Breakout/BreakoutCell.test.js +0 -128
- package/dist/Button/Button.test.d.ts +0 -5
- package/dist/Button/Button.test.js +0 -114
- package/dist/CallToActionLink/CallToActionLink.test.d.ts +0 -5
- package/dist/CallToActionLink/CallToActionLink.test.js +0 -33
- package/dist/Card/Card.test.d.ts +0 -5
- package/dist/Card/Card.test.js +0 -33
- package/dist/Card/CardHeading.test.d.ts +0 -5
- package/dist/Card/CardHeading.test.js +0 -38
- package/dist/Card/CardHeadingGroup.test.d.ts +0 -5
- package/dist/Card/CardHeadingGroup.test.js +0 -38
- package/dist/Card/CardImage.test.d.ts +0 -5
- package/dist/Card/CardImage.test.js +0 -33
- package/dist/Card/CardLink.test.d.ts +0 -5
- package/dist/Card/CardLink.test.js +0 -33
- package/dist/CharacterCount/CharacterCount.test.d.ts +0 -5
- package/dist/CharacterCount/CharacterCount.test.js +0 -38
- package/dist/Checkbox/Checkbox.test.d.ts +0 -5
- package/dist/Checkbox/Checkbox.test.js +0 -142
- package/dist/Column/Column.test.d.ts +0 -5
- package/dist/Column/Column.test.js +0 -59
- package/dist/DateInput/DateInput.test.d.ts +0 -5
- package/dist/DateInput/DateInput.test.js +0 -58
- package/dist/DescriptionList/DescriptionList.test.d.ts +0 -5
- package/dist/DescriptionList/DescriptionList.test.js +0 -43
- package/dist/DescriptionList/DescriptionListDescription.test.d.ts +0 -5
- package/dist/DescriptionList/DescriptionListDescription.test.js +0 -33
- package/dist/DescriptionList/DescriptionListSection.test.d.ts +0 -5
- package/dist/DescriptionList/DescriptionListSection.test.js +0 -33
- package/dist/DescriptionList/DescriptionListTerm.test.d.ts +0 -5
- package/dist/DescriptionList/DescriptionListTerm.test.js +0 -33
- package/dist/Dialog/Dialog.test.d.ts +0 -5
- package/dist/Dialog/Dialog.test.js +0 -82
- package/dist/ErrorMessage/ErrorMessage.test.d.ts +0 -5
- package/dist/ErrorMessage/ErrorMessage.test.js +0 -53
- package/dist/Field/Field.test.d.ts +0 -5
- package/dist/Field/Field.test.js +0 -38
- package/dist/FieldSet/FieldSet.test.d.ts +0 -5
- package/dist/FieldSet/FieldSet.test.js +0 -70
- package/dist/Figure/Figure.test.d.ts +0 -5
- package/dist/Figure/Figure.test.js +0 -33
- package/dist/Figure/FigureCaption.test.d.ts +0 -5
- package/dist/Figure/FigureCaption.test.js +0 -38
- package/dist/FileInput/FileInput.test.d.ts +0 -5
- package/dist/FileInput/FileInput.test.js +0 -33
- package/dist/FileList/FileList.test.d.ts +0 -5
- package/dist/FileList/FileList.test.js +0 -33
- package/dist/FileList/FileListItem.test.d.ts +0 -5
- package/dist/FileList/FileListItem.test.js +0 -44
- package/dist/Grid/Grid.test.d.ts +0 -5
- package/dist/Grid/Grid.test.js +0 -69
- package/dist/Grid/GridCell.test.d.ts +0 -5
- package/dist/Grid/GridCell.test.js +0 -84
- package/dist/Heading/Heading.test.d.ts +0 -5
- package/dist/Heading/Heading.test.js +0 -70
- package/dist/Hint/Hint.test.d.ts +0 -5
- package/dist/Hint/Hint.test.js +0 -53
- package/dist/Icon/Icon.test.d.ts +0 -5
- package/dist/Icon/Icon.test.js +0 -60
- package/dist/IconButton/IconButton.test.d.ts +0 -5
- package/dist/IconButton/IconButton.test.js +0 -48
- package/dist/Image/Image.test.d.ts +0 -5
- package/dist/Image/Image.test.js +0 -43
- package/dist/ImageSlider/ImageSlider.test.d.ts +0 -5
- package/dist/ImageSlider/ImageSlider.test.js +0 -70
- package/dist/ImageSlider/ImageSliderControls.test.d.ts +0 -5
- package/dist/ImageSlider/ImageSliderControls.test.js +0 -25
- package/dist/ImageSlider/ImageSliderItem.test.d.ts +0 -5
- package/dist/ImageSlider/ImageSliderItem.test.js +0 -37
- package/dist/ImageSlider/ImageSliderScroller.test.d.ts +0 -5
- package/dist/ImageSlider/ImageSliderScroller.test.js +0 -37
- package/dist/ImageSlider/ImageSliderThumbnails.test.d.ts +0 -5
- package/dist/ImageSlider/ImageSliderThumbnails.test.js +0 -52
- package/dist/InvalidFormAlert/InvalidFormAlert.test.d.ts +0 -5
- package/dist/InvalidFormAlert/InvalidFormAlert.test.js +0 -108
- package/dist/Label/Label.test.d.ts +0 -5
- package/dist/Label/Label.test.js +0 -82
- package/dist/Link/Link.test.d.ts +0 -5
- package/dist/Link/Link.test.js +0 -43
- package/dist/LinkList/LinkList.test.d.ts +0 -5
- package/dist/LinkList/LinkList.test.js +0 -33
- package/dist/LinkList/LinkListLink.test.d.ts +0 -5
- package/dist/LinkList/LinkListLink.test.js +0 -54
- package/dist/Logo/Logo.test.d.ts +0 -5
- package/dist/Logo/Logo.test.js +0 -33
- package/dist/Mark/Mark.test.d.ts +0 -5
- package/dist/Mark/Mark.test.js +0 -33
- package/dist/Menu/Menu.test.d.ts +0 -5
- package/dist/Menu/Menu.test.js +0 -55
- package/dist/Menu/MenuLink.test.d.ts +0 -5
- package/dist/Menu/MenuLink.test.js +0 -56
- package/dist/OrderedList/OrderedList.test.d.ts +0 -5
- package/dist/OrderedList/OrderedList.test.js +0 -55
- package/dist/OrderedList/OrderedListItem.test.d.ts +0 -5
- package/dist/OrderedList/OrderedListItem.test.js +0 -32
- package/dist/Overlap/Overlap.test.d.ts +0 -5
- package/dist/Overlap/Overlap.test.js +0 -38
- package/dist/Page/Page.test.d.ts +0 -5
- package/dist/Page/Page.test.js +0 -33
- package/dist/PageFooter/PageFooter.test.d.ts +0 -5
- package/dist/PageFooter/PageFooter.test.js +0 -33
- package/dist/PageFooter/PageFooterMenu.test.d.ts +0 -5
- package/dist/PageFooter/PageFooterMenu.test.js +0 -35
- package/dist/PageFooter/PageFooterMenuLink.test.d.ts +0 -5
- package/dist/PageFooter/PageFooterMenuLink.test.js +0 -33
- package/dist/PageFooter/PageFooterSpotlight.test.d.ts +0 -5
- package/dist/PageFooter/PageFooterSpotlight.test.js +0 -33
- package/dist/PageHeader/PageHeader.test.d.ts +0 -6
- package/dist/PageHeader/PageHeader.test.js +0 -131
- package/dist/PageHeader/PageHeaderGridCellNarrowWindowOnly.test.d.ts +0 -5
- package/dist/PageHeader/PageHeaderGridCellNarrowWindowOnly.test.js +0 -38
- package/dist/PageHeader/PageHeaderMenuLink.test.d.ts +0 -5
- package/dist/PageHeader/PageHeaderMenuLink.test.js +0 -45
- package/dist/PageHeading/PageHeading.test.d.ts +0 -5
- package/dist/PageHeading/PageHeading.test.js +0 -40
- package/dist/Pagination/Pagination.test.d.ts +0 -5
- package/dist/Pagination/Pagination.test.js +0 -137
- package/dist/Paragraph/Paragraph.test.d.ts +0 -5
- package/dist/Paragraph/Paragraph.test.js +0 -62
- package/dist/PasswordInput/PasswordInput.test.d.ts +0 -5
- package/dist/PasswordInput/PasswordInput.test.js +0 -89
- package/dist/Radio/Radio.test.d.ts +0 -5
- package/dist/Radio/Radio.test.js +0 -134
- package/dist/Row/Row.test.d.ts +0 -5
- package/dist/Row/Row.test.js +0 -64
- package/dist/SearchField/SearchField.test.d.ts +0 -5
- package/dist/SearchField/SearchField.test.js +0 -33
- package/dist/SearchField/SearchFieldButton.test.d.ts +0 -5
- package/dist/SearchField/SearchFieldButton.test.js +0 -47
- package/dist/SearchField/SearchFieldInput.test.d.ts +0 -5
- package/dist/SearchField/SearchFieldInput.test.js +0 -65
- package/dist/Select/Select.test.d.ts +0 -5
- package/dist/Select/Select.test.js +0 -74
- package/dist/Select/SelectOption.test.d.ts +0 -5
- package/dist/Select/SelectOption.test.js +0 -45
- package/dist/Select/SelectOptionGroup.test.d.ts +0 -5
- package/dist/Select/SelectOptionGroup.test.js +0 -45
- package/dist/SkipLink/SkipLink.test.d.ts +0 -5
- package/dist/SkipLink/SkipLink.test.js +0 -33
- package/dist/Spotlight/Spotlight.test.d.ts +0 -5
- package/dist/Spotlight/Spotlight.test.js +0 -46
- package/dist/StandaloneLink/StandaloneLink.test.d.ts +0 -5
- package/dist/StandaloneLink/StandaloneLink.test.js +0 -46
- package/dist/Switch/Switch.test.d.ts +0 -5
- package/dist/Switch/Switch.test.js +0 -69
- package/dist/Table/Table.test.d.ts +0 -5
- package/dist/Table/Table.test.js +0 -33
- package/dist/Table/TableBody.test.d.ts +0 -5
- package/dist/Table/TableBody.test.js +0 -34
- package/dist/Table/TableCaption.test.d.ts +0 -5
- package/dist/Table/TableCaption.test.js +0 -45
- package/dist/Table/TableCell.test.d.ts +0 -5
- package/dist/Table/TableCell.test.js +0 -36
- package/dist/Table/TableFooter.test.d.ts +0 -5
- package/dist/Table/TableFooter.test.js +0 -34
- package/dist/Table/TableHeader.test.d.ts +0 -5
- package/dist/Table/TableHeader.test.js +0 -34
- package/dist/Table/TableHeaderCell.test.d.ts +0 -5
- package/dist/Table/TableHeaderCell.test.js +0 -42
- package/dist/Table/TableRow.test.d.ts +0 -5
- package/dist/Table/TableRow.test.js +0 -35
- package/dist/TableOfContents/TableOfContents.test.d.ts +0 -5
- package/dist/TableOfContents/TableOfContents.test.js +0 -44
- package/dist/TableOfContents/TableOfContentsLink.test.d.ts +0 -5
- package/dist/TableOfContents/TableOfContentsLink.test.js +0 -34
- package/dist/TableOfContents/TableOfContentsList.test.d.ts +0 -5
- package/dist/TableOfContents/TableOfContentsList.test.js +0 -40
- package/dist/Tabs/Tabs.test.d.ts +0 -5
- package/dist/Tabs/Tabs.test.js +0 -104
- package/dist/Tabs/TabsButton.test.d.ts +0 -5
- package/dist/Tabs/TabsButton.test.js +0 -57
- package/dist/Tabs/TabsList.test.d.ts +0 -5
- package/dist/Tabs/TabsList.test.js +0 -32
- package/dist/Tabs/TabsPanel.test.d.ts +0 -5
- package/dist/Tabs/TabsPanel.test.js +0 -42
- package/dist/TextArea/TextArea.test.d.ts +0 -5
- package/dist/TextArea/TextArea.test.js +0 -105
- package/dist/TextInput/TextInput.test.d.ts +0 -5
- package/dist/TextInput/TextInput.test.js +0 -92
- package/dist/TimeInput/TimeInput.test.d.ts +0 -5
- package/dist/TimeInput/TimeInput.test.js +0 -51
- package/dist/UnorderedList/UnorderedList.test.d.ts +0 -5
- package/dist/UnorderedList/UnorderedList.test.js +0 -55
- package/dist/UnorderedList/UnorderedListItem.test.d.ts +0 -5
- package/dist/UnorderedList/UnorderedListItem.test.js +0 -32
- package/dist/common/formatFileSize.test.d.ts +0 -5
- package/dist/common/formatFileSize.test.js +0 -22
- package/dist/common/formatFileType.test.d.ts +0 -5
- package/dist/common/formatFileType.test.js +0 -27
- package/dist/common/useKeyboardFocus.test.d.ts +0 -5
- package/dist/common/useKeyboardFocus.test.js +0 -79
- package/dist/tsconfig.tsbuildinfo +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,65 +1,1939 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { PropsWithChildren, HTMLAttributes, BlockquoteHTMLAttributes, AnchorHTMLAttributes, ReactNode, ButtonHTMLAttributes, InputHTMLAttributes, DialogHTMLAttributes, MouseEvent, ImgHTMLAttributes, LabelHTMLAttributes, ForwardRefExoticComponent, SVGProps, RefAttributes, OlHTMLAttributes, LiHTMLAttributes, ComponentType, OptionHTMLAttributes, OptgroupHTMLAttributes, SelectHTMLAttributes, TableHTMLAttributes, TextareaHTMLAttributes } from 'react';
|
|
3
|
+
|
|
4
|
+
declare const headingSizes: readonly [1, 2, 3, 4];
|
|
5
|
+
type HeadingSize = (typeof headingSizes)[number];
|
|
6
|
+
type HeadingProps = {
|
|
7
|
+
/** Changes the text colour for readability on a dark background. */
|
|
8
|
+
color?: 'inverse';
|
|
9
|
+
/** The hierarchical level within the document. */
|
|
10
|
+
level: HeadingSize;
|
|
11
|
+
/**
|
|
12
|
+
* Uses larger or smaller text without changing its position in the heading hierarchy.
|
|
13
|
+
* The value ‘level-6’ is deprecated. Use level 5 instead.
|
|
14
|
+
*/
|
|
15
|
+
size?: 'level-1' | 'level-2' | 'level-3' | 'level-4' | 'level-5' | 'level-6';
|
|
16
|
+
} & PropsWithChildren<HTMLAttributes<HTMLHeadingElement>>;
|
|
17
|
+
/**
|
|
18
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-text-heading--docs Heading docs at Amsterdam Design System}
|
|
19
|
+
*/
|
|
20
|
+
declare const Heading: react.ForwardRefExoticComponent<{
|
|
21
|
+
/** Changes the text colour for readability on a dark background. */
|
|
22
|
+
color?: "inverse";
|
|
23
|
+
/** The hierarchical level within the document. */
|
|
24
|
+
level: HeadingSize;
|
|
25
|
+
/**
|
|
26
|
+
* Uses larger or smaller text without changing its position in the heading hierarchy.
|
|
27
|
+
* The value ‘level-6’ is deprecated. Use level 5 instead.
|
|
28
|
+
*/
|
|
29
|
+
size?: "level-1" | "level-2" | "level-3" | "level-4" | "level-5" | "level-6";
|
|
30
|
+
} & HTMLAttributes<HTMLHeadingElement> & {
|
|
31
|
+
children?: react.ReactNode | undefined;
|
|
32
|
+
} & react.RefAttributes<HTMLHeadingElement>>;
|
|
33
|
+
|
|
34
|
+
type AccordionProps = {
|
|
35
|
+
/**
|
|
36
|
+
* The hierarchical level of this Accordion’s Section Headings within the document.
|
|
37
|
+
* There is no default value; determine the correct level for each instance.
|
|
38
|
+
* The value ‘1’ is deprecated.
|
|
39
|
+
*/
|
|
40
|
+
headingLevel: HeadingProps['level'];
|
|
41
|
+
/** The HTML element to use for each Accordion Section. */
|
|
42
|
+
sectionAs?: 'div' | 'section';
|
|
43
|
+
} & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
44
|
+
/**
|
|
45
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-containers-accordion--docs Accordion docs at Amsterdam Design System}
|
|
46
|
+
*/
|
|
47
|
+
declare const Accordion: react.ForwardRefExoticComponent<{
|
|
48
|
+
/**
|
|
49
|
+
* The hierarchical level of this Accordion’s Section Headings within the document.
|
|
50
|
+
* There is no default value; determine the correct level for each instance.
|
|
51
|
+
* The value ‘1’ is deprecated.
|
|
52
|
+
*/
|
|
53
|
+
headingLevel: HeadingProps["level"];
|
|
54
|
+
/** The HTML element to use for each Accordion Section. */
|
|
55
|
+
sectionAs?: "div" | "section";
|
|
56
|
+
} & HTMLAttributes<HTMLDivElement> & {
|
|
57
|
+
children?: react.ReactNode | undefined;
|
|
58
|
+
} & react.RefAttributes<HTMLDivElement>> & {
|
|
59
|
+
Section: react.ForwardRefExoticComponent<{
|
|
60
|
+
expanded?: boolean;
|
|
61
|
+
label: string;
|
|
62
|
+
} & HTMLAttributes<HTMLElement> & {
|
|
63
|
+
children?: react.ReactNode | undefined;
|
|
64
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
type AccordionSectionProps = {
|
|
68
|
+
/** Whether the content is displayed initially. */
|
|
69
|
+
expanded?: boolean;
|
|
70
|
+
/** The heading text. */
|
|
71
|
+
label: string;
|
|
72
|
+
} & PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
73
|
+
|
|
74
|
+
type ActionGroupProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
75
|
+
/**
|
|
76
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-layout-action-group--docs Action Group docs at Amsterdam Design System}
|
|
77
|
+
*/
|
|
78
|
+
declare const ActionGroup: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
79
|
+
children?: react.ReactNode | undefined;
|
|
80
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
81
|
+
|
|
82
|
+
type Severity = 'error' | 'success' | 'warning';
|
|
83
|
+
type AlertProps = {
|
|
84
|
+
/** Whether the user can dismiss the Alert. Adds a button to its top right. */
|
|
85
|
+
closeable?: boolean;
|
|
86
|
+
/** The label for the button that dismisses the Alert. */
|
|
87
|
+
closeButtonLabel?: string;
|
|
88
|
+
/** The text for the Heading. */
|
|
89
|
+
heading: string;
|
|
90
|
+
/**
|
|
91
|
+
* The id of the Heading element, which is used to label the Alert.
|
|
92
|
+
* Can be set to `null` to explicitly remove the label.
|
|
93
|
+
* Note: must be unique for the page.
|
|
94
|
+
*/
|
|
95
|
+
headingId?: string | null;
|
|
96
|
+
/**
|
|
97
|
+
* The hierarchical level of the Alert’s Heading within the document.
|
|
98
|
+
* There is no default value; determine the correct level for each instance.
|
|
99
|
+
* The size of the heading is fixed at level 3.
|
|
100
|
+
*/
|
|
101
|
+
headingLevel: HeadingProps['level'];
|
|
102
|
+
/** A function to run when dismissing. */
|
|
103
|
+
onClose?: () => void;
|
|
104
|
+
/** The significance of the message conveyed. */
|
|
105
|
+
severity?: Severity;
|
|
106
|
+
} & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
107
|
+
/**
|
|
108
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-feedback-alert--docs Alert docs at Amsterdam Design System}
|
|
109
|
+
*/
|
|
110
|
+
declare const Alert: react.ForwardRefExoticComponent<{
|
|
111
|
+
/** Whether the user can dismiss the Alert. Adds a button to its top right. */
|
|
112
|
+
closeable?: boolean;
|
|
113
|
+
/** The label for the button that dismisses the Alert. */
|
|
114
|
+
closeButtonLabel?: string;
|
|
115
|
+
/** The text for the Heading. */
|
|
116
|
+
heading: string;
|
|
117
|
+
/**
|
|
118
|
+
* The id of the Heading element, which is used to label the Alert.
|
|
119
|
+
* Can be set to `null` to explicitly remove the label.
|
|
120
|
+
* Note: must be unique for the page.
|
|
121
|
+
*/
|
|
122
|
+
headingId?: string | null;
|
|
123
|
+
/**
|
|
124
|
+
* The hierarchical level of the Alert’s Heading within the document.
|
|
125
|
+
* There is no default value; determine the correct level for each instance.
|
|
126
|
+
* The size of the heading is fixed at level 3.
|
|
127
|
+
*/
|
|
128
|
+
headingLevel: HeadingProps["level"];
|
|
129
|
+
/** A function to run when dismissing. */
|
|
130
|
+
onClose?: () => void;
|
|
131
|
+
/** The significance of the message conveyed. */
|
|
132
|
+
severity?: Severity;
|
|
133
|
+
} & HTMLAttributes<HTMLDivElement> & {
|
|
134
|
+
children?: react.ReactNode | undefined;
|
|
135
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
136
|
+
|
|
137
|
+
declare const avatarColors: readonly ["azure", "green", "lime", "magenta", "orange", "yellow"];
|
|
138
|
+
type AvatarColor = (typeof avatarColors)[number];
|
|
139
|
+
type AvatarProps = {
|
|
140
|
+
/** The background colour. */
|
|
141
|
+
color?: AvatarColor;
|
|
142
|
+
/** The url for the user’s image. Its centre will be displayed. Should be square and scaled down. */
|
|
143
|
+
imageSrc?: string;
|
|
144
|
+
/** The text content. Should be the user’s initials. The first two characters will be displayed. */
|
|
145
|
+
label: string;
|
|
146
|
+
} & HTMLAttributes<HTMLSpanElement>;
|
|
147
|
+
/**
|
|
148
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-feedback-avatar--docs Avatar docs at Amsterdam Design System}
|
|
149
|
+
*/
|
|
150
|
+
declare const Avatar: react.ForwardRefExoticComponent<{
|
|
151
|
+
/** The background colour. */
|
|
152
|
+
color?: AvatarColor;
|
|
153
|
+
/** The url for the user’s image. Its centre will be displayed. Should be square and scaled down. */
|
|
154
|
+
imageSrc?: string;
|
|
155
|
+
/** The text content. Should be the user’s initials. The first two characters will be displayed. */
|
|
156
|
+
label: string;
|
|
157
|
+
} & HTMLAttributes<HTMLSpanElement> & react.RefAttributes<HTMLSpanElement>>;
|
|
158
|
+
|
|
159
|
+
declare const badgeColors: readonly ["azure", "lime", "magenta", "orange", "purple", "red", "yellow"];
|
|
160
|
+
type BadgeColor = (typeof badgeColors)[number];
|
|
161
|
+
type BadgeProps = {
|
|
162
|
+
/** The background colour. */
|
|
163
|
+
color?: BadgeColor;
|
|
164
|
+
/** The text content. */
|
|
165
|
+
label: string | number;
|
|
166
|
+
} & HTMLAttributes<HTMLElement>;
|
|
167
|
+
/**
|
|
168
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-feedback-badge--docs Badge docs at Amsterdam Design System}
|
|
169
|
+
*/
|
|
170
|
+
declare const Badge: react.ForwardRefExoticComponent<{
|
|
171
|
+
/** The background colour. */
|
|
172
|
+
color?: BadgeColor;
|
|
173
|
+
/** The text content. */
|
|
174
|
+
label: string | number;
|
|
175
|
+
} & HTMLAttributes<HTMLElement> & react.RefAttributes<HTMLElement>>;
|
|
176
|
+
|
|
177
|
+
type BlockquoteProps = {
|
|
178
|
+
/** Changes the text colour for readability on a dark background. */
|
|
179
|
+
color?: 'inverse';
|
|
180
|
+
} & PropsWithChildren<BlockquoteHTMLAttributes<HTMLQuoteElement>>;
|
|
181
|
+
/**
|
|
182
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-text-blockquote--docs Blockquote docs at Amsterdam Design System}
|
|
183
|
+
*/
|
|
184
|
+
declare const Blockquote: react.ForwardRefExoticComponent<{
|
|
185
|
+
/** Changes the text colour for readability on a dark background. */
|
|
186
|
+
color?: "inverse";
|
|
187
|
+
} & BlockquoteHTMLAttributes<HTMLQuoteElement> & {
|
|
188
|
+
children?: react.ReactNode | undefined;
|
|
189
|
+
} & react.RefAttributes<HTMLQuoteElement>>;
|
|
190
|
+
|
|
191
|
+
type BreadcrumbLinkProps = AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
192
|
+
|
|
193
|
+
type BreadcrumbProps = PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
194
|
+
/**
|
|
195
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-navigation-breadcrumb--docs Breadcrumb docs at Amsterdam Design System}
|
|
196
|
+
*/
|
|
197
|
+
declare const Breadcrumb: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
198
|
+
children?: react.ReactNode | undefined;
|
|
199
|
+
} & react.RefAttributes<HTMLElement>> & {
|
|
200
|
+
Link: react.ForwardRefExoticComponent<BreadcrumbLinkProps & react.RefAttributes<HTMLAnchorElement>>;
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
declare const gridCellTags: readonly ["article", "aside", "div", "footer", "header", "main", "nav", "section"];
|
|
204
|
+
type GridCellTag = (typeof gridCellTags)[number];
|
|
205
|
+
type GridCellSpanAllProp = {
|
|
206
|
+
/** Lets the cell span the full width of all grid variants. */
|
|
207
|
+
span: 'all';
|
|
208
|
+
start?: never;
|
|
209
|
+
};
|
|
210
|
+
type GridCellSpanAndStartProps = {
|
|
211
|
+
/** The amount of grid columns the cell spans. */
|
|
212
|
+
span?: GridColumnNumber | GridColumnNumbers;
|
|
213
|
+
/** The index of the grid column the cell starts at. */
|
|
214
|
+
start?: GridColumnNumber | GridColumnNumbers;
|
|
215
|
+
};
|
|
216
|
+
type GridCellProps = {
|
|
217
|
+
/** The HTML tag to use. */
|
|
218
|
+
as?: GridCellTag;
|
|
219
|
+
} & PropsWithChildren<HTMLAttributes<HTMLElement>> & (GridCellSpanAllProp | GridCellSpanAndStartProps);
|
|
220
|
+
|
|
221
|
+
type GridColumnNumber = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
222
|
+
type GridColumnNumbers = {
|
|
223
|
+
narrow: 1 | 2 | 3 | 4;
|
|
224
|
+
medium: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
|
225
|
+
wide: GridColumnNumber;
|
|
226
|
+
};
|
|
227
|
+
declare const gridGaps: readonly ["none", "large", "2x-large"];
|
|
228
|
+
type GridGap = (typeof gridGaps)[number];
|
|
229
|
+
declare const gridPaddings: readonly ["large", "x-large", "2x-large"];
|
|
230
|
+
type GridPadding = (typeof gridPaddings)[number];
|
|
231
|
+
declare const gridTags: readonly ["article", "aside", "div", "footer", "header", "main", "nav", "section"];
|
|
232
|
+
type GridTag = (typeof gridTags)[number];
|
|
233
|
+
type GridPaddingVerticalProp = {
|
|
234
|
+
paddingBottom?: never;
|
|
235
|
+
paddingTop?: never;
|
|
236
|
+
/** The amount of space above and below. */
|
|
237
|
+
paddingVertical?: GridPadding;
|
|
238
|
+
};
|
|
239
|
+
type GridPaddingTopAndBottomProps = {
|
|
240
|
+
/** The amount of space below. */
|
|
241
|
+
paddingBottom?: GridPadding;
|
|
242
|
+
/** The amount of space above. */
|
|
243
|
+
paddingTop?: GridPadding;
|
|
244
|
+
paddingVertical?: never;
|
|
245
|
+
};
|
|
246
|
+
type GridProps = {
|
|
247
|
+
/** The HTML tag to use. */
|
|
248
|
+
as?: GridTag;
|
|
249
|
+
/** The amount of space between rows. */
|
|
250
|
+
gapVertical?: GridGap;
|
|
251
|
+
} & PropsWithChildren<HTMLAttributes<HTMLDivElement>> & (GridPaddingVerticalProp | GridPaddingTopAndBottomProps);
|
|
252
|
+
/**
|
|
253
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-layout-grid--docs Grid docs at Amsterdam Design System}
|
|
254
|
+
*/
|
|
255
|
+
declare const Grid: react.ForwardRefExoticComponent<GridProps & react.RefAttributes<any>> & {
|
|
256
|
+
Cell: react.ForwardRefExoticComponent<GridCellProps & react.RefAttributes<unknown>>;
|
|
257
|
+
};
|
|
258
|
+
|
|
259
|
+
declare const breakoutCellTags: readonly ["article", "div", "section"];
|
|
260
|
+
type BreakoutCellTag = (typeof breakoutCellTags)[number];
|
|
261
|
+
type BreakoutCellSpanAllProp = {
|
|
262
|
+
/** Lets the cell span the full width of all grid variants. */
|
|
263
|
+
colSpan: 'all';
|
|
264
|
+
colStart?: never;
|
|
265
|
+
/** The content of this cell.
|
|
266
|
+
* The Cell containing the Spotlight expands horizontally and vertically to cover the adjacent gaps and margins.
|
|
267
|
+
* The Cell containing the Image aligns itself to the bottom of the row, in case it is less tall than the text. */
|
|
268
|
+
has?: 'spotlight';
|
|
269
|
+
};
|
|
270
|
+
type BreakoutCellSpanAndStartProps = {
|
|
271
|
+
/** The amount of grid columns the cell spans. */
|
|
272
|
+
colSpan?: 'all' | GridColumnNumber | GridColumnNumbers;
|
|
273
|
+
/** The index of the grid column the cell starts at. */
|
|
274
|
+
colStart?: GridColumnNumber | GridColumnNumbers;
|
|
275
|
+
has?: 'figure';
|
|
276
|
+
};
|
|
277
|
+
type BreakoutCellRowSpanAndStartProps = {
|
|
278
|
+
/** The amount of grid rows the cell spans. */
|
|
279
|
+
rowSpan?: BreakoutRowNumber | BreakoutRowNumbers;
|
|
280
|
+
/** The index of the grid row the cell starts at. */
|
|
281
|
+
rowStart?: BreakoutRowNumber | BreakoutRowNumbers;
|
|
282
|
+
};
|
|
283
|
+
type BreakoutCellProps = {
|
|
284
|
+
/** The HTML element to use. */
|
|
285
|
+
as?: BreakoutCellTag;
|
|
286
|
+
} & BreakoutCellRowSpanAndStartProps & PropsWithChildren<HTMLAttributes<HTMLElement>> & (BreakoutCellSpanAllProp | BreakoutCellSpanAndStartProps);
|
|
287
|
+
|
|
288
|
+
type BreakoutRowNumber = 1 | 2 | 3 | 4;
|
|
289
|
+
type BreakoutRowNumbers = {
|
|
290
|
+
narrow: BreakoutRowNumber;
|
|
291
|
+
medium: BreakoutRowNumber;
|
|
292
|
+
wide: BreakoutRowNumber;
|
|
293
|
+
};
|
|
294
|
+
type BreakoutProps = GridProps;
|
|
295
|
+
/**
|
|
296
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-layout-breakout--docs Breakout docs at Amsterdam Design System}
|
|
297
|
+
*/
|
|
298
|
+
declare const Breakout: react.ForwardRefExoticComponent<GridProps & react.RefAttributes<HTMLDivElement>> & {
|
|
299
|
+
Cell: react.ForwardRefExoticComponent<BreakoutCellProps & react.RefAttributes<any>>;
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
declare const iconSizes: readonly ["small", "large", "heading-0", "heading-1", "heading-2", "heading-3", "heading-4", "heading-5", "heading-6"];
|
|
303
|
+
type IconSize = (typeof iconSizes)[number];
|
|
304
|
+
type IconProps = {
|
|
305
|
+
/** Changes the icon colour for readability on a dark background. */
|
|
306
|
+
color?: 'inverse';
|
|
307
|
+
/**
|
|
308
|
+
* The size of the icon. Choose the size of the corresponding body text or heading.
|
|
309
|
+
* The values ‘heading-0’ and ‘heading-6’ are deprecated.
|
|
310
|
+
*/
|
|
311
|
+
size?: IconSize;
|
|
312
|
+
/** Whether the icon container should be made square. */
|
|
313
|
+
square?: boolean;
|
|
314
|
+
/** The component rendering the icon’s markup. */
|
|
315
|
+
svg: Function | ReactNode;
|
|
316
|
+
} & HTMLAttributes<HTMLSpanElement>;
|
|
317
|
+
/**
|
|
318
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-media-icon--docs Icon docs at Amsterdam Design System}
|
|
319
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/brand-assets-icons--docs Icons overview at Amsterdam Design System}
|
|
320
|
+
*/
|
|
321
|
+
declare const Icon: react.ForwardRefExoticComponent<{
|
|
322
|
+
/** Changes the icon colour for readability on a dark background. */
|
|
323
|
+
color?: "inverse";
|
|
324
|
+
/**
|
|
325
|
+
* The size of the icon. Choose the size of the corresponding body text or heading.
|
|
326
|
+
* The values ‘heading-0’ and ‘heading-6’ are deprecated.
|
|
327
|
+
*/
|
|
328
|
+
size?: IconSize;
|
|
329
|
+
/** Whether the icon container should be made square. */
|
|
330
|
+
square?: boolean;
|
|
331
|
+
/** The component rendering the icon’s markup. */
|
|
332
|
+
svg: Function | ReactNode;
|
|
333
|
+
} & HTMLAttributes<HTMLSpanElement> & react.RefAttributes<HTMLElement>>;
|
|
334
|
+
|
|
335
|
+
type IconBeforeProp = {
|
|
336
|
+
/** Shows the icon before the label. Requires a value for `icon`. Cannot be used together with `iconOnly`. */
|
|
337
|
+
iconBefore?: boolean;
|
|
338
|
+
iconOnly?: never;
|
|
339
|
+
};
|
|
340
|
+
type IconOnlyProp = {
|
|
341
|
+
iconBefore?: never;
|
|
342
|
+
/** Shows the icon without the label. Requires a value for `icon`. Cannot be used together with `iconBefore`. */
|
|
343
|
+
iconOnly?: boolean;
|
|
344
|
+
};
|
|
345
|
+
type IconButtonProps$1 = {
|
|
346
|
+
/** Adds an icon to the button, showing it after the label. */
|
|
347
|
+
icon: IconProps['svg'];
|
|
348
|
+
} & (IconBeforeProp | IconOnlyProp);
|
|
349
|
+
type TextButtonProps = {
|
|
350
|
+
icon?: never;
|
|
351
|
+
iconBefore?: never;
|
|
352
|
+
iconOnly?: never;
|
|
353
|
+
};
|
|
354
|
+
declare const buttonVariants: readonly ["primary", "secondary", "tertiary"];
|
|
355
|
+
type ButtonVariant = (typeof buttonVariants)[number];
|
|
356
|
+
type ButtonProps = {
|
|
357
|
+
/** The level of prominence. Use a primary button only once per page or section. */
|
|
358
|
+
variant?: ButtonVariant;
|
|
359
|
+
} & PropsWithChildren<ButtonHTMLAttributes<HTMLButtonElement>> & (IconButtonProps$1 | TextButtonProps);
|
|
360
|
+
/**
|
|
361
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-buttons-button--docs Button docs at Amsterdam Design System}
|
|
362
|
+
*/
|
|
363
|
+
declare const Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
|
364
|
+
|
|
365
|
+
type CallToActionLinkProps = PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
366
|
+
/**
|
|
367
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-navigation-call-to-action-link--docs CallToActionLink docs at Amsterdam Design System}
|
|
368
|
+
*/
|
|
369
|
+
declare const CallToActionLink: react.ForwardRefExoticComponent<AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
370
|
+
children?: react.ReactNode | undefined;
|
|
371
|
+
} & react.RefAttributes<HTMLAnchorElement>>;
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* @license EUPL-1.2+
|
|
375
|
+
* Copyright Gemeente Amsterdam
|
|
376
|
+
*/
|
|
377
|
+
declare const aspectRatioOptions: readonly ["9:16", "3:4", "1:1", "4:3", "16:9", "16:5"];
|
|
378
|
+
type AspectRatioProps = {
|
|
379
|
+
/** The aspect ratio to display media content in. */
|
|
380
|
+
aspectRatio?: (typeof aspectRatioOptions)[number];
|
|
381
|
+
};
|
|
382
|
+
declare const crossAlignOptions: readonly ["start", "center", "baseline", "end"];
|
|
383
|
+
type CrossAlign = (typeof crossAlignOptions)[number];
|
|
384
|
+
declare const crossAlignOptionsForColumn: ("center" | "start" | "end")[];
|
|
385
|
+
type CrossAlignForColumn = (typeof crossAlignOptionsForColumn)[number];
|
|
386
|
+
declare const mainAlignOptions: readonly ["center", "end", "between", "around", "evenly"];
|
|
387
|
+
type MainAlign = (typeof mainAlignOptions)[number];
|
|
388
|
+
|
|
389
|
+
type CardProps = PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
390
|
+
/**
|
|
391
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-navigation-card--docs Card docs at Amsterdam Design System}
|
|
392
|
+
*/
|
|
393
|
+
declare const Card: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
394
|
+
children?: react.ReactNode | undefined;
|
|
395
|
+
} & react.RefAttributes<HTMLElement>> & {
|
|
396
|
+
Heading: react.ForwardRefExoticComponent<{
|
|
397
|
+
color?: "inverse";
|
|
398
|
+
level: 1 | 2 | 3 | 4;
|
|
399
|
+
size?: "level-1" | "level-2" | "level-3" | "level-4" | "level-5" | "level-6";
|
|
400
|
+
} & HTMLAttributes<HTMLHeadingElement> & {
|
|
401
|
+
children?: react.ReactNode | undefined;
|
|
402
|
+
} & react.RefAttributes<HTMLHeadingElement>>;
|
|
403
|
+
HeadingGroup: react.ForwardRefExoticComponent<{
|
|
404
|
+
tagline: string;
|
|
405
|
+
} & HTMLAttributes<HTMLElement> & {
|
|
406
|
+
children?: react.ReactNode | undefined;
|
|
407
|
+
} & react.RefAttributes<HTMLElement>>;
|
|
408
|
+
Image: react.ForwardRefExoticComponent<{
|
|
409
|
+
alt: string;
|
|
410
|
+
} & AspectRatioProps & Omit<react.ImgHTMLAttributes<HTMLImageElement>, "children"> & react.RefAttributes<HTMLImageElement>>;
|
|
411
|
+
Link: react.ForwardRefExoticComponent<react.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
412
|
+
children?: react.ReactNode | undefined;
|
|
413
|
+
} & react.RefAttributes<HTMLAnchorElement>>;
|
|
414
|
+
};
|
|
415
|
+
|
|
416
|
+
type CardHeadingGroupProps = {
|
|
417
|
+
/** A short phrase of text, e.g. to categorise the card. Displayed above the card heading. */
|
|
418
|
+
tagline: string;
|
|
419
|
+
} & PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
420
|
+
|
|
421
|
+
type CardLinkProps = PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
422
|
+
|
|
423
|
+
type CharacterCountProps = {
|
|
424
|
+
/** The current length of the field’s value. */
|
|
425
|
+
length: number;
|
|
426
|
+
/** The maximum length of the field’s value. */
|
|
427
|
+
maxLength: number;
|
|
428
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
429
|
+
/**
|
|
430
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-character-count--docs Character Count docs at Amsterdam Design System}
|
|
431
|
+
*/
|
|
432
|
+
declare const CharacterCount: react.ForwardRefExoticComponent<{
|
|
433
|
+
/** The current length of the field’s value. */
|
|
434
|
+
length: number;
|
|
435
|
+
/** The maximum length of the field’s value. */
|
|
436
|
+
maxLength: number;
|
|
437
|
+
} & HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement>>;
|
|
438
|
+
|
|
439
|
+
type CheckboxProps = {
|
|
440
|
+
/**
|
|
441
|
+
* An icon to display instead of the default icon.
|
|
442
|
+
* @default CheckboxIcon
|
|
443
|
+
*/
|
|
444
|
+
icon?: Function | ReactNode;
|
|
445
|
+
/** Allows being neither checked nor unchecked. */
|
|
446
|
+
indeterminate?: boolean;
|
|
447
|
+
/** Whether the value fails a validation rule. */
|
|
448
|
+
invalid?: boolean;
|
|
449
|
+
} & PropsWithChildren<Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid' | 'type'>>;
|
|
450
|
+
/**
|
|
451
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-checkbox--docs Checkbox docs at Amsterdam Design System}
|
|
452
|
+
*/
|
|
453
|
+
declare const Checkbox: react.ForwardRefExoticComponent<{
|
|
454
|
+
/**
|
|
455
|
+
* An icon to display instead of the default icon.
|
|
456
|
+
* @default CheckboxIcon
|
|
457
|
+
*/
|
|
458
|
+
icon?: Function | ReactNode;
|
|
459
|
+
/** Allows being neither checked nor unchecked. */
|
|
460
|
+
indeterminate?: boolean;
|
|
461
|
+
/** Whether the value fails a validation rule. */
|
|
462
|
+
invalid?: boolean;
|
|
463
|
+
} & Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid" | "type"> & {
|
|
464
|
+
children?: ReactNode | undefined;
|
|
465
|
+
} & react.RefAttributes<HTMLInputElement>>;
|
|
466
|
+
|
|
467
|
+
declare const columnTags: readonly ["article", "div", "section"];
|
|
468
|
+
type ColumnTag = (typeof columnTags)[number];
|
|
469
|
+
declare const columnGapSizes: readonly ["none", "x-small", "small", "large", "x-large"];
|
|
470
|
+
type ColumnGap = (typeof columnGapSizes)[number];
|
|
471
|
+
type ColumnProps = {
|
|
472
|
+
/**
|
|
473
|
+
* The vertical alignment of the items in the column.
|
|
474
|
+
* @default start
|
|
475
|
+
*/
|
|
476
|
+
align?: MainAlign;
|
|
477
|
+
/**
|
|
478
|
+
* The horizontal alignment of the items in the column.
|
|
479
|
+
* @default stretch
|
|
480
|
+
*/
|
|
481
|
+
alignHorizontal?: CrossAlignForColumn;
|
|
482
|
+
/**
|
|
483
|
+
* The HTML element to use.
|
|
484
|
+
* @default div
|
|
485
|
+
*/
|
|
486
|
+
as?: ColumnTag;
|
|
487
|
+
/**
|
|
488
|
+
* The amount of space between items.
|
|
489
|
+
* @default medium
|
|
490
|
+
*/
|
|
491
|
+
gap?: ColumnGap;
|
|
492
|
+
} & PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
493
|
+
/**
|
|
494
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-layout-column--docs Column docs at Amsterdam Design System}
|
|
495
|
+
*/
|
|
496
|
+
declare const Column: react.ForwardRefExoticComponent<{
|
|
497
|
+
/**
|
|
498
|
+
* The vertical alignment of the items in the column.
|
|
499
|
+
* @default start
|
|
500
|
+
*/
|
|
501
|
+
align?: MainAlign;
|
|
502
|
+
/**
|
|
503
|
+
* The horizontal alignment of the items in the column.
|
|
504
|
+
* @default stretch
|
|
505
|
+
*/
|
|
506
|
+
alignHorizontal?: CrossAlignForColumn;
|
|
507
|
+
/**
|
|
508
|
+
* The HTML element to use.
|
|
509
|
+
* @default div
|
|
510
|
+
*/
|
|
511
|
+
as?: ColumnTag;
|
|
512
|
+
/**
|
|
513
|
+
* The amount of space between items.
|
|
514
|
+
* @default medium
|
|
515
|
+
*/
|
|
516
|
+
gap?: ColumnGap;
|
|
517
|
+
} & HTMLAttributes<HTMLElement> & {
|
|
518
|
+
children?: react.ReactNode | undefined;
|
|
519
|
+
} & react.RefAttributes<unknown>>;
|
|
520
|
+
|
|
521
|
+
declare const dateInputTypes: readonly ["date", "datetime-local"];
|
|
522
|
+
type DateInputType = (typeof dateInputTypes)[number];
|
|
523
|
+
type DateInputProps = {
|
|
524
|
+
/** Whether the value fails a validation rule. */
|
|
525
|
+
invalid?: boolean;
|
|
526
|
+
/** The kind of data that the user should provide. */
|
|
527
|
+
type?: DateInputType;
|
|
528
|
+
} & Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid' | 'type'>;
|
|
529
|
+
/**
|
|
530
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-date-input--docs Date Input docs at Amsterdam Design System}
|
|
531
|
+
*/
|
|
532
|
+
declare const DateInput: react.ForwardRefExoticComponent<{
|
|
533
|
+
/** Whether the value fails a validation rule. */
|
|
534
|
+
invalid?: boolean;
|
|
535
|
+
/** The kind of data that the user should provide. */
|
|
536
|
+
type?: DateInputType;
|
|
537
|
+
} & Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid" | "type"> & react.RefAttributes<HTMLInputElement>>;
|
|
538
|
+
|
|
539
|
+
declare const descriptionListTermsWidths: readonly ["narrow", "medium", "wide"];
|
|
540
|
+
type DescriptionListTermsWidth = (typeof descriptionListTermsWidths)[number];
|
|
541
|
+
type DescriptionListProps = {
|
|
542
|
+
/** Changes the text colour for readability on a dark background. */
|
|
543
|
+
color?: 'inverse';
|
|
544
|
+
termsWidth?: DescriptionListTermsWidth;
|
|
545
|
+
} & PropsWithChildren<HTMLAttributes<HTMLDListElement>>;
|
|
546
|
+
/**
|
|
547
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-text-description-list--docs Description List docs at Amsterdam Design System}
|
|
548
|
+
*/
|
|
549
|
+
declare const DescriptionList: react.ForwardRefExoticComponent<{
|
|
550
|
+
/** Changes the text colour for readability on a dark background. */
|
|
551
|
+
color?: "inverse";
|
|
552
|
+
termsWidth?: DescriptionListTermsWidth;
|
|
553
|
+
} & HTMLAttributes<HTMLDListElement> & {
|
|
554
|
+
children?: react.ReactNode | undefined;
|
|
555
|
+
} & react.RefAttributes<HTMLDListElement>> & {
|
|
556
|
+
Description: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
557
|
+
children?: react.ReactNode | undefined;
|
|
558
|
+
} & react.RefAttributes<HTMLElement>>;
|
|
559
|
+
Section: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
560
|
+
children?: react.ReactNode | undefined;
|
|
561
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
562
|
+
Term: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
563
|
+
children?: react.ReactNode | undefined;
|
|
564
|
+
} & react.RefAttributes<HTMLElement>>;
|
|
565
|
+
};
|
|
566
|
+
|
|
567
|
+
type DescriptionListDescriptionProps = PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
568
|
+
|
|
569
|
+
type DescriptionListTermProps = PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
570
|
+
|
|
571
|
+
type DialogProps = {
|
|
572
|
+
/** The label for the button that dismisses the Dialog. */
|
|
573
|
+
closeButtonLabel?: string;
|
|
574
|
+
/** Content for the footer, often one Button or an Action Group containing more of them. */
|
|
575
|
+
footer?: ReactNode;
|
|
576
|
+
/** The text for the Heading. */
|
|
577
|
+
heading: string;
|
|
578
|
+
} & PropsWithChildren<DialogHTMLAttributes<HTMLDialogElement>>;
|
|
579
|
+
/**
|
|
580
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-containers-dialog--docs Dialog docs at Amsterdam Design System}
|
|
581
|
+
*/
|
|
582
|
+
declare const Dialog: react.ForwardRefExoticComponent<{
|
|
583
|
+
/** The label for the button that dismisses the Dialog. */
|
|
584
|
+
closeButtonLabel?: string;
|
|
585
|
+
/** Content for the footer, often one Button or an Action Group containing more of them. */
|
|
586
|
+
footer?: ReactNode;
|
|
587
|
+
/** The text for the Heading. */
|
|
588
|
+
heading: string;
|
|
589
|
+
} & DialogHTMLAttributes<HTMLDialogElement> & {
|
|
590
|
+
children?: ReactNode | undefined;
|
|
591
|
+
} & react.RefAttributes<HTMLDialogElement>> & {
|
|
592
|
+
close: (event: MouseEvent<HTMLButtonElement>) => void | undefined;
|
|
593
|
+
open: (id: string) => void;
|
|
594
|
+
};
|
|
595
|
+
|
|
596
|
+
type ErrorMessageProps = {
|
|
597
|
+
/**
|
|
598
|
+
* An icon to display instead of the default icon.
|
|
599
|
+
* @default WarningIcon
|
|
600
|
+
*/
|
|
601
|
+
icon?: IconProps['svg'];
|
|
602
|
+
/** An accessible phrase that screen readers announce before the error message. Should translate to something like ‘input error’. */
|
|
603
|
+
prefix?: string;
|
|
604
|
+
} & PropsWithChildren<HTMLAttributes<HTMLParagraphElement>>;
|
|
605
|
+
/**
|
|
606
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-error-message--docs Error Message docs at Amsterdam Design System}
|
|
607
|
+
*/
|
|
608
|
+
declare const ErrorMessage: react.ForwardRefExoticComponent<{
|
|
609
|
+
/**
|
|
610
|
+
* An icon to display instead of the default icon.
|
|
611
|
+
* @default WarningIcon
|
|
612
|
+
*/
|
|
613
|
+
icon?: IconProps["svg"];
|
|
614
|
+
/** An accessible phrase that screen readers announce before the error message. Should translate to something like ‘input error’. */
|
|
615
|
+
prefix?: string;
|
|
616
|
+
} & HTMLAttributes<HTMLParagraphElement> & {
|
|
617
|
+
children?: react.ReactNode | undefined;
|
|
618
|
+
} & react.RefAttributes<HTMLParagraphElement>>;
|
|
619
|
+
|
|
620
|
+
type FieldProps = {
|
|
621
|
+
/** Whether the field has an input with a validation error */
|
|
622
|
+
invalid?: boolean;
|
|
623
|
+
} & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
624
|
+
/**
|
|
625
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-field--docs Field docs at Amsterdam Design System}
|
|
626
|
+
*/
|
|
627
|
+
declare const Field: react.ForwardRefExoticComponent<{
|
|
628
|
+
/** Whether the field has an input with a validation error */
|
|
629
|
+
invalid?: boolean;
|
|
630
|
+
} & HTMLAttributes<HTMLDivElement> & {
|
|
631
|
+
children?: react.ReactNode | undefined;
|
|
632
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
633
|
+
|
|
634
|
+
type HintAndOptionalProps = {
|
|
635
|
+
/** Show a custom hint text. */
|
|
636
|
+
hint?: string;
|
|
637
|
+
inFieldSet?: boolean;
|
|
638
|
+
/** Appends the text '(niet verplicht)' to the label or legend if no hint is provided. Use when the associated inputs are optional. */
|
|
639
|
+
optional?: boolean;
|
|
640
|
+
};
|
|
641
|
+
type HintProps = HintAndOptionalProps & PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
642
|
+
declare const Hint: react.ForwardRefExoticComponent<HintAndOptionalProps & HTMLAttributes<HTMLElement> & {
|
|
643
|
+
children?: react.ReactNode | undefined;
|
|
644
|
+
} & react.RefAttributes<HTMLElement>>;
|
|
645
|
+
|
|
646
|
+
type FieldSetProps = {
|
|
647
|
+
/**
|
|
648
|
+
* Whether the fieldset is nested inside another fieldset.
|
|
649
|
+
* This will show the legend in a lighter style.
|
|
650
|
+
*/
|
|
651
|
+
inFieldSet?: boolean;
|
|
652
|
+
/** Whether the field set has an input with a validation error. */
|
|
653
|
+
invalid?: boolean;
|
|
654
|
+
/** The text for the caption. */
|
|
655
|
+
legend: string;
|
|
656
|
+
/**
|
|
657
|
+
* Render a level 1 heading in the legend.
|
|
658
|
+
* Set this if the Field Set is the only content of the page.
|
|
659
|
+
*/
|
|
660
|
+
legendIsPageHeading?: boolean;
|
|
661
|
+
} & HintProps & PropsWithChildren<HTMLAttributes<HTMLFieldSetElement>>;
|
|
662
|
+
/**
|
|
663
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-field-set--docs Field Set docs at Amsterdam Design System}
|
|
664
|
+
*/
|
|
665
|
+
declare const FieldSet: react.ForwardRefExoticComponent<{
|
|
666
|
+
/**
|
|
667
|
+
* Whether the fieldset is nested inside another fieldset.
|
|
668
|
+
* This will show the legend in a lighter style.
|
|
669
|
+
*/
|
|
670
|
+
inFieldSet?: boolean;
|
|
671
|
+
/** Whether the field set has an input with a validation error. */
|
|
672
|
+
invalid?: boolean;
|
|
673
|
+
/** The text for the caption. */
|
|
674
|
+
legend: string;
|
|
675
|
+
/**
|
|
676
|
+
* Render a level 1 heading in the legend.
|
|
677
|
+
* Set this if the Field Set is the only content of the page.
|
|
678
|
+
*/
|
|
679
|
+
legendIsPageHeading?: boolean;
|
|
680
|
+
} & {
|
|
681
|
+
hint?: string;
|
|
682
|
+
inFieldSet?: boolean;
|
|
683
|
+
optional?: boolean;
|
|
684
|
+
} & HTMLAttributes<HTMLElement> & {
|
|
685
|
+
children?: react.ReactNode | undefined;
|
|
686
|
+
} & HTMLAttributes<HTMLFieldSetElement> & react.RefAttributes<HTMLFieldSetElement>>;
|
|
687
|
+
|
|
688
|
+
type FigureProps = PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
689
|
+
/**
|
|
690
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-media-figure--docs Figure docs at Amsterdam Design System}
|
|
691
|
+
*/
|
|
692
|
+
declare const Figure: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
693
|
+
children?: react.ReactNode | undefined;
|
|
694
|
+
} & react.RefAttributes<HTMLElement>> & {
|
|
695
|
+
Caption: react.ForwardRefExoticComponent<{
|
|
696
|
+
color?: "inverse";
|
|
697
|
+
} & HTMLAttributes<HTMLElement> & {
|
|
698
|
+
children?: react.ReactNode | undefined;
|
|
699
|
+
} & react.RefAttributes<HTMLElement>>;
|
|
700
|
+
};
|
|
701
|
+
|
|
702
|
+
type FileInputProps = InputHTMLAttributes<HTMLInputElement>;
|
|
703
|
+
/**
|
|
704
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-file-input--docs File Input docs at Amsterdam Design System}
|
|
705
|
+
*/
|
|
706
|
+
declare const FileInput: react.ForwardRefExoticComponent<FileInputProps & react.RefAttributes<HTMLInputElement>>;
|
|
707
|
+
|
|
708
|
+
type FileListProps = PropsWithChildren<HTMLAttributes<HTMLUListElement>>;
|
|
709
|
+
/**
|
|
710
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-file-list--docs File List docs at Amsterdam Design System}
|
|
711
|
+
*/
|
|
712
|
+
declare const FileList: react.ForwardRefExoticComponent<HTMLAttributes<HTMLUListElement> & {
|
|
713
|
+
children?: react.ReactNode | undefined;
|
|
714
|
+
} & react.RefAttributes<HTMLOListElement>> & {
|
|
715
|
+
Item: react.ForwardRefExoticComponent<{
|
|
716
|
+
file: File;
|
|
717
|
+
onDelete?: () => void;
|
|
718
|
+
} & HTMLAttributes<HTMLLIElement> & react.RefAttributes<HTMLLIElement>>;
|
|
719
|
+
};
|
|
720
|
+
|
|
721
|
+
declare const iconButtonColors: readonly ["contrast", "inverse"];
|
|
722
|
+
type IconButtonColor = (typeof iconButtonColors)[number];
|
|
723
|
+
type IconButtonProps = {
|
|
724
|
+
/** Changes the text colour for readability on a light or dark background. */
|
|
725
|
+
color?: IconButtonColor;
|
|
726
|
+
/** The accessible text for the button. Will be announced by screen readers. Should describe the button’s action. */
|
|
727
|
+
label: string;
|
|
728
|
+
/** The size of the icon. Match it to the text that the Icon Buttons aligns with. */
|
|
729
|
+
size?: IconProps['size'];
|
|
730
|
+
/** The component rendering the icon’s markup. */
|
|
731
|
+
svg?: IconProps['svg'];
|
|
732
|
+
} & ButtonHTMLAttributes<HTMLButtonElement>;
|
|
733
|
+
/**
|
|
734
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-buttons-icon-button--docs Icon Button docs at Amsterdam Design System}
|
|
735
|
+
*/
|
|
736
|
+
declare const IconButton: react.ForwardRefExoticComponent<{
|
|
737
|
+
/** Changes the text colour for readability on a light or dark background. */
|
|
738
|
+
color?: IconButtonColor;
|
|
739
|
+
/** The accessible text for the button. Will be announced by screen readers. Should describe the button’s action. */
|
|
740
|
+
label: string;
|
|
741
|
+
/** The size of the icon. Match it to the text that the Icon Buttons aligns with. */
|
|
742
|
+
size?: IconProps["size"];
|
|
743
|
+
/** The component rendering the icon’s markup. */
|
|
744
|
+
svg?: IconProps["svg"];
|
|
745
|
+
} & ButtonHTMLAttributes<HTMLButtonElement> & react.RefAttributes<HTMLButtonElement>>;
|
|
746
|
+
|
|
747
|
+
/**
|
|
748
|
+
* @license EUPL-1.2+
|
|
749
|
+
* Copyright Gemeente Amsterdam
|
|
750
|
+
*/
|
|
751
|
+
declare const generateAspectRatioClass: (aspectRatio?: string) => string | undefined;
|
|
752
|
+
|
|
753
|
+
type ImageProps = {
|
|
754
|
+
/** A textual description of the content of the image. */
|
|
755
|
+
alt: string;
|
|
756
|
+
} & AspectRatioProps & Omit<ImgHTMLAttributes<HTMLImageElement>, 'children'>;
|
|
757
|
+
/**
|
|
758
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-media-image--docs Image docs at Amsterdam Design System}
|
|
759
|
+
*/
|
|
760
|
+
declare const Image: react.ForwardRefExoticComponent<{
|
|
761
|
+
/** A textual description of the content of the image. */
|
|
762
|
+
alt: string;
|
|
763
|
+
} & AspectRatioProps & Omit<ImgHTMLAttributes<HTMLImageElement>, "children"> & react.RefAttributes<HTMLImageElement>>;
|
|
764
|
+
|
|
765
|
+
type ImageSliderImageProps = ImageProps;
|
|
766
|
+
type ImageSliderProps = {
|
|
767
|
+
/** Display buttons to navigate to the previous or next image. */
|
|
768
|
+
controls?: boolean;
|
|
769
|
+
/** Label for the image if you need to translate the alt text. */
|
|
770
|
+
imageLabel?: string;
|
|
771
|
+
/** The set of images to display. */
|
|
772
|
+
images: ImageSliderImageProps[];
|
|
773
|
+
/** The label for the ‘next’ button */
|
|
774
|
+
nextLabel?: string;
|
|
775
|
+
/** The label for the ‘previous’ button */
|
|
776
|
+
previousLabel?: string;
|
|
777
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
778
|
+
/**
|
|
779
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-media-image-slider--docs Image Slider docs at Amsterdam Design System}
|
|
780
|
+
*/
|
|
781
|
+
declare const ImageSlider: react.ForwardRefExoticComponent<{
|
|
782
|
+
/** Display buttons to navigate to the previous or next image. */
|
|
783
|
+
controls?: boolean;
|
|
784
|
+
/** Label for the image if you need to translate the alt text. */
|
|
785
|
+
imageLabel?: string;
|
|
786
|
+
/** The set of images to display. */
|
|
787
|
+
images: ImageSliderImageProps[];
|
|
788
|
+
/** The label for the ‘next’ button */
|
|
789
|
+
nextLabel?: string;
|
|
790
|
+
/** The label for the ‘previous’ button */
|
|
791
|
+
previousLabel?: string;
|
|
792
|
+
} & HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement>> & {
|
|
793
|
+
Item: react.ForwardRefExoticComponent<{
|
|
794
|
+
slideId: number;
|
|
795
|
+
} & HTMLAttributes<HTMLDivElement> & {
|
|
796
|
+
children?: react.ReactNode | undefined;
|
|
797
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
798
|
+
};
|
|
799
|
+
|
|
800
|
+
type ImageSliderItemProps = {
|
|
801
|
+
/** The identifier of the item. Must match the key or order of the slides (starting at 0). */
|
|
802
|
+
slideId: number;
|
|
803
|
+
} & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
804
|
+
|
|
805
|
+
type ErrorLink = {
|
|
806
|
+
id: string;
|
|
807
|
+
label: string;
|
|
808
|
+
};
|
|
809
|
+
type InvalidFormAlertProps = {
|
|
810
|
+
/**
|
|
811
|
+
* The text following the error count.
|
|
812
|
+
* This is used to show the error count in the document title.
|
|
813
|
+
* @default { plural: 'invoerfouten', singular: 'invoerfout' }
|
|
814
|
+
*/
|
|
815
|
+
errorCountLabel?: {
|
|
816
|
+
plural: string;
|
|
817
|
+
singular: string;
|
|
818
|
+
};
|
|
819
|
+
/** The list of error messages to display. */
|
|
820
|
+
errors: ErrorLink[];
|
|
821
|
+
/**
|
|
822
|
+
* Whether the component receives focus on first render
|
|
823
|
+
* @default true
|
|
824
|
+
*/
|
|
825
|
+
focusOnRender?: boolean;
|
|
826
|
+
/**
|
|
827
|
+
* The text for the Heading.
|
|
828
|
+
* @default Verbeter de fouten voor u verder gaat
|
|
829
|
+
*/
|
|
830
|
+
heading?: string;
|
|
831
|
+
/**
|
|
832
|
+
* The hierarchical level of the Invalid Form Alert’s Heading within the document.
|
|
833
|
+
* There is no default value; determine the correct level for each instance.
|
|
834
|
+
* The size of the heading is fixed at level 3.
|
|
835
|
+
*/
|
|
836
|
+
headingLevel: HeadingProps['level'];
|
|
837
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
838
|
+
/**
|
|
839
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-invalid-form-alert--docs Invalid Form Alert docs at Amsterdam Design System}
|
|
840
|
+
*/
|
|
841
|
+
declare const InvalidFormAlert: react.ForwardRefExoticComponent<{
|
|
842
|
+
/**
|
|
843
|
+
* The text following the error count.
|
|
844
|
+
* This is used to show the error count in the document title.
|
|
845
|
+
* @default { plural: 'invoerfouten', singular: 'invoerfout' }
|
|
846
|
+
*/
|
|
847
|
+
errorCountLabel?: {
|
|
848
|
+
plural: string;
|
|
849
|
+
singular: string;
|
|
850
|
+
};
|
|
851
|
+
/** The list of error messages to display. */
|
|
852
|
+
errors: ErrorLink[];
|
|
853
|
+
/**
|
|
854
|
+
* Whether the component receives focus on first render
|
|
855
|
+
* @default true
|
|
856
|
+
*/
|
|
857
|
+
focusOnRender?: boolean;
|
|
858
|
+
/**
|
|
859
|
+
* The text for the Heading.
|
|
860
|
+
* @default Verbeter de fouten voor u verder gaat
|
|
861
|
+
*/
|
|
862
|
+
heading?: string;
|
|
863
|
+
/**
|
|
864
|
+
* The hierarchical level of the Invalid Form Alert’s Heading within the document.
|
|
865
|
+
* There is no default value; determine the correct level for each instance.
|
|
866
|
+
* The size of the heading is fixed at level 3.
|
|
867
|
+
*/
|
|
868
|
+
headingLevel: HeadingProps["level"];
|
|
869
|
+
} & HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement>>;
|
|
870
|
+
|
|
871
|
+
/**
|
|
872
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-label--docs Label docs at Amsterdam Design System}
|
|
873
|
+
*/
|
|
874
|
+
declare const Label: react.ForwardRefExoticComponent<{
|
|
875
|
+
/**
|
|
876
|
+
* Whether the label is nested inside a fieldset.
|
|
877
|
+
* This will show the label in a lighter style.
|
|
878
|
+
*/
|
|
879
|
+
inFieldSet?: boolean;
|
|
880
|
+
/**
|
|
881
|
+
* Render a level 1 heading around the label.
|
|
882
|
+
* Set this if the Field is the only content of the page.
|
|
883
|
+
*/
|
|
884
|
+
isPageHeading?: boolean;
|
|
885
|
+
} & {
|
|
886
|
+
hint?: string;
|
|
887
|
+
inFieldSet?: boolean;
|
|
888
|
+
optional?: boolean;
|
|
889
|
+
} & react.HTMLAttributes<HTMLElement> & {
|
|
890
|
+
children?: react.ReactNode | undefined;
|
|
891
|
+
} & LabelHTMLAttributes<HTMLLabelElement> & react.RefAttributes<HTMLLabelElement>>;
|
|
892
|
+
|
|
893
|
+
type LinkProps = {
|
|
894
|
+
/** Changes the text colour for readability on a light or dark background. */
|
|
895
|
+
color?: 'contrast' | 'inverse';
|
|
896
|
+
} & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'placeholder'>;
|
|
897
|
+
/**
|
|
898
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-navigation-link--docs Link docs at Amsterdam Design System}
|
|
899
|
+
*/
|
|
900
|
+
declare const Link: react.ForwardRefExoticComponent<{
|
|
901
|
+
/** Changes the text colour for readability on a light or dark background. */
|
|
902
|
+
color?: "contrast" | "inverse";
|
|
903
|
+
} & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "placeholder"> & react.RefAttributes<HTMLAnchorElement>>;
|
|
904
|
+
|
|
905
|
+
type LinkListProps = PropsWithChildren<HTMLAttributes<HTMLUListElement>>;
|
|
906
|
+
/**
|
|
907
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-navigation-link-list--docs Link List docs at Amsterdam Design System}
|
|
908
|
+
*/
|
|
909
|
+
declare const LinkList: react.ForwardRefExoticComponent<HTMLAttributes<HTMLUListElement> & {
|
|
910
|
+
children?: react.ReactNode | undefined;
|
|
911
|
+
} & react.RefAttributes<HTMLUListElement>> & {
|
|
912
|
+
Link: react.ForwardRefExoticComponent<{
|
|
913
|
+
color?: "inverse" | "contrast";
|
|
914
|
+
icon?: IconProps["svg"];
|
|
915
|
+
size?: "small" | "large";
|
|
916
|
+
} & react.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
917
|
+
children?: react.ReactNode | undefined;
|
|
918
|
+
} & react.RefAttributes<HTMLAnchorElement>>;
|
|
919
|
+
};
|
|
920
|
+
|
|
921
|
+
declare const linkListLinkColors: readonly ["contrast", "inverse"];
|
|
922
|
+
type LinkListLinkColor = (typeof linkListLinkColors)[number];
|
|
923
|
+
declare const linkListLinkSizes: readonly ["small", "large"];
|
|
924
|
+
type LinkListLinkSize = (typeof linkListLinkSizes)[number];
|
|
925
|
+
type LinkListLinkProps = {
|
|
926
|
+
/** Changes the text colour for readability on a light or dark background. */
|
|
927
|
+
color?: LinkListLinkColor;
|
|
928
|
+
/**
|
|
929
|
+
* An icon to display instead of the default chevron.
|
|
930
|
+
* Don’t mix custom icons with chevrons in one list.
|
|
931
|
+
* @default ChevronForwardIcon
|
|
932
|
+
*/
|
|
933
|
+
icon?: IconProps['svg'];
|
|
934
|
+
/** The size of the text. Use the same size for all items in the list. */
|
|
935
|
+
size?: LinkListLinkSize;
|
|
936
|
+
} & PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
937
|
+
|
|
1
938
|
/**
|
|
2
939
|
* @license EUPL-1.2+
|
|
3
940
|
* Copyright Gemeente Amsterdam
|
|
4
941
|
*/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
942
|
+
|
|
943
|
+
type LogoBrand = 'amsterdam' | 'ggd-amsterdam' | 'museum-weesp' | 'stadsarchief' | 'stadsbank-van-lening' | 'vga-verzekeringen';
|
|
944
|
+
type LogoProps = {
|
|
945
|
+
/** The name of the brand for which to display the logo. */
|
|
946
|
+
brand?: LogoBrand;
|
|
947
|
+
} & SVGProps<SVGSVGElement>;
|
|
948
|
+
/**
|
|
949
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-media-logo--docs Logo docs at Amsterdam Design System}
|
|
950
|
+
*/
|
|
951
|
+
declare const Logo: ForwardRefExoticComponent<Omit<LogoProps, "ref"> & RefAttributes<SVGSVGElement>>;
|
|
952
|
+
|
|
953
|
+
type MarkProps = PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
954
|
+
/**
|
|
955
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-text-mark--docs Mark docs at Amsterdam Design System}
|
|
956
|
+
*/
|
|
957
|
+
declare const Mark: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
958
|
+
children?: react.ReactNode | undefined;
|
|
959
|
+
} & react.RefAttributes<HTMLElement>>;
|
|
960
|
+
|
|
961
|
+
type MenuProps = {
|
|
962
|
+
/**
|
|
963
|
+
* A name for this menu, which screen readers will announce.
|
|
964
|
+
* Only applies to the `inWideWindow` appearance: otherwise, the menu is in the Page Header, which ensures accessibility itself.
|
|
965
|
+
* @default Hoofdnavigatie
|
|
966
|
+
*/
|
|
967
|
+
accessibleName?: string;
|
|
968
|
+
/** Hides the component on narrow windows. */
|
|
969
|
+
inWideWindow?: boolean;
|
|
970
|
+
} & PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
971
|
+
/**
|
|
972
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-navigation-menu--docs Menu docs at Amsterdam Design System}
|
|
973
|
+
*/
|
|
974
|
+
declare const Menu: react.ForwardRefExoticComponent<{
|
|
975
|
+
/**
|
|
976
|
+
* A name for this menu, which screen readers will announce.
|
|
977
|
+
* Only applies to the `inWideWindow` appearance: otherwise, the menu is in the Page Header, which ensures accessibility itself.
|
|
978
|
+
* @default Hoofdnavigatie
|
|
979
|
+
*/
|
|
980
|
+
accessibleName?: string;
|
|
981
|
+
/** Hides the component on narrow windows. */
|
|
982
|
+
inWideWindow?: boolean;
|
|
983
|
+
} & HTMLAttributes<HTMLElement> & {
|
|
984
|
+
children?: react.ReactNode | undefined;
|
|
985
|
+
} & react.RefAttributes<any>> & {
|
|
986
|
+
Link: react.ForwardRefExoticComponent<{
|
|
987
|
+
color?: "contrast" | "inverse";
|
|
988
|
+
icon: IconProps["svg"];
|
|
989
|
+
} & react.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
990
|
+
children?: react.ReactNode | undefined;
|
|
991
|
+
} & react.RefAttributes<HTMLAnchorElement>>;
|
|
992
|
+
};
|
|
993
|
+
|
|
994
|
+
type MenuLinkProps = {
|
|
995
|
+
/**
|
|
996
|
+
* Changes the text colour for readability on a light or dark background.
|
|
997
|
+
* @deprecated The menu has a dark background now, so this is no longer needed.
|
|
998
|
+
*/
|
|
999
|
+
color?: 'contrast' | 'inverse';
|
|
1000
|
+
/** The icon to display for the menu icon. Use the filled variant. */
|
|
1001
|
+
icon: IconProps['svg'];
|
|
1002
|
+
} & PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
1003
|
+
|
|
1004
|
+
type OrderedListProps = {
|
|
1005
|
+
/** Changes the text colour for readability on a dark background. */
|
|
1006
|
+
color?: 'inverse';
|
|
1007
|
+
/** Whether the list items show a marker. */
|
|
1008
|
+
markers?: boolean;
|
|
1009
|
+
/** The size of the text. */
|
|
1010
|
+
size?: 'small';
|
|
1011
|
+
} & PropsWithChildren<OlHTMLAttributes<HTMLOListElement>>;
|
|
1012
|
+
/**
|
|
1013
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-text-ordered-list--docs Ordered List docs at Amsterdam Design System}
|
|
1014
|
+
*/
|
|
1015
|
+
declare const OrderedList: react.ForwardRefExoticComponent<{
|
|
1016
|
+
/** Changes the text colour for readability on a dark background. */
|
|
1017
|
+
color?: "inverse";
|
|
1018
|
+
/** Whether the list items show a marker. */
|
|
1019
|
+
markers?: boolean;
|
|
1020
|
+
/** The size of the text. */
|
|
1021
|
+
size?: "small";
|
|
1022
|
+
} & OlHTMLAttributes<HTMLOListElement> & {
|
|
1023
|
+
children?: react.ReactNode | undefined;
|
|
1024
|
+
} & react.RefAttributes<HTMLOListElement>> & {
|
|
1025
|
+
Item: react.ForwardRefExoticComponent<react.LiHTMLAttributes<HTMLLIElement> & {
|
|
1026
|
+
children?: react.ReactNode | undefined;
|
|
1027
|
+
} & react.RefAttributes<HTMLLIElement>>;
|
|
1028
|
+
};
|
|
1029
|
+
|
|
1030
|
+
type OrderedListItemProps = PropsWithChildren<LiHTMLAttributes<HTMLLIElement>>;
|
|
1031
|
+
|
|
1032
|
+
type OverlapProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
1033
|
+
/**
|
|
1034
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-layout-overlap--docs Overlap docs at Amsterdam Design System}
|
|
1035
|
+
*/
|
|
1036
|
+
declare const Overlap: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
1037
|
+
children?: react.ReactNode | undefined;
|
|
1038
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
1039
|
+
|
|
1040
|
+
type PageProps = {
|
|
1041
|
+
withMenu?: boolean;
|
|
1042
|
+
} & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
1043
|
+
/**
|
|
1044
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-containers-page--docs Page docs at Amsterdam Design System}
|
|
1045
|
+
*/
|
|
1046
|
+
declare const Page: react.ForwardRefExoticComponent<{
|
|
1047
|
+
withMenu?: boolean;
|
|
1048
|
+
} & HTMLAttributes<HTMLDivElement> & {
|
|
1049
|
+
children?: react.ReactNode | undefined;
|
|
1050
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
1051
|
+
|
|
1052
|
+
type PageFooterProps = PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
1053
|
+
/**
|
|
1054
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-containers-page-footer--docs Page Footer docs at Amsterdam Design System}
|
|
1055
|
+
*/
|
|
1056
|
+
declare const PageFooter: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
1057
|
+
children?: react.ReactNode | undefined;
|
|
1058
|
+
} & react.RefAttributes<HTMLElement>> & {
|
|
1059
|
+
Menu: react.ForwardRefExoticComponent<HTMLAttributes<HTMLUListElement> & {
|
|
1060
|
+
children?: react.ReactNode | undefined;
|
|
1061
|
+
} & react.RefAttributes<HTMLUListElement>>;
|
|
1062
|
+
MenuLink: react.ForwardRefExoticComponent<react.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
1063
|
+
children?: react.ReactNode | undefined;
|
|
1064
|
+
} & react.RefAttributes<HTMLAnchorElement>>;
|
|
1065
|
+
Spotlight: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
1066
|
+
children?: react.ReactNode | undefined;
|
|
1067
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
1068
|
+
};
|
|
1069
|
+
|
|
1070
|
+
type PageFooterMenuProps = PropsWithChildren<HTMLAttributes<HTMLUListElement>>;
|
|
1071
|
+
|
|
1072
|
+
type PageFooterMenuLinkProps = PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
1073
|
+
|
|
1074
|
+
type PageFooterSpotlightProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
1075
|
+
|
|
1076
|
+
type PageHeaderProps = {
|
|
1077
|
+
/** The name of the application. */
|
|
1078
|
+
brandName?: string;
|
|
1079
|
+
/** The accessible name of the logo. */
|
|
1080
|
+
logoAccessibleName?: string;
|
|
1081
|
+
/** The name of the brand for which to display the logo. */
|
|
1082
|
+
logoBrand?: LogoBrand;
|
|
1083
|
+
/** The url for the link on the logo. */
|
|
1084
|
+
logoLink?: string;
|
|
1085
|
+
/** The React component to use for the logo link. */
|
|
1086
|
+
logoLinkComponent?: ComponentType<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
1087
|
+
/** The accessible text for the link on the logo. */
|
|
1088
|
+
logoLinkTitle?: string;
|
|
1089
|
+
/** The text for the menu button. */
|
|
1090
|
+
menuButtonText?: string;
|
|
1091
|
+
/** A slot for the menu items. Use PageHeader.MenuLink here. */
|
|
1092
|
+
menuItems?: ReactNode;
|
|
1093
|
+
/** The accessible label for the navigation section. */
|
|
1094
|
+
navigationLabel?: string;
|
|
1095
|
+
/** Whether the menu button is visible on wide screens. */
|
|
1096
|
+
noMenuButtonOnWideWindow?: boolean;
|
|
1097
|
+
} & HTMLAttributes<HTMLElement>;
|
|
1098
|
+
/**
|
|
1099
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-containers-page-header--docs Page Header docs at Amsterdam Design System}
|
|
1100
|
+
*/
|
|
1101
|
+
declare const PageHeader: react.ForwardRefExoticComponent<{
|
|
1102
|
+
/** The name of the application. */
|
|
1103
|
+
brandName?: string;
|
|
1104
|
+
/** The accessible name of the logo. */
|
|
1105
|
+
logoAccessibleName?: string;
|
|
1106
|
+
/** The name of the brand for which to display the logo. */
|
|
1107
|
+
logoBrand?: LogoBrand;
|
|
1108
|
+
/** The url for the link on the logo. */
|
|
1109
|
+
logoLink?: string;
|
|
1110
|
+
/** The React component to use for the logo link. */
|
|
1111
|
+
logoLinkComponent?: ComponentType<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
1112
|
+
/** The accessible text for the link on the logo. */
|
|
1113
|
+
logoLinkTitle?: string;
|
|
1114
|
+
/** The text for the menu button. */
|
|
1115
|
+
menuButtonText?: string;
|
|
1116
|
+
/** A slot for the menu items. Use PageHeader.MenuLink here. */
|
|
1117
|
+
menuItems?: ReactNode;
|
|
1118
|
+
/** The accessible label for the navigation section. */
|
|
1119
|
+
navigationLabel?: string;
|
|
1120
|
+
/** Whether the menu button is visible on wide screens. */
|
|
1121
|
+
noMenuButtonOnWideWindow?: boolean;
|
|
1122
|
+
} & HTMLAttributes<HTMLElement> & react.RefAttributes<HTMLElement>> & {
|
|
1123
|
+
GridCellNarrowWindowOnly: react.ForwardRefExoticComponent<GridCellProps & react.RefAttributes<HTMLElement>>;
|
|
1124
|
+
MenuLink: react.ForwardRefExoticComponent<{
|
|
1125
|
+
fixed?: boolean;
|
|
1126
|
+
icon?: IconProps["svg"];
|
|
1127
|
+
} & AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
1128
|
+
children?: ReactNode | undefined;
|
|
1129
|
+
} & react.RefAttributes<HTMLAnchorElement>>;
|
|
1130
|
+
};
|
|
1131
|
+
|
|
1132
|
+
type PageHeaderMenuLinkProps = {
|
|
1133
|
+
/** Whether the link appears in the Page Header on narrow windows. */
|
|
1134
|
+
fixed?: boolean;
|
|
1135
|
+
/** An icon to display at the end of the label. */
|
|
1136
|
+
icon?: IconProps['svg'];
|
|
1137
|
+
} & PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
1138
|
+
|
|
1139
|
+
type PageHeadingProps = {
|
|
1140
|
+
/** Changes the text colour for readability on a dark background. */
|
|
1141
|
+
color?: 'inverse';
|
|
1142
|
+
} & PropsWithChildren<HTMLAttributes<HTMLHeadingElement>>;
|
|
1143
|
+
/**
|
|
1144
|
+
* @deprecated We no longer use this size of headings. Use `Heading` with level 1 instead.
|
|
1145
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-text-page-heading--docs Page Heading docs at Amsterdam Design System}
|
|
1146
|
+
*/
|
|
1147
|
+
declare const PageHeading: react.ForwardRefExoticComponent<{
|
|
1148
|
+
/** Changes the text colour for readability on a dark background. */
|
|
1149
|
+
color?: "inverse";
|
|
1150
|
+
} & HTMLAttributes<HTMLHeadingElement> & {
|
|
1151
|
+
children?: react.ReactNode | undefined;
|
|
1152
|
+
} & react.RefAttributes<HTMLHeadingElement>>;
|
|
1153
|
+
|
|
1154
|
+
type PaginationProps = {
|
|
1155
|
+
/** The accessible name for the Pagination component. */
|
|
1156
|
+
accessibleName?: string;
|
|
1157
|
+
/**
|
|
1158
|
+
* Connects the component with an internal element that defines its accessible name.
|
|
1159
|
+
* Note: must be unique for the page.
|
|
1160
|
+
*/
|
|
1161
|
+
accessibleNameId?: string;
|
|
1162
|
+
/** The React component to use for the links. */
|
|
1163
|
+
linkComponent?: ComponentType<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
1164
|
+
/** The template used to construct the link hrefs. */
|
|
1165
|
+
linkTemplate: (page: number) => string;
|
|
1166
|
+
/** The maximum amount of pages shown. Minimum value: 5. */
|
|
1167
|
+
maxVisiblePages?: number;
|
|
1168
|
+
/** The accessible name for the link to the next page. */
|
|
1169
|
+
nextAccessibleName?: string;
|
|
1170
|
+
/** The visible label for the link to the next page. */
|
|
1171
|
+
nextLabel?: string;
|
|
1172
|
+
/**
|
|
1173
|
+
* @deprecated Use `nextAccessibleName` instead.
|
|
1174
|
+
* The accessible name for the link to the next page.
|
|
1175
|
+
*/
|
|
1176
|
+
nextVisuallyHiddenLabel?: string;
|
|
1177
|
+
/** The current page number. */
|
|
1178
|
+
page?: number;
|
|
1179
|
+
/** The accessible name for the link to the previous page. */
|
|
1180
|
+
previousAccessibleName?: string;
|
|
1181
|
+
/** The visible label for the link to the previous page. */
|
|
1182
|
+
previousLabel?: string;
|
|
1183
|
+
/**
|
|
1184
|
+
* @deprecated Use `previousAccessibleName` instead.
|
|
1185
|
+
* The accessible name for the link to the previous page.
|
|
1186
|
+
*/
|
|
1187
|
+
previousVisuallyHiddenLabel?: string;
|
|
1188
|
+
/** The total amount of pages. */
|
|
1189
|
+
totalPages: number;
|
|
1190
|
+
/**
|
|
1191
|
+
* @deprecated Use `accessibleName` instead.
|
|
1192
|
+
* The accessible name for the Pagination component.
|
|
1193
|
+
*/
|
|
1194
|
+
visuallyHiddenLabel?: string;
|
|
1195
|
+
/**
|
|
1196
|
+
* @deprecated Use `accessibleNameId` instead.
|
|
1197
|
+
* Connects the component with an internal element that defines its accessible name.
|
|
1198
|
+
* Note: must be unique for the page.
|
|
1199
|
+
*/
|
|
1200
|
+
visuallyHiddenLabelId?: string;
|
|
1201
|
+
} & HTMLAttributes<HTMLElement>;
|
|
1202
|
+
/**
|
|
1203
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-navigation-pagination--docs Pagination docs at Amsterdam Design System}
|
|
1204
|
+
*/
|
|
1205
|
+
declare const Pagination: react.ForwardRefExoticComponent<{
|
|
1206
|
+
/** The accessible name for the Pagination component. */
|
|
1207
|
+
accessibleName?: string;
|
|
1208
|
+
/**
|
|
1209
|
+
* Connects the component with an internal element that defines its accessible name.
|
|
1210
|
+
* Note: must be unique for the page.
|
|
1211
|
+
*/
|
|
1212
|
+
accessibleNameId?: string;
|
|
1213
|
+
/** The React component to use for the links. */
|
|
1214
|
+
linkComponent?: ComponentType<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
1215
|
+
/** The template used to construct the link hrefs. */
|
|
1216
|
+
linkTemplate: (page: number) => string;
|
|
1217
|
+
/** The maximum amount of pages shown. Minimum value: 5. */
|
|
1218
|
+
maxVisiblePages?: number;
|
|
1219
|
+
/** The accessible name for the link to the next page. */
|
|
1220
|
+
nextAccessibleName?: string;
|
|
1221
|
+
/** The visible label for the link to the next page. */
|
|
1222
|
+
nextLabel?: string;
|
|
1223
|
+
/**
|
|
1224
|
+
* @deprecated Use `nextAccessibleName` instead.
|
|
1225
|
+
* The accessible name for the link to the next page.
|
|
1226
|
+
*/
|
|
1227
|
+
nextVisuallyHiddenLabel?: string;
|
|
1228
|
+
/** The current page number. */
|
|
1229
|
+
page?: number;
|
|
1230
|
+
/** The accessible name for the link to the previous page. */
|
|
1231
|
+
previousAccessibleName?: string;
|
|
1232
|
+
/** The visible label for the link to the previous page. */
|
|
1233
|
+
previousLabel?: string;
|
|
1234
|
+
/**
|
|
1235
|
+
* @deprecated Use `previousAccessibleName` instead.
|
|
1236
|
+
* The accessible name for the link to the previous page.
|
|
1237
|
+
*/
|
|
1238
|
+
previousVisuallyHiddenLabel?: string;
|
|
1239
|
+
/** The total amount of pages. */
|
|
1240
|
+
totalPages: number;
|
|
1241
|
+
/**
|
|
1242
|
+
* @deprecated Use `accessibleName` instead.
|
|
1243
|
+
* The accessible name for the Pagination component.
|
|
1244
|
+
*/
|
|
1245
|
+
visuallyHiddenLabel?: string;
|
|
1246
|
+
/**
|
|
1247
|
+
* @deprecated Use `accessibleNameId` instead.
|
|
1248
|
+
* Connects the component with an internal element that defines its accessible name.
|
|
1249
|
+
* Note: must be unique for the page.
|
|
1250
|
+
*/
|
|
1251
|
+
visuallyHiddenLabelId?: string;
|
|
1252
|
+
} & HTMLAttributes<HTMLElement> & react.RefAttributes<HTMLElement>>;
|
|
1253
|
+
|
|
1254
|
+
type ParagraphProps = {
|
|
1255
|
+
/** Changes the text colour for readability on a dark background. */
|
|
1256
|
+
color?: 'inverse';
|
|
1257
|
+
/** The size of the text. */
|
|
1258
|
+
size?: 'small' | 'large';
|
|
1259
|
+
} & PropsWithChildren<HTMLAttributes<HTMLParagraphElement>>;
|
|
1260
|
+
/**
|
|
1261
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-text-paragraph--docs Paragraph docs at Amsterdam Design System}
|
|
1262
|
+
*/
|
|
1263
|
+
declare const Paragraph: react.ForwardRefExoticComponent<{
|
|
1264
|
+
/** Changes the text colour for readability on a dark background. */
|
|
1265
|
+
color?: "inverse";
|
|
1266
|
+
/** The size of the text. */
|
|
1267
|
+
size?: "small" | "large";
|
|
1268
|
+
} & HTMLAttributes<HTMLParagraphElement> & {
|
|
1269
|
+
children?: react.ReactNode | undefined;
|
|
1270
|
+
} & react.RefAttributes<HTMLParagraphElement>>;
|
|
1271
|
+
|
|
1272
|
+
type PasswordInputProps = {
|
|
1273
|
+
/** Whether the value fails a validation rule. */
|
|
1274
|
+
invalid?: boolean;
|
|
1275
|
+
} & Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid' | 'autoCapitalize' | 'autoCorrect' | 'spellCheck' | 'type'>;
|
|
1276
|
+
/**
|
|
1277
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-password-input--docs Password Input docs at Amsterdam Design System}
|
|
1278
|
+
*/
|
|
1279
|
+
declare const PasswordInput: react.ForwardRefExoticComponent<{
|
|
1280
|
+
/** Whether the value fails a validation rule. */
|
|
1281
|
+
invalid?: boolean;
|
|
1282
|
+
} & Omit<InputHTMLAttributes<HTMLInputElement>, "autoCapitalize" | "spellCheck" | "autoCorrect" | "aria-invalid" | "type"> & react.RefAttributes<HTMLInputElement>>;
|
|
1283
|
+
|
|
1284
|
+
type RadioProps = {
|
|
1285
|
+
/**
|
|
1286
|
+
* An icon to display instead of the default icon.
|
|
1287
|
+
* @default RadioIcon
|
|
1288
|
+
*/
|
|
1289
|
+
icon?: Function | ReactNode;
|
|
1290
|
+
/** Whether the value fails a validation rule. */
|
|
1291
|
+
invalid?: boolean;
|
|
1292
|
+
} & PropsWithChildren<Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid' | 'type'>>;
|
|
1293
|
+
/**
|
|
1294
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-radio--docs Radio docs at Amsterdam Design System}
|
|
1295
|
+
*/
|
|
1296
|
+
declare const Radio: react.ForwardRefExoticComponent<{
|
|
1297
|
+
/**
|
|
1298
|
+
* An icon to display instead of the default icon.
|
|
1299
|
+
* @default RadioIcon
|
|
1300
|
+
*/
|
|
1301
|
+
icon?: Function | ReactNode;
|
|
1302
|
+
/** Whether the value fails a validation rule. */
|
|
1303
|
+
invalid?: boolean;
|
|
1304
|
+
} & Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid" | "type"> & {
|
|
1305
|
+
children?: ReactNode | undefined;
|
|
1306
|
+
} & react.RefAttributes<HTMLInputElement>>;
|
|
1307
|
+
|
|
1308
|
+
declare const rowTags: readonly ["article", "div", "section"];
|
|
1309
|
+
type RowTag = (typeof rowTags)[number];
|
|
1310
|
+
declare const rowGapSizes: readonly ["none", "x-small", "small", "large", "x-large"];
|
|
1311
|
+
type RowGap = (typeof rowGapSizes)[number];
|
|
1312
|
+
type RowProps = {
|
|
1313
|
+
/**
|
|
1314
|
+
* The horizontal alignment of the items in the row.
|
|
1315
|
+
* @default start
|
|
1316
|
+
*/
|
|
1317
|
+
align?: MainAlign;
|
|
1318
|
+
/**
|
|
1319
|
+
* The vertical alignment of the items in the row.
|
|
1320
|
+
* @default stretch
|
|
1321
|
+
*/
|
|
1322
|
+
alignVertical?: CrossAlign;
|
|
1323
|
+
/**
|
|
1324
|
+
* The HTML element to use.
|
|
1325
|
+
* @default div
|
|
1326
|
+
*/
|
|
1327
|
+
as?: RowTag;
|
|
1328
|
+
/**
|
|
1329
|
+
* The amount of space between items.
|
|
1330
|
+
* @default medium
|
|
1331
|
+
*/
|
|
1332
|
+
gap?: RowGap;
|
|
1333
|
+
/**
|
|
1334
|
+
* Whether items of the row can wrap onto multiple lines.
|
|
1335
|
+
* @default false
|
|
1336
|
+
*/
|
|
1337
|
+
wrap?: boolean;
|
|
1338
|
+
} & PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
1339
|
+
/**
|
|
1340
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-layout-row--docs Row docs at Amsterdam Design System}
|
|
1341
|
+
*/
|
|
1342
|
+
declare const Row: react.ForwardRefExoticComponent<{
|
|
1343
|
+
/**
|
|
1344
|
+
* The horizontal alignment of the items in the row.
|
|
1345
|
+
* @default start
|
|
1346
|
+
*/
|
|
1347
|
+
align?: MainAlign;
|
|
1348
|
+
/**
|
|
1349
|
+
* The vertical alignment of the items in the row.
|
|
1350
|
+
* @default stretch
|
|
1351
|
+
*/
|
|
1352
|
+
alignVertical?: CrossAlign;
|
|
1353
|
+
/**
|
|
1354
|
+
* The HTML element to use.
|
|
1355
|
+
* @default div
|
|
1356
|
+
*/
|
|
1357
|
+
as?: RowTag;
|
|
1358
|
+
/**
|
|
1359
|
+
* The amount of space between items.
|
|
1360
|
+
* @default medium
|
|
1361
|
+
*/
|
|
1362
|
+
gap?: RowGap;
|
|
1363
|
+
/**
|
|
1364
|
+
* Whether items of the row can wrap onto multiple lines.
|
|
1365
|
+
* @default false
|
|
1366
|
+
*/
|
|
1367
|
+
wrap?: boolean;
|
|
1368
|
+
} & HTMLAttributes<HTMLElement> & {
|
|
1369
|
+
children?: react.ReactNode | undefined;
|
|
1370
|
+
} & react.RefAttributes<unknown>>;
|
|
1371
|
+
|
|
1372
|
+
type SearchFieldProps = PropsWithChildren<HTMLAttributes<HTMLFormElement>>;
|
|
1373
|
+
/**
|
|
1374
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-search-field--docs Search Field docs at Amsterdam Design System}
|
|
1375
|
+
*/
|
|
1376
|
+
declare const SearchField: react.ForwardRefExoticComponent<HTMLAttributes<HTMLFormElement> & {
|
|
1377
|
+
children?: react.ReactNode | undefined;
|
|
1378
|
+
} & react.RefAttributes<HTMLFormElement>> & {
|
|
1379
|
+
Button: react.ForwardRefExoticComponent<{
|
|
1380
|
+
children?: react.ReactNode;
|
|
1381
|
+
className?: string | undefined | undefined;
|
|
1382
|
+
color?: string | undefined | undefined;
|
|
1383
|
+
defaultChecked?: boolean | undefined | undefined;
|
|
1384
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
1385
|
+
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
1386
|
+
suppressHydrationWarning?: boolean | undefined | undefined;
|
|
1387
|
+
accessKey?: string | undefined | undefined;
|
|
1388
|
+
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
1389
|
+
autoFocus?: boolean | undefined | undefined;
|
|
1390
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
1391
|
+
contextMenu?: string | undefined | undefined;
|
|
1392
|
+
dir?: string | undefined | undefined;
|
|
1393
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
1394
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
1395
|
+
hidden?: boolean | undefined | undefined;
|
|
1396
|
+
id?: string | undefined | undefined;
|
|
1397
|
+
lang?: string | undefined | undefined;
|
|
1398
|
+
nonce?: string | undefined | undefined;
|
|
1399
|
+
slot?: string | undefined | undefined;
|
|
1400
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
1401
|
+
style?: react.CSSProperties | undefined;
|
|
1402
|
+
tabIndex?: number | undefined | undefined;
|
|
1403
|
+
title?: string | undefined | undefined;
|
|
1404
|
+
translate?: "yes" | "no" | undefined | undefined;
|
|
1405
|
+
radioGroup?: string | undefined | undefined;
|
|
1406
|
+
role?: react.AriaRole | undefined;
|
|
1407
|
+
about?: string | undefined | undefined;
|
|
1408
|
+
content?: string | undefined | undefined;
|
|
1409
|
+
datatype?: string | undefined | undefined;
|
|
1410
|
+
inlist?: any;
|
|
1411
|
+
prefix?: string | undefined | undefined;
|
|
1412
|
+
property?: string | undefined | undefined;
|
|
1413
|
+
rel?: string | undefined | undefined;
|
|
1414
|
+
resource?: string | undefined | undefined;
|
|
1415
|
+
rev?: string | undefined | undefined;
|
|
1416
|
+
typeof?: string | undefined | undefined;
|
|
1417
|
+
vocab?: string | undefined | undefined;
|
|
1418
|
+
autoCorrect?: string | undefined | undefined;
|
|
1419
|
+
autoSave?: string | undefined | undefined;
|
|
1420
|
+
itemProp?: string | undefined | undefined;
|
|
1421
|
+
itemScope?: boolean | undefined | undefined;
|
|
1422
|
+
itemType?: string | undefined | undefined;
|
|
1423
|
+
itemID?: string | undefined | undefined;
|
|
1424
|
+
itemRef?: string | undefined | undefined;
|
|
1425
|
+
results?: number | undefined | undefined;
|
|
1426
|
+
security?: string | undefined | undefined;
|
|
1427
|
+
unselectable?: "on" | "off" | undefined | undefined;
|
|
1428
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
1429
|
+
is?: string | undefined | undefined;
|
|
1430
|
+
exportparts?: string | undefined | undefined;
|
|
1431
|
+
part?: string | undefined | undefined;
|
|
1432
|
+
"aria-activedescendant"?: string | undefined | undefined;
|
|
1433
|
+
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
1434
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
1435
|
+
"aria-braillelabel"?: string | undefined | undefined;
|
|
1436
|
+
"aria-brailleroledescription"?: string | undefined | undefined;
|
|
1437
|
+
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
1438
|
+
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
1439
|
+
"aria-colcount"?: number | undefined | undefined;
|
|
1440
|
+
"aria-colindex"?: number | undefined | undefined;
|
|
1441
|
+
"aria-colindextext"?: string | undefined | undefined;
|
|
1442
|
+
"aria-colspan"?: number | undefined | undefined;
|
|
1443
|
+
"aria-controls"?: string | undefined | undefined;
|
|
1444
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
|
|
1445
|
+
"aria-describedby"?: string | undefined | undefined;
|
|
1446
|
+
"aria-description"?: string | undefined | undefined;
|
|
1447
|
+
"aria-details"?: string | undefined | undefined;
|
|
1448
|
+
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
1449
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
|
|
1450
|
+
"aria-errormessage"?: string | undefined | undefined;
|
|
1451
|
+
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
1452
|
+
"aria-flowto"?: string | undefined | undefined;
|
|
1453
|
+
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
1454
|
+
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
|
|
1455
|
+
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
1456
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
|
|
1457
|
+
"aria-keyshortcuts"?: string | undefined | undefined;
|
|
1458
|
+
"aria-label"?: string | undefined | undefined;
|
|
1459
|
+
"aria-labelledby"?: string | undefined | undefined;
|
|
1460
|
+
"aria-level"?: number | undefined | undefined;
|
|
1461
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined | undefined;
|
|
1462
|
+
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
1463
|
+
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
1464
|
+
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
1465
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined | undefined;
|
|
1466
|
+
"aria-owns"?: string | undefined | undefined;
|
|
1467
|
+
"aria-placeholder"?: string | undefined | undefined;
|
|
1468
|
+
"aria-posinset"?: number | undefined | undefined;
|
|
1469
|
+
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
1470
|
+
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
1471
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
|
|
1472
|
+
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
1473
|
+
"aria-roledescription"?: string | undefined | undefined;
|
|
1474
|
+
"aria-rowcount"?: number | undefined | undefined;
|
|
1475
|
+
"aria-rowindex"?: number | undefined | undefined;
|
|
1476
|
+
"aria-rowindextext"?: string | undefined | undefined;
|
|
1477
|
+
"aria-rowspan"?: number | undefined | undefined;
|
|
1478
|
+
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
1479
|
+
"aria-setsize"?: number | undefined | undefined;
|
|
1480
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
|
|
1481
|
+
"aria-valuemax"?: number | undefined | undefined;
|
|
1482
|
+
"aria-valuemin"?: number | undefined | undefined;
|
|
1483
|
+
"aria-valuenow"?: number | undefined | undefined;
|
|
1484
|
+
"aria-valuetext"?: string | undefined | undefined;
|
|
1485
|
+
dangerouslySetInnerHTML?: {
|
|
1486
|
+
__html: string | TrustedHTML;
|
|
1487
|
+
} | undefined | undefined;
|
|
1488
|
+
onCopy?: react.ClipboardEventHandler<HTMLButtonElement> | undefined;
|
|
1489
|
+
onCopyCapture?: react.ClipboardEventHandler<HTMLButtonElement> | undefined;
|
|
1490
|
+
onCut?: react.ClipboardEventHandler<HTMLButtonElement> | undefined;
|
|
1491
|
+
onCutCapture?: react.ClipboardEventHandler<HTMLButtonElement> | undefined;
|
|
1492
|
+
onPaste?: react.ClipboardEventHandler<HTMLButtonElement> | undefined;
|
|
1493
|
+
onPasteCapture?: react.ClipboardEventHandler<HTMLButtonElement> | undefined;
|
|
1494
|
+
onCompositionEnd?: react.CompositionEventHandler<HTMLButtonElement> | undefined;
|
|
1495
|
+
onCompositionEndCapture?: react.CompositionEventHandler<HTMLButtonElement> | undefined;
|
|
1496
|
+
onCompositionStart?: react.CompositionEventHandler<HTMLButtonElement> | undefined;
|
|
1497
|
+
onCompositionStartCapture?: react.CompositionEventHandler<HTMLButtonElement> | undefined;
|
|
1498
|
+
onCompositionUpdate?: react.CompositionEventHandler<HTMLButtonElement> | undefined;
|
|
1499
|
+
onCompositionUpdateCapture?: react.CompositionEventHandler<HTMLButtonElement> | undefined;
|
|
1500
|
+
onFocus?: react.FocusEventHandler<HTMLButtonElement> | undefined;
|
|
1501
|
+
onFocusCapture?: react.FocusEventHandler<HTMLButtonElement> | undefined;
|
|
1502
|
+
onBlur?: react.FocusEventHandler<HTMLButtonElement> | undefined;
|
|
1503
|
+
onBlurCapture?: react.FocusEventHandler<HTMLButtonElement> | undefined;
|
|
1504
|
+
onChange?: react.FormEventHandler<HTMLButtonElement> | undefined;
|
|
1505
|
+
onChangeCapture?: react.FormEventHandler<HTMLButtonElement> | undefined;
|
|
1506
|
+
onBeforeInput?: react.InputEventHandler<HTMLButtonElement> | undefined;
|
|
1507
|
+
onBeforeInputCapture?: react.FormEventHandler<HTMLButtonElement> | undefined;
|
|
1508
|
+
onInput?: react.FormEventHandler<HTMLButtonElement> | undefined;
|
|
1509
|
+
onInputCapture?: react.FormEventHandler<HTMLButtonElement> | undefined;
|
|
1510
|
+
onReset?: react.FormEventHandler<HTMLButtonElement> | undefined;
|
|
1511
|
+
onResetCapture?: react.FormEventHandler<HTMLButtonElement> | undefined;
|
|
1512
|
+
onSubmit?: react.FormEventHandler<HTMLButtonElement> | undefined;
|
|
1513
|
+
onSubmitCapture?: react.FormEventHandler<HTMLButtonElement> | undefined;
|
|
1514
|
+
onInvalid?: react.FormEventHandler<HTMLButtonElement> | undefined;
|
|
1515
|
+
onInvalidCapture?: react.FormEventHandler<HTMLButtonElement> | undefined;
|
|
1516
|
+
onLoad?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1517
|
+
onLoadCapture?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1518
|
+
onError?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1519
|
+
onErrorCapture?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1520
|
+
onKeyDown?: react.KeyboardEventHandler<HTMLButtonElement> | undefined;
|
|
1521
|
+
onKeyDownCapture?: react.KeyboardEventHandler<HTMLButtonElement> | undefined;
|
|
1522
|
+
onKeyPress?: react.KeyboardEventHandler<HTMLButtonElement> | undefined;
|
|
1523
|
+
onKeyPressCapture?: react.KeyboardEventHandler<HTMLButtonElement> | undefined;
|
|
1524
|
+
onKeyUp?: react.KeyboardEventHandler<HTMLButtonElement> | undefined;
|
|
1525
|
+
onKeyUpCapture?: react.KeyboardEventHandler<HTMLButtonElement> | undefined;
|
|
1526
|
+
onAbort?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1527
|
+
onAbortCapture?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1528
|
+
onCanPlay?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1529
|
+
onCanPlayCapture?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1530
|
+
onCanPlayThrough?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1531
|
+
onCanPlayThroughCapture?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1532
|
+
onDurationChange?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1533
|
+
onDurationChangeCapture?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1534
|
+
onEmptied?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1535
|
+
onEmptiedCapture?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1536
|
+
onEncrypted?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1537
|
+
onEncryptedCapture?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1538
|
+
onEnded?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1539
|
+
onEndedCapture?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1540
|
+
onLoadedData?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1541
|
+
onLoadedDataCapture?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1542
|
+
onLoadedMetadata?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1543
|
+
onLoadedMetadataCapture?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1544
|
+
onLoadStart?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1545
|
+
onLoadStartCapture?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1546
|
+
onPause?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1547
|
+
onPauseCapture?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1548
|
+
onPlay?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1549
|
+
onPlayCapture?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1550
|
+
onPlaying?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1551
|
+
onPlayingCapture?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1552
|
+
onProgress?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1553
|
+
onProgressCapture?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1554
|
+
onRateChange?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1555
|
+
onRateChangeCapture?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1556
|
+
onSeeked?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1557
|
+
onSeekedCapture?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1558
|
+
onSeeking?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1559
|
+
onSeekingCapture?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1560
|
+
onStalled?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1561
|
+
onStalledCapture?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1562
|
+
onSuspend?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1563
|
+
onSuspendCapture?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1564
|
+
onTimeUpdate?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1565
|
+
onTimeUpdateCapture?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1566
|
+
onVolumeChange?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1567
|
+
onVolumeChangeCapture?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1568
|
+
onWaiting?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1569
|
+
onWaitingCapture?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1570
|
+
onAuxClick?: react.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
1571
|
+
onAuxClickCapture?: react.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
1572
|
+
onClick?: react.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
1573
|
+
onClickCapture?: react.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
1574
|
+
onContextMenu?: react.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
1575
|
+
onContextMenuCapture?: react.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
1576
|
+
onDoubleClick?: react.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
1577
|
+
onDoubleClickCapture?: react.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
1578
|
+
onDrag?: react.DragEventHandler<HTMLButtonElement> | undefined;
|
|
1579
|
+
onDragCapture?: react.DragEventHandler<HTMLButtonElement> | undefined;
|
|
1580
|
+
onDragEnd?: react.DragEventHandler<HTMLButtonElement> | undefined;
|
|
1581
|
+
onDragEndCapture?: react.DragEventHandler<HTMLButtonElement> | undefined;
|
|
1582
|
+
onDragEnter?: react.DragEventHandler<HTMLButtonElement> | undefined;
|
|
1583
|
+
onDragEnterCapture?: react.DragEventHandler<HTMLButtonElement> | undefined;
|
|
1584
|
+
onDragExit?: react.DragEventHandler<HTMLButtonElement> | undefined;
|
|
1585
|
+
onDragExitCapture?: react.DragEventHandler<HTMLButtonElement> | undefined;
|
|
1586
|
+
onDragLeave?: react.DragEventHandler<HTMLButtonElement> | undefined;
|
|
1587
|
+
onDragLeaveCapture?: react.DragEventHandler<HTMLButtonElement> | undefined;
|
|
1588
|
+
onDragOver?: react.DragEventHandler<HTMLButtonElement> | undefined;
|
|
1589
|
+
onDragOverCapture?: react.DragEventHandler<HTMLButtonElement> | undefined;
|
|
1590
|
+
onDragStart?: react.DragEventHandler<HTMLButtonElement> | undefined;
|
|
1591
|
+
onDragStartCapture?: react.DragEventHandler<HTMLButtonElement> | undefined;
|
|
1592
|
+
onDrop?: react.DragEventHandler<HTMLButtonElement> | undefined;
|
|
1593
|
+
onDropCapture?: react.DragEventHandler<HTMLButtonElement> | undefined;
|
|
1594
|
+
onMouseDown?: react.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
1595
|
+
onMouseDownCapture?: react.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
1596
|
+
onMouseEnter?: react.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
1597
|
+
onMouseLeave?: react.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
1598
|
+
onMouseMove?: react.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
1599
|
+
onMouseMoveCapture?: react.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
1600
|
+
onMouseOut?: react.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
1601
|
+
onMouseOutCapture?: react.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
1602
|
+
onMouseOver?: react.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
1603
|
+
onMouseOverCapture?: react.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
1604
|
+
onMouseUp?: react.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
1605
|
+
onMouseUpCapture?: react.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
1606
|
+
onSelect?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1607
|
+
onSelectCapture?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1608
|
+
onTouchCancel?: react.TouchEventHandler<HTMLButtonElement> | undefined;
|
|
1609
|
+
onTouchCancelCapture?: react.TouchEventHandler<HTMLButtonElement> | undefined;
|
|
1610
|
+
onTouchEnd?: react.TouchEventHandler<HTMLButtonElement> | undefined;
|
|
1611
|
+
onTouchEndCapture?: react.TouchEventHandler<HTMLButtonElement> | undefined;
|
|
1612
|
+
onTouchMove?: react.TouchEventHandler<HTMLButtonElement> | undefined;
|
|
1613
|
+
onTouchMoveCapture?: react.TouchEventHandler<HTMLButtonElement> | undefined;
|
|
1614
|
+
onTouchStart?: react.TouchEventHandler<HTMLButtonElement> | undefined;
|
|
1615
|
+
onTouchStartCapture?: react.TouchEventHandler<HTMLButtonElement> | undefined;
|
|
1616
|
+
onPointerDown?: react.PointerEventHandler<HTMLButtonElement> | undefined;
|
|
1617
|
+
onPointerDownCapture?: react.PointerEventHandler<HTMLButtonElement> | undefined;
|
|
1618
|
+
onPointerMove?: react.PointerEventHandler<HTMLButtonElement> | undefined;
|
|
1619
|
+
onPointerMoveCapture?: react.PointerEventHandler<HTMLButtonElement> | undefined;
|
|
1620
|
+
onPointerUp?: react.PointerEventHandler<HTMLButtonElement> | undefined;
|
|
1621
|
+
onPointerUpCapture?: react.PointerEventHandler<HTMLButtonElement> | undefined;
|
|
1622
|
+
onPointerCancel?: react.PointerEventHandler<HTMLButtonElement> | undefined;
|
|
1623
|
+
onPointerCancelCapture?: react.PointerEventHandler<HTMLButtonElement> | undefined;
|
|
1624
|
+
onPointerEnter?: react.PointerEventHandler<HTMLButtonElement> | undefined;
|
|
1625
|
+
onPointerLeave?: react.PointerEventHandler<HTMLButtonElement> | undefined;
|
|
1626
|
+
onPointerOver?: react.PointerEventHandler<HTMLButtonElement> | undefined;
|
|
1627
|
+
onPointerOverCapture?: react.PointerEventHandler<HTMLButtonElement> | undefined;
|
|
1628
|
+
onPointerOut?: react.PointerEventHandler<HTMLButtonElement> | undefined;
|
|
1629
|
+
onPointerOutCapture?: react.PointerEventHandler<HTMLButtonElement> | undefined;
|
|
1630
|
+
onGotPointerCapture?: react.PointerEventHandler<HTMLButtonElement> | undefined;
|
|
1631
|
+
onGotPointerCaptureCapture?: react.PointerEventHandler<HTMLButtonElement> | undefined;
|
|
1632
|
+
onLostPointerCapture?: react.PointerEventHandler<HTMLButtonElement> | undefined;
|
|
1633
|
+
onLostPointerCaptureCapture?: react.PointerEventHandler<HTMLButtonElement> | undefined;
|
|
1634
|
+
onScroll?: react.UIEventHandler<HTMLButtonElement> | undefined;
|
|
1635
|
+
onScrollCapture?: react.UIEventHandler<HTMLButtonElement> | undefined;
|
|
1636
|
+
onWheel?: react.WheelEventHandler<HTMLButtonElement> | undefined;
|
|
1637
|
+
onWheelCapture?: react.WheelEventHandler<HTMLButtonElement> | undefined;
|
|
1638
|
+
onAnimationStart?: react.AnimationEventHandler<HTMLButtonElement> | undefined;
|
|
1639
|
+
onAnimationStartCapture?: react.AnimationEventHandler<HTMLButtonElement> | undefined;
|
|
1640
|
+
onAnimationEnd?: react.AnimationEventHandler<HTMLButtonElement> | undefined;
|
|
1641
|
+
onAnimationEndCapture?: react.AnimationEventHandler<HTMLButtonElement> | undefined;
|
|
1642
|
+
onAnimationIteration?: react.AnimationEventHandler<HTMLButtonElement> | undefined;
|
|
1643
|
+
onAnimationIterationCapture?: react.AnimationEventHandler<HTMLButtonElement> | undefined;
|
|
1644
|
+
onTransitionEnd?: react.TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
1645
|
+
onTransitionEndCapture?: react.TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
1646
|
+
form?: string | undefined | undefined;
|
|
1647
|
+
value?: string | number | readonly string[] | undefined;
|
|
1648
|
+
type?: "submit" | "reset" | "button" | undefined | undefined;
|
|
1649
|
+
disabled?: boolean | undefined | undefined;
|
|
1650
|
+
formAction?: string | undefined;
|
|
1651
|
+
formEncType?: string | undefined | undefined;
|
|
1652
|
+
formMethod?: string | undefined | undefined;
|
|
1653
|
+
formNoValidate?: boolean | undefined | undefined;
|
|
1654
|
+
formTarget?: string | undefined | undefined;
|
|
1655
|
+
name?: string | undefined | undefined;
|
|
1656
|
+
} & react.RefAttributes<HTMLButtonElement>>;
|
|
1657
|
+
Input: react.ForwardRefExoticComponent<{
|
|
1658
|
+
invalid?: boolean;
|
|
1659
|
+
label?: string;
|
|
1660
|
+
} & react.InputHTMLAttributes<HTMLInputElement> & react.RefAttributes<HTMLInputElement>>;
|
|
1661
|
+
};
|
|
1662
|
+
|
|
1663
|
+
type SelectOptionProps = OptionHTMLAttributes<HTMLOptionElement>;
|
|
1664
|
+
|
|
1665
|
+
type SelectOptionGroupProps = OptgroupHTMLAttributes<HTMLOptGroupElement>;
|
|
1666
|
+
|
|
1667
|
+
type SelectProps = {
|
|
1668
|
+
/** Whether the value fails a validation rule. */
|
|
1669
|
+
invalid?: boolean;
|
|
1670
|
+
} & PropsWithChildren<Omit<SelectHTMLAttributes<HTMLSelectElement>, 'aria-invalid'>>;
|
|
1671
|
+
/**
|
|
1672
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-select--docs Select docs at Amsterdam Design System}
|
|
1673
|
+
*/
|
|
1674
|
+
declare const Select: react.ForwardRefExoticComponent<{
|
|
1675
|
+
/** Whether the value fails a validation rule. */
|
|
1676
|
+
invalid?: boolean;
|
|
1677
|
+
} & Omit<SelectHTMLAttributes<HTMLSelectElement>, "aria-invalid"> & {
|
|
1678
|
+
children?: react.ReactNode | undefined;
|
|
1679
|
+
} & react.RefAttributes<HTMLSelectElement>> & {
|
|
1680
|
+
Group: react.ForwardRefExoticComponent<SelectOptionGroupProps & {
|
|
1681
|
+
children?: react.ReactNode | undefined;
|
|
1682
|
+
} & react.RefAttributes<HTMLOptGroupElement>>;
|
|
1683
|
+
Option: react.ForwardRefExoticComponent<SelectOptionProps & {
|
|
1684
|
+
children?: react.ReactNode | undefined;
|
|
1685
|
+
} & react.RefAttributes<HTMLOptionElement>>;
|
|
1686
|
+
};
|
|
1687
|
+
|
|
1688
|
+
type SkipLinkProps = PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
1689
|
+
/**
|
|
1690
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-navigation-skip-link--docs Skip Link docs at Amsterdam Design System}
|
|
1691
|
+
*/
|
|
1692
|
+
declare const SkipLink: react.ForwardRefExoticComponent<AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
1693
|
+
children?: react.ReactNode | undefined;
|
|
1694
|
+
} & react.RefAttributes<HTMLAnchorElement>>;
|
|
1695
|
+
|
|
1696
|
+
declare const spotlightTags: readonly ["article", "aside", "div", "footer", "section"];
|
|
1697
|
+
type SpotlightTag = (typeof spotlightTags)[number];
|
|
1698
|
+
declare const spotlightColors: readonly ["azure", "green", "lime", "magenta", "orange", "yellow"];
|
|
1699
|
+
type SpotlightColor = (typeof spotlightColors)[number];
|
|
1700
|
+
type SpotlightProps = {
|
|
1701
|
+
/** The HTML element to use. */
|
|
1702
|
+
as?: SpotlightTag;
|
|
1703
|
+
/** The background colour. */
|
|
1704
|
+
color?: SpotlightColor;
|
|
1705
|
+
} & PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
1706
|
+
/**
|
|
1707
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-containers-spotlight--docs Spotlight docs at Amsterdam Design System}
|
|
1708
|
+
*/
|
|
1709
|
+
declare const Spotlight: react.ForwardRefExoticComponent<{
|
|
1710
|
+
/** The HTML element to use. */
|
|
1711
|
+
as?: SpotlightTag;
|
|
1712
|
+
/** The background colour. */
|
|
1713
|
+
color?: SpotlightColor;
|
|
1714
|
+
} & HTMLAttributes<HTMLElement> & {
|
|
1715
|
+
children?: react.ReactNode | undefined;
|
|
1716
|
+
} & react.RefAttributes<unknown>>;
|
|
1717
|
+
|
|
1718
|
+
type StandaloneLinkProps = {
|
|
1719
|
+
/** Changes the text colour for readability on a light or dark background. */
|
|
1720
|
+
color?: 'contrast' | 'inverse';
|
|
1721
|
+
/**
|
|
1722
|
+
* The icon to show before the link text.
|
|
1723
|
+
* @default ChevronForwardIcon
|
|
1724
|
+
*/
|
|
1725
|
+
icon?: IconProps['svg'];
|
|
1726
|
+
} & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'placeholder'>;
|
|
1727
|
+
/**
|
|
1728
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-navigation-standalone-link--docs Standalone Link docs at Amsterdam Design System}
|
|
1729
|
+
*/
|
|
1730
|
+
declare const StandaloneLink: react.ForwardRefExoticComponent<{
|
|
1731
|
+
/** Changes the text colour for readability on a light or dark background. */
|
|
1732
|
+
color?: "contrast" | "inverse";
|
|
1733
|
+
/**
|
|
1734
|
+
* The icon to show before the link text.
|
|
1735
|
+
* @default ChevronForwardIcon
|
|
1736
|
+
*/
|
|
1737
|
+
icon?: IconProps["svg"];
|
|
1738
|
+
} & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "placeholder"> & react.RefAttributes<HTMLAnchorElement>>;
|
|
1739
|
+
|
|
1740
|
+
type SwitchProps = PropsWithChildren<InputHTMLAttributes<HTMLInputElement>>;
|
|
1741
|
+
/**
|
|
1742
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-switch--docs Switch docs at Amsterdam Design System}
|
|
1743
|
+
*/
|
|
1744
|
+
declare const Switch: react.ForwardRefExoticComponent<InputHTMLAttributes<HTMLInputElement> & {
|
|
1745
|
+
children?: react.ReactNode | undefined;
|
|
1746
|
+
} & react.RefAttributes<HTMLInputElement>>;
|
|
1747
|
+
|
|
1748
|
+
type TableProps = PropsWithChildren<TableHTMLAttributes<HTMLTableElement>>;
|
|
1749
|
+
/**
|
|
1750
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-containers-table--docs Table docs at Amsterdam Design System}
|
|
1751
|
+
*/
|
|
1752
|
+
declare const Table: react.ForwardRefExoticComponent<TableHTMLAttributes<HTMLTableElement> & {
|
|
1753
|
+
children?: react.ReactNode | undefined;
|
|
1754
|
+
} & react.RefAttributes<HTMLTableElement>> & {
|
|
1755
|
+
Body: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLTableSectionElement> & {
|
|
1756
|
+
children?: react.ReactNode | undefined;
|
|
1757
|
+
} & react.RefAttributes<HTMLTableSectionElement>>;
|
|
1758
|
+
Caption: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLTableCaptionElement> & {
|
|
1759
|
+
children?: react.ReactNode | undefined;
|
|
1760
|
+
} & react.RefAttributes<HTMLTableCaptionElement>>;
|
|
1761
|
+
Cell: react.ForwardRefExoticComponent<react.TdHTMLAttributes<HTMLTableCellElement> & {
|
|
1762
|
+
children?: react.ReactNode | undefined;
|
|
1763
|
+
} & react.RefAttributes<HTMLTableCellElement>>;
|
|
1764
|
+
Footer: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLTableSectionElement> & {
|
|
1765
|
+
children?: react.ReactNode | undefined;
|
|
1766
|
+
} & react.RefAttributes<HTMLTableSectionElement>>;
|
|
1767
|
+
Header: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLTableSectionElement> & {
|
|
1768
|
+
children?: react.ReactNode | undefined;
|
|
1769
|
+
} & react.RefAttributes<HTMLTableSectionElement>>;
|
|
1770
|
+
HeaderCell: react.ForwardRefExoticComponent<react.ThHTMLAttributes<HTMLTableCellElement> & {
|
|
1771
|
+
children?: react.ReactNode | undefined;
|
|
1772
|
+
} & react.RefAttributes<HTMLTableCellElement>>;
|
|
1773
|
+
Row: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLTableRowElement> & {
|
|
1774
|
+
children?: react.ReactNode | undefined;
|
|
1775
|
+
} & react.RefAttributes<HTMLTableRowElement>>;
|
|
1776
|
+
};
|
|
1777
|
+
|
|
1778
|
+
type TableOfContentsProps = {
|
|
1779
|
+
/** The text for the Heading. */
|
|
1780
|
+
heading?: string;
|
|
1781
|
+
/**
|
|
1782
|
+
* The hierarchical level of the Heading within the document.
|
|
1783
|
+
* Visually, it always has the size of a level 3 Heading.
|
|
1784
|
+
*/
|
|
1785
|
+
headingLevel?: HeadingProps['level'];
|
|
1786
|
+
} & PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
1787
|
+
/**
|
|
1788
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-navigation-table-of-contents--docs Table Of Contents docs at Amsterdam Design System}
|
|
1789
|
+
*/
|
|
1790
|
+
declare const TableOfContents: react.ForwardRefExoticComponent<{
|
|
1791
|
+
/** The text for the Heading. */
|
|
1792
|
+
heading?: string;
|
|
1793
|
+
/**
|
|
1794
|
+
* The hierarchical level of the Heading within the document.
|
|
1795
|
+
* Visually, it always has the size of a level 3 Heading.
|
|
1796
|
+
*/
|
|
1797
|
+
headingLevel?: HeadingProps["level"];
|
|
1798
|
+
} & HTMLAttributes<HTMLElement> & {
|
|
1799
|
+
children?: react.ReactNode | undefined;
|
|
1800
|
+
} & react.RefAttributes<HTMLElement>> & {
|
|
1801
|
+
Link: react.ForwardRefExoticComponent<{
|
|
1802
|
+
label: string;
|
|
1803
|
+
} & react.AnchorHTMLAttributes<HTMLAnchorElement> & react.RefAttributes<HTMLAnchorElement>>;
|
|
1804
|
+
List: react.ForwardRefExoticComponent<HTMLAttributes<HTMLUListElement> & {
|
|
1805
|
+
children?: react.ReactNode | undefined;
|
|
1806
|
+
} & react.RefAttributes<HTMLUListElement>>;
|
|
1807
|
+
};
|
|
1808
|
+
|
|
1809
|
+
type TableOfContentsLinkProps = {
|
|
1810
|
+
/** The text for the link. */
|
|
1811
|
+
label: string;
|
|
1812
|
+
} & AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
1813
|
+
|
|
1814
|
+
type TableOfContentsListProps = PropsWithChildren<HTMLAttributes<HTMLUListElement>>;
|
|
1815
|
+
|
|
1816
|
+
type TabsProps = {
|
|
1817
|
+
/** The identifier of the initially active Tab. Corresponds to its Panel `id` value. */
|
|
1818
|
+
activeTab?: string;
|
|
1819
|
+
onTabChange?: (panelId: string) => void;
|
|
1820
|
+
} & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
1821
|
+
/**
|
|
1822
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-containers-tabs--docs Tabs docs at Amsterdam Design System}
|
|
1823
|
+
*/
|
|
1824
|
+
declare const Tabs: react.ForwardRefExoticComponent<{
|
|
1825
|
+
/** The identifier of the initially active Tab. Corresponds to its Panel `id` value. */
|
|
1826
|
+
activeTab?: string;
|
|
1827
|
+
onTabChange?: (panelId: string) => void;
|
|
1828
|
+
} & HTMLAttributes<HTMLDivElement> & {
|
|
1829
|
+
children?: react.ReactNode | undefined;
|
|
1830
|
+
} & react.RefAttributes<HTMLDivElement>> & {
|
|
1831
|
+
Button: react.ForwardRefExoticComponent<{
|
|
1832
|
+
'aria-controls': string;
|
|
1833
|
+
} & react.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
1834
|
+
children?: react.ReactNode | undefined;
|
|
1835
|
+
} & react.RefAttributes<HTMLButtonElement>>;
|
|
1836
|
+
List: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
1837
|
+
children?: react.ReactNode | undefined;
|
|
1838
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
1839
|
+
Panel: react.ForwardRefExoticComponent<{
|
|
1840
|
+
id: string;
|
|
1841
|
+
} & HTMLAttributes<HTMLDivElement> & {
|
|
1842
|
+
children?: react.ReactNode | undefined;
|
|
1843
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
1844
|
+
};
|
|
1845
|
+
|
|
1846
|
+
type TabsButtonProps = {
|
|
1847
|
+
/** The identifier of the corresponding tab panel. */
|
|
1848
|
+
'aria-controls': string;
|
|
1849
|
+
} & PropsWithChildren<ButtonHTMLAttributes<HTMLButtonElement>>;
|
|
1850
|
+
|
|
1851
|
+
type TabsListProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
1852
|
+
|
|
1853
|
+
type TabsPanelProps = {
|
|
1854
|
+
/** The identifier of the Tab Panel. */
|
|
1855
|
+
id: string;
|
|
1856
|
+
} & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
1857
|
+
|
|
1858
|
+
type TextAreaProps = {
|
|
1859
|
+
/** Whether the value fails a validation rule. */
|
|
1860
|
+
invalid?: boolean;
|
|
1861
|
+
/**
|
|
1862
|
+
* Allows the user to resize the text box. The default is resizing in both directions.
|
|
1863
|
+
* Note: this feature is not fully supported in Safari on iOS.
|
|
1864
|
+
*/
|
|
1865
|
+
resize?: 'none' | 'horizontal' | 'vertical';
|
|
1866
|
+
} & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'aria-invalid'>;
|
|
1867
|
+
/**
|
|
1868
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-text-area--docs Text Area docs at Amsterdam Design System}
|
|
1869
|
+
*/
|
|
1870
|
+
declare const TextArea: react.ForwardRefExoticComponent<{
|
|
1871
|
+
/** Whether the value fails a validation rule. */
|
|
1872
|
+
invalid?: boolean;
|
|
1873
|
+
/**
|
|
1874
|
+
* Allows the user to resize the text box. The default is resizing in both directions.
|
|
1875
|
+
* Note: this feature is not fully supported in Safari on iOS.
|
|
1876
|
+
*/
|
|
1877
|
+
resize?: "none" | "horizontal" | "vertical";
|
|
1878
|
+
} & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "aria-invalid"> & react.RefAttributes<HTMLTextAreaElement>>;
|
|
1879
|
+
|
|
1880
|
+
declare const textInputTypes: readonly ["email", "tel", "text", "url"];
|
|
1881
|
+
type TextInputType = (typeof textInputTypes)[number];
|
|
1882
|
+
type TextInputProps = {
|
|
1883
|
+
/** Whether the value fails a validation rule. */
|
|
1884
|
+
invalid?: boolean;
|
|
1885
|
+
/** The kind of data that the user should provide. */
|
|
1886
|
+
type?: TextInputType;
|
|
1887
|
+
} & Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid'>;
|
|
1888
|
+
/**
|
|
1889
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-text-input--docs Text Input docs at Amsterdam Design System}
|
|
1890
|
+
*/
|
|
1891
|
+
declare const TextInput: react.ForwardRefExoticComponent<{
|
|
1892
|
+
/** Whether the value fails a validation rule. */
|
|
1893
|
+
invalid?: boolean;
|
|
1894
|
+
/** The kind of data that the user should provide. */
|
|
1895
|
+
type?: TextInputType;
|
|
1896
|
+
} & Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid"> & react.RefAttributes<HTMLInputElement>>;
|
|
1897
|
+
|
|
1898
|
+
type TimeInputProps = {
|
|
1899
|
+
/** Whether the value fails a validation rule. */
|
|
1900
|
+
invalid?: boolean;
|
|
1901
|
+
} & Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid' | 'type'>;
|
|
1902
|
+
/**
|
|
1903
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-time-input--docs Time Input docs at Amsterdam Design System}
|
|
1904
|
+
*/
|
|
1905
|
+
declare const TimeInput: react.ForwardRefExoticComponent<{
|
|
1906
|
+
/** Whether the value fails a validation rule. */
|
|
1907
|
+
invalid?: boolean;
|
|
1908
|
+
} & Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid" | "type"> & react.RefAttributes<HTMLInputElement>>;
|
|
1909
|
+
|
|
1910
|
+
type UnorderedListProps = {
|
|
1911
|
+
/** Changes the text colour for readability on a dark background. */
|
|
1912
|
+
color?: 'inverse';
|
|
1913
|
+
/** Whether the list items show a marker. */
|
|
1914
|
+
markers?: boolean;
|
|
1915
|
+
/** The size of the text. */
|
|
1916
|
+
size?: 'small';
|
|
1917
|
+
} & PropsWithChildren<HTMLAttributes<HTMLUListElement>>;
|
|
1918
|
+
/**
|
|
1919
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-text-unordered-list--docs Unordered List docs at Amsterdam Design System}
|
|
1920
|
+
*/
|
|
1921
|
+
declare const UnorderedList: react.ForwardRefExoticComponent<{
|
|
1922
|
+
/** Changes the text colour for readability on a dark background. */
|
|
1923
|
+
color?: "inverse";
|
|
1924
|
+
/** Whether the list items show a marker. */
|
|
1925
|
+
markers?: boolean;
|
|
1926
|
+
/** The size of the text. */
|
|
1927
|
+
size?: "small";
|
|
1928
|
+
} & HTMLAttributes<HTMLUListElement> & {
|
|
1929
|
+
children?: react.ReactNode | undefined;
|
|
1930
|
+
} & react.RefAttributes<HTMLUListElement>> & {
|
|
1931
|
+
Item: react.ForwardRefExoticComponent<react.LiHTMLAttributes<HTMLLIElement> & {
|
|
1932
|
+
children?: react.ReactNode | undefined;
|
|
1933
|
+
} & react.RefAttributes<HTMLLIElement>>;
|
|
1934
|
+
};
|
|
1935
|
+
|
|
1936
|
+
type UnorderedListItemProps = PropsWithChildren<LiHTMLAttributes<HTMLLIElement>>;
|
|
1937
|
+
|
|
1938
|
+
export { Accordion, ActionGroup, Alert, Avatar, Badge, Blockquote, Breadcrumb, Breakout, Button, CallToActionLink, Card, CharacterCount, Checkbox, Column, DateInput, DescriptionList, Dialog, ErrorMessage, Field, FieldSet, Figure, FileInput, FileList, Grid, Heading, Hint, Icon, IconButton, Image, ImageSlider, InvalidFormAlert, Label, Link, LinkList, Logo, Mark, Menu, OrderedList, Overlap, Page, PageFooter, PageHeader, PageHeading, Pagination, Paragraph, PasswordInput, Radio, Row, SearchField, Select, SkipLink, Spotlight, StandaloneLink, Switch, Table, TableOfContents, Tabs, TextArea, TextInput, TimeInput, UnorderedList, generateAspectRatioClass };
|
|
1939
|
+
export type { AccordionProps, AccordionSectionProps, ActionGroupProps, AlertProps, AvatarProps, BadgeProps, BlockquoteProps, BreadcrumbLinkProps, BreadcrumbProps, BreakoutCellProps, BreakoutProps, ButtonProps, CallToActionLinkProps, CardHeadingGroupProps, CardLinkProps, CardProps, CharacterCountProps, CheckboxProps, ColumnProps, DateInputProps, DescriptionListDescriptionProps, DescriptionListProps, DescriptionListTermProps, DialogProps, ErrorLink, ErrorMessageProps, FieldProps, FieldSetProps, FigureProps, FileInputProps, FileListProps, GridCellProps, GridColumnNumber, GridColumnNumbers, GridProps, HeadingProps, HintProps, IconButtonProps, IconProps, ImageProps, ImageSliderItemProps, ImageSliderProps, InvalidFormAlertProps, LinkListLinkProps, LinkListProps, LinkProps, LogoBrand, LogoProps, MarkProps, MenuLinkProps, MenuProps, OrderedListItemProps, OrderedListProps, OverlapProps, PageFooterMenuLinkProps, PageFooterMenuProps, PageFooterProps, PageFooterSpotlightProps, PageHeaderMenuLinkProps, PageHeaderProps, PageHeadingProps, PageProps, PaginationProps, ParagraphProps, PasswordInputProps, RadioProps, RowProps, SearchFieldProps, SelectOptionProps, SelectProps, SkipLinkProps, SpotlightProps, StandaloneLinkProps, SwitchProps, TableOfContentsLinkProps, TableOfContentsListProps, TableOfContentsProps, TableProps, TabsButtonProps, TabsListProps, TabsPanelProps, TabsProps, TextAreaProps, TextInputProps, TimeInputProps, UnorderedListItemProps, UnorderedListProps };
|