@utrecht/component-library-react 1.0.0-alpha.14 → 1.0.0-alpha.140

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 (103) hide show
  1. package/README.md +27 -3
  2. package/dist/{cjs/Article.d.ts → Article.d.ts} +9 -7
  3. package/dist/{cjs/Backdrop.d.ts → Backdrop.d.ts} +9 -7
  4. package/dist/Button.d.ts +27 -0
  5. package/dist/ButtonLink.d.ts +13 -0
  6. package/dist/{cjs/Checkbox.d.ts → Checkbox.d.ts} +5 -5
  7. package/dist/CustomRadioButton.d.ts +13 -0
  8. package/dist/DataList.d.ts +28 -0
  9. package/dist/{cjs/Document.d.ts → Document.d.ts} +9 -7
  10. package/dist/{cjs/Fieldset.d.ts → Fieldset.d.ts} +5 -3
  11. package/dist/{cjs/FieldsetLegend.d.ts → FieldsetLegend.d.ts} +5 -3
  12. package/dist/{cjs/FormField.d.ts → FormField.d.ts} +5 -3
  13. package/dist/{cjs/FormFieldDescription.d.ts → FormFieldDescription.d.ts} +9 -7
  14. package/dist/{cjs/FormLabel.d.ts → FormLabel.d.ts} +10 -8
  15. package/dist/{cjs/HTMLContent.d.ts → HTMLContent.d.ts} +9 -7
  16. package/dist/{cjs/Heading1.d.ts → Heading1.d.ts} +9 -7
  17. package/dist/{cjs/Heading2.d.ts → Heading2.d.ts} +9 -7
  18. package/dist/{cjs/Heading3.d.ts → Heading3.d.ts} +9 -7
  19. package/dist/{cjs/Heading4.d.ts → Heading4.d.ts} +9 -7
  20. package/dist/{cjs/Heading5.d.ts → Heading5.d.ts} +9 -7
  21. package/dist/{cjs/Heading6.d.ts → Heading6.d.ts} +9 -7
  22. package/dist/HeadingGroup.d.ts +9 -0
  23. package/dist/Image.d.ts +9 -0
  24. package/dist/{cjs/Link.d.ts → Link.d.ts} +13 -15
  25. package/dist/LinkButton.d.ts +12 -0
  26. package/dist/NumberValue.d.ts +11 -0
  27. package/dist/{cjs/OrderedList.d.ts → OrderedList.d.ts} +9 -7
  28. package/dist/{cjs/OrderedListItem.d.ts → OrderedListItem.d.ts} +9 -7
  29. package/dist/{cjs/Page.d.ts → Page.d.ts} +9 -7
  30. package/dist/{cjs/PageContent.d.ts → PageContent.d.ts} +13 -9
  31. package/dist/{cjs/PageFooter.d.ts → PageFooter.d.ts} +9 -7
  32. package/dist/{cjs/PageHeader.d.ts → PageHeader.d.ts} +9 -7
  33. package/dist/{cjs/Paragraph.d.ts → Paragraph.d.ts} +11 -9
  34. package/dist/PreHeading.d.ts +9 -0
  35. package/dist/{cjs/RadioButton.d.ts → RadioButton.d.ts} +5 -5
  36. package/dist/{cjs/Select.d.ts → Select.d.ts} +19 -11
  37. package/dist/{cjs/Separator.d.ts → Separator.d.ts} +7 -7
  38. package/dist/SkipLink.d.ts +5 -0
  39. package/dist/{cjs/Surface.d.ts → Surface.d.ts} +9 -7
  40. package/dist/{cjs/Table.d.ts → Table.d.ts} +9 -7
  41. package/dist/{cjs/TableBody.d.ts → TableBody.d.ts} +9 -7
  42. package/dist/{cjs/TableCaption.d.ts → TableCaption.d.ts} +9 -7
  43. package/dist/{cjs/TableCell.d.ts → TableCell.d.ts} +9 -7
  44. package/dist/{cjs/TableFooter.d.ts → TableFooter.d.ts} +9 -7
  45. package/dist/{cjs/TableHeader.d.ts → TableHeader.d.ts} +9 -7
  46. package/dist/{cjs/TableHeaderCell.d.ts → TableHeaderCell.d.ts} +9 -7
  47. package/dist/{cjs/TableRow.d.ts → TableRow.d.ts} +9 -7
  48. package/dist/{cjs/Textarea.d.ts → Textarea.d.ts} +5 -5
  49. package/dist/{cjs/Textbox.d.ts → Textbox.d.ts} +7 -7
  50. package/dist/{cjs/URLValue.d.ts → URLValue.d.ts} +9 -7
  51. package/dist/{cjs/UnorderedList.d.ts → UnorderedList.d.ts} +9 -7
  52. package/dist/{cjs/UnorderedListItem.d.ts → UnorderedListItem.d.ts} +9 -7
  53. package/dist/index.cjs.js +1001 -0
  54. package/dist/index.cjs.js.map +1 -0
  55. package/dist/{cjs/index.d.ts → index.d.ts} +55 -46
  56. package/dist/index.esm.js +935 -0
  57. package/dist/index.esm.js.map +1 -0
  58. package/package.json +40 -192
  59. package/dist/cjs/Article.js +0 -29
  60. package/dist/cjs/Backdrop.js +0 -29
  61. package/dist/cjs/Button.d.ts +0 -5
  62. package/dist/cjs/Button.js +0 -25
  63. package/dist/cjs/Checkbox.js +0 -25
  64. package/dist/cjs/Document.js +0 -29
  65. package/dist/cjs/Fieldset.js +0 -25
  66. package/dist/cjs/FieldsetLegend.js +0 -25
  67. package/dist/cjs/FormField.js +0 -25
  68. package/dist/cjs/FormFieldDescription.js +0 -25
  69. package/dist/cjs/FormLabel.js +0 -25
  70. package/dist/cjs/HTMLContent.js +0 -29
  71. package/dist/cjs/Heading1.js +0 -29
  72. package/dist/cjs/Heading2.js +0 -29
  73. package/dist/cjs/Heading3.js +0 -29
  74. package/dist/cjs/Heading4.js +0 -29
  75. package/dist/cjs/Heading5.js +0 -29
  76. package/dist/cjs/Heading6.js +0 -29
  77. package/dist/cjs/Link.js +0 -42
  78. package/dist/cjs/OrderedList.js +0 -29
  79. package/dist/cjs/OrderedListItem.js +0 -29
  80. package/dist/cjs/Page.js +0 -29
  81. package/dist/cjs/PageContent.js +0 -34
  82. package/dist/cjs/PageFooter.js +0 -29
  83. package/dist/cjs/PageHeader.js +0 -29
  84. package/dist/cjs/Paragraph.js +0 -29
  85. package/dist/cjs/RadioButton.js +0 -25
  86. package/dist/cjs/Select.js +0 -31
  87. package/dist/cjs/Separator.js +0 -30
  88. package/dist/cjs/Surface.js +0 -29
  89. package/dist/cjs/Table.js +0 -29
  90. package/dist/cjs/TableBody.js +0 -29
  91. package/dist/cjs/TableCaption.js +0 -29
  92. package/dist/cjs/TableCell.js +0 -29
  93. package/dist/cjs/TableFooter.js +0 -29
  94. package/dist/cjs/TableHeader.js +0 -29
  95. package/dist/cjs/TableHeaderCell.js +0 -29
  96. package/dist/cjs/TableRow.js +0 -29
  97. package/dist/cjs/Textarea.js +0 -25
  98. package/dist/cjs/Textbox.js +0 -25
  99. package/dist/cjs/URLValue.js +0 -29
  100. package/dist/cjs/UnorderedList.js +0 -29
  101. package/dist/cjs/UnorderedListItem.js +0 -29
  102. package/dist/cjs/index.js +0 -92
  103. package/dist/cjs/tsconfig.tsbuildinfo +0 -2533
