@amsterdam/design-system-react 1.1.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion/Accordion.d.ts +7 -7
- package/dist/Accordion/Accordion.js +2 -6
- package/dist/Accordion/Accordion.test.js +4 -4
- package/dist/Accordion/AccordionContext.d.ts +1 -2
- package/dist/Accordion/AccordionContext.js +3 -2
- package/dist/Accordion/AccordionSection.d.ts +5 -5
- package/dist/Accordion/AccordionSection.js +6 -9
- package/dist/Accordion/AccordionSection.test.js +18 -5
- package/dist/ActionGroup/ActionGroup.js +1 -5
- package/dist/Alert/Alert.d.ts +16 -4
- package/dist/Alert/Alert.js +3 -7
- package/dist/Alert/Alert.test.js +24 -13
- package/dist/Avatar/Avatar.js +1 -5
- package/dist/Avatar/Avatar.test.js +2 -1
- package/dist/Badge/Badge.d.ts +4 -4
- package/dist/Badge/Badge.js +1 -5
- package/dist/Blockquote/Blockquote.d.ts +5 -5
- package/dist/Blockquote/Blockquote.js +1 -5
- package/dist/Breadcrumb/Breadcrumb.js +0 -4
- package/dist/Breadcrumb/Breadcrumb.test.js +1 -1
- package/dist/Breadcrumb/BreadcrumbLink.js +0 -4
- package/dist/Breakout/Breakout.js +2 -6
- package/dist/Breakout/Breakout.test.js +1 -1
- package/dist/Breakout/BreakoutCell.d.ts +3 -3
- package/dist/Breakout/BreakoutCell.js +1 -5
- package/dist/Breakout/BreakoutCell.test.js +2 -2
- package/dist/Button/Button.d.ts +4 -4
- package/dist/Button/Button.js +1 -5
- package/dist/CallToActionLink/CallToActionLink.d.ts +12 -0
- package/dist/CallToActionLink/CallToActionLink.js +8 -0
- package/dist/CallToActionLink/CallToActionLink.test.d.ts +5 -0
- package/dist/CallToActionLink/CallToActionLink.test.js +33 -0
- package/dist/CallToActionLink/index.d.ts +6 -0
- package/dist/CallToActionLink/index.js +5 -0
- package/dist/Card/Card.d.ts +8 -8
- package/dist/Card/Card.js +1 -5
- package/dist/Card/CardHeading.d.ts +3 -3
- package/dist/Card/CardHeading.js +2 -6
- package/dist/Card/CardHeading.test.js +1 -1
- package/dist/Card/CardHeadingGroup.d.ts +5 -5
- package/dist/Card/CardHeadingGroup.js +1 -5
- package/dist/Card/CardImage.d.ts +2 -2
- package/dist/Card/CardImage.js +1 -5
- package/dist/Card/CardLink.js +1 -5
- package/dist/CharacterCount/CharacterCount.d.ts +4 -4
- package/dist/CharacterCount/CharacterCount.js +1 -5
- package/dist/Checkbox/Checkbox.d.ts +15 -9
- package/dist/Checkbox/Checkbox.js +4 -8
- package/dist/Checkbox/Checkbox.test.js +9 -0
- package/dist/Column/Column.d.ts +5 -5
- package/dist/Column/Column.js +1 -5
- package/dist/Column/Column.test.js +1 -1
- package/dist/DateInput/DateInput.d.ts +4 -4
- package/dist/DateInput/DateInput.js +1 -5
- package/dist/DescriptionList/DescriptionList.d.ts +5 -5
- package/dist/DescriptionList/DescriptionList.js +1 -5
- package/dist/DescriptionList/DescriptionListDescription.js +1 -5
- package/dist/DescriptionList/DescriptionListSection.js +1 -5
- package/dist/DescriptionList/DescriptionListTerm.js +1 -5
- package/dist/DescriptionList/index.d.ts +1 -1
- package/dist/Dialog/Dialog.d.ts +6 -6
- package/dist/Dialog/Dialog.js +2 -6
- package/dist/ErrorMessage/ErrorMessage.d.ts +11 -4
- package/dist/ErrorMessage/ErrorMessage.js +2 -6
- package/dist/Field/Field.d.ts +5 -5
- package/dist/Field/Field.js +1 -5
- package/dist/FieldSet/FieldSet.d.ts +7 -7
- package/dist/FieldSet/FieldSet.js +1 -5
- package/dist/Figure/Figure.d.ts +3 -3
- package/dist/Figure/Figure.js +1 -5
- package/dist/Figure/FigureCaption.d.ts +5 -5
- package/dist/Figure/FigureCaption.js +1 -5
- package/dist/FileInput/FileInput.js +1 -5
- package/dist/FileList/FileList.d.ts +3 -3
- package/dist/FileList/FileList.js +1 -5
- package/dist/FileList/FileListItem.d.ts +4 -4
- package/dist/FileList/FileListItem.js +2 -6
- package/dist/Grid/Grid.d.ts +2 -2
- package/dist/Grid/Grid.js +1 -5
- package/dist/Grid/Grid.test.js +1 -1
- package/dist/Grid/GridCell.d.ts +2 -2
- package/dist/Grid/GridCell.js +1 -5
- package/dist/Grid/GridCell.test.js +1 -1
- package/dist/Heading/Heading.d.ts +18 -7
- package/dist/Heading/Heading.js +1 -10
- package/dist/Heading/Heading.test.js +1 -3
- package/dist/Hint/Hint.d.ts +3 -3
- package/dist/Hint/Hint.js +1 -5
- package/dist/Icon/Icon.d.ts +15 -3
- package/dist/Icon/Icon.js +14 -13
- package/dist/Icon/Icon.test.js +5 -0
- package/dist/IconButton/IconButton.js +1 -5
- package/dist/Image/Image.d.ts +4 -4
- package/dist/Image/Image.js +2 -6
- package/dist/Image/Image.test.js +2 -2
- package/dist/Image/index.d.ts +1 -1
- package/dist/Image/index.js +1 -1
- package/dist/ImageSlider/ImageSlider.d.ts +3 -3
- package/dist/ImageSlider/ImageSlider.js +2 -6
- package/dist/ImageSlider/ImageSliderControls.js +2 -6
- package/dist/ImageSlider/ImageSliderItem.d.ts +5 -5
- package/dist/ImageSlider/ImageSliderItem.js +1 -5
- package/dist/ImageSlider/ImageSliderScroller.js +1 -5
- package/dist/ImageSlider/ImageSliderThumbnails.d.ts +4 -4
- package/dist/ImageSlider/ImageSliderThumbnails.js +2 -6
- package/dist/InvalidFormAlert/InvalidFormAlert.d.ts +4 -4
- package/dist/InvalidFormAlert/InvalidFormAlert.js +0 -4
- package/dist/InvalidFormAlert/InvalidFormAlertWithErrors.js +5 -6
- package/dist/Label/Label.d.ts +10 -5
- package/dist/Label/Label.js +1 -10
- package/dist/Link/Link.d.ts +4 -4
- package/dist/Link/Link.js +1 -5
- package/dist/LinkList/LinkList.d.ts +1 -1
- package/dist/LinkList/LinkList.js +1 -5
- package/dist/LinkList/LinkListLink.d.ts +13 -4
- package/dist/LinkList/LinkListLink.js +3 -7
- package/dist/LinkList/LinkListLink.test.js +1 -1
- package/dist/Logo/Logo.d.ts +2 -2
- package/dist/Logo/Logo.js +1 -5
- package/dist/Logo/brand/LogoAmsterdam.js +2 -5
- package/dist/Logo/brand/LogoGgdAmsterdam.js +2 -5
- package/dist/Logo/brand/LogoMuseumWeesp.js +2 -5
- package/dist/Logo/brand/LogoStadsarchief.js +2 -5
- package/dist/Logo/brand/LogoStadsbankVanLening.js +2 -5
- package/dist/Logo/brand/LogoVgaVerzekeringen.js +2 -5
- package/dist/Logo/index.d.ts +1 -1
- package/dist/Mark/Mark.js +1 -5
- package/dist/Menu/Menu.d.ts +28 -0
- package/dist/Menu/Menu.js +10 -0
- package/dist/Menu/Menu.test.d.ts +5 -0
- package/dist/Menu/Menu.test.js +38 -0
- package/dist/Menu/MenuLink.d.ts +20 -0
- package/dist/Menu/MenuLink.js +8 -0
- package/dist/Menu/MenuLink.test.d.ts +5 -0
- package/dist/Menu/MenuLink.test.js +56 -0
- package/dist/Menu/index.d.ts +7 -0
- package/dist/Menu/index.js +5 -0
- package/dist/OrderedList/OrderedList.d.ts +5 -5
- package/dist/OrderedList/OrderedList.js +1 -5
- package/dist/OrderedList/OrderedList.test.js +1 -1
- package/dist/OrderedList/OrderedListItem.js +1 -5
- package/dist/Overlap/Overlap.js +1 -5
- package/dist/Page/Page.js +1 -5
- package/dist/PageFooter/PageFooter.js +1 -5
- package/dist/PageFooter/PageFooterMenu.js +1 -5
- package/dist/PageFooter/PageFooterMenuLink.js +1 -5
- package/dist/PageFooter/PageFooterSpotlight.js +1 -5
- package/dist/PageHeader/PageHeader.d.ts +7 -7
- package/dist/PageHeader/PageHeader.js +3 -7
- package/dist/PageHeader/PageHeader.test.js +1 -1
- package/dist/PageHeader/PageHeaderGridCellNarrowWindowOnly.js +1 -1
- package/dist/PageHeader/PageHeaderMenuLink.d.ts +5 -5
- package/dist/PageHeader/PageHeaderMenuLink.js +1 -1
- package/dist/PageHeading/PageHeading.d.ts +6 -5
- package/dist/PageHeading/PageHeading.js +2 -5
- package/dist/Pagination/Pagination.d.ts +52 -10
- package/dist/Pagination/Pagination.js +5 -9
- package/dist/Pagination/Pagination.test.js +23 -10
- package/dist/Pagination/getRange.js +4 -2
- package/dist/Paragraph/Paragraph.d.ts +10 -5
- package/dist/Paragraph/Paragraph.js +1 -10
- package/dist/PasswordInput/PasswordInput.d.ts +4 -4
- package/dist/PasswordInput/PasswordInput.js +1 -5
- package/dist/PasswordInput/PasswordInput.test.js +1 -1
- package/dist/Radio/Radio.d.ts +15 -9
- package/dist/Radio/Radio.js +4 -8
- package/dist/Radio/Radio.test.js +9 -0
- package/dist/Row/Row.d.ts +5 -5
- package/dist/Row/Row.js +1 -5
- package/dist/Row/Row.test.js +1 -1
- package/dist/SearchField/SearchField.d.ts +3 -5
- package/dist/SearchField/SearchField.js +1 -5
- package/dist/SearchField/SearchFieldButton.js +0 -4
- package/dist/SearchField/SearchFieldInput.d.ts +2 -2
- package/dist/SearchField/SearchFieldInput.js +1 -5
- package/dist/Select/Select.d.ts +5 -5
- package/dist/Select/Select.js +1 -5
- package/dist/Select/SelectOption.js +1 -5
- package/dist/Select/SelectOptionGroup.js +1 -5
- package/dist/SkipLink/SkipLink.js +1 -5
- package/dist/Spotlight/Spotlight.d.ts +5 -5
- package/dist/Spotlight/Spotlight.js +1 -1
- package/dist/Spotlight/Spotlight.test.js +1 -1
- package/dist/StandaloneLink/StandaloneLink.d.ts +15 -8
- package/dist/StandaloneLink/StandaloneLink.js +4 -6
- package/dist/StandaloneLink/StandaloneLink.test.js +6 -4
- package/dist/Switch/Switch.js +1 -5
- package/dist/Table/Table.js +1 -5
- package/dist/Table/TableBody.js +1 -5
- package/dist/Table/TableCaption.d.ts +5 -0
- package/dist/Table/TableCaption.js +1 -10
- package/dist/Table/TableCell.js +1 -5
- package/dist/Table/TableFooter.js +1 -5
- package/dist/Table/TableHeader.js +1 -5
- package/dist/Table/TableHeaderCell.js +1 -5
- package/dist/Table/TableRow.js +1 -5
- package/dist/TableOfContents/TableOfContents.d.ts +9 -9
- package/dist/TableOfContents/TableOfContents.js +4 -7
- package/dist/TableOfContents/TableOfContentsLink.d.ts +4 -4
- package/dist/TableOfContents/TableOfContentsLink.js +0 -4
- package/dist/TableOfContents/TableOfContentsList.js +1 -5
- package/dist/TableOfContents/TableOfContentsList.test.js +1 -1
- package/dist/Tabs/Tabs.d.ts +11 -11
- package/dist/Tabs/Tabs.js +1 -5
- package/dist/Tabs/TabsButton.d.ts +5 -5
- package/dist/Tabs/TabsButton.js +1 -5
- package/dist/Tabs/TabsList.js +1 -5
- package/dist/Tabs/TabsPanel.d.ts +5 -5
- package/dist/Tabs/TabsPanel.js +1 -5
- package/dist/Tabs/index.d.ts +2 -2
- package/dist/TextArea/TextArea.d.ts +4 -4
- package/dist/TextArea/TextArea.js +1 -5
- package/dist/TextInput/TextInput.d.ts +4 -4
- package/dist/TextInput/TextInput.js +1 -5
- package/dist/TimeInput/TimeInput.d.ts +4 -4
- package/dist/TimeInput/TimeInput.js +1 -5
- package/dist/UnorderedList/UnorderedList.d.ts +5 -5
- package/dist/UnorderedList/UnorderedList.js +1 -5
- package/dist/UnorderedList/UnorderedList.test.js +1 -1
- package/dist/UnorderedList/UnorderedListItem.js +1 -5
- package/dist/common/formatFileType.d.ts +1 -1
- package/dist/common/formatFileType.js +10 -10
- package/dist/common/useKeyboardFocus.js +6 -6
- package/dist/common/useKeyboardFocus.test.js +2 -6
- package/dist/index.cjs.js +731 -619
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +394 -267
- package/dist/index.esm.js +633 -523
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +21 -21
package/dist/index.d.ts
CHANGED
|
@@ -1,34 +1,40 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
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
3
|
|
|
4
|
-
type HeadingProps = {
|
|
4
|
+
type HeadingProps = PropsWithChildren<HTMLAttributes<HTMLHeadingElement>> & {
|
|
5
5
|
/** Changes the text colour for readability on a dark background. */
|
|
6
6
|
color?: 'inverse';
|
|
7
7
|
/** The hierarchical level within the document. */
|
|
8
8
|
level: 1 | 2 | 3 | 4;
|
|
9
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* Uses larger or smaller text without changing its position in the heading hierarchy.
|
|
11
|
+
* The value ‘level-6’ is deprecated. Use level 5 instead.
|
|
12
|
+
*/
|
|
10
13
|
size?: 'level-1' | 'level-2' | 'level-3' | 'level-4' | 'level-5' | 'level-6';
|
|
11
|
-
}
|
|
14
|
+
};
|
|
12
15
|
/**
|
|
13
16
|
* @see {@link https://designsystem.amsterdam/?path=/docs/components-text-heading--docs Heading docs at Amsterdam Design System}
|
|
14
17
|
*/
|
|
15
|
-
declare const Heading: react.ForwardRefExoticComponent<{
|
|
18
|
+
declare const Heading: react.ForwardRefExoticComponent<HTMLAttributes<HTMLHeadingElement> & {
|
|
19
|
+
children?: react.ReactNode | undefined;
|
|
20
|
+
} & {
|
|
16
21
|
/** Changes the text colour for readability on a dark background. */
|
|
17
22
|
color?: "inverse";
|
|
18
23
|
/** The hierarchical level within the document. */
|
|
19
24
|
level: 1 | 2 | 3 | 4;
|
|
20
|
-
/**
|
|
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
|
+
*/
|
|
21
29
|
size?: "level-1" | "level-2" | "level-3" | "level-4" | "level-5" | "level-6";
|
|
22
|
-
} & HTMLAttributes<HTMLHeadingElement> & {
|
|
23
|
-
children?: react.ReactNode | undefined;
|
|
24
30
|
} & react.RefAttributes<HTMLHeadingElement>>;
|
|
25
31
|
|
|
26
32
|
type AccordionProps = {
|
|
27
33
|
/**
|
|
28
34
|
* The hierarchical level of this Accordion’s Section Headings within the document.
|
|
29
35
|
* There is no default value; determine the correct level for each instance.
|
|
30
|
-
*
|
|
31
|
-
|
|
36
|
+
* The value ‘1’ is deprecated.
|
|
37
|
+
*/
|
|
32
38
|
headingLevel: HeadingProps['level'];
|
|
33
39
|
/** The HTML element to use for each Accordion Section. */
|
|
34
40
|
sectionAs?: 'div' | 'section';
|
|
@@ -40,28 +46,28 @@ declare const Accordion: react.ForwardRefExoticComponent<{
|
|
|
40
46
|
/**
|
|
41
47
|
* The hierarchical level of this Accordion’s Section Headings within the document.
|
|
42
48
|
* There is no default value; determine the correct level for each instance.
|
|
43
|
-
*
|
|
44
|
-
|
|
49
|
+
* The value ‘1’ is deprecated.
|
|
50
|
+
*/
|
|
45
51
|
headingLevel: HeadingProps["level"];
|
|
46
52
|
/** The HTML element to use for each Accordion Section. */
|
|
47
53
|
sectionAs?: "div" | "section";
|
|
48
54
|
} & HTMLAttributes<HTMLDivElement> & {
|
|
49
55
|
children?: react.ReactNode | undefined;
|
|
50
56
|
} & react.RefAttributes<HTMLDivElement>> & {
|
|
51
|
-
Section: react.ForwardRefExoticComponent<{
|
|
57
|
+
Section: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
58
|
+
children?: react.ReactNode | undefined;
|
|
59
|
+
} & {
|
|
52
60
|
expanded?: boolean;
|
|
53
61
|
label: string;
|
|
54
|
-
} & HTMLAttributes<HTMLElement> & {
|
|
55
|
-
children?: react.ReactNode | undefined;
|
|
56
62
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
57
63
|
};
|
|
58
64
|
|
|
59
|
-
type AccordionSectionProps = {
|
|
65
|
+
type AccordionSectionProps = PropsWithChildren<HTMLAttributes<HTMLElement>> & {
|
|
60
66
|
/** Whether the content is displayed initially. */
|
|
61
67
|
expanded?: boolean;
|
|
62
68
|
/** The heading text. */
|
|
63
69
|
label: string;
|
|
64
|
-
}
|
|
70
|
+
};
|
|
65
71
|
|
|
66
72
|
type ActionGroupProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
67
73
|
/**
|
|
@@ -79,11 +85,17 @@ type AlertProps = {
|
|
|
79
85
|
closeButtonLabel?: string;
|
|
80
86
|
/** The text for the Heading. */
|
|
81
87
|
heading: string;
|
|
88
|
+
/**
|
|
89
|
+
* The id of the Heading element, which is used to label the Alert.
|
|
90
|
+
* Can be set to `null` to explicitly remove the label.
|
|
91
|
+
* Note: must be unique for the page.
|
|
92
|
+
*/
|
|
93
|
+
headingId?: string | null;
|
|
82
94
|
/**
|
|
83
95
|
* The hierarchical level of the Alert’s Heading within the document.
|
|
84
96
|
* There is no default value; determine the correct level for each instance.
|
|
85
|
-
*
|
|
86
|
-
|
|
97
|
+
* The size of the heading is fixed at level 3.
|
|
98
|
+
*/
|
|
87
99
|
headingLevel: HeadingProps['level'];
|
|
88
100
|
/** A function to run when dismissing. */
|
|
89
101
|
onClose?: () => void;
|
|
@@ -100,11 +112,17 @@ declare const Alert: react.ForwardRefExoticComponent<{
|
|
|
100
112
|
closeButtonLabel?: string;
|
|
101
113
|
/** The text for the Heading. */
|
|
102
114
|
heading: string;
|
|
115
|
+
/**
|
|
116
|
+
* The id of the Heading element, which is used to label the Alert.
|
|
117
|
+
* Can be set to `null` to explicitly remove the label.
|
|
118
|
+
* Note: must be unique for the page.
|
|
119
|
+
*/
|
|
120
|
+
headingId?: string | null;
|
|
103
121
|
/**
|
|
104
122
|
* The hierarchical level of the Alert’s Heading within the document.
|
|
105
123
|
* There is no default value; determine the correct level for each instance.
|
|
106
|
-
*
|
|
107
|
-
|
|
124
|
+
* The size of the heading is fixed at level 3.
|
|
125
|
+
*/
|
|
108
126
|
headingLevel: HeadingProps["level"];
|
|
109
127
|
/** A function to run when dismissing. */
|
|
110
128
|
onClose?: () => void;
|
|
@@ -138,34 +156,34 @@ declare const Avatar: react.ForwardRefExoticComponent<{
|
|
|
138
156
|
|
|
139
157
|
declare const badgeColors: readonly ["azure", "lime", "magenta", "orange", "purple", "red", "yellow"];
|
|
140
158
|
type BadgeColor = (typeof badgeColors)[number];
|
|
141
|
-
type BadgeProps = {
|
|
159
|
+
type BadgeProps = HTMLAttributes<HTMLElement> & {
|
|
142
160
|
/** The background colour. */
|
|
143
161
|
color?: BadgeColor;
|
|
144
162
|
/** The text content. */
|
|
145
163
|
label: string | number;
|
|
146
|
-
}
|
|
164
|
+
};
|
|
147
165
|
/**
|
|
148
166
|
* @see {@link https://designsystem.amsterdam/?path=/docs/components-feedback-badge--docs Badge docs at Amsterdam Design System}
|
|
149
167
|
*/
|
|
150
|
-
declare const Badge: react.ForwardRefExoticComponent<{
|
|
168
|
+
declare const Badge: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
151
169
|
/** The background colour. */
|
|
152
170
|
color?: BadgeColor;
|
|
153
171
|
/** The text content. */
|
|
154
172
|
label: string | number;
|
|
155
|
-
} &
|
|
173
|
+
} & react.RefAttributes<HTMLElement>>;
|
|
156
174
|
|
|
157
|
-
type BlockquoteProps = {
|
|
175
|
+
type BlockquoteProps = PropsWithChildren<BlockquoteHTMLAttributes<HTMLQuoteElement>> & {
|
|
158
176
|
/** Changes the text colour for readability on a dark background. */
|
|
159
177
|
color?: 'inverse';
|
|
160
|
-
}
|
|
178
|
+
};
|
|
161
179
|
/**
|
|
162
180
|
* @see {@link https://designsystem.amsterdam/?path=/docs/components-text-blockquote--docs Blockquote docs at Amsterdam Design System}
|
|
163
181
|
*/
|
|
164
|
-
declare const Blockquote: react.ForwardRefExoticComponent<{
|
|
182
|
+
declare const Blockquote: react.ForwardRefExoticComponent<BlockquoteHTMLAttributes<HTMLQuoteElement> & {
|
|
183
|
+
children?: react.ReactNode | undefined;
|
|
184
|
+
} & {
|
|
165
185
|
/** Changes the text colour for readability on a dark background. */
|
|
166
186
|
color?: "inverse";
|
|
167
|
-
} & BlockquoteHTMLAttributes<HTMLQuoteElement> & {
|
|
168
|
-
children?: react.ReactNode | undefined;
|
|
169
187
|
} & react.RefAttributes<HTMLQuoteElement>>;
|
|
170
188
|
|
|
171
189
|
type BreadcrumbLinkProps = AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
@@ -193,10 +211,10 @@ type GridCellSpanAndStartProps = {
|
|
|
193
211
|
/** The index of the grid column the cell starts at. */
|
|
194
212
|
start?: GridColumnNumber | GridColumnNumbers;
|
|
195
213
|
};
|
|
196
|
-
type GridCellProps = {
|
|
214
|
+
type GridCellProps = (GridCellSpanAllProp | GridCellSpanAndStartProps) & PropsWithChildren<HTMLAttributes<HTMLElement>> & {
|
|
197
215
|
/** The HTML tag to use. */
|
|
198
216
|
as?: GridCellTag;
|
|
199
|
-
}
|
|
217
|
+
};
|
|
200
218
|
|
|
201
219
|
type GridColumnNumber = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
202
220
|
type GridColumnNumbers = {
|
|
@@ -223,12 +241,12 @@ type GridPaddingTopAndBottomProps = {
|
|
|
223
241
|
paddingTop?: GridPadding;
|
|
224
242
|
paddingVertical?: never;
|
|
225
243
|
};
|
|
226
|
-
type GridProps = {
|
|
244
|
+
type GridProps = (GridPaddingVerticalProp | GridPaddingTopAndBottomProps) & PropsWithChildren<HTMLAttributes<HTMLDivElement>> & {
|
|
227
245
|
/** The HTML tag to use. */
|
|
228
246
|
as?: GridTag;
|
|
229
247
|
/** The amount of space between rows. */
|
|
230
248
|
gapVertical?: GridGap;
|
|
231
|
-
}
|
|
249
|
+
};
|
|
232
250
|
/**
|
|
233
251
|
* @see {@link https://designsystem.amsterdam/?path=/docs/components-layout-grid--docs Grid docs at Amsterdam Design System}
|
|
234
252
|
*/
|
|
@@ -260,10 +278,10 @@ type BreakoutCellRowSpanAndStartProps = {
|
|
|
260
278
|
/** The index of the grid row the cell starts at. */
|
|
261
279
|
rowStart?: BreakoutRowNumber | BreakoutRowNumbers;
|
|
262
280
|
};
|
|
263
|
-
type BreakoutCellProps = {
|
|
281
|
+
type BreakoutCellProps = BreakoutCellRowSpanAndStartProps & (BreakoutCellSpanAllProp | BreakoutCellSpanAndStartProps) & PropsWithChildren<HTMLAttributes<HTMLElement>> & {
|
|
264
282
|
/** The HTML element to use. */
|
|
265
283
|
as?: BreakoutCellTag;
|
|
266
|
-
}
|
|
284
|
+
};
|
|
267
285
|
|
|
268
286
|
type BreakoutRowNumber = 1 | 2 | 3 | 4;
|
|
269
287
|
type BreakoutRowNumbers = {
|
|
@@ -279,12 +297,15 @@ declare const Breakout: react.ForwardRefExoticComponent<GridProps & react.RefAtt
|
|
|
279
297
|
Cell: react.ForwardRefExoticComponent<BreakoutCellProps & react.RefAttributes<any>>;
|
|
280
298
|
};
|
|
281
299
|
|
|
282
|
-
declare const iconSizes: readonly ["small", "large", "heading-3", "heading-4", "heading-5", "heading-6"];
|
|
300
|
+
declare const iconSizes: readonly ["small", "large", "heading-0", "heading-1", "heading-2", "heading-3", "heading-4", "heading-5", "heading-6"];
|
|
283
301
|
type IconSize = (typeof iconSizes)[number];
|
|
284
302
|
type IconProps = {
|
|
285
303
|
/** Changes the icon colour for readability on a dark background. */
|
|
286
304
|
color?: 'inverse';
|
|
287
|
-
/**
|
|
305
|
+
/**
|
|
306
|
+
* The size of the icon. Choose the size of the corresponding body text or heading.
|
|
307
|
+
* The values ‘heading-0’ and ‘heading-6’ are deprecated.
|
|
308
|
+
*/
|
|
288
309
|
size?: IconSize;
|
|
289
310
|
/** Whether the icon container should be made square. */
|
|
290
311
|
square?: boolean;
|
|
@@ -298,7 +319,10 @@ type IconProps = {
|
|
|
298
319
|
declare const Icon: react.ForwardRefExoticComponent<{
|
|
299
320
|
/** Changes the icon colour for readability on a dark background. */
|
|
300
321
|
color?: "inverse";
|
|
301
|
-
/**
|
|
322
|
+
/**
|
|
323
|
+
* The size of the icon. Choose the size of the corresponding body text or heading.
|
|
324
|
+
* The values ‘heading-0’ and ‘heading-6’ are deprecated.
|
|
325
|
+
*/
|
|
302
326
|
size?: IconSize;
|
|
303
327
|
/** Whether the icon container should be made square. */
|
|
304
328
|
square?: boolean;
|
|
@@ -316,24 +340,32 @@ type IconOnlyProp = {
|
|
|
316
340
|
/** Shows the icon without the label. Requires a value for `icon`. Cannot be used together with `iconBefore`. */
|
|
317
341
|
iconOnly?: boolean;
|
|
318
342
|
};
|
|
319
|
-
type IconButtonProps$1 = {
|
|
343
|
+
type IconButtonProps$1 = (IconBeforeProp | IconOnlyProp) & {
|
|
320
344
|
/** Adds an icon to the button, showing it after the label. */
|
|
321
345
|
icon: IconProps['svg'];
|
|
322
|
-
}
|
|
346
|
+
};
|
|
323
347
|
type TextButtonProps = {
|
|
324
348
|
icon?: never;
|
|
325
349
|
iconBefore?: never;
|
|
326
350
|
iconOnly?: never;
|
|
327
351
|
};
|
|
328
|
-
type ButtonProps = {
|
|
352
|
+
type ButtonProps = (IconButtonProps$1 | TextButtonProps) & PropsWithChildren<ButtonHTMLAttributes<HTMLButtonElement>> & {
|
|
329
353
|
/** The level of prominence. Use a primary button only once per page or section. */
|
|
330
354
|
variant?: 'primary' | 'secondary' | 'tertiary';
|
|
331
|
-
}
|
|
355
|
+
};
|
|
332
356
|
/**
|
|
333
357
|
* @see {@link https://designsystem.amsterdam/?path=/docs/components-buttons-button--docs Button docs at Amsterdam Design System}
|
|
334
358
|
*/
|
|
335
359
|
declare const Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
|
336
360
|
|
|
361
|
+
type CallToActionLinkProps = PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
362
|
+
/**
|
|
363
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-navigation-call-to-action-link--docs CallToActionLink docs at Amsterdam Design System}
|
|
364
|
+
*/
|
|
365
|
+
declare const CallToActionLink: react.ForwardRefExoticComponent<AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
366
|
+
children?: react.ReactNode | undefined;
|
|
367
|
+
} & react.RefAttributes<HTMLAnchorElement>>;
|
|
368
|
+
|
|
337
369
|
/**
|
|
338
370
|
* @license EUPL-1.2+
|
|
339
371
|
* Copyright Gemeente Amsterdam
|
|
@@ -357,76 +389,82 @@ type CardProps = PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
|
357
389
|
declare const Card: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
358
390
|
children?: react.ReactNode | undefined;
|
|
359
391
|
} & react.RefAttributes<HTMLElement>> & {
|
|
360
|
-
Heading: react.ForwardRefExoticComponent<{
|
|
392
|
+
Heading: react.ForwardRefExoticComponent<HTMLAttributes<HTMLHeadingElement> & {
|
|
393
|
+
children?: react.ReactNode | undefined;
|
|
394
|
+
} & {
|
|
361
395
|
color?: "inverse";
|
|
362
396
|
level: 1 | 2 | 3 | 4;
|
|
363
397
|
size?: "level-1" | "level-2" | "level-3" | "level-4" | "level-5" | "level-6";
|
|
364
|
-
} & HTMLAttributes<HTMLHeadingElement> & {
|
|
365
|
-
children?: react.ReactNode | undefined;
|
|
366
398
|
} & react.RefAttributes<HTMLHeadingElement>>;
|
|
367
|
-
HeadingGroup: react.ForwardRefExoticComponent<{
|
|
368
|
-
tagline: string;
|
|
369
|
-
} & HTMLAttributes<HTMLElement> & {
|
|
399
|
+
HeadingGroup: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
370
400
|
children?: react.ReactNode | undefined;
|
|
401
|
+
} & {
|
|
402
|
+
tagline: string;
|
|
371
403
|
} & react.RefAttributes<HTMLElement>>;
|
|
372
|
-
Image: react.ForwardRefExoticComponent<{
|
|
404
|
+
Image: react.ForwardRefExoticComponent<AspectRatioProps & Omit<react.ImgHTMLAttributes<HTMLImageElement>, "children"> & {
|
|
373
405
|
alt: string;
|
|
374
|
-
} &
|
|
406
|
+
} & react.RefAttributes<HTMLImageElement>>;
|
|
375
407
|
Link: react.ForwardRefExoticComponent<react.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
376
408
|
children?: react.ReactNode | undefined;
|
|
377
409
|
} & react.RefAttributes<HTMLAnchorElement>>;
|
|
378
410
|
};
|
|
379
411
|
|
|
380
|
-
type CardHeadingGroupProps = {
|
|
412
|
+
type CardHeadingGroupProps = PropsWithChildren<HTMLAttributes<HTMLElement>> & {
|
|
381
413
|
/** A short phrase of text, e.g. to categorise the card. Displayed above the card heading. */
|
|
382
414
|
tagline: string;
|
|
383
|
-
}
|
|
415
|
+
};
|
|
384
416
|
|
|
385
417
|
type CardLinkProps = PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
386
418
|
|
|
387
|
-
type CharacterCountProps =
|
|
419
|
+
type CharacterCountProps = {
|
|
388
420
|
/** The current length of the field’s value. */
|
|
389
421
|
length: number;
|
|
390
422
|
/** The maximum length of the field’s value. */
|
|
391
423
|
maxLength: number;
|
|
392
|
-
}
|
|
424
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
393
425
|
/**
|
|
394
426
|
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-character-count--docs Character Count docs at Amsterdam Design System}
|
|
395
427
|
*/
|
|
396
|
-
declare const CharacterCount: react.ForwardRefExoticComponent<
|
|
428
|
+
declare const CharacterCount: react.ForwardRefExoticComponent<{
|
|
397
429
|
/** The current length of the field’s value. */
|
|
398
430
|
length: number;
|
|
399
431
|
/** The maximum length of the field’s value. */
|
|
400
432
|
maxLength: number;
|
|
401
|
-
} & react.RefAttributes<HTMLDivElement>>;
|
|
433
|
+
} & HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement>>;
|
|
402
434
|
|
|
403
|
-
type CheckboxProps = {
|
|
404
|
-
/**
|
|
405
|
-
|
|
435
|
+
type CheckboxProps = PropsWithChildren<Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid' | 'type'>> & {
|
|
436
|
+
/**
|
|
437
|
+
* An icon to display instead of the default icon.
|
|
438
|
+
* @default CheckboxIcon
|
|
439
|
+
*/
|
|
440
|
+
icon?: Function | ReactNode;
|
|
406
441
|
/** Allows being neither checked nor unchecked. */
|
|
407
442
|
indeterminate?: boolean;
|
|
408
443
|
/** Whether the value fails a validation rule. */
|
|
409
444
|
invalid?: boolean;
|
|
410
|
-
}
|
|
445
|
+
};
|
|
411
446
|
/**
|
|
412
447
|
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-checkbox--docs Checkbox docs at Amsterdam Design System}
|
|
413
448
|
*/
|
|
414
|
-
declare const Checkbox: react.ForwardRefExoticComponent<{
|
|
415
|
-
|
|
416
|
-
|
|
449
|
+
declare const Checkbox: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid" | "type"> & {
|
|
450
|
+
children?: ReactNode | undefined;
|
|
451
|
+
} & {
|
|
452
|
+
/**
|
|
453
|
+
* An icon to display instead of the default icon.
|
|
454
|
+
* @default CheckboxIcon
|
|
455
|
+
*/
|
|
456
|
+
icon?: Function | ReactNode;
|
|
417
457
|
/** Allows being neither checked nor unchecked. */
|
|
418
458
|
indeterminate?: boolean;
|
|
419
459
|
/** Whether the value fails a validation rule. */
|
|
420
460
|
invalid?: boolean;
|
|
421
|
-
} & Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid" | "type"> & {
|
|
422
|
-
children?: ReactNode | undefined;
|
|
423
461
|
} & react.RefAttributes<HTMLInputElement>>;
|
|
424
462
|
|
|
425
463
|
declare const columnTags: readonly ["article", "div", "section"];
|
|
426
464
|
type ColumnTag = (typeof columnTags)[number];
|
|
427
465
|
declare const columnGapSizes: readonly ["none", "x-small", "small", "large", "x-large"];
|
|
428
466
|
type ColumnGap = (typeof columnGapSizes)[number];
|
|
429
|
-
type ColumnProps = {
|
|
467
|
+
type ColumnProps = PropsWithChildren<HTMLAttributes<HTMLElement>> & {
|
|
430
468
|
/**
|
|
431
469
|
* The vertical alignment of the items in the column.
|
|
432
470
|
* @default start
|
|
@@ -447,11 +485,13 @@ type ColumnProps = {
|
|
|
447
485
|
* @default medium
|
|
448
486
|
*/
|
|
449
487
|
gap?: ColumnGap;
|
|
450
|
-
}
|
|
488
|
+
};
|
|
451
489
|
/**
|
|
452
490
|
* @see {@link https://designsystem.amsterdam/?path=/docs/components-layout-column--docs Column docs at Amsterdam Design System}
|
|
453
491
|
*/
|
|
454
|
-
declare const Column: react.ForwardRefExoticComponent<{
|
|
492
|
+
declare const Column: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
493
|
+
children?: react.ReactNode | undefined;
|
|
494
|
+
} & {
|
|
455
495
|
/**
|
|
456
496
|
* The vertical alignment of the items in the column.
|
|
457
497
|
* @default start
|
|
@@ -472,44 +512,42 @@ declare const Column: react.ForwardRefExoticComponent<{
|
|
|
472
512
|
* @default medium
|
|
473
513
|
*/
|
|
474
514
|
gap?: ColumnGap;
|
|
475
|
-
} & HTMLAttributes<HTMLElement> & {
|
|
476
|
-
children?: react.ReactNode | undefined;
|
|
477
515
|
} & react.RefAttributes<unknown>>;
|
|
478
516
|
|
|
479
517
|
declare const dateInputTypes: readonly ["date", "datetime-local"];
|
|
480
518
|
type DateInputType = (typeof dateInputTypes)[number];
|
|
481
|
-
type DateInputProps = {
|
|
519
|
+
type DateInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid' | 'type'> & {
|
|
482
520
|
/** Whether the value fails a validation rule. */
|
|
483
521
|
invalid?: boolean;
|
|
484
522
|
/** The kind of data that the user should provide. */
|
|
485
523
|
type?: DateInputType;
|
|
486
|
-
}
|
|
524
|
+
};
|
|
487
525
|
/**
|
|
488
526
|
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-date-input--docs Date Input docs at Amsterdam Design System}
|
|
489
527
|
*/
|
|
490
|
-
declare const DateInput: react.ForwardRefExoticComponent<{
|
|
528
|
+
declare const DateInput: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid" | "type"> & {
|
|
491
529
|
/** Whether the value fails a validation rule. */
|
|
492
530
|
invalid?: boolean;
|
|
493
531
|
/** The kind of data that the user should provide. */
|
|
494
532
|
type?: DateInputType;
|
|
495
|
-
} &
|
|
533
|
+
} & react.RefAttributes<HTMLInputElement>>;
|
|
496
534
|
|
|
497
535
|
declare const descriptionListTermsWidths: readonly ["narrow", "medium", "wide"];
|
|
498
536
|
type DescriptionListTermsWidth = (typeof descriptionListTermsWidths)[number];
|
|
499
|
-
type DescriptionListProps = {
|
|
537
|
+
type DescriptionListProps = PropsWithChildren<HTMLAttributes<HTMLDListElement>> & {
|
|
500
538
|
/** Changes the text colour for readability on a dark background. */
|
|
501
539
|
color?: 'inverse';
|
|
502
540
|
termsWidth?: DescriptionListTermsWidth;
|
|
503
|
-
}
|
|
541
|
+
};
|
|
504
542
|
/**
|
|
505
543
|
* @see {@link https://designsystem.amsterdam/?path=/docs/components-text-description-list--docs Description List docs at Amsterdam Design System}
|
|
506
544
|
*/
|
|
507
|
-
declare const DescriptionList: react.ForwardRefExoticComponent<{
|
|
545
|
+
declare const DescriptionList: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDListElement> & {
|
|
546
|
+
children?: react.ReactNode | undefined;
|
|
547
|
+
} & {
|
|
508
548
|
/** Changes the text colour for readability on a dark background. */
|
|
509
549
|
color?: "inverse";
|
|
510
550
|
termsWidth?: DescriptionListTermsWidth;
|
|
511
|
-
} & HTMLAttributes<HTMLDListElement> & {
|
|
512
|
-
children?: react.ReactNode | undefined;
|
|
513
551
|
} & react.RefAttributes<HTMLDListElement>> & {
|
|
514
552
|
Description: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
515
553
|
children?: react.ReactNode | undefined;
|
|
@@ -522,38 +560,41 @@ declare const DescriptionList: react.ForwardRefExoticComponent<{
|
|
|
522
560
|
} & react.RefAttributes<HTMLElement>>;
|
|
523
561
|
};
|
|
524
562
|
|
|
525
|
-
type DescriptionListTermProps = PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
526
|
-
|
|
527
563
|
type DescriptionListDescriptionProps = PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
528
564
|
|
|
529
|
-
type
|
|
565
|
+
type DescriptionListTermProps = PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
566
|
+
|
|
567
|
+
type DialogProps = PropsWithChildren<DialogHTMLAttributes<HTMLDialogElement>> & {
|
|
530
568
|
/** The label for the button that dismisses the Dialog. */
|
|
531
569
|
closeButtonLabel?: string;
|
|
532
570
|
/** Content for the footer, often one Button or an Action Group containing more of them. */
|
|
533
571
|
footer?: ReactNode;
|
|
534
572
|
/** The text for the Heading. */
|
|
535
573
|
heading: string;
|
|
536
|
-
}
|
|
574
|
+
};
|
|
537
575
|
/**
|
|
538
576
|
* @see {@link https://designsystem.amsterdam/?path=/docs/components-containers-dialog--docs Dialog docs at Amsterdam Design System}
|
|
539
577
|
*/
|
|
540
|
-
declare const Dialog: react.ForwardRefExoticComponent<{
|
|
578
|
+
declare const Dialog: react.ForwardRefExoticComponent<DialogHTMLAttributes<HTMLDialogElement> & {
|
|
579
|
+
children?: ReactNode | undefined;
|
|
580
|
+
} & {
|
|
541
581
|
/** The label for the button that dismisses the Dialog. */
|
|
542
582
|
closeButtonLabel?: string;
|
|
543
583
|
/** Content for the footer, often one Button or an Action Group containing more of them. */
|
|
544
584
|
footer?: ReactNode;
|
|
545
585
|
/** The text for the Heading. */
|
|
546
586
|
heading: string;
|
|
547
|
-
} & DialogHTMLAttributes<HTMLDialogElement> & {
|
|
548
|
-
children?: ReactNode | undefined;
|
|
549
587
|
} & react.RefAttributes<HTMLDialogElement>> & {
|
|
550
588
|
close: (event: MouseEvent<HTMLButtonElement>) => void | undefined;
|
|
551
589
|
open: (id: string) => void;
|
|
552
590
|
};
|
|
553
591
|
|
|
554
592
|
type ErrorMessageProps = {
|
|
555
|
-
/**
|
|
556
|
-
|
|
593
|
+
/**
|
|
594
|
+
* An icon to display instead of the default icon.
|
|
595
|
+
* @default WarningIcon
|
|
596
|
+
*/
|
|
597
|
+
icon?: IconProps['svg'];
|
|
557
598
|
/** An accessible phrase that screen readers announce before the error message. Should translate to something like ‘input error’. */
|
|
558
599
|
prefix?: string;
|
|
559
600
|
} & PropsWithChildren<HTMLAttributes<HTMLParagraphElement>>;
|
|
@@ -561,26 +602,29 @@ type ErrorMessageProps = {
|
|
|
561
602
|
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-error-message--docs Error Message docs at Amsterdam Design System}
|
|
562
603
|
*/
|
|
563
604
|
declare const ErrorMessage: react.ForwardRefExoticComponent<{
|
|
564
|
-
/**
|
|
565
|
-
|
|
605
|
+
/**
|
|
606
|
+
* An icon to display instead of the default icon.
|
|
607
|
+
* @default WarningIcon
|
|
608
|
+
*/
|
|
609
|
+
icon?: IconProps["svg"];
|
|
566
610
|
/** An accessible phrase that screen readers announce before the error message. Should translate to something like ‘input error’. */
|
|
567
611
|
prefix?: string;
|
|
568
612
|
} & HTMLAttributes<HTMLParagraphElement> & {
|
|
569
613
|
children?: react.ReactNode | undefined;
|
|
570
614
|
} & react.RefAttributes<HTMLParagraphElement>>;
|
|
571
615
|
|
|
572
|
-
type FieldProps = {
|
|
616
|
+
type FieldProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>> & {
|
|
573
617
|
/** Whether the field has an input with a validation error */
|
|
574
618
|
invalid?: boolean;
|
|
575
|
-
}
|
|
619
|
+
};
|
|
576
620
|
/**
|
|
577
621
|
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-field--docs Field docs at Amsterdam Design System}
|
|
578
622
|
*/
|
|
579
|
-
declare const Field: react.ForwardRefExoticComponent<{
|
|
623
|
+
declare const Field: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
624
|
+
children?: react.ReactNode | undefined;
|
|
625
|
+
} & {
|
|
580
626
|
/** Whether the field has an input with a validation error */
|
|
581
627
|
invalid?: boolean;
|
|
582
|
-
} & HTMLAttributes<HTMLDivElement> & {
|
|
583
|
-
children?: react.ReactNode | undefined;
|
|
584
628
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
585
629
|
|
|
586
630
|
type HintAndOptionalProps = {
|
|
@@ -589,30 +633,30 @@ type HintAndOptionalProps = {
|
|
|
589
633
|
/** Appends the text '(niet verplicht)' to the label or legend if no hint is provided. Use when the associated inputs are optional. */
|
|
590
634
|
optional?: boolean;
|
|
591
635
|
};
|
|
592
|
-
type HintProps = PropsWithChildren<HTMLAttributes<HTMLElement
|
|
593
|
-
declare const Hint: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
636
|
+
type HintProps = HintAndOptionalProps & PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
637
|
+
declare const Hint: react.ForwardRefExoticComponent<HintAndOptionalProps & HTMLAttributes<HTMLElement> & {
|
|
594
638
|
children?: react.ReactNode | undefined;
|
|
595
|
-
} &
|
|
639
|
+
} & react.RefAttributes<HTMLElement>>;
|
|
596
640
|
|
|
597
|
-
type FieldSetProps = PropsWithChildren<HTMLAttributes<HTMLFieldSetElement>> & {
|
|
641
|
+
type FieldSetProps = HintProps & PropsWithChildren<HTMLAttributes<HTMLFieldSetElement>> & {
|
|
598
642
|
/** Whether the field set has an input with a validation error */
|
|
599
643
|
invalid?: boolean;
|
|
600
644
|
/** The text for the caption. */
|
|
601
645
|
legend: string;
|
|
602
|
-
}
|
|
646
|
+
};
|
|
603
647
|
/**
|
|
604
648
|
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-field-set--docs Field Set docs at Amsterdam Design System}
|
|
605
649
|
*/
|
|
606
|
-
declare const FieldSet: react.ForwardRefExoticComponent<
|
|
650
|
+
declare const FieldSet: react.ForwardRefExoticComponent<{
|
|
651
|
+
hint?: string;
|
|
652
|
+
optional?: boolean;
|
|
653
|
+
} & HTMLAttributes<HTMLElement> & {
|
|
607
654
|
children?: react.ReactNode | undefined;
|
|
608
|
-
} & {
|
|
655
|
+
} & HTMLAttributes<HTMLFieldSetElement> & {
|
|
609
656
|
/** Whether the field set has an input with a validation error */
|
|
610
657
|
invalid?: boolean;
|
|
611
658
|
/** The text for the caption. */
|
|
612
659
|
legend: string;
|
|
613
|
-
} & HTMLAttributes<HTMLElement> & {
|
|
614
|
-
hint?: string;
|
|
615
|
-
optional?: boolean;
|
|
616
660
|
} & react.RefAttributes<HTMLFieldSetElement>>;
|
|
617
661
|
|
|
618
662
|
type FigureProps = PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
@@ -622,10 +666,10 @@ type FigureProps = PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
|
622
666
|
declare const Figure: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
623
667
|
children?: react.ReactNode | undefined;
|
|
624
668
|
} & react.RefAttributes<HTMLElement>> & {
|
|
625
|
-
Caption: react.ForwardRefExoticComponent<{
|
|
626
|
-
color?: "inverse";
|
|
627
|
-
} & HTMLAttributes<HTMLElement> & {
|
|
669
|
+
Caption: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
628
670
|
children?: react.ReactNode | undefined;
|
|
671
|
+
} & {
|
|
672
|
+
color?: "inverse";
|
|
629
673
|
} & react.RefAttributes<HTMLElement>>;
|
|
630
674
|
};
|
|
631
675
|
|
|
@@ -635,17 +679,17 @@ type FileInputProps = InputHTMLAttributes<HTMLInputElement>;
|
|
|
635
679
|
*/
|
|
636
680
|
declare const FileInput: react.ForwardRefExoticComponent<FileInputProps & react.RefAttributes<HTMLInputElement>>;
|
|
637
681
|
|
|
638
|
-
type FileListProps =
|
|
682
|
+
type FileListProps = PropsWithChildren<HTMLAttributes<HTMLUListElement>>;
|
|
639
683
|
/**
|
|
640
684
|
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-file-list--docs File List docs at Amsterdam Design System}
|
|
641
685
|
*/
|
|
642
686
|
declare const FileList: react.ForwardRefExoticComponent<HTMLAttributes<HTMLUListElement> & {
|
|
643
687
|
children?: react.ReactNode | undefined;
|
|
644
688
|
} & react.RefAttributes<HTMLOListElement>> & {
|
|
645
|
-
Item: react.ForwardRefExoticComponent<{
|
|
689
|
+
Item: react.ForwardRefExoticComponent<HTMLAttributes<HTMLLIElement> & {
|
|
646
690
|
file: File;
|
|
647
691
|
onDelete?: () => void;
|
|
648
|
-
} &
|
|
692
|
+
} & react.RefAttributes<HTMLLIElement>>;
|
|
649
693
|
};
|
|
650
694
|
|
|
651
695
|
type IconButtonProps = {
|
|
@@ -672,23 +716,23 @@ declare const IconButton: react.ForwardRefExoticComponent<{
|
|
|
672
716
|
svg?: IconProps["svg"];
|
|
673
717
|
} & ButtonHTMLAttributes<HTMLButtonElement> & react.RefAttributes<HTMLButtonElement>>;
|
|
674
718
|
|
|
675
|
-
|
|
719
|
+
/**
|
|
720
|
+
* @license EUPL-1.2+
|
|
721
|
+
* Copyright Gemeente Amsterdam
|
|
722
|
+
*/
|
|
723
|
+
declare const generateAspectRatioClass: (aspectRatio?: string) => string | undefined;
|
|
724
|
+
|
|
725
|
+
type ImageProps = AspectRatioProps & Omit<ImgHTMLAttributes<HTMLImageElement>, 'children'> & {
|
|
676
726
|
/** A textual description of the content of the image. */
|
|
677
727
|
alt: string;
|
|
678
|
-
}
|
|
728
|
+
};
|
|
679
729
|
/**
|
|
680
730
|
* @see {@link https://designsystem.amsterdam/?path=/docs/components-media-image--docs Image docs at Amsterdam Design System}
|
|
681
731
|
*/
|
|
682
|
-
declare const Image: react.ForwardRefExoticComponent<{
|
|
732
|
+
declare const Image: react.ForwardRefExoticComponent<AspectRatioProps & Omit<ImgHTMLAttributes<HTMLImageElement>, "children"> & {
|
|
683
733
|
/** A textual description of the content of the image. */
|
|
684
734
|
alt: string;
|
|
685
|
-
} &
|
|
686
|
-
|
|
687
|
-
/**
|
|
688
|
-
* @license EUPL-1.2+
|
|
689
|
-
* Copyright Gemeente Amsterdam
|
|
690
|
-
*/
|
|
691
|
-
declare const generateAspectRatioClass: (aspectRatio?: string) => string | undefined;
|
|
735
|
+
} & react.RefAttributes<HTMLImageElement>>;
|
|
692
736
|
|
|
693
737
|
type ImageSliderImageProps = ImageProps;
|
|
694
738
|
type ImageSliderProps = {
|
|
@@ -718,17 +762,17 @@ declare const ImageSlider: react.ForwardRefExoticComponent<{
|
|
|
718
762
|
/** The label for the ‘previous’ button */
|
|
719
763
|
previousLabel?: string;
|
|
720
764
|
} & HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement>> & {
|
|
721
|
-
Item: react.ForwardRefExoticComponent<{
|
|
722
|
-
slideId: number;
|
|
723
|
-
} & HTMLAttributes<HTMLDivElement> & {
|
|
765
|
+
Item: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
724
766
|
children?: react.ReactNode | undefined;
|
|
767
|
+
} & {
|
|
768
|
+
slideId: number;
|
|
725
769
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
726
770
|
};
|
|
727
771
|
|
|
728
|
-
type ImageSliderItemProps = {
|
|
772
|
+
type ImageSliderItemProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>> & {
|
|
729
773
|
/** The identifier of the item. Must match the key or order of the slides (starting at 0). */
|
|
730
774
|
slideId: number;
|
|
731
|
-
}
|
|
775
|
+
};
|
|
732
776
|
|
|
733
777
|
type ErrorLink = {
|
|
734
778
|
id: string;
|
|
@@ -759,8 +803,8 @@ type InvalidFormAlertProps = {
|
|
|
759
803
|
/**
|
|
760
804
|
* The hierarchical level of the Invalid Form Alert’s Heading within the document.
|
|
761
805
|
* There is no default value; determine the correct level for each instance.
|
|
762
|
-
*
|
|
763
|
-
|
|
806
|
+
* The size of the heading is fixed at level 3.
|
|
807
|
+
*/
|
|
764
808
|
headingLevel: HeadingProps['level'];
|
|
765
809
|
} & HTMLAttributes<HTMLDivElement>;
|
|
766
810
|
/**
|
|
@@ -791,32 +835,32 @@ declare const InvalidFormAlert: react.ForwardRefExoticComponent<{
|
|
|
791
835
|
/**
|
|
792
836
|
* The hierarchical level of the Invalid Form Alert’s Heading within the document.
|
|
793
837
|
* There is no default value; determine the correct level for each instance.
|
|
794
|
-
*
|
|
795
|
-
|
|
838
|
+
* The size of the heading is fixed at level 3.
|
|
839
|
+
*/
|
|
796
840
|
headingLevel: HeadingProps["level"];
|
|
797
841
|
} & HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement>>;
|
|
798
842
|
|
|
799
843
|
/**
|
|
800
844
|
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-label--docs Label docs at Amsterdam Design System}
|
|
801
845
|
*/
|
|
802
|
-
declare const Label: react.ForwardRefExoticComponent<
|
|
803
|
-
children?: react.ReactNode | undefined;
|
|
804
|
-
} & react.HTMLAttributes<HTMLElement> & {
|
|
846
|
+
declare const Label: react.ForwardRefExoticComponent<{
|
|
805
847
|
hint?: string;
|
|
806
848
|
optional?: boolean;
|
|
807
|
-
} & react.
|
|
849
|
+
} & react.HTMLAttributes<HTMLElement> & {
|
|
850
|
+
children?: react.ReactNode | undefined;
|
|
851
|
+
} & LabelHTMLAttributes<HTMLLabelElement> & react.RefAttributes<HTMLLabelElement>>;
|
|
808
852
|
|
|
809
|
-
type LinkProps = {
|
|
853
|
+
type LinkProps = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'placeholder'> & {
|
|
810
854
|
/** Changes the text colour for readability on a light or dark background. */
|
|
811
855
|
color?: 'contrast' | 'inverse';
|
|
812
|
-
}
|
|
856
|
+
};
|
|
813
857
|
/**
|
|
814
858
|
* @see {@link https://designsystem.amsterdam/?path=/docs/components-navigation-link--docs Link docs at Amsterdam Design System}
|
|
815
859
|
*/
|
|
816
|
-
declare const Link: react.ForwardRefExoticComponent<{
|
|
860
|
+
declare const Link: react.ForwardRefExoticComponent<Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "placeholder"> & {
|
|
817
861
|
/** Changes the text colour for readability on a light or dark background. */
|
|
818
862
|
color?: "contrast" | "inverse";
|
|
819
|
-
} &
|
|
863
|
+
} & react.RefAttributes<HTMLAnchorElement>>;
|
|
820
864
|
|
|
821
865
|
type LinkListProps = PropsWithChildren<HTMLAttributes<HTMLUListElement>>;
|
|
822
866
|
/**
|
|
@@ -827,7 +871,7 @@ declare const LinkList: react.ForwardRefExoticComponent<HTMLAttributes<HTMLUList
|
|
|
827
871
|
} & react.RefAttributes<HTMLUListElement>> & {
|
|
828
872
|
Link: react.ForwardRefExoticComponent<{
|
|
829
873
|
color?: "contrast" | "inverse";
|
|
830
|
-
icon?:
|
|
874
|
+
icon?: IconProps["svg"];
|
|
831
875
|
size?: "small" | "large";
|
|
832
876
|
} & react.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
833
877
|
children?: react.ReactNode | undefined;
|
|
@@ -837,8 +881,12 @@ declare const LinkList: react.ForwardRefExoticComponent<HTMLAttributes<HTMLUList
|
|
|
837
881
|
type LinkListLinkProps = {
|
|
838
882
|
/** Changes the text colour for readability on a light or dark background. */
|
|
839
883
|
color?: 'contrast' | 'inverse';
|
|
840
|
-
/**
|
|
841
|
-
|
|
884
|
+
/**
|
|
885
|
+
* An icon to display instead of the default chevron.
|
|
886
|
+
* Don’t mix custom icons with chevrons in one list.
|
|
887
|
+
* @default ChevronForwardIcon
|
|
888
|
+
*/
|
|
889
|
+
icon?: IconProps['svg'];
|
|
842
890
|
/** The size of the text. Use the same size for all items in the list. */
|
|
843
891
|
size?: 'small' | 'large';
|
|
844
892
|
} & PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
@@ -849,10 +897,10 @@ type LinkListLinkProps = {
|
|
|
849
897
|
*/
|
|
850
898
|
|
|
851
899
|
type LogoBrand = 'amsterdam' | 'ggd-amsterdam' | 'museum-weesp' | 'stadsarchief' | 'stadsbank-van-lening' | 'vga-verzekeringen';
|
|
852
|
-
type LogoProps = {
|
|
900
|
+
type LogoProps = SVGProps<SVGSVGElement> & {
|
|
853
901
|
/** The name of the brand for which to display the logo. */
|
|
854
902
|
brand?: LogoBrand;
|
|
855
|
-
}
|
|
903
|
+
};
|
|
856
904
|
/**
|
|
857
905
|
* @see {@link https://designsystem.amsterdam/?path=/docs/components-media-logo--docs Logo docs at Amsterdam Design System}
|
|
858
906
|
*/
|
|
@@ -866,26 +914,52 @@ declare const Mark: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement>
|
|
|
866
914
|
children?: react.ReactNode | undefined;
|
|
867
915
|
} & react.RefAttributes<HTMLElement>>;
|
|
868
916
|
|
|
869
|
-
type
|
|
917
|
+
type MenuProps = PropsWithChildren<HTMLAttributes<HTMLElement>> & {
|
|
918
|
+
accessibleName?: string;
|
|
919
|
+
};
|
|
920
|
+
/**
|
|
921
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-navigation-menu--docs Menu docs at Amsterdam Design System}
|
|
922
|
+
*/
|
|
923
|
+
declare const Menu: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
924
|
+
children?: react.ReactNode | undefined;
|
|
925
|
+
} & {
|
|
926
|
+
accessibleName?: string;
|
|
927
|
+
} & react.RefAttributes<HTMLElement>> & {
|
|
928
|
+
Link: react.ForwardRefExoticComponent<{
|
|
929
|
+
color?: "contrast" | "inverse";
|
|
930
|
+
icon: IconProps["svg"];
|
|
931
|
+
} & react.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
932
|
+
children?: react.ReactNode | undefined;
|
|
933
|
+
} & react.RefAttributes<HTMLAnchorElement>>;
|
|
934
|
+
};
|
|
935
|
+
|
|
936
|
+
type MenuLinkProps = {
|
|
937
|
+
/** Changes the text colour for readability on a light or dark background. */
|
|
938
|
+
color?: 'contrast' | 'inverse';
|
|
939
|
+
/** An icon to display instead of the default chevron. Don’t mix custom icons with chevrons in one list. */
|
|
940
|
+
icon: IconProps['svg'];
|
|
941
|
+
} & PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
942
|
+
|
|
943
|
+
type OrderedListProps = PropsWithChildren<OlHTMLAttributes<HTMLOListElement>> & {
|
|
870
944
|
/** Changes the text colour for readability on a dark background. */
|
|
871
945
|
color?: 'inverse';
|
|
872
946
|
/** Whether the list items show a marker. */
|
|
873
947
|
markers?: boolean;
|
|
874
948
|
/** The size of the text. */
|
|
875
949
|
size?: 'small';
|
|
876
|
-
}
|
|
950
|
+
};
|
|
877
951
|
/**
|
|
878
952
|
* @see {@link https://designsystem.amsterdam/?path=/docs/components-text-ordered-list--docs Ordered List docs at Amsterdam Design System}
|
|
879
953
|
*/
|
|
880
|
-
declare const OrderedList: react.ForwardRefExoticComponent<{
|
|
954
|
+
declare const OrderedList: react.ForwardRefExoticComponent<OlHTMLAttributes<HTMLOListElement> & {
|
|
955
|
+
children?: react.ReactNode | undefined;
|
|
956
|
+
} & {
|
|
881
957
|
/** Changes the text colour for readability on a dark background. */
|
|
882
958
|
color?: "inverse";
|
|
883
959
|
/** Whether the list items show a marker. */
|
|
884
960
|
markers?: boolean;
|
|
885
961
|
/** The size of the text. */
|
|
886
962
|
size?: "small";
|
|
887
|
-
} & OlHTMLAttributes<HTMLOListElement> & {
|
|
888
|
-
children?: react.ReactNode | undefined;
|
|
889
963
|
} & react.RefAttributes<HTMLOListElement>> & {
|
|
890
964
|
Item: react.ForwardRefExoticComponent<react.LiHTMLAttributes<HTMLLIElement> & {
|
|
891
965
|
children?: react.ReactNode | undefined;
|
|
@@ -934,7 +1008,7 @@ type PageFooterMenuLinkProps = PropsWithChildren<AnchorHTMLAttributes<HTMLAnchor
|
|
|
934
1008
|
|
|
935
1009
|
type PageFooterSpotlightProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
936
1010
|
|
|
937
|
-
type PageHeaderProps = {
|
|
1011
|
+
type PageHeaderProps = HTMLAttributes<HTMLElement> & {
|
|
938
1012
|
/** The name of the application. */
|
|
939
1013
|
brandName?: string;
|
|
940
1014
|
/** The accessible name of the logo. */
|
|
@@ -955,11 +1029,11 @@ type PageHeaderProps = {
|
|
|
955
1029
|
navigationLabel?: string;
|
|
956
1030
|
/** Whether the menu button is visible on wide screens. */
|
|
957
1031
|
noMenuButtonOnWideWindow?: boolean;
|
|
958
|
-
}
|
|
1032
|
+
};
|
|
959
1033
|
/**
|
|
960
1034
|
* @see {@link https://designsystem.amsterdam/?path=/docs/components-containers-page-header--docs Page Header docs at Amsterdam Design System}
|
|
961
1035
|
*/
|
|
962
|
-
declare const PageHeader: react.ForwardRefExoticComponent<{
|
|
1036
|
+
declare const PageHeader: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
963
1037
|
/** The name of the application. */
|
|
964
1038
|
brandName?: string;
|
|
965
1039
|
/** The accessible name of the logo. */
|
|
@@ -980,144 +1054,193 @@ declare const PageHeader: react.ForwardRefExoticComponent<{
|
|
|
980
1054
|
navigationLabel?: string;
|
|
981
1055
|
/** Whether the menu button is visible on wide screens. */
|
|
982
1056
|
noMenuButtonOnWideWindow?: boolean;
|
|
983
|
-
} &
|
|
1057
|
+
} & react.RefAttributes<HTMLElement>> & {
|
|
984
1058
|
GridCellNarrowWindowOnly: react.ForwardRefExoticComponent<GridCellProps & react.RefAttributes<HTMLElement>>;
|
|
985
|
-
MenuLink: react.ForwardRefExoticComponent<{
|
|
986
|
-
fixed?: boolean;
|
|
987
|
-
} & AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
1059
|
+
MenuLink: react.ForwardRefExoticComponent<AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
988
1060
|
children?: ReactNode | undefined;
|
|
1061
|
+
} & {
|
|
1062
|
+
fixed?: boolean;
|
|
989
1063
|
} & react.RefAttributes<HTMLAnchorElement>>;
|
|
990
1064
|
};
|
|
991
1065
|
|
|
992
|
-
type PageHeaderMenuLinkProps = {
|
|
1066
|
+
type PageHeaderMenuLinkProps = PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>> & {
|
|
993
1067
|
fixed?: boolean;
|
|
994
|
-
}
|
|
1068
|
+
};
|
|
995
1069
|
|
|
996
|
-
type PageHeadingProps = {
|
|
1070
|
+
type PageHeadingProps = PropsWithChildren<HTMLAttributes<HTMLHeadingElement>> & {
|
|
997
1071
|
/** Changes the text colour for readability on a dark background. */
|
|
998
1072
|
color?: 'inverse';
|
|
999
|
-
}
|
|
1073
|
+
};
|
|
1000
1074
|
/**
|
|
1075
|
+
* @deprecated We no longer use this size of headings. Use `Heading` with level 1 instead.
|
|
1001
1076
|
* @see {@link https://designsystem.amsterdam/?path=/docs/components-text-page-heading--docs Page Heading docs at Amsterdam Design System}
|
|
1002
1077
|
*/
|
|
1003
|
-
declare const PageHeading: react.ForwardRefExoticComponent<{
|
|
1078
|
+
declare const PageHeading: react.ForwardRefExoticComponent<HTMLAttributes<HTMLHeadingElement> & {
|
|
1079
|
+
children?: react.ReactNode | undefined;
|
|
1080
|
+
} & {
|
|
1004
1081
|
/** Changes the text colour for readability on a dark background. */
|
|
1005
1082
|
color?: "inverse";
|
|
1006
|
-
} & HTMLAttributes<HTMLHeadingElement> & {
|
|
1007
|
-
children?: react.ReactNode | undefined;
|
|
1008
1083
|
} & react.RefAttributes<HTMLHeadingElement>>;
|
|
1009
1084
|
|
|
1010
|
-
type PaginationProps = {
|
|
1085
|
+
type PaginationProps = HTMLAttributes<HTMLElement> & {
|
|
1086
|
+
/** The accessible name for the Pagination component. */
|
|
1087
|
+
accessibleName?: string;
|
|
1088
|
+
/**
|
|
1089
|
+
* Connects the component with an internal element that defines its accessible name.
|
|
1090
|
+
* Note: must be unique for the page.
|
|
1091
|
+
*/
|
|
1092
|
+
accessibleNameId?: string;
|
|
1011
1093
|
/** The React component to use for the links. */
|
|
1012
1094
|
linkComponent?: ComponentType<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
1013
1095
|
/** The template used to construct the link hrefs. */
|
|
1014
1096
|
linkTemplate: (page: number) => string;
|
|
1015
1097
|
/** The maximum amount of pages shown. Minimum value: 5. */
|
|
1016
1098
|
maxVisiblePages?: number;
|
|
1099
|
+
/** The accessible name for the link to the next page. */
|
|
1100
|
+
nextAccessibleName?: string;
|
|
1017
1101
|
/** The visible label for the link to the next page. */
|
|
1018
1102
|
nextLabel?: string;
|
|
1019
|
-
/**
|
|
1103
|
+
/**
|
|
1104
|
+
* @deprecated Use `nextAccessibleName` instead.
|
|
1105
|
+
* The accessible name for the link to the next page.
|
|
1106
|
+
*/
|
|
1020
1107
|
nextVisuallyHiddenLabel?: string;
|
|
1021
1108
|
/** The current page number. */
|
|
1022
1109
|
page?: number;
|
|
1110
|
+
/** The accessible name for the link to the previous page. */
|
|
1111
|
+
previousAccessibleName?: string;
|
|
1023
1112
|
/** The visible label for the link to the previous page. */
|
|
1024
1113
|
previousLabel?: string;
|
|
1025
|
-
/**
|
|
1114
|
+
/**
|
|
1115
|
+
* @deprecated Use `previousAccessibleName` instead.
|
|
1116
|
+
* The accessible name for the link to the previous page.
|
|
1117
|
+
*/
|
|
1026
1118
|
previousVisuallyHiddenLabel?: string;
|
|
1027
1119
|
/** The total amount of pages. */
|
|
1028
1120
|
totalPages: number;
|
|
1029
|
-
/**
|
|
1121
|
+
/**
|
|
1122
|
+
* @deprecated Use `accessibleName` instead.
|
|
1123
|
+
* The accessible name for the Pagination component.
|
|
1124
|
+
*/
|
|
1030
1125
|
visuallyHiddenLabel?: string;
|
|
1031
1126
|
/**
|
|
1127
|
+
* @deprecated Use `accessibleNameId` instead.
|
|
1032
1128
|
* Connects the component with an internal element that defines its accessible name.
|
|
1033
1129
|
* Note: must be unique for the page.
|
|
1034
1130
|
*/
|
|
1035
1131
|
visuallyHiddenLabelId?: string;
|
|
1036
|
-
}
|
|
1132
|
+
};
|
|
1037
1133
|
/**
|
|
1038
1134
|
* @see {@link https://designsystem.amsterdam/?path=/docs/components-navigation-pagination--docs Pagination docs at Amsterdam Design System}
|
|
1039
1135
|
*/
|
|
1040
|
-
declare const Pagination: react.ForwardRefExoticComponent<{
|
|
1136
|
+
declare const Pagination: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
1137
|
+
/** The accessible name for the Pagination component. */
|
|
1138
|
+
accessibleName?: string;
|
|
1139
|
+
/**
|
|
1140
|
+
* Connects the component with an internal element that defines its accessible name.
|
|
1141
|
+
* Note: must be unique for the page.
|
|
1142
|
+
*/
|
|
1143
|
+
accessibleNameId?: string;
|
|
1041
1144
|
/** The React component to use for the links. */
|
|
1042
1145
|
linkComponent?: ComponentType<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
1043
1146
|
/** The template used to construct the link hrefs. */
|
|
1044
1147
|
linkTemplate: (page: number) => string;
|
|
1045
1148
|
/** The maximum amount of pages shown. Minimum value: 5. */
|
|
1046
1149
|
maxVisiblePages?: number;
|
|
1150
|
+
/** The accessible name for the link to the next page. */
|
|
1151
|
+
nextAccessibleName?: string;
|
|
1047
1152
|
/** The visible label for the link to the next page. */
|
|
1048
1153
|
nextLabel?: string;
|
|
1049
|
-
/**
|
|
1154
|
+
/**
|
|
1155
|
+
* @deprecated Use `nextAccessibleName` instead.
|
|
1156
|
+
* The accessible name for the link to the next page.
|
|
1157
|
+
*/
|
|
1050
1158
|
nextVisuallyHiddenLabel?: string;
|
|
1051
1159
|
/** The current page number. */
|
|
1052
1160
|
page?: number;
|
|
1161
|
+
/** The accessible name for the link to the previous page. */
|
|
1162
|
+
previousAccessibleName?: string;
|
|
1053
1163
|
/** The visible label for the link to the previous page. */
|
|
1054
1164
|
previousLabel?: string;
|
|
1055
|
-
/**
|
|
1165
|
+
/**
|
|
1166
|
+
* @deprecated Use `previousAccessibleName` instead.
|
|
1167
|
+
* The accessible name for the link to the previous page.
|
|
1168
|
+
*/
|
|
1056
1169
|
previousVisuallyHiddenLabel?: string;
|
|
1057
1170
|
/** The total amount of pages. */
|
|
1058
1171
|
totalPages: number;
|
|
1059
|
-
/**
|
|
1172
|
+
/**
|
|
1173
|
+
* @deprecated Use `accessibleName` instead.
|
|
1174
|
+
* The accessible name for the Pagination component.
|
|
1175
|
+
*/
|
|
1060
1176
|
visuallyHiddenLabel?: string;
|
|
1061
1177
|
/**
|
|
1178
|
+
* @deprecated Use `accessibleNameId` instead.
|
|
1062
1179
|
* Connects the component with an internal element that defines its accessible name.
|
|
1063
1180
|
* Note: must be unique for the page.
|
|
1064
1181
|
*/
|
|
1065
1182
|
visuallyHiddenLabelId?: string;
|
|
1066
|
-
} &
|
|
1183
|
+
} & react.RefAttributes<HTMLElement>>;
|
|
1067
1184
|
|
|
1068
|
-
type ParagraphProps = {
|
|
1185
|
+
type ParagraphProps = PropsWithChildren<HTMLAttributes<HTMLParagraphElement>> & {
|
|
1069
1186
|
/** Changes the text colour for readability on a dark background. */
|
|
1070
1187
|
color?: 'inverse';
|
|
1071
1188
|
/** The size of the text. */
|
|
1072
1189
|
size?: 'small' | 'large';
|
|
1073
|
-
}
|
|
1190
|
+
};
|
|
1074
1191
|
/**
|
|
1075
1192
|
* @see {@link https://designsystem.amsterdam/?path=/docs/components-text-paragraph--docs Paragraph docs at Amsterdam Design System}
|
|
1076
1193
|
*/
|
|
1077
|
-
declare const Paragraph: react.ForwardRefExoticComponent<{
|
|
1194
|
+
declare const Paragraph: react.ForwardRefExoticComponent<HTMLAttributes<HTMLParagraphElement> & {
|
|
1195
|
+
children?: react.ReactNode | undefined;
|
|
1196
|
+
} & {
|
|
1078
1197
|
/** Changes the text colour for readability on a dark background. */
|
|
1079
1198
|
color?: "inverse";
|
|
1080
1199
|
/** The size of the text. */
|
|
1081
1200
|
size?: "small" | "large";
|
|
1082
|
-
} & HTMLAttributes<HTMLParagraphElement> & {
|
|
1083
|
-
children?: react.ReactNode | undefined;
|
|
1084
1201
|
} & react.RefAttributes<HTMLParagraphElement>>;
|
|
1085
1202
|
|
|
1086
|
-
type PasswordInputProps = {
|
|
1203
|
+
type PasswordInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid' | 'autoCapitalize' | 'autoCorrect' | 'spellCheck' | 'type'> & {
|
|
1087
1204
|
/** Whether the value fails a validation rule. */
|
|
1088
1205
|
invalid?: boolean;
|
|
1089
|
-
}
|
|
1206
|
+
};
|
|
1090
1207
|
/**
|
|
1091
1208
|
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-password-input--docs Password Input docs at Amsterdam Design System}
|
|
1092
1209
|
*/
|
|
1093
|
-
declare const PasswordInput: react.ForwardRefExoticComponent<{
|
|
1210
|
+
declare const PasswordInput: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "autoCapitalize" | "spellCheck" | "autoCorrect" | "aria-invalid" | "type"> & {
|
|
1094
1211
|
/** Whether the value fails a validation rule. */
|
|
1095
1212
|
invalid?: boolean;
|
|
1096
|
-
} &
|
|
1213
|
+
} & react.RefAttributes<HTMLInputElement>>;
|
|
1097
1214
|
|
|
1098
|
-
type RadioProps = {
|
|
1099
|
-
/**
|
|
1100
|
-
|
|
1215
|
+
type RadioProps = PropsWithChildren<Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid' | 'type'>> & {
|
|
1216
|
+
/**
|
|
1217
|
+
* An icon to display instead of the default icon.
|
|
1218
|
+
* @default RadioIcon
|
|
1219
|
+
*/
|
|
1220
|
+
icon?: Function | ReactNode;
|
|
1101
1221
|
/** Whether the value fails a validation rule. */
|
|
1102
1222
|
invalid?: boolean;
|
|
1103
|
-
}
|
|
1223
|
+
};
|
|
1104
1224
|
/**
|
|
1105
1225
|
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-radio--docs Radio docs at Amsterdam Design System}
|
|
1106
1226
|
*/
|
|
1107
|
-
declare const Radio: react.ForwardRefExoticComponent<{
|
|
1108
|
-
|
|
1109
|
-
|
|
1227
|
+
declare const Radio: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid" | "type"> & {
|
|
1228
|
+
children?: ReactNode | undefined;
|
|
1229
|
+
} & {
|
|
1230
|
+
/**
|
|
1231
|
+
* An icon to display instead of the default icon.
|
|
1232
|
+
* @default RadioIcon
|
|
1233
|
+
*/
|
|
1234
|
+
icon?: Function | ReactNode;
|
|
1110
1235
|
/** Whether the value fails a validation rule. */
|
|
1111
1236
|
invalid?: boolean;
|
|
1112
|
-
} & Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid" | "type"> & {
|
|
1113
|
-
children?: ReactNode | undefined;
|
|
1114
1237
|
} & react.RefAttributes<HTMLInputElement>>;
|
|
1115
1238
|
|
|
1116
1239
|
declare const rowTags: readonly ["article", "div", "section"];
|
|
1117
1240
|
type RowTag = (typeof rowTags)[number];
|
|
1118
1241
|
declare const rowGapSizes: readonly ["none", "x-small", "small", "large", "x-large"];
|
|
1119
1242
|
type RowGap = (typeof rowGapSizes)[number];
|
|
1120
|
-
type RowProps = {
|
|
1243
|
+
type RowProps = PropsWithChildren<HTMLAttributes<HTMLElement>> & {
|
|
1121
1244
|
/**
|
|
1122
1245
|
* The horizontal alignment of the items in the row.
|
|
1123
1246
|
* @default start
|
|
@@ -1143,11 +1266,13 @@ type RowProps = {
|
|
|
1143
1266
|
* @default false
|
|
1144
1267
|
*/
|
|
1145
1268
|
wrap?: boolean;
|
|
1146
|
-
}
|
|
1269
|
+
};
|
|
1147
1270
|
/**
|
|
1148
1271
|
* @see {@link https://designsystem.amsterdam/?path=/docs/components-layout-row--docs Row docs at Amsterdam Design System}
|
|
1149
1272
|
*/
|
|
1150
|
-
declare const Row: react.ForwardRefExoticComponent<{
|
|
1273
|
+
declare const Row: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
1274
|
+
children?: react.ReactNode | undefined;
|
|
1275
|
+
} & {
|
|
1151
1276
|
/**
|
|
1152
1277
|
* The horizontal alignment of the items in the row.
|
|
1153
1278
|
* @default start
|
|
@@ -1173,8 +1298,6 @@ declare const Row: react.ForwardRefExoticComponent<{
|
|
|
1173
1298
|
* @default false
|
|
1174
1299
|
*/
|
|
1175
1300
|
wrap?: boolean;
|
|
1176
|
-
} & HTMLAttributes<HTMLElement> & {
|
|
1177
|
-
children?: react.ReactNode | undefined;
|
|
1178
1301
|
} & react.RefAttributes<unknown>>;
|
|
1179
1302
|
|
|
1180
1303
|
type SearchFieldProps = PropsWithChildren<HTMLAttributes<HTMLFormElement>>;
|
|
@@ -1311,7 +1434,7 @@ declare const SearchField: react.ForwardRefExoticComponent<HTMLAttributes<HTMLFo
|
|
|
1311
1434
|
onBlurCapture?: react.FocusEventHandler<HTMLButtonElement> | undefined;
|
|
1312
1435
|
onChange?: react.FormEventHandler<HTMLButtonElement> | undefined;
|
|
1313
1436
|
onChangeCapture?: react.FormEventHandler<HTMLButtonElement> | undefined;
|
|
1314
|
-
onBeforeInput?: react.
|
|
1437
|
+
onBeforeInput?: react.InputEventHandler<HTMLButtonElement> | undefined;
|
|
1315
1438
|
onBeforeInputCapture?: react.FormEventHandler<HTMLButtonElement> | undefined;
|
|
1316
1439
|
onInput?: react.FormEventHandler<HTMLButtonElement> | undefined;
|
|
1317
1440
|
onInputCapture?: react.FormEventHandler<HTMLButtonElement> | undefined;
|
|
@@ -1361,8 +1484,6 @@ declare const SearchField: react.ForwardRefExoticComponent<HTMLAttributes<HTMLFo
|
|
|
1361
1484
|
onProgressCapture?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1362
1485
|
onRateChange?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1363
1486
|
onRateChangeCapture?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1364
|
-
onResize?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1365
|
-
onResizeCapture?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1366
1487
|
onSeeked?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1367
1488
|
onSeekedCapture?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
1368
1489
|
onSeeking?: react.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
@@ -1464,28 +1585,28 @@ declare const SearchField: react.ForwardRefExoticComponent<HTMLAttributes<HTMLFo
|
|
|
1464
1585
|
formTarget?: string | undefined | undefined;
|
|
1465
1586
|
name?: string | undefined | undefined;
|
|
1466
1587
|
} & react.RefAttributes<HTMLButtonElement>>;
|
|
1467
|
-
Input: react.ForwardRefExoticComponent<{
|
|
1588
|
+
Input: react.ForwardRefExoticComponent<react.InputHTMLAttributes<HTMLInputElement> & {
|
|
1468
1589
|
invalid?: boolean;
|
|
1469
1590
|
label?: string;
|
|
1470
|
-
} & react.
|
|
1591
|
+
} & react.RefAttributes<HTMLInputElement>>;
|
|
1471
1592
|
};
|
|
1472
1593
|
|
|
1473
1594
|
type SelectOptionProps = OptionHTMLAttributes<HTMLOptionElement>;
|
|
1474
1595
|
|
|
1475
1596
|
type SelectOptionGroupProps = OptgroupHTMLAttributes<HTMLOptGroupElement>;
|
|
1476
1597
|
|
|
1477
|
-
type SelectProps = {
|
|
1598
|
+
type SelectProps = PropsWithChildren<Omit<SelectHTMLAttributes<HTMLSelectElement>, 'aria-invalid'>> & {
|
|
1478
1599
|
/** Whether the value fails a validation rule. */
|
|
1479
1600
|
invalid?: boolean;
|
|
1480
|
-
}
|
|
1601
|
+
};
|
|
1481
1602
|
/**
|
|
1482
1603
|
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-select--docs Select docs at Amsterdam Design System}
|
|
1483
1604
|
*/
|
|
1484
|
-
declare const Select: react.ForwardRefExoticComponent<{
|
|
1605
|
+
declare const Select: react.ForwardRefExoticComponent<Omit<SelectHTMLAttributes<HTMLSelectElement>, "aria-invalid"> & {
|
|
1606
|
+
children?: react.ReactNode | undefined;
|
|
1607
|
+
} & {
|
|
1485
1608
|
/** Whether the value fails a validation rule. */
|
|
1486
1609
|
invalid?: boolean;
|
|
1487
|
-
} & Omit<SelectHTMLAttributes<HTMLSelectElement>, "aria-invalid"> & {
|
|
1488
|
-
children?: react.ReactNode | undefined;
|
|
1489
1610
|
} & react.RefAttributes<HTMLSelectElement>> & {
|
|
1490
1611
|
Group: react.ForwardRefExoticComponent<SelectOptionGroupProps & {
|
|
1491
1612
|
children?: react.ReactNode | undefined;
|
|
@@ -1507,39 +1628,45 @@ declare const spotlightTags: readonly ["article", "aside", "div", "footer", "sec
|
|
|
1507
1628
|
type SpotlightTag = (typeof spotlightTags)[number];
|
|
1508
1629
|
declare const spotlightColors: readonly ["azure", "green", "lime", "magenta", "orange", "yellow"];
|
|
1509
1630
|
type SpotlightColor = (typeof spotlightColors)[number];
|
|
1510
|
-
type SpotlightProps = {
|
|
1631
|
+
type SpotlightProps = PropsWithChildren<HTMLAttributes<HTMLElement>> & {
|
|
1511
1632
|
/** The HTML element to use. */
|
|
1512
1633
|
as?: SpotlightTag;
|
|
1513
1634
|
/** The background colour. */
|
|
1514
1635
|
color?: SpotlightColor;
|
|
1515
|
-
}
|
|
1636
|
+
};
|
|
1516
1637
|
/**
|
|
1517
1638
|
* @see {@link https://designsystem.amsterdam/?path=/docs/components-containers-spotlight--docs Spotlight docs at Amsterdam Design System}
|
|
1518
1639
|
*/
|
|
1519
|
-
declare const Spotlight: react.ForwardRefExoticComponent<{
|
|
1640
|
+
declare const Spotlight: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
1641
|
+
children?: react.ReactNode | undefined;
|
|
1642
|
+
} & {
|
|
1520
1643
|
/** The HTML element to use. */
|
|
1521
1644
|
as?: SpotlightTag;
|
|
1522
1645
|
/** The background colour. */
|
|
1523
1646
|
color?: SpotlightColor;
|
|
1524
|
-
} & HTMLAttributes<HTMLElement> & {
|
|
1525
|
-
children?: react.ReactNode | undefined;
|
|
1526
1647
|
} & react.RefAttributes<unknown>>;
|
|
1527
1648
|
|
|
1528
|
-
type StandaloneLinkProps = {
|
|
1649
|
+
type StandaloneLinkProps = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'placeholder'> & {
|
|
1529
1650
|
/** Changes the text colour for readability on a light or dark background. */
|
|
1530
1651
|
color?: 'contrast' | 'inverse';
|
|
1531
|
-
/**
|
|
1532
|
-
|
|
1533
|
-
|
|
1652
|
+
/**
|
|
1653
|
+
* The icon to show before the link text.
|
|
1654
|
+
* @default ChevronForwardIcon
|
|
1655
|
+
*/
|
|
1656
|
+
icon?: IconProps['svg'];
|
|
1657
|
+
};
|
|
1534
1658
|
/**
|
|
1535
1659
|
* @see {@link https://designsystem.amsterdam/?path=/docs/components-navigation-standalone-link--docs Standalone Link docs at Amsterdam Design System}
|
|
1536
1660
|
*/
|
|
1537
|
-
declare const StandaloneLink: react.ForwardRefExoticComponent<{
|
|
1661
|
+
declare const StandaloneLink: react.ForwardRefExoticComponent<Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "placeholder"> & {
|
|
1538
1662
|
/** Changes the text colour for readability on a light or dark background. */
|
|
1539
1663
|
color?: "contrast" | "inverse";
|
|
1540
|
-
/**
|
|
1541
|
-
|
|
1542
|
-
|
|
1664
|
+
/**
|
|
1665
|
+
* The icon to show before the link text.
|
|
1666
|
+
* @default ChevronForwardIcon
|
|
1667
|
+
*/
|
|
1668
|
+
icon?: IconProps["svg"];
|
|
1669
|
+
} & react.RefAttributes<HTMLAnchorElement>>;
|
|
1543
1670
|
|
|
1544
1671
|
type SwitchProps = PropsWithChildren<InputHTMLAttributes<HTMLInputElement>>;
|
|
1545
1672
|
/**
|
|
@@ -1579,152 +1706,152 @@ declare const Table: react.ForwardRefExoticComponent<TableHTMLAttributes<HTMLTab
|
|
|
1579
1706
|
} & react.RefAttributes<HTMLTableRowElement>>;
|
|
1580
1707
|
};
|
|
1581
1708
|
|
|
1582
|
-
type TableOfContentsProps = {
|
|
1709
|
+
type TableOfContentsProps = PropsWithChildren<HTMLAttributes<HTMLElement>> & {
|
|
1583
1710
|
/** The text for the Heading. */
|
|
1584
1711
|
heading?: string;
|
|
1585
1712
|
/**
|
|
1586
1713
|
* The hierarchical level of the Heading within the document.
|
|
1587
|
-
*
|
|
1714
|
+
* Visually, it always has the size of a level 3 Heading.
|
|
1588
1715
|
*/
|
|
1589
1716
|
headingLevel?: HeadingProps['level'];
|
|
1590
|
-
}
|
|
1717
|
+
};
|
|
1591
1718
|
/**
|
|
1592
1719
|
* @see {@link https://designsystem.amsterdam/?path=/docs/components-navigation-table-of-contents--docs Table Of Contents docs at Amsterdam Design System}
|
|
1593
1720
|
*/
|
|
1594
|
-
declare const TableOfContents: react.ForwardRefExoticComponent<{
|
|
1721
|
+
declare const TableOfContents: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
1722
|
+
children?: react.ReactNode | undefined;
|
|
1723
|
+
} & {
|
|
1595
1724
|
/** The text for the Heading. */
|
|
1596
1725
|
heading?: string;
|
|
1597
1726
|
/**
|
|
1598
1727
|
* The hierarchical level of the Heading within the document.
|
|
1599
|
-
*
|
|
1728
|
+
* Visually, it always has the size of a level 3 Heading.
|
|
1600
1729
|
*/
|
|
1601
1730
|
headingLevel?: HeadingProps["level"];
|
|
1602
|
-
} & HTMLAttributes<HTMLElement> & {
|
|
1603
|
-
children?: react.ReactNode | undefined;
|
|
1604
1731
|
} & react.RefAttributes<HTMLElement>> & {
|
|
1605
|
-
Link: react.ForwardRefExoticComponent<{
|
|
1732
|
+
Link: react.ForwardRefExoticComponent<react.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
1606
1733
|
label: string;
|
|
1607
|
-
} & react.
|
|
1734
|
+
} & react.RefAttributes<HTMLAnchorElement>>;
|
|
1608
1735
|
List: react.ForwardRefExoticComponent<HTMLAttributes<HTMLUListElement> & {
|
|
1609
1736
|
children?: react.ReactNode | undefined;
|
|
1610
1737
|
} & react.RefAttributes<HTMLUListElement>>;
|
|
1611
1738
|
};
|
|
1612
1739
|
|
|
1613
|
-
type TableOfContentsLinkProps = {
|
|
1740
|
+
type TableOfContentsLinkProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
1614
1741
|
/** The text for the link. */
|
|
1615
1742
|
label: string;
|
|
1616
|
-
}
|
|
1743
|
+
};
|
|
1617
1744
|
|
|
1618
1745
|
type TableOfContentsListProps = PropsWithChildren<HTMLAttributes<HTMLUListElement>>;
|
|
1619
1746
|
|
|
1620
|
-
type TabsProps = {
|
|
1747
|
+
type TabsProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>> & {
|
|
1621
1748
|
/** The identifier of the initially active Tab. Corresponds to its Panel `id` value. */
|
|
1622
1749
|
activeTab?: string;
|
|
1623
1750
|
onTabChange?: (panelId: string) => void;
|
|
1624
|
-
}
|
|
1751
|
+
};
|
|
1625
1752
|
/**
|
|
1626
1753
|
* @see {@link https://designsystem.amsterdam/?path=/docs/components-containers-tabs--docs Tabs docs at Amsterdam Design System}
|
|
1627
1754
|
*/
|
|
1628
|
-
declare const Tabs: react.ForwardRefExoticComponent<{
|
|
1755
|
+
declare const Tabs: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
1756
|
+
children?: react.ReactNode | undefined;
|
|
1757
|
+
} & {
|
|
1629
1758
|
/** The identifier of the initially active Tab. Corresponds to its Panel `id` value. */
|
|
1630
1759
|
activeTab?: string;
|
|
1631
1760
|
onTabChange?: (panelId: string) => void;
|
|
1632
|
-
} & HTMLAttributes<HTMLDivElement> & {
|
|
1633
|
-
children?: react.ReactNode | undefined;
|
|
1634
1761
|
} & react.RefAttributes<HTMLDivElement>> & {
|
|
1635
|
-
Button: react.ForwardRefExoticComponent<{
|
|
1636
|
-
'aria-controls': string;
|
|
1637
|
-
} & react.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
1762
|
+
Button: react.ForwardRefExoticComponent<react.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
1638
1763
|
children?: react.ReactNode | undefined;
|
|
1764
|
+
} & {
|
|
1765
|
+
'aria-controls': string;
|
|
1639
1766
|
} & react.RefAttributes<HTMLButtonElement>>;
|
|
1640
1767
|
List: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
1641
1768
|
children?: react.ReactNode | undefined;
|
|
1642
1769
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
1643
|
-
Panel: react.ForwardRefExoticComponent<{
|
|
1644
|
-
id: string;
|
|
1645
|
-
} & HTMLAttributes<HTMLDivElement> & {
|
|
1770
|
+
Panel: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
1646
1771
|
children?: react.ReactNode | undefined;
|
|
1772
|
+
} & {
|
|
1773
|
+
id: string;
|
|
1647
1774
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
1648
1775
|
};
|
|
1649
1776
|
|
|
1650
|
-
type
|
|
1651
|
-
/** The identifier of the
|
|
1652
|
-
|
|
1653
|
-
}
|
|
1777
|
+
type TabsButtonProps = PropsWithChildren<ButtonHTMLAttributes<HTMLButtonElement>> & {
|
|
1778
|
+
/** The identifier of the corresponding tab panel. */
|
|
1779
|
+
'aria-controls': string;
|
|
1780
|
+
};
|
|
1654
1781
|
|
|
1655
1782
|
type TabsListProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
1656
1783
|
|
|
1657
|
-
type
|
|
1658
|
-
/** The identifier of the
|
|
1659
|
-
|
|
1660
|
-
}
|
|
1784
|
+
type TabsPanelProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>> & {
|
|
1785
|
+
/** The identifier of the Tab Panel. */
|
|
1786
|
+
id: string;
|
|
1787
|
+
};
|
|
1661
1788
|
|
|
1662
|
-
type TextAreaProps = {
|
|
1789
|
+
type TextAreaProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'aria-invalid'> & {
|
|
1663
1790
|
/** Whether the value fails a validation rule. */
|
|
1664
1791
|
invalid?: boolean;
|
|
1665
1792
|
/** Allows the user to resize the text box. The default is resizing in both directions. */
|
|
1666
1793
|
resize?: 'none' | 'horizontal' | 'vertical';
|
|
1667
|
-
}
|
|
1794
|
+
};
|
|
1668
1795
|
/**
|
|
1669
1796
|
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-text-area--docs Text Area docs at Amsterdam Design System}
|
|
1670
1797
|
*/
|
|
1671
|
-
declare const TextArea: react.ForwardRefExoticComponent<{
|
|
1798
|
+
declare const TextArea: react.ForwardRefExoticComponent<Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "aria-invalid"> & {
|
|
1672
1799
|
/** Whether the value fails a validation rule. */
|
|
1673
1800
|
invalid?: boolean;
|
|
1674
1801
|
/** Allows the user to resize the text box. The default is resizing in both directions. */
|
|
1675
1802
|
resize?: "none" | "horizontal" | "vertical";
|
|
1676
|
-
} &
|
|
1803
|
+
} & react.RefAttributes<HTMLTextAreaElement>>;
|
|
1677
1804
|
|
|
1678
1805
|
declare const textInputTypes: readonly ["email", "tel", "text", "url"];
|
|
1679
1806
|
type TextInputType = (typeof textInputTypes)[number];
|
|
1680
|
-
type TextInputProps = {
|
|
1807
|
+
type TextInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid'> & {
|
|
1681
1808
|
/** Whether the value fails a validation rule. */
|
|
1682
1809
|
invalid?: boolean;
|
|
1683
1810
|
/** The kind of data that the user should provide. */
|
|
1684
1811
|
type?: TextInputType;
|
|
1685
|
-
}
|
|
1812
|
+
};
|
|
1686
1813
|
/**
|
|
1687
1814
|
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-text-input--docs Text Input docs at Amsterdam Design System}
|
|
1688
1815
|
*/
|
|
1689
|
-
declare const TextInput: react.ForwardRefExoticComponent<{
|
|
1816
|
+
declare const TextInput: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid"> & {
|
|
1690
1817
|
/** Whether the value fails a validation rule. */
|
|
1691
1818
|
invalid?: boolean;
|
|
1692
1819
|
/** The kind of data that the user should provide. */
|
|
1693
1820
|
type?: TextInputType;
|
|
1694
|
-
} &
|
|
1821
|
+
} & react.RefAttributes<HTMLInputElement>>;
|
|
1695
1822
|
|
|
1696
|
-
type TimeInputProps = {
|
|
1823
|
+
type TimeInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid' | 'type'> & {
|
|
1697
1824
|
/** Whether the value fails a validation rule. */
|
|
1698
1825
|
invalid?: boolean;
|
|
1699
|
-
}
|
|
1826
|
+
};
|
|
1700
1827
|
/**
|
|
1701
1828
|
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-time-input--docs Time Input docs at Amsterdam Design System}
|
|
1702
1829
|
*/
|
|
1703
|
-
declare const TimeInput: react.ForwardRefExoticComponent<{
|
|
1830
|
+
declare const TimeInput: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid" | "type"> & {
|
|
1704
1831
|
/** Whether the value fails a validation rule. */
|
|
1705
1832
|
invalid?: boolean;
|
|
1706
|
-
} &
|
|
1833
|
+
} & react.RefAttributes<HTMLInputElement>>;
|
|
1707
1834
|
|
|
1708
|
-
type UnorderedListProps = {
|
|
1835
|
+
type UnorderedListProps = PropsWithChildren<HTMLAttributes<HTMLUListElement>> & {
|
|
1709
1836
|
/** Changes the text colour for readability on a dark background. */
|
|
1710
1837
|
color?: 'inverse';
|
|
1711
1838
|
/** Whether the list items show a marker. */
|
|
1712
1839
|
markers?: boolean;
|
|
1713
1840
|
/** The size of the text. */
|
|
1714
1841
|
size?: 'small';
|
|
1715
|
-
}
|
|
1842
|
+
};
|
|
1716
1843
|
/**
|
|
1717
1844
|
* @see {@link https://designsystem.amsterdam/?path=/docs/components-text-unordered-list--docs Unordered List docs at Amsterdam Design System}
|
|
1718
1845
|
*/
|
|
1719
|
-
declare const UnorderedList: react.ForwardRefExoticComponent<{
|
|
1846
|
+
declare const UnorderedList: react.ForwardRefExoticComponent<HTMLAttributes<HTMLUListElement> & {
|
|
1847
|
+
children?: react.ReactNode | undefined;
|
|
1848
|
+
} & {
|
|
1720
1849
|
/** Changes the text colour for readability on a dark background. */
|
|
1721
1850
|
color?: "inverse";
|
|
1722
1851
|
/** Whether the list items show a marker. */
|
|
1723
1852
|
markers?: boolean;
|
|
1724
1853
|
/** The size of the text. */
|
|
1725
1854
|
size?: "small";
|
|
1726
|
-
} & HTMLAttributes<HTMLUListElement> & {
|
|
1727
|
-
children?: react.ReactNode | undefined;
|
|
1728
1855
|
} & react.RefAttributes<HTMLUListElement>> & {
|
|
1729
1856
|
Item: react.ForwardRefExoticComponent<react.LiHTMLAttributes<HTMLLIElement> & {
|
|
1730
1857
|
children?: react.ReactNode | undefined;
|
|
@@ -1733,5 +1860,5 @@ declare const UnorderedList: react.ForwardRefExoticComponent<{
|
|
|
1733
1860
|
|
|
1734
1861
|
type UnorderedListItemProps = PropsWithChildren<LiHTMLAttributes<HTMLLIElement>>;
|
|
1735
1862
|
|
|
1736
|
-
export { Accordion, ActionGroup, Alert, Avatar, Badge, Blockquote, Breadcrumb, Breakout, Button, 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, 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 };
|
|
1737
|
-
export type { AccordionProps, AccordionSectionProps, ActionGroupProps, AlertProps, AvatarProps, BadgeProps, BlockquoteProps, BreadcrumbLinkProps, BreadcrumbProps, BreakoutCellProps, BreakoutProps, ButtonProps, 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, 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 };
|
|
1863
|
+
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 };
|
|
1864
|
+
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 };
|