@amsterdam/design-system-react 2.1.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (262) hide show
  1. package/dist/Avatar/Avatar.d.ts +2 -2
  2. package/dist/Card/Card.d.ts +1 -1
  3. package/dist/Card/CardHeading.d.ts +1 -1
  4. package/dist/Checkbox/Checkbox.d.ts +1 -1
  5. package/dist/DateInput/DateInput.d.ts +1 -1
  6. package/dist/FieldSet/FieldSet.d.ts +11 -0
  7. package/dist/FieldSet/FieldSet.js +3 -3
  8. package/dist/Hint/Hint.d.ts +1 -0
  9. package/dist/Hint/Hint.js +2 -2
  10. package/dist/Image/Image.js +1 -1
  11. package/dist/Label/Label.d.ts +11 -0
  12. package/dist/Label/Label.js +2 -2
  13. package/dist/LinkList/LinkList.d.ts +1 -1
  14. package/dist/Menu/MenuLink.d.ts +2 -2
  15. package/dist/Page/Page.d.ts +6 -2
  16. package/dist/Page/Page.js +1 -1
  17. package/dist/PageHeader/PageHeader.d.ts +1 -0
  18. package/dist/PageHeader/PageHeaderMenuIcon.js +1 -1
  19. package/dist/PageHeader/PageHeaderMenuLink.d.ts +7 -0
  20. package/dist/PageHeader/PageHeaderMenuLink.js +3 -2
  21. package/dist/PasswordInput/PasswordInput.d.ts +1 -1
  22. package/dist/Radio/Radio.d.ts +1 -1
  23. package/dist/SearchField/SearchField.d.ts +1 -1
  24. package/dist/TimeInput/TimeInput.d.ts +1 -1
  25. package/dist/index.cjs.js +29 -28
  26. package/dist/index.cjs.js.map +1 -1
  27. package/dist/index.d.ts +1935 -61
  28. package/dist/index.esm.js +29 -28
  29. package/dist/index.esm.js.map +1 -1
  30. package/dist/tsconfig.build.tsbuildinfo +1 -1
  31. package/package.json +5 -5
  32. package/dist/Accordion/Accordion.test.d.ts +0 -5
  33. package/dist/Accordion/Accordion.test.js +0 -44
  34. package/dist/Accordion/AccordionSection.test.d.ts +0 -5
  35. package/dist/Accordion/AccordionSection.test.js +0 -100
  36. package/dist/ActionGroup/ActionGroup.test.d.ts +0 -5
  37. package/dist/ActionGroup/ActionGroup.test.js +0 -33
  38. package/dist/Alert/Alert.test.d.ts +0 -5
  39. package/dist/Alert/Alert.test.js +0 -74
  40. package/dist/App/App.d.ts +0 -12
  41. package/dist/App/App.js +0 -8
  42. package/dist/App/App.test.d.ts +0 -5
  43. package/dist/App/App.test.js +0 -33
  44. package/dist/App/index.d.ts +0 -6
  45. package/dist/App/index.js +0 -5
  46. package/dist/AppNavigation/AppNavigation.d.ts +0 -45
  47. package/dist/AppNavigation/AppNavigation.js +0 -18
  48. package/dist/AppNavigation/AppNavigation.test.d.ts +0 -5
  49. package/dist/AppNavigation/AppNavigation.test.js +0 -33
  50. package/dist/AppNavigation/AppNavigationButton.d.ts +0 -18
  51. package/dist/AppNavigation/AppNavigationButton.js +0 -17
  52. package/dist/AppNavigation/AppNavigationLink.d.ts +0 -19
  53. package/dist/AppNavigation/AppNavigationLink.js +0 -19
  54. package/dist/AppNavigation/AppNavigationMenu.d.ts +0 -9
  55. package/dist/AppNavigation/AppNavigationMenu.js +0 -5
  56. package/dist/AppNavigation/index.d.ts +0 -6
  57. package/dist/AppNavigation/index.js +0 -5
  58. package/dist/Avatar/Avatar.test.d.ts +0 -5
  59. package/dist/Avatar/Avatar.test.js +0 -63
  60. package/dist/Badge/Badge.test.d.ts +0 -5
  61. package/dist/Badge/Badge.test.js +0 -43
  62. package/dist/Blockquote/Blockquote.test.d.ts +0 -5
  63. package/dist/Blockquote/Blockquote.test.js +0 -46
  64. package/dist/Breadcrumb/Breadcrumb.test.d.ts +0 -5
  65. package/dist/Breadcrumb/Breadcrumb.test.js +0 -45
  66. package/dist/Breadcrumb/BreadcrumbLink.test.d.ts +0 -5
  67. package/dist/Breadcrumb/BreadcrumbLink.test.js +0 -40
  68. package/dist/Breakout/Breakout.test.d.ts +0 -5
  69. package/dist/Breakout/Breakout.test.js +0 -62
  70. package/dist/Breakout/BreakoutCell.test.d.ts +0 -5
  71. package/dist/Breakout/BreakoutCell.test.js +0 -128
  72. package/dist/Button/Button.test.d.ts +0 -5
  73. package/dist/Button/Button.test.js +0 -114
  74. package/dist/CallToActionLink/CallToActionLink.test.d.ts +0 -5
  75. package/dist/CallToActionLink/CallToActionLink.test.js +0 -33
  76. package/dist/Card/Card.test.d.ts +0 -5
  77. package/dist/Card/Card.test.js +0 -33
  78. package/dist/Card/CardHeading.test.d.ts +0 -5
  79. package/dist/Card/CardHeading.test.js +0 -38
  80. package/dist/Card/CardHeadingGroup.test.d.ts +0 -5
  81. package/dist/Card/CardHeadingGroup.test.js +0 -38
  82. package/dist/Card/CardImage.test.d.ts +0 -5
  83. package/dist/Card/CardImage.test.js +0 -33
  84. package/dist/Card/CardLink.test.d.ts +0 -5
  85. package/dist/Card/CardLink.test.js +0 -33
  86. package/dist/CharacterCount/CharacterCount.test.d.ts +0 -5
  87. package/dist/CharacterCount/CharacterCount.test.js +0 -38
  88. package/dist/Checkbox/Checkbox.test.d.ts +0 -5
  89. package/dist/Checkbox/Checkbox.test.js +0 -142
  90. package/dist/Column/Column.test.d.ts +0 -5
  91. package/dist/Column/Column.test.js +0 -59
  92. package/dist/DateInput/DateInput.test.d.ts +0 -5
  93. package/dist/DateInput/DateInput.test.js +0 -58
  94. package/dist/DescriptionList/DescriptionList.test.d.ts +0 -5
  95. package/dist/DescriptionList/DescriptionList.test.js +0 -43
  96. package/dist/DescriptionList/DescriptionListDescription.test.d.ts +0 -5
  97. package/dist/DescriptionList/DescriptionListDescription.test.js +0 -33
  98. package/dist/DescriptionList/DescriptionListSection.test.d.ts +0 -5
  99. package/dist/DescriptionList/DescriptionListSection.test.js +0 -33
  100. package/dist/DescriptionList/DescriptionListTerm.test.d.ts +0 -5
  101. package/dist/DescriptionList/DescriptionListTerm.test.js +0 -33
  102. package/dist/Dialog/Dialog.test.d.ts +0 -5
  103. package/dist/Dialog/Dialog.test.js +0 -82
  104. package/dist/ErrorMessage/ErrorMessage.test.d.ts +0 -5
  105. package/dist/ErrorMessage/ErrorMessage.test.js +0 -53
  106. package/dist/Field/Field.test.d.ts +0 -5
  107. package/dist/Field/Field.test.js +0 -38
  108. package/dist/FieldSet/FieldSet.test.d.ts +0 -5
  109. package/dist/FieldSet/FieldSet.test.js +0 -70
  110. package/dist/Figure/Figure.test.d.ts +0 -5
  111. package/dist/Figure/Figure.test.js +0 -33
  112. package/dist/Figure/FigureCaption.test.d.ts +0 -5
  113. package/dist/Figure/FigureCaption.test.js +0 -38
  114. package/dist/FileInput/FileInput.test.d.ts +0 -5
  115. package/dist/FileInput/FileInput.test.js +0 -33
  116. package/dist/FileList/FileList.test.d.ts +0 -5
  117. package/dist/FileList/FileList.test.js +0 -33
  118. package/dist/FileList/FileListItem.test.d.ts +0 -5
  119. package/dist/FileList/FileListItem.test.js +0 -44
  120. package/dist/Grid/Grid.test.d.ts +0 -5
  121. package/dist/Grid/Grid.test.js +0 -69
  122. package/dist/Grid/GridCell.test.d.ts +0 -5
  123. package/dist/Grid/GridCell.test.js +0 -84
  124. package/dist/Heading/Heading.test.d.ts +0 -5
  125. package/dist/Heading/Heading.test.js +0 -70
  126. package/dist/Hint/Hint.test.d.ts +0 -5
  127. package/dist/Hint/Hint.test.js +0 -53
  128. package/dist/Icon/Icon.test.d.ts +0 -5
  129. package/dist/Icon/Icon.test.js +0 -60
  130. package/dist/IconButton/IconButton.test.d.ts +0 -5
  131. package/dist/IconButton/IconButton.test.js +0 -48
  132. package/dist/Image/Image.test.d.ts +0 -5
  133. package/dist/Image/Image.test.js +0 -43
  134. package/dist/ImageSlider/ImageSlider.test.d.ts +0 -5
  135. package/dist/ImageSlider/ImageSlider.test.js +0 -70
  136. package/dist/ImageSlider/ImageSliderControls.test.d.ts +0 -5
  137. package/dist/ImageSlider/ImageSliderControls.test.js +0 -25
  138. package/dist/ImageSlider/ImageSliderItem.test.d.ts +0 -5
  139. package/dist/ImageSlider/ImageSliderItem.test.js +0 -37
  140. package/dist/ImageSlider/ImageSliderScroller.test.d.ts +0 -5
  141. package/dist/ImageSlider/ImageSliderScroller.test.js +0 -37
  142. package/dist/ImageSlider/ImageSliderThumbnails.test.d.ts +0 -5
  143. package/dist/ImageSlider/ImageSliderThumbnails.test.js +0 -52
  144. package/dist/InvalidFormAlert/InvalidFormAlert.test.d.ts +0 -5
  145. package/dist/InvalidFormAlert/InvalidFormAlert.test.js +0 -108
  146. package/dist/Label/Label.test.d.ts +0 -5
  147. package/dist/Label/Label.test.js +0 -82
  148. package/dist/Link/Link.test.d.ts +0 -5
  149. package/dist/Link/Link.test.js +0 -43
  150. package/dist/LinkList/LinkList.test.d.ts +0 -5
  151. package/dist/LinkList/LinkList.test.js +0 -33
  152. package/dist/LinkList/LinkListLink.test.d.ts +0 -5
  153. package/dist/LinkList/LinkListLink.test.js +0 -54
  154. package/dist/Logo/Logo.test.d.ts +0 -5
  155. package/dist/Logo/Logo.test.js +0 -33
  156. package/dist/Mark/Mark.test.d.ts +0 -5
  157. package/dist/Mark/Mark.test.js +0 -33
  158. package/dist/Menu/Menu.test.d.ts +0 -5
  159. package/dist/Menu/Menu.test.js +0 -55
  160. package/dist/Menu/MenuLink.test.d.ts +0 -5
  161. package/dist/Menu/MenuLink.test.js +0 -56
  162. package/dist/OrderedList/OrderedList.test.d.ts +0 -5
  163. package/dist/OrderedList/OrderedList.test.js +0 -55
  164. package/dist/OrderedList/OrderedListItem.test.d.ts +0 -5
  165. package/dist/OrderedList/OrderedListItem.test.js +0 -32
  166. package/dist/Overlap/Overlap.test.d.ts +0 -5
  167. package/dist/Overlap/Overlap.test.js +0 -38
  168. package/dist/Page/Page.test.d.ts +0 -5
  169. package/dist/Page/Page.test.js +0 -33
  170. package/dist/PageFooter/PageFooter.test.d.ts +0 -5
  171. package/dist/PageFooter/PageFooter.test.js +0 -33
  172. package/dist/PageFooter/PageFooterMenu.test.d.ts +0 -5
  173. package/dist/PageFooter/PageFooterMenu.test.js +0 -35
  174. package/dist/PageFooter/PageFooterMenuLink.test.d.ts +0 -5
  175. package/dist/PageFooter/PageFooterMenuLink.test.js +0 -33
  176. package/dist/PageFooter/PageFooterSpotlight.test.d.ts +0 -5
  177. package/dist/PageFooter/PageFooterSpotlight.test.js +0 -33
  178. package/dist/PageHeader/PageHeader.test.d.ts +0 -6
  179. package/dist/PageHeader/PageHeader.test.js +0 -131
  180. package/dist/PageHeader/PageHeaderGridCellNarrowWindowOnly.test.d.ts +0 -5
  181. package/dist/PageHeader/PageHeaderGridCellNarrowWindowOnly.test.js +0 -38
  182. package/dist/PageHeader/PageHeaderMenuLink.test.d.ts +0 -5
  183. package/dist/PageHeader/PageHeaderMenuLink.test.js +0 -45
  184. package/dist/PageHeading/PageHeading.test.d.ts +0 -5
  185. package/dist/PageHeading/PageHeading.test.js +0 -40
  186. package/dist/Pagination/Pagination.test.d.ts +0 -5
  187. package/dist/Pagination/Pagination.test.js +0 -137
  188. package/dist/Paragraph/Paragraph.test.d.ts +0 -5
  189. package/dist/Paragraph/Paragraph.test.js +0 -62
  190. package/dist/PasswordInput/PasswordInput.test.d.ts +0 -5
  191. package/dist/PasswordInput/PasswordInput.test.js +0 -89
  192. package/dist/Radio/Radio.test.d.ts +0 -5
  193. package/dist/Radio/Radio.test.js +0 -134
  194. package/dist/Row/Row.test.d.ts +0 -5
  195. package/dist/Row/Row.test.js +0 -64
  196. package/dist/SearchField/SearchField.test.d.ts +0 -5
  197. package/dist/SearchField/SearchField.test.js +0 -33
  198. package/dist/SearchField/SearchFieldButton.test.d.ts +0 -5
  199. package/dist/SearchField/SearchFieldButton.test.js +0 -47
  200. package/dist/SearchField/SearchFieldInput.test.d.ts +0 -5
  201. package/dist/SearchField/SearchFieldInput.test.js +0 -65
  202. package/dist/Select/Select.test.d.ts +0 -5
  203. package/dist/Select/Select.test.js +0 -74
  204. package/dist/Select/SelectOption.test.d.ts +0 -5
  205. package/dist/Select/SelectOption.test.js +0 -45
  206. package/dist/Select/SelectOptionGroup.test.d.ts +0 -5
  207. package/dist/Select/SelectOptionGroup.test.js +0 -45
  208. package/dist/SkipLink/SkipLink.test.d.ts +0 -5
  209. package/dist/SkipLink/SkipLink.test.js +0 -33
  210. package/dist/Spotlight/Spotlight.test.d.ts +0 -5
  211. package/dist/Spotlight/Spotlight.test.js +0 -46
  212. package/dist/StandaloneLink/StandaloneLink.test.d.ts +0 -5
  213. package/dist/StandaloneLink/StandaloneLink.test.js +0 -46
  214. package/dist/Switch/Switch.test.d.ts +0 -5
  215. package/dist/Switch/Switch.test.js +0 -69
  216. package/dist/Table/Table.test.d.ts +0 -5
  217. package/dist/Table/Table.test.js +0 -33
  218. package/dist/Table/TableBody.test.d.ts +0 -5
  219. package/dist/Table/TableBody.test.js +0 -34
  220. package/dist/Table/TableCaption.test.d.ts +0 -5
  221. package/dist/Table/TableCaption.test.js +0 -45
  222. package/dist/Table/TableCell.test.d.ts +0 -5
  223. package/dist/Table/TableCell.test.js +0 -36
  224. package/dist/Table/TableFooter.test.d.ts +0 -5
  225. package/dist/Table/TableFooter.test.js +0 -34
  226. package/dist/Table/TableHeader.test.d.ts +0 -5
  227. package/dist/Table/TableHeader.test.js +0 -34
  228. package/dist/Table/TableHeaderCell.test.d.ts +0 -5
  229. package/dist/Table/TableHeaderCell.test.js +0 -42
  230. package/dist/Table/TableRow.test.d.ts +0 -5
  231. package/dist/Table/TableRow.test.js +0 -35
  232. package/dist/TableOfContents/TableOfContents.test.d.ts +0 -5
  233. package/dist/TableOfContents/TableOfContents.test.js +0 -44
  234. package/dist/TableOfContents/TableOfContentsLink.test.d.ts +0 -5
  235. package/dist/TableOfContents/TableOfContentsLink.test.js +0 -34
  236. package/dist/TableOfContents/TableOfContentsList.test.d.ts +0 -5
  237. package/dist/TableOfContents/TableOfContentsList.test.js +0 -40
  238. package/dist/Tabs/Tabs.test.d.ts +0 -5
  239. package/dist/Tabs/Tabs.test.js +0 -104
  240. package/dist/Tabs/TabsButton.test.d.ts +0 -5
  241. package/dist/Tabs/TabsButton.test.js +0 -57
  242. package/dist/Tabs/TabsList.test.d.ts +0 -5
  243. package/dist/Tabs/TabsList.test.js +0 -32
  244. package/dist/Tabs/TabsPanel.test.d.ts +0 -5
  245. package/dist/Tabs/TabsPanel.test.js +0 -42
  246. package/dist/TextArea/TextArea.test.d.ts +0 -5
  247. package/dist/TextArea/TextArea.test.js +0 -105
  248. package/dist/TextInput/TextInput.test.d.ts +0 -5
  249. package/dist/TextInput/TextInput.test.js +0 -92
  250. package/dist/TimeInput/TimeInput.test.d.ts +0 -5
  251. package/dist/TimeInput/TimeInput.test.js +0 -51
  252. package/dist/UnorderedList/UnorderedList.test.d.ts +0 -5
  253. package/dist/UnorderedList/UnorderedList.test.js +0 -55
  254. package/dist/UnorderedList/UnorderedListItem.test.d.ts +0 -5
  255. package/dist/UnorderedList/UnorderedListItem.test.js +0 -32
  256. package/dist/common/formatFileSize.test.d.ts +0 -5
  257. package/dist/common/formatFileSize.test.js +0 -22
  258. package/dist/common/formatFileType.test.d.ts +0 -5
  259. package/dist/common/formatFileType.test.js +0 -27
  260. package/dist/common/useKeyboardFocus.test.d.ts +0 -5
  261. package/dist/common/useKeyboardFocus.test.js +0 -79
  262. package/dist/tsconfig.tsbuildinfo +0 -1
