@amsterdam/design-system-react 2.0.2 → 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.
Files changed (302) hide show
  1. package/dist/Accordion/Accordion.d.ts +3 -3
  2. package/dist/Accordion/AccordionSection.d.ts +5 -5
  3. package/dist/Avatar/Avatar.d.ts +2 -2
  4. package/dist/Badge/Badge.d.ts +4 -4
  5. package/dist/Blockquote/Blockquote.d.ts +5 -5
  6. package/dist/Breakout/BreakoutCell.d.ts +2 -2
  7. package/dist/Button/Button.d.ts +7 -5
  8. package/dist/Button/Button.js +1 -0
  9. package/dist/Card/Card.d.ts +8 -8
  10. package/dist/Card/CardHeading.d.ts +3 -3
  11. package/dist/Card/CardHeadingGroup.d.ts +5 -5
  12. package/dist/Card/CardImage.d.ts +2 -2
  13. package/dist/Checkbox/Checkbox.d.ts +5 -5
  14. package/dist/Column/Column.d.ts +5 -5
  15. package/dist/DateInput/DateInput.d.ts +4 -4
  16. package/dist/DescriptionList/DescriptionList.d.ts +5 -5
  17. package/dist/Dialog/Dialog.d.ts +6 -7
  18. package/dist/Field/Field.d.ts +5 -5
  19. package/dist/FieldSet/FieldSet.d.ts +31 -10
  20. package/dist/FieldSet/FieldSet.js +4 -3
  21. package/dist/Figure/Figure.d.ts +3 -3
  22. package/dist/Figure/FigureCaption.d.ts +5 -5
  23. package/dist/FileList/FileList.d.ts +2 -2
  24. package/dist/FileList/FileListItem.d.ts +4 -4
  25. package/dist/Grid/Grid.d.ts +2 -2
  26. package/dist/Grid/GridCell.d.ts +2 -2
  27. package/dist/Heading/Heading.d.ts +10 -11
  28. package/dist/Heading/Heading.js +1 -0
  29. package/dist/Hint/Hint.d.ts +1 -0
  30. package/dist/Hint/Hint.js +2 -2
  31. package/dist/Icon/Icon.d.ts +0 -4
  32. package/dist/IconButton/IconButton.d.ts +4 -2
  33. package/dist/IconButton/IconButton.js +1 -0
  34. package/dist/Image/Image.d.ts +5 -5
  35. package/dist/Image/Image.js +1 -1
  36. package/dist/ImageSlider/ImageSlider.d.ts +4 -4
  37. package/dist/ImageSlider/ImageSliderItem.d.ts +5 -5
  38. package/dist/ImageSlider/ImageSliderThumbnails.d.ts +5 -5
  39. package/dist/InvalidFormAlert/InvalidFormAlertWithErrors.d.ts +2 -2
  40. package/dist/Label/Label.d.ts +25 -6
  41. package/dist/Label/Label.js +3 -2
  42. package/dist/Link/Link.d.ts +4 -4
  43. package/dist/LinkList/LinkList.d.ts +1 -1
  44. package/dist/LinkList/LinkListLink.d.ts +9 -4
  45. package/dist/LinkList/LinkListLink.js +2 -0
  46. package/dist/Logo/Logo.d.ts +2 -2
  47. package/dist/Menu/Menu.d.ts +31 -10
  48. package/dist/Menu/Menu.js +6 -1
  49. package/dist/Menu/MenuLink.d.ts +10 -4
  50. package/dist/OrderedList/OrderedList.d.ts +5 -5
  51. package/dist/Page/Page.d.ts +6 -2
  52. package/dist/Page/Page.js +1 -1
  53. package/dist/PageHeader/PageHeader.d.ts +8 -7
  54. package/dist/PageHeader/PageHeaderGridCellNarrowWindowOnly.d.ts +1 -1
  55. package/dist/PageHeader/PageHeaderGridCellNarrowWindowOnly.js +0 -4
  56. package/dist/PageHeader/PageHeaderMenuIcon.js +1 -1
  57. package/dist/PageHeader/PageHeaderMenuLink.d.ts +13 -6
  58. package/dist/PageHeader/PageHeaderMenuLink.js +3 -6
  59. package/dist/PageHeading/PageHeading.d.ts +5 -5
  60. package/dist/Pagination/LinkItem.d.ts +3 -3
  61. package/dist/Pagination/Pagination.d.ts +4 -4
  62. package/dist/Paragraph/Paragraph.d.ts +5 -9
  63. package/dist/PasswordInput/PasswordInput.d.ts +4 -4
  64. package/dist/Radio/Radio.d.ts +5 -5
  65. package/dist/Row/Row.d.ts +5 -5
  66. package/dist/SearchField/SearchField.d.ts +2 -2
  67. package/dist/SearchField/SearchFieldButton.js +1 -1
  68. package/dist/SearchField/SearchFieldInput.d.ts +2 -2
  69. package/dist/Select/Select.d.ts +5 -5
  70. package/dist/Spotlight/Spotlight.d.ts +6 -6
  71. package/dist/Spotlight/Spotlight.js +0 -4
  72. package/dist/StandaloneLink/StandaloneLink.d.ts +4 -4
  73. package/dist/Table/TableCaption.d.ts +0 -4
  74. package/dist/TableOfContents/TableOfContents.d.ts +7 -7
  75. package/dist/TableOfContents/TableOfContentsLink.d.ts +4 -4
  76. package/dist/Tabs/Tabs.d.ts +11 -11
  77. package/dist/Tabs/TabsButton.d.ts +5 -5
  78. package/dist/Tabs/TabsPanel.d.ts +5 -5
  79. package/dist/TextArea/TextArea.d.ts +12 -6
  80. package/dist/TextInput/TextInput.d.ts +4 -4
  81. package/dist/TimeInput/TimeInput.d.ts +4 -4
  82. package/dist/UnorderedList/UnorderedList.d.ts +5 -5
  83. package/dist/common/useIsAfterBreakpoint.d.ts +4 -0
  84. package/dist/common/useIsAfterBreakpoint.js +4 -4
  85. package/dist/index.cjs.js +62 -44
  86. package/dist/index.cjs.js.map +1 -1
  87. package/dist/index.d.ts +293 -218
  88. package/dist/index.esm.js +62 -44
  89. package/dist/index.esm.js.map +1 -1
  90. package/dist/tsconfig.build.tsbuildinfo +1 -0
  91. package/package.json +21 -20
  92. package/dist/Accordion/Accordion.test.d.ts +0 -5
  93. package/dist/Accordion/Accordion.test.js +0 -44
  94. package/dist/Accordion/AccordionSection.test.d.ts +0 -5
  95. package/dist/Accordion/AccordionSection.test.js +0 -100
  96. package/dist/ActionGroup/ActionGroup.test.d.ts +0 -5
  97. package/dist/ActionGroup/ActionGroup.test.js +0 -33
  98. package/dist/Alert/Alert.test.d.ts +0 -5
  99. package/dist/Alert/Alert.test.js +0 -74
  100. package/dist/Avatar/Avatar.test.d.ts +0 -5
  101. package/dist/Avatar/Avatar.test.js +0 -63
  102. package/dist/Badge/Badge.test.d.ts +0 -5
  103. package/dist/Badge/Badge.test.js +0 -43
  104. package/dist/Blockquote/Blockquote.test.d.ts +0 -5
  105. package/dist/Blockquote/Blockquote.test.js +0 -46
  106. package/dist/Breadcrumb/Breadcrumb.test.d.ts +0 -5
  107. package/dist/Breadcrumb/Breadcrumb.test.js +0 -45
  108. package/dist/Breadcrumb/BreadcrumbLink.test.d.ts +0 -5
  109. package/dist/Breadcrumb/BreadcrumbLink.test.js +0 -40
  110. package/dist/Breakout/Breakout.test.d.ts +0 -5
  111. package/dist/Breakout/Breakout.test.js +0 -62
  112. package/dist/Breakout/BreakoutCell.test.d.ts +0 -5
  113. package/dist/Breakout/BreakoutCell.test.js +0 -128
  114. package/dist/Button/Button.test.d.ts +0 -5
  115. package/dist/Button/Button.test.js +0 -114
  116. package/dist/CallToActionLink/CallToActionLink.test.d.ts +0 -5
  117. package/dist/CallToActionLink/CallToActionLink.test.js +0 -33
  118. package/dist/Card/Card.test.d.ts +0 -5
  119. package/dist/Card/Card.test.js +0 -33
  120. package/dist/Card/CardHeading.test.d.ts +0 -5
  121. package/dist/Card/CardHeading.test.js +0 -38
  122. package/dist/Card/CardHeadingGroup.test.d.ts +0 -5
  123. package/dist/Card/CardHeadingGroup.test.js +0 -38
  124. package/dist/Card/CardImage.test.d.ts +0 -5
  125. package/dist/Card/CardImage.test.js +0 -33
  126. package/dist/Card/CardLink.test.d.ts +0 -5
  127. package/dist/Card/CardLink.test.js +0 -33
  128. package/dist/CharacterCount/CharacterCount.test.d.ts +0 -5
  129. package/dist/CharacterCount/CharacterCount.test.js +0 -38
  130. package/dist/Checkbox/Checkbox.test.d.ts +0 -5
  131. package/dist/Checkbox/Checkbox.test.js +0 -142
  132. package/dist/Column/Column.test.d.ts +0 -5
  133. package/dist/Column/Column.test.js +0 -59
  134. package/dist/DateInput/DateInput.test.d.ts +0 -5
  135. package/dist/DateInput/DateInput.test.js +0 -58
  136. package/dist/DescriptionList/DescriptionList.test.d.ts +0 -5
  137. package/dist/DescriptionList/DescriptionList.test.js +0 -43
  138. package/dist/DescriptionList/DescriptionListDescription.test.d.ts +0 -5
  139. package/dist/DescriptionList/DescriptionListDescription.test.js +0 -33
  140. package/dist/DescriptionList/DescriptionListSection.test.d.ts +0 -5
  141. package/dist/DescriptionList/DescriptionListSection.test.js +0 -33
  142. package/dist/DescriptionList/DescriptionListTerm.test.d.ts +0 -5
  143. package/dist/DescriptionList/DescriptionListTerm.test.js +0 -33
  144. package/dist/Dialog/Dialog.test.d.ts +0 -5
  145. package/dist/Dialog/Dialog.test.js +0 -82
  146. package/dist/ErrorMessage/ErrorMessage.test.d.ts +0 -5
  147. package/dist/ErrorMessage/ErrorMessage.test.js +0 -53
  148. package/dist/Field/Field.test.d.ts +0 -5
  149. package/dist/Field/Field.test.js +0 -38
  150. package/dist/FieldSet/FieldSet.test.d.ts +0 -5
  151. package/dist/FieldSet/FieldSet.test.js +0 -63
  152. package/dist/Figure/Figure.test.d.ts +0 -5
  153. package/dist/Figure/Figure.test.js +0 -33
  154. package/dist/Figure/FigureCaption.test.d.ts +0 -5
  155. package/dist/Figure/FigureCaption.test.js +0 -38
  156. package/dist/FileInput/FileInput.test.d.ts +0 -5
  157. package/dist/FileInput/FileInput.test.js +0 -33
  158. package/dist/FileList/FileList.test.d.ts +0 -5
  159. package/dist/FileList/FileList.test.js +0 -33
  160. package/dist/FileList/FileListItem.test.d.ts +0 -5
  161. package/dist/FileList/FileListItem.test.js +0 -44
  162. package/dist/Grid/Grid.test.d.ts +0 -5
  163. package/dist/Grid/Grid.test.js +0 -69
  164. package/dist/Grid/GridCell.test.d.ts +0 -5
  165. package/dist/Grid/GridCell.test.js +0 -84
  166. package/dist/Heading/Heading.test.d.ts +0 -5
  167. package/dist/Heading/Heading.test.js +0 -70
  168. package/dist/Hint/Hint.test.d.ts +0 -5
  169. package/dist/Hint/Hint.test.js +0 -53
  170. package/dist/Icon/Icon.test.d.ts +0 -5
  171. package/dist/Icon/Icon.test.js +0 -60
  172. package/dist/IconButton/IconButton.test.d.ts +0 -5
  173. package/dist/IconButton/IconButton.test.js +0 -48
  174. package/dist/Image/Image.test.d.ts +0 -5
  175. package/dist/Image/Image.test.js +0 -43
  176. package/dist/ImageSlider/ImageSlider.test.d.ts +0 -5
  177. package/dist/ImageSlider/ImageSlider.test.js +0 -70
  178. package/dist/ImageSlider/ImageSliderControls.test.d.ts +0 -5
  179. package/dist/ImageSlider/ImageSliderControls.test.js +0 -25
  180. package/dist/ImageSlider/ImageSliderItem.test.d.ts +0 -5
  181. package/dist/ImageSlider/ImageSliderItem.test.js +0 -37
  182. package/dist/ImageSlider/ImageSliderScroller.test.d.ts +0 -5
  183. package/dist/ImageSlider/ImageSliderScroller.test.js +0 -37
  184. package/dist/ImageSlider/ImageSliderThumbnails.test.d.ts +0 -5
  185. package/dist/ImageSlider/ImageSliderThumbnails.test.js +0 -52
  186. package/dist/InvalidFormAlert/InvalidFormAlert.test.d.ts +0 -5
  187. package/dist/InvalidFormAlert/InvalidFormAlert.test.js +0 -108
  188. package/dist/Label/Label.test.d.ts +0 -5
  189. package/dist/Label/Label.test.js +0 -77
  190. package/dist/Link/Link.test.d.ts +0 -5
  191. package/dist/Link/Link.test.js +0 -43
  192. package/dist/LinkList/LinkList.test.d.ts +0 -5
  193. package/dist/LinkList/LinkList.test.js +0 -33
  194. package/dist/LinkList/LinkListLink.test.d.ts +0 -5
  195. package/dist/LinkList/LinkListLink.test.js +0 -54
  196. package/dist/Logo/Logo.test.d.ts +0 -5
  197. package/dist/Logo/Logo.test.js +0 -33
  198. package/dist/Mark/Mark.test.d.ts +0 -5
  199. package/dist/Mark/Mark.test.js +0 -33
  200. package/dist/Menu/Menu.test.d.ts +0 -5
  201. package/dist/Menu/Menu.test.js +0 -38
  202. package/dist/Menu/MenuLink.test.d.ts +0 -5
  203. package/dist/Menu/MenuLink.test.js +0 -56
  204. package/dist/OrderedList/OrderedList.test.d.ts +0 -5
  205. package/dist/OrderedList/OrderedList.test.js +0 -55
  206. package/dist/OrderedList/OrderedListItem.test.d.ts +0 -5
  207. package/dist/OrderedList/OrderedListItem.test.js +0 -32
  208. package/dist/Overlap/Overlap.test.d.ts +0 -5
  209. package/dist/Overlap/Overlap.test.js +0 -38
  210. package/dist/Page/Page.test.d.ts +0 -5
  211. package/dist/Page/Page.test.js +0 -33
  212. package/dist/PageFooter/PageFooter.test.d.ts +0 -5
  213. package/dist/PageFooter/PageFooter.test.js +0 -33
  214. package/dist/PageFooter/PageFooterMenu.test.d.ts +0 -5
  215. package/dist/PageFooter/PageFooterMenu.test.js +0 -35
  216. package/dist/PageFooter/PageFooterMenuLink.test.d.ts +0 -5
  217. package/dist/PageFooter/PageFooterMenuLink.test.js +0 -33
  218. package/dist/PageFooter/PageFooterSpotlight.test.d.ts +0 -5
  219. package/dist/PageFooter/PageFooterSpotlight.test.js +0 -33
  220. package/dist/PageHeader/PageHeader.test.d.ts +0 -6
  221. package/dist/PageHeader/PageHeader.test.js +0 -135
  222. package/dist/PageHeader/PageHeaderGridCellNarrowWindowOnly.test.d.ts +0 -5
  223. package/dist/PageHeader/PageHeaderGridCellNarrowWindowOnly.test.js +0 -38
  224. package/dist/PageHeader/PageHeaderMenuLink.test.d.ts +0 -5
  225. package/dist/PageHeader/PageHeaderMenuLink.test.js +0 -45
  226. package/dist/PageHeading/PageHeading.test.d.ts +0 -5
  227. package/dist/PageHeading/PageHeading.test.js +0 -40
  228. package/dist/Pagination/Pagination.test.d.ts +0 -5
  229. package/dist/Pagination/Pagination.test.js +0 -137
  230. package/dist/Paragraph/Paragraph.test.d.ts +0 -5
  231. package/dist/Paragraph/Paragraph.test.js +0 -62
  232. package/dist/PasswordInput/PasswordInput.test.d.ts +0 -5
  233. package/dist/PasswordInput/PasswordInput.test.js +0 -89
  234. package/dist/Radio/Radio.test.d.ts +0 -5
  235. package/dist/Radio/Radio.test.js +0 -134
  236. package/dist/Row/Row.test.d.ts +0 -5
  237. package/dist/Row/Row.test.js +0 -64
  238. package/dist/SearchField/SearchField.test.d.ts +0 -5
  239. package/dist/SearchField/SearchField.test.js +0 -50
  240. package/dist/SearchField/SearchFieldInput.test.d.ts +0 -5
  241. package/dist/SearchField/SearchFieldInput.test.js +0 -65
  242. package/dist/Select/Select.test.d.ts +0 -5
  243. package/dist/Select/Select.test.js +0 -74
  244. package/dist/Select/SelectOption.test.d.ts +0 -5
  245. package/dist/Select/SelectOption.test.js +0 -45
  246. package/dist/Select/SelectOptionGroup.test.d.ts +0 -5
  247. package/dist/Select/SelectOptionGroup.test.js +0 -45
  248. package/dist/SkipLink/SkipLink.test.d.ts +0 -5
  249. package/dist/SkipLink/SkipLink.test.js +0 -33
  250. package/dist/Spotlight/Spotlight.test.d.ts +0 -5
  251. package/dist/Spotlight/Spotlight.test.js +0 -46
  252. package/dist/StandaloneLink/StandaloneLink.test.d.ts +0 -5
  253. package/dist/StandaloneLink/StandaloneLink.test.js +0 -46
  254. package/dist/Switch/Switch.test.d.ts +0 -5
  255. package/dist/Switch/Switch.test.js +0 -69
  256. package/dist/Table/Table.test.d.ts +0 -5
  257. package/dist/Table/Table.test.js +0 -33
  258. package/dist/Table/TableBody.test.d.ts +0 -5
  259. package/dist/Table/TableBody.test.js +0 -34
  260. package/dist/Table/TableCaption.test.d.ts +0 -5
  261. package/dist/Table/TableCaption.test.js +0 -45
  262. package/dist/Table/TableCell.test.d.ts +0 -5
  263. package/dist/Table/TableCell.test.js +0 -36
  264. package/dist/Table/TableFooter.test.d.ts +0 -5
  265. package/dist/Table/TableFooter.test.js +0 -34
  266. package/dist/Table/TableHeader.test.d.ts +0 -5
  267. package/dist/Table/TableHeader.test.js +0 -34
  268. package/dist/Table/TableHeaderCell.test.d.ts +0 -5
  269. package/dist/Table/TableHeaderCell.test.js +0 -42
  270. package/dist/Table/TableRow.test.d.ts +0 -5
  271. package/dist/Table/TableRow.test.js +0 -35
  272. package/dist/TableOfContents/TableOfContents.test.d.ts +0 -5
  273. package/dist/TableOfContents/TableOfContents.test.js +0 -44
  274. package/dist/TableOfContents/TableOfContentsLink.test.d.ts +0 -5
  275. package/dist/TableOfContents/TableOfContentsLink.test.js +0 -34
  276. package/dist/TableOfContents/TableOfContentsList.test.d.ts +0 -5
  277. package/dist/TableOfContents/TableOfContentsList.test.js +0 -40
  278. package/dist/Tabs/Tabs.test.d.ts +0 -5
  279. package/dist/Tabs/Tabs.test.js +0 -104
  280. package/dist/Tabs/TabsButton.test.d.ts +0 -5
  281. package/dist/Tabs/TabsButton.test.js +0 -57
  282. package/dist/Tabs/TabsList.test.d.ts +0 -5
  283. package/dist/Tabs/TabsList.test.js +0 -32
  284. package/dist/Tabs/TabsPanel.test.d.ts +0 -5
  285. package/dist/Tabs/TabsPanel.test.js +0 -42
  286. package/dist/TextArea/TextArea.test.d.ts +0 -5
  287. package/dist/TextArea/TextArea.test.js +0 -105
  288. package/dist/TextInput/TextInput.test.d.ts +0 -5
  289. package/dist/TextInput/TextInput.test.js +0 -92
  290. package/dist/TimeInput/TimeInput.test.d.ts +0 -5
  291. package/dist/TimeInput/TimeInput.test.js +0 -51
  292. package/dist/UnorderedList/UnorderedList.test.d.ts +0 -5
  293. package/dist/UnorderedList/UnorderedList.test.js +0 -55
  294. package/dist/UnorderedList/UnorderedListItem.test.d.ts +0 -5
  295. package/dist/UnorderedList/UnorderedListItem.test.js +0 -32
  296. package/dist/common/formatFileSize.test.d.ts +0 -5
  297. package/dist/common/formatFileSize.test.js +0 -22
  298. package/dist/common/formatFileType.test.d.ts +0 -5
  299. package/dist/common/formatFileType.test.js +0 -27
  300. package/dist/common/useKeyboardFocus.test.d.ts +0 -5
  301. package/dist/common/useKeyboardFocus.test.js +0 -79
  302. package/dist/tsconfig.tsbuildinfo +0 -1
