@utrecht/component-library-react 1.0.0-alpha.20 → 1.0.0-alpha.201

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 (291) hide show
  1. package/README.md +26 -2
  2. package/dist/Alert.d.ts +13 -0
  3. package/dist/AlertDialog.d.ts +13 -0
  4. package/dist/{cjs/Article.d.ts → Article.d.ts} +9 -7
  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 -5
  25. package/dist/Code.d.ts +10 -0
  26. package/dist/CodeBlock.d.ts +10 -0
  27. package/dist/CustomRadioButton.d.ts +13 -0
  28. package/dist/DataList.d.ts +28 -0
  29. package/dist/{cjs/Document.d.ts → Document.d.ts} +9 -7
  30. package/dist/Emphasis.d.ts +10 -0
  31. package/dist/Fieldset.d.ts +19 -0
  32. package/dist/{cjs/FieldsetLegend.d.ts → FieldsetLegend.d.ts} +5 -3
  33. package/dist/Figure.d.ts +5 -0
  34. package/dist/FigureCaption.d.ts +5 -0
  35. package/dist/FormField.d.ts +8 -0
  36. package/dist/{cjs/FormFieldDescription.d.ts → FormFieldDescription.d.ts} +9 -7
  37. package/dist/{cjs/FormLabel.d.ts → FormLabel.d.ts} +10 -8
  38. package/dist/{cjs/HTMLContent.d.ts → HTMLContent.d.ts} +9 -7
  39. package/dist/Heading.d.ts +12 -0
  40. package/dist/{cjs/Heading1.d.ts → Heading1.d.ts} +9 -7
  41. package/dist/{cjs/Heading2.d.ts → Heading2.d.ts} +9 -7
  42. package/dist/{cjs/Heading3.d.ts → Heading3.d.ts} +9 -7
  43. package/dist/{cjs/Heading4.d.ts → Heading4.d.ts} +9 -7
  44. package/dist/{cjs/Heading5.d.ts → Heading5.d.ts} +9 -7
  45. package/dist/{cjs/Heading6.d.ts → Heading6.d.ts} +9 -7
  46. package/dist/HeadingGroup.d.ts +9 -0
  47. package/dist/Icon.d.ts +10 -0
  48. package/dist/Image.d.ts +9 -0
  49. package/dist/Link.d.ts +14 -0
  50. package/dist/LinkButton.d.ts +13 -0
  51. package/dist/LinkSocial.d.ts +11 -0
  52. package/dist/ListSocial.d.ts +13 -0
  53. package/dist/Mark.d.ts +10 -0
  54. package/dist/NumberValue.d.ts +11 -0
  55. package/dist/{cjs/OrderedList.d.ts → OrderedList.d.ts} +9 -7
  56. package/dist/{cjs/OrderedListItem.d.ts → OrderedListItem.d.ts} +9 -7
  57. package/dist/{cjs/Page.d.ts → Page.d.ts} +9 -7
  58. package/dist/{cjs/PageContent.d.ts → PageContent.d.ts} +13 -9
  59. package/dist/{cjs/PageFooter.d.ts → PageFooter.d.ts} +9 -7
  60. package/dist/{cjs/PageHeader.d.ts → PageHeader.d.ts} +9 -7
  61. package/dist/{cjs/Paragraph.d.ts → Paragraph.d.ts} +12 -9
  62. package/dist/PreHeading.d.ts +9 -0
  63. package/dist/{cjs/RadioButton.d.ts → RadioButton.d.ts} +6 -5
  64. package/dist/{cjs/Select.d.ts → Select.d.ts} +19 -11
  65. package/dist/{cjs/Separator.d.ts → Separator.d.ts} +7 -7
  66. package/dist/SkipLink.d.ts +5 -0
  67. package/dist/SpotlightSection.d.ts +13 -0
  68. package/dist/Strong.d.ts +10 -0
  69. package/dist/{cjs/Surface.d.ts → Surface.d.ts} +9 -7
  70. package/dist/{cjs/Table.d.ts → Table.d.ts} +9 -7
  71. package/dist/{cjs/TableBody.d.ts → TableBody.d.ts} +9 -7
  72. package/dist/{cjs/TableCaption.d.ts → TableCaption.d.ts} +9 -7
  73. package/dist/{cjs/TableCell.d.ts → TableCell.d.ts} +9 -7
  74. package/dist/{cjs/TableFooter.d.ts → TableFooter.d.ts} +9 -7
  75. package/dist/{cjs/TableHeader.d.ts → TableHeader.d.ts} +9 -7
  76. package/dist/{cjs/TableHeaderCell.d.ts → TableHeaderCell.d.ts} +9 -7
  77. package/dist/{cjs/TableRow.d.ts → TableRow.d.ts} +9 -7
  78. package/dist/{cjs/Textarea.d.ts → Textarea.d.ts} +5 -5
  79. package/dist/{cjs/Textbox.d.ts → Textbox.d.ts} +7 -7
  80. package/dist/{cjs/URLValue.d.ts → URLValue.d.ts} +9 -7
  81. package/dist/{cjs/UnorderedList.d.ts → UnorderedList.d.ts} +9 -7
  82. package/dist/{cjs/UnorderedListItem.d.ts → UnorderedListItem.d.ts} +9 -7
  83. package/dist/css-module/Alert.d.ts +13 -0
  84. package/dist/css-module/AlertDialog.d.ts +13 -0
  85. package/dist/css-module/Article.d.ts +9 -0
  86. package/dist/css-module/Backdrop.d.ts +9 -0
  87. package/dist/css-module/Button.d.ts +28 -0
  88. package/dist/css-module/ButtonGroup.d.ts +10 -0
  89. package/dist/css-module/ButtonLink.d.ts +14 -0
  90. package/dist/css-module/Calendar/CalendarButton.d.ts +5 -0
  91. package/dist/css-module/Calendar/CalendarIcon.d.ts +5 -0
  92. package/dist/css-module/Calendar/CalendarNavigation.d.ts +5 -0
  93. package/dist/css-module/Calendar/CalendarNavigationButtons.d.ts +13 -0
  94. package/dist/css-module/Calendar/CalendarNavigationLabel.d.ts +6 -0
  95. package/dist/css-module/Calendar/CalendarTableDaysContainer.d.ts +5 -0
  96. package/dist/css-module/Calendar/CalendarTableDaysItem.d.ts +5 -0
  97. package/dist/css-module/Calendar/CalendarTableDaysItemDay.d.ts +11 -0
  98. package/dist/css-module/Calendar/CalendarTableWeeksContainer.d.ts +4 -0
  99. package/dist/css-module/Calendar/CalendarTableWeeksItem.d.ts +5 -0
  100. package/dist/css-module/Calendar/IconArrowLeft.d.ts +7 -0
  101. package/dist/css-module/Calendar/IconArrowLeftDouble.d.ts +7 -0
  102. package/dist/css-module/Calendar/IconArrowRight.d.ts +7 -0
  103. package/dist/css-module/Calendar/IconArrowRightDouble.d.ts +7 -0
  104. package/dist/css-module/Calendar/index.d.ts +41 -0
  105. package/dist/css-module/Checkbox.d.ts +6 -0
  106. package/dist/css-module/Code.d.ts +10 -0
  107. package/dist/css-module/CodeBlock.d.ts +10 -0
  108. package/dist/css-module/CustomRadioButton.d.ts +13 -0
  109. package/dist/css-module/DataList.d.ts +28 -0
  110. package/dist/css-module/Document.d.ts +9 -0
  111. package/dist/css-module/Emphasis.d.ts +10 -0
  112. package/dist/css-module/Fieldset.d.ts +19 -0
  113. package/dist/css-module/FieldsetLegend.d.ts +5 -0
  114. package/dist/css-module/Figure.d.ts +5 -0
  115. package/dist/css-module/FigureCaption.d.ts +5 -0
  116. package/dist/css-module/FormField.d.ts +8 -0
  117. package/dist/css-module/FormFieldDescription.d.ts +9 -0
  118. package/dist/css-module/FormLabel.d.ts +10 -0
  119. package/dist/css-module/HTMLContent.d.ts +9 -0
  120. package/dist/css-module/Heading.d.ts +12 -0
  121. package/dist/css-module/Heading1.d.ts +9 -0
  122. package/dist/css-module/Heading2.d.ts +9 -0
  123. package/dist/css-module/Heading3.d.ts +9 -0
  124. package/dist/css-module/Heading4.d.ts +9 -0
  125. package/dist/css-module/Heading5.d.ts +9 -0
  126. package/dist/css-module/Heading6.d.ts +9 -0
  127. package/dist/css-module/HeadingGroup.d.ts +9 -0
  128. package/dist/css-module/Icon.d.ts +10 -0
  129. package/dist/css-module/Image.d.ts +9 -0
  130. package/dist/css-module/Link.d.ts +14 -0
  131. package/dist/css-module/LinkButton.d.ts +13 -0
  132. package/dist/css-module/LinkSocial.d.ts +11 -0
  133. package/dist/css-module/ListSocial.d.ts +13 -0
  134. package/dist/css-module/Mark.d.ts +10 -0
  135. package/dist/css-module/NumberValue.d.ts +11 -0
  136. package/dist/css-module/OrderedList.d.ts +9 -0
  137. package/dist/css-module/OrderedListItem.d.ts +9 -0
  138. package/dist/css-module/Page.d.ts +9 -0
  139. package/dist/css-module/PageContent.d.ts +13 -0
  140. package/dist/css-module/PageFooter.d.ts +9 -0
  141. package/dist/css-module/PageHeader.d.ts +9 -0
  142. package/dist/css-module/Paragraph.d.ts +12 -0
  143. package/dist/css-module/PreHeading.d.ts +9 -0
  144. package/dist/css-module/RadioButton.d.ts +6 -0
  145. package/dist/css-module/Select.d.ts +19 -0
  146. package/dist/css-module/Separator.d.ts +7 -0
  147. package/dist/css-module/SkipLink.d.ts +5 -0
  148. package/dist/css-module/SpotlightSection.d.ts +13 -0
  149. package/dist/css-module/Strong.d.ts +10 -0
  150. package/dist/css-module/Surface.d.ts +9 -0
  151. package/dist/css-module/Table.d.ts +9 -0
  152. package/dist/css-module/TableBody.d.ts +9 -0
  153. package/dist/css-module/TableCaption.d.ts +9 -0
  154. package/dist/css-module/TableCell.d.ts +9 -0
  155. package/dist/css-module/TableFooter.d.ts +9 -0
  156. package/dist/css-module/TableHeader.d.ts +9 -0
  157. package/dist/css-module/TableHeaderCell.d.ts +9 -0
  158. package/dist/css-module/TableRow.d.ts +9 -0
  159. package/dist/css-module/Textarea.d.ts +5 -0
  160. package/dist/css-module/Textbox.d.ts +7 -0
  161. package/dist/css-module/URLValue.d.ts +9 -0
  162. package/dist/css-module/UnorderedList.d.ts +9 -0
  163. package/dist/css-module/UnorderedListItem.d.ts +9 -0
  164. package/dist/css-module/css-module/Alert.d.ts +6 -0
  165. package/dist/css-module/css-module/AlertDialog.d.ts +6 -0
  166. package/dist/css-module/css-module/Article.d.ts +6 -0
  167. package/dist/css-module/css-module/Backdrop.d.ts +6 -0
  168. package/dist/css-module/css-module/Button.d.ts +6 -0
  169. package/dist/css-module/css-module/ButtonGroup.d.ts +6 -0
  170. package/dist/css-module/css-module/ButtonLink.d.ts +6 -0
  171. package/dist/css-module/css-module/Checkbox.d.ts +7 -0
  172. package/dist/css-module/css-module/Code.d.ts +6 -0
  173. package/dist/css-module/css-module/CodeBlock.d.ts +6 -0
  174. package/dist/css-module/css-module/CustomRadioButton.d.ts +6 -0
  175. package/dist/css-module/css-module/DataList.d.ts +6 -0
  176. package/dist/css-module/css-module/Document.d.ts +6 -0
  177. package/dist/css-module/css-module/Emphasis.d.ts +6 -0
  178. package/dist/css-module/css-module/Fieldset.d.ts +6 -0
  179. package/dist/css-module/css-module/FieldsetLegend.d.ts +6 -0
  180. package/dist/css-module/css-module/Figure.d.ts +6 -0
  181. package/dist/css-module/css-module/FigureCaption.d.ts +6 -0
  182. package/dist/css-module/css-module/FormField.d.ts +6 -0
  183. package/dist/css-module/css-module/FormFieldDescription.d.ts +6 -0
  184. package/dist/css-module/css-module/FormLabel.d.ts +6 -0
  185. package/dist/css-module/css-module/HTMLContent.d.ts +6 -0
  186. package/dist/css-module/css-module/Heading.d.ts +11 -0
  187. package/dist/css-module/css-module/Heading1.d.ts +6 -0
  188. package/dist/css-module/css-module/Heading2.d.ts +6 -0
  189. package/dist/css-module/css-module/Heading3.d.ts +6 -0
  190. package/dist/css-module/css-module/Heading4.d.ts +6 -0
  191. package/dist/css-module/css-module/Heading5.d.ts +6 -0
  192. package/dist/css-module/css-module/Heading6.d.ts +6 -0
  193. package/dist/css-module/css-module/HeadingGroup.d.ts +6 -0
  194. package/dist/css-module/css-module/Icon.d.ts +6 -0
  195. package/dist/css-module/css-module/Image.d.ts +6 -0
  196. package/dist/css-module/css-module/Link.d.ts +6 -0
  197. package/dist/css-module/css-module/LinkButton.d.ts +6 -0
  198. package/dist/css-module/css-module/LinkSocial.d.ts +6 -0
  199. package/dist/css-module/css-module/ListSocial.d.ts +6 -0
  200. package/dist/css-module/css-module/Mark.d.ts +6 -0
  201. package/dist/css-module/css-module/NumberValue.d.ts +6 -0
  202. package/dist/css-module/css-module/OrderedList.d.ts +6 -0
  203. package/dist/css-module/css-module/OrderedListItem.d.ts +6 -0
  204. package/dist/css-module/css-module/Page.d.ts +6 -0
  205. package/dist/css-module/css-module/PageContent.d.ts +6 -0
  206. package/dist/css-module/css-module/PageFooter.d.ts +6 -0
  207. package/dist/css-module/css-module/PageHeader.d.ts +6 -0
  208. package/dist/css-module/css-module/Paragraph.d.ts +6 -0
  209. package/dist/css-module/css-module/PreHeading.d.ts +6 -0
  210. package/dist/css-module/css-module/RadioButton.d.ts +7 -0
  211. package/dist/css-module/css-module/Select.d.ts +6 -0
  212. package/dist/css-module/css-module/Separator.d.ts +6 -0
  213. package/dist/css-module/css-module/SkipLink.d.ts +6 -0
  214. package/dist/css-module/css-module/SpotlightSection.d.ts +6 -0
  215. package/dist/css-module/css-module/Strong.d.ts +6 -0
  216. package/dist/css-module/css-module/Surface.d.ts +6 -0
  217. package/dist/css-module/css-module/Table.d.ts +6 -0
  218. package/dist/css-module/css-module/TableBody.d.ts +5 -0
  219. package/dist/css-module/css-module/TableCaption.d.ts +5 -0
  220. package/dist/css-module/css-module/TableCell.d.ts +5 -0
  221. package/dist/css-module/css-module/TableFooter.d.ts +5 -0
  222. package/dist/css-module/css-module/TableHeader.d.ts +5 -0
  223. package/dist/css-module/css-module/TableHeaderCell.d.ts +5 -0
  224. package/dist/css-module/css-module/TableRow.d.ts +5 -0
  225. package/dist/css-module/css-module/Textarea.d.ts +6 -0
  226. package/dist/css-module/css-module/Textbox.d.ts +6 -0
  227. package/dist/css-module/css-module/URLValue.d.ts +6 -0
  228. package/dist/css-module/css-module/UnorderedList.d.ts +6 -0
  229. package/dist/css-module/css-module/UnorderedListItem.d.ts +6 -0
  230. package/dist/{cjs → css-module/css-module}/index.d.ts +70 -47
  231. package/dist/css-module/index.d.ts +71 -0
  232. package/dist/css-module/index.js +1551 -0
  233. package/dist/css-module/index.js.map +1 -0
  234. package/dist/css-module/index.mjs +1469 -0
  235. package/dist/css-module/index.mjs.map +1 -0
  236. package/dist/index.cjs.js +1773 -0
  237. package/dist/index.cjs.js.map +1 -0
  238. package/dist/index.d.ts +71 -0
  239. package/dist/index.esm.js +1688 -0
  240. package/dist/index.esm.js.map +1 -0
  241. package/package.json +44 -195
  242. package/dist/cjs/Article.js +0 -29
  243. package/dist/cjs/Backdrop.js +0 -29
  244. package/dist/cjs/Button.d.ts +0 -5
  245. package/dist/cjs/Button.js +0 -25
  246. package/dist/cjs/ButtonLink.d.ts +0 -15
  247. package/dist/cjs/ButtonLink.js +0 -52
  248. package/dist/cjs/Checkbox.js +0 -25
  249. package/dist/cjs/Document.js +0 -29
  250. package/dist/cjs/Fieldset.d.ts +0 -3
  251. package/dist/cjs/Fieldset.js +0 -25
  252. package/dist/cjs/FieldsetLegend.js +0 -25
  253. package/dist/cjs/FormField.d.ts +0 -3
  254. package/dist/cjs/FormField.js +0 -25
  255. package/dist/cjs/FormFieldDescription.js +0 -25
  256. package/dist/cjs/FormLabel.js +0 -25
  257. package/dist/cjs/HTMLContent.js +0 -29
  258. package/dist/cjs/Heading1.js +0 -29
  259. package/dist/cjs/Heading2.js +0 -29
  260. package/dist/cjs/Heading3.js +0 -29
  261. package/dist/cjs/Heading4.js +0 -29
  262. package/dist/cjs/Heading5.js +0 -29
  263. package/dist/cjs/Heading6.js +0 -29
  264. package/dist/cjs/Link.d.ts +0 -15
  265. package/dist/cjs/Link.js +0 -42
  266. package/dist/cjs/OrderedList.js +0 -29
  267. package/dist/cjs/OrderedListItem.js +0 -29
  268. package/dist/cjs/Page.js +0 -29
  269. package/dist/cjs/PageContent.js +0 -34
  270. package/dist/cjs/PageFooter.js +0 -29
  271. package/dist/cjs/PageHeader.js +0 -29
  272. package/dist/cjs/Paragraph.js +0 -29
  273. package/dist/cjs/RadioButton.js +0 -25
  274. package/dist/cjs/Select.js +0 -31
  275. package/dist/cjs/Separator.js +0 -30
  276. package/dist/cjs/Surface.js +0 -29
  277. package/dist/cjs/Table.js +0 -29
  278. package/dist/cjs/TableBody.js +0 -29
  279. package/dist/cjs/TableCaption.js +0 -29
  280. package/dist/cjs/TableCell.js +0 -29
  281. package/dist/cjs/TableFooter.js +0 -29
  282. package/dist/cjs/TableHeader.js +0 -29
  283. package/dist/cjs/TableHeaderCell.js +0 -29
  284. package/dist/cjs/TableRow.js +0 -29
  285. package/dist/cjs/Textarea.js +0 -25
  286. package/dist/cjs/Textbox.js +0 -25
  287. package/dist/cjs/URLValue.js +0 -29
  288. package/dist/cjs/UnorderedList.js +0 -29
  289. package/dist/cjs/UnorderedListItem.js +0 -29
  290. package/dist/cjs/index.js +0 -94
  291. package/dist/cjs/tsconfig.tsbuildinfo +0 -3951
