@utrecht/component-library-react 1.0.0-alpha.2 → 1.0.0-alpha.200

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 (308) hide show
  1. package/README.md +27 -3
  2. package/dist/Alert.d.ts +13 -0
  3. package/dist/AlertDialog.d.ts +13 -0
  4. package/dist/Article.d.ts +9 -0
  5. package/dist/{cjs/Backdrop.d.ts → Backdrop.d.ts} +9 -7
  6. package/dist/Button.d.ts +28 -0
  7. package/dist/ButtonGroup.d.ts +10 -0
  8. package/dist/ButtonLink.d.ts +14 -0
  9. package/dist/Calendar/CalendarButton.d.ts +5 -0
  10. package/dist/Calendar/CalendarIcon.d.ts +5 -0
  11. package/dist/Calendar/CalendarNavigation.d.ts +5 -0
  12. package/dist/Calendar/CalendarNavigationButtons.d.ts +13 -0
  13. package/dist/Calendar/CalendarNavigationLabel.d.ts +6 -0
  14. package/dist/Calendar/CalendarTableDaysContainer.d.ts +5 -0
  15. package/dist/Calendar/CalendarTableDaysItem.d.ts +5 -0
  16. package/dist/Calendar/CalendarTableDaysItemDay.d.ts +11 -0
  17. package/dist/Calendar/CalendarTableWeeksContainer.d.ts +4 -0
  18. package/dist/Calendar/CalendarTableWeeksItem.d.ts +5 -0
  19. package/dist/Calendar/IconArrowLeft.d.ts +7 -0
  20. package/dist/Calendar/IconArrowLeftDouble.d.ts +7 -0
  21. package/dist/Calendar/IconArrowRight.d.ts +7 -0
  22. package/dist/Calendar/IconArrowRightDouble.d.ts +7 -0
  23. package/dist/Calendar/index.d.ts +41 -0
  24. package/dist/{cjs/Checkbox.d.ts → Checkbox.d.ts} +6 -6
  25. package/dist/CustomRadioButton.d.ts +13 -0
  26. package/dist/DataList.d.ts +28 -0
  27. package/dist/{cjs/Document.d.ts → Document.d.ts} +9 -7
  28. package/dist/Emphasis.d.ts +10 -0
  29. package/dist/Fieldset.d.ts +19 -0
  30. package/dist/FieldsetLegend.d.ts +5 -0
  31. package/dist/Figure.d.ts +5 -0
  32. package/dist/FigureCaption.d.ts +5 -0
  33. package/dist/FormField.d.ts +8 -0
  34. package/dist/FormFieldDescription.d.ts +9 -0
  35. package/dist/FormLabel.d.ts +10 -0
  36. package/dist/{cjs/HTMLContent.d.ts → HTMLContent.d.ts} +9 -7
  37. package/dist/Heading.d.ts +12 -0
  38. package/dist/Heading1.d.ts +9 -0
  39. package/dist/Heading2.d.ts +9 -0
  40. package/dist/Heading3.d.ts +9 -0
  41. package/dist/Heading4.d.ts +9 -0
  42. package/dist/Heading5.d.ts +9 -0
  43. package/dist/Heading6.d.ts +9 -0
  44. package/dist/HeadingGroup.d.ts +9 -0
  45. package/dist/Icon.d.ts +10 -0
  46. package/dist/Image.d.ts +9 -0
  47. package/dist/Link.d.ts +14 -0
  48. package/dist/LinkButton.d.ts +13 -0
  49. package/dist/LinkSocial.d.ts +11 -0
  50. package/dist/ListSocial.d.ts +13 -0
  51. package/dist/Mark.d.ts +10 -0
  52. package/dist/NumberValue.d.ts +11 -0
  53. package/dist/OrderedList.d.ts +9 -0
  54. package/dist/OrderedListItem.d.ts +9 -0
  55. package/dist/{cjs/Page.d.ts → Page.d.ts} +9 -7
  56. package/dist/PageContent.d.ts +13 -0
  57. package/dist/{cjs/PageFooter.d.ts → PageFooter.d.ts} +9 -7
  58. package/dist/{cjs/PageHeader.d.ts → PageHeader.d.ts} +9 -7
  59. package/dist/Paragraph.d.ts +12 -0
  60. package/dist/PreHeading.d.ts +9 -0
  61. package/dist/{cjs/RadioButton.d.ts → RadioButton.d.ts} +6 -6
  62. package/dist/Select.d.ts +19 -0
  63. package/dist/{cjs/Separator.d.ts → Separator.d.ts} +7 -8
  64. package/dist/SkipLink.d.ts +5 -0
  65. package/dist/SpotlightSection.d.ts +13 -0
  66. package/dist/Strong.d.ts +10 -0
  67. package/dist/{cjs/Surface.d.ts → Surface.d.ts} +9 -7
  68. package/dist/Table.d.ts +9 -0
  69. package/dist/TableBody.d.ts +9 -0
  70. package/dist/TableCaption.d.ts +9 -0
  71. package/dist/TableCell.d.ts +9 -0
  72. package/dist/TableFooter.d.ts +9 -0
  73. package/dist/TableHeader.d.ts +9 -0
  74. package/dist/TableHeaderCell.d.ts +9 -0
  75. package/dist/TableRow.d.ts +9 -0
  76. package/dist/{cjs/Textarea.d.ts → Textarea.d.ts} +5 -6
  77. package/dist/Textbox.d.ts +7 -0
  78. package/dist/{cjs/URLValue.d.ts → URLValue.d.ts} +9 -7
  79. package/dist/UnorderedList.d.ts +9 -0
  80. package/dist/{cjs/UnorderedListItem.d.ts → UnorderedListItem.d.ts} +9 -7
  81. package/dist/css-module/Alert.d.ts +13 -0
  82. package/dist/css-module/AlertDialog.d.ts +13 -0
  83. package/dist/css-module/Article.d.ts +9 -0
  84. package/dist/css-module/Backdrop.d.ts +9 -0
  85. package/dist/css-module/Button.d.ts +28 -0
  86. package/dist/css-module/ButtonGroup.d.ts +10 -0
  87. package/dist/css-module/ButtonLink.d.ts +14 -0
  88. package/dist/css-module/Calendar/CalendarButton.d.ts +5 -0
  89. package/dist/css-module/Calendar/CalendarIcon.d.ts +5 -0
  90. package/dist/css-module/Calendar/CalendarNavigation.d.ts +5 -0
  91. package/dist/css-module/Calendar/CalendarNavigationButtons.d.ts +13 -0
  92. package/dist/css-module/Calendar/CalendarNavigationLabel.d.ts +6 -0
  93. package/dist/css-module/Calendar/CalendarTableDaysContainer.d.ts +5 -0
  94. package/dist/css-module/Calendar/CalendarTableDaysItem.d.ts +5 -0
  95. package/dist/css-module/Calendar/CalendarTableDaysItemDay.d.ts +11 -0
  96. package/dist/css-module/Calendar/CalendarTableWeeksContainer.d.ts +4 -0
  97. package/dist/css-module/Calendar/CalendarTableWeeksItem.d.ts +5 -0
  98. package/dist/css-module/Calendar/IconArrowLeft.d.ts +7 -0
  99. package/dist/css-module/Calendar/IconArrowLeftDouble.d.ts +7 -0
  100. package/dist/css-module/Calendar/IconArrowRight.d.ts +7 -0
  101. package/dist/css-module/Calendar/IconArrowRightDouble.d.ts +7 -0
  102. package/dist/css-module/Calendar/index.d.ts +41 -0
  103. package/dist/css-module/Checkbox.d.ts +6 -0
  104. package/dist/css-module/CustomRadioButton.d.ts +13 -0
  105. package/dist/css-module/DataList.d.ts +28 -0
  106. package/dist/css-module/Document.d.ts +9 -0
  107. package/dist/css-module/Emphasis.d.ts +10 -0
  108. package/dist/css-module/Fieldset.d.ts +19 -0
  109. package/dist/css-module/FieldsetLegend.d.ts +5 -0
  110. package/dist/css-module/Figure.d.ts +5 -0
  111. package/dist/css-module/FigureCaption.d.ts +5 -0
  112. package/dist/css-module/FormField.d.ts +8 -0
  113. package/dist/css-module/FormFieldDescription.d.ts +9 -0
  114. package/dist/css-module/FormLabel.d.ts +10 -0
  115. package/dist/css-module/HTMLContent.d.ts +9 -0
  116. package/dist/css-module/Heading.d.ts +12 -0
  117. package/dist/css-module/Heading1.d.ts +9 -0
  118. package/dist/css-module/Heading2.d.ts +9 -0
  119. package/dist/css-module/Heading3.d.ts +9 -0
  120. package/dist/css-module/Heading4.d.ts +9 -0
  121. package/dist/css-module/Heading5.d.ts +9 -0
  122. package/dist/css-module/Heading6.d.ts +9 -0
  123. package/dist/css-module/HeadingGroup.d.ts +9 -0
  124. package/dist/css-module/Icon.d.ts +10 -0
  125. package/dist/css-module/Image.d.ts +9 -0
  126. package/dist/css-module/Link.d.ts +14 -0
  127. package/dist/css-module/LinkButton.d.ts +13 -0
  128. package/dist/css-module/LinkSocial.d.ts +11 -0
  129. package/dist/css-module/ListSocial.d.ts +13 -0
  130. package/dist/css-module/Mark.d.ts +10 -0
  131. package/dist/css-module/NumberValue.d.ts +11 -0
  132. package/dist/css-module/OrderedList.d.ts +9 -0
  133. package/dist/css-module/OrderedListItem.d.ts +9 -0
  134. package/dist/css-module/Page.d.ts +9 -0
  135. package/dist/css-module/PageContent.d.ts +13 -0
  136. package/dist/css-module/PageFooter.d.ts +9 -0
  137. package/dist/css-module/PageHeader.d.ts +9 -0
  138. package/dist/css-module/Paragraph.d.ts +12 -0
  139. package/dist/css-module/PreHeading.d.ts +9 -0
  140. package/dist/css-module/RadioButton.d.ts +6 -0
  141. package/dist/css-module/Select.d.ts +19 -0
  142. package/dist/css-module/Separator.d.ts +7 -0
  143. package/dist/css-module/SkipLink.d.ts +5 -0
  144. package/dist/css-module/SpotlightSection.d.ts +13 -0
  145. package/dist/css-module/Strong.d.ts +10 -0
  146. package/dist/css-module/Surface.d.ts +9 -0
  147. package/dist/css-module/Table.d.ts +9 -0
  148. package/dist/css-module/TableBody.d.ts +9 -0
  149. package/dist/css-module/TableCaption.d.ts +9 -0
  150. package/dist/css-module/TableCell.d.ts +9 -0
  151. package/dist/css-module/TableFooter.d.ts +9 -0
  152. package/dist/css-module/TableHeader.d.ts +9 -0
  153. package/dist/css-module/TableHeaderCell.d.ts +9 -0
  154. package/dist/css-module/TableRow.d.ts +9 -0
  155. package/dist/css-module/Textarea.d.ts +5 -0
  156. package/dist/css-module/Textbox.d.ts +7 -0
  157. package/dist/css-module/URLValue.d.ts +9 -0
  158. package/dist/css-module/UnorderedList.d.ts +9 -0
  159. package/dist/css-module/UnorderedListItem.d.ts +9 -0
  160. package/dist/css-module/css-module/Alert.d.ts +6 -0
  161. package/dist/css-module/css-module/AlertDialog.d.ts +6 -0
  162. package/dist/css-module/css-module/Article.d.ts +6 -0
  163. package/dist/css-module/css-module/Backdrop.d.ts +6 -0
  164. package/dist/css-module/css-module/Button.d.ts +6 -0
  165. package/dist/css-module/css-module/ButtonGroup.d.ts +6 -0
  166. package/dist/css-module/css-module/ButtonLink.d.ts +6 -0
  167. package/dist/css-module/css-module/Checkbox.d.ts +7 -0
  168. package/dist/css-module/css-module/CustomRadioButton.d.ts +6 -0
  169. package/dist/css-module/css-module/DataList.d.ts +6 -0
  170. package/dist/css-module/css-module/Document.d.ts +6 -0
  171. package/dist/css-module/css-module/Emphasis.d.ts +6 -0
  172. package/dist/css-module/css-module/Fieldset.d.ts +6 -0
  173. package/dist/css-module/css-module/FieldsetLegend.d.ts +6 -0
  174. package/dist/css-module/css-module/Figure.d.ts +6 -0
  175. package/dist/css-module/css-module/FigureCaption.d.ts +6 -0
  176. package/dist/css-module/css-module/FormField.d.ts +6 -0
  177. package/dist/css-module/css-module/FormFieldDescription.d.ts +6 -0
  178. package/dist/css-module/css-module/FormLabel.d.ts +6 -0
  179. package/dist/css-module/css-module/HTMLContent.d.ts +6 -0
  180. package/dist/css-module/css-module/Heading.d.ts +11 -0
  181. package/dist/css-module/css-module/Heading1.d.ts +6 -0
  182. package/dist/css-module/css-module/Heading2.d.ts +6 -0
  183. package/dist/css-module/css-module/Heading3.d.ts +6 -0
  184. package/dist/css-module/css-module/Heading4.d.ts +6 -0
  185. package/dist/css-module/css-module/Heading5.d.ts +6 -0
  186. package/dist/css-module/css-module/Heading6.d.ts +6 -0
  187. package/dist/css-module/css-module/HeadingGroup.d.ts +6 -0
  188. package/dist/css-module/css-module/Icon.d.ts +6 -0
  189. package/dist/css-module/css-module/Image.d.ts +6 -0
  190. package/dist/css-module/css-module/Link.d.ts +6 -0
  191. package/dist/css-module/css-module/LinkButton.d.ts +6 -0
  192. package/dist/css-module/css-module/LinkSocial.d.ts +6 -0
  193. package/dist/css-module/css-module/ListSocial.d.ts +6 -0
  194. package/dist/css-module/css-module/Mark.d.ts +6 -0
  195. package/dist/css-module/css-module/NumberValue.d.ts +6 -0
  196. package/dist/css-module/css-module/OrderedList.d.ts +6 -0
  197. package/dist/css-module/css-module/OrderedListItem.d.ts +6 -0
  198. package/dist/css-module/css-module/Page.d.ts +6 -0
  199. package/dist/css-module/css-module/PageContent.d.ts +6 -0
  200. package/dist/css-module/css-module/PageFooter.d.ts +6 -0
  201. package/dist/css-module/css-module/PageHeader.d.ts +6 -0
  202. package/dist/css-module/css-module/Paragraph.d.ts +6 -0
  203. package/dist/css-module/css-module/PreHeading.d.ts +6 -0
  204. package/dist/css-module/css-module/RadioButton.d.ts +7 -0
  205. package/dist/css-module/css-module/Select.d.ts +6 -0
  206. package/dist/css-module/css-module/Separator.d.ts +6 -0
  207. package/dist/css-module/css-module/SkipLink.d.ts +6 -0
  208. package/dist/css-module/css-module/SpotlightSection.d.ts +6 -0
  209. package/dist/css-module/css-module/Strong.d.ts +6 -0
  210. package/dist/css-module/css-module/Surface.d.ts +6 -0
  211. package/dist/css-module/css-module/Table.d.ts +6 -0
  212. package/dist/css-module/css-module/TableBody.d.ts +5 -0
  213. package/dist/css-module/css-module/TableCaption.d.ts +5 -0
  214. package/dist/css-module/css-module/TableCell.d.ts +5 -0
  215. package/dist/css-module/css-module/TableFooter.d.ts +5 -0
  216. package/dist/css-module/css-module/TableHeader.d.ts +5 -0
  217. package/dist/css-module/css-module/TableHeaderCell.d.ts +5 -0
  218. package/dist/css-module/css-module/TableRow.d.ts +5 -0
  219. package/dist/css-module/css-module/Textarea.d.ts +6 -0
  220. package/dist/css-module/css-module/Textbox.d.ts +6 -0
  221. package/dist/css-module/css-module/URLValue.d.ts +6 -0
  222. package/dist/css-module/css-module/UnorderedList.d.ts +6 -0
  223. package/dist/css-module/css-module/UnorderedListItem.d.ts +6 -0
  224. package/dist/{cjs → css-module/css-module}/index.d.ts +68 -46
  225. package/dist/css-module/index.d.ts +69 -0
  226. package/dist/css-module/index.js +1511 -0
  227. package/dist/css-module/index.js.map +1 -0
  228. package/dist/css-module/index.mjs +1431 -0
  229. package/dist/css-module/index.mjs.map +1 -0
  230. package/dist/index.cjs.js +1739 -0
  231. package/dist/index.cjs.js.map +1 -0
  232. package/dist/index.d.ts +69 -0
  233. package/dist/index.esm.js +1656 -0
  234. package/dist/index.esm.js.map +1 -0
  235. package/package.json +47 -190
  236. package/dist/cjs/Article.d.ts +0 -8
  237. package/dist/cjs/Article.js +0 -29
  238. package/dist/cjs/Backdrop.js +0 -29
  239. package/dist/cjs/Button.d.ts +0 -6
  240. package/dist/cjs/Button.js +0 -25
  241. package/dist/cjs/Checkbox.js +0 -25
  242. package/dist/cjs/Document.js +0 -29
  243. package/dist/cjs/Fieldset.d.ts +0 -4
  244. package/dist/cjs/Fieldset.js +0 -25
  245. package/dist/cjs/FieldsetLegend.d.ts +0 -4
  246. package/dist/cjs/FieldsetLegend.js +0 -25
  247. package/dist/cjs/FormField.d.ts +0 -4
  248. package/dist/cjs/FormField.js +0 -25
  249. package/dist/cjs/FormFieldDescription.d.ts +0 -8
  250. package/dist/cjs/FormFieldDescription.js +0 -25
  251. package/dist/cjs/FormLabel.d.ts +0 -9
  252. package/dist/cjs/FormLabel.js +0 -25
  253. package/dist/cjs/HTMLContent.js +0 -29
  254. package/dist/cjs/Heading1.d.ts +0 -8
  255. package/dist/cjs/Heading1.js +0 -29
  256. package/dist/cjs/Heading2.d.ts +0 -8
  257. package/dist/cjs/Heading2.js +0 -29
  258. package/dist/cjs/Heading3.d.ts +0 -8
  259. package/dist/cjs/Heading3.js +0 -29
  260. package/dist/cjs/Heading4.d.ts +0 -8
  261. package/dist/cjs/Heading4.js +0 -29
  262. package/dist/cjs/Heading5.d.ts +0 -8
  263. package/dist/cjs/Heading5.js +0 -29
  264. package/dist/cjs/Heading6.d.ts +0 -8
  265. package/dist/cjs/Heading6.js +0 -29
  266. package/dist/cjs/Link.d.ts +0 -16
  267. package/dist/cjs/Link.js +0 -42
  268. package/dist/cjs/OrderedList.d.ts +0 -8
  269. package/dist/cjs/OrderedList.js +0 -29
  270. package/dist/cjs/OrderedListItem.d.ts +0 -8
  271. package/dist/cjs/OrderedListItem.js +0 -29
  272. package/dist/cjs/Page.js +0 -29
  273. package/dist/cjs/PageContent.d.ts +0 -10
  274. package/dist/cjs/PageContent.js +0 -34
  275. package/dist/cjs/PageFooter.js +0 -29
  276. package/dist/cjs/PageHeader.js +0 -29
  277. package/dist/cjs/Paragraph.d.ts +0 -10
  278. package/dist/cjs/Paragraph.js +0 -29
  279. package/dist/cjs/RadioButton.js +0 -25
  280. package/dist/cjs/Select.d.ts +0 -12
  281. package/dist/cjs/Select.js +0 -31
  282. package/dist/cjs/Separator.js +0 -30
  283. package/dist/cjs/Surface.js +0 -29
  284. package/dist/cjs/Table.d.ts +0 -8
  285. package/dist/cjs/Table.js +0 -29
  286. package/dist/cjs/TableBody.d.ts +0 -8
  287. package/dist/cjs/TableBody.js +0 -29
  288. package/dist/cjs/TableCaption.d.ts +0 -8
  289. package/dist/cjs/TableCaption.js +0 -29
  290. package/dist/cjs/TableCell.d.ts +0 -8
  291. package/dist/cjs/TableCell.js +0 -29
  292. package/dist/cjs/TableFooter.d.ts +0 -8
  293. package/dist/cjs/TableFooter.js +0 -29
  294. package/dist/cjs/TableHeader.d.ts +0 -8
  295. package/dist/cjs/TableHeader.js +0 -29
  296. package/dist/cjs/TableHeaderCell.d.ts +0 -8
  297. package/dist/cjs/TableHeaderCell.js +0 -29
  298. package/dist/cjs/TableRow.d.ts +0 -8
  299. package/dist/cjs/TableRow.js +0 -29
  300. package/dist/cjs/Textarea.js +0 -25
  301. package/dist/cjs/Textbox.d.ts +0 -8
  302. package/dist/cjs/Textbox.js +0 -25
  303. package/dist/cjs/URLValue.js +0 -29
  304. package/dist/cjs/UnorderedList.d.ts +0 -8
  305. package/dist/cjs/UnorderedList.js +0 -29
  306. package/dist/cjs/UnorderedListItem.js +0 -29
  307. package/dist/cjs/index.js +0 -92
  308. package/dist/cjs/tsconfig.tsbuildinfo +0 -2533
