@utrecht/component-library-react 1.0.0-alpha.13 → 1.0.0-alpha.132
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.
- package/README.md +27 -3
- package/dist/{cjs/Article.d.ts → Article.d.ts} +9 -7
- package/dist/{cjs/Backdrop.d.ts → Backdrop.d.ts} +9 -7
- package/dist/Button.d.ts +26 -0
- package/dist/ButtonLink.d.ts +14 -0
- package/dist/{cjs/Checkbox.d.ts → Checkbox.d.ts} +5 -5
- package/dist/CustomRadioButton.d.ts +13 -0
- package/dist/DataList.d.ts +28 -0
- package/dist/{cjs/Document.d.ts → Document.d.ts} +9 -7
- package/dist/{cjs/Fieldset.d.ts → Fieldset.d.ts} +5 -3
- package/dist/{cjs/FieldsetLegend.d.ts → FieldsetLegend.d.ts} +5 -3
- package/dist/{cjs/FormField.d.ts → FormField.d.ts} +5 -3
- package/dist/{cjs/FormFieldDescription.d.ts → FormFieldDescription.d.ts} +9 -7
- package/dist/{cjs/FormLabel.d.ts → FormLabel.d.ts} +10 -8
- package/dist/{cjs/HTMLContent.d.ts → HTMLContent.d.ts} +9 -7
- package/dist/{cjs/Heading1.d.ts → Heading1.d.ts} +9 -7
- package/dist/{cjs/Heading2.d.ts → Heading2.d.ts} +9 -7
- package/dist/{cjs/Heading3.d.ts → Heading3.d.ts} +9 -7
- package/dist/{cjs/Heading4.d.ts → Heading4.d.ts} +9 -7
- package/dist/{cjs/Heading5.d.ts → Heading5.d.ts} +9 -7
- package/dist/{cjs/Heading6.d.ts → Heading6.d.ts} +9 -7
- package/dist/HeadingGroup.d.ts +10 -0
- package/dist/Image.d.ts +9 -0
- package/dist/{cjs/Link.d.ts → Link.d.ts} +13 -15
- package/dist/LinkButton.d.ts +12 -0
- package/dist/NumberValue.d.ts +11 -0
- package/dist/{cjs/OrderedList.d.ts → OrderedList.d.ts} +9 -7
- package/dist/{cjs/OrderedListItem.d.ts → OrderedListItem.d.ts} +9 -7
- package/dist/{cjs/Page.d.ts → Page.d.ts} +9 -7
- package/dist/{cjs/PageContent.d.ts → PageContent.d.ts} +13 -9
- package/dist/{cjs/PageFooter.d.ts → PageFooter.d.ts} +9 -7
- package/dist/{cjs/PageHeader.d.ts → PageHeader.d.ts} +9 -7
- package/dist/{cjs/Paragraph.d.ts → Paragraph.d.ts} +11 -9
- package/dist/PreHeading.d.ts +10 -0
- package/dist/{cjs/RadioButton.d.ts → RadioButton.d.ts} +5 -5
- package/dist/{cjs/Select.d.ts → Select.d.ts} +19 -11
- package/dist/{cjs/Separator.d.ts → Separator.d.ts} +7 -7
- package/dist/SkipLink.d.ts +6 -0
- package/dist/{cjs/Surface.d.ts → Surface.d.ts} +9 -7
- package/dist/{cjs/Table.d.ts → Table.d.ts} +9 -7
- package/dist/{cjs/TableBody.d.ts → TableBody.d.ts} +9 -7
- package/dist/{cjs/TableCaption.d.ts → TableCaption.d.ts} +9 -7
- package/dist/{cjs/TableCell.d.ts → TableCell.d.ts} +9 -7
- package/dist/{cjs/TableFooter.d.ts → TableFooter.d.ts} +9 -7
- package/dist/{cjs/TableHeader.d.ts → TableHeader.d.ts} +9 -7
- package/dist/{cjs/TableHeaderCell.d.ts → TableHeaderCell.d.ts} +9 -7
- package/dist/{cjs/TableRow.d.ts → TableRow.d.ts} +9 -7
- package/dist/{cjs/Textarea.d.ts → Textarea.d.ts} +5 -5
- package/dist/{cjs/Textbox.d.ts → Textbox.d.ts} +7 -7
- package/dist/{cjs/URLValue.d.ts → URLValue.d.ts} +9 -7
- package/dist/{cjs/UnorderedList.d.ts → UnorderedList.d.ts} +9 -7
- package/dist/{cjs/UnorderedListItem.d.ts → UnorderedListItem.d.ts} +9 -7
- package/dist/index.cjs.js +1000 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/{cjs/index.d.ts → index.d.ts} +55 -46
- package/dist/index.esm.js +934 -0
- package/dist/index.esm.js.map +1 -0
- package/package.json +40 -192
- package/dist/cjs/Article.js +0 -29
- package/dist/cjs/Backdrop.js +0 -29
- package/dist/cjs/Button.d.ts +0 -5
- package/dist/cjs/Button.js +0 -25
- package/dist/cjs/Checkbox.js +0 -25
- package/dist/cjs/Document.js +0 -29
- package/dist/cjs/Fieldset.js +0 -25
- package/dist/cjs/FieldsetLegend.js +0 -25
- package/dist/cjs/FormField.js +0 -25
- package/dist/cjs/FormFieldDescription.js +0 -25
- package/dist/cjs/FormLabel.js +0 -25
- package/dist/cjs/HTMLContent.js +0 -29
- package/dist/cjs/Heading1.js +0 -29
- package/dist/cjs/Heading2.js +0 -29
- package/dist/cjs/Heading3.js +0 -29
- package/dist/cjs/Heading4.js +0 -29
- package/dist/cjs/Heading5.js +0 -29
- package/dist/cjs/Heading6.js +0 -29
- package/dist/cjs/Link.js +0 -42
- package/dist/cjs/OrderedList.js +0 -29
- package/dist/cjs/OrderedListItem.js +0 -29
- package/dist/cjs/Page.js +0 -29
- package/dist/cjs/PageContent.js +0 -34
- package/dist/cjs/PageFooter.js +0 -29
- package/dist/cjs/PageHeader.js +0 -29
- package/dist/cjs/Paragraph.js +0 -29
- package/dist/cjs/RadioButton.js +0 -25
- package/dist/cjs/Select.js +0 -31
- package/dist/cjs/Separator.js +0 -30
- package/dist/cjs/Surface.js +0 -29
- package/dist/cjs/Table.js +0 -29
- package/dist/cjs/TableBody.js +0 -29
- package/dist/cjs/TableCaption.js +0 -29
- package/dist/cjs/TableCell.js +0 -29
- package/dist/cjs/TableFooter.js +0 -29
- package/dist/cjs/TableHeader.js +0 -29
- package/dist/cjs/TableHeaderCell.js +0 -29
- package/dist/cjs/TableRow.js +0 -29
- package/dist/cjs/Textarea.js +0 -25
- package/dist/cjs/Textbox.js +0 -25
- package/dist/cjs/URLValue.js +0 -29
- package/dist/cjs/UnorderedList.js +0 -29
- package/dist/cjs/UnorderedListItem.js +0 -29
- package/dist/cjs/index.js +0 -92
- package/dist/cjs/tsconfig.tsbuildinfo +0 -2533
|
@@ -0,0 +1,934 @@
|
|
|
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 HeadingGroup = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
426
|
+
var children = _a.children,
|
|
427
|
+
className = _a.className,
|
|
428
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
429
|
+
|
|
430
|
+
return jsx("hgroup", Object.assign({}, restProps, {
|
|
431
|
+
ref: ref,
|
|
432
|
+
className: clsx('utrecht-heading-group', className)
|
|
433
|
+
}, {
|
|
434
|
+
children: children
|
|
435
|
+
}));
|
|
436
|
+
});
|
|
437
|
+
HeadingGroup.displayName = 'HeadingGroup';
|
|
438
|
+
|
|
439
|
+
var Image = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
440
|
+
var className = _a.className,
|
|
441
|
+
photo = _a.photo,
|
|
442
|
+
restProps = __rest(_a, ["className", "photo"]);
|
|
443
|
+
|
|
444
|
+
return jsx("img", Object.assign({}, restProps, {
|
|
445
|
+
ref: ref,
|
|
446
|
+
className: clsx('utrecht-img', {
|
|
447
|
+
'utrecht-img--photo': photo
|
|
448
|
+
}, className)
|
|
449
|
+
}));
|
|
450
|
+
});
|
|
451
|
+
Image.displayName = 'Image';
|
|
452
|
+
|
|
453
|
+
var Link = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
454
|
+
var boxContent = _a.boxContent,
|
|
455
|
+
children = _a.children,
|
|
456
|
+
className = _a.className,
|
|
457
|
+
external = _a.external,
|
|
458
|
+
restProps = __rest(_a, ["boxContent", "children", "className", "external"]);
|
|
459
|
+
|
|
460
|
+
return (// "utrecht-link--telephone" does not have a corresponding API,
|
|
461
|
+
// since it is primarily a basis for implementing input[href^="tel"].
|
|
462
|
+
// Telephone number rendering in React is best achieved using composition
|
|
463
|
+
// of the TelephoneValue component.
|
|
464
|
+
jsx("a", Object.assign({}, restProps, {
|
|
465
|
+
ref: ref,
|
|
466
|
+
className: clsx('utrecht-link', {
|
|
467
|
+
'utrecht-link--box-content': boxContent,
|
|
468
|
+
'utrecht-link--external': external
|
|
469
|
+
}, className),
|
|
470
|
+
rel: external ? 'external noopener noreferrer' : undefined
|
|
471
|
+
}, {
|
|
472
|
+
children: children
|
|
473
|
+
}))
|
|
474
|
+
);
|
|
475
|
+
});
|
|
476
|
+
Link.displayName = 'Link';
|
|
477
|
+
|
|
478
|
+
var LinkButton = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
479
|
+
var children = _a.children,
|
|
480
|
+
inline = _a.inline,
|
|
481
|
+
className = _a.className,
|
|
482
|
+
restProps = __rest(_a, ["children", "inline", "className"]);
|
|
483
|
+
|
|
484
|
+
return jsx("button", Object.assign({}, restProps, {
|
|
485
|
+
ref: ref,
|
|
486
|
+
className: clsx('utrecht-link-button', 'utrecht-link-button--html-button', {
|
|
487
|
+
'utrecht-link-button--inline': inline
|
|
488
|
+
}, className)
|
|
489
|
+
}, {
|
|
490
|
+
children: children
|
|
491
|
+
}));
|
|
492
|
+
});
|
|
493
|
+
LinkButton.displayName = 'LinkButton';
|
|
494
|
+
|
|
495
|
+
var NumberValue = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
496
|
+
var children = _a.children,
|
|
497
|
+
className = _a.className,
|
|
498
|
+
value = _a.value,
|
|
499
|
+
restProps = __rest(_a, ["children", "className", "value"]);
|
|
500
|
+
|
|
501
|
+
return jsx("data", Object.assign({
|
|
502
|
+
value: typeof value === 'string' || typeof value === 'number' ? String(value) : undefined
|
|
503
|
+
}, restProps, {
|
|
504
|
+
ref: ref,
|
|
505
|
+
className: clsx('utrecht-value-number', className)
|
|
506
|
+
}, {
|
|
507
|
+
children: children
|
|
508
|
+
}));
|
|
509
|
+
});
|
|
510
|
+
NumberValue.displayName = 'NumberValue';
|
|
511
|
+
|
|
512
|
+
var OrderedList = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
513
|
+
var children = _a.children,
|
|
514
|
+
className = _a.className,
|
|
515
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
516
|
+
|
|
517
|
+
return jsx("ol", Object.assign({}, restProps, {
|
|
518
|
+
ref: ref,
|
|
519
|
+
className: clsx('utrecht-ordered-list', className)
|
|
520
|
+
}, {
|
|
521
|
+
children: children
|
|
522
|
+
}));
|
|
523
|
+
});
|
|
524
|
+
OrderedList.displayName = 'OrderedList';
|
|
525
|
+
|
|
526
|
+
var OrderedListItem = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
527
|
+
var children = _a.children,
|
|
528
|
+
className = _a.className,
|
|
529
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
530
|
+
|
|
531
|
+
return jsx("li", Object.assign({}, restProps, {
|
|
532
|
+
ref: ref,
|
|
533
|
+
className: clsx('utrecht-ordered-list__item', className)
|
|
534
|
+
}, {
|
|
535
|
+
children: children
|
|
536
|
+
}));
|
|
537
|
+
});
|
|
538
|
+
OrderedListItem.displayName = 'OrderedListItem';
|
|
539
|
+
|
|
540
|
+
var Page = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
541
|
+
var children = _a.children,
|
|
542
|
+
className = _a.className,
|
|
543
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
544
|
+
|
|
545
|
+
return jsx("div", Object.assign({}, restProps, {
|
|
546
|
+
ref: ref,
|
|
547
|
+
className: clsx('utrecht-page', className)
|
|
548
|
+
}, {
|
|
549
|
+
children: children
|
|
550
|
+
}));
|
|
551
|
+
});
|
|
552
|
+
Page.displayName = 'Page';
|
|
553
|
+
|
|
554
|
+
var PageContent = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
555
|
+
var children = _a.children,
|
|
556
|
+
className = _a.className,
|
|
557
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
558
|
+
|
|
559
|
+
return jsx("div", Object.assign({}, restProps, {
|
|
560
|
+
ref: ref,
|
|
561
|
+
className: clsx('utrecht-page-content', className)
|
|
562
|
+
}, {
|
|
563
|
+
children: children
|
|
564
|
+
}));
|
|
565
|
+
});
|
|
566
|
+
PageContent.displayName = 'PageContent';
|
|
567
|
+
var PageContentMain = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
568
|
+
var children = _a.children,
|
|
569
|
+
className = _a.className,
|
|
570
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
571
|
+
|
|
572
|
+
return jsx("main", Object.assign({}, restProps, {
|
|
573
|
+
ref: ref,
|
|
574
|
+
className: clsx('utrecht-page-content__main', className)
|
|
575
|
+
}, {
|
|
576
|
+
children: children
|
|
577
|
+
}));
|
|
578
|
+
});
|
|
579
|
+
PageContentMain.displayName = 'PageContentMain';
|
|
580
|
+
|
|
581
|
+
var PageFooter = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
582
|
+
var children = _a.children,
|
|
583
|
+
className = _a.className,
|
|
584
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
585
|
+
|
|
586
|
+
return jsx("footer", Object.assign({}, restProps, {
|
|
587
|
+
ref: ref,
|
|
588
|
+
className: clsx('utrecht-page-footer', className)
|
|
589
|
+
}, {
|
|
590
|
+
children: children
|
|
591
|
+
}));
|
|
592
|
+
});
|
|
593
|
+
PageFooter.displayName = 'PageFooter';
|
|
594
|
+
|
|
595
|
+
var PageHeader = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
596
|
+
var children = _a.children,
|
|
597
|
+
className = _a.className,
|
|
598
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
599
|
+
|
|
600
|
+
return jsx("header", Object.assign({}, restProps, {
|
|
601
|
+
ref: ref,
|
|
602
|
+
className: clsx('utrecht-page-header', className)
|
|
603
|
+
}, {
|
|
604
|
+
children: children
|
|
605
|
+
}));
|
|
606
|
+
});
|
|
607
|
+
PageHeader.displayName = 'PageHeader';
|
|
608
|
+
|
|
609
|
+
var Paragraph = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
610
|
+
var children = _a.children,
|
|
611
|
+
className = _a.className,
|
|
612
|
+
lead = _a.lead,
|
|
613
|
+
restProps = __rest(_a, ["children", "className", "lead"]);
|
|
614
|
+
|
|
615
|
+
return jsx("p", Object.assign({}, restProps, {
|
|
616
|
+
ref: ref,
|
|
617
|
+
className: clsx('utrecht-paragraph', lead && 'utrecht-paragraph--lead', className)
|
|
618
|
+
}, {
|
|
619
|
+
children: children
|
|
620
|
+
}));
|
|
621
|
+
});
|
|
622
|
+
Paragraph.displayName = 'Paragraph';
|
|
623
|
+
|
|
624
|
+
var PreHeading = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
625
|
+
var children = _a.children,
|
|
626
|
+
className = _a.className,
|
|
627
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
628
|
+
|
|
629
|
+
return jsx("p", Object.assign({}, restProps, {
|
|
630
|
+
ref: ref,
|
|
631
|
+
className: clsx('utrecht-pre-heading', className)
|
|
632
|
+
}, {
|
|
633
|
+
children: children
|
|
634
|
+
}));
|
|
635
|
+
});
|
|
636
|
+
PreHeading.displayName = 'PreHeading';
|
|
637
|
+
|
|
638
|
+
var RadioButton = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
639
|
+
var invalid = _a.invalid,
|
|
640
|
+
className = _a.className,
|
|
641
|
+
restProps = __rest(_a, ["invalid", "className"]);
|
|
642
|
+
|
|
643
|
+
return jsx("input", Object.assign({}, restProps, {
|
|
644
|
+
ref: ref,
|
|
645
|
+
type: "radio",
|
|
646
|
+
className: clsx('utrecht-radio-button', 'utrecht-radio-button--html-input', invalid && 'utrecht-radio-button--invalid', className)
|
|
647
|
+
}));
|
|
648
|
+
});
|
|
649
|
+
RadioButton.displayName = 'RadioButton';
|
|
650
|
+
|
|
651
|
+
var Select = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
652
|
+
var invalid = _a.invalid,
|
|
653
|
+
required = _a.required,
|
|
654
|
+
className = _a.className,
|
|
655
|
+
noscript = _a.noscript,
|
|
656
|
+
children = _a.children,
|
|
657
|
+
restProps = __rest(_a, ["invalid", "required", "className", "noscript", "children"]);
|
|
658
|
+
|
|
659
|
+
return jsx("select", Object.assign({}, restProps, {
|
|
660
|
+
ref: ref,
|
|
661
|
+
"aria-invalid": invalid || undefined,
|
|
662
|
+
required: noscript ? required : false,
|
|
663
|
+
"aria-required": noscript ? undefined : required,
|
|
664
|
+
className: clsx('utrecht-select', 'utrecht-select--html-select', invalid && 'utrecht-select--invalid', required && 'utrecht-select--required', className)
|
|
665
|
+
}, {
|
|
666
|
+
children: children
|
|
667
|
+
}));
|
|
668
|
+
});
|
|
669
|
+
Select.displayName = 'Select';
|
|
670
|
+
var SelectOption = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
671
|
+
var disabled = _a.disabled,
|
|
672
|
+
invalid = _a.invalid,
|
|
673
|
+
value = _a.value,
|
|
674
|
+
children = _a.children,
|
|
675
|
+
className = _a.className,
|
|
676
|
+
restProps = __rest(_a, ["disabled", "invalid", "value", "children", "className"]);
|
|
677
|
+
|
|
678
|
+
return jsx("option", Object.assign({}, restProps, {
|
|
679
|
+
ref: ref,
|
|
680
|
+
disabled: disabled,
|
|
681
|
+
value: value,
|
|
682
|
+
className: clsx('utrecht-select__option', disabled && 'utrecht-select__option--disabled', invalid && 'utrecht-select__option--invalid', className)
|
|
683
|
+
}, {
|
|
684
|
+
children: children
|
|
685
|
+
}));
|
|
686
|
+
});
|
|
687
|
+
SelectOption.displayName = 'SelectOption';
|
|
688
|
+
|
|
689
|
+
var Separator = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
690
|
+
var className = _a.className;
|
|
691
|
+
_a.children;
|
|
692
|
+
var restProps = __rest(_a, ["className", "children"]);
|
|
693
|
+
|
|
694
|
+
return jsx("hr", Object.assign({}, restProps, {
|
|
695
|
+
ref: ref,
|
|
696
|
+
className: clsx('utrecht-separator', className)
|
|
697
|
+
}));
|
|
698
|
+
});
|
|
699
|
+
Separator.displayName = 'Separator';
|
|
700
|
+
|
|
701
|
+
var SkipLink = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
702
|
+
var children = _a.children,
|
|
703
|
+
className = _a.className,
|
|
704
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
705
|
+
|
|
706
|
+
return jsx("p", {
|
|
707
|
+
children: jsx("a", Object.assign({
|
|
708
|
+
ref: ref
|
|
709
|
+
}, restProps, {
|
|
710
|
+
className: clsx('utrecht-skip-link', 'utrecht-skip-link--visible-on-focus', className)
|
|
711
|
+
}, {
|
|
712
|
+
children: children
|
|
713
|
+
}))
|
|
714
|
+
});
|
|
715
|
+
});
|
|
716
|
+
SkipLink.displayName = 'SkipLink';
|
|
717
|
+
|
|
718
|
+
var Surface = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
719
|
+
var children = _a.children,
|
|
720
|
+
className = _a.className,
|
|
721
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
722
|
+
|
|
723
|
+
return jsx("div", Object.assign({}, restProps, {
|
|
724
|
+
ref: ref,
|
|
725
|
+
className: clsx('utrecht-surface', className)
|
|
726
|
+
}, {
|
|
727
|
+
children: children
|
|
728
|
+
}));
|
|
729
|
+
});
|
|
730
|
+
Surface.displayName = 'Surface';
|
|
731
|
+
|
|
732
|
+
var Table = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
733
|
+
var children = _a.children,
|
|
734
|
+
className = _a.className,
|
|
735
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
736
|
+
|
|
737
|
+
return jsx("table", Object.assign({}, restProps, {
|
|
738
|
+
ref: ref,
|
|
739
|
+
className: clsx('utrecht-table', className)
|
|
740
|
+
}, {
|
|
741
|
+
children: children
|
|
742
|
+
}));
|
|
743
|
+
});
|
|
744
|
+
Table.displayName = 'Table';
|
|
745
|
+
|
|
746
|
+
var TableBody = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
747
|
+
var children = _a.children,
|
|
748
|
+
className = _a.className,
|
|
749
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
750
|
+
|
|
751
|
+
return jsx("tbody", Object.assign({}, restProps, {
|
|
752
|
+
ref: ref,
|
|
753
|
+
className: clsx('utrecht-table__body', className)
|
|
754
|
+
}, {
|
|
755
|
+
children: children
|
|
756
|
+
}));
|
|
757
|
+
});
|
|
758
|
+
TableBody.displayName = 'TableBody';
|
|
759
|
+
|
|
760
|
+
var TableCaption = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
761
|
+
var children = _a.children,
|
|
762
|
+
className = _a.className,
|
|
763
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
764
|
+
|
|
765
|
+
return jsx("caption", Object.assign({}, restProps, {
|
|
766
|
+
ref: ref,
|
|
767
|
+
className: clsx('utrecht-table__caption', className)
|
|
768
|
+
}, {
|
|
769
|
+
children: children
|
|
770
|
+
}));
|
|
771
|
+
});
|
|
772
|
+
TableCaption.displayName = 'TableCaption';
|
|
773
|
+
|
|
774
|
+
var TableCell = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
775
|
+
var children = _a.children,
|
|
776
|
+
className = _a.className,
|
|
777
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
778
|
+
|
|
779
|
+
return jsx("td", Object.assign({}, restProps, {
|
|
780
|
+
ref: ref,
|
|
781
|
+
className: clsx('utrecht-table__cell', className)
|
|
782
|
+
}, {
|
|
783
|
+
children: children
|
|
784
|
+
}));
|
|
785
|
+
});
|
|
786
|
+
TableCell.displayName = 'TableCell';
|
|
787
|
+
|
|
788
|
+
var TableFooter = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
789
|
+
var children = _a.children,
|
|
790
|
+
className = _a.className,
|
|
791
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
792
|
+
|
|
793
|
+
return jsx("tfoot", Object.assign({}, restProps, {
|
|
794
|
+
ref: ref,
|
|
795
|
+
className: clsx('utrecht-table__footer', className)
|
|
796
|
+
}, {
|
|
797
|
+
children: children
|
|
798
|
+
}));
|
|
799
|
+
});
|
|
800
|
+
TableFooter.displayName = 'TableFooter';
|
|
801
|
+
|
|
802
|
+
var TableHeader = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
803
|
+
var children = _a.children,
|
|
804
|
+
className = _a.className,
|
|
805
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
806
|
+
|
|
807
|
+
return jsx("thead", Object.assign({}, restProps, {
|
|
808
|
+
ref: ref,
|
|
809
|
+
className: clsx('utrecht-table__header', className)
|
|
810
|
+
}, {
|
|
811
|
+
children: children
|
|
812
|
+
}));
|
|
813
|
+
});
|
|
814
|
+
TableHeader.displayName = 'TableHeader';
|
|
815
|
+
|
|
816
|
+
var TableHeaderCell = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
817
|
+
var children = _a.children,
|
|
818
|
+
className = _a.className,
|
|
819
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
820
|
+
|
|
821
|
+
return jsx("th", Object.assign({}, restProps, {
|
|
822
|
+
ref: ref,
|
|
823
|
+
className: clsx('utrecht-table__header-cell', className)
|
|
824
|
+
}, {
|
|
825
|
+
children: children
|
|
826
|
+
}));
|
|
827
|
+
});
|
|
828
|
+
TableHeaderCell.displayName = 'TableHeaderCell';
|
|
829
|
+
|
|
830
|
+
var TableRow = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
831
|
+
var children = _a.children,
|
|
832
|
+
className = _a.className,
|
|
833
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
834
|
+
|
|
835
|
+
return jsx("tr", Object.assign({}, restProps, {
|
|
836
|
+
ref: ref,
|
|
837
|
+
className: clsx('utrecht-table__row', className)
|
|
838
|
+
}, {
|
|
839
|
+
children: children
|
|
840
|
+
}));
|
|
841
|
+
});
|
|
842
|
+
TableRow.displayName = 'TableRow';
|
|
843
|
+
|
|
844
|
+
var Textarea = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
845
|
+
var disabled = _a.disabled,
|
|
846
|
+
invalid = _a.invalid,
|
|
847
|
+
readOnly = _a.readOnly,
|
|
848
|
+
required = _a.required,
|
|
849
|
+
className = _a.className,
|
|
850
|
+
restProps = __rest(_a, ["disabled", "invalid", "readOnly", "required", "className"]);
|
|
851
|
+
|
|
852
|
+
return jsx("textarea", Object.assign({}, restProps, {
|
|
853
|
+
ref: ref,
|
|
854
|
+
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),
|
|
855
|
+
disabled: disabled,
|
|
856
|
+
readOnly: readOnly,
|
|
857
|
+
required: required,
|
|
858
|
+
"aria-invalid": invalid || undefined
|
|
859
|
+
}));
|
|
860
|
+
});
|
|
861
|
+
Textarea.displayName = 'Textarea';
|
|
862
|
+
|
|
863
|
+
var Textbox = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
864
|
+
var disabled = _a.disabled,
|
|
865
|
+
invalid = _a.invalid,
|
|
866
|
+
readOnly = _a.readOnly,
|
|
867
|
+
required = _a.required,
|
|
868
|
+
className = _a.className,
|
|
869
|
+
_a$type = _a.type,
|
|
870
|
+
type = _a$type === void 0 ? 'text' : _a$type,
|
|
871
|
+
maxLength = _a.maxLength,
|
|
872
|
+
inputMode = _a.inputMode,
|
|
873
|
+
restProps = __rest(_a, ["disabled", "invalid", "readOnly", "required", "className", "type", "maxLength", "inputMode"]);
|
|
874
|
+
|
|
875
|
+
return jsx("input", Object.assign({}, restProps, {
|
|
876
|
+
ref: ref,
|
|
877
|
+
type: type,
|
|
878
|
+
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),
|
|
879
|
+
maxLength: maxLength,
|
|
880
|
+
disabled: disabled,
|
|
881
|
+
readOnly: readOnly,
|
|
882
|
+
required: required,
|
|
883
|
+
"aria-invalid": invalid || undefined,
|
|
884
|
+
inputMode: inputMode || (type === 'number' ? 'numeric' : undefined)
|
|
885
|
+
}));
|
|
886
|
+
});
|
|
887
|
+
Textbox.displayName = 'Textbox';
|
|
888
|
+
|
|
889
|
+
var URLValue = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
890
|
+
var children = _a.children,
|
|
891
|
+
className = _a.className,
|
|
892
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
893
|
+
|
|
894
|
+
return jsx("bdi", Object.assign({
|
|
895
|
+
translate: "no"
|
|
896
|
+
}, restProps, {
|
|
897
|
+
ref: ref,
|
|
898
|
+
className: clsx('utrecht-url', className)
|
|
899
|
+
}, {
|
|
900
|
+
children: children
|
|
901
|
+
}));
|
|
902
|
+
});
|
|
903
|
+
URLValue.displayName = 'URLValue';
|
|
904
|
+
|
|
905
|
+
var UnorderedList = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
906
|
+
var children = _a.children,
|
|
907
|
+
className = _a.className,
|
|
908
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
909
|
+
|
|
910
|
+
return jsx("ul", Object.assign({}, restProps, {
|
|
911
|
+
ref: ref,
|
|
912
|
+
className: clsx('utrecht-unordered-list', className)
|
|
913
|
+
}, {
|
|
914
|
+
children: children
|
|
915
|
+
}));
|
|
916
|
+
});
|
|
917
|
+
UnorderedList.displayName = 'UnorderedList';
|
|
918
|
+
|
|
919
|
+
var UnorderedListItem = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
920
|
+
var children = _a.children,
|
|
921
|
+
className = _a.className,
|
|
922
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
923
|
+
|
|
924
|
+
return jsx("li", Object.assign({}, restProps, {
|
|
925
|
+
ref: ref,
|
|
926
|
+
className: clsx('utrecht-unordered-list__item', className)
|
|
927
|
+
}, {
|
|
928
|
+
children: children
|
|
929
|
+
}));
|
|
930
|
+
});
|
|
931
|
+
UnorderedListItem.displayName = 'UnorderedListItem';
|
|
932
|
+
|
|
933
|
+
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 };
|
|
934
|
+
//# sourceMappingURL=index.esm.js.map
|