@@ -0,0 +1,1688 @@
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 Code = /*#__PURE__*/forwardRef(function (_a, ref) {
654
+ var children = _a.children,
655
+ className = _a.className,
656
+ restProps = __rest(_a, ["children", "className"]);
657
+
658
+ return jsx("code", Object.assign({
659
+ ref: ref,
660
+ className: clsx('utrecht-code', className)
661
+ }, restProps, {
662
+ children: children
663
+ }));
664
+ });
665
+ Code.displayName = 'Code';
666
+
667
+ var CodeBlock = /*#__PURE__*/forwardRef(function (_a, ref) {
668
+ var children = _a.children,
669
+ className = _a.className,
670
+ restProps = __rest(_a, ["children", "className"]);
671
+
672
+ return jsx("pre", Object.assign({
673
+ ref: ref,
674
+ className: clsx('utrecht-code-block', className)
675
+ }, restProps, {
676
+ children: jsx("code", Object.assign({
677
+ className: "utrecht-code-block__content"
678
+ }, {
679
+ children: children
680
+ }))
681
+ }));
682
+ });
683
+ CodeBlock.displayName = 'CodeBlock';
684
+
685
+ var CustomRadioButton = /*#__PURE__*/forwardRef(function (_a, ref) {
686
+ var disabled = _a.disabled,
687
+ required = _a.required,
688
+ className = _a.className,
689
+ invalid = _a.invalid,
690
+ restProps = __rest(_a, ["disabled", "required", "className", "invalid"]);
691
+
692
+ return jsx("input", Object.assign({
693
+ type: "radio",
694
+ "aria-invalid": invalid || undefined,
695
+ disabled: disabled,
696
+ required: required,
697
+ ref: ref,
698
+ 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)
699
+ }, restProps));
700
+ });
701
+ CustomRadioButton.displayName = 'CustomRadioButton';
702
+
703
+ var Document = /*#__PURE__*/forwardRef(function (_a, ref) {
704
+ var children = _a.children,
705
+ className = _a.className,
706
+ restProps = __rest(_a, ["children", "className"]);
707
+
708
+ return jsx("div", Object.assign({}, restProps, {
709
+ ref: ref,
710
+ className: clsx('utrecht-document', className)
711
+ }, {
712
+ children: children
713
+ }));
714
+ });
715
+ Document.displayName = 'Document';
716
+
717
+ var DataList = /*#__PURE__*/forwardRef(function (_a, ref) {
718
+ var appearance = _a.appearance,
719
+ children = _a.children,
720
+ className = _a.className,
721
+ restProps = __rest(_a, ["appearance", "children", "className"]);
722
+
723
+ return jsx("dl", Object.assign({}, restProps, {
724
+ className: clsx('utrecht-data-list', 'utrecht-data-list--html-dl', appearance === 'rows' && 'utrecht-data-list--rows', className),
725
+ ref: ref
726
+ }, {
727
+ children: children
728
+ }));
729
+ });
730
+ DataList.displayName = 'DataList';
731
+ var DataListItem = /*#__PURE__*/forwardRef(function (_a, ref) {
732
+ var children = _a.children,
733
+ className = _a.className,
734
+ restProps = __rest(_a, ["children", "className"]);
735
+
736
+ return jsx("div", Object.assign({}, restProps, {
737
+ className: clsx('utrecht-data-list__item', className),
738
+ ref: ref
739
+ }, {
740
+ children: children
741
+ }));
742
+ });
743
+ DataListItem.displayName = 'DataListItem';
744
+ var DataListKey = /*#__PURE__*/forwardRef(function (_a, ref) {
745
+ var children = _a.children,
746
+ className = _a.className,
747
+ restProps = __rest(_a, ["children", "className"]);
748
+
749
+ return jsx("dt", Object.assign({}, restProps, {
750
+ className: clsx('utrecht-data-list__item-key', className),
751
+ ref: ref
752
+ }, {
753
+ children: children
754
+ }));
755
+ });
756
+ DataListKey.displayName = 'DataListKey';
757
+ var DataListValue = /*#__PURE__*/forwardRef(function (_ref, ref) {
758
+ var value = _ref.value,
759
+ children = _ref.children,
760
+ className = _ref.className,
761
+ emptyDescription = _ref.emptyDescription,
762
+ multiline = _ref.multiline,
763
+ notranslate = _ref.notranslate;
764
+ var empty = value === '' || value === null;
765
+ return jsx("dd", Object.assign({
766
+ className: clsx('utrecht-data-list__item-value', 'utrecht-data-list__item-value--html-dd', className, multiline && 'utrecht-data-list__item-value--multiline'),
767
+ translate: typeof notranslate === 'boolean' ? notranslate ? 'no' : 'yes' : undefined,
768
+ ref: ref
769
+ }, {
770
+ children: empty ? jsx("span", Object.assign({
771
+ "aria-label": emptyDescription
772
+ }, {
773
+ children: "-"
774
+ })) : children
775
+ }));
776
+ });
777
+ DataListValue.displayName = 'DataListValue';
778
+ var DataListActions = /*#__PURE__*/forwardRef(function (_a, ref) {
779
+ var children = _a.children,
780
+ className = _a.className,
781
+ restProps = __rest(_a, ["children", "className"]);
782
+
783
+ return jsx("dd", Object.assign({}, restProps, {
784
+ className: clsx('utrecht-data-list__actions', 'utrecht-data-list__actions--html-dd', className),
785
+ ref: ref
786
+ }, {
787
+ children: children
788
+ }));
789
+ });
790
+ DataListActions.displayName = 'DataListActions';
791
+
792
+ var Emphasis = /*#__PURE__*/forwardRef(function (_a, ref) {
793
+ var children = _a.children,
794
+ className = _a.className,
795
+ restProps = __rest(_a, ["children", "className"]);
796
+
797
+ return jsx("em", Object.assign({
798
+ ref: ref,
799
+ className: clsx('utrecht-emphasis', 'utrecht-emphasis--stressed', className)
800
+ }, restProps, {
801
+ children: children
802
+ }));
803
+ });
804
+ Emphasis.displayName = 'Emphasis';
805
+
806
+ var Fieldset = /*#__PURE__*/forwardRef(function (_a, ref) {
807
+ var ariaDescribedby = _a['aria-describedby'],
808
+ ariaLabel = _a['aria-label'],
809
+ ariaLabelledby = _a['aria-labelledby'],
810
+ className = _a.className,
811
+ children = _a.children,
812
+ disabled = _a.disabled,
813
+ form = _a.form,
814
+ invalid = _a.invalid,
815
+ name = _a.name,
816
+ role = _a.role,
817
+ restProps = __rest(_a, ['aria-describedby', 'aria-label', 'aria-labelledby', "className", "children", "disabled", "form", "invalid", "name", "role"]);
818
+
819
+ return jsx("div", Object.assign({}, restProps, {
820
+ ref: ref,
821
+ className: clsx('utrecht-form-fieldset', disabled && 'utrecht-form-fieldset--disabled', invalid && 'utrecht-form-fieldset--invalid', className)
822
+ }, {
823
+ children: jsx("fieldset", Object.assign({
824
+ "aria-describedby": ariaDescribedby,
825
+ "aria-label": ariaLabel,
826
+ "aria-labelledby": ariaLabelledby,
827
+ "aria-invalid": invalid || undefined,
828
+ disabled: disabled,
829
+ form: form,
830
+ name: name,
831
+ role: role,
832
+ className: clsx('utrecht-form-fieldset__fieldset', 'utrecht-form-fieldset--html-fieldset')
833
+ }, {
834
+ children: children
835
+ }))
836
+ }));
837
+ });
838
+ Fieldset.displayName = 'Fieldset';
839
+ var FieldsetOnly = /*#__PURE__*/forwardRef(function (_a, ref) {
840
+ var className = _a.className,
841
+ children = _a.children,
842
+ disabled = _a.disabled,
843
+ invalid = _a.invalid,
844
+ restProps = __rest(_a, ["className", "children", "disabled", "invalid"]);
845
+
846
+ return jsx("fieldset", Object.assign({}, restProps, {
847
+ ref: ref,
848
+ "aria-invalid": invalid || undefined,
849
+ disabled: disabled,
850
+ className: clsx('utrecht-form-fieldset', 'utrecht-form-fieldset--html-fieldset', disabled && 'utrecht-form-fieldset--disabled', invalid && 'utrecht-form-fieldset--invalid', className)
851
+ }, {
852
+ children: children
853
+ }));
854
+ });
855
+ FieldsetOnly.displayName = 'Fieldset';
856
+
857
+ var FieldsetLegend = /*#__PURE__*/forwardRef(function (_a, ref) {
858
+ var className = _a.className,
859
+ children = _a.children,
860
+ restProps = __rest(_a, ["className", "children"]);
861
+
862
+ return jsx("legend", Object.assign({}, restProps, {
863
+ ref: ref,
864
+ className: clsx('utrecht-form-fieldset__legend', 'utrecht-form-fieldset__legend--html-legend', className)
865
+ }, {
866
+ children: children
867
+ }));
868
+ });
869
+ FieldsetLegend.displayName = 'FieldsetLegend';
870
+
871
+ var Figure = /*#__PURE__*/forwardRef(function (_a, ref) {
872
+ var className = _a.className,
873
+ children = _a.children,
874
+ restProps = __rest(_a, ["className", "children"]);
875
+
876
+ return jsx("figure", Object.assign({}, restProps, {
877
+ ref: ref,
878
+ className: clsx('utrecht-figure', className)
879
+ }, {
880
+ children: children
881
+ }));
882
+ });
883
+ Figure.displayName = 'Figure';
884
+
885
+ var FigureCaption = /*#__PURE__*/forwardRef(function (_a, ref) {
886
+ var className = _a.className,
887
+ children = _a.children,
888
+ restProps = __rest(_a, ["className", "children"]);
889
+
890
+ return jsx("figcaption", Object.assign({}, restProps, {
891
+ ref: ref,
892
+ className: clsx('utrecht-figure__caption', className)
893
+ }, {
894
+ children: children
895
+ }));
896
+ });
897
+ FigureCaption.displayName = 'FigureCaption';
898
+
899
+ var FormField = /*#__PURE__*/forwardRef(function (_a, ref) {
900
+ var className = _a.className,
901
+ children = _a.children,
902
+ invalid = _a.invalid,
903
+ type = _a.type,
904
+ restProps = __rest(_a, ["className", "children", "invalid", "type"]);
905
+
906
+ return jsx("div", Object.assign({}, restProps, {
907
+ ref: ref,
908
+ className: clsx('utrecht-form-field', {
909
+ 'utrecht-form-field--invalid': invalid,
910
+ 'utrecht-form-field--checkbox': type === 'checkbox',
911
+ 'utrecht-form-field--radio': type === 'radio',
912
+ 'utrecht-form-field--text': !type || type === 'text'
913
+ }, className)
914
+ }, {
915
+ children: children
916
+ }));
917
+ });
918
+ FormField.displayName = 'FormField';
919
+
920
+ var FormFieldDescription = /*#__PURE__*/forwardRef(function (_a, ref) {
921
+ var invalid = _a.invalid,
922
+ valid = _a.valid,
923
+ warning = _a.warning,
924
+ className = _a.className,
925
+ children = _a.children,
926
+ restProps = __rest(_a, ["invalid", "valid", "warning", "className", "children"]);
927
+
928
+ return jsx("div", Object.assign({}, restProps, {
929
+ ref: ref,
930
+ 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)
931
+ }, {
932
+ children: children
933
+ }));
934
+ });
935
+ FormFieldDescription.displayName = 'FormFieldDescription';
936
+
937
+ var FormLabel = /*#__PURE__*/forwardRef(function (_a, ref) {
938
+ var children = _a.children,
939
+ className = _a.className,
940
+ type = _a.type,
941
+ disabled = _a.disabled,
942
+ checked = _a.checked,
943
+ restProps = __rest(_a, ["children", "className", "type", "disabled", "checked"]);
944
+
945
+ return jsx("label", Object.assign({}, restProps, {
946
+ ref: ref,
947
+ className: clsx('utrecht-form-label', type && "utrecht-form-label--".concat(type), disabled && 'utrecht-form-label--disabled', checked && 'utrecht-form-label--checked', className)
948
+ }, {
949
+ children: children
950
+ }));
951
+ });
952
+ FormLabel.displayName = 'FormLabel';
953
+
954
+ var HTMLContent = /*#__PURE__*/forwardRef(function (_a, ref) {
955
+ var children = _a.children,
956
+ className = _a.className,
957
+ restProps = __rest(_a, ["children", "className"]);
958
+
959
+ return jsx("div", Object.assign({}, restProps, {
960
+ ref: ref,
961
+ className: clsx('utrecht-html', className)
962
+ }, {
963
+ children: children
964
+ }));
965
+ });
966
+ HTMLContent.displayName = 'HTMLContent';
967
+
968
+ var Heading = /*#__PURE__*/forwardRef(function (_a, ref) {
969
+ var appearance = _a.appearance,
970
+ className = _a.className,
971
+ level = _a.level,
972
+ restProps = __rest(_a, ["appearance", "className", "level"]);
973
+
974
+ var appearances = ['utrecht-heading-1', 'utrecht-heading-2', 'utrecht-heading-3', 'utrecht-heading-4', 'utrecht-heading-5', 'utrecht-heading-6'];
975
+ var HeadingX = level === 2 ? 'h2' : level === 3 ? 'h3' : level === 4 ? 'h4' : level === 5 ? 'h5' : level === 6 ? 'h6' : 'h1';
976
+ var headingClassName = appearance && appearances.indexOf(appearance) !== -1 ? appearance : appearances[level - 1] || 'utrecht-heading-1';
977
+ return jsx(HeadingX, Object.assign({
978
+ className: clsx(headingClassName, className)
979
+ }, restProps, {
980
+ ref: ref
981
+ }));
982
+ });
983
+ Heading.displayName = 'Heading';
984
+
985
+ var Heading1 = /*#__PURE__*/forwardRef(function (_a, ref) {
986
+ var children = _a.children,
987
+ className = _a.className,
988
+ restProps = __rest(_a, ["children", "className"]);
989
+
990
+ return jsx("h1", Object.assign({}, restProps, {
991
+ ref: ref,
992
+ className: clsx('utrecht-heading-1', className)
993
+ }, {
994
+ children: children
995
+ }));
996
+ });
997
+ Heading1.displayName = 'Heading1';
998
+
999
+ var Heading3 = /*#__PURE__*/forwardRef(function (_a, ref) {
1000
+ var children = _a.children,
1001
+ className = _a.className,
1002
+ restProps = __rest(_a, ["children", "className"]);
1003
+
1004
+ return jsx("h3", Object.assign({}, restProps, {
1005
+ ref: ref,
1006
+ className: clsx('utrecht-heading-3', className)
1007
+ }, {
1008
+ children: children
1009
+ }));
1010
+ });
1011
+ Heading3.displayName = 'Heading3';
1012
+
1013
+ var Heading4 = /*#__PURE__*/forwardRef(function (_a, ref) {
1014
+ var children = _a.children,
1015
+ className = _a.className,
1016
+ restProps = __rest(_a, ["children", "className"]);
1017
+
1018
+ return jsx("h4", Object.assign({}, restProps, {
1019
+ ref: ref,
1020
+ className: clsx('utrecht-heading-4', className)
1021
+ }, {
1022
+ children: children
1023
+ }));
1024
+ });
1025
+ Heading4.displayName = 'Heading4';
1026
+
1027
+ var Heading5 = /*#__PURE__*/forwardRef(function (_a, ref) {
1028
+ var children = _a.children,
1029
+ className = _a.className,
1030
+ restProps = __rest(_a, ["children", "className"]);
1031
+
1032
+ return jsx("h5", Object.assign({}, restProps, {
1033
+ ref: ref,
1034
+ className: clsx('utrecht-heading-5', className)
1035
+ }, {
1036
+ children: children
1037
+ }));
1038
+ });
1039
+ Heading5.displayName = 'Heading5';
1040
+
1041
+ var Heading6 = /*#__PURE__*/forwardRef(function (_a, ref) {
1042
+ var children = _a.children,
1043
+ className = _a.className,
1044
+ restProps = __rest(_a, ["children", "className"]);
1045
+
1046
+ return jsx("h6", Object.assign({}, restProps, {
1047
+ ref: ref,
1048
+ className: clsx('utrecht-heading-6', className)
1049
+ }, {
1050
+ children: children
1051
+ }));
1052
+ });
1053
+ Heading6.displayName = 'Heading6';
1054
+
1055
+ var HeadingGroup = /*#__PURE__*/forwardRef(function (_a, ref) {
1056
+ var children = _a.children,
1057
+ className = _a.className,
1058
+ restProps = __rest(_a, ["children", "className"]);
1059
+
1060
+ return jsx("hgroup", Object.assign({}, restProps, {
1061
+ ref: ref,
1062
+ className: clsx('utrecht-heading-group', className)
1063
+ }, {
1064
+ children: children
1065
+ }));
1066
+ });
1067
+ HeadingGroup.displayName = 'HeadingGroup';
1068
+
1069
+ var Icon = /*#__PURE__*/forwardRef(function (_a, ref) {
1070
+ var children = _a.children,
1071
+ className = _a.className,
1072
+ restProps = __rest(_a, ["children", "className"]);
1073
+
1074
+ return jsx("span", Object.assign({
1075
+ ref: ref,
1076
+ className: clsx('utrecht-icon', className)
1077
+ }, restProps, {
1078
+ children: children
1079
+ }));
1080
+ });
1081
+ Icon.displayName = 'Icon';
1082
+
1083
+ var Image = /*#__PURE__*/forwardRef(function (_a, ref) {
1084
+ var className = _a.className,
1085
+ photo = _a.photo,
1086
+ restProps = __rest(_a, ["className", "photo"]);
1087
+
1088
+ return jsx("img", Object.assign({}, restProps, {
1089
+ ref: ref,
1090
+ className: clsx('utrecht-img', {
1091
+ 'utrecht-img--photo': photo
1092
+ }, className)
1093
+ }));
1094
+ });
1095
+ Image.displayName = 'Image';
1096
+
1097
+ var Link = /*#__PURE__*/forwardRef(function (_a, ref) {
1098
+ var boxContent = _a.boxContent,
1099
+ children = _a.children,
1100
+ className = _a.className,
1101
+ external = _a.external,
1102
+ href = _a.href,
1103
+ placeholder = _a.placeholder,
1104
+ role = _a.role,
1105
+ restProps = __rest(_a, ["boxContent", "children", "className", "external", "href", "placeholder", "role"]);
1106
+
1107
+ return (// "utrecht-link--telephone" does not have a corresponding API,
1108
+ // since it is primarily a basis for implementing input[href^="tel"].
1109
+ // Telephone number rendering in React is best achieved using composition
1110
+ // of the TelephoneValue component.
1111
+ jsx("a", Object.assign({
1112
+ href: placeholder ? undefined : href,
1113
+ ref: ref,
1114
+ role: role || (placeholder ? 'link' : undefined),
1115
+ className: clsx('utrecht-link', {
1116
+ 'utrecht-link--box-content': boxContent,
1117
+ 'utrecht-link--external': external,
1118
+ 'utrecht-link--placeholder': placeholder
1119
+ }, className),
1120
+ "aria-disabled": placeholder ? 'true' : undefined,
1121
+ rel: external ? 'external noopener noreferrer' : undefined
1122
+ }, restProps, {
1123
+ children: children
1124
+ }))
1125
+ );
1126
+ });
1127
+ Link.displayName = 'Link';
1128
+
1129
+ var LinkButton = /*#__PURE__*/forwardRef(function (_a, ref) {
1130
+ var children = _a.children,
1131
+ disabled = _a.disabled,
1132
+ inline = _a.inline,
1133
+ className = _a.className,
1134
+ pressed = _a.pressed,
1135
+ type = _a.type,
1136
+ restProps = __rest(_a, ["children", "disabled", "inline", "className", "pressed", "type"]);
1137
+
1138
+ return jsx("button", Object.assign({
1139
+ ref: ref,
1140
+ "aria-pressed": typeof pressed === 'boolean' ? pressed : undefined,
1141
+ className: clsx('utrecht-link-button', 'utrecht-link-button--html-button', {
1142
+ 'utrecht-link-button--disabled': disabled,
1143
+ 'utrecht-link-button--inline': inline,
1144
+ 'utrecht-link-button--pressed': pressed
1145
+ }, className),
1146
+ disabled: disabled,
1147
+ type: type || 'button'
1148
+ }, restProps, {
1149
+ children: children
1150
+ }));
1151
+ });
1152
+ LinkButton.displayName = 'LinkButton';
1153
+
1154
+ var LinkSocial = /*#__PURE__*/forwardRef(function (_a, ref) {
1155
+ var children = _a.children,
1156
+ className = _a.className,
1157
+ external = _a.external,
1158
+ restProps = __rest(_a, ["children", "className", "external"]);
1159
+
1160
+ return jsx("a", Object.assign({}, restProps, {
1161
+ ref: ref,
1162
+ className: clsx('utrecht-link-social', className),
1163
+ rel: external !== false ? 'external noopener noreferrer' : undefined
1164
+ }, {
1165
+ children: children
1166
+ }));
1167
+ });
1168
+ LinkSocial.displayName = 'LinkSocial';
1169
+
1170
+ var ListSocial = function ListSocial(_ref) {
1171
+ var children = _ref.children;
1172
+ return jsx("ul", Object.assign({
1173
+ className: clsx('utrecht-list-social')
1174
+ }, {
1175
+ children: children
1176
+ }));
1177
+ };
1178
+ var ListSocialItem = function ListSocialItem(_ref2) {
1179
+ var children = _ref2.children;
1180
+ return jsx("li", Object.assign({
1181
+ className: clsx('utrecht-list-social__item')
1182
+ }, {
1183
+ children: children
1184
+ }));
1185
+ };
1186
+
1187
+ var Mark = /*#__PURE__*/forwardRef(function (_a, ref) {
1188
+ var children = _a.children,
1189
+ className = _a.className,
1190
+ restProps = __rest(_a, ["children", "className"]);
1191
+
1192
+ return jsx("mark", Object.assign({
1193
+ ref: ref,
1194
+ className: clsx('utrecht-mark', className)
1195
+ }, restProps, {
1196
+ children: children
1197
+ }));
1198
+ });
1199
+ Mark.displayName = 'Mark';
1200
+
1201
+ var NumberValue = /*#__PURE__*/forwardRef(function (_a, ref) {
1202
+ var children = _a.children,
1203
+ className = _a.className,
1204
+ value = _a.value,
1205
+ restProps = __rest(_a, ["children", "className", "value"]);
1206
+
1207
+ return jsx("data", Object.assign({
1208
+ value: typeof value === 'string' || typeof value === 'number' ? String(value) : undefined
1209
+ }, restProps, {
1210
+ ref: ref,
1211
+ className: clsx('utrecht-value-number', className)
1212
+ }, {
1213
+ children: children
1214
+ }));
1215
+ });
1216
+ NumberValue.displayName = 'NumberValue';
1217
+
1218
+ var OrderedList = /*#__PURE__*/forwardRef(function (_a, ref) {
1219
+ var children = _a.children,
1220
+ className = _a.className,
1221
+ restProps = __rest(_a, ["children", "className"]);
1222
+
1223
+ return jsx("ol", Object.assign({}, restProps, {
1224
+ ref: ref,
1225
+ className: clsx('utrecht-ordered-list', className)
1226
+ }, {
1227
+ children: children
1228
+ }));
1229
+ });
1230
+ OrderedList.displayName = 'OrderedList';
1231
+
1232
+ var OrderedListItem = /*#__PURE__*/forwardRef(function (_a, ref) {
1233
+ var children = _a.children,
1234
+ className = _a.className,
1235
+ restProps = __rest(_a, ["children", "className"]);
1236
+
1237
+ return jsx("li", Object.assign({}, restProps, {
1238
+ ref: ref,
1239
+ className: clsx('utrecht-ordered-list__item', className)
1240
+ }, {
1241
+ children: children
1242
+ }));
1243
+ });
1244
+ OrderedListItem.displayName = 'OrderedListItem';
1245
+
1246
+ var Page = /*#__PURE__*/forwardRef(function (_a, ref) {
1247
+ var children = _a.children,
1248
+ className = _a.className,
1249
+ restProps = __rest(_a, ["children", "className"]);
1250
+
1251
+ return jsx("div", Object.assign({}, restProps, {
1252
+ ref: ref,
1253
+ className: clsx('utrecht-page', className)
1254
+ }, {
1255
+ children: children
1256
+ }));
1257
+ });
1258
+ Page.displayName = 'Page';
1259
+
1260
+ var PageContent = /*#__PURE__*/forwardRef(function (_a, ref) {
1261
+ var children = _a.children,
1262
+ className = _a.className,
1263
+ restProps = __rest(_a, ["children", "className"]);
1264
+
1265
+ return jsx("div", Object.assign({}, restProps, {
1266
+ ref: ref,
1267
+ className: clsx('utrecht-page-content', className)
1268
+ }, {
1269
+ children: children
1270
+ }));
1271
+ });
1272
+ PageContent.displayName = 'PageContent';
1273
+ var PageContentMain = /*#__PURE__*/forwardRef(function (_a, ref) {
1274
+ var children = _a.children,
1275
+ className = _a.className,
1276
+ restProps = __rest(_a, ["children", "className"]);
1277
+
1278
+ return jsx("main", Object.assign({}, restProps, {
1279
+ ref: ref,
1280
+ className: clsx('utrecht-page-content__main', className)
1281
+ }, {
1282
+ children: children
1283
+ }));
1284
+ });
1285
+ PageContentMain.displayName = 'PageContentMain';
1286
+
1287
+ var PageFooter = /*#__PURE__*/forwardRef(function (_a, ref) {
1288
+ var children = _a.children,
1289
+ className = _a.className,
1290
+ restProps = __rest(_a, ["children", "className"]);
1291
+
1292
+ return jsx("footer", Object.assign({}, restProps, {
1293
+ ref: ref,
1294
+ className: clsx('utrecht-page-footer', className)
1295
+ }, {
1296
+ children: children
1297
+ }));
1298
+ });
1299
+ PageFooter.displayName = 'PageFooter';
1300
+
1301
+ var PageHeader = /*#__PURE__*/forwardRef(function (_a, ref) {
1302
+ var children = _a.children,
1303
+ className = _a.className,
1304
+ restProps = __rest(_a, ["children", "className"]);
1305
+
1306
+ return jsx("header", Object.assign({}, restProps, {
1307
+ ref: ref,
1308
+ className: clsx('utrecht-page-header', className)
1309
+ }, {
1310
+ children: children
1311
+ }));
1312
+ });
1313
+ PageHeader.displayName = 'PageHeader';
1314
+
1315
+ var Paragraph = /*#__PURE__*/forwardRef(function (_a, ref) {
1316
+ var children = _a.children,
1317
+ className = _a.className,
1318
+ lead = _a.lead,
1319
+ small = _a.small,
1320
+ restProps = __rest(_a, ["children", "className", "lead", "small"]);
1321
+
1322
+ return jsx("p", Object.assign({}, restProps, {
1323
+ ref: ref,
1324
+ className: clsx('utrecht-paragraph', lead && 'utrecht-paragraph--lead', small && 'utrecht-paragraph--small', className)
1325
+ }, {
1326
+ children: small ? jsx("small", Object.assign({
1327
+ className: "utrecht-paragraph__small"
1328
+ }, {
1329
+ children: children
1330
+ })) : children
1331
+ }));
1332
+ });
1333
+ Paragraph.displayName = 'Paragraph';
1334
+
1335
+ var PreHeading = /*#__PURE__*/forwardRef(function (_a, ref) {
1336
+ var children = _a.children,
1337
+ className = _a.className,
1338
+ restProps = __rest(_a, ["children", "className"]);
1339
+
1340
+ return jsx("p", Object.assign({}, restProps, {
1341
+ ref: ref,
1342
+ className: clsx('utrecht-pre-heading', className)
1343
+ }, {
1344
+ children: children
1345
+ }));
1346
+ });
1347
+ PreHeading.displayName = 'PreHeading';
1348
+
1349
+ var RadioButton = /*#__PURE__*/forwardRef(function (_a, ref) {
1350
+ var _a$appearance = _a.appearance,
1351
+ appearance = _a$appearance === void 0 ? 'utrecht-radio-button' : _a$appearance,
1352
+ invalid = _a.invalid,
1353
+ className = _a.className,
1354
+ restProps = __rest(_a, ["appearance", "invalid", "className"]);
1355
+
1356
+ return jsx("input", Object.assign({}, restProps, {
1357
+ ref: ref,
1358
+ type: "radio",
1359
+ className: clsx('utrecht-radio-button', 'utrecht-radio-button--html-input', {
1360
+ 'utrecht-radio-button--custom': appearance === 'utrecht-radio-button',
1361
+ 'utrecht-radio-button--invalid': invalid
1362
+ }, className)
1363
+ }));
1364
+ });
1365
+ RadioButton.displayName = 'RadioButton';
1366
+
1367
+ var Select = /*#__PURE__*/forwardRef(function (_a, ref) {
1368
+ var invalid = _a.invalid,
1369
+ required = _a.required,
1370
+ className = _a.className,
1371
+ noscript = _a.noscript,
1372
+ children = _a.children,
1373
+ restProps = __rest(_a, ["invalid", "required", "className", "noscript", "children"]);
1374
+
1375
+ return jsx("select", Object.assign({}, restProps, {
1376
+ ref: ref,
1377
+ "aria-invalid": invalid || undefined,
1378
+ required: noscript ? required : false,
1379
+ "aria-required": noscript ? undefined : required,
1380
+ className: clsx('utrecht-select', 'utrecht-select--html-select', invalid && 'utrecht-select--invalid', required && 'utrecht-select--required', className)
1381
+ }, {
1382
+ children: children
1383
+ }));
1384
+ });
1385
+ Select.displayName = 'Select';
1386
+ var SelectOption = /*#__PURE__*/forwardRef(function (_a, ref) {
1387
+ var disabled = _a.disabled,
1388
+ invalid = _a.invalid,
1389
+ value = _a.value,
1390
+ children = _a.children,
1391
+ className = _a.className,
1392
+ restProps = __rest(_a, ["disabled", "invalid", "value", "children", "className"]);
1393
+
1394
+ return jsx("option", Object.assign({}, restProps, {
1395
+ ref: ref,
1396
+ disabled: disabled,
1397
+ value: value,
1398
+ className: clsx('utrecht-select__option', disabled && 'utrecht-select__option--disabled', invalid && 'utrecht-select__option--invalid', className)
1399
+ }, {
1400
+ children: children
1401
+ }));
1402
+ });
1403
+ SelectOption.displayName = 'SelectOption';
1404
+
1405
+ var Separator = /*#__PURE__*/forwardRef(function (_a, ref) {
1406
+ var className = _a.className;
1407
+ _a.children;
1408
+ var restProps = __rest(_a, ["className", "children"]);
1409
+
1410
+ return jsx("hr", Object.assign({}, restProps, {
1411
+ ref: ref,
1412
+ className: clsx('utrecht-separator', className)
1413
+ }));
1414
+ });
1415
+ Separator.displayName = 'Separator';
1416
+
1417
+ var SkipLink = /*#__PURE__*/forwardRef(function (_a, ref) {
1418
+ var children = _a.children,
1419
+ className = _a.className,
1420
+ restProps = __rest(_a, ["children", "className"]);
1421
+
1422
+ return jsx("p", {
1423
+ children: jsx("a", Object.assign({
1424
+ ref: ref
1425
+ }, restProps, {
1426
+ className: clsx('utrecht-skip-link', 'utrecht-skip-link--visible-on-focus', className)
1427
+ }, {
1428
+ children: children
1429
+ }))
1430
+ });
1431
+ });
1432
+ SkipLink.displayName = 'SkipLink';
1433
+
1434
+ var SpotlightSection = /*#__PURE__*/forwardRef(function (_a, ref) {
1435
+ var aside = _a.aside,
1436
+ children = _a.children,
1437
+ className = _a.className,
1438
+ type = _a.type,
1439
+ restProps = __rest(_a, ["aside", "children", "className", "type"]);
1440
+
1441
+ var props = Object.assign(Object.assign({}, restProps), {
1442
+ ref: ref,
1443
+ className: clsx('utrecht-spotlight-section', {
1444
+ 'utrecht-spotlight-section--info': type === 'info',
1445
+ 'utrecht-spotlight-section--warning': type === 'warning'
1446
+ }, className)
1447
+ });
1448
+ return aside ? jsx("aside", Object.assign({}, props, {
1449
+ children: children
1450
+ })) : jsx("section", Object.assign({}, props, {
1451
+ children: children
1452
+ }));
1453
+ });
1454
+ SpotlightSection.displayName = 'SpotlightSection';
1455
+
1456
+ var Strong = /*#__PURE__*/forwardRef(function (_a, ref) {
1457
+ var children = _a.children,
1458
+ className = _a.className,
1459
+ restProps = __rest(_a, ["children", "className"]);
1460
+
1461
+ return jsx("strong", Object.assign({
1462
+ ref: ref,
1463
+ className: clsx('utrecht-emphasis', 'utrecht-emphasis--strong', className)
1464
+ }, restProps, {
1465
+ children: children
1466
+ }));
1467
+ });
1468
+ Strong.displayName = 'Strong';
1469
+
1470
+ var Surface = /*#__PURE__*/forwardRef(function (_a, ref) {
1471
+ var children = _a.children,
1472
+ className = _a.className,
1473
+ restProps = __rest(_a, ["children", "className"]);
1474
+
1475
+ return jsx("div", Object.assign({}, restProps, {
1476
+ ref: ref,
1477
+ className: clsx('utrecht-surface', className)
1478
+ }, {
1479
+ children: children
1480
+ }));
1481
+ });
1482
+ Surface.displayName = 'Surface';
1483
+
1484
+ var Table = /*#__PURE__*/forwardRef(function (_a, ref) {
1485
+ var children = _a.children,
1486
+ className = _a.className,
1487
+ restProps = __rest(_a, ["children", "className"]);
1488
+
1489
+ return jsx("table", Object.assign({}, restProps, {
1490
+ ref: ref,
1491
+ className: clsx('utrecht-table', className)
1492
+ }, {
1493
+ children: children
1494
+ }));
1495
+ });
1496
+ Table.displayName = 'Table';
1497
+
1498
+ var TableBody = /*#__PURE__*/forwardRef(function (_a, ref) {
1499
+ var children = _a.children,
1500
+ className = _a.className,
1501
+ restProps = __rest(_a, ["children", "className"]);
1502
+
1503
+ return jsx("tbody", Object.assign({}, restProps, {
1504
+ ref: ref,
1505
+ className: clsx('utrecht-table__body', className)
1506
+ }, {
1507
+ children: children
1508
+ }));
1509
+ });
1510
+ TableBody.displayName = 'TableBody';
1511
+
1512
+ var TableCaption = /*#__PURE__*/forwardRef(function (_a, ref) {
1513
+ var children = _a.children,
1514
+ className = _a.className,
1515
+ restProps = __rest(_a, ["children", "className"]);
1516
+
1517
+ return jsx("caption", Object.assign({}, restProps, {
1518
+ ref: ref,
1519
+ className: clsx('utrecht-table__caption', className)
1520
+ }, {
1521
+ children: children
1522
+ }));
1523
+ });
1524
+ TableCaption.displayName = 'TableCaption';
1525
+
1526
+ var TableCell = /*#__PURE__*/forwardRef(function (_a, ref) {
1527
+ var children = _a.children,
1528
+ className = _a.className,
1529
+ restProps = __rest(_a, ["children", "className"]);
1530
+
1531
+ return jsx("td", Object.assign({}, restProps, {
1532
+ ref: ref,
1533
+ className: clsx('utrecht-table__cell', className)
1534
+ }, {
1535
+ children: children
1536
+ }));
1537
+ });
1538
+ TableCell.displayName = 'TableCell';
1539
+
1540
+ var TableFooter = /*#__PURE__*/forwardRef(function (_a, ref) {
1541
+ var children = _a.children,
1542
+ className = _a.className,
1543
+ restProps = __rest(_a, ["children", "className"]);
1544
+
1545
+ return jsx("tfoot", Object.assign({}, restProps, {
1546
+ ref: ref,
1547
+ className: clsx('utrecht-table__footer', className)
1548
+ }, {
1549
+ children: children
1550
+ }));
1551
+ });
1552
+ TableFooter.displayName = 'TableFooter';
1553
+
1554
+ var TableHeader = /*#__PURE__*/forwardRef(function (_a, ref) {
1555
+ var children = _a.children,
1556
+ className = _a.className,
1557
+ restProps = __rest(_a, ["children", "className"]);
1558
+
1559
+ return jsx("thead", Object.assign({}, restProps, {
1560
+ ref: ref,
1561
+ className: clsx('utrecht-table__header', className)
1562
+ }, {
1563
+ children: children
1564
+ }));
1565
+ });
1566
+ TableHeader.displayName = 'TableHeader';
1567
+
1568
+ var TableHeaderCell = /*#__PURE__*/forwardRef(function (_a, ref) {
1569
+ var children = _a.children,
1570
+ className = _a.className,
1571
+ restProps = __rest(_a, ["children", "className"]);
1572
+
1573
+ return jsx("th", Object.assign({}, restProps, {
1574
+ ref: ref,
1575
+ className: clsx('utrecht-table__header-cell', className)
1576
+ }, {
1577
+ children: children
1578
+ }));
1579
+ });
1580
+ TableHeaderCell.displayName = 'TableHeaderCell';
1581
+
1582
+ var TableRow = /*#__PURE__*/forwardRef(function (_a, ref) {
1583
+ var children = _a.children,
1584
+ className = _a.className,
1585
+ restProps = __rest(_a, ["children", "className"]);
1586
+
1587
+ return jsx("tr", Object.assign({}, restProps, {
1588
+ ref: ref,
1589
+ className: clsx('utrecht-table__row', className)
1590
+ }, {
1591
+ children: children
1592
+ }));
1593
+ });
1594
+ TableRow.displayName = 'TableRow';
1595
+
1596
+ var Textarea = /*#__PURE__*/forwardRef(function (_a, ref) {
1597
+ var disabled = _a.disabled,
1598
+ invalid = _a.invalid,
1599
+ readOnly = _a.readOnly,
1600
+ required = _a.required,
1601
+ className = _a.className,
1602
+ restProps = __rest(_a, ["disabled", "invalid", "readOnly", "required", "className"]);
1603
+
1604
+ return jsx("textarea", Object.assign({}, restProps, {
1605
+ ref: ref,
1606
+ 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),
1607
+ disabled: disabled,
1608
+ readOnly: readOnly,
1609
+ required: required,
1610
+ "aria-invalid": invalid || undefined
1611
+ }));
1612
+ });
1613
+ Textarea.displayName = 'Textarea';
1614
+
1615
+ var Textbox = /*#__PURE__*/forwardRef(function (_a, ref) {
1616
+ var disabled = _a.disabled,
1617
+ invalid = _a.invalid,
1618
+ readOnly = _a.readOnly,
1619
+ required = _a.required,
1620
+ className = _a.className,
1621
+ _a$type = _a.type,
1622
+ type = _a$type === void 0 ? 'text' : _a$type,
1623
+ maxLength = _a.maxLength,
1624
+ inputMode = _a.inputMode,
1625
+ restProps = __rest(_a, ["disabled", "invalid", "readOnly", "required", "className", "type", "maxLength", "inputMode"]);
1626
+
1627
+ return jsx("input", Object.assign({}, restProps, {
1628
+ ref: ref,
1629
+ type: type,
1630
+ 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),
1631
+ maxLength: maxLength,
1632
+ disabled: disabled,
1633
+ readOnly: readOnly,
1634
+ required: required,
1635
+ "aria-invalid": invalid || undefined,
1636
+ inputMode: inputMode || (type === 'number' ? 'numeric' : undefined)
1637
+ }));
1638
+ });
1639
+ Textbox.displayName = 'Textbox';
1640
+
1641
+ var URLValue = /*#__PURE__*/forwardRef(function (_a, ref) {
1642
+ var children = _a.children,
1643
+ className = _a.className,
1644
+ restProps = __rest(_a, ["children", "className"]);
1645
+
1646
+ return jsx("bdi", Object.assign({
1647
+ translate: "no"
1648
+ }, restProps, {
1649
+ ref: ref,
1650
+ className: clsx('utrecht-url', className)
1651
+ }, {
1652
+ children: children
1653
+ }));
1654
+ });
1655
+ URLValue.displayName = 'URLValue';
1656
+
1657
+ var UnorderedList = /*#__PURE__*/forwardRef(function (_a, ref) {
1658
+ var children = _a.children,
1659
+ className = _a.className,
1660
+ restProps = __rest(_a, ["children", "className"]);
1661
+
1662
+ return jsx("ul", Object.assign({
1663
+ role: "list"
1664
+ }, restProps, {
1665
+ ref: ref,
1666
+ className: clsx('utrecht-unordered-list', className)
1667
+ }, {
1668
+ children: children
1669
+ }));
1670
+ });
1671
+ UnorderedList.displayName = 'UnorderedList';
1672
+
1673
+ var UnorderedListItem = /*#__PURE__*/forwardRef(function (_a, ref) {
1674
+ var children = _a.children,
1675
+ className = _a.className,
1676
+ restProps = __rest(_a, ["children", "className"]);
1677
+
1678
+ return jsx("li", Object.assign({}, restProps, {
1679
+ ref: ref,
1680
+ className: clsx('utrecht-unordered-list__item', className)
1681
+ }, {
1682
+ children: children
1683
+ }));
1684
+ });
1685
+ UnorderedListItem.displayName = 'UnorderedListItem';
1686
+
1687
+ export { Alert, AlertDialog, Article, Backdrop, Button, ButtonGroup, ButtonLink, Calendar, Checkbox, Code, CodeBlock, 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 };
1688
+ //# sourceMappingURL=index.esm.js.map