@@ -0,0 +1,1656 @@
1
+ import { __rest } from 'tslib';
2
+ import { jsxs, jsx } from 'react/jsx-runtime';
3
+ import clsx, { clsx as clsx$1 } from 'clsx';
4
+ import { forwardRef, useState } from 'react';
5
+ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
6
+ import { eachDayOfInterval, startOfWeek, endOfWeek, isSameDay, endOfDay, parseISO, setYear, getYear, addYears, setMonth, addMonths, format, isSameMonth, setDate, formatISO, startOfMonth, addWeeks } from 'date-fns';
7
+ import { enUS } from 'date-fns/locale';
8
+ import chunk from 'lodash.chunk';
9
+
10
+ var Alert = /*#__PURE__*/forwardRef(function (_a, ref) {
11
+ var children = _a.children,
12
+ className = _a.className,
13
+ icon = _a.icon,
14
+ type = _a.type,
15
+ restProps = __rest(_a, ["children", "className", "icon", "type"]);
16
+
17
+ return jsxs("div", Object.assign({}, restProps, {
18
+ ref: ref,
19
+ className: clsx('utrecht-alert', {
20
+ 'utrecht-alert--error': type === 'error',
21
+ 'utrecht-alert--info': type === 'info',
22
+ 'utrecht-alert--ok': type === 'ok',
23
+ 'utrecht-alert--warning': type === 'warning'
24
+ }, className)
25
+ }, {
26
+ children: [icon && jsx("div", Object.assign({
27
+ className: "utrecht-alert__icon"
28
+ }, {
29
+ children: icon
30
+ })), jsx("div", Object.assign({
31
+ className: "utrecht-alert__message"
32
+ }, {
33
+ children: children
34
+ }))]
35
+ }));
36
+ });
37
+ Alert.displayName = 'Alert';
38
+
39
+ var AlertDialog = /*#__PURE__*/forwardRef(function (_a, ref) {
40
+ var children = _a.children,
41
+ className = _a.className,
42
+ icon = _a.icon,
43
+ type = _a.type,
44
+ restProps = __rest(_a, ["children", "className", "icon", "type"]);
45
+
46
+ return jsxs("dialog", Object.assign({}, restProps, {
47
+ ref: ref,
48
+ className: clsx('utrecht-alert-dialog', {
49
+ 'utrecht-alert-dialog--error': type === 'error',
50
+ 'utrecht-alert-dialog--info': type === 'info',
51
+ 'utrecht-alert-dialog--warning': type === 'warning',
52
+ className: className
53
+ })
54
+ }, {
55
+ children: [icon && jsx("div", Object.assign({
56
+ className: "utrecht-alert-dialog__icon"
57
+ }, {
58
+ children: icon
59
+ })), jsx("div", Object.assign({
60
+ className: "utrecht-alert-dialog__message"
61
+ }, {
62
+ children: children
63
+ }))]
64
+ }));
65
+ });
66
+ AlertDialog.displayName = 'AlertDialog';
67
+
68
+ var Article = /*#__PURE__*/forwardRef(function (_a, ref) {
69
+ var children = _a.children,
70
+ className = _a.className,
71
+ restProps = __rest(_a, ["children", "className"]);
72
+
73
+ return jsx("article", Object.assign({}, restProps, {
74
+ ref: ref,
75
+ className: clsx('utrecht-article', className)
76
+ }, {
77
+ children: children
78
+ }));
79
+ });
80
+ Article.displayName = 'Article';
81
+
82
+ var Backdrop = /*#__PURE__*/forwardRef(function (_a, ref) {
83
+ var children = _a.children,
84
+ className = _a.className,
85
+ restProps = __rest(_a, ["children", "className"]);
86
+
87
+ return jsx("div", Object.assign({}, restProps, {
88
+ ref: ref,
89
+ className: clsx('utrecht-backdrop', className)
90
+ }, {
91
+ children: children
92
+ }));
93
+ });
94
+ Backdrop.displayName = 'Backdrop';
95
+
96
+ var Button = /*#__PURE__*/forwardRef(function (_a, ref) {
97
+ var appearance = _a.appearance,
98
+ busy = _a.busy,
99
+ disabled = _a.disabled,
100
+ children = _a.children,
101
+ className = _a.className,
102
+ hint = _a.hint,
103
+ pressed = _a.pressed,
104
+ type = _a.type,
105
+ restProps = __rest(_a, ["appearance", "busy", "disabled", "children", "className", "hint", "pressed", "type"]);
106
+
107
+ return jsx("button", Object.assign({}, restProps, {
108
+ ref: ref,
109
+ className: clsx('utrecht-button', busy && 'utrecht-button--busy', disabled && 'utrecht-button--disabled', type === 'submit' && 'utrecht-button--submit', appearance === 'primary-action-button' && 'utrecht-button--primary-action', appearance === 'secondary-action-button' && 'utrecht-button--secondary-action', appearance === 'subtle-button' && 'utrecht-button--subtle', hint === 'danger' && 'utrecht-button--danger', hint === 'warning' && 'utrecht-button--warning', hint === 'ready' && 'utrecht-button--ready', pressed === true && 'utrecht-button--pressed', className),
110
+ "aria-busy": busy || undefined,
111
+ "aria-pressed": typeof pressed === 'boolean' ? pressed : undefined,
112
+ disabled: disabled,
113
+ type: type || 'button'
114
+ }, {
115
+ children: children
116
+ }));
117
+ });
118
+ Button.displayName = 'Button';
119
+ var PrimaryActionButton = function PrimaryActionButton(_a) {
120
+ var args = __rest(_a, []);
121
+
122
+ return jsx(Button, Object.assign({}, args, {
123
+ appearance: "primary-action-button"
124
+ }));
125
+ };
126
+ PrimaryActionButton.displayName = 'PrimaryActionButton';
127
+ var SecondaryActionButton = function SecondaryActionButton(_a) {
128
+ var args = __rest(_a, []);
129
+
130
+ return jsx(Button, Object.assign({}, args, {
131
+ appearance: "secondary-action-button"
132
+ }));
133
+ };
134
+ SecondaryActionButton.displayName = 'SecondaryActionButton';
135
+ var SubtleButton = function SubtleButton(_a) {
136
+ var args = __rest(_a, []);
137
+
138
+ return jsx(Button, Object.assign({}, args, {
139
+ appearance: "subtle-button"
140
+ }));
141
+ };
142
+ SubtleButton.displayName = 'SubtleButton';
143
+
144
+ var ButtonGroup = /*#__PURE__*/forwardRef(function (_a, ref) {
145
+ var children = _a.children,
146
+ className = _a.className,
147
+ restProps = __rest(_a, ["children", "className"]);
148
+
149
+ return jsx("p", Object.assign({}, restProps, {
150
+ ref: ref,
151
+ className: clsx('utrecht-button-group', className)
152
+ }, {
153
+ children: children
154
+ }));
155
+ });
156
+ ButtonGroup.displayName = 'ButtonGroup';
157
+
158
+ var onKeyDown = function onKeyDown(evt) {
159
+ var _a;
160
+
161
+ if (evt.key === ' ' && typeof ((_a = evt.target) === null || _a === void 0 ? void 0 : _a.click) === 'function') {
162
+ // Prevent other side-effects, such as scrolling
163
+ evt.preventDefault(); // Navigate to the link target
164
+
165
+ evt.target.click();
166
+ }
167
+ };
168
+
169
+ var ButtonLink = /*#__PURE__*/forwardRef(function (_a, ref) {
170
+ var appearance = _a.appearance,
171
+ children = _a.children,
172
+ className = _a.className,
173
+ external = _a.external,
174
+ href = _a.href,
175
+ placeholder = _a.placeholder,
176
+ role = _a.role,
177
+ restProps = __rest(_a, ["appearance", "children", "className", "external", "href", "placeholder", "role"]);
178
+
179
+ var props = restProps;
180
+
181
+ if (role === 'button') {
182
+ // When this link is announced as button by accessibility tools,
183
+ // it should also behave like a button. Links are not activated
184
+ // using `Space`, so we need to implement that behaviour here
185
+ // to reach parity with the `button` element.
186
+ props = Object.assign(Object.assign({}, restProps), {
187
+ onKeyDown: onKeyDown
188
+ });
189
+ }
190
+
191
+ return jsx("a", Object.assign({
192
+ href: placeholder ? undefined : href,
193
+ ref: ref,
194
+ role: role || (placeholder ? 'link' : undefined),
195
+ className: clsx('utrecht-button-link', 'utrecht-button-link--html-a', {
196
+ 'utrecht-button-link--external': external,
197
+ 'utrecht-button-link--primary-action': appearance === 'primary-action-button',
198
+ 'utrecht-button-link--secondary-action': appearance === 'secondary-action-button',
199
+ 'utrecht-button-link--subtle': appearance === 'subtle-button',
200
+ 'utrecht-button-link--placeholder': placeholder
201
+ }, className),
202
+ rel: external ? 'external noopener noreferrer' : undefined,
203
+ "aria-disabled": placeholder ? 'true' : undefined
204
+ }, props, {
205
+ children: children
206
+ }));
207
+ });
208
+ ButtonLink.displayName = 'ButtonLink';
209
+
210
+ var CalendarNavigation = function CalendarNavigation(_a) {
211
+ var children = _a.children,
212
+ props = __rest(_a, ["children"]);
213
+
214
+ return jsx("div", Object.assign({
215
+ className: "utrecht-calendar__navigation"
216
+ }, props, {
217
+ children: children
218
+ }));
219
+ };
220
+
221
+ var CalendarButton = function CalendarButton(_a) {
222
+ var children = _a.children,
223
+ className = _a.className,
224
+ props = __rest(_a, ["children", "className"]);
225
+
226
+ return jsx(Button, Object.assign({
227
+ appearance: "subtle-button"
228
+ }, props, {
229
+ className: clsx$1('utrecht-calendar__button', className)
230
+ }, {
231
+ children: children
232
+ }));
233
+ };
234
+
235
+ var CalendarIcon = function CalendarIcon(_a) {
236
+ var children = _a.children,
237
+ props = __rest(_a, ["children"]);
238
+
239
+ return jsx("div", Object.assign({
240
+ className: clsx$1('utrecht-calendar__icon')
241
+ }, props, {
242
+ children: children
243
+ }));
244
+ };
245
+
246
+ var CalendarNavigationButtons = function CalendarNavigationButtons(_a) {
247
+ var onPreviousClick = _a.onPreviousClick,
248
+ onNextClick = _a.onNextClick,
249
+ previousIcon = _a.previousIcon,
250
+ nextIcon = _a.nextIcon,
251
+ children = _a.children,
252
+ props = __rest(_a, ["onPreviousClick", "onNextClick", "previousIcon", "nextIcon", "children"]);
253
+
254
+ return jsxs("div", Object.assign({
255
+ className: "utrecht-calendar__navigation-buttons"
256
+ }, {
257
+ children: [jsx(CalendarButton, Object.assign({
258
+ onClick: onPreviousClick
259
+ }, props, {
260
+ children: jsx(CalendarIcon, {
261
+ children: previousIcon
262
+ })
263
+ })), children, jsx(CalendarButton, Object.assign({
264
+ onClick: onNextClick
265
+ }, props, {
266
+ children: jsx(CalendarIcon, {
267
+ children: nextIcon
268
+ })
269
+ }))]
270
+ }));
271
+ };
272
+
273
+ var Heading2 = /*#__PURE__*/forwardRef(function (_a, ref) {
274
+ var children = _a.children,
275
+ className = _a.className,
276
+ restProps = __rest(_a, ["children", "className"]);
277
+
278
+ return jsx("h2", Object.assign({}, restProps, {
279
+ ref: ref,
280
+ className: clsx('utrecht-heading-2', className)
281
+ }, {
282
+ children: children
283
+ }));
284
+ });
285
+ Heading2.displayName = 'Heading2';
286
+
287
+ var CalendarNavigationLabel = function CalendarNavigationLabel(_ref) {
288
+ var label = _ref.label;
289
+ return jsx(Heading2, Object.assign({
290
+ className: "utrecht-calendar__navigation-label"
291
+ }, {
292
+ children: label
293
+ }));
294
+ };
295
+
296
+ var CalendarTableDaysContainer = function CalendarTableDaysContainer(_a) {
297
+ var children = _a.children,
298
+ props = __rest(_a, ["children"]);
299
+
300
+ return jsx("tbody", Object.assign({}, props, {
301
+ className: "utrecht-calendar__table-days-container"
302
+ }, {
303
+ children: children
304
+ }));
305
+ };
306
+
307
+ var CalendarTableDaysItem = function CalendarTableDaysItem(_a) {
308
+ var children = _a.children,
309
+ props = __rest(_a, ["children"]);
310
+
311
+ return jsx("tr", Object.assign({}, props, {
312
+ children: children
313
+ }));
314
+ };
315
+
316
+ var CalendarTableDaysItemDay = function CalendarTableDaysItemDay(_a) {
317
+ var day = _a.day,
318
+ dayOutOfTheMonth = _a.dayOutOfTheMonth,
319
+ isToday = _a.isToday,
320
+ emphasis = _a.emphasis,
321
+ selected = _a.selected,
322
+ disabled = _a.disabled,
323
+ props = __rest(_a, ["day", "dayOutOfTheMonth", "isToday", "emphasis", "selected", "disabled"]);
324
+
325
+ return jsx("td", {
326
+ children: jsx(CalendarButton, Object.assign({
327
+ className: clsx('utrecht-calendar__table-days-item-day', {
328
+ 'utrecht-calendar__table-days-item-day--out-of-the-month': dayOutOfTheMonth
329
+ }, {
330
+ 'utrecht-calendar__table-days-item-day--is-today': isToday
331
+ }, {
332
+ 'utrecht-calendar__table-days-item-day--emphasis': emphasis
333
+ }, {
334
+ 'utrecht-calendar__table-days-item-day--selected': selected
335
+ }),
336
+ disabled: disabled
337
+ }, props, {
338
+ children: day
339
+ }))
340
+ });
341
+ };
342
+
343
+ var CalendarTableWeeksContainer = function CalendarTableWeeksContainer(_ref) {
344
+ var children = _ref.children;
345
+ return jsx("thead", Object.assign({
346
+ className: "utrecht-calendar__table-weeks-container"
347
+ }, {
348
+ children: jsx("tr", Object.assign({
349
+ className: "utrecht-calendar__table-weeks-container-content"
350
+ }, {
351
+ children: children
352
+ }))
353
+ }));
354
+ };
355
+
356
+ var CalendarTableWeeksItem = function CalendarTableWeeksItem(_a) {
357
+ var children = _a.children,
358
+ props = __rest(_a, ["children"]);
359
+
360
+ return jsx("th", Object.assign({}, props, {
361
+ className: "utrecht-calendar__table-weeks-item"
362
+ }, {
363
+ children: children
364
+ }));
365
+ };
366
+
367
+ var IconArrowLeft = function IconArrowLeft(_a) {
368
+ var title = _a.title,
369
+ titleId = _a.titleId,
370
+ props = __rest(_a, ["title", "titleId"]);
371
+
372
+ return jsxs("svg", Object.assign({
373
+ width: "100%",
374
+ height: "100%",
375
+ fill: "none",
376
+ xmlns: "http://www.w3.org/2000/svg",
377
+ "aria-labelledby": titleId
378
+ }, props, {
379
+ children: [title ? jsx("title", Object.assign({
380
+ id: titleId
381
+ }, {
382
+ children: title
383
+ })) : null, jsx("path", {
384
+ d: "M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41Z",
385
+ fill: "currentColor"
386
+ })]
387
+ }));
388
+ };
389
+
390
+ var IconArrowLeftDouble = function IconArrowLeftDouble(_a) {
391
+ var title = _a.title,
392
+ titleId = _a.titleId,
393
+ props = __rest(_a, ["title", "titleId"]);
394
+
395
+ return jsxs("svg", Object.assign({
396
+ width: "100%",
397
+ height: "100%",
398
+ fill: "none",
399
+ xmlns: "http://www.w3.org/2000/svg",
400
+ "aria-labelledby": titleId
401
+ }, props, {
402
+ children: [title ? jsx("title", Object.assign({
403
+ id: titleId
404
+ }, {
405
+ children: title
406
+ })) : null, jsx("path", {
407
+ d: "M17.59 18 19 16.59 14.42 12 19 7.41 17.59 6l-6 6 6 6Z",
408
+ fill: "currentColor"
409
+ }), jsx("path", {
410
+ d: "m11 18 1.41-1.41L7.83 12l4.58-4.59L11 6l-6 6 6 6Z",
411
+ fill: "currentColor"
412
+ })]
413
+ }));
414
+ };
415
+
416
+ var IconArrowRight = function IconArrowRight(_a) {
417
+ var title = _a.title,
418
+ titleId = _a.titleId,
419
+ props = __rest(_a, ["title", "titleId"]);
420
+
421
+ return jsxs("svg", Object.assign({
422
+ width: "100%",
423
+ height: "100%",
424
+ fill: "none",
425
+ xmlns: "http://www.w3.org/2000/svg",
426
+ "aria-labelledby": titleId
427
+ }, props, {
428
+ children: [title ? jsx("title", Object.assign({
429
+ id: titleId
430
+ }, {
431
+ children: title
432
+ })) : null, jsx("path", {
433
+ d: "M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41Z",
434
+ fill: "currentColor"
435
+ })]
436
+ }));
437
+ };
438
+
439
+ var IconArrowRightDouble = function IconArrowRightDouble(_a) {
440
+ var title = _a.title,
441
+ titleId = _a.titleId,
442
+ props = __rest(_a, ["title", "titleId"]);
443
+
444
+ return jsxs("svg", Object.assign({
445
+ fill: "none",
446
+ width: "100%",
447
+ height: "100%",
448
+ xmlns: "http://www.w3.org/2000/svg",
449
+ "aria-labelledby": titleId
450
+ }, props, {
451
+ children: [title ? jsx("title", Object.assign({
452
+ id: titleId
453
+ }, {
454
+ children: title
455
+ })) : null, jsx("path", {
456
+ d: "M6.41 6 5 7.41 9.58 12 5 16.59 6.41 18l6-6-6-6Z",
457
+ fill: "currentColor"
458
+ }), jsx("path", {
459
+ d: "m13 6-1.41 1.41L16.17 12l-4.58 4.59L13 18l6-6-6-6Z",
460
+ fill: "currentColor"
461
+ })]
462
+ }));
463
+ };
464
+
465
+ function createCalendar(today) {
466
+ var start = startOfWeek(startOfMonth(today), {
467
+ weekStartsOn: 1
468
+ /* Monday */
469
+
470
+ });
471
+ var end = endOfWeek(addWeeks(start, 5), {
472
+ weekStartsOn: 1
473
+ /* Monday */
474
+
475
+ });
476
+ return eachDayOfInterval({
477
+ start: start,
478
+ end: end
479
+ });
480
+ }
481
+ /**
482
+ * Calendar Component
483
+ * powered by date-fns, so that make it easy to use the `date-fns` date functions & locale
484
+ * */
485
+
486
+
487
+ var Calendar = function Calendar(_ref) {
488
+ var onCalendarClick = _ref.onCalendarClick,
489
+ events = _ref.events,
490
+ currentDate = _ref.currentDate,
491
+ _ref$locale = _ref.locale,
492
+ locale = _ref$locale === void 0 ? enUS : _ref$locale,
493
+ _ref$previousYearButt = _ref.previousYearButtonTitle,
494
+ previousYearButtonTitle = _ref$previousYearButt === void 0 ? 'Previous year' : _ref$previousYearButt,
495
+ _ref$nextYearButtonTi = _ref.nextYearButtonTitle,
496
+ nextYearButtonTitle = _ref$nextYearButtonTi === void 0 ? 'Next year' : _ref$nextYearButtonTi,
497
+ _ref$previousMonthBut = _ref.previousMonthButtonTitle,
498
+ previousMonthButtonTitle = _ref$previousMonthBut === void 0 ? 'Previous month' : _ref$previousMonthBut,
499
+ _ref$nextMonthButtonT = _ref.nextMonthButtonTitle,
500
+ nextMonthButtonTitle = _ref$nextMonthButtonT === void 0 ? 'Next month' : _ref$nextMonthButtonT;
501
+
502
+ var _useState = useState(currentDate || new Date()),
503
+ _useState2 = _slicedToArray(_useState, 2),
504
+ date = _useState2[0],
505
+ setDate$1 = _useState2[1];
506
+
507
+ var calendar = createCalendar(date);
508
+ var start = startOfWeek(date, {
509
+ weekStartsOn: 1
510
+ });
511
+ var end = endOfWeek(date, {
512
+ weekStartsOn: 1
513
+ });
514
+ var currentWeek = eachDayOfInterval({
515
+ start: start,
516
+ end: end
517
+ }).map(function (day) {
518
+ return day;
519
+ });
520
+ var chunksWeeks = chunk(calendar, calendar.length / 6);
521
+ var weeks = chunksWeeks.map(function (week) {
522
+ return week.map(function (date) {
523
+ var currentEvent = events && events.length > 0 && events.find(function (e) {
524
+ return isSameDay(endOfDay(parseISO(e.date)), date);
525
+ });
526
+
527
+ if (currentEvent) {
528
+ return {
529
+ date: date,
530
+ emphasis: currentEvent.emphasis,
531
+ selected: currentEvent.selected,
532
+ disabled: currentEvent.disabled
533
+ };
534
+ } else {
535
+ return {
536
+ date: date,
537
+ emphasis: false,
538
+ selected: false,
539
+ disabled: false
540
+ };
541
+ }
542
+ });
543
+ });
544
+ return jsxs("div", Object.assign({
545
+ className: "utrecht-calendar"
546
+ }, {
547
+ children: [jsx(CalendarNavigation, {
548
+ children: jsx(CalendarNavigationButtons, Object.assign({
549
+ previousIcon: jsx(IconArrowLeftDouble, {
550
+ title: previousYearButtonTitle
551
+ }),
552
+ nextIcon: jsx(IconArrowRightDouble, {
553
+ title: nextYearButtonTitle
554
+ }),
555
+ onPreviousClick: function onPreviousClick() {
556
+ return setDate$1(setYear(date, getYear(date) - 1));
557
+ },
558
+ onNextClick: function onNextClick() {
559
+ return setDate$1(addYears(date, 1));
560
+ }
561
+ }, {
562
+ children: jsx(CalendarNavigationButtons, Object.assign({
563
+ previousIcon: jsx(IconArrowLeft, {
564
+ title: previousMonthButtonTitle
565
+ }),
566
+ nextIcon: jsx(IconArrowRight, {
567
+ title: nextMonthButtonTitle
568
+ }),
569
+ onPreviousClick: function onPreviousClick() {
570
+ return setDate$1(setMonth(date, date.getMonth() - 1));
571
+ },
572
+ onNextClick: function onNextClick() {
573
+ return setDate$1(addMonths(date, 1));
574
+ }
575
+ }, {
576
+ children: jsx(CalendarNavigationLabel, {
577
+ label: format(date, 'LLLL Y', {
578
+ locale: locale
579
+ })
580
+ })
581
+ }))
582
+ }))
583
+ }), jsxs("table", Object.assign({
584
+ className: "utrecht-calendar__table",
585
+ role: "grid"
586
+ }, {
587
+ children: [jsx(CalendarTableWeeksContainer, {
588
+ children: currentWeek && currentWeek.length > 0 && currentWeek.map(function (day, index) {
589
+ return jsx(CalendarTableWeeksItem, Object.assign({
590
+ scope: "col",
591
+ abbr: format(day, 'EEEE', {
592
+ locale: locale
593
+ })
594
+ }, {
595
+ children: format(day, 'EEEEEE', {
596
+ locale: locale
597
+ })
598
+ }), index);
599
+ })
600
+ }), jsx(CalendarTableDaysContainer, {
601
+ children: weeks && weeks.length > 0 && weeks.map(function (week, index) {
602
+ return jsx(CalendarTableDaysItem, {
603
+ children: week.map(function (day, index) {
604
+ return jsx(CalendarTableDaysItemDay, {
605
+ isToday: isSameDay(date, day.date),
606
+ dayOutOfTheMonth: !isSameMonth(day.date, date),
607
+ onClick: function onClick(event) {
608
+ var selectedDay = setDate(date, Number(event.target.textContent));
609
+ setDate$1(selectedDay);
610
+ onCalendarClick(formatISO(selectedDay));
611
+ },
612
+ "aria-label": format(day.date, 'eeee dd LLLL Y', {
613
+ locale: locale
614
+ }),
615
+ day: day.date.getDate().toString(),
616
+ emphasis: day.emphasis,
617
+ selected: day.selected,
618
+ disabled: day.disabled
619
+ }, index);
620
+ })
621
+ }, index);
622
+ })
623
+ })]
624
+ }))]
625
+ }));
626
+ };
627
+
628
+ var Checkbox = /*#__PURE__*/forwardRef(function (_a, ref) {
629
+ var _a$appearance = _a.appearance,
630
+ appearance = _a$appearance === void 0 ? 'custom' : _a$appearance,
631
+ disabled = _a.disabled,
632
+ invalid = _a.invalid,
633
+ required = _a.required,
634
+ className = _a.className,
635
+ restProps = __rest(_a, ["appearance", "disabled", "invalid", "required", "className"]);
636
+
637
+ return jsx("input", Object.assign({}, restProps, {
638
+ ref: ref,
639
+ type: "checkbox",
640
+ className: clsx('utrecht-checkbox', 'utrecht-checkbox--html-input', {
641
+ 'utrecht-checkbox--disabled': disabled,
642
+ 'utrecht-checkbox--custom': appearance === 'custom',
643
+ 'utrecht-checkbox--invalid': invalid,
644
+ 'utrecht-checkbox--required': required
645
+ }, className),
646
+ "aria-invalid": invalid || undefined,
647
+ disabled: disabled,
648
+ required: required
649
+ }));
650
+ });
651
+ Checkbox.displayName = 'Checkbox';
652
+
653
+ var CustomRadioButton = /*#__PURE__*/forwardRef(function (_a, ref) {
654
+ var disabled = _a.disabled,
655
+ required = _a.required,
656
+ className = _a.className,
657
+ invalid = _a.invalid,
658
+ restProps = __rest(_a, ["disabled", "required", "className", "invalid"]);
659
+
660
+ return jsx("input", Object.assign({
661
+ type: "radio",
662
+ "aria-invalid": invalid || undefined,
663
+ disabled: disabled,
664
+ required: required,
665
+ ref: ref,
666
+ className: clsx('utrecht-custom-radio-button', 'utrecht-custom-radio-button--html-input', disabled && 'utrecht-custom-radio-button--disabled', invalid && 'utrecht-custom-radio-button--invalid', className)
667
+ }, restProps));
668
+ });
669
+ CustomRadioButton.displayName = 'CustomRadioButton';
670
+
671
+ var Document = /*#__PURE__*/forwardRef(function (_a, ref) {
672
+ var children = _a.children,
673
+ className = _a.className,
674
+ restProps = __rest(_a, ["children", "className"]);
675
+
676
+ return jsx("div", Object.assign({}, restProps, {
677
+ ref: ref,
678
+ className: clsx('utrecht-document', className)
679
+ }, {
680
+ children: children
681
+ }));
682
+ });
683
+ Document.displayName = 'Document';
684
+
685
+ var DataList = /*#__PURE__*/forwardRef(function (_a, ref) {
686
+ var appearance = _a.appearance,
687
+ children = _a.children,
688
+ className = _a.className,
689
+ restProps = __rest(_a, ["appearance", "children", "className"]);
690
+
691
+ return jsx("dl", Object.assign({}, restProps, {
692
+ className: clsx('utrecht-data-list', 'utrecht-data-list--html-dl', appearance === 'rows' && 'utrecht-data-list--rows', className),
693
+ ref: ref
694
+ }, {
695
+ children: children
696
+ }));
697
+ });
698
+ DataList.displayName = 'DataList';
699
+ var DataListItem = /*#__PURE__*/forwardRef(function (_a, ref) {
700
+ var children = _a.children,
701
+ className = _a.className,
702
+ restProps = __rest(_a, ["children", "className"]);
703
+
704
+ return jsx("div", Object.assign({}, restProps, {
705
+ className: clsx('utrecht-data-list__item', className),
706
+ ref: ref
707
+ }, {
708
+ children: children
709
+ }));
710
+ });
711
+ DataListItem.displayName = 'DataListItem';
712
+ var DataListKey = /*#__PURE__*/forwardRef(function (_a, ref) {
713
+ var children = _a.children,
714
+ className = _a.className,
715
+ restProps = __rest(_a, ["children", "className"]);
716
+
717
+ return jsx("dt", Object.assign({}, restProps, {
718
+ className: clsx('utrecht-data-list__item-key', className),
719
+ ref: ref
720
+ }, {
721
+ children: children
722
+ }));
723
+ });
724
+ DataListKey.displayName = 'DataListKey';
725
+ var DataListValue = /*#__PURE__*/forwardRef(function (_ref, ref) {
726
+ var value = _ref.value,
727
+ children = _ref.children,
728
+ className = _ref.className,
729
+ emptyDescription = _ref.emptyDescription,
730
+ multiline = _ref.multiline,
731
+ notranslate = _ref.notranslate;
732
+ var empty = value === '' || value === null;
733
+ return jsx("dd", Object.assign({
734
+ className: clsx('utrecht-data-list__item-value', 'utrecht-data-list__item-value--html-dd', className, multiline && 'utrecht-data-list__item-value--multiline'),
735
+ translate: typeof notranslate === 'boolean' ? notranslate ? 'no' : 'yes' : undefined,
736
+ ref: ref
737
+ }, {
738
+ children: empty ? jsx("span", Object.assign({
739
+ "aria-label": emptyDescription
740
+ }, {
741
+ children: "-"
742
+ })) : children
743
+ }));
744
+ });
745
+ DataListValue.displayName = 'DataListValue';
746
+ var DataListActions = /*#__PURE__*/forwardRef(function (_a, ref) {
747
+ var children = _a.children,
748
+ className = _a.className,
749
+ restProps = __rest(_a, ["children", "className"]);
750
+
751
+ return jsx("dd", Object.assign({}, restProps, {
752
+ className: clsx('utrecht-data-list__actions', 'utrecht-data-list__actions--html-dd', className),
753
+ ref: ref
754
+ }, {
755
+ children: children
756
+ }));
757
+ });
758
+ DataListActions.displayName = 'DataListActions';
759
+
760
+ var Emphasis = /*#__PURE__*/forwardRef(function (_a, ref) {
761
+ var children = _a.children,
762
+ className = _a.className,
763
+ restProps = __rest(_a, ["children", "className"]);
764
+
765
+ return jsx("em", Object.assign({
766
+ ref: ref,
767
+ className: clsx('utrecht-emphasis', 'utrecht-emphasis--stressed', className)
768
+ }, restProps, {
769
+ children: children
770
+ }));
771
+ });
772
+ Emphasis.displayName = 'Emphasis';
773
+
774
+ var Fieldset = /*#__PURE__*/forwardRef(function (_a, ref) {
775
+ var ariaDescribedby = _a['aria-describedby'],
776
+ ariaLabel = _a['aria-label'],
777
+ ariaLabelledby = _a['aria-labelledby'],
778
+ className = _a.className,
779
+ children = _a.children,
780
+ disabled = _a.disabled,
781
+ form = _a.form,
782
+ invalid = _a.invalid,
783
+ name = _a.name,
784
+ role = _a.role,
785
+ restProps = __rest(_a, ['aria-describedby', 'aria-label', 'aria-labelledby', "className", "children", "disabled", "form", "invalid", "name", "role"]);
786
+
787
+ return jsx("div", Object.assign({}, restProps, {
788
+ ref: ref,
789
+ className: clsx('utrecht-form-fieldset', disabled && 'utrecht-form-fieldset--disabled', invalid && 'utrecht-form-fieldset--invalid', className)
790
+ }, {
791
+ children: jsx("fieldset", Object.assign({
792
+ "aria-describedby": ariaDescribedby,
793
+ "aria-label": ariaLabel,
794
+ "aria-labelledby": ariaLabelledby,
795
+ "aria-invalid": invalid || undefined,
796
+ disabled: disabled,
797
+ form: form,
798
+ name: name,
799
+ role: role,
800
+ className: clsx('utrecht-form-fieldset__fieldset', 'utrecht-form-fieldset--html-fieldset')
801
+ }, {
802
+ children: children
803
+ }))
804
+ }));
805
+ });
806
+ Fieldset.displayName = 'Fieldset';
807
+ var FieldsetOnly = /*#__PURE__*/forwardRef(function (_a, ref) {
808
+ var className = _a.className,
809
+ children = _a.children,
810
+ disabled = _a.disabled,
811
+ invalid = _a.invalid,
812
+ restProps = __rest(_a, ["className", "children", "disabled", "invalid"]);
813
+
814
+ return jsx("fieldset", Object.assign({}, restProps, {
815
+ ref: ref,
816
+ "aria-invalid": invalid || undefined,
817
+ disabled: disabled,
818
+ className: clsx('utrecht-form-fieldset', 'utrecht-form-fieldset--html-fieldset', disabled && 'utrecht-form-fieldset--disabled', invalid && 'utrecht-form-fieldset--invalid', className)
819
+ }, {
820
+ children: children
821
+ }));
822
+ });
823
+ FieldsetOnly.displayName = 'Fieldset';
824
+
825
+ var FieldsetLegend = /*#__PURE__*/forwardRef(function (_a, ref) {
826
+ var className = _a.className,
827
+ children = _a.children,
828
+ restProps = __rest(_a, ["className", "children"]);
829
+
830
+ return jsx("legend", Object.assign({}, restProps, {
831
+ ref: ref,
832
+ className: clsx('utrecht-form-fieldset__legend', 'utrecht-form-fieldset__legend--html-legend', className)
833
+ }, {
834
+ children: children
835
+ }));
836
+ });
837
+ FieldsetLegend.displayName = 'FieldsetLegend';
838
+
839
+ var Figure = /*#__PURE__*/forwardRef(function (_a, ref) {
840
+ var className = _a.className,
841
+ children = _a.children,
842
+ restProps = __rest(_a, ["className", "children"]);
843
+
844
+ return jsx("figure", Object.assign({}, restProps, {
845
+ ref: ref,
846
+ className: clsx('utrecht-figure', className)
847
+ }, {
848
+ children: children
849
+ }));
850
+ });
851
+ Figure.displayName = 'Figure';
852
+
853
+ var FigureCaption = /*#__PURE__*/forwardRef(function (_a, ref) {
854
+ var className = _a.className,
855
+ children = _a.children,
856
+ restProps = __rest(_a, ["className", "children"]);
857
+
858
+ return jsx("figcaption", Object.assign({}, restProps, {
859
+ ref: ref,
860
+ className: clsx('utrecht-figure__caption', className)
861
+ }, {
862
+ children: children
863
+ }));
864
+ });
865
+ FigureCaption.displayName = 'FigureCaption';
866
+
867
+ var FormField = /*#__PURE__*/forwardRef(function (_a, ref) {
868
+ var className = _a.className,
869
+ children = _a.children,
870
+ invalid = _a.invalid,
871
+ type = _a.type,
872
+ restProps = __rest(_a, ["className", "children", "invalid", "type"]);
873
+
874
+ return jsx("div", Object.assign({}, restProps, {
875
+ ref: ref,
876
+ className: clsx('utrecht-form-field', {
877
+ 'utrecht-form-field--invalid': invalid,
878
+ 'utrecht-form-field--checkbox': type === 'checkbox',
879
+ 'utrecht-form-field--radio': type === 'radio',
880
+ 'utrecht-form-field--text': !type || type === 'text'
881
+ }, className)
882
+ }, {
883
+ children: children
884
+ }));
885
+ });
886
+ FormField.displayName = 'FormField';
887
+
888
+ var FormFieldDescription = /*#__PURE__*/forwardRef(function (_a, ref) {
889
+ var invalid = _a.invalid,
890
+ valid = _a.valid,
891
+ warning = _a.warning,
892
+ className = _a.className,
893
+ children = _a.children,
894
+ restProps = __rest(_a, ["invalid", "valid", "warning", "className", "children"]);
895
+
896
+ return jsx("div", Object.assign({}, restProps, {
897
+ ref: ref,
898
+ className: clsx('utrecht-form-field-description', invalid && 'utrecht-form-field-description--invalid', valid && 'utrecht-form-field-description--valid', warning && 'utrecht-form-field-description--warning', className)
899
+ }, {
900
+ children: children
901
+ }));
902
+ });
903
+ FormFieldDescription.displayName = 'FormFieldDescription';
904
+
905
+ var FormLabel = /*#__PURE__*/forwardRef(function (_a, ref) {
906
+ var children = _a.children,
907
+ className = _a.className,
908
+ type = _a.type,
909
+ disabled = _a.disabled,
910
+ checked = _a.checked,
911
+ restProps = __rest(_a, ["children", "className", "type", "disabled", "checked"]);
912
+
913
+ return jsx("label", Object.assign({}, restProps, {
914
+ ref: ref,
915
+ className: clsx('utrecht-form-label', type && "utrecht-form-label--".concat(type), disabled && 'utrecht-form-label--disabled', checked && 'utrecht-form-label--checked', className)
916
+ }, {
917
+ children: children
918
+ }));
919
+ });
920
+ FormLabel.displayName = 'FormLabel';
921
+
922
+ var HTMLContent = /*#__PURE__*/forwardRef(function (_a, ref) {
923
+ var children = _a.children,
924
+ className = _a.className,
925
+ restProps = __rest(_a, ["children", "className"]);
926
+
927
+ return jsx("div", Object.assign({}, restProps, {
928
+ ref: ref,
929
+ className: clsx('utrecht-html', className)
930
+ }, {
931
+ children: children
932
+ }));
933
+ });
934
+ HTMLContent.displayName = 'HTMLContent';
935
+
936
+ var Heading = /*#__PURE__*/forwardRef(function (_a, ref) {
937
+ var appearance = _a.appearance,
938
+ className = _a.className,
939
+ level = _a.level,
940
+ restProps = __rest(_a, ["appearance", "className", "level"]);
941
+
942
+ var appearances = ['utrecht-heading-1', 'utrecht-heading-2', 'utrecht-heading-3', 'utrecht-heading-4', 'utrecht-heading-5', 'utrecht-heading-6'];
943
+ var HeadingX = level === 2 ? 'h2' : level === 3 ? 'h3' : level === 4 ? 'h4' : level === 5 ? 'h5' : level === 6 ? 'h6' : 'h1';
944
+ var headingClassName = appearance && appearances.indexOf(appearance) !== -1 ? appearance : appearances[level - 1] || 'utrecht-heading-1';
945
+ return jsx(HeadingX, Object.assign({
946
+ className: clsx(headingClassName, className)
947
+ }, restProps, {
948
+ ref: ref
949
+ }));
950
+ });
951
+ Heading.displayName = 'Heading';
952
+
953
+ var Heading1 = /*#__PURE__*/forwardRef(function (_a, ref) {
954
+ var children = _a.children,
955
+ className = _a.className,
956
+ restProps = __rest(_a, ["children", "className"]);
957
+
958
+ return jsx("h1", Object.assign({}, restProps, {
959
+ ref: ref,
960
+ className: clsx('utrecht-heading-1', className)
961
+ }, {
962
+ children: children
963
+ }));
964
+ });
965
+ Heading1.displayName = 'Heading1';
966
+
967
+ var Heading3 = /*#__PURE__*/forwardRef(function (_a, ref) {
968
+ var children = _a.children,
969
+ className = _a.className,
970
+ restProps = __rest(_a, ["children", "className"]);
971
+
972
+ return jsx("h3", Object.assign({}, restProps, {
973
+ ref: ref,
974
+ className: clsx('utrecht-heading-3', className)
975
+ }, {
976
+ children: children
977
+ }));
978
+ });
979
+ Heading3.displayName = 'Heading3';
980
+
981
+ var Heading4 = /*#__PURE__*/forwardRef(function (_a, ref) {
982
+ var children = _a.children,
983
+ className = _a.className,
984
+ restProps = __rest(_a, ["children", "className"]);
985
+
986
+ return jsx("h4", Object.assign({}, restProps, {
987
+ ref: ref,
988
+ className: clsx('utrecht-heading-4', className)
989
+ }, {
990
+ children: children
991
+ }));
992
+ });
993
+ Heading4.displayName = 'Heading4';
994
+
995
+ var Heading5 = /*#__PURE__*/forwardRef(function (_a, ref) {
996
+ var children = _a.children,
997
+ className = _a.className,
998
+ restProps = __rest(_a, ["children", "className"]);
999
+
1000
+ return jsx("h5", Object.assign({}, restProps, {
1001
+ ref: ref,
1002
+ className: clsx('utrecht-heading-5', className)
1003
+ }, {
1004
+ children: children
1005
+ }));
1006
+ });
1007
+ Heading5.displayName = 'Heading5';
1008
+
1009
+ var Heading6 = /*#__PURE__*/forwardRef(function (_a, ref) {
1010
+ var children = _a.children,
1011
+ className = _a.className,
1012
+ restProps = __rest(_a, ["children", "className"]);
1013
+
1014
+ return jsx("h6", Object.assign({}, restProps, {
1015
+ ref: ref,
1016
+ className: clsx('utrecht-heading-6', className)
1017
+ }, {
1018
+ children: children
1019
+ }));
1020
+ });
1021
+ Heading6.displayName = 'Heading6';
1022
+
1023
+ var HeadingGroup = /*#__PURE__*/forwardRef(function (_a, ref) {
1024
+ var children = _a.children,
1025
+ className = _a.className,
1026
+ restProps = __rest(_a, ["children", "className"]);
1027
+
1028
+ return jsx("hgroup", Object.assign({}, restProps, {
1029
+ ref: ref,
1030
+ className: clsx('utrecht-heading-group', className)
1031
+ }, {
1032
+ children: children
1033
+ }));
1034
+ });
1035
+ HeadingGroup.displayName = 'HeadingGroup';
1036
+
1037
+ var Icon = /*#__PURE__*/forwardRef(function (_a, ref) {
1038
+ var children = _a.children,
1039
+ className = _a.className,
1040
+ restProps = __rest(_a, ["children", "className"]);
1041
+
1042
+ return jsx("span", Object.assign({
1043
+ ref: ref,
1044
+ className: clsx('utrecht-icon', className)
1045
+ }, restProps, {
1046
+ children: children
1047
+ }));
1048
+ });
1049
+ Icon.displayName = 'Icon';
1050
+
1051
+ var Image = /*#__PURE__*/forwardRef(function (_a, ref) {
1052
+ var className = _a.className,
1053
+ photo = _a.photo,
1054
+ restProps = __rest(_a, ["className", "photo"]);
1055
+
1056
+ return jsx("img", Object.assign({}, restProps, {
1057
+ ref: ref,
1058
+ className: clsx('utrecht-img', {
1059
+ 'utrecht-img--photo': photo
1060
+ }, className)
1061
+ }));
1062
+ });
1063
+ Image.displayName = 'Image';
1064
+
1065
+ var Link = /*#__PURE__*/forwardRef(function (_a, ref) {
1066
+ var boxContent = _a.boxContent,
1067
+ children = _a.children,
1068
+ className = _a.className,
1069
+ external = _a.external,
1070
+ href = _a.href,
1071
+ placeholder = _a.placeholder,
1072
+ role = _a.role,
1073
+ restProps = __rest(_a, ["boxContent", "children", "className", "external", "href", "placeholder", "role"]);
1074
+
1075
+ return (// "utrecht-link--telephone" does not have a corresponding API,
1076
+ // since it is primarily a basis for implementing input[href^="tel"].
1077
+ // Telephone number rendering in React is best achieved using composition
1078
+ // of the TelephoneValue component.
1079
+ jsx("a", Object.assign({
1080
+ href: placeholder ? undefined : href,
1081
+ ref: ref,
1082
+ role: role || (placeholder ? 'link' : undefined),
1083
+ className: clsx('utrecht-link', {
1084
+ 'utrecht-link--box-content': boxContent,
1085
+ 'utrecht-link--external': external,
1086
+ 'utrecht-link--placeholder': placeholder
1087
+ }, className),
1088
+ "aria-disabled": placeholder ? 'true' : undefined,
1089
+ rel: external ? 'external noopener noreferrer' : undefined
1090
+ }, restProps, {
1091
+ children: children
1092
+ }))
1093
+ );
1094
+ });
1095
+ Link.displayName = 'Link';
1096
+
1097
+ var LinkButton = /*#__PURE__*/forwardRef(function (_a, ref) {
1098
+ var children = _a.children,
1099
+ disabled = _a.disabled,
1100
+ inline = _a.inline,
1101
+ className = _a.className,
1102
+ pressed = _a.pressed,
1103
+ type = _a.type,
1104
+ restProps = __rest(_a, ["children", "disabled", "inline", "className", "pressed", "type"]);
1105
+
1106
+ return jsx("button", Object.assign({
1107
+ ref: ref,
1108
+ "aria-pressed": typeof pressed === 'boolean' ? pressed : undefined,
1109
+ className: clsx('utrecht-link-button', 'utrecht-link-button--html-button', {
1110
+ 'utrecht-link-button--disabled': disabled,
1111
+ 'utrecht-link-button--inline': inline,
1112
+ 'utrecht-link-button--pressed': pressed
1113
+ }, className),
1114
+ disabled: disabled,
1115
+ type: type || 'button'
1116
+ }, restProps, {
1117
+ children: children
1118
+ }));
1119
+ });
1120
+ LinkButton.displayName = 'LinkButton';
1121
+
1122
+ var LinkSocial = /*#__PURE__*/forwardRef(function (_a, ref) {
1123
+ var children = _a.children,
1124
+ className = _a.className,
1125
+ external = _a.external,
1126
+ restProps = __rest(_a, ["children", "className", "external"]);
1127
+
1128
+ return jsx("a", Object.assign({}, restProps, {
1129
+ ref: ref,
1130
+ className: clsx('utrecht-link-social', className),
1131
+ rel: external !== false ? 'external noopener noreferrer' : undefined
1132
+ }, {
1133
+ children: children
1134
+ }));
1135
+ });
1136
+ LinkSocial.displayName = 'LinkSocial';
1137
+
1138
+ var ListSocial = function ListSocial(_ref) {
1139
+ var children = _ref.children;
1140
+ return jsx("ul", Object.assign({
1141
+ className: clsx('utrecht-list-social')
1142
+ }, {
1143
+ children: children
1144
+ }));
1145
+ };
1146
+ var ListSocialItem = function ListSocialItem(_ref2) {
1147
+ var children = _ref2.children;
1148
+ return jsx("li", Object.assign({
1149
+ className: clsx('utrecht-list-social__item')
1150
+ }, {
1151
+ children: children
1152
+ }));
1153
+ };
1154
+
1155
+ var Mark = /*#__PURE__*/forwardRef(function (_a, ref) {
1156
+ var children = _a.children,
1157
+ className = _a.className,
1158
+ restProps = __rest(_a, ["children", "className"]);
1159
+
1160
+ return jsx("mark", Object.assign({
1161
+ ref: ref,
1162
+ className: clsx('utrecht-mark', className)
1163
+ }, restProps, {
1164
+ children: children
1165
+ }));
1166
+ });
1167
+ Mark.displayName = 'Mark';
1168
+
1169
+ var NumberValue = /*#__PURE__*/forwardRef(function (_a, ref) {
1170
+ var children = _a.children,
1171
+ className = _a.className,
1172
+ value = _a.value,
1173
+ restProps = __rest(_a, ["children", "className", "value"]);
1174
+
1175
+ return jsx("data", Object.assign({
1176
+ value: typeof value === 'string' || typeof value === 'number' ? String(value) : undefined
1177
+ }, restProps, {
1178
+ ref: ref,
1179
+ className: clsx('utrecht-value-number', className)
1180
+ }, {
1181
+ children: children
1182
+ }));
1183
+ });
1184
+ NumberValue.displayName = 'NumberValue';
1185
+
1186
+ var OrderedList = /*#__PURE__*/forwardRef(function (_a, ref) {
1187
+ var children = _a.children,
1188
+ className = _a.className,
1189
+ restProps = __rest(_a, ["children", "className"]);
1190
+
1191
+ return jsx("ol", Object.assign({}, restProps, {
1192
+ ref: ref,
1193
+ className: clsx('utrecht-ordered-list', className)
1194
+ }, {
1195
+ children: children
1196
+ }));
1197
+ });
1198
+ OrderedList.displayName = 'OrderedList';
1199
+
1200
+ var OrderedListItem = /*#__PURE__*/forwardRef(function (_a, ref) {
1201
+ var children = _a.children,
1202
+ className = _a.className,
1203
+ restProps = __rest(_a, ["children", "className"]);
1204
+
1205
+ return jsx("li", Object.assign({}, restProps, {
1206
+ ref: ref,
1207
+ className: clsx('utrecht-ordered-list__item', className)
1208
+ }, {
1209
+ children: children
1210
+ }));
1211
+ });
1212
+ OrderedListItem.displayName = 'OrderedListItem';
1213
+
1214
+ var Page = /*#__PURE__*/forwardRef(function (_a, ref) {
1215
+ var children = _a.children,
1216
+ className = _a.className,
1217
+ restProps = __rest(_a, ["children", "className"]);
1218
+
1219
+ return jsx("div", Object.assign({}, restProps, {
1220
+ ref: ref,
1221
+ className: clsx('utrecht-page', className)
1222
+ }, {
1223
+ children: children
1224
+ }));
1225
+ });
1226
+ Page.displayName = 'Page';
1227
+
1228
+ var PageContent = /*#__PURE__*/forwardRef(function (_a, ref) {
1229
+ var children = _a.children,
1230
+ className = _a.className,
1231
+ restProps = __rest(_a, ["children", "className"]);
1232
+
1233
+ return jsx("div", Object.assign({}, restProps, {
1234
+ ref: ref,
1235
+ className: clsx('utrecht-page-content', className)
1236
+ }, {
1237
+ children: children
1238
+ }));
1239
+ });
1240
+ PageContent.displayName = 'PageContent';
1241
+ var PageContentMain = /*#__PURE__*/forwardRef(function (_a, ref) {
1242
+ var children = _a.children,
1243
+ className = _a.className,
1244
+ restProps = __rest(_a, ["children", "className"]);
1245
+
1246
+ return jsx("main", Object.assign({}, restProps, {
1247
+ ref: ref,
1248
+ className: clsx('utrecht-page-content__main', className)
1249
+ }, {
1250
+ children: children
1251
+ }));
1252
+ });
1253
+ PageContentMain.displayName = 'PageContentMain';
1254
+
1255
+ var PageFooter = /*#__PURE__*/forwardRef(function (_a, ref) {
1256
+ var children = _a.children,
1257
+ className = _a.className,
1258
+ restProps = __rest(_a, ["children", "className"]);
1259
+
1260
+ return jsx("footer", Object.assign({}, restProps, {
1261
+ ref: ref,
1262
+ className: clsx('utrecht-page-footer', className)
1263
+ }, {
1264
+ children: children
1265
+ }));
1266
+ });
1267
+ PageFooter.displayName = 'PageFooter';
1268
+
1269
+ var PageHeader = /*#__PURE__*/forwardRef(function (_a, ref) {
1270
+ var children = _a.children,
1271
+ className = _a.className,
1272
+ restProps = __rest(_a, ["children", "className"]);
1273
+
1274
+ return jsx("header", Object.assign({}, restProps, {
1275
+ ref: ref,
1276
+ className: clsx('utrecht-page-header', className)
1277
+ }, {
1278
+ children: children
1279
+ }));
1280
+ });
1281
+ PageHeader.displayName = 'PageHeader';
1282
+
1283
+ var Paragraph = /*#__PURE__*/forwardRef(function (_a, ref) {
1284
+ var children = _a.children,
1285
+ className = _a.className,
1286
+ lead = _a.lead,
1287
+ small = _a.small,
1288
+ restProps = __rest(_a, ["children", "className", "lead", "small"]);
1289
+
1290
+ return jsx("p", Object.assign({}, restProps, {
1291
+ ref: ref,
1292
+ className: clsx('utrecht-paragraph', lead && 'utrecht-paragraph--lead', small && 'utrecht-paragraph--small', className)
1293
+ }, {
1294
+ children: small ? jsx("small", Object.assign({
1295
+ className: "utrecht-paragraph__small"
1296
+ }, {
1297
+ children: children
1298
+ })) : children
1299
+ }));
1300
+ });
1301
+ Paragraph.displayName = 'Paragraph';
1302
+
1303
+ var PreHeading = /*#__PURE__*/forwardRef(function (_a, ref) {
1304
+ var children = _a.children,
1305
+ className = _a.className,
1306
+ restProps = __rest(_a, ["children", "className"]);
1307
+
1308
+ return jsx("p", Object.assign({}, restProps, {
1309
+ ref: ref,
1310
+ className: clsx('utrecht-pre-heading', className)
1311
+ }, {
1312
+ children: children
1313
+ }));
1314
+ });
1315
+ PreHeading.displayName = 'PreHeading';
1316
+
1317
+ var RadioButton = /*#__PURE__*/forwardRef(function (_a, ref) {
1318
+ var _a$appearance = _a.appearance,
1319
+ appearance = _a$appearance === void 0 ? 'utrecht-radio-button' : _a$appearance,
1320
+ invalid = _a.invalid,
1321
+ className = _a.className,
1322
+ restProps = __rest(_a, ["appearance", "invalid", "className"]);
1323
+
1324
+ return jsx("input", Object.assign({}, restProps, {
1325
+ ref: ref,
1326
+ type: "radio",
1327
+ className: clsx('utrecht-radio-button', 'utrecht-radio-button--html-input', {
1328
+ 'utrecht-radio-button--custom': appearance === 'utrecht-radio-button',
1329
+ 'utrecht-radio-button--invalid': invalid
1330
+ }, className)
1331
+ }));
1332
+ });
1333
+ RadioButton.displayName = 'RadioButton';
1334
+
1335
+ var Select = /*#__PURE__*/forwardRef(function (_a, ref) {
1336
+ var invalid = _a.invalid,
1337
+ required = _a.required,
1338
+ className = _a.className,
1339
+ noscript = _a.noscript,
1340
+ children = _a.children,
1341
+ restProps = __rest(_a, ["invalid", "required", "className", "noscript", "children"]);
1342
+
1343
+ return jsx("select", Object.assign({}, restProps, {
1344
+ ref: ref,
1345
+ "aria-invalid": invalid || undefined,
1346
+ required: noscript ? required : false,
1347
+ "aria-required": noscript ? undefined : required,
1348
+ className: clsx('utrecht-select', 'utrecht-select--html-select', invalid && 'utrecht-select--invalid', required && 'utrecht-select--required', className)
1349
+ }, {
1350
+ children: children
1351
+ }));
1352
+ });
1353
+ Select.displayName = 'Select';
1354
+ var SelectOption = /*#__PURE__*/forwardRef(function (_a, ref) {
1355
+ var disabled = _a.disabled,
1356
+ invalid = _a.invalid,
1357
+ value = _a.value,
1358
+ children = _a.children,
1359
+ className = _a.className,
1360
+ restProps = __rest(_a, ["disabled", "invalid", "value", "children", "className"]);
1361
+
1362
+ return jsx("option", Object.assign({}, restProps, {
1363
+ ref: ref,
1364
+ disabled: disabled,
1365
+ value: value,
1366
+ className: clsx('utrecht-select__option', disabled && 'utrecht-select__option--disabled', invalid && 'utrecht-select__option--invalid', className)
1367
+ }, {
1368
+ children: children
1369
+ }));
1370
+ });
1371
+ SelectOption.displayName = 'SelectOption';
1372
+
1373
+ var Separator = /*#__PURE__*/forwardRef(function (_a, ref) {
1374
+ var className = _a.className;
1375
+ _a.children;
1376
+ var restProps = __rest(_a, ["className", "children"]);
1377
+
1378
+ return jsx("hr", Object.assign({}, restProps, {
1379
+ ref: ref,
1380
+ className: clsx('utrecht-separator', className)
1381
+ }));
1382
+ });
1383
+ Separator.displayName = 'Separator';
1384
+
1385
+ var SkipLink = /*#__PURE__*/forwardRef(function (_a, ref) {
1386
+ var children = _a.children,
1387
+ className = _a.className,
1388
+ restProps = __rest(_a, ["children", "className"]);
1389
+
1390
+ return jsx("p", {
1391
+ children: jsx("a", Object.assign({
1392
+ ref: ref
1393
+ }, restProps, {
1394
+ className: clsx('utrecht-skip-link', 'utrecht-skip-link--visible-on-focus', className)
1395
+ }, {
1396
+ children: children
1397
+ }))
1398
+ });
1399
+ });
1400
+ SkipLink.displayName = 'SkipLink';
1401
+
1402
+ var SpotlightSection = /*#__PURE__*/forwardRef(function (_a, ref) {
1403
+ var aside = _a.aside,
1404
+ children = _a.children,
1405
+ className = _a.className,
1406
+ type = _a.type,
1407
+ restProps = __rest(_a, ["aside", "children", "className", "type"]);
1408
+
1409
+ var props = Object.assign(Object.assign({}, restProps), {
1410
+ ref: ref,
1411
+ className: clsx('utrecht-spotlight-section', {
1412
+ 'utrecht-spotlight-section--info': type === 'info',
1413
+ 'utrecht-spotlight-section--warning': type === 'warning'
1414
+ }, className)
1415
+ });
1416
+ return aside ? jsx("aside", Object.assign({}, props, {
1417
+ children: children
1418
+ })) : jsx("section", Object.assign({}, props, {
1419
+ children: children
1420
+ }));
1421
+ });
1422
+ SpotlightSection.displayName = 'SpotlightSection';
1423
+
1424
+ var Strong = /*#__PURE__*/forwardRef(function (_a, ref) {
1425
+ var children = _a.children,
1426
+ className = _a.className,
1427
+ restProps = __rest(_a, ["children", "className"]);
1428
+
1429
+ return jsx("strong", Object.assign({
1430
+ ref: ref,
1431
+ className: clsx('utrecht-emphasis', 'utrecht-emphasis--strong', className)
1432
+ }, restProps, {
1433
+ children: children
1434
+ }));
1435
+ });
1436
+ Strong.displayName = 'Strong';
1437
+
1438
+ var Surface = /*#__PURE__*/forwardRef(function (_a, ref) {
1439
+ var children = _a.children,
1440
+ className = _a.className,
1441
+ restProps = __rest(_a, ["children", "className"]);
1442
+
1443
+ return jsx("div", Object.assign({}, restProps, {
1444
+ ref: ref,
1445
+ className: clsx('utrecht-surface', className)
1446
+ }, {
1447
+ children: children
1448
+ }));
1449
+ });
1450
+ Surface.displayName = 'Surface';
1451
+
1452
+ var Table = /*#__PURE__*/forwardRef(function (_a, ref) {
1453
+ var children = _a.children,
1454
+ className = _a.className,
1455
+ restProps = __rest(_a, ["children", "className"]);
1456
+
1457
+ return jsx("table", Object.assign({}, restProps, {
1458
+ ref: ref,
1459
+ className: clsx('utrecht-table', className)
1460
+ }, {
1461
+ children: children
1462
+ }));
1463
+ });
1464
+ Table.displayName = 'Table';
1465
+
1466
+ var TableBody = /*#__PURE__*/forwardRef(function (_a, ref) {
1467
+ var children = _a.children,
1468
+ className = _a.className,
1469
+ restProps = __rest(_a, ["children", "className"]);
1470
+
1471
+ return jsx("tbody", Object.assign({}, restProps, {
1472
+ ref: ref,
1473
+ className: clsx('utrecht-table__body', className)
1474
+ }, {
1475
+ children: children
1476
+ }));
1477
+ });
1478
+ TableBody.displayName = 'TableBody';
1479
+
1480
+ var TableCaption = /*#__PURE__*/forwardRef(function (_a, ref) {
1481
+ var children = _a.children,
1482
+ className = _a.className,
1483
+ restProps = __rest(_a, ["children", "className"]);
1484
+
1485
+ return jsx("caption", Object.assign({}, restProps, {
1486
+ ref: ref,
1487
+ className: clsx('utrecht-table__caption', className)
1488
+ }, {
1489
+ children: children
1490
+ }));
1491
+ });
1492
+ TableCaption.displayName = 'TableCaption';
1493
+
1494
+ var TableCell = /*#__PURE__*/forwardRef(function (_a, ref) {
1495
+ var children = _a.children,
1496
+ className = _a.className,
1497
+ restProps = __rest(_a, ["children", "className"]);
1498
+
1499
+ return jsx("td", Object.assign({}, restProps, {
1500
+ ref: ref,
1501
+ className: clsx('utrecht-table__cell', className)
1502
+ }, {
1503
+ children: children
1504
+ }));
1505
+ });
1506
+ TableCell.displayName = 'TableCell';
1507
+
1508
+ var TableFooter = /*#__PURE__*/forwardRef(function (_a, ref) {
1509
+ var children = _a.children,
1510
+ className = _a.className,
1511
+ restProps = __rest(_a, ["children", "className"]);
1512
+
1513
+ return jsx("tfoot", Object.assign({}, restProps, {
1514
+ ref: ref,
1515
+ className: clsx('utrecht-table__footer', className)
1516
+ }, {
1517
+ children: children
1518
+ }));
1519
+ });
1520
+ TableFooter.displayName = 'TableFooter';
1521
+
1522
+ var TableHeader = /*#__PURE__*/forwardRef(function (_a, ref) {
1523
+ var children = _a.children,
1524
+ className = _a.className,
1525
+ restProps = __rest(_a, ["children", "className"]);
1526
+
1527
+ return jsx("thead", Object.assign({}, restProps, {
1528
+ ref: ref,
1529
+ className: clsx('utrecht-table__header', className)
1530
+ }, {
1531
+ children: children
1532
+ }));
1533
+ });
1534
+ TableHeader.displayName = 'TableHeader';
1535
+
1536
+ var TableHeaderCell = /*#__PURE__*/forwardRef(function (_a, ref) {
1537
+ var children = _a.children,
1538
+ className = _a.className,
1539
+ restProps = __rest(_a, ["children", "className"]);
1540
+
1541
+ return jsx("th", Object.assign({}, restProps, {
1542
+ ref: ref,
1543
+ className: clsx('utrecht-table__header-cell', className)
1544
+ }, {
1545
+ children: children
1546
+ }));
1547
+ });
1548
+ TableHeaderCell.displayName = 'TableHeaderCell';
1549
+
1550
+ var TableRow = /*#__PURE__*/forwardRef(function (_a, ref) {
1551
+ var children = _a.children,
1552
+ className = _a.className,
1553
+ restProps = __rest(_a, ["children", "className"]);
1554
+
1555
+ return jsx("tr", Object.assign({}, restProps, {
1556
+ ref: ref,
1557
+ className: clsx('utrecht-table__row', className)
1558
+ }, {
1559
+ children: children
1560
+ }));
1561
+ });
1562
+ TableRow.displayName = 'TableRow';
1563
+
1564
+ var Textarea = /*#__PURE__*/forwardRef(function (_a, ref) {
1565
+ var disabled = _a.disabled,
1566
+ invalid = _a.invalid,
1567
+ readOnly = _a.readOnly,
1568
+ required = _a.required,
1569
+ className = _a.className,
1570
+ restProps = __rest(_a, ["disabled", "invalid", "readOnly", "required", "className"]);
1571
+
1572
+ return jsx("textarea", Object.assign({}, restProps, {
1573
+ ref: ref,
1574
+ className: clsx('utrecht-textarea', 'utrecht-textarea--html-textarea', disabled && 'utrecht-textarea--disabled', invalid && 'utrecht-textarea--invalid', readOnly && 'utrecht-textarea--readonly', required && 'utrecht-textarea--required', className),
1575
+ disabled: disabled,
1576
+ readOnly: readOnly,
1577
+ required: required,
1578
+ "aria-invalid": invalid || undefined
1579
+ }));
1580
+ });
1581
+ Textarea.displayName = 'Textarea';
1582
+
1583
+ var Textbox = /*#__PURE__*/forwardRef(function (_a, ref) {
1584
+ var disabled = _a.disabled,
1585
+ invalid = _a.invalid,
1586
+ readOnly = _a.readOnly,
1587
+ required = _a.required,
1588
+ className = _a.className,
1589
+ _a$type = _a.type,
1590
+ type = _a$type === void 0 ? 'text' : _a$type,
1591
+ maxLength = _a.maxLength,
1592
+ inputMode = _a.inputMode,
1593
+ restProps = __rest(_a, ["disabled", "invalid", "readOnly", "required", "className", "type", "maxLength", "inputMode"]);
1594
+
1595
+ return jsx("input", Object.assign({}, restProps, {
1596
+ ref: ref,
1597
+ type: type,
1598
+ className: clsx('utrecht-textbox', 'utrecht-textbox--html-input', disabled && 'utrecht-textbox--disabled', invalid && 'utrecht-textbox--invalid', readOnly && 'utrecht-textbox--readonly', required && 'utrecht-textbox--required', className),
1599
+ maxLength: maxLength,
1600
+ disabled: disabled,
1601
+ readOnly: readOnly,
1602
+ required: required,
1603
+ "aria-invalid": invalid || undefined,
1604
+ inputMode: inputMode || (type === 'number' ? 'numeric' : undefined)
1605
+ }));
1606
+ });
1607
+ Textbox.displayName = 'Textbox';
1608
+
1609
+ var URLValue = /*#__PURE__*/forwardRef(function (_a, ref) {
1610
+ var children = _a.children,
1611
+ className = _a.className,
1612
+ restProps = __rest(_a, ["children", "className"]);
1613
+
1614
+ return jsx("bdi", Object.assign({
1615
+ translate: "no"
1616
+ }, restProps, {
1617
+ ref: ref,
1618
+ className: clsx('utrecht-url', className)
1619
+ }, {
1620
+ children: children
1621
+ }));
1622
+ });
1623
+ URLValue.displayName = 'URLValue';
1624
+
1625
+ var UnorderedList = /*#__PURE__*/forwardRef(function (_a, ref) {
1626
+ var children = _a.children,
1627
+ className = _a.className,
1628
+ restProps = __rest(_a, ["children", "className"]);
1629
+
1630
+ return jsx("ul", Object.assign({
1631
+ role: "list"
1632
+ }, restProps, {
1633
+ ref: ref,
1634
+ className: clsx('utrecht-unordered-list', className)
1635
+ }, {
1636
+ children: children
1637
+ }));
1638
+ });
1639
+ UnorderedList.displayName = 'UnorderedList';
1640
+
1641
+ var UnorderedListItem = /*#__PURE__*/forwardRef(function (_a, ref) {
1642
+ var children = _a.children,
1643
+ className = _a.className,
1644
+ restProps = __rest(_a, ["children", "className"]);
1645
+
1646
+ return jsx("li", Object.assign({}, restProps, {
1647
+ ref: ref,
1648
+ className: clsx('utrecht-unordered-list__item', className)
1649
+ }, {
1650
+ children: children
1651
+ }));
1652
+ });
1653
+ UnorderedListItem.displayName = 'UnorderedListItem';
1654
+
1655
+ export { Alert, AlertDialog, Article, Backdrop, Button, ButtonGroup, ButtonLink, Calendar, Checkbox, CustomRadioButton, DataList, DataListActions, DataListItem, DataListKey, DataListValue, Document, Emphasis, Fieldset, FieldsetLegend, Figure, FigureCaption, FormField, FormFieldDescription, FormLabel, HTMLContent, Heading, Heading1, Heading2, Heading3, Heading4, Heading5, Heading6, HeadingGroup, Icon, Image, Link, LinkButton, LinkSocial, ListSocial, ListSocialItem, Mark, NumberValue, OrderedList, OrderedListItem, Page, PageContent, PageFooter, PageHeader, Paragraph, PreHeading, PrimaryActionButton, RadioButton, SecondaryActionButton, Select, SelectOption, Separator, SkipLink, SpotlightSection, Strong, SubtleButton, Surface, Table, TableBody, TableCaption, TableCell, TableFooter, TableHeader, TableHeaderCell, TableRow, Textarea, Textbox, URLValue, UnorderedList, UnorderedListItem };
1656
+ //# sourceMappingURL=index.esm.js.map