package/dist/index.d.ts CHANGED
@@ -1,32 +1,34 @@
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 = PropsWithChildren<HTMLAttributes<HTMLHeadingElement>> & {
4
+ declare const headingSizes: readonly [1, 2, 3, 4];
5
+ type HeadingSize = (typeof headingSizes)[number];
6
+ type HeadingProps = {
5
7
  /** Changes the text colour for readability on a dark background. */
6
8
  color?: 'inverse';
7
9
  /** The hierarchical level within the document. */
8
- level: 1 | 2 | 3 | 4;
10
+ level: HeadingSize;
9
11
  /**
10
12
  * Uses larger or smaller text without changing its position in the heading hierarchy.
11
13
  * The value ‘level-6’ is deprecated. Use level 5 instead.
12
14
  */
13
15
  size?: 'level-1' | 'level-2' | 'level-3' | 'level-4' | 'level-5' | 'level-6';
14
- };
16
+ } & PropsWithChildren<HTMLAttributes<HTMLHeadingElement>>;
15
17
  /**
16
18
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-text-heading--docs Heading docs at Amsterdam Design System}
17
19
  */
18
- declare const Heading: react.ForwardRefExoticComponent<HTMLAttributes<HTMLHeadingElement> & {
19
- children?: react.ReactNode | undefined;
20
- } & {
20
+ declare const Heading: react.ForwardRefExoticComponent<{
21
21
  /** Changes the text colour for readability on a dark background. */
22
22
  color?: "inverse";
23
23
  /** The hierarchical level within the document. */
24
- level: 1 | 2 | 3 | 4;
24
+ level: HeadingSize;
25
25
  /**
26
26
  * Uses larger or smaller text without changing its position in the heading hierarchy.
27
27
  * The value ‘level-6’ is deprecated. Use level 5 instead.
28
28
  */
29
29
  size?: "level-1" | "level-2" | "level-3" | "level-4" | "level-5" | "level-6";
30
+ } & HTMLAttributes<HTMLHeadingElement> & {
31
+ children?: react.ReactNode | undefined;
30
32
  } & react.RefAttributes<HTMLHeadingElement>>;
31
33
 
32
34
  type AccordionProps = {
@@ -54,20 +56,20 @@ declare const Accordion: react.ForwardRefExoticComponent<{
54
56
  } & HTMLAttributes<HTMLDivElement> & {
55
57
  children?: react.ReactNode | undefined;
56
58
  } & react.RefAttributes<HTMLDivElement>> & {
57
- Section: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
58
- children?: react.ReactNode | undefined;
59
- } & {
59
+ Section: react.ForwardRefExoticComponent<{
60
60
  expanded?: boolean;
61
61
  label: string;
62
+ } & HTMLAttributes<HTMLElement> & {
63
+ children?: react.ReactNode | undefined;
62
64
  } & react.RefAttributes<HTMLDivElement>>;
63
65
  };
64
66
 
65
- type AccordionSectionProps = PropsWithChildren<HTMLAttributes<HTMLElement>> & {
67
+ type AccordionSectionProps = {
66
68
  /** Whether the content is displayed initially. */
67
69
  expanded?: boolean;
68
70
  /** The heading text. */
69
71
  label: string;
70
- };
72
+ } & PropsWithChildren<HTMLAttributes<HTMLElement>>;
71
73
 
72
74
  type ActionGroupProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
73
75
  /**
@@ -137,7 +139,7 @@ type AvatarColor = (typeof avatarColors)[number];
137
139
  type AvatarProps = {
138
140
  /** The background colour. */
139
141
  color?: AvatarColor;
140
- /** The url for the user’s image. Its center will be displayed. Should be square and scaled down. */
142
+ /** The url for the user’s image. Its centre will be displayed. Should be square and scaled down. */
141
143
  imageSrc?: string;
142
144
  /** The text content. Should be the user’s initials. The first two characters will be displayed. */
143
145
  label: string;
@@ -148,7 +150,7 @@ type AvatarProps = {
148
150
  declare const Avatar: react.ForwardRefExoticComponent<{
149
151
  /** The background colour. */
150
152
  color?: AvatarColor;
151
- /** The url for the user’s image. Its center will be displayed. Should be square and scaled down. */
153
+ /** The url for the user’s image. Its centre will be displayed. Should be square and scaled down. */
152
154
  imageSrc?: string;
153
155
  /** The text content. Should be the user’s initials. The first two characters will be displayed. */
154
156
  label: string;
@@ -156,34 +158,34 @@ declare const Avatar: react.ForwardRefExoticComponent<{
156
158
 
157
159
  declare const badgeColors: readonly ["azure", "lime", "magenta", "orange", "purple", "red", "yellow"];
158
160
  type BadgeColor = (typeof badgeColors)[number];
159
- type BadgeProps = HTMLAttributes<HTMLElement> & {
161
+ type BadgeProps = {
160
162
  /** The background colour. */
161
163
  color?: BadgeColor;
162
164
  /** The text content. */
163
165
  label: string | number;
164
- };
166
+ } & HTMLAttributes<HTMLElement>;
165
167
  /**
166
168
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-feedback-badge--docs Badge docs at Amsterdam Design System}
167
169
  */
168
- declare const Badge: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
170
+ declare const Badge: react.ForwardRefExoticComponent<{
169
171
  /** The background colour. */
170
172
  color?: BadgeColor;
171
173
  /** The text content. */
172
174
  label: string | number;
173
- } & react.RefAttributes<HTMLElement>>;
175
+ } & HTMLAttributes<HTMLElement> & react.RefAttributes<HTMLElement>>;
174
176
 
175
- type BlockquoteProps = PropsWithChildren<BlockquoteHTMLAttributes<HTMLQuoteElement>> & {
177
+ type BlockquoteProps = {
176
178
  /** Changes the text colour for readability on a dark background. */
177
179
  color?: 'inverse';
178
- };
180
+ } & PropsWithChildren<BlockquoteHTMLAttributes<HTMLQuoteElement>>;
179
181
  /**
180
182
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-text-blockquote--docs Blockquote docs at Amsterdam Design System}
181
183
  */
182
- declare const Blockquote: react.ForwardRefExoticComponent<BlockquoteHTMLAttributes<HTMLQuoteElement> & {
183
- children?: react.ReactNode | undefined;
184
- } & {
184
+ declare const Blockquote: react.ForwardRefExoticComponent<{
185
185
  /** Changes the text colour for readability on a dark background. */
186
186
  color?: "inverse";
187
+ } & BlockquoteHTMLAttributes<HTMLQuoteElement> & {
188
+ children?: react.ReactNode | undefined;
187
189
  } & react.RefAttributes<HTMLQuoteElement>>;
188
190
 
189
191
  type BreadcrumbLinkProps = AnchorHTMLAttributes<HTMLAnchorElement>;
@@ -211,10 +213,10 @@ type GridCellSpanAndStartProps = {
211
213
  /** The index of the grid column the cell starts at. */
212
214
  start?: GridColumnNumber | GridColumnNumbers;
213
215
  };
214
- type GridCellProps = (GridCellSpanAllProp | GridCellSpanAndStartProps) & PropsWithChildren<HTMLAttributes<HTMLElement>> & {
216
+ type GridCellProps = {
215
217
  /** The HTML tag to use. */
216
218
  as?: GridCellTag;
217
- };
219
+ } & PropsWithChildren<HTMLAttributes<HTMLElement>> & (GridCellSpanAllProp | GridCellSpanAndStartProps);
218
220
 
219
221
  type GridColumnNumber = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
220
222
  type GridColumnNumbers = {
@@ -241,12 +243,12 @@ type GridPaddingTopAndBottomProps = {
241
243
  paddingTop?: GridPadding;
242
244
  paddingVertical?: never;
243
245
  };
244
- type GridProps = (GridPaddingVerticalProp | GridPaddingTopAndBottomProps) & PropsWithChildren<HTMLAttributes<HTMLDivElement>> & {
246
+ type GridProps = {
245
247
  /** The HTML tag to use. */
246
248
  as?: GridTag;
247
249
  /** The amount of space between rows. */
248
250
  gapVertical?: GridGap;
249
- };
251
+ } & PropsWithChildren<HTMLAttributes<HTMLDivElement>> & (GridPaddingVerticalProp | GridPaddingTopAndBottomProps);
250
252
  /**
251
253
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-layout-grid--docs Grid docs at Amsterdam Design System}
252
254
  */
@@ -278,10 +280,10 @@ type BreakoutCellRowSpanAndStartProps = {
278
280
  /** The index of the grid row the cell starts at. */
279
281
  rowStart?: BreakoutRowNumber | BreakoutRowNumbers;
280
282
  };
281
- type BreakoutCellProps = BreakoutCellRowSpanAndStartProps & (BreakoutCellSpanAllProp | BreakoutCellSpanAndStartProps) & PropsWithChildren<HTMLAttributes<HTMLElement>> & {
283
+ type BreakoutCellProps = {
282
284
  /** The HTML element to use. */
283
285
  as?: BreakoutCellTag;
284
- };
286
+ } & BreakoutCellRowSpanAndStartProps & PropsWithChildren<HTMLAttributes<HTMLElement>> & (BreakoutCellSpanAllProp | BreakoutCellSpanAndStartProps);
285
287
 
286
288
  type BreakoutRowNumber = 1 | 2 | 3 | 4;
287
289
  type BreakoutRowNumbers = {
@@ -340,19 +342,21 @@ type IconOnlyProp = {
340
342
  /** Shows the icon without the label. Requires a value for `icon`. Cannot be used together with `iconBefore`. */
341
343
  iconOnly?: boolean;
342
344
  };
343
- type IconButtonProps$1 = (IconBeforeProp | IconOnlyProp) & {
345
+ type IconButtonProps$1 = {
344
346
  /** Adds an icon to the button, showing it after the label. */
345
347
  icon: IconProps['svg'];
346
- };
348
+ } & (IconBeforeProp | IconOnlyProp);
347
349
  type TextButtonProps = {
348
350
  icon?: never;
349
351
  iconBefore?: never;
350
352
  iconOnly?: never;
351
353
  };
352
- type ButtonProps = (IconButtonProps$1 | TextButtonProps) & PropsWithChildren<ButtonHTMLAttributes<HTMLButtonElement>> & {
354
+ declare const buttonVariants: readonly ["primary", "secondary", "tertiary"];
355
+ type ButtonVariant = (typeof buttonVariants)[number];
356
+ type ButtonProps = {
353
357
  /** The level of prominence. Use a primary button only once per page or section. */
354
- variant?: 'primary' | 'secondary' | 'tertiary';
355
- };
358
+ variant?: ButtonVariant;
359
+ } & PropsWithChildren<ButtonHTMLAttributes<HTMLButtonElement>> & (IconButtonProps$1 | TextButtonProps);
356
360
  /**
357
361
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-buttons-button--docs Button docs at Amsterdam Design System}
358
362
  */
@@ -389,30 +393,30 @@ type CardProps = PropsWithChildren<HTMLAttributes<HTMLElement>>;
389
393
  declare const Card: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
390
394
  children?: react.ReactNode | undefined;
391
395
  } & react.RefAttributes<HTMLElement>> & {
392
- Heading: react.ForwardRefExoticComponent<HTMLAttributes<HTMLHeadingElement> & {
393
- children?: react.ReactNode | undefined;
394
- } & {
396
+ Heading: react.ForwardRefExoticComponent<{
395
397
  color?: "inverse";
396
398
  level: 1 | 2 | 3 | 4;
397
399
  size?: "level-1" | "level-2" | "level-3" | "level-4" | "level-5" | "level-6";
398
- } & react.RefAttributes<HTMLHeadingElement>>;
399
- HeadingGroup: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
400
+ } & HTMLAttributes<HTMLHeadingElement> & {
400
401
  children?: react.ReactNode | undefined;
401
- } & {
402
+ } & react.RefAttributes<HTMLHeadingElement>>;
403
+ HeadingGroup: react.ForwardRefExoticComponent<{
402
404
  tagline: string;
405
+ } & HTMLAttributes<HTMLElement> & {
406
+ children?: react.ReactNode | undefined;
403
407
  } & react.RefAttributes<HTMLElement>>;
404
- Image: react.ForwardRefExoticComponent<AspectRatioProps & Omit<react.ImgHTMLAttributes<HTMLImageElement>, "children"> & {
408
+ Image: react.ForwardRefExoticComponent<{
405
409
  alt: string;
406
- } & react.RefAttributes<HTMLImageElement>>;
410
+ } & AspectRatioProps & Omit<react.ImgHTMLAttributes<HTMLImageElement>, "children"> & react.RefAttributes<HTMLImageElement>>;
407
411
  Link: react.ForwardRefExoticComponent<react.AnchorHTMLAttributes<HTMLAnchorElement> & {
408
412
  children?: react.ReactNode | undefined;
409
413
  } & react.RefAttributes<HTMLAnchorElement>>;
410
414
  };
411
415
 
412
- type CardHeadingGroupProps = PropsWithChildren<HTMLAttributes<HTMLElement>> & {
416
+ type CardHeadingGroupProps = {
413
417
  /** A short phrase of text, e.g. to categorise the card. Displayed above the card heading. */
414
418
  tagline: string;
415
- };
419
+ } & PropsWithChildren<HTMLAttributes<HTMLElement>>;
416
420
 
417
421
  type CardLinkProps = PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
418
422
 
@@ -432,7 +436,7 @@ declare const CharacterCount: react.ForwardRefExoticComponent<{
432
436
  maxLength: number;
433
437
  } & HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement>>;
434
438
 
435
- type CheckboxProps = PropsWithChildren<Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid' | 'type'>> & {
439
+ type CheckboxProps = {
436
440
  /**
437
441
  * An icon to display instead of the default icon.
438
442
  * @default CheckboxIcon
@@ -442,13 +446,11 @@ type CheckboxProps = PropsWithChildren<Omit<InputHTMLAttributes<HTMLInputElement
442
446
  indeterminate?: boolean;
443
447
  /** Whether the value fails a validation rule. */
444
448
  invalid?: boolean;
445
- };
449
+ } & PropsWithChildren<Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid' | 'type'>>;
446
450
  /**
447
451
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-checkbox--docs Checkbox docs at Amsterdam Design System}
448
452
  */
449
- declare const Checkbox: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid" | "type"> & {
450
- children?: ReactNode | undefined;
451
- } & {
453
+ declare const Checkbox: react.ForwardRefExoticComponent<{
452
454
  /**
453
455
  * An icon to display instead of the default icon.
454
456
  * @default CheckboxIcon
@@ -458,13 +460,15 @@ declare const Checkbox: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes
458
460
  indeterminate?: boolean;
459
461
  /** Whether the value fails a validation rule. */
460
462
  invalid?: boolean;
463
+ } & Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid" | "type"> & {
464
+ children?: ReactNode | undefined;
461
465
  } & react.RefAttributes<HTMLInputElement>>;
462
466
 
463
467
  declare const columnTags: readonly ["article", "div", "section"];
464
468
  type ColumnTag = (typeof columnTags)[number];
465
469
  declare const columnGapSizes: readonly ["none", "x-small", "small", "large", "x-large"];
466
470
  type ColumnGap = (typeof columnGapSizes)[number];
467
- type ColumnProps = PropsWithChildren<HTMLAttributes<HTMLElement>> & {
471
+ type ColumnProps = {
468
472
  /**
469
473
  * The vertical alignment of the items in the column.
470
474
  * @default start
@@ -485,13 +489,11 @@ type ColumnProps = PropsWithChildren<HTMLAttributes<HTMLElement>> & {
485
489
  * @default medium
486
490
  */
487
491
  gap?: ColumnGap;
488
- };
492
+ } & PropsWithChildren<HTMLAttributes<HTMLElement>>;
489
493
  /**
490
494
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-layout-column--docs Column docs at Amsterdam Design System}
491
495
  */
492
- declare const Column: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
493
- children?: react.ReactNode | undefined;
494
- } & {
496
+ declare const Column: react.ForwardRefExoticComponent<{
495
497
  /**
496
498
  * The vertical alignment of the items in the column.
497
499
  * @default start
@@ -512,42 +514,44 @@ declare const Column: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement
512
514
  * @default medium
513
515
  */
514
516
  gap?: ColumnGap;
517
+ } & HTMLAttributes<HTMLElement> & {
518
+ children?: react.ReactNode | undefined;
515
519
  } & react.RefAttributes<unknown>>;
516
520
 
517
521
  declare const dateInputTypes: readonly ["date", "datetime-local"];
518
522
  type DateInputType = (typeof dateInputTypes)[number];
519
- type DateInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid' | 'type'> & {
523
+ type DateInputProps = {
520
524
  /** Whether the value fails a validation rule. */
521
525
  invalid?: boolean;
522
526
  /** The kind of data that the user should provide. */
523
527
  type?: DateInputType;
524
- };
528
+ } & Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid' | 'type'>;
525
529
  /**
526
530
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-date-input--docs Date Input docs at Amsterdam Design System}
527
531
  */
528
- declare const DateInput: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid" | "type"> & {
532
+ declare const DateInput: react.ForwardRefExoticComponent<{
529
533
  /** Whether the value fails a validation rule. */
530
534
  invalid?: boolean;
531
535
  /** The kind of data that the user should provide. */
532
536
  type?: DateInputType;
533
- } & react.RefAttributes<HTMLInputElement>>;
537
+ } & Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid" | "type"> & react.RefAttributes<HTMLInputElement>>;
534
538
 
535
539
  declare const descriptionListTermsWidths: readonly ["narrow", "medium", "wide"];
536
540
  type DescriptionListTermsWidth = (typeof descriptionListTermsWidths)[number];
537
- type DescriptionListProps = PropsWithChildren<HTMLAttributes<HTMLDListElement>> & {
541
+ type DescriptionListProps = {
538
542
  /** Changes the text colour for readability on a dark background. */
539
543
  color?: 'inverse';
540
544
  termsWidth?: DescriptionListTermsWidth;
541
- };
545
+ } & PropsWithChildren<HTMLAttributes<HTMLDListElement>>;
542
546
  /**
543
547
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-text-description-list--docs Description List docs at Amsterdam Design System}
544
548
  */
545
- declare const DescriptionList: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDListElement> & {
546
- children?: react.ReactNode | undefined;
547
- } & {
549
+ declare const DescriptionList: react.ForwardRefExoticComponent<{
548
550
  /** Changes the text colour for readability on a dark background. */
549
551
  color?: "inverse";
550
552
  termsWidth?: DescriptionListTermsWidth;
553
+ } & HTMLAttributes<HTMLDListElement> & {
554
+ children?: react.ReactNode | undefined;
551
555
  } & react.RefAttributes<HTMLDListElement>> & {
552
556
  Description: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
553
557
  children?: react.ReactNode | undefined;
@@ -564,26 +568,26 @@ type DescriptionListDescriptionProps = PropsWithChildren<HTMLAttributes<HTMLElem
564
568
 
565
569
  type DescriptionListTermProps = PropsWithChildren<HTMLAttributes<HTMLElement>>;
566
570
 
567
- type DialogProps = PropsWithChildren<DialogHTMLAttributes<HTMLDialogElement>> & {
571
+ type DialogProps = {
568
572
  /** The label for the button that dismisses the Dialog. */
569
573
  closeButtonLabel?: string;
570
574
  /** Content for the footer, often one Button or an Action Group containing more of them. */
571
575
  footer?: ReactNode;
572
576
  /** The text for the Heading. */
573
577
  heading: string;
574
- };
578
+ } & PropsWithChildren<DialogHTMLAttributes<HTMLDialogElement>>;
575
579
  /**
576
580
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-containers-dialog--docs Dialog docs at Amsterdam Design System}
577
581
  */
578
- declare const Dialog: react.ForwardRefExoticComponent<DialogHTMLAttributes<HTMLDialogElement> & {
579
- children?: ReactNode | undefined;
580
- } & {
582
+ declare const Dialog: react.ForwardRefExoticComponent<{
581
583
  /** The label for the button that dismisses the Dialog. */
582
584
  closeButtonLabel?: string;
583
585
  /** Content for the footer, often one Button or an Action Group containing more of them. */
584
586
  footer?: ReactNode;
585
587
  /** The text for the Heading. */
586
588
  heading: string;
589
+ } & DialogHTMLAttributes<HTMLDialogElement> & {
590
+ children?: ReactNode | undefined;
587
591
  } & react.RefAttributes<HTMLDialogElement>> & {
588
592
  close: (event: MouseEvent<HTMLButtonElement>) => void | undefined;
589
593
  open: (id: string) => void;
@@ -613,23 +617,24 @@ declare const ErrorMessage: react.ForwardRefExoticComponent<{
613
617
  children?: react.ReactNode | undefined;
614
618
  } & react.RefAttributes<HTMLParagraphElement>>;
615
619
 
616
- type FieldProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>> & {
620
+ type FieldProps = {
617
621
  /** Whether the field has an input with a validation error */
618
622
  invalid?: boolean;
619
- };
623
+ } & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
620
624
  /**
621
625
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-field--docs Field docs at Amsterdam Design System}
622
626
  */
623
- declare const Field: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
624
- children?: react.ReactNode | undefined;
625
- } & {
627
+ declare const Field: react.ForwardRefExoticComponent<{
626
628
  /** Whether the field has an input with a validation error */
627
629
  invalid?: boolean;
630
+ } & HTMLAttributes<HTMLDivElement> & {
631
+ children?: react.ReactNode | undefined;
628
632
  } & react.RefAttributes<HTMLDivElement>>;
629
633
 
630
634
  type HintAndOptionalProps = {
631
635
  /** Show a custom hint text. */
632
636
  hint?: string;
637
+ inFieldSet?: boolean;
633
638
  /** Appends the text '(niet verplicht)' to the label or legend if no hint is provided. Use when the associated inputs are optional. */
634
639
  optional?: boolean;
635
640
  };
@@ -638,26 +643,47 @@ declare const Hint: react.ForwardRefExoticComponent<HintAndOptionalProps & HTMLA
638
643
  children?: react.ReactNode | undefined;
639
644
  } & react.RefAttributes<HTMLElement>>;
640
645
 
641
- type FieldSetProps = HintProps & PropsWithChildren<HTMLAttributes<HTMLFieldSetElement>> & {
642
- /** Whether the field set has an input with a validation error */
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. */
643
653
  invalid?: boolean;
644
654
  /** The text for the caption. */
645
655
  legend: string;
646
- };
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>>;
647
662
  /**
648
663
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-field-set--docs Field Set docs at Amsterdam Design System}
649
664
  */
650
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
+ } & {
651
681
  hint?: string;
682
+ inFieldSet?: boolean;
652
683
  optional?: boolean;
653
684
  } & HTMLAttributes<HTMLElement> & {
654
685
  children?: react.ReactNode | undefined;
655
- } & HTMLAttributes<HTMLFieldSetElement> & {
656
- /** Whether the field set has an input with a validation error */
657
- invalid?: boolean;
658
- /** The text for the caption. */
659
- legend: string;
660
- } & react.RefAttributes<HTMLFieldSetElement>>;
686
+ } & HTMLAttributes<HTMLFieldSetElement> & react.RefAttributes<HTMLFieldSetElement>>;
661
687
 
662
688
  type FigureProps = PropsWithChildren<HTMLAttributes<HTMLElement>>;
663
689
  /**
@@ -666,10 +692,10 @@ type FigureProps = PropsWithChildren<HTMLAttributes<HTMLElement>>;
666
692
  declare const Figure: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
667
693
  children?: react.ReactNode | undefined;
668
694
  } & react.RefAttributes<HTMLElement>> & {
669
- Caption: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
670
- children?: react.ReactNode | undefined;
671
- } & {
695
+ Caption: react.ForwardRefExoticComponent<{
672
696
  color?: "inverse";
697
+ } & HTMLAttributes<HTMLElement> & {
698
+ children?: react.ReactNode | undefined;
673
699
  } & react.RefAttributes<HTMLElement>>;
674
700
  };
675
701
 
@@ -686,15 +712,17 @@ type FileListProps = PropsWithChildren<HTMLAttributes<HTMLUListElement>>;
686
712
  declare const FileList: react.ForwardRefExoticComponent<HTMLAttributes<HTMLUListElement> & {
687
713
  children?: react.ReactNode | undefined;
688
714
  } & react.RefAttributes<HTMLOListElement>> & {
689
- Item: react.ForwardRefExoticComponent<HTMLAttributes<HTMLLIElement> & {
715
+ Item: react.ForwardRefExoticComponent<{
690
716
  file: File;
691
717
  onDelete?: () => void;
692
- } & react.RefAttributes<HTMLLIElement>>;
718
+ } & HTMLAttributes<HTMLLIElement> & react.RefAttributes<HTMLLIElement>>;
693
719
  };
694
720
 
721
+ declare const iconButtonColors: readonly ["contrast", "inverse"];
722
+ type IconButtonColor = (typeof iconButtonColors)[number];
695
723
  type IconButtonProps = {
696
724
  /** Changes the text colour for readability on a light or dark background. */
697
- color?: 'contrast' | 'inverse';
725
+ color?: IconButtonColor;
698
726
  /** The accessible text for the button. Will be announced by screen readers. Should describe the button’s action. */
699
727
  label: string;
700
728
  /** The size of the icon. Match it to the text that the Icon Buttons aligns with. */
@@ -707,7 +735,7 @@ type IconButtonProps = {
707
735
  */
708
736
  declare const IconButton: react.ForwardRefExoticComponent<{
709
737
  /** Changes the text colour for readability on a light or dark background. */
710
- color?: "contrast" | "inverse";
738
+ color?: IconButtonColor;
711
739
  /** The accessible text for the button. Will be announced by screen readers. Should describe the button’s action. */
712
740
  label: string;
713
741
  /** The size of the icon. Match it to the text that the Icon Buttons aligns with. */
@@ -722,17 +750,17 @@ declare const IconButton: react.ForwardRefExoticComponent<{
722
750
  */
723
751
  declare const generateAspectRatioClass: (aspectRatio?: string) => string | undefined;
724
752
 
725
- type ImageProps = AspectRatioProps & Omit<ImgHTMLAttributes<HTMLImageElement>, 'children'> & {
753
+ type ImageProps = {
726
754
  /** A textual description of the content of the image. */
727
755
  alt: string;
728
- };
756
+ } & AspectRatioProps & Omit<ImgHTMLAttributes<HTMLImageElement>, 'children'>;
729
757
  /**
730
758
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-media-image--docs Image docs at Amsterdam Design System}
731
759
  */
732
- declare const Image: react.ForwardRefExoticComponent<AspectRatioProps & Omit<ImgHTMLAttributes<HTMLImageElement>, "children"> & {
760
+ declare const Image: react.ForwardRefExoticComponent<{
733
761
  /** A textual description of the content of the image. */
734
762
  alt: string;
735
- } & react.RefAttributes<HTMLImageElement>>;
763
+ } & AspectRatioProps & Omit<ImgHTMLAttributes<HTMLImageElement>, "children"> & react.RefAttributes<HTMLImageElement>>;
736
764
 
737
765
  type ImageSliderImageProps = ImageProps;
738
766
  type ImageSliderProps = {
@@ -762,17 +790,17 @@ declare const ImageSlider: react.ForwardRefExoticComponent<{
762
790
  /** The label for the ‘previous’ button */
763
791
  previousLabel?: string;
764
792
  } & HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement>> & {
765
- Item: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
766
- children?: react.ReactNode | undefined;
767
- } & {
793
+ Item: react.ForwardRefExoticComponent<{
768
794
  slideId: number;
795
+ } & HTMLAttributes<HTMLDivElement> & {
796
+ children?: react.ReactNode | undefined;
769
797
  } & react.RefAttributes<HTMLDivElement>>;
770
798
  };
771
799
 
772
- type ImageSliderItemProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>> & {
800
+ type ImageSliderItemProps = {
773
801
  /** The identifier of the item. Must match the key or order of the slides (starting at 0). */
774
802
  slideId: number;
775
- };
803
+ } & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
776
804
 
777
805
  type ErrorLink = {
778
806
  id: string;
@@ -844,23 +872,35 @@ declare const InvalidFormAlert: react.ForwardRefExoticComponent<{
844
872
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-label--docs Label docs at Amsterdam Design System}
845
873
  */
846
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
+ } & {
847
886
  hint?: string;
887
+ inFieldSet?: boolean;
848
888
  optional?: boolean;
849
889
  } & react.HTMLAttributes<HTMLElement> & {
850
890
  children?: react.ReactNode | undefined;
851
891
  } & LabelHTMLAttributes<HTMLLabelElement> & react.RefAttributes<HTMLLabelElement>>;
852
892
 
853
- type LinkProps = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'placeholder'> & {
893
+ type LinkProps = {
854
894
  /** Changes the text colour for readability on a light or dark background. */
855
895
  color?: 'contrast' | 'inverse';
856
- };
896
+ } & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'placeholder'>;
857
897
  /**
858
898
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-navigation-link--docs Link docs at Amsterdam Design System}
859
899
  */
860
- declare const Link: react.ForwardRefExoticComponent<Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "placeholder"> & {
900
+ declare const Link: react.ForwardRefExoticComponent<{
861
901
  /** Changes the text colour for readability on a light or dark background. */
862
902
  color?: "contrast" | "inverse";
863
- } & react.RefAttributes<HTMLAnchorElement>>;
903
+ } & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "placeholder"> & react.RefAttributes<HTMLAnchorElement>>;
864
904
 
865
905
  type LinkListProps = PropsWithChildren<HTMLAttributes<HTMLUListElement>>;
866
906
  /**
@@ -870,7 +910,7 @@ declare const LinkList: react.ForwardRefExoticComponent<HTMLAttributes<HTMLUList
870
910
  children?: react.ReactNode | undefined;
871
911
  } & react.RefAttributes<HTMLUListElement>> & {
872
912
  Link: react.ForwardRefExoticComponent<{
873
- color?: "contrast" | "inverse";
913
+ color?: "inverse" | "contrast";
874
914
  icon?: IconProps["svg"];
875
915
  size?: "small" | "large";
876
916
  } & react.AnchorHTMLAttributes<HTMLAnchorElement> & {
@@ -878,9 +918,13 @@ declare const LinkList: react.ForwardRefExoticComponent<HTMLAttributes<HTMLUList
878
918
  } & react.RefAttributes<HTMLAnchorElement>>;
879
919
  };
880
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];
881
925
  type LinkListLinkProps = {
882
926
  /** Changes the text colour for readability on a light or dark background. */
883
- color?: 'contrast' | 'inverse';
927
+ color?: LinkListLinkColor;
884
928
  /**
885
929
  * An icon to display instead of the default chevron.
886
930
  * Don’t mix custom icons with chevrons in one list.
@@ -888,7 +932,7 @@ type LinkListLinkProps = {
888
932
  */
889
933
  icon?: IconProps['svg'];
890
934
  /** The size of the text. Use the same size for all items in the list. */
891
- size?: 'small' | 'large';
935
+ size?: LinkListLinkSize;
892
936
  } & PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
893
937
 
894
938
  /**
@@ -897,10 +941,10 @@ type LinkListLinkProps = {
897
941
  */
898
942
 
899
943
  type LogoBrand = 'amsterdam' | 'ggd-amsterdam' | 'museum-weesp' | 'stadsarchief' | 'stadsbank-van-lening' | 'vga-verzekeringen';
900
- type LogoProps = SVGProps<SVGSVGElement> & {
944
+ type LogoProps = {
901
945
  /** The name of the brand for which to display the logo. */
902
946
  brand?: LogoBrand;
903
- };
947
+ } & SVGProps<SVGSVGElement>;
904
948
  /**
905
949
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-media-logo--docs Logo docs at Amsterdam Design System}
906
950
  */
@@ -914,17 +958,31 @@ declare const Mark: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement>
914
958
  children?: react.ReactNode | undefined;
915
959
  } & react.RefAttributes<HTMLElement>>;
916
960
 
917
- type MenuProps = PropsWithChildren<HTMLAttributes<HTMLElement>> & {
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
+ */
918
967
  accessibleName?: string;
919
- };
968
+ /** Hides the component on narrow windows. */
969
+ inWideWindow?: boolean;
970
+ } & PropsWithChildren<HTMLAttributes<HTMLElement>>;
920
971
  /**
921
972
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-navigation-menu--docs Menu docs at Amsterdam Design System}
922
973
  */
923
- declare const Menu: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
924
- children?: react.ReactNode | undefined;
925
- } & {
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
+ */
926
980
  accessibleName?: string;
927
- } & react.RefAttributes<HTMLElement>> & {
981
+ /** Hides the component on narrow windows. */
982
+ inWideWindow?: boolean;
983
+ } & HTMLAttributes<HTMLElement> & {
984
+ children?: react.ReactNode | undefined;
985
+ } & react.RefAttributes<any>> & {
928
986
  Link: react.ForwardRefExoticComponent<{
929
987
  color?: "contrast" | "inverse";
930
988
  icon: IconProps["svg"];
@@ -934,32 +992,35 @@ declare const Menu: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement>
934
992
  };
935
993
 
936
994
  type MenuLinkProps = {
937
- /** Changes the text colour for readability on a light or dark background. */
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
+ */
938
999
  color?: 'contrast' | 'inverse';
939
- /** An icon to display instead of the default chevron. Don’t mix custom icons with chevrons in one list. */
1000
+ /** The icon to display for the menu icon. Use the filled variant. */
940
1001
  icon: IconProps['svg'];
941
1002
  } & PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
942
1003
 
943
- type OrderedListProps = PropsWithChildren<OlHTMLAttributes<HTMLOListElement>> & {
1004
+ type OrderedListProps = {
944
1005
  /** Changes the text colour for readability on a dark background. */
945
1006
  color?: 'inverse';
946
1007
  /** Whether the list items show a marker. */
947
1008
  markers?: boolean;
948
1009
  /** The size of the text. */
949
1010
  size?: 'small';
950
- };
1011
+ } & PropsWithChildren<OlHTMLAttributes<HTMLOListElement>>;
951
1012
  /**
952
1013
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-text-ordered-list--docs Ordered List docs at Amsterdam Design System}
953
1014
  */
954
- declare const OrderedList: react.ForwardRefExoticComponent<OlHTMLAttributes<HTMLOListElement> & {
955
- children?: react.ReactNode | undefined;
956
- } & {
1015
+ declare const OrderedList: react.ForwardRefExoticComponent<{
957
1016
  /** Changes the text colour for readability on a dark background. */
958
1017
  color?: "inverse";
959
1018
  /** Whether the list items show a marker. */
960
1019
  markers?: boolean;
961
1020
  /** The size of the text. */
962
1021
  size?: "small";
1022
+ } & OlHTMLAttributes<HTMLOListElement> & {
1023
+ children?: react.ReactNode | undefined;
963
1024
  } & react.RefAttributes<HTMLOListElement>> & {
964
1025
  Item: react.ForwardRefExoticComponent<react.LiHTMLAttributes<HTMLLIElement> & {
965
1026
  children?: react.ReactNode | undefined;
@@ -976,11 +1037,15 @@ declare const Overlap: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivEle
976
1037
  children?: react.ReactNode | undefined;
977
1038
  } & react.RefAttributes<HTMLDivElement>>;
978
1039
 
979
- type PageProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
1040
+ type PageProps = {
1041
+ withMenu?: boolean;
1042
+ } & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
980
1043
  /**
981
1044
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-containers-page--docs Page docs at Amsterdam Design System}
982
1045
  */
983
- declare const Page: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
1046
+ declare const Page: react.ForwardRefExoticComponent<{
1047
+ withMenu?: boolean;
1048
+ } & HTMLAttributes<HTMLDivElement> & {
984
1049
  children?: react.ReactNode | undefined;
985
1050
  } & react.RefAttributes<HTMLDivElement>>;
986
1051
 
@@ -1008,7 +1073,7 @@ type PageFooterMenuLinkProps = PropsWithChildren<AnchorHTMLAttributes<HTMLAnchor
1008
1073
 
1009
1074
  type PageFooterSpotlightProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
1010
1075
 
1011
- type PageHeaderProps = HTMLAttributes<HTMLElement> & {
1076
+ type PageHeaderProps = {
1012
1077
  /** The name of the application. */
1013
1078
  brandName?: string;
1014
1079
  /** The accessible name of the logo. */
@@ -1029,11 +1094,11 @@ type PageHeaderProps = HTMLAttributes<HTMLElement> & {
1029
1094
  navigationLabel?: string;
1030
1095
  /** Whether the menu button is visible on wide screens. */
1031
1096
  noMenuButtonOnWideWindow?: boolean;
1032
- };
1097
+ } & HTMLAttributes<HTMLElement>;
1033
1098
  /**
1034
1099
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-containers-page-header--docs Page Header docs at Amsterdam Design System}
1035
1100
  */
1036
- declare const PageHeader: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
1101
+ declare const PageHeader: react.ForwardRefExoticComponent<{
1037
1102
  /** The name of the application. */
1038
1103
  brandName?: string;
1039
1104
  /** The accessible name of the logo. */
@@ -1054,35 +1119,39 @@ declare const PageHeader: react.ForwardRefExoticComponent<HTMLAttributes<HTMLEle
1054
1119
  navigationLabel?: string;
1055
1120
  /** Whether the menu button is visible on wide screens. */
1056
1121
  noMenuButtonOnWideWindow?: boolean;
1057
- } & react.RefAttributes<HTMLElement>> & {
1122
+ } & HTMLAttributes<HTMLElement> & react.RefAttributes<HTMLElement>> & {
1058
1123
  GridCellNarrowWindowOnly: react.ForwardRefExoticComponent<GridCellProps & react.RefAttributes<HTMLElement>>;
1059
- MenuLink: react.ForwardRefExoticComponent<AnchorHTMLAttributes<HTMLAnchorElement> & {
1060
- children?: ReactNode | undefined;
1061
- } & {
1124
+ MenuLink: react.ForwardRefExoticComponent<{
1062
1125
  fixed?: boolean;
1126
+ icon?: IconProps["svg"];
1127
+ } & AnchorHTMLAttributes<HTMLAnchorElement> & {
1128
+ children?: ReactNode | undefined;
1063
1129
  } & react.RefAttributes<HTMLAnchorElement>>;
1064
1130
  };
1065
1131
 
1066
- type PageHeaderMenuLinkProps = PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>> & {
1132
+ type PageHeaderMenuLinkProps = {
1133
+ /** Whether the link appears in the Page Header on narrow windows. */
1067
1134
  fixed?: boolean;
1068
- };
1135
+ /** An icon to display at the end of the label. */
1136
+ icon?: IconProps['svg'];
1137
+ } & PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
1069
1138
 
1070
- type PageHeadingProps = PropsWithChildren<HTMLAttributes<HTMLHeadingElement>> & {
1139
+ type PageHeadingProps = {
1071
1140
  /** Changes the text colour for readability on a dark background. */
1072
1141
  color?: 'inverse';
1073
- };
1142
+ } & PropsWithChildren<HTMLAttributes<HTMLHeadingElement>>;
1074
1143
  /**
1075
1144
  * @deprecated We no longer use this size of headings. Use `Heading` with level 1 instead.
1076
1145
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-text-page-heading--docs Page Heading docs at Amsterdam Design System}
1077
1146
  */
1078
- declare const PageHeading: react.ForwardRefExoticComponent<HTMLAttributes<HTMLHeadingElement> & {
1079
- children?: react.ReactNode | undefined;
1080
- } & {
1147
+ declare const PageHeading: react.ForwardRefExoticComponent<{
1081
1148
  /** Changes the text colour for readability on a dark background. */
1082
1149
  color?: "inverse";
1150
+ } & HTMLAttributes<HTMLHeadingElement> & {
1151
+ children?: react.ReactNode | undefined;
1083
1152
  } & react.RefAttributes<HTMLHeadingElement>>;
1084
1153
 
1085
- type PaginationProps = HTMLAttributes<HTMLElement> & {
1154
+ type PaginationProps = {
1086
1155
  /** The accessible name for the Pagination component. */
1087
1156
  accessibleName?: string;
1088
1157
  /**
@@ -1129,11 +1198,11 @@ type PaginationProps = HTMLAttributes<HTMLElement> & {
1129
1198
  * Note: must be unique for the page.
1130
1199
  */
1131
1200
  visuallyHiddenLabelId?: string;
1132
- };
1201
+ } & HTMLAttributes<HTMLElement>;
1133
1202
  /**
1134
1203
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-navigation-pagination--docs Pagination docs at Amsterdam Design System}
1135
1204
  */
1136
- declare const Pagination: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
1205
+ declare const Pagination: react.ForwardRefExoticComponent<{
1137
1206
  /** The accessible name for the Pagination component. */
1138
1207
  accessibleName?: string;
1139
1208
  /**
@@ -1180,39 +1249,39 @@ declare const Pagination: react.ForwardRefExoticComponent<HTMLAttributes<HTMLEle
1180
1249
  * Note: must be unique for the page.
1181
1250
  */
1182
1251
  visuallyHiddenLabelId?: string;
1183
- } & react.RefAttributes<HTMLElement>>;
1252
+ } & HTMLAttributes<HTMLElement> & react.RefAttributes<HTMLElement>>;
1184
1253
 
1185
- type ParagraphProps = PropsWithChildren<HTMLAttributes<HTMLParagraphElement>> & {
1254
+ type ParagraphProps = {
1186
1255
  /** Changes the text colour for readability on a dark background. */
1187
1256
  color?: 'inverse';
1188
1257
  /** The size of the text. */
1189
1258
  size?: 'small' | 'large';
1190
- };
1259
+ } & PropsWithChildren<HTMLAttributes<HTMLParagraphElement>>;
1191
1260
  /**
1192
1261
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-text-paragraph--docs Paragraph docs at Amsterdam Design System}
1193
1262
  */
1194
- declare const Paragraph: react.ForwardRefExoticComponent<HTMLAttributes<HTMLParagraphElement> & {
1195
- children?: react.ReactNode | undefined;
1196
- } & {
1263
+ declare const Paragraph: react.ForwardRefExoticComponent<{
1197
1264
  /** Changes the text colour for readability on a dark background. */
1198
1265
  color?: "inverse";
1199
1266
  /** The size of the text. */
1200
1267
  size?: "small" | "large";
1268
+ } & HTMLAttributes<HTMLParagraphElement> & {
1269
+ children?: react.ReactNode | undefined;
1201
1270
  } & react.RefAttributes<HTMLParagraphElement>>;
1202
1271
 
1203
- type PasswordInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid' | 'autoCapitalize' | 'autoCorrect' | 'spellCheck' | 'type'> & {
1272
+ type PasswordInputProps = {
1204
1273
  /** Whether the value fails a validation rule. */
1205
1274
  invalid?: boolean;
1206
- };
1275
+ } & Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid' | 'autoCapitalize' | 'autoCorrect' | 'spellCheck' | 'type'>;
1207
1276
  /**
1208
1277
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-password-input--docs Password Input docs at Amsterdam Design System}
1209
1278
  */
1210
- declare const PasswordInput: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "autoCapitalize" | "spellCheck" | "autoCorrect" | "aria-invalid" | "type"> & {
1279
+ declare const PasswordInput: react.ForwardRefExoticComponent<{
1211
1280
  /** Whether the value fails a validation rule. */
1212
1281
  invalid?: boolean;
1213
- } & react.RefAttributes<HTMLInputElement>>;
1282
+ } & Omit<InputHTMLAttributes<HTMLInputElement>, "autoCapitalize" | "spellCheck" | "autoCorrect" | "aria-invalid" | "type"> & react.RefAttributes<HTMLInputElement>>;
1214
1283
 
1215
- type RadioProps = PropsWithChildren<Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid' | 'type'>> & {
1284
+ type RadioProps = {
1216
1285
  /**
1217
1286
  * An icon to display instead of the default icon.
1218
1287
  * @default RadioIcon
@@ -1220,13 +1289,11 @@ type RadioProps = PropsWithChildren<Omit<InputHTMLAttributes<HTMLInputElement>,
1220
1289
  icon?: Function | ReactNode;
1221
1290
  /** Whether the value fails a validation rule. */
1222
1291
  invalid?: boolean;
1223
- };
1292
+ } & PropsWithChildren<Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid' | 'type'>>;
1224
1293
  /**
1225
1294
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-radio--docs Radio docs at Amsterdam Design System}
1226
1295
  */
1227
- declare const Radio: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid" | "type"> & {
1228
- children?: ReactNode | undefined;
1229
- } & {
1296
+ declare const Radio: react.ForwardRefExoticComponent<{
1230
1297
  /**
1231
1298
  * An icon to display instead of the default icon.
1232
1299
  * @default RadioIcon
@@ -1234,13 +1301,15 @@ declare const Radio: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HT
1234
1301
  icon?: Function | ReactNode;
1235
1302
  /** Whether the value fails a validation rule. */
1236
1303
  invalid?: boolean;
1304
+ } & Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid" | "type"> & {
1305
+ children?: ReactNode | undefined;
1237
1306
  } & react.RefAttributes<HTMLInputElement>>;
1238
1307
 
1239
1308
  declare const rowTags: readonly ["article", "div", "section"];
1240
1309
  type RowTag = (typeof rowTags)[number];
1241
1310
  declare const rowGapSizes: readonly ["none", "x-small", "small", "large", "x-large"];
1242
1311
  type RowGap = (typeof rowGapSizes)[number];
1243
- type RowProps = PropsWithChildren<HTMLAttributes<HTMLElement>> & {
1312
+ type RowProps = {
1244
1313
  /**
1245
1314
  * The horizontal alignment of the items in the row.
1246
1315
  * @default start
@@ -1266,13 +1335,11 @@ type RowProps = PropsWithChildren<HTMLAttributes<HTMLElement>> & {
1266
1335
  * @default false
1267
1336
  */
1268
1337
  wrap?: boolean;
1269
- };
1338
+ } & PropsWithChildren<HTMLAttributes<HTMLElement>>;
1270
1339
  /**
1271
1340
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-layout-row--docs Row docs at Amsterdam Design System}
1272
1341
  */
1273
- declare const Row: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
1274
- children?: react.ReactNode | undefined;
1275
- } & {
1342
+ declare const Row: react.ForwardRefExoticComponent<{
1276
1343
  /**
1277
1344
  * The horizontal alignment of the items in the row.
1278
1345
  * @default start
@@ -1298,6 +1365,8 @@ declare const Row: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> &
1298
1365
  * @default false
1299
1366
  */
1300
1367
  wrap?: boolean;
1368
+ } & HTMLAttributes<HTMLElement> & {
1369
+ children?: react.ReactNode | undefined;
1301
1370
  } & react.RefAttributes<unknown>>;
1302
1371
 
1303
1372
  type SearchFieldProps = PropsWithChildren<HTMLAttributes<HTMLFormElement>>;
@@ -1585,28 +1654,28 @@ declare const SearchField: react.ForwardRefExoticComponent<HTMLAttributes<HTMLFo
1585
1654
  formTarget?: string | undefined | undefined;
1586
1655
  name?: string | undefined | undefined;
1587
1656
  } & react.RefAttributes<HTMLButtonElement>>;
1588
- Input: react.ForwardRefExoticComponent<react.InputHTMLAttributes<HTMLInputElement> & {
1657
+ Input: react.ForwardRefExoticComponent<{
1589
1658
  invalid?: boolean;
1590
1659
  label?: string;
1591
- } & react.RefAttributes<HTMLInputElement>>;
1660
+ } & react.InputHTMLAttributes<HTMLInputElement> & react.RefAttributes<HTMLInputElement>>;
1592
1661
  };
1593
1662
 
1594
1663
  type SelectOptionProps = OptionHTMLAttributes<HTMLOptionElement>;
1595
1664
 
1596
1665
  type SelectOptionGroupProps = OptgroupHTMLAttributes<HTMLOptGroupElement>;
1597
1666
 
1598
- type SelectProps = PropsWithChildren<Omit<SelectHTMLAttributes<HTMLSelectElement>, 'aria-invalid'>> & {
1667
+ type SelectProps = {
1599
1668
  /** Whether the value fails a validation rule. */
1600
1669
  invalid?: boolean;
1601
- };
1670
+ } & PropsWithChildren<Omit<SelectHTMLAttributes<HTMLSelectElement>, 'aria-invalid'>>;
1602
1671
  /**
1603
1672
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-select--docs Select docs at Amsterdam Design System}
1604
1673
  */
1605
- declare const Select: react.ForwardRefExoticComponent<Omit<SelectHTMLAttributes<HTMLSelectElement>, "aria-invalid"> & {
1606
- children?: react.ReactNode | undefined;
1607
- } & {
1674
+ declare const Select: react.ForwardRefExoticComponent<{
1608
1675
  /** Whether the value fails a validation rule. */
1609
1676
  invalid?: boolean;
1677
+ } & Omit<SelectHTMLAttributes<HTMLSelectElement>, "aria-invalid"> & {
1678
+ children?: react.ReactNode | undefined;
1610
1679
  } & react.RefAttributes<HTMLSelectElement>> & {
1611
1680
  Group: react.ForwardRefExoticComponent<SelectOptionGroupProps & {
1612
1681
  children?: react.ReactNode | undefined;
@@ -1628,25 +1697,25 @@ declare const spotlightTags: readonly ["article", "aside", "div", "footer", "sec
1628
1697
  type SpotlightTag = (typeof spotlightTags)[number];
1629
1698
  declare const spotlightColors: readonly ["azure", "green", "lime", "magenta", "orange", "yellow"];
1630
1699
  type SpotlightColor = (typeof spotlightColors)[number];
1631
- type SpotlightProps = PropsWithChildren<HTMLAttributes<HTMLElement>> & {
1700
+ type SpotlightProps = {
1632
1701
  /** The HTML element to use. */
1633
1702
  as?: SpotlightTag;
1634
1703
  /** The background colour. */
1635
1704
  color?: SpotlightColor;
1636
- };
1705
+ } & PropsWithChildren<HTMLAttributes<HTMLElement>>;
1637
1706
  /**
1638
1707
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-containers-spotlight--docs Spotlight docs at Amsterdam Design System}
1639
1708
  */
1640
- declare const Spotlight: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
1641
- children?: react.ReactNode | undefined;
1642
- } & {
1709
+ declare const Spotlight: react.ForwardRefExoticComponent<{
1643
1710
  /** The HTML element to use. */
1644
1711
  as?: SpotlightTag;
1645
1712
  /** The background colour. */
1646
1713
  color?: SpotlightColor;
1714
+ } & HTMLAttributes<HTMLElement> & {
1715
+ children?: react.ReactNode | undefined;
1647
1716
  } & react.RefAttributes<unknown>>;
1648
1717
 
1649
- type StandaloneLinkProps = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'placeholder'> & {
1718
+ type StandaloneLinkProps = {
1650
1719
  /** Changes the text colour for readability on a light or dark background. */
1651
1720
  color?: 'contrast' | 'inverse';
1652
1721
  /**
@@ -1654,11 +1723,11 @@ type StandaloneLinkProps = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'placeh
1654
1723
  * @default ChevronForwardIcon
1655
1724
  */
1656
1725
  icon?: IconProps['svg'];
1657
- };
1726
+ } & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'placeholder'>;
1658
1727
  /**
1659
1728
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-navigation-standalone-link--docs Standalone Link docs at Amsterdam Design System}
1660
1729
  */
1661
- declare const StandaloneLink: react.ForwardRefExoticComponent<Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "placeholder"> & {
1730
+ declare const StandaloneLink: react.ForwardRefExoticComponent<{
1662
1731
  /** Changes the text colour for readability on a light or dark background. */
1663
1732
  color?: "contrast" | "inverse";
1664
1733
  /**
@@ -1666,7 +1735,7 @@ declare const StandaloneLink: react.ForwardRefExoticComponent<Omit<AnchorHTMLAtt
1666
1735
  * @default ChevronForwardIcon
1667
1736
  */
1668
1737
  icon?: IconProps["svg"];
1669
- } & react.RefAttributes<HTMLAnchorElement>>;
1738
+ } & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "placeholder"> & react.RefAttributes<HTMLAnchorElement>>;
1670
1739
 
1671
1740
  type SwitchProps = PropsWithChildren<InputHTMLAttributes<HTMLInputElement>>;
1672
1741
  /**
@@ -1706,7 +1775,7 @@ declare const Table: react.ForwardRefExoticComponent<TableHTMLAttributes<HTMLTab
1706
1775
  } & react.RefAttributes<HTMLTableRowElement>>;
1707
1776
  };
1708
1777
 
1709
- type TableOfContentsProps = PropsWithChildren<HTMLAttributes<HTMLElement>> & {
1778
+ type TableOfContentsProps = {
1710
1779
  /** The text for the Heading. */
1711
1780
  heading?: string;
1712
1781
  /**
@@ -1714,13 +1783,11 @@ type TableOfContentsProps = PropsWithChildren<HTMLAttributes<HTMLElement>> & {
1714
1783
  * Visually, it always has the size of a level 3 Heading.
1715
1784
  */
1716
1785
  headingLevel?: HeadingProps['level'];
1717
- };
1786
+ } & PropsWithChildren<HTMLAttributes<HTMLElement>>;
1718
1787
  /**
1719
1788
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-navigation-table-of-contents--docs Table Of Contents docs at Amsterdam Design System}
1720
1789
  */
1721
- declare const TableOfContents: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
1722
- children?: react.ReactNode | undefined;
1723
- } & {
1790
+ declare const TableOfContents: react.ForwardRefExoticComponent<{
1724
1791
  /** The text for the Heading. */
1725
1792
  heading?: string;
1726
1793
  /**
@@ -1728,130 +1795,138 @@ declare const TableOfContents: react.ForwardRefExoticComponent<HTMLAttributes<HT
1728
1795
  * Visually, it always has the size of a level 3 Heading.
1729
1796
  */
1730
1797
  headingLevel?: HeadingProps["level"];
1798
+ } & HTMLAttributes<HTMLElement> & {
1799
+ children?: react.ReactNode | undefined;
1731
1800
  } & react.RefAttributes<HTMLElement>> & {
1732
- Link: react.ForwardRefExoticComponent<react.AnchorHTMLAttributes<HTMLAnchorElement> & {
1801
+ Link: react.ForwardRefExoticComponent<{
1733
1802
  label: string;
1734
- } & react.RefAttributes<HTMLAnchorElement>>;
1803
+ } & react.AnchorHTMLAttributes<HTMLAnchorElement> & react.RefAttributes<HTMLAnchorElement>>;
1735
1804
  List: react.ForwardRefExoticComponent<HTMLAttributes<HTMLUListElement> & {
1736
1805
  children?: react.ReactNode | undefined;
1737
1806
  } & react.RefAttributes<HTMLUListElement>>;
1738
1807
  };
1739
1808
 
1740
- type TableOfContentsLinkProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
1809
+ type TableOfContentsLinkProps = {
1741
1810
  /** The text for the link. */
1742
1811
  label: string;
1743
- };
1812
+ } & AnchorHTMLAttributes<HTMLAnchorElement>;
1744
1813
 
1745
1814
  type TableOfContentsListProps = PropsWithChildren<HTMLAttributes<HTMLUListElement>>;
1746
1815
 
1747
- type TabsProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>> & {
1816
+ type TabsProps = {
1748
1817
  /** The identifier of the initially active Tab. Corresponds to its Panel `id` value. */
1749
1818
  activeTab?: string;
1750
1819
  onTabChange?: (panelId: string) => void;
1751
- };
1820
+ } & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
1752
1821
  /**
1753
1822
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-containers-tabs--docs Tabs docs at Amsterdam Design System}
1754
1823
  */
1755
- declare const Tabs: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
1756
- children?: react.ReactNode | undefined;
1757
- } & {
1824
+ declare const Tabs: react.ForwardRefExoticComponent<{
1758
1825
  /** The identifier of the initially active Tab. Corresponds to its Panel `id` value. */
1759
1826
  activeTab?: string;
1760
1827
  onTabChange?: (panelId: string) => void;
1828
+ } & HTMLAttributes<HTMLDivElement> & {
1829
+ children?: react.ReactNode | undefined;
1761
1830
  } & react.RefAttributes<HTMLDivElement>> & {
1762
- Button: react.ForwardRefExoticComponent<react.ButtonHTMLAttributes<HTMLButtonElement> & {
1763
- children?: react.ReactNode | undefined;
1764
- } & {
1831
+ Button: react.ForwardRefExoticComponent<{
1765
1832
  'aria-controls': string;
1833
+ } & react.ButtonHTMLAttributes<HTMLButtonElement> & {
1834
+ children?: react.ReactNode | undefined;
1766
1835
  } & react.RefAttributes<HTMLButtonElement>>;
1767
1836
  List: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
1768
1837
  children?: react.ReactNode | undefined;
1769
1838
  } & react.RefAttributes<HTMLDivElement>>;
1770
- Panel: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
1771
- children?: react.ReactNode | undefined;
1772
- } & {
1839
+ Panel: react.ForwardRefExoticComponent<{
1773
1840
  id: string;
1841
+ } & HTMLAttributes<HTMLDivElement> & {
1842
+ children?: react.ReactNode | undefined;
1774
1843
  } & react.RefAttributes<HTMLDivElement>>;
1775
1844
  };
1776
1845
 
1777
- type TabsButtonProps = PropsWithChildren<ButtonHTMLAttributes<HTMLButtonElement>> & {
1846
+ type TabsButtonProps = {
1778
1847
  /** The identifier of the corresponding tab panel. */
1779
1848
  'aria-controls': string;
1780
- };
1849
+ } & PropsWithChildren<ButtonHTMLAttributes<HTMLButtonElement>>;
1781
1850
 
1782
1851
  type TabsListProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
1783
1852
 
1784
- type TabsPanelProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>> & {
1853
+ type TabsPanelProps = {
1785
1854
  /** The identifier of the Tab Panel. */
1786
1855
  id: string;
1787
- };
1856
+ } & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
1788
1857
 
1789
- type TextAreaProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'aria-invalid'> & {
1858
+ type TextAreaProps = {
1790
1859
  /** Whether the value fails a validation rule. */
1791
1860
  invalid?: boolean;
1792
- /** Allows the user to resize the text box. The default is resizing in both directions. */
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
+ */
1793
1865
  resize?: 'none' | 'horizontal' | 'vertical';
1794
- };
1866
+ } & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'aria-invalid'>;
1795
1867
  /**
1796
1868
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-text-area--docs Text Area docs at Amsterdam Design System}
1797
1869
  */
1798
- declare const TextArea: react.ForwardRefExoticComponent<Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "aria-invalid"> & {
1870
+ declare const TextArea: react.ForwardRefExoticComponent<{
1799
1871
  /** Whether the value fails a validation rule. */
1800
1872
  invalid?: boolean;
1801
- /** Allows the user to resize the text box. The default is resizing in both directions. */
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
+ */
1802
1877
  resize?: "none" | "horizontal" | "vertical";
1803
- } & react.RefAttributes<HTMLTextAreaElement>>;
1878
+ } & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "aria-invalid"> & react.RefAttributes<HTMLTextAreaElement>>;
1804
1879
 
1805
1880
  declare const textInputTypes: readonly ["email", "tel", "text", "url"];
1806
1881
  type TextInputType = (typeof textInputTypes)[number];
1807
- type TextInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid'> & {
1882
+ type TextInputProps = {
1808
1883
  /** Whether the value fails a validation rule. */
1809
1884
  invalid?: boolean;
1810
1885
  /** The kind of data that the user should provide. */
1811
1886
  type?: TextInputType;
1812
- };
1887
+ } & Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid'>;
1813
1888
  /**
1814
1889
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-text-input--docs Text Input docs at Amsterdam Design System}
1815
1890
  */
1816
- declare const TextInput: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid"> & {
1891
+ declare const TextInput: react.ForwardRefExoticComponent<{
1817
1892
  /** Whether the value fails a validation rule. */
1818
1893
  invalid?: boolean;
1819
1894
  /** The kind of data that the user should provide. */
1820
1895
  type?: TextInputType;
1821
- } & react.RefAttributes<HTMLInputElement>>;
1896
+ } & Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid"> & react.RefAttributes<HTMLInputElement>>;
1822
1897
 
1823
- type TimeInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid' | 'type'> & {
1898
+ type TimeInputProps = {
1824
1899
  /** Whether the value fails a validation rule. */
1825
1900
  invalid?: boolean;
1826
- };
1901
+ } & Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid' | 'type'>;
1827
1902
  /**
1828
1903
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-time-input--docs Time Input docs at Amsterdam Design System}
1829
1904
  */
1830
- declare const TimeInput: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid" | "type"> & {
1905
+ declare const TimeInput: react.ForwardRefExoticComponent<{
1831
1906
  /** Whether the value fails a validation rule. */
1832
1907
  invalid?: boolean;
1833
- } & react.RefAttributes<HTMLInputElement>>;
1908
+ } & Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid" | "type"> & react.RefAttributes<HTMLInputElement>>;
1834
1909
 
1835
- type UnorderedListProps = PropsWithChildren<HTMLAttributes<HTMLUListElement>> & {
1910
+ type UnorderedListProps = {
1836
1911
  /** Changes the text colour for readability on a dark background. */
1837
1912
  color?: 'inverse';
1838
1913
  /** Whether the list items show a marker. */
1839
1914
  markers?: boolean;
1840
1915
  /** The size of the text. */
1841
1916
  size?: 'small';
1842
- };
1917
+ } & PropsWithChildren<HTMLAttributes<HTMLUListElement>>;
1843
1918
  /**
1844
1919
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-text-unordered-list--docs Unordered List docs at Amsterdam Design System}
1845
1920
  */
1846
- declare const UnorderedList: react.ForwardRefExoticComponent<HTMLAttributes<HTMLUListElement> & {
1847
- children?: react.ReactNode | undefined;
1848
- } & {
1921
+ declare const UnorderedList: react.ForwardRefExoticComponent<{
1849
1922
  /** Changes the text colour for readability on a dark background. */
1850
1923
  color?: "inverse";
1851
1924
  /** Whether the list items show a marker. */
1852
1925
  markers?: boolean;
1853
1926
  /** The size of the text. */
1854
1927
  size?: "small";
1928
+ } & HTMLAttributes<HTMLUListElement> & {
1929
+ children?: react.ReactNode | undefined;
1855
1930
  } & react.RefAttributes<HTMLUListElement>> & {
1856
1931
  Item: react.ForwardRefExoticComponent<react.LiHTMLAttributes<HTMLLIElement> & {
1857
1932
  children?: react.ReactNode | undefined;