@utrecht/component-library-react 1.0.0-alpha.17 → 1.0.0-alpha.170

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