@@ -8,7 +8,7 @@ type AvatarColor = (typeof avatarColors)[number];
8
8
  export type AvatarProps = {
9
9
  /** The background colour. */
10
10
  color?: AvatarColor;
11
- /** The url for the user’s image. Its center will be displayed. Should be square and scaled down. */
11
+ /** The url for the user’s image. Its centre will be displayed. Should be square and scaled down. */
12
12
  imageSrc?: string;
13
13
  /** The text content. Should be the user’s initials. The first two characters will be displayed. */
14
14
  label: string;
@@ -19,7 +19,7 @@ export type AvatarProps = {
19
19
  export declare const Avatar: import("react").ForwardRefExoticComponent<{
20
20
  /** The background colour. */
21
21
  color?: AvatarColor;
22
- /** The url for the user’s image. Its center will be displayed. Should be square and scaled down. */
22
+ /** The url for the user’s image. Its centre will be displayed. Should be square and scaled down. */
23
23
  imageSrc?: string;
24
24
  /** The text content. Should be the user’s initials. The first two characters will be displayed. */
25
25
  label: string;
@@ -12,7 +12,7 @@ export declare const Card: import("react").ForwardRefExoticComponent<HTMLAttribu
12
12
  } & import("react").RefAttributes<HTMLElement>> & {
13
13
  Heading: import("react").ForwardRefExoticComponent<{
14
14
  color?: "inverse";
15
- level: 2 | 1 | 3 | 4;
15
+ level: 1 | 2 | 3 | 4;
16
16
  size?: "level-1" | "level-2" | "level-3" | "level-4" | "level-5" | "level-6";
17
17
  } & HTMLAttributes<HTMLHeadingElement> & {
18
18
  children?: import("react").ReactNode | undefined;
@@ -4,7 +4,7 @@
4
4
  */
5
5
  export declare const CardHeading: import("react").ForwardRefExoticComponent<{
6
6
  color?: "inverse";
7
- level: 2 | 1 | 3 | 4;
7
+ level: 1 | 2 | 3 | 4;
8
8
  size?: "level-1" | "level-2" | "level-3" | "level-4" | "level-5" | "level-6";
9
9
  } & import("react").HTMLAttributes<HTMLHeadingElement> & {
10
10
  children?: import("react").ReactNode | undefined;
@@ -27,6 +27,6 @@ export declare const Checkbox: import("react").ForwardRefExoticComponent<{
27
27
  indeterminate?: boolean;
28
28
  /** Whether the value fails a validation rule. */
29
29
  invalid?: boolean;
30
- } & Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "aria-invalid"> & {
30
+ } & Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid" | "type"> & {
31
31
  children?: ReactNode | undefined;
32
32
  } & import("react").RefAttributes<HTMLInputElement>>;
@@ -19,5 +19,5 @@ export declare const DateInput: import("react").ForwardRefExoticComponent<{
19
19
  invalid?: boolean;
20
20
  /** The kind of data that the user should provide. */
21
21
  type?: DateInputType;
22
- } & Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "aria-invalid"> & import("react").RefAttributes<HTMLInputElement>>;
22
+ } & Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid" | "type"> & import("react").RefAttributes<HTMLInputElement>>;
23
23
  export {};
@@ -5,6 +5,11 @@
5
5
  import type { HTMLAttributes, PropsWithChildren } from 'react';
6
6
  import type { HintProps } from '../Hint';
7
7
  export type FieldSetProps = {
8
+ /**
9
+ * Whether the fieldset is nested inside another fieldset.
10
+ * This will show the legend in a lighter style.
11
+ */
12
+ inFieldSet?: boolean;
8
13
  /** Whether the field set has an input with a validation error. */
9
14
  invalid?: boolean;
10
15
  /** The text for the caption. */
@@ -19,6 +24,11 @@ export type FieldSetProps = {
19
24
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-field-set--docs Field Set docs at Amsterdam Design System}
20
25
  */
21
26
  export declare const FieldSet: import("react").ForwardRefExoticComponent<{
27
+ /**
28
+ * Whether the fieldset is nested inside another fieldset.
29
+ * This will show the legend in a lighter style.
30
+ */
31
+ inFieldSet?: boolean;
22
32
  /** Whether the field set has an input with a validation error. */
23
33
  invalid?: boolean;
24
34
  /** The text for the caption. */
@@ -30,6 +40,7 @@ export declare const FieldSet: import("react").ForwardRefExoticComponent<{
30
40
  legendIsPageHeading?: boolean;
31
41
  } & {
32
42
  hint?: string;
43
+ inFieldSet?: boolean;
33
44
  optional?: boolean;
34
45
  } & HTMLAttributes<HTMLElement> & {
35
46
  children?: import("react").ReactNode | undefined;
@@ -5,8 +5,8 @@ import { Hint } from '../Hint';
5
5
  /**
6
6
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-field-set--docs Field Set docs at Amsterdam Design System}
7
7
  */
8
- export const FieldSet = forwardRef(({ children, className, hint, invalid, legend, legendIsPageHeading, optional, ...restProps }, ref) => {
9
- const legendContent = (_jsxs(_Fragment, { children: [legend, " ", _jsx(Hint, { hint: hint, optional: optional })] }));
10
- return (_jsxs("fieldset", { ...restProps, className: clsx('ams-field-set', invalid && 'ams-field-set--invalid', className), ref: ref, children: [_jsx("legend", { className: "ams-field-set__legend", children: legendIsPageHeading ? _jsx("h1", { className: "ams-field-set__heading", children: legendContent }) : legendContent }), children] }));
8
+ export const FieldSet = forwardRef(({ children, className, hint, inFieldSet, invalid, legend, legendIsPageHeading, optional, ...restProps }, ref) => {
9
+ const legendContent = (_jsxs(_Fragment, { children: [legend, " ", _jsx(Hint, { hint: hint, inFieldSet: inFieldSet, optional: optional })] }));
10
+ return (_jsxs("fieldset", { ...restProps, className: clsx('ams-field-set', invalid && 'ams-field-set--invalid', className), ref: ref, children: [_jsx("legend", { className: clsx('ams-field-set__legend', inFieldSet && 'ams-field-set__legend--in-fieldset'), children: legendIsPageHeading ? _jsx("h1", { className: "ams-field-set__heading", children: legendContent }) : legendContent }), children] }));
11
11
  });
12
12
  FieldSet.displayName = 'FieldSet';
@@ -6,6 +6,7 @@ import type { HTMLAttributes, PropsWithChildren } from 'react';
6
6
  type HintAndOptionalProps = {
7
7
  /** Show a custom hint text. */
8
8
  hint?: string;
9
+ inFieldSet?: boolean;
9
10
  /** Appends the text '(niet verplicht)' to the label or legend if no hint is provided. Use when the associated inputs are optional. */
10
11
  optional?: boolean;
11
12
  };
package/dist/Hint/Hint.js CHANGED
@@ -10,8 +10,8 @@ const getHintText = ({ hint, optional }) => {
10
10
  }
11
11
  return null;
12
12
  };
13
- export const Hint = forwardRef(({ className, hint, optional, ...restProps }, ref) => {
13
+ export const Hint = forwardRef(({ className, hint, inFieldSet, optional, ...restProps }, ref) => {
14
14
  const hintText = getHintText({ hint, optional });
15
- return (hintText && (_jsxs("span", { ...restProps, className: clsx('ams-hint', className), ref: ref, children: ["(", hintText, ")"] })));
15
+ return (hintText && (_jsxs("span", { ...restProps, className: clsx('ams-hint', inFieldSet && 'ams-hint--in-fieldset', className), ref: ref, children: ["(", hintText, ")"] })));
16
16
  });
17
17
  Hint.displayName = 'Hint';
@@ -5,5 +5,5 @@ import { generateAspectRatioClass } from './generateAspectRatioClass';
5
5
  /**
6
6
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-media-image--docs Image docs at Amsterdam Design System}
7
7
  */
8
- export const Image = forwardRef(({ aspectRatio, className, ...restProps }, ref) => (_jsx("img", { ...restProps, className: clsx('ams-image', generateAspectRatioClass(aspectRatio), className), ref: ref, width: 600 })));
8
+ export const Image = forwardRef(({ aspectRatio, className, width, ...restProps }, ref) => (_jsx("img", { ...restProps, className: clsx('ams-image', generateAspectRatioClass(aspectRatio), className), ref: ref, width: width ?? 600 })));
9
9
  Image.displayName = 'Image';
@@ -6,6 +6,11 @@
6
6
  import type { LabelHTMLAttributes, PropsWithChildren } from 'react';
7
7
  import type { HintProps } from '../Hint';
8
8
  export type LabelProps = {
9
+ /**
10
+ * Whether the label is nested inside a fieldset.
11
+ * This will show the label in a lighter style.
12
+ */
13
+ inFieldSet?: boolean;
9
14
  /**
10
15
  * Render a level 1 heading around the label.
11
16
  * Set this if the Field is the only content of the page.
@@ -16,6 +21,11 @@ export type LabelProps = {
16
21
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-label--docs Label docs at Amsterdam Design System}
17
22
  */
18
23
  export declare const Label: import("react").ForwardRefExoticComponent<{
24
+ /**
25
+ * Whether the label is nested inside a fieldset.
26
+ * This will show the label in a lighter style.
27
+ */
28
+ inFieldSet?: boolean;
19
29
  /**
20
30
  * Render a level 1 heading around the label.
21
31
  * Set this if the Field is the only content of the page.
@@ -23,6 +33,7 @@ export declare const Label: import("react").ForwardRefExoticComponent<{
23
33
  isPageHeading?: boolean;
24
34
  } & {
25
35
  hint?: string;
36
+ inFieldSet?: boolean;
26
37
  optional?: boolean;
27
38
  } & import("react").HTMLAttributes<HTMLElement> & {
28
39
  children?: import("react").ReactNode | undefined;
@@ -5,8 +5,8 @@ import { Hint } from '../Hint';
5
5
  /**
6
6
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-label--docs Label docs at Amsterdam Design System}
7
7
  */
8
- export const Label = forwardRef(({ children, className, hint, isPageHeading, optional, ...restProps }, ref) => {
9
- const labelElement = (_jsxs("label", { ...restProps, className: clsx('ams-label', className), ref: ref, children: [children, " ", _jsx(Hint, { hint: hint, optional: optional })] }));
8
+ export const Label = forwardRef(({ children, className, hint, inFieldSet, isPageHeading, optional, ...restProps }, ref) => {
9
+ const labelElement = (_jsxs("label", { ...restProps, className: clsx('ams-label', inFieldSet && 'ams-label--in-fieldset', className), ref: ref, children: [children, " ", _jsx(Hint, { hint: hint, inFieldSet: inFieldSet, optional: optional })] }));
10
10
  return isPageHeading ? _jsx("h1", { className: "ams-label__heading", children: labelElement }) : labelElement;
11
11
  });
12
12
  Label.displayName = 'Label';
@@ -11,7 +11,7 @@ export declare const LinkList: import("react").ForwardRefExoticComponent<HTMLAtt
11
11
  children?: import("react").ReactNode | undefined;
12
12
  } & import("react").RefAttributes<HTMLUListElement>> & {
13
13
  Link: import("react").ForwardRefExoticComponent<{
14
- color?: "contrast" | "inverse";
14
+ color?: "inverse" | "contrast";
15
15
  icon?: import("..").IconProps["svg"];
16
16
  size?: "small" | "large";
17
17
  } & import("react").AnchorHTMLAttributes<HTMLAnchorElement> & {
@@ -10,7 +10,7 @@ export type MenuLinkProps = {
10
10
  * @deprecated The menu has a dark background now, so this is no longer needed.
11
11
  */
12
12
  color?: 'contrast' | 'inverse';
13
- /** An icon to display instead of the default chevron. Don’t mix custom icons with chevrons in one list. */
13
+ /** The icon to display for the menu icon. Use the filled variant. */
14
14
  icon: IconProps['svg'];
15
15
  } & PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
16
16
  export declare const MenuLink: import("react").ForwardRefExoticComponent<{
@@ -19,7 +19,7 @@ export declare const MenuLink: import("react").ForwardRefExoticComponent<{
19
19
  * @deprecated The menu has a dark background now, so this is no longer needed.
20
20
  */
21
21
  color?: "contrast" | "inverse";
22
- /** An icon to display instead of the default chevron. Don’t mix custom icons with chevrons in one list. */
22
+ /** The icon to display for the menu icon. Use the filled variant. */
23
23
  icon: IconProps["svg"];
24
24
  } & AnchorHTMLAttributes<HTMLAnchorElement> & {
25
25
  children?: import("react").ReactNode | undefined;
@@ -3,10 +3,14 @@
3
3
  * Copyright Gemeente Amsterdam
4
4
  */
5
5
  import type { HTMLAttributes, PropsWithChildren } from 'react';
6
- export type PageProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
6
+ export type PageProps = {
7
+ withMenu?: boolean;
8
+ } & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
7
9
  /**
8
10
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-containers-page--docs Page docs at Amsterdam Design System}
9
11
  */
10
- export declare const Page: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
12
+ export declare const Page: import("react").ForwardRefExoticComponent<{
13
+ withMenu?: boolean;
14
+ } & HTMLAttributes<HTMLDivElement> & {
11
15
  children?: import("react").ReactNode | undefined;
12
16
  } & import("react").RefAttributes<HTMLDivElement>>;
package/dist/Page/Page.js CHANGED
@@ -4,5 +4,5 @@ import { forwardRef } from 'react';
4
4
  /**
5
5
  * @see {@link https://designsystem.amsterdam/?path=/docs/components-containers-page--docs Page docs at Amsterdam Design System}
6
6
  */
7
- export const Page = forwardRef(({ children, className, ...restProps }, ref) => (_jsx("div", { ...restProps, className: clsx('ams-page', className), ref: ref, children: children })));
7
+ export const Page = forwardRef(({ children, className, withMenu, ...restProps }, ref) => (_jsx("div", { ...restProps, className: clsx('ams-page', withMenu && 'ams-page--with-menu', className), ref: ref, children: children })));
8
8
  Page.displayName = 'Page';
@@ -54,6 +54,7 @@ export declare const PageHeader: import("react").ForwardRefExoticComponent<{
54
54
  GridCellNarrowWindowOnly: import("react").ForwardRefExoticComponent<import("..").GridCellProps & import("react").RefAttributes<HTMLElement>>;
55
55
  MenuLink: import("react").ForwardRefExoticComponent<{
56
56
  fixed?: boolean;
57
+ icon?: import("../Icon").IconProps["svg"];
57
58
  } & AnchorHTMLAttributes<HTMLAnchorElement> & {
58
59
  children?: ReactNode | undefined;
59
60
  } & import("react").RefAttributes<HTMLAnchorElement>>;
@@ -1,2 +1,2 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- export const PageHeaderMenuIcon = (props) => (_jsxs("svg", { "aria-hidden": "true", focusable: "false", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...props, children: [_jsx("line", { className: "ams-page-header__menu-icon-top", x1: "0", x2: "100%", y1: "50%", y2: "50%" }), _jsx("line", { className: "ams-page-header__menu-icon-middle", x1: "0", x2: "100%", y1: "50%", y2: "50%" }), _jsx("line", { className: "ams-page-header__menu-icon-bottom", x1: "0", x2: "100%", y1: "50%", y2: "50%" })] }));
2
+ export const PageHeaderMenuIcon = (props) => (_jsxs("svg", { "aria-hidden": "true", focusable: "false", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...props, children: [_jsx("path", { className: "ams-page-header__menu-icon-top", d: "M1 5h22v2H1z" }), _jsx("path", { className: "ams-page-header__menu-icon-middle", d: "M1 11h22v2H1z" }), _jsx("path", { className: "ams-page-header__menu-icon-bottom", d: "M1 17h22v2H1z" })] }));
@@ -3,11 +3,18 @@
3
3
  * Copyright Gemeente Amsterdam
4
4
  */
5
5
  import type { AnchorHTMLAttributes, PropsWithChildren } from 'react';
6
+ import type { IconProps } from '../Icon';
6
7
  export type PageHeaderMenuLinkProps = {
8
+ /** Whether the link appears in the Page Header on narrow windows. */
7
9
  fixed?: boolean;
10
+ /** An icon to display at the end of the label. */
11
+ icon?: IconProps['svg'];
8
12
  } & PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
9
13
  export declare const PageHeaderMenuLink: import("react").ForwardRefExoticComponent<{
14
+ /** Whether the link appears in the Page Header on narrow windows. */
10
15
  fixed?: boolean;
16
+ /** An icon to display at the end of the label. */
17
+ icon?: IconProps["svg"];
11
18
  } & AnchorHTMLAttributes<HTMLAnchorElement> & {
12
19
  children?: import("react").ReactNode | undefined;
13
20
  } & import("react").RefAttributes<HTMLAnchorElement>>;
@@ -1,5 +1,6 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { clsx } from 'clsx';
3
3
  import { forwardRef } from 'react';
4
- export const PageHeaderMenuLink = forwardRef(({ children, className, fixed, ...restProps }, ref) => (_jsx("li", { className: clsx('ams-page-header__menu-item', fixed && 'ams-page-header__menu-item--fixed'), children: _jsx("a", { ...restProps, className: clsx('ams-page-header__menu-link', className), ref: ref, children: children }) })));
4
+ import { Icon } from '../Icon';
5
+ export const PageHeaderMenuLink = forwardRef(({ children, className, fixed, icon, ...restProps }, ref) => (_jsx("li", { className: clsx('ams-page-header__menu-item', fixed && 'ams-page-header__menu-item--fixed'), children: _jsxs("a", { ...restProps, className: clsx('ams-page-header__menu-link', className), ref: ref, children: [children, icon && _jsx(Icon, { svg: icon })] }) })));
5
6
  PageHeaderMenuLink.displayName = 'PageHeader.MenuLink';
@@ -13,4 +13,4 @@ export type PasswordInputProps = {
13
13
  export declare const PasswordInput: import("react").ForwardRefExoticComponent<{
14
14
  /** Whether the value fails a validation rule. */
15
15
  invalid?: boolean;
16
- } & Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "aria-invalid" | "autoCapitalize" | "spellCheck" | "autoCorrect"> & import("react").RefAttributes<HTMLInputElement>>;
16
+ } & Omit<InputHTMLAttributes<HTMLInputElement>, "autoCapitalize" | "spellCheck" | "autoCorrect" | "aria-invalid" | "type"> & import("react").RefAttributes<HTMLInputElement>>;
@@ -23,6 +23,6 @@ export declare const Radio: import("react").ForwardRefExoticComponent<{
23
23
  icon?: Function | ReactNode;
24
24
  /** Whether the value fails a validation rule. */
25
25
  invalid?: boolean;
26
- } & Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "aria-invalid"> & {
26
+ } & Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid" | "type"> & {
27
27
  children?: ReactNode | undefined;
28
28
  } & import("react").RefAttributes<HTMLInputElement>>;
@@ -14,7 +14,6 @@ export declare const SearchField: import("react").ForwardRefExoticComponent<HTML
14
14
  children?: import("react").ReactNode;
15
15
  className?: string | undefined | undefined;
16
16
  color?: string | undefined | undefined;
17
- type?: "submit" | "reset" | "button" | undefined | undefined;
18
17
  defaultChecked?: boolean | undefined | undefined;
19
18
  defaultValue?: string | number | readonly string[] | undefined;
20
19
  suppressContentEditableWarning?: boolean | undefined | undefined;
@@ -280,6 +279,7 @@ export declare const SearchField: import("react").ForwardRefExoticComponent<HTML
280
279
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
281
280
  form?: string | undefined | undefined;
282
281
  value?: string | number | readonly string[] | undefined;
282
+ type?: "submit" | "reset" | "button" | undefined | undefined;
283
283
  disabled?: boolean | undefined | undefined;
284
284
  formAction?: string | undefined;
285
285
  formEncType?: string | undefined | undefined;
@@ -13,4 +13,4 @@ export type TimeInputProps = {
13
13
  export declare const TimeInput: import("react").ForwardRefExoticComponent<{
14
14
  /** Whether the value fails a validation rule. */
15
15
  invalid?: boolean;
16
- } & Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "aria-invalid"> & import("react").RefAttributes<HTMLInputElement>>;
16
+ } & Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid" | "type"> & import("react").RefAttributes<HTMLInputElement>>;
package/dist/index.cjs.js CHANGED
@@ -706,7 +706,7 @@ var generateAspectRatioClass = function generateAspectRatioClass(aspectRatio) {
706
706
  return aspectRatio && "ams-aspect-ratio-".concat(aspectRatio.replace(':', '-'));
707
707
  };
708
708
 
709
- var _excluded$1j = ["aspectRatio", "className"];
709
+ var _excluded$1j = ["aspectRatio", "className", "width"];
710
710
  function ownKeys$1s(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
711
711
  function _objectSpread$1s(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1s(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1s(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
712
712
  /**
@@ -715,11 +715,12 @@ function _objectSpread$1s(e) { for (var r = 1; r < arguments.length; r++) { var
715
715
  var Image = /*#__PURE__*/react.forwardRef(function (_ref, ref) {
716
716
  var aspectRatio = _ref.aspectRatio,
717
717
  className = _ref.className,
718
+ width = _ref.width,
718
719
  restProps = _objectWithoutProperties(_ref, _excluded$1j);
719
720
  return jsxRuntime.jsx("img", _objectSpread$1s(_objectSpread$1s({}, restProps), {}, {
720
721
  className: clsx.clsx('ams-image', generateAspectRatioClass(aspectRatio), className),
721
722
  ref: ref,
722
- width: 600
723
+ width: width !== null && width !== void 0 ? width : 600
723
724
  }));
724
725
  });
725
726
  Image.displayName = 'Image';
@@ -1106,7 +1107,7 @@ var Field = /*#__PURE__*/react.forwardRef(function (_ref, ref) {
1106
1107
  });
1107
1108
  Field.displayName = 'Field';
1108
1109
 
1109
- var _excluded$14 = ["className", "hint", "optional"];
1110
+ var _excluded$14 = ["className", "hint", "inFieldSet", "optional"];
1110
1111
  function ownKeys$1c(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1111
1112
  function _objectSpread$1c(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1c(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1c(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1112
1113
  var getHintText = function getHintText(_ref) {
@@ -1122,6 +1123,7 @@ var getHintText = function getHintText(_ref) {
1122
1123
  var Hint = /*#__PURE__*/react.forwardRef(function (_ref2, ref) {
1123
1124
  var className = _ref2.className,
1124
1125
  hint = _ref2.hint,
1126
+ inFieldSet = _ref2.inFieldSet,
1125
1127
  optional = _ref2.optional,
1126
1128
  restProps = _objectWithoutProperties(_ref2, _excluded$14);
1127
1129
  var hintText = getHintText({
@@ -1129,14 +1131,14 @@ var Hint = /*#__PURE__*/react.forwardRef(function (_ref2, ref) {
1129
1131
  optional: optional
1130
1132
  });
1131
1133
  return hintText && jsxRuntime.jsxs("span", _objectSpread$1c(_objectSpread$1c({}, restProps), {}, {
1132
- className: clsx.clsx('ams-hint', className),
1134
+ className: clsx.clsx('ams-hint', inFieldSet && 'ams-hint--in-fieldset', className),
1133
1135
  ref: ref,
1134
1136
  children: ["(", hintText, ")"]
1135
1137
  }));
1136
1138
  });
1137
1139
  Hint.displayName = 'Hint';
1138
1140
 
1139
- var _excluded$13 = ["children", "className", "hint", "invalid", "legend", "legendIsPageHeading", "optional"];
1141
+ var _excluded$13 = ["children", "className", "hint", "inFieldSet", "invalid", "legend", "legendIsPageHeading", "optional"];
1140
1142
  function ownKeys$1b(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1141
1143
  function _objectSpread$1b(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1b(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1b(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1142
1144
  /**
@@ -1146,6 +1148,7 @@ var FieldSet = /*#__PURE__*/react.forwardRef(function (_ref, ref) {
1146
1148
  var children = _ref.children,
1147
1149
  className = _ref.className,
1148
1150
  hint = _ref.hint,
1151
+ inFieldSet = _ref.inFieldSet,
1149
1152
  invalid = _ref.invalid,
1150
1153
  legend = _ref.legend,
1151
1154
  legendIsPageHeading = _ref.legendIsPageHeading,
@@ -1154,6 +1157,7 @@ var FieldSet = /*#__PURE__*/react.forwardRef(function (_ref, ref) {
1154
1157
  var legendContent = jsxRuntime.jsxs(jsxRuntime.Fragment, {
1155
1158
  children: [legend, " ", jsxRuntime.jsx(Hint, {
1156
1159
  hint: hint,
1160
+ inFieldSet: inFieldSet,
1157
1161
  optional: optional
1158
1162
  })]
1159
1163
  });
@@ -1161,7 +1165,7 @@ var FieldSet = /*#__PURE__*/react.forwardRef(function (_ref, ref) {
1161
1165
  className: clsx.clsx('ams-field-set', invalid && 'ams-field-set--invalid', className),
1162
1166
  ref: ref,
1163
1167
  children: [jsxRuntime.jsx("legend", {
1164
- className: "ams-field-set__legend",
1168
+ className: clsx.clsx('ams-field-set__legend', inFieldSet && 'ams-field-set__legend--in-fieldset'),
1165
1169
  children: legendIsPageHeading ? jsxRuntime.jsx("h1", {
1166
1170
  className: "ams-field-set__heading",
1167
1171
  children: legendContent
@@ -1863,7 +1867,7 @@ var InvalidFormAlert = /*#__PURE__*/react.forwardRef(function (_ref, ref) {
1863
1867
  });
1864
1868
  InvalidFormAlert.displayName = 'InvalidFormAlert';
1865
1869
 
1866
- var _excluded$O = ["children", "className", "hint", "isPageHeading", "optional"];
1870
+ var _excluded$O = ["children", "className", "hint", "inFieldSet", "isPageHeading", "optional"];
1867
1871
  function ownKeys$W(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1868
1872
  function _objectSpread$W(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$W(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$W(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1869
1873
  /**
@@ -1873,14 +1877,16 @@ var Label = /*#__PURE__*/react.forwardRef(function (_ref, ref) {
1873
1877
  var children = _ref.children,
1874
1878
  className = _ref.className,
1875
1879
  hint = _ref.hint,
1880
+ inFieldSet = _ref.inFieldSet,
1876
1881
  isPageHeading = _ref.isPageHeading,
1877
1882
  optional = _ref.optional,
1878
1883
  restProps = _objectWithoutProperties(_ref, _excluded$O);
1879
1884
  var labelElement = jsxRuntime.jsxs("label", _objectSpread$W(_objectSpread$W({}, restProps), {}, {
1880
- className: clsx.clsx('ams-label', className),
1885
+ className: clsx.clsx('ams-label', inFieldSet && 'ams-label--in-fieldset', className),
1881
1886
  ref: ref,
1882
1887
  children: [children, " ", jsxRuntime.jsx(Hint, {
1883
1888
  hint: hint,
1889
+ inFieldSet: inFieldSet,
1884
1890
  optional: optional
1885
1891
  })]
1886
1892
  }));
@@ -2278,7 +2284,7 @@ var Overlap = /*#__PURE__*/react.forwardRef(function (_ref, ref) {
2278
2284
  });
2279
2285
  Overlap.displayName = 'Overlap';
2280
2286
 
2281
- var _excluded$F = ["children", "className"];
2287
+ var _excluded$F = ["children", "className", "withMenu"];
2282
2288
  function ownKeys$H(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
2283
2289
  function _objectSpread$H(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$H(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$H(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2284
2290
  /**
@@ -2287,9 +2293,10 @@ function _objectSpread$H(e) { for (var r = 1; r < arguments.length; r++) { var t
2287
2293
  var Page = /*#__PURE__*/react.forwardRef(function (_ref, ref) {
2288
2294
  var children = _ref.children,
2289
2295
  className = _ref.className,
2296
+ withMenu = _ref.withMenu,
2290
2297
  restProps = _objectWithoutProperties(_ref, _excluded$F);
2291
2298
  return jsxRuntime.jsx("div", _objectSpread$H(_objectSpread$H({}, restProps), {}, {
2292
- className: clsx.clsx('ams-page', className),
2299
+ className: clsx.clsx('ams-page', withMenu && 'ams-page--with-menu', className),
2293
2300
  ref: ref,
2294
2301
  children: children
2295
2302
  }));
@@ -2421,42 +2428,36 @@ var PageHeaderMenuIcon = function PageHeaderMenuIcon(props) {
2421
2428
  viewBox: "0 0 24 24",
2422
2429
  xmlns: "http://www.w3.org/2000/svg"
2423
2430
  }, props), {}, {
2424
- children: [jsxRuntime.jsx("line", {
2431
+ children: [jsxRuntime.jsx("path", {
2425
2432
  className: "ams-page-header__menu-icon-top",
2426
- x1: "0",
2427
- x2: "100%",
2428
- y1: "50%",
2429
- y2: "50%"
2430
- }), jsxRuntime.jsx("line", {
2433
+ d: "M1 5h22v2H1z"
2434
+ }), jsxRuntime.jsx("path", {
2431
2435
  className: "ams-page-header__menu-icon-middle",
2432
- x1: "0",
2433
- x2: "100%",
2434
- y1: "50%",
2435
- y2: "50%"
2436
- }), jsxRuntime.jsx("line", {
2436
+ d: "M1 11h22v2H1z"
2437
+ }), jsxRuntime.jsx("path", {
2437
2438
  className: "ams-page-header__menu-icon-bottom",
2438
- x1: "0",
2439
- x2: "100%",
2440
- y1: "50%",
2441
- y2: "50%"
2439
+ d: "M1 17h22v2H1z"
2442
2440
  })]
2443
2441
  }));
2444
2442
  };
2445
2443
 
2446
- var _excluded$z = ["children", "className", "fixed"];
2444
+ var _excluded$z = ["children", "className", "fixed", "icon"];
2447
2445
  function ownKeys$A(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
2448
2446
  function _objectSpread$A(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$A(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$A(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2449
2447
  var PageHeaderMenuLink = /*#__PURE__*/react.forwardRef(function (_ref, ref) {
2450
2448
  var children = _ref.children,
2451
2449
  className = _ref.className,
2452
2450
  fixed = _ref.fixed,
2451
+ icon = _ref.icon,
2453
2452
  restProps = _objectWithoutProperties(_ref, _excluded$z);
2454
2453
  return jsxRuntime.jsx("li", {
2455
2454
  className: clsx.clsx('ams-page-header__menu-item', fixed && 'ams-page-header__menu-item--fixed'),
2456
- children: jsxRuntime.jsx("a", _objectSpread$A(_objectSpread$A({}, restProps), {}, {
2455
+ children: jsxRuntime.jsxs("a", _objectSpread$A(_objectSpread$A({}, restProps), {}, {
2457
2456
  className: clsx.clsx('ams-page-header__menu-link', className),
2458
2457
  ref: ref,
2459
- children: children
2458
+ children: [children, icon && jsxRuntime.jsx(Icon, {
2459
+ svg: icon
2460
+ })]
2460
2461
  }))
2461
2462
  });
2462
2463
  });
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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