@@ -0,0 +1,935 @@
1
+ import { __rest } from 'tslib';
2
+ import { jsx } from 'react/jsx-runtime';
3
+ import clsx from 'clsx';
4
+ import { forwardRef } from 'react';
5
+
6
+ var Article = /*#__PURE__*/forwardRef(function (_a, ref) {
7
+ var children = _a.children,
8
+ className = _a.className,
9
+ restProps = __rest(_a, ["children", "className"]);
10
+
11
+ return jsx("article", Object.assign({}, restProps, {
12
+ ref: ref,
13
+ className: clsx('utrecht-article', className)
14
+ }, {
15
+ children: children
16
+ }));
17
+ });
18
+ Article.displayName = 'Article';
19
+
20
+ var Backdrop = /*#__PURE__*/forwardRef(function (_a, ref) {
21
+ var children = _a.children,
22
+ className = _a.className,
23
+ restProps = __rest(_a, ["children", "className"]);
24
+
25
+ return jsx("div", Object.assign({}, restProps, {
26
+ ref: ref,
27
+ className: clsx('utrecht-backdrop', className)
28
+ }, {
29
+ children: children
30
+ }));
31
+ });
32
+ Backdrop.displayName = 'Backdrop';
33
+
34
+ var Button = /*#__PURE__*/forwardRef(function (_a, ref) {
35
+ var appearance = _a.appearance,
36
+ busy = _a.busy,
37
+ disabled = _a.disabled,
38
+ children = _a.children,
39
+ className = _a.className,
40
+ hint = _a.hint,
41
+ type = _a.type,
42
+ restProps = __rest(_a, ["appearance", "busy", "disabled", "children", "className", "hint", "type"]);
43
+
44
+ return jsx("button", Object.assign({}, restProps, {
45
+ ref: ref,
46
+ 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--primary-action', hint === 'warning' && 'utrecht-button--secondary-action', hint === 'ready' && 'utrecht-button--subtle', className),
47
+ "aria-busy": busy || undefined,
48
+ disabled: disabled,
49
+ type: type || 'button'
50
+ }, {
51
+ children: children
52
+ }));
53
+ });
54
+ Button.displayName = 'Button';
55
+ var PrimaryActionButton = function PrimaryActionButton(_a) {
56
+ var args = __rest(_a, []);
57
+
58
+ return jsx(Button, Object.assign({}, args, {
59
+ appearance: "primary-action-button"
60
+ }));
61
+ };
62
+ PrimaryActionButton.displayName = 'PrimaryActionButton';
63
+ var SecondaryActionButton = function SecondaryActionButton(_a) {
64
+ var args = __rest(_a, []);
65
+
66
+ return jsx(Button, Object.assign({}, args, {
67
+ appearance: "secondary-action-button"
68
+ }));
69
+ };
70
+ SecondaryActionButton.displayName = 'SecondaryActionButton';
71
+ var SubtleButton = function SubtleButton(_a) {
72
+ var args = __rest(_a, []);
73
+
74
+ return jsx(Button, Object.assign({}, args, {
75
+ appearance: "subtle-button"
76
+ }));
77
+ };
78
+ SubtleButton.displayName = 'SubtleButton';
79
+
80
+ var onKeyDown = function onKeyDown(evt) {
81
+ var _a;
82
+
83
+ if (evt.key === ' ' && typeof ((_a = evt.target) === null || _a === void 0 ? void 0 : _a.click) === 'function') {
84
+ // Prevent other side-effects, such as scrolling
85
+ evt.preventDefault(); // Navigate to the link target
86
+
87
+ evt.target.click();
88
+ }
89
+ };
90
+
91
+ var ButtonLink = /*#__PURE__*/forwardRef(function (_a, ref) {
92
+ var appearance = _a.appearance,
93
+ children = _a.children,
94
+ className = _a.className,
95
+ external = _a.external,
96
+ role = _a.role,
97
+ restProps = __rest(_a, ["appearance", "children", "className", "external", "role"]);
98
+
99
+ var props = restProps;
100
+
101
+ if (role === 'button') {
102
+ // When this link is announced as button by accessibility tools,
103
+ // it should also behave like a button. Links are not activated
104
+ // using `Space`, so we need to implement that behaviour here
105
+ // to reach parity with the `button` element.
106
+ props = Object.assign(Object.assign({}, restProps), {
107
+ onKeyDown: onKeyDown
108
+ });
109
+ }
110
+
111
+ return jsx("a", Object.assign({}, props, {
112
+ ref: ref,
113
+ role: role,
114
+ className: clsx('utrecht-button-link', 'utrecht-button-link--html-a', {
115
+ 'utrecht-button-link--external': external,
116
+ 'utrecht-button-link--primary-action': appearance === 'primary-action-button',
117
+ 'utrecht-button-link--secondary-action': appearance === 'secondary-action-button',
118
+ 'utrecht-button-link--subtle': appearance === 'subtle-button'
119
+ }, className),
120
+ rel: external ? 'external noopener noreferrer' : undefined
121
+ }, {
122
+ children: children
123
+ }));
124
+ });
125
+ ButtonLink.displayName = 'ButtonLink';
126
+
127
+ var Checkbox = /*#__PURE__*/forwardRef(function (_a, ref) {
128
+ var disabled = _a.disabled,
129
+ invalid = _a.invalid,
130
+ required = _a.required,
131
+ className = _a.className,
132
+ restProps = __rest(_a, ["disabled", "invalid", "required", "className"]);
133
+
134
+ return jsx("input", Object.assign({}, restProps, {
135
+ ref: ref,
136
+ type: "checkbox",
137
+ className: clsx('utrecht-checkbox', 'utrecht-checkbox--html-input', disabled && 'utrecht-checkbox--disabled', invalid && 'utrecht-checkbox--invalid', required && 'utrecht-checkbox--required', className),
138
+ "aria-invalid": invalid || undefined,
139
+ disabled: disabled,
140
+ required: required
141
+ }));
142
+ });
143
+ Checkbox.displayName = 'Checkbox';
144
+
145
+ var CustomRadioButton = /*#__PURE__*/forwardRef(function (_a, ref) {
146
+ var disabled = _a.disabled,
147
+ required = _a.required,
148
+ className = _a.className,
149
+ invalid = _a.invalid,
150
+ restProps = __rest(_a, ["disabled", "required", "className", "invalid"]);
151
+
152
+ return jsx("input", Object.assign({
153
+ type: "radio",
154
+ "aria-invalid": invalid || undefined,
155
+ disabled: disabled,
156
+ required: required,
157
+ ref: ref,
158
+ 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)
159
+ }, restProps));
160
+ });
161
+ CustomRadioButton.displayName = 'CustomRadioButton';
162
+
163
+ var Document = /*#__PURE__*/forwardRef(function (_a, ref) {
164
+ var children = _a.children,
165
+ className = _a.className,
166
+ restProps = __rest(_a, ["children", "className"]);
167
+
168
+ return jsx("div", Object.assign({}, restProps, {
169
+ ref: ref,
170
+ className: clsx('utrecht-document', className)
171
+ }, {
172
+ children: children
173
+ }));
174
+ });
175
+ Document.displayName = 'Document';
176
+
177
+ var DataList = /*#__PURE__*/forwardRef(function (_a, ref) {
178
+ var appearance = _a.appearance,
179
+ children = _a.children,
180
+ className = _a.className,
181
+ restProps = __rest(_a, ["appearance", "children", "className"]);
182
+
183
+ return jsx("dl", Object.assign({}, restProps, {
184
+ className: clsx('utrecht-data-list', 'utrecht-data-list--html-dl', appearance === 'rows' && 'utrecht-data-list--rows', className),
185
+ ref: ref
186
+ }, {
187
+ children: children
188
+ }));
189
+ });
190
+ DataList.displayName = 'DataList';
191
+ var DataListItem = /*#__PURE__*/forwardRef(function (_a, ref) {
192
+ var children = _a.children,
193
+ className = _a.className,
194
+ restProps = __rest(_a, ["children", "className"]);
195
+
196
+ return jsx("div", Object.assign({}, restProps, {
197
+ className: clsx('utrecht-data-list__item', className),
198
+ ref: ref
199
+ }, {
200
+ children: children
201
+ }));
202
+ });
203
+ DataListItem.displayName = 'DataListItem';
204
+ var DataListKey = /*#__PURE__*/forwardRef(function (_a, ref) {
205
+ var children = _a.children,
206
+ className = _a.className,
207
+ restProps = __rest(_a, ["children", "className"]);
208
+
209
+ return jsx("dt", Object.assign({}, restProps, {
210
+ className: clsx('utrecht-data-list__item-key', className),
211
+ ref: ref
212
+ }, {
213
+ children: children
214
+ }));
215
+ });
216
+ DataListKey.displayName = 'DataListKey';
217
+ var DataListValue = /*#__PURE__*/forwardRef(function (_ref, ref) {
218
+ var value = _ref.value,
219
+ children = _ref.children,
220
+ className = _ref.className,
221
+ emptyDescription = _ref.emptyDescription,
222
+ multiline = _ref.multiline,
223
+ notranslate = _ref.notranslate;
224
+ var empty = value === '' || value === null;
225
+ return jsx("dd", Object.assign({
226
+ className: clsx('utrecht-data-list__item-value', 'utrecht-data-list__item-value--html-dd', className, multiline && 'utrecht-data-list__item-value--multiline'),
227
+ translate: typeof notranslate === 'boolean' ? notranslate ? 'no' : 'yes' : undefined,
228
+ ref: ref
229
+ }, {
230
+ children: empty ? jsx("span", Object.assign({
231
+ "aria-label": emptyDescription
232
+ }, {
233
+ children: "-"
234
+ })) : children
235
+ }));
236
+ });
237
+ DataListValue.displayName = 'DataListValue';
238
+ var DataListActions = /*#__PURE__*/forwardRef(function (_a, ref) {
239
+ var children = _a.children,
240
+ className = _a.className,
241
+ restProps = __rest(_a, ["children", "className"]);
242
+
243
+ return jsx("dd", Object.assign({}, restProps, {
244
+ className: clsx('utrecht-data-list__actions', 'utrecht-data-list__actions--html-dd', className),
245
+ ref: ref
246
+ }, {
247
+ children: children
248
+ }));
249
+ });
250
+ DataListActions.displayName = 'DataListActions';
251
+
252
+ var Fieldset = /*#__PURE__*/forwardRef(function (_a, ref) {
253
+ var className = _a.className,
254
+ children = _a.children,
255
+ restProps = __rest(_a, ["className", "children"]);
256
+
257
+ return jsx("fieldset", Object.assign({}, restProps, {
258
+ ref: ref,
259
+ className: clsx('utrecht-form-fieldset', 'utrecht-form-fieldset--reset-fieldset', className)
260
+ }, {
261
+ children: children
262
+ }));
263
+ });
264
+ Fieldset.displayName = 'Fieldset';
265
+
266
+ var FieldsetLegend = /*#__PURE__*/forwardRef(function (_a, ref) {
267
+ var className = _a.className,
268
+ children = _a.children,
269
+ restProps = __rest(_a, ["className", "children"]);
270
+
271
+ return jsx("legend", Object.assign({}, restProps, {
272
+ ref: ref,
273
+ className: clsx('utrecht-form-fieldset__legend', 'utrecht-form-fieldset__legend--reset-legend', className)
274
+ }, {
275
+ children: children
276
+ }));
277
+ });
278
+ FieldsetLegend.displayName = 'FieldsetLegend';
279
+
280
+ var FormField = /*#__PURE__*/forwardRef(function (_a, ref) {
281
+ var className = _a.className,
282
+ children = _a.children,
283
+ restProps = __rest(_a, ["className", "children"]);
284
+
285
+ return jsx("div", Object.assign({}, restProps, {
286
+ ref: ref,
287
+ className: clsx('utrecht-form-field', 'utrecht-form-field--distanced', className)
288
+ }, {
289
+ children: children
290
+ }));
291
+ });
292
+ FormField.displayName = 'FormField';
293
+
294
+ var FormFieldDescription = /*#__PURE__*/forwardRef(function (_a, ref) {
295
+ var invalid = _a.invalid,
296
+ valid = _a.valid,
297
+ warning = _a.warning,
298
+ className = _a.className,
299
+ children = _a.children,
300
+ restProps = __rest(_a, ["invalid", "valid", "warning", "className", "children"]);
301
+
302
+ return jsx("div", Object.assign({}, restProps, {
303
+ ref: ref,
304
+ 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)
305
+ }, {
306
+ children: children
307
+ }));
308
+ });
309
+ FormFieldDescription.displayName = 'FormFieldDescription';
310
+
311
+ var FormLabel = /*#__PURE__*/forwardRef(function (_a, ref) {
312
+ var children = _a.children,
313
+ className = _a.className,
314
+ type = _a.type,
315
+ disabled = _a.disabled,
316
+ checked = _a.checked,
317
+ restProps = __rest(_a, ["children", "className", "type", "disabled", "checked"]);
318
+
319
+ return jsx("label", Object.assign({}, restProps, {
320
+ ref: ref,
321
+ className: clsx('utrecht-form-label', type && "utrecht-form-label--".concat(type), disabled && 'utrecht-form-label--disabled', checked && 'utrecht-form-label--checked', className)
322
+ }, {
323
+ children: children
324
+ }));
325
+ });
326
+ FormLabel.displayName = 'FormLabel';
327
+
328
+ var HTMLContent = /*#__PURE__*/forwardRef(function (_a, ref) {
329
+ var children = _a.children,
330
+ className = _a.className,
331
+ restProps = __rest(_a, ["children", "className"]);
332
+
333
+ return jsx("div", Object.assign({}, restProps, {
334
+ ref: ref,
335
+ className: clsx('utrecht-html', className)
336
+ }, {
337
+ children: children
338
+ }));
339
+ });
340
+ HTMLContent.displayName = 'HTMLContent';
341
+
342
+ var Heading1 = /*#__PURE__*/forwardRef(function (_a, ref) {
343
+ var children = _a.children,
344
+ className = _a.className,
345
+ restProps = __rest(_a, ["children", "className"]);
346
+
347
+ return jsx("h1", Object.assign({}, restProps, {
348
+ ref: ref,
349
+ className: clsx('utrecht-heading-1', className)
350
+ }, {
351
+ children: children
352
+ }));
353
+ });
354
+ Heading1.displayName = 'Heading1';
355
+
356
+ var Heading2 = /*#__PURE__*/forwardRef(function (_a, ref) {
357
+ var children = _a.children,
358
+ className = _a.className,
359
+ restProps = __rest(_a, ["children", "className"]);
360
+
361
+ return jsx("h2", Object.assign({}, restProps, {
362
+ ref: ref,
363
+ className: clsx('utrecht-heading-2', className)
364
+ }, {
365
+ children: children
366
+ }));
367
+ });
368
+ Heading2.displayName = 'Heading2';
369
+
370
+ var Heading3 = /*#__PURE__*/forwardRef(function (_a, ref) {
371
+ var children = _a.children,
372
+ className = _a.className,
373
+ restProps = __rest(_a, ["children", "className"]);
374
+
375
+ return jsx("h3", Object.assign({}, restProps, {
376
+ ref: ref,
377
+ className: clsx('utrecht-heading-3', className)
378
+ }, {
379
+ children: children
380
+ }));
381
+ });
382
+ Heading3.displayName = 'Heading3';
383
+
384
+ var Heading4 = /*#__PURE__*/forwardRef(function (_a, ref) {
385
+ var children = _a.children,
386
+ className = _a.className,
387
+ restProps = __rest(_a, ["children", "className"]);
388
+
389
+ return jsx("h4", Object.assign({}, restProps, {
390
+ ref: ref,
391
+ className: clsx('utrecht-heading-4', className)
392
+ }, {
393
+ children: children
394
+ }));
395
+ });
396
+ Heading4.displayName = 'Heading4';
397
+
398
+ var Heading5 = /*#__PURE__*/forwardRef(function (_a, ref) {
399
+ var children = _a.children,
400
+ className = _a.className,
401
+ restProps = __rest(_a, ["children", "className"]);
402
+
403
+ return jsx("h5", Object.assign({}, restProps, {
404
+ ref: ref,
405
+ className: clsx('utrecht-heading-5', className)
406
+ }, {
407
+ children: children
408
+ }));
409
+ });
410
+ Heading5.displayName = 'Heading5';
411
+
412
+ var Heading6 = /*#__PURE__*/forwardRef(function (_a, ref) {
413
+ var children = _a.children,
414
+ className = _a.className,
415
+ restProps = __rest(_a, ["children", "className"]);
416
+
417
+ return jsx("h6", Object.assign({}, restProps, {
418
+ ref: ref,
419
+ className: clsx('utrecht-heading-6', className)
420
+ }, {
421
+ children: children
422
+ }));
423
+ });
424
+ Heading6.displayName = 'Heading6';
425
+
426
+ var HeadingGroup = /*#__PURE__*/forwardRef(function (_a, ref) {
427
+ var children = _a.children,
428
+ className = _a.className,
429
+ restProps = __rest(_a, ["children", "className"]);
430
+
431
+ return jsx("hgroup", Object.assign({}, restProps, {
432
+ ref: ref,
433
+ className: clsx('utrecht-heading-group', className)
434
+ }, {
435
+ children: children
436
+ }));
437
+ });
438
+ HeadingGroup.displayName = 'HeadingGroup';
439
+
440
+ var Image = /*#__PURE__*/forwardRef(function (_a, ref) {
441
+ var className = _a.className,
442
+ photo = _a.photo,
443
+ restProps = __rest(_a, ["className", "photo"]);
444
+
445
+ return jsx("img", Object.assign({}, restProps, {
446
+ ref: ref,
447
+ className: clsx('utrecht-img', {
448
+ 'utrecht-img--photo': photo
449
+ }, className)
450
+ }));
451
+ });
452
+ Image.displayName = 'Image';
453
+
454
+ var Link = /*#__PURE__*/forwardRef(function (_a, ref) {
455
+ var boxContent = _a.boxContent,
456
+ children = _a.children,
457
+ className = _a.className,
458
+ external = _a.external,
459
+ restProps = __rest(_a, ["boxContent", "children", "className", "external"]);
460
+
461
+ return (// "utrecht-link--telephone" does not have a corresponding API,
462
+ // since it is primarily a basis for implementing input[href^="tel"].
463
+ // Telephone number rendering in React is best achieved using composition
464
+ // of the TelephoneValue component.
465
+ jsx("a", Object.assign({}, restProps, {
466
+ ref: ref,
467
+ className: clsx('utrecht-link', {
468
+ 'utrecht-link--box-content': boxContent,
469
+ 'utrecht-link--external': external
470
+ }, className),
471
+ rel: external ? 'external noopener noreferrer' : undefined
472
+ }, {
473
+ children: children
474
+ }))
475
+ );
476
+ });
477
+ Link.displayName = 'Link';
478
+
479
+ var LinkButton = /*#__PURE__*/forwardRef(function (_a, ref) {
480
+ var children = _a.children,
481
+ inline = _a.inline,
482
+ className = _a.className,
483
+ restProps = __rest(_a, ["children", "inline", "className"]);
484
+
485
+ return jsx("button", Object.assign({}, restProps, {
486
+ ref: ref,
487
+ className: clsx('utrecht-link-button', 'utrecht-link-button--html-button', {
488
+ 'utrecht-link-button--inline': inline
489
+ }, className)
490
+ }, {
491
+ children: children
492
+ }));
493
+ });
494
+ LinkButton.displayName = 'LinkButton';
495
+
496
+ var NumberValue = /*#__PURE__*/forwardRef(function (_a, ref) {
497
+ var children = _a.children,
498
+ className = _a.className,
499
+ value = _a.value,
500
+ restProps = __rest(_a, ["children", "className", "value"]);
501
+
502
+ return jsx("data", Object.assign({
503
+ value: typeof value === 'string' || typeof value === 'number' ? String(value) : undefined
504
+ }, restProps, {
505
+ ref: ref,
506
+ className: clsx('utrecht-value-number', className)
507
+ }, {
508
+ children: children
509
+ }));
510
+ });
511
+ NumberValue.displayName = 'NumberValue';
512
+
513
+ var OrderedList = /*#__PURE__*/forwardRef(function (_a, ref) {
514
+ var children = _a.children,
515
+ className = _a.className,
516
+ restProps = __rest(_a, ["children", "className"]);
517
+
518
+ return jsx("ol", Object.assign({}, restProps, {
519
+ ref: ref,
520
+ className: clsx('utrecht-ordered-list', className)
521
+ }, {
522
+ children: children
523
+ }));
524
+ });
525
+ OrderedList.displayName = 'OrderedList';
526
+
527
+ var OrderedListItem = /*#__PURE__*/forwardRef(function (_a, ref) {
528
+ var children = _a.children,
529
+ className = _a.className,
530
+ restProps = __rest(_a, ["children", "className"]);
531
+
532
+ return jsx("li", Object.assign({}, restProps, {
533
+ ref: ref,
534
+ className: clsx('utrecht-ordered-list__item', className)
535
+ }, {
536
+ children: children
537
+ }));
538
+ });
539
+ OrderedListItem.displayName = 'OrderedListItem';
540
+
541
+ var Page = /*#__PURE__*/forwardRef(function (_a, ref) {
542
+ var children = _a.children,
543
+ className = _a.className,
544
+ restProps = __rest(_a, ["children", "className"]);
545
+
546
+ return jsx("div", Object.assign({}, restProps, {
547
+ ref: ref,
548
+ className: clsx('utrecht-page', className)
549
+ }, {
550
+ children: children
551
+ }));
552
+ });
553
+ Page.displayName = 'Page';
554
+
555
+ var PageContent = /*#__PURE__*/forwardRef(function (_a, ref) {
556
+ var children = _a.children,
557
+ className = _a.className,
558
+ restProps = __rest(_a, ["children", "className"]);
559
+
560
+ return jsx("div", Object.assign({}, restProps, {
561
+ ref: ref,
562
+ className: clsx('utrecht-page-content', className)
563
+ }, {
564
+ children: children
565
+ }));
566
+ });
567
+ PageContent.displayName = 'PageContent';
568
+ var PageContentMain = /*#__PURE__*/forwardRef(function (_a, ref) {
569
+ var children = _a.children,
570
+ className = _a.className,
571
+ restProps = __rest(_a, ["children", "className"]);
572
+
573
+ return jsx("main", Object.assign({}, restProps, {
574
+ ref: ref,
575
+ className: clsx('utrecht-page-content__main', className)
576
+ }, {
577
+ children: children
578
+ }));
579
+ });
580
+ PageContentMain.displayName = 'PageContentMain';
581
+
582
+ var PageFooter = /*#__PURE__*/forwardRef(function (_a, ref) {
583
+ var children = _a.children,
584
+ className = _a.className,
585
+ restProps = __rest(_a, ["children", "className"]);
586
+
587
+ return jsx("footer", Object.assign({}, restProps, {
588
+ ref: ref,
589
+ className: clsx('utrecht-page-footer', className)
590
+ }, {
591
+ children: children
592
+ }));
593
+ });
594
+ PageFooter.displayName = 'PageFooter';
595
+
596
+ var PageHeader = /*#__PURE__*/forwardRef(function (_a, ref) {
597
+ var children = _a.children,
598
+ className = _a.className,
599
+ restProps = __rest(_a, ["children", "className"]);
600
+
601
+ return jsx("header", Object.assign({}, restProps, {
602
+ ref: ref,
603
+ className: clsx('utrecht-page-header', className)
604
+ }, {
605
+ children: children
606
+ }));
607
+ });
608
+ PageHeader.displayName = 'PageHeader';
609
+
610
+ var Paragraph = /*#__PURE__*/forwardRef(function (_a, ref) {
611
+ var children = _a.children,
612
+ className = _a.className,
613
+ lead = _a.lead,
614
+ restProps = __rest(_a, ["children", "className", "lead"]);
615
+
616
+ return jsx("p", Object.assign({}, restProps, {
617
+ ref: ref,
618
+ className: clsx('utrecht-paragraph', lead && 'utrecht-paragraph--lead', className)
619
+ }, {
620
+ children: children
621
+ }));
622
+ });
623
+ Paragraph.displayName = 'Paragraph';
624
+
625
+ var PreHeading = /*#__PURE__*/forwardRef(function (_a, ref) {
626
+ var children = _a.children,
627
+ className = _a.className,
628
+ restProps = __rest(_a, ["children", "className"]);
629
+
630
+ return jsx("p", Object.assign({}, restProps, {
631
+ ref: ref,
632
+ className: clsx('utrecht-pre-heading', className)
633
+ }, {
634
+ children: children
635
+ }));
636
+ });
637
+ PreHeading.displayName = 'PreHeading';
638
+
639
+ var RadioButton = /*#__PURE__*/forwardRef(function (_a, ref) {
640
+ var invalid = _a.invalid,
641
+ className = _a.className,
642
+ restProps = __rest(_a, ["invalid", "className"]);
643
+
644
+ return jsx("input", Object.assign({}, restProps, {
645
+ ref: ref,
646
+ type: "radio",
647
+ className: clsx('utrecht-radio-button', 'utrecht-radio-button--html-input', invalid && 'utrecht-radio-button--invalid', className)
648
+ }));
649
+ });
650
+ RadioButton.displayName = 'RadioButton';
651
+
652
+ var Select = /*#__PURE__*/forwardRef(function (_a, ref) {
653
+ var invalid = _a.invalid,
654
+ required = _a.required,
655
+ className = _a.className,
656
+ noscript = _a.noscript,
657
+ children = _a.children,
658
+ restProps = __rest(_a, ["invalid", "required", "className", "noscript", "children"]);
659
+
660
+ return jsx("select", Object.assign({}, restProps, {
661
+ ref: ref,
662
+ "aria-invalid": invalid || undefined,
663
+ required: noscript ? required : false,
664
+ "aria-required": noscript ? undefined : required,
665
+ className: clsx('utrecht-select', 'utrecht-select--html-select', invalid && 'utrecht-select--invalid', required && 'utrecht-select--required', className)
666
+ }, {
667
+ children: children
668
+ }));
669
+ });
670
+ Select.displayName = 'Select';
671
+ var SelectOption = /*#__PURE__*/forwardRef(function (_a, ref) {
672
+ var disabled = _a.disabled,
673
+ invalid = _a.invalid,
674
+ value = _a.value,
675
+ children = _a.children,
676
+ className = _a.className,
677
+ restProps = __rest(_a, ["disabled", "invalid", "value", "children", "className"]);
678
+
679
+ return jsx("option", Object.assign({}, restProps, {
680
+ ref: ref,
681
+ disabled: disabled,
682
+ value: value,
683
+ className: clsx('utrecht-select__option', disabled && 'utrecht-select__option--disabled', invalid && 'utrecht-select__option--invalid', className)
684
+ }, {
685
+ children: children
686
+ }));
687
+ });
688
+ SelectOption.displayName = 'SelectOption';
689
+
690
+ var Separator = /*#__PURE__*/forwardRef(function (_a, ref) {
691
+ var className = _a.className;
692
+ _a.children;
693
+ var restProps = __rest(_a, ["className", "children"]);
694
+
695
+ return jsx("hr", Object.assign({}, restProps, {
696
+ ref: ref,
697
+ className: clsx('utrecht-separator', className)
698
+ }));
699
+ });
700
+ Separator.displayName = 'Separator';
701
+
702
+ var SkipLink = /*#__PURE__*/forwardRef(function (_a, ref) {
703
+ var children = _a.children,
704
+ className = _a.className,
705
+ restProps = __rest(_a, ["children", "className"]);
706
+
707
+ return jsx("p", {
708
+ children: jsx("a", Object.assign({
709
+ ref: ref
710
+ }, restProps, {
711
+ className: clsx('utrecht-skip-link', 'utrecht-skip-link--visible-on-focus', className)
712
+ }, {
713
+ children: children
714
+ }))
715
+ });
716
+ });
717
+ SkipLink.displayName = 'SkipLink';
718
+
719
+ var Surface = /*#__PURE__*/forwardRef(function (_a, ref) {
720
+ var children = _a.children,
721
+ className = _a.className,
722
+ restProps = __rest(_a, ["children", "className"]);
723
+
724
+ return jsx("div", Object.assign({}, restProps, {
725
+ ref: ref,
726
+ className: clsx('utrecht-surface', className)
727
+ }, {
728
+ children: children
729
+ }));
730
+ });
731
+ Surface.displayName = 'Surface';
732
+
733
+ var Table = /*#__PURE__*/forwardRef(function (_a, ref) {
734
+ var children = _a.children,
735
+ className = _a.className,
736
+ restProps = __rest(_a, ["children", "className"]);
737
+
738
+ return jsx("table", Object.assign({}, restProps, {
739
+ ref: ref,
740
+ className: clsx('utrecht-table', className)
741
+ }, {
742
+ children: children
743
+ }));
744
+ });
745
+ Table.displayName = 'Table';
746
+
747
+ var TableBody = /*#__PURE__*/forwardRef(function (_a, ref) {
748
+ var children = _a.children,
749
+ className = _a.className,
750
+ restProps = __rest(_a, ["children", "className"]);
751
+
752
+ return jsx("tbody", Object.assign({}, restProps, {
753
+ ref: ref,
754
+ className: clsx('utrecht-table__body', className)
755
+ }, {
756
+ children: children
757
+ }));
758
+ });
759
+ TableBody.displayName = 'TableBody';
760
+
761
+ var TableCaption = /*#__PURE__*/forwardRef(function (_a, ref) {
762
+ var children = _a.children,
763
+ className = _a.className,
764
+ restProps = __rest(_a, ["children", "className"]);
765
+
766
+ return jsx("caption", Object.assign({}, restProps, {
767
+ ref: ref,
768
+ className: clsx('utrecht-table__caption', className)
769
+ }, {
770
+ children: children
771
+ }));
772
+ });
773
+ TableCaption.displayName = 'TableCaption';
774
+
775
+ var TableCell = /*#__PURE__*/forwardRef(function (_a, ref) {
776
+ var children = _a.children,
777
+ className = _a.className,
778
+ restProps = __rest(_a, ["children", "className"]);
779
+
780
+ return jsx("td", Object.assign({}, restProps, {
781
+ ref: ref,
782
+ className: clsx('utrecht-table__cell', className)
783
+ }, {
784
+ children: children
785
+ }));
786
+ });
787
+ TableCell.displayName = 'TableCell';
788
+
789
+ var TableFooter = /*#__PURE__*/forwardRef(function (_a, ref) {
790
+ var children = _a.children,
791
+ className = _a.className,
792
+ restProps = __rest(_a, ["children", "className"]);
793
+
794
+ return jsx("tfoot", Object.assign({}, restProps, {
795
+ ref: ref,
796
+ className: clsx('utrecht-table__footer', className)
797
+ }, {
798
+ children: children
799
+ }));
800
+ });
801
+ TableFooter.displayName = 'TableFooter';
802
+
803
+ var TableHeader = /*#__PURE__*/forwardRef(function (_a, ref) {
804
+ var children = _a.children,
805
+ className = _a.className,
806
+ restProps = __rest(_a, ["children", "className"]);
807
+
808
+ return jsx("thead", Object.assign({}, restProps, {
809
+ ref: ref,
810
+ className: clsx('utrecht-table__header', className)
811
+ }, {
812
+ children: children
813
+ }));
814
+ });
815
+ TableHeader.displayName = 'TableHeader';
816
+
817
+ var TableHeaderCell = /*#__PURE__*/forwardRef(function (_a, ref) {
818
+ var children = _a.children,
819
+ className = _a.className,
820
+ restProps = __rest(_a, ["children", "className"]);
821
+
822
+ return jsx("th", Object.assign({}, restProps, {
823
+ ref: ref,
824
+ className: clsx('utrecht-table__header-cell', className)
825
+ }, {
826
+ children: children
827
+ }));
828
+ });
829
+ TableHeaderCell.displayName = 'TableHeaderCell';
830
+
831
+ var TableRow = /*#__PURE__*/forwardRef(function (_a, ref) {
832
+ var children = _a.children,
833
+ className = _a.className,
834
+ restProps = __rest(_a, ["children", "className"]);
835
+
836
+ return jsx("tr", Object.assign({}, restProps, {
837
+ ref: ref,
838
+ className: clsx('utrecht-table__row', className)
839
+ }, {
840
+ children: children
841
+ }));
842
+ });
843
+ TableRow.displayName = 'TableRow';
844
+
845
+ var Textarea = /*#__PURE__*/forwardRef(function (_a, ref) {
846
+ var disabled = _a.disabled,
847
+ invalid = _a.invalid,
848
+ readOnly = _a.readOnly,
849
+ required = _a.required,
850
+ className = _a.className,
851
+ restProps = __rest(_a, ["disabled", "invalid", "readOnly", "required", "className"]);
852
+
853
+ return jsx("textarea", Object.assign({}, restProps, {
854
+ ref: ref,
855
+ 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),
856
+ disabled: disabled,
857
+ readOnly: readOnly,
858
+ required: required,
859
+ "aria-invalid": invalid || undefined
860
+ }));
861
+ });
862
+ Textarea.displayName = 'Textarea';
863
+
864
+ var Textbox = /*#__PURE__*/forwardRef(function (_a, ref) {
865
+ var disabled = _a.disabled,
866
+ invalid = _a.invalid,
867
+ readOnly = _a.readOnly,
868
+ required = _a.required,
869
+ className = _a.className,
870
+ _a$type = _a.type,
871
+ type = _a$type === void 0 ? 'text' : _a$type,
872
+ maxLength = _a.maxLength,
873
+ inputMode = _a.inputMode,
874
+ restProps = __rest(_a, ["disabled", "invalid", "readOnly", "required", "className", "type", "maxLength", "inputMode"]);
875
+
876
+ return jsx("input", Object.assign({}, restProps, {
877
+ ref: ref,
878
+ type: type,
879
+ 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),
880
+ maxLength: maxLength,
881
+ disabled: disabled,
882
+ readOnly: readOnly,
883
+ required: required,
884
+ "aria-invalid": invalid || undefined,
885
+ inputMode: inputMode || (type === 'number' ? 'numeric' : undefined)
886
+ }));
887
+ });
888
+ Textbox.displayName = 'Textbox';
889
+
890
+ var URLValue = /*#__PURE__*/forwardRef(function (_a, ref) {
891
+ var children = _a.children,
892
+ className = _a.className,
893
+ restProps = __rest(_a, ["children", "className"]);
894
+
895
+ return jsx("bdi", Object.assign({
896
+ translate: "no"
897
+ }, restProps, {
898
+ ref: ref,
899
+ className: clsx('utrecht-url', className)
900
+ }, {
901
+ children: children
902
+ }));
903
+ });
904
+ URLValue.displayName = 'URLValue';
905
+
906
+ var UnorderedList = /*#__PURE__*/forwardRef(function (_a, ref) {
907
+ var children = _a.children,
908
+ className = _a.className,
909
+ restProps = __rest(_a, ["children", "className"]);
910
+
911
+ return jsx("ul", Object.assign({}, restProps, {
912
+ ref: ref,
913
+ className: clsx('utrecht-unordered-list', className)
914
+ }, {
915
+ children: children
916
+ }));
917
+ });
918
+ UnorderedList.displayName = 'UnorderedList';
919
+
920
+ var UnorderedListItem = /*#__PURE__*/forwardRef(function (_a, ref) {
921
+ var children = _a.children,
922
+ className = _a.className,
923
+ restProps = __rest(_a, ["children", "className"]);
924
+
925
+ return jsx("li", Object.assign({}, restProps, {
926
+ ref: ref,
927
+ className: clsx('utrecht-unordered-list__item', className)
928
+ }, {
929
+ children: children
930
+ }));
931
+ });
932
+ UnorderedListItem.displayName = 'UnorderedListItem';
933
+
934
+ export { Article, Backdrop, Button, ButtonLink, Checkbox, CustomRadioButton, DataList, DataListActions, DataListItem, DataListKey, DataListValue, Document, Fieldset, FieldsetLegend, FormField, FormFieldDescription, FormLabel, HTMLContent, Heading1, Heading2, Heading3, Heading4, Heading5, Heading6, HeadingGroup, Image, Link, LinkButton, NumberValue, OrderedList, OrderedListItem, Page, PageContent, PageFooter, PageHeader, Paragraph, PreHeading, PrimaryActionButton, RadioButton, SecondaryActionButton, Select, SelectOption, Separator, SkipLink, SubtleButton, Surface, Table, TableBody, TableCaption, TableCell, TableFooter, TableHeader, TableHeaderCell, TableRow, Textarea, Textbox, URLValue, UnorderedList, UnorderedListItem };
935
+ //# sourceMappingURL=index.esm.js.map