@utrecht/component-library-react 1.0.0-alpha.13 → 1.0.0-alpha.130

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