@utrecht/component-library-react 1.0.0-alpha.210 → 1.0.0-alpha.212
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/dist/.jest-test-results.json +1 -0
- package/dist/css-module/index.js +237 -316
- package/dist/css-module/index.js.map +1 -1
- package/dist/css-module/index.mjs +237 -316
- package/dist/css-module/index.mjs.map +1 -1
- package/dist/index.cjs.js +282 -380
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +283 -381
- package/dist/index.esm.js.map +1 -1
- package/package.json +21 -18
package/dist/index.esm.js
CHANGED
|
@@ -3,17 +3,16 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import clsx, { clsx as clsx$1 } from 'clsx';
|
|
4
4
|
import { forwardRef, useId, useState } from 'react';
|
|
5
5
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
6
|
-
import {
|
|
6
|
+
import { startOfWeek, endOfWeek, eachDayOfInterval, isSameDay, endOfDay, parseISO, setYear, getYear, addYears, setMonth, addMonths, format, isSameMonth, setDate, formatISO, startOfMonth, addWeeks } from 'date-fns';
|
|
7
7
|
import { enUS } from 'date-fns/locale';
|
|
8
8
|
import chunk from 'lodash.chunk';
|
|
9
9
|
|
|
10
10
|
var Alert = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
11
11
|
var children = _a.children,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
className = _a.className,
|
|
13
|
+
icon = _a.icon,
|
|
14
|
+
type = _a.type,
|
|
15
|
+
restProps = __rest(_a, ["children", "className", "icon", "type"]);
|
|
17
16
|
return jsxs("div", Object.assign({}, restProps, {
|
|
18
17
|
ref: ref,
|
|
19
18
|
className: clsx('utrecht-alert', {
|
|
@@ -38,11 +37,10 @@ Alert.displayName = 'Alert';
|
|
|
38
37
|
|
|
39
38
|
var AlertDialog = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
40
39
|
var children = _a.children,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
className = _a.className,
|
|
41
|
+
icon = _a.icon,
|
|
42
|
+
type = _a.type,
|
|
43
|
+
restProps = __rest(_a, ["children", "className", "icon", "type"]);
|
|
46
44
|
return jsxs("dialog", Object.assign({}, restProps, {
|
|
47
45
|
ref: ref,
|
|
48
46
|
className: clsx('utrecht-alert-dialog', {
|
|
@@ -67,9 +65,8 @@ AlertDialog.displayName = 'AlertDialog';
|
|
|
67
65
|
|
|
68
66
|
var Article = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
69
67
|
var children = _a.children,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
68
|
+
className = _a.className,
|
|
69
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
73
70
|
return jsx("article", Object.assign({}, restProps, {
|
|
74
71
|
ref: ref,
|
|
75
72
|
className: clsx('utrecht-article', className)
|
|
@@ -81,9 +78,8 @@ Article.displayName = 'Article';
|
|
|
81
78
|
|
|
82
79
|
var Backdrop = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
83
80
|
var children = _a.children,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
81
|
+
className = _a.className,
|
|
82
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
87
83
|
return jsx("div", Object.assign({}, restProps, {
|
|
88
84
|
ref: ref,
|
|
89
85
|
className: clsx('utrecht-backdrop', className)
|
|
@@ -95,10 +91,9 @@ Backdrop.displayName = 'Backdrop';
|
|
|
95
91
|
|
|
96
92
|
var Heading = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
97
93
|
var appearance = _a.appearance,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
94
|
+
className = _a.className,
|
|
95
|
+
level = _a.level,
|
|
96
|
+
restProps = __rest(_a, ["appearance", "className", "level"]);
|
|
102
97
|
var appearances = ['utrecht-heading-1', 'utrecht-heading-2', 'utrecht-heading-3', 'utrecht-heading-4', 'utrecht-heading-5', 'utrecht-heading-6'];
|
|
103
98
|
var HeadingX = level === 2 ? 'h2' : level === 3 ? 'h3' : level === 4 ? 'h4' : level === 5 ? 'h5' : level === 6 ? 'h6' : 'h1';
|
|
104
99
|
var headingClassName = appearance && appearances.indexOf(appearance) !== -1 ? appearance : appearances[level - 1] || 'utrecht-heading-1';
|
|
@@ -112,15 +107,15 @@ Heading.displayName = 'Heading';
|
|
|
112
107
|
|
|
113
108
|
var Link = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
114
109
|
var boxContent = _a.boxContent,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
110
|
+
children = _a.children,
|
|
111
|
+
className = _a.className,
|
|
112
|
+
external = _a.external,
|
|
113
|
+
href = _a.href,
|
|
114
|
+
placeholder = _a.placeholder,
|
|
115
|
+
role = _a.role,
|
|
116
|
+
restProps = __rest(_a, ["boxContent", "children", "className", "external", "href", "placeholder", "role"]);
|
|
117
|
+
return (
|
|
118
|
+
// "utrecht-link--telephone" does not have a corresponding API,
|
|
124
119
|
// since it is primarily a basis for implementing input[href^="tel"].
|
|
125
120
|
// Telephone number rendering in React is best achieved using composition
|
|
126
121
|
// of the TelephoneValue component.
|
|
@@ -144,29 +139,26 @@ Link.displayName = 'Link';
|
|
|
144
139
|
|
|
145
140
|
var useMicrodataItem = function useMicrodataItem(_ref) {
|
|
146
141
|
var prop = _ref.prop,
|
|
147
|
-
|
|
142
|
+
type = _ref.type;
|
|
148
143
|
return {
|
|
149
144
|
itemScope: true,
|
|
150
145
|
itemType: type,
|
|
151
146
|
itemProp: prop
|
|
152
147
|
};
|
|
153
148
|
};
|
|
154
|
-
|
|
155
149
|
var useMicrodataProp = function useMicrodataProp(prop) {
|
|
156
150
|
return {
|
|
157
151
|
itemProp: prop
|
|
158
152
|
};
|
|
159
153
|
};
|
|
160
|
-
|
|
161
154
|
var BreadcrumbNav = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
162
155
|
var appearance = _a.appearance,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
156
|
+
children = _a.children,
|
|
157
|
+
className = _a.className,
|
|
158
|
+
_a$headingLevel = _a.headingLevel,
|
|
159
|
+
headingLevel = _a$headingLevel === void 0 ? 2 : _a$headingLevel,
|
|
160
|
+
label = _a.label,
|
|
161
|
+
restProps = __rest(_a, ["appearance", "children", "className", "headingLevel", "label"]);
|
|
170
162
|
var headingId = label ? useId() : undefined;
|
|
171
163
|
return jsxs("nav", Object.assign({}, restProps, {
|
|
172
164
|
ref: ref,
|
|
@@ -194,10 +186,10 @@ var BreadcrumbNav = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
194
186
|
BreadcrumbNav.displayName = 'BreadcrumbNav';
|
|
195
187
|
var BreadcrumbLink = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
196
188
|
var children = _ref2.children,
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
189
|
+
current = _ref2.current,
|
|
190
|
+
href = _ref2.href,
|
|
191
|
+
index = _ref2.index,
|
|
192
|
+
rel = _ref2.rel;
|
|
201
193
|
return jsx("li", Object.assign({
|
|
202
194
|
className: "utrecht-breadcrumb__item"
|
|
203
195
|
}, useMicrodataItem({
|
|
@@ -226,15 +218,14 @@ BreadcrumbLink.displayName = 'BreadcrumbLink';
|
|
|
226
218
|
|
|
227
219
|
var Button = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
228
220
|
var appearance = _a.appearance,
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
221
|
+
busy = _a.busy,
|
|
222
|
+
disabled = _a.disabled,
|
|
223
|
+
children = _a.children,
|
|
224
|
+
className = _a.className,
|
|
225
|
+
hint = _a.hint,
|
|
226
|
+
pressed = _a.pressed,
|
|
227
|
+
type = _a.type,
|
|
228
|
+
restProps = __rest(_a, ["appearance", "busy", "disabled", "children", "className", "hint", "pressed", "type"]);
|
|
238
229
|
return jsx("button", Object.assign({}, restProps, {
|
|
239
230
|
ref: ref,
|
|
240
231
|
className: clsx('utrecht-button', busy && 'utrecht-button--busy', disabled && 'utrecht-button--disabled', type === 'submit' && 'utrecht-button--submit', appearance === 'primary-action-button' && 'utrecht-button--primary-action', appearance === 'secondary-action-button' && 'utrecht-button--secondary-action', appearance === 'subtle-button' && 'utrecht-button--subtle', hint === 'danger' && 'utrecht-button--danger', hint === 'warning' && 'utrecht-button--warning', hint === 'ready' && 'utrecht-button--ready', pressed === true && 'utrecht-button--pressed', className),
|
|
@@ -249,7 +240,6 @@ var Button = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
249
240
|
Button.displayName = 'Button';
|
|
250
241
|
var PrimaryActionButton = function PrimaryActionButton(_a) {
|
|
251
242
|
var args = __rest(_a, []);
|
|
252
|
-
|
|
253
243
|
return jsx(Button, Object.assign({}, args, {
|
|
254
244
|
appearance: "primary-action-button"
|
|
255
245
|
}));
|
|
@@ -257,7 +247,6 @@ var PrimaryActionButton = function PrimaryActionButton(_a) {
|
|
|
257
247
|
PrimaryActionButton.displayName = 'PrimaryActionButton';
|
|
258
248
|
var SecondaryActionButton = function SecondaryActionButton(_a) {
|
|
259
249
|
var args = __rest(_a, []);
|
|
260
|
-
|
|
261
250
|
return jsx(Button, Object.assign({}, args, {
|
|
262
251
|
appearance: "secondary-action-button"
|
|
263
252
|
}));
|
|
@@ -265,7 +254,6 @@ var SecondaryActionButton = function SecondaryActionButton(_a) {
|
|
|
265
254
|
SecondaryActionButton.displayName = 'SecondaryActionButton';
|
|
266
255
|
var SubtleButton = function SubtleButton(_a) {
|
|
267
256
|
var args = __rest(_a, []);
|
|
268
|
-
|
|
269
257
|
return jsx(Button, Object.assign({}, args, {
|
|
270
258
|
appearance: "subtle-button"
|
|
271
259
|
}));
|
|
@@ -274,9 +262,8 @@ SubtleButton.displayName = 'SubtleButton';
|
|
|
274
262
|
|
|
275
263
|
var ButtonGroup = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
276
264
|
var children = _a.children,
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
265
|
+
className = _a.className,
|
|
266
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
280
267
|
return jsx("p", Object.assign({}, restProps, {
|
|
281
268
|
ref: ref,
|
|
282
269
|
className: clsx('utrecht-button-group', className)
|
|
@@ -288,27 +275,23 @@ ButtonGroup.displayName = 'ButtonGroup';
|
|
|
288
275
|
|
|
289
276
|
var onKeyDown = function onKeyDown(evt) {
|
|
290
277
|
var _a;
|
|
291
|
-
|
|
292
278
|
if (evt.key === ' ' && typeof ((_a = evt.target) === null || _a === void 0 ? void 0 : _a.click) === 'function') {
|
|
293
279
|
// Prevent other side-effects, such as scrolling
|
|
294
|
-
evt.preventDefault();
|
|
295
|
-
|
|
280
|
+
evt.preventDefault();
|
|
281
|
+
// Navigate to the link target
|
|
296
282
|
evt.target.click();
|
|
297
283
|
}
|
|
298
284
|
};
|
|
299
|
-
|
|
300
285
|
var ButtonLink = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
301
286
|
var appearance = _a.appearance,
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
287
|
+
children = _a.children,
|
|
288
|
+
className = _a.className,
|
|
289
|
+
external = _a.external,
|
|
290
|
+
href = _a.href,
|
|
291
|
+
placeholder = _a.placeholder,
|
|
292
|
+
role = _a.role,
|
|
293
|
+
restProps = __rest(_a, ["appearance", "children", "className", "external", "href", "placeholder", "role"]);
|
|
310
294
|
var props = restProps;
|
|
311
|
-
|
|
312
295
|
if (role === 'button') {
|
|
313
296
|
// When this link is announced as button by accessibility tools,
|
|
314
297
|
// it should also behave like a button. Links are not activated
|
|
@@ -318,7 +301,6 @@ var ButtonLink = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
318
301
|
onKeyDown: onKeyDown
|
|
319
302
|
});
|
|
320
303
|
}
|
|
321
|
-
|
|
322
304
|
return jsx("a", Object.assign({
|
|
323
305
|
href: placeholder ? undefined : href,
|
|
324
306
|
ref: ref,
|
|
@@ -340,8 +322,7 @@ ButtonLink.displayName = 'ButtonLink';
|
|
|
340
322
|
|
|
341
323
|
var CalendarNavigation = function CalendarNavigation(_a) {
|
|
342
324
|
var children = _a.children,
|
|
343
|
-
|
|
344
|
-
|
|
325
|
+
props = __rest(_a, ["children"]);
|
|
345
326
|
return jsx("div", Object.assign({
|
|
346
327
|
className: "utrecht-calendar__navigation"
|
|
347
328
|
}, props, {
|
|
@@ -351,9 +332,8 @@ var CalendarNavigation = function CalendarNavigation(_a) {
|
|
|
351
332
|
|
|
352
333
|
var CalendarButton = function CalendarButton(_a) {
|
|
353
334
|
var children = _a.children,
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
335
|
+
className = _a.className,
|
|
336
|
+
props = __rest(_a, ["children", "className"]);
|
|
357
337
|
return jsx(Button, Object.assign({
|
|
358
338
|
appearance: "subtle-button"
|
|
359
339
|
}, props, {
|
|
@@ -365,8 +345,7 @@ var CalendarButton = function CalendarButton(_a) {
|
|
|
365
345
|
|
|
366
346
|
var CalendarIcon = function CalendarIcon(_a) {
|
|
367
347
|
var children = _a.children,
|
|
368
|
-
|
|
369
|
-
|
|
348
|
+
props = __rest(_a, ["children"]);
|
|
370
349
|
return jsx("div", Object.assign({
|
|
371
350
|
className: clsx$1('utrecht-calendar__icon')
|
|
372
351
|
}, props, {
|
|
@@ -376,12 +355,11 @@ var CalendarIcon = function CalendarIcon(_a) {
|
|
|
376
355
|
|
|
377
356
|
var CalendarNavigationButtons = function CalendarNavigationButtons(_a) {
|
|
378
357
|
var onPreviousClick = _a.onPreviousClick,
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
358
|
+
onNextClick = _a.onNextClick,
|
|
359
|
+
previousIcon = _a.previousIcon,
|
|
360
|
+
nextIcon = _a.nextIcon,
|
|
361
|
+
children = _a.children,
|
|
362
|
+
props = __rest(_a, ["onPreviousClick", "onNextClick", "previousIcon", "nextIcon", "children"]);
|
|
385
363
|
return jsxs("div", Object.assign({
|
|
386
364
|
className: "utrecht-calendar__navigation-buttons"
|
|
387
365
|
}, {
|
|
@@ -403,9 +381,8 @@ var CalendarNavigationButtons = function CalendarNavigationButtons(_a) {
|
|
|
403
381
|
|
|
404
382
|
var Heading2 = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
405
383
|
var children = _a.children,
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
384
|
+
className = _a.className,
|
|
385
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
409
386
|
return jsx("h2", Object.assign({}, restProps, {
|
|
410
387
|
ref: ref,
|
|
411
388
|
className: clsx('utrecht-heading-2', className)
|
|
@@ -426,8 +403,7 @@ var CalendarNavigationLabel = function CalendarNavigationLabel(_ref) {
|
|
|
426
403
|
|
|
427
404
|
var CalendarTableDaysContainer = function CalendarTableDaysContainer(_a) {
|
|
428
405
|
var children = _a.children,
|
|
429
|
-
|
|
430
|
-
|
|
406
|
+
props = __rest(_a, ["children"]);
|
|
431
407
|
return jsx("tbody", Object.assign({}, props, {
|
|
432
408
|
className: "utrecht-calendar__table-days-container"
|
|
433
409
|
}, {
|
|
@@ -437,8 +413,7 @@ var CalendarTableDaysContainer = function CalendarTableDaysContainer(_a) {
|
|
|
437
413
|
|
|
438
414
|
var CalendarTableDaysItem = function CalendarTableDaysItem(_a) {
|
|
439
415
|
var children = _a.children,
|
|
440
|
-
|
|
441
|
-
|
|
416
|
+
props = __rest(_a, ["children"]);
|
|
442
417
|
return jsx("tr", Object.assign({}, props, {
|
|
443
418
|
children: children
|
|
444
419
|
}));
|
|
@@ -446,13 +421,12 @@ var CalendarTableDaysItem = function CalendarTableDaysItem(_a) {
|
|
|
446
421
|
|
|
447
422
|
var CalendarTableDaysItemDay = function CalendarTableDaysItemDay(_a) {
|
|
448
423
|
var day = _a.day,
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
424
|
+
dayOutOfTheMonth = _a.dayOutOfTheMonth,
|
|
425
|
+
isToday = _a.isToday,
|
|
426
|
+
emphasis = _a.emphasis,
|
|
427
|
+
selected = _a.selected,
|
|
428
|
+
disabled = _a.disabled,
|
|
429
|
+
props = __rest(_a, ["day", "dayOutOfTheMonth", "isToday", "emphasis", "selected", "disabled"]);
|
|
456
430
|
return jsx("td", {
|
|
457
431
|
children: jsx(CalendarButton, Object.assign({
|
|
458
432
|
className: clsx('utrecht-calendar__table-days-item-day', {
|
|
@@ -486,8 +460,7 @@ var CalendarTableWeeksContainer = function CalendarTableWeeksContainer(_ref) {
|
|
|
486
460
|
|
|
487
461
|
var CalendarTableWeeksItem = function CalendarTableWeeksItem(_a) {
|
|
488
462
|
var children = _a.children,
|
|
489
|
-
|
|
490
|
-
|
|
463
|
+
props = __rest(_a, ["children"]);
|
|
491
464
|
return jsx("th", Object.assign({}, props, {
|
|
492
465
|
className: "utrecht-calendar__table-weeks-item"
|
|
493
466
|
}, {
|
|
@@ -497,9 +470,8 @@ var CalendarTableWeeksItem = function CalendarTableWeeksItem(_a) {
|
|
|
497
470
|
|
|
498
471
|
var IconArrowLeft = function IconArrowLeft(_a) {
|
|
499
472
|
var title = _a.title,
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
473
|
+
titleId = _a.titleId,
|
|
474
|
+
props = __rest(_a, ["title", "titleId"]);
|
|
503
475
|
return jsxs("svg", Object.assign({
|
|
504
476
|
width: "100%",
|
|
505
477
|
height: "100%",
|
|
@@ -520,9 +492,8 @@ var IconArrowLeft = function IconArrowLeft(_a) {
|
|
|
520
492
|
|
|
521
493
|
var IconArrowLeftDouble = function IconArrowLeftDouble(_a) {
|
|
522
494
|
var title = _a.title,
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
495
|
+
titleId = _a.titleId,
|
|
496
|
+
props = __rest(_a, ["title", "titleId"]);
|
|
526
497
|
return jsxs("svg", Object.assign({
|
|
527
498
|
width: "100%",
|
|
528
499
|
height: "100%",
|
|
@@ -546,9 +517,8 @@ var IconArrowLeftDouble = function IconArrowLeftDouble(_a) {
|
|
|
546
517
|
|
|
547
518
|
var IconArrowRight = function IconArrowRight(_a) {
|
|
548
519
|
var title = _a.title,
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
520
|
+
titleId = _a.titleId,
|
|
521
|
+
props = __rest(_a, ["title", "titleId"]);
|
|
552
522
|
return jsxs("svg", Object.assign({
|
|
553
523
|
width: "100%",
|
|
554
524
|
height: "100%",
|
|
@@ -569,9 +539,8 @@ var IconArrowRight = function IconArrowRight(_a) {
|
|
|
569
539
|
|
|
570
540
|
var IconArrowRightDouble = function IconArrowRightDouble(_a) {
|
|
571
541
|
var title = _a.title,
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
542
|
+
titleId = _a.titleId,
|
|
543
|
+
props = __rest(_a, ["title", "titleId"]);
|
|
575
544
|
return jsxs("svg", Object.assign({
|
|
576
545
|
fill: "none",
|
|
577
546
|
width: "100%",
|
|
@@ -595,15 +564,13 @@ var IconArrowRightDouble = function IconArrowRightDouble(_a) {
|
|
|
595
564
|
|
|
596
565
|
function createCalendar(today) {
|
|
597
566
|
var start = startOfWeek(startOfMonth(today), {
|
|
598
|
-
weekStartsOn: 1
|
|
599
|
-
/* Monday */
|
|
600
|
-
|
|
567
|
+
weekStartsOn: 1 /* Monday */
|
|
601
568
|
});
|
|
602
|
-
var end = endOfWeek(addWeeks(start, 5), {
|
|
603
|
-
weekStartsOn: 1
|
|
604
|
-
/* Monday */
|
|
605
569
|
|
|
570
|
+
var end = endOfWeek(addWeeks(start, 5), {
|
|
571
|
+
weekStartsOn: 1 /* Monday */
|
|
606
572
|
});
|
|
573
|
+
|
|
607
574
|
return eachDayOfInterval({
|
|
608
575
|
start: start,
|
|
609
576
|
end: end
|
|
@@ -613,28 +580,24 @@ function createCalendar(today) {
|
|
|
613
580
|
* Calendar Component
|
|
614
581
|
* powered by date-fns, so that make it easy to use the `date-fns` date functions & locale
|
|
615
582
|
* */
|
|
616
|
-
|
|
617
|
-
|
|
618
583
|
var Calendar = function Calendar(_ref) {
|
|
619
584
|
var onCalendarClick = _ref.onCalendarClick,
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
585
|
+
events = _ref.events,
|
|
586
|
+
currentDate = _ref.currentDate,
|
|
587
|
+
_ref$locale = _ref.locale,
|
|
588
|
+
locale = _ref$locale === void 0 ? enUS : _ref$locale,
|
|
589
|
+
_ref$previousYearButt = _ref.previousYearButtonTitle,
|
|
590
|
+
previousYearButtonTitle = _ref$previousYearButt === void 0 ? 'Previous year' : _ref$previousYearButt,
|
|
591
|
+
_ref$nextYearButtonTi = _ref.nextYearButtonTitle,
|
|
592
|
+
nextYearButtonTitle = _ref$nextYearButtonTi === void 0 ? 'Next year' : _ref$nextYearButtonTi,
|
|
593
|
+
_ref$previousMonthBut = _ref.previousMonthButtonTitle,
|
|
594
|
+
previousMonthButtonTitle = _ref$previousMonthBut === void 0 ? 'Previous month' : _ref$previousMonthBut,
|
|
595
|
+
_ref$nextMonthButtonT = _ref.nextMonthButtonTitle,
|
|
596
|
+
nextMonthButtonTitle = _ref$nextMonthButtonT === void 0 ? 'Next month' : _ref$nextMonthButtonT;
|
|
633
597
|
var _useState = useState(currentDate || new Date()),
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
598
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
599
|
+
date = _useState2[0],
|
|
600
|
+
setDate$1 = _useState2[1];
|
|
638
601
|
var calendar = createCalendar(date);
|
|
639
602
|
var start = startOfWeek(date, {
|
|
640
603
|
weekStartsOn: 1
|
|
@@ -654,7 +617,6 @@ var Calendar = function Calendar(_ref) {
|
|
|
654
617
|
var currentEvent = events && events.length > 0 && events.find(function (e) {
|
|
655
618
|
return isSameDay(endOfDay(parseISO(e.date)), date);
|
|
656
619
|
});
|
|
657
|
-
|
|
658
620
|
if (currentEvent) {
|
|
659
621
|
return {
|
|
660
622
|
date: date,
|
|
@@ -758,13 +720,12 @@ var Calendar = function Calendar(_ref) {
|
|
|
758
720
|
|
|
759
721
|
var Checkbox = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
760
722
|
var _a$appearance = _a.appearance,
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
723
|
+
appearance = _a$appearance === void 0 ? 'custom' : _a$appearance,
|
|
724
|
+
disabled = _a.disabled,
|
|
725
|
+
invalid = _a.invalid,
|
|
726
|
+
required = _a.required,
|
|
727
|
+
className = _a.className,
|
|
728
|
+
restProps = __rest(_a, ["appearance", "disabled", "invalid", "required", "className"]);
|
|
768
729
|
return jsx("input", Object.assign({}, restProps, {
|
|
769
730
|
ref: ref,
|
|
770
731
|
type: "checkbox",
|
|
@@ -783,9 +744,8 @@ Checkbox.displayName = 'Checkbox';
|
|
|
783
744
|
|
|
784
745
|
var Code = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
785
746
|
var children = _a.children,
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
747
|
+
className = _a.className,
|
|
748
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
789
749
|
return jsx("code", Object.assign({
|
|
790
750
|
ref: ref,
|
|
791
751
|
className: clsx('utrecht-code', className)
|
|
@@ -797,9 +757,8 @@ Code.displayName = 'Code';
|
|
|
797
757
|
|
|
798
758
|
var CodeBlock = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
799
759
|
var children = _a.children,
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
760
|
+
className = _a.className,
|
|
761
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
803
762
|
return jsx("pre", Object.assign({
|
|
804
763
|
ref: ref,
|
|
805
764
|
className: clsx('utrecht-code-block', className)
|
|
@@ -815,11 +774,10 @@ CodeBlock.displayName = 'CodeBlock';
|
|
|
815
774
|
|
|
816
775
|
var CustomRadioButton = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
817
776
|
var disabled = _a.disabled,
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
777
|
+
required = _a.required,
|
|
778
|
+
className = _a.className,
|
|
779
|
+
invalid = _a.invalid,
|
|
780
|
+
restProps = __rest(_a, ["disabled", "required", "className", "invalid"]);
|
|
823
781
|
return jsx("input", Object.assign({
|
|
824
782
|
type: "radio",
|
|
825
783
|
"aria-invalid": invalid || undefined,
|
|
@@ -833,9 +791,8 @@ CustomRadioButton.displayName = 'CustomRadioButton';
|
|
|
833
791
|
|
|
834
792
|
var Document = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
835
793
|
var children = _a.children,
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
794
|
+
className = _a.className,
|
|
795
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
839
796
|
return jsx("div", Object.assign({}, restProps, {
|
|
840
797
|
ref: ref,
|
|
841
798
|
className: clsx('utrecht-document', className)
|
|
@@ -847,10 +804,9 @@ Document.displayName = 'Document';
|
|
|
847
804
|
|
|
848
805
|
var DataList = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
849
806
|
var appearance = _a.appearance,
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
807
|
+
children = _a.children,
|
|
808
|
+
className = _a.className,
|
|
809
|
+
restProps = __rest(_a, ["appearance", "children", "className"]);
|
|
854
810
|
return jsx("dl", Object.assign({}, restProps, {
|
|
855
811
|
className: clsx('utrecht-data-list', 'utrecht-data-list--html-dl', appearance === 'rows' && 'utrecht-data-list--rows', className),
|
|
856
812
|
ref: ref
|
|
@@ -861,9 +817,8 @@ var DataList = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
861
817
|
DataList.displayName = 'DataList';
|
|
862
818
|
var DataListItem = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
863
819
|
var children = _a.children,
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
820
|
+
className = _a.className,
|
|
821
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
867
822
|
return jsx("div", Object.assign({}, restProps, {
|
|
868
823
|
className: clsx('utrecht-data-list__item', className),
|
|
869
824
|
ref: ref
|
|
@@ -874,9 +829,8 @@ var DataListItem = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
874
829
|
DataListItem.displayName = 'DataListItem';
|
|
875
830
|
var DataListKey = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
876
831
|
var children = _a.children,
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
832
|
+
className = _a.className,
|
|
833
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
880
834
|
return jsx("dt", Object.assign({}, restProps, {
|
|
881
835
|
className: clsx('utrecht-data-list__item-key', className),
|
|
882
836
|
ref: ref
|
|
@@ -887,11 +841,11 @@ var DataListKey = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
887
841
|
DataListKey.displayName = 'DataListKey';
|
|
888
842
|
var DataListValue = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
889
843
|
var value = _ref.value,
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
844
|
+
children = _ref.children,
|
|
845
|
+
className = _ref.className,
|
|
846
|
+
emptyDescription = _ref.emptyDescription,
|
|
847
|
+
multiline = _ref.multiline,
|
|
848
|
+
notranslate = _ref.notranslate;
|
|
895
849
|
var empty = value === '' || value === null;
|
|
896
850
|
return jsx("dd", Object.assign({
|
|
897
851
|
className: clsx('utrecht-data-list__item-value', 'utrecht-data-list__item-value--html-dd', className, multiline && 'utrecht-data-list__item-value--multiline'),
|
|
@@ -908,9 +862,8 @@ var DataListValue = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
908
862
|
DataListValue.displayName = 'DataListValue';
|
|
909
863
|
var DataListActions = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
910
864
|
var children = _a.children,
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
865
|
+
className = _a.className,
|
|
866
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
914
867
|
return jsx("dd", Object.assign({}, restProps, {
|
|
915
868
|
className: clsx('utrecht-data-list__actions', 'utrecht-data-list__actions--html-dd', className),
|
|
916
869
|
ref: ref
|
|
@@ -922,9 +875,8 @@ DataListActions.displayName = 'DataListActions';
|
|
|
922
875
|
|
|
923
876
|
var Emphasis = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
924
877
|
var children = _a.children,
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
878
|
+
className = _a.className,
|
|
879
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
928
880
|
return jsx("em", Object.assign({
|
|
929
881
|
ref: ref,
|
|
930
882
|
className: clsx('utrecht-emphasis', 'utrecht-emphasis--stressed', className)
|
|
@@ -936,17 +888,16 @@ Emphasis.displayName = 'Emphasis';
|
|
|
936
888
|
|
|
937
889
|
var Fieldset = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
938
890
|
var ariaDescribedby = _a['aria-describedby'],
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
891
|
+
ariaLabel = _a['aria-label'],
|
|
892
|
+
ariaLabelledby = _a['aria-labelledby'],
|
|
893
|
+
className = _a.className,
|
|
894
|
+
children = _a.children,
|
|
895
|
+
disabled = _a.disabled,
|
|
896
|
+
form = _a.form,
|
|
897
|
+
invalid = _a.invalid,
|
|
898
|
+
name = _a.name,
|
|
899
|
+
role = _a.role,
|
|
900
|
+
restProps = __rest(_a, ['aria-describedby', 'aria-label', 'aria-labelledby', "className", "children", "disabled", "form", "invalid", "name", "role"]);
|
|
950
901
|
return jsx("div", Object.assign({}, restProps, {
|
|
951
902
|
ref: ref,
|
|
952
903
|
className: clsx('utrecht-form-fieldset', disabled && 'utrecht-form-fieldset--disabled', invalid && 'utrecht-form-fieldset--invalid', className)
|
|
@@ -969,11 +920,10 @@ var Fieldset = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
969
920
|
Fieldset.displayName = 'Fieldset';
|
|
970
921
|
var FieldsetOnly = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
971
922
|
var className = _a.className,
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
923
|
+
children = _a.children,
|
|
924
|
+
disabled = _a.disabled,
|
|
925
|
+
invalid = _a.invalid,
|
|
926
|
+
restProps = __rest(_a, ["className", "children", "disabled", "invalid"]);
|
|
977
927
|
return jsx("fieldset", Object.assign({}, restProps, {
|
|
978
928
|
ref: ref,
|
|
979
929
|
"aria-invalid": invalid || undefined,
|
|
@@ -987,9 +937,8 @@ FieldsetOnly.displayName = 'Fieldset';
|
|
|
987
937
|
|
|
988
938
|
var FieldsetLegend = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
989
939
|
var className = _a.className,
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
940
|
+
children = _a.children,
|
|
941
|
+
restProps = __rest(_a, ["className", "children"]);
|
|
993
942
|
return jsx("legend", Object.assign({}, restProps, {
|
|
994
943
|
ref: ref,
|
|
995
944
|
className: clsx('utrecht-form-fieldset__legend', 'utrecht-form-fieldset__legend--html-legend', className)
|
|
@@ -1001,9 +950,8 @@ FieldsetLegend.displayName = 'FieldsetLegend';
|
|
|
1001
950
|
|
|
1002
951
|
var Figure = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1003
952
|
var className = _a.className,
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
953
|
+
children = _a.children,
|
|
954
|
+
restProps = __rest(_a, ["className", "children"]);
|
|
1007
955
|
return jsx("figure", Object.assign({}, restProps, {
|
|
1008
956
|
ref: ref,
|
|
1009
957
|
className: clsx('utrecht-figure', className)
|
|
@@ -1015,9 +963,8 @@ Figure.displayName = 'Figure';
|
|
|
1015
963
|
|
|
1016
964
|
var FigureCaption = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1017
965
|
var className = _a.className,
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
966
|
+
children = _a.children,
|
|
967
|
+
restProps = __rest(_a, ["className", "children"]);
|
|
1021
968
|
return jsx("figcaption", Object.assign({}, restProps, {
|
|
1022
969
|
ref: ref,
|
|
1023
970
|
className: clsx('utrecht-figure__caption', className)
|
|
@@ -1029,11 +976,10 @@ FigureCaption.displayName = 'FigureCaption';
|
|
|
1029
976
|
|
|
1030
977
|
var FormField = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1031
978
|
var className = _a.className,
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
979
|
+
children = _a.children,
|
|
980
|
+
invalid = _a.invalid,
|
|
981
|
+
type = _a.type,
|
|
982
|
+
restProps = __rest(_a, ["className", "children", "invalid", "type"]);
|
|
1037
983
|
return jsx("div", Object.assign({}, restProps, {
|
|
1038
984
|
ref: ref,
|
|
1039
985
|
className: clsx('utrecht-form-field', {
|
|
@@ -1050,12 +996,11 @@ FormField.displayName = 'FormField';
|
|
|
1050
996
|
|
|
1051
997
|
var FormFieldDescription = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1052
998
|
var invalid = _a.invalid,
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
999
|
+
valid = _a.valid,
|
|
1000
|
+
warning = _a.warning,
|
|
1001
|
+
className = _a.className,
|
|
1002
|
+
children = _a.children,
|
|
1003
|
+
restProps = __rest(_a, ["invalid", "valid", "warning", "className", "children"]);
|
|
1059
1004
|
return jsx("div", Object.assign({}, restProps, {
|
|
1060
1005
|
ref: ref,
|
|
1061
1006
|
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)
|
|
@@ -1067,12 +1012,11 @@ FormFieldDescription.displayName = 'FormFieldDescription';
|
|
|
1067
1012
|
|
|
1068
1013
|
var FormLabel = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1069
1014
|
var children = _a.children,
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1015
|
+
className = _a.className,
|
|
1016
|
+
type = _a.type,
|
|
1017
|
+
disabled = _a.disabled,
|
|
1018
|
+
checked = _a.checked,
|
|
1019
|
+
restProps = __rest(_a, ["children", "className", "type", "disabled", "checked"]);
|
|
1076
1020
|
return jsx("label", Object.assign({}, restProps, {
|
|
1077
1021
|
ref: ref,
|
|
1078
1022
|
className: clsx('utrecht-form-label', type && "utrecht-form-label--".concat(type), disabled && 'utrecht-form-label--disabled', checked && 'utrecht-form-label--checked', className)
|
|
@@ -1084,9 +1028,8 @@ FormLabel.displayName = 'FormLabel';
|
|
|
1084
1028
|
|
|
1085
1029
|
var HTMLContent = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1086
1030
|
var children = _a.children,
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1031
|
+
className = _a.className,
|
|
1032
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
1090
1033
|
return jsx("div", Object.assign({}, restProps, {
|
|
1091
1034
|
ref: ref,
|
|
1092
1035
|
className: clsx('utrecht-html', className)
|
|
@@ -1098,9 +1041,8 @@ HTMLContent.displayName = 'HTMLContent';
|
|
|
1098
1041
|
|
|
1099
1042
|
var Heading1 = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1100
1043
|
var children = _a.children,
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1044
|
+
className = _a.className,
|
|
1045
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
1104
1046
|
return jsx("h1", Object.assign({}, restProps, {
|
|
1105
1047
|
ref: ref,
|
|
1106
1048
|
className: clsx('utrecht-heading-1', className)
|
|
@@ -1112,9 +1054,8 @@ Heading1.displayName = 'Heading1';
|
|
|
1112
1054
|
|
|
1113
1055
|
var Heading3 = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1114
1056
|
var children = _a.children,
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1057
|
+
className = _a.className,
|
|
1058
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
1118
1059
|
return jsx("h3", Object.assign({}, restProps, {
|
|
1119
1060
|
ref: ref,
|
|
1120
1061
|
className: clsx('utrecht-heading-3', className)
|
|
@@ -1126,9 +1067,8 @@ Heading3.displayName = 'Heading3';
|
|
|
1126
1067
|
|
|
1127
1068
|
var Heading4 = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1128
1069
|
var children = _a.children,
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1070
|
+
className = _a.className,
|
|
1071
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
1132
1072
|
return jsx("h4", Object.assign({}, restProps, {
|
|
1133
1073
|
ref: ref,
|
|
1134
1074
|
className: clsx('utrecht-heading-4', className)
|
|
@@ -1140,9 +1080,8 @@ Heading4.displayName = 'Heading4';
|
|
|
1140
1080
|
|
|
1141
1081
|
var Heading5 = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1142
1082
|
var children = _a.children,
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1083
|
+
className = _a.className,
|
|
1084
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
1146
1085
|
return jsx("h5", Object.assign({}, restProps, {
|
|
1147
1086
|
ref: ref,
|
|
1148
1087
|
className: clsx('utrecht-heading-5', className)
|
|
@@ -1154,9 +1093,8 @@ Heading5.displayName = 'Heading5';
|
|
|
1154
1093
|
|
|
1155
1094
|
var Heading6 = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1156
1095
|
var children = _a.children,
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1096
|
+
className = _a.className,
|
|
1097
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
1160
1098
|
return jsx("h6", Object.assign({}, restProps, {
|
|
1161
1099
|
ref: ref,
|
|
1162
1100
|
className: clsx('utrecht-heading-6', className)
|
|
@@ -1168,9 +1106,8 @@ Heading6.displayName = 'Heading6';
|
|
|
1168
1106
|
|
|
1169
1107
|
var HeadingGroup = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1170
1108
|
var children = _a.children,
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1109
|
+
className = _a.className,
|
|
1110
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
1174
1111
|
return jsx("hgroup", Object.assign({}, restProps, {
|
|
1175
1112
|
ref: ref,
|
|
1176
1113
|
className: clsx('utrecht-heading-group', className)
|
|
@@ -1182,9 +1119,8 @@ HeadingGroup.displayName = 'HeadingGroup';
|
|
|
1182
1119
|
|
|
1183
1120
|
var Icon = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1184
1121
|
var children = _a.children,
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1122
|
+
className = _a.className,
|
|
1123
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
1188
1124
|
return jsx("span", Object.assign({
|
|
1189
1125
|
ref: ref,
|
|
1190
1126
|
className: clsx('utrecht-icon', className)
|
|
@@ -1196,9 +1132,8 @@ Icon.displayName = 'Icon';
|
|
|
1196
1132
|
|
|
1197
1133
|
var Image = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1198
1134
|
var className = _a.className,
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1135
|
+
photo = _a.photo,
|
|
1136
|
+
restProps = __rest(_a, ["className", "photo"]);
|
|
1202
1137
|
return jsx("img", Object.assign({}, restProps, {
|
|
1203
1138
|
ref: ref,
|
|
1204
1139
|
className: clsx('utrecht-img', {
|
|
@@ -1210,13 +1145,12 @@ Image.displayName = 'Image';
|
|
|
1210
1145
|
|
|
1211
1146
|
var LinkButton = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1212
1147
|
var children = _a.children,
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1148
|
+
disabled = _a.disabled,
|
|
1149
|
+
inline = _a.inline,
|
|
1150
|
+
className = _a.className,
|
|
1151
|
+
pressed = _a.pressed,
|
|
1152
|
+
type = _a.type,
|
|
1153
|
+
restProps = __rest(_a, ["children", "disabled", "inline", "className", "pressed", "type"]);
|
|
1220
1154
|
return jsx("button", Object.assign({
|
|
1221
1155
|
ref: ref,
|
|
1222
1156
|
"aria-pressed": typeof pressed === 'boolean' ? pressed : undefined,
|
|
@@ -1235,10 +1169,9 @@ LinkButton.displayName = 'LinkButton';
|
|
|
1235
1169
|
|
|
1236
1170
|
var LinkSocial = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1237
1171
|
var children = _a.children,
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1172
|
+
className = _a.className,
|
|
1173
|
+
external = _a.external,
|
|
1174
|
+
restProps = __rest(_a, ["children", "className", "external"]);
|
|
1242
1175
|
return jsx("a", Object.assign({}, restProps, {
|
|
1243
1176
|
ref: ref,
|
|
1244
1177
|
className: clsx('utrecht-link-social', className),
|
|
@@ -1268,9 +1201,8 @@ var ListSocialItem = function ListSocialItem(_ref2) {
|
|
|
1268
1201
|
|
|
1269
1202
|
var Mark = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1270
1203
|
var children = _a.children,
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1204
|
+
className = _a.className,
|
|
1205
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
1274
1206
|
return jsx("mark", Object.assign({
|
|
1275
1207
|
ref: ref,
|
|
1276
1208
|
className: clsx('utrecht-mark', className)
|
|
@@ -1282,10 +1214,9 @@ Mark.displayName = 'Mark';
|
|
|
1282
1214
|
|
|
1283
1215
|
var NumberValue = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1284
1216
|
var children = _a.children,
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1217
|
+
className = _a.className,
|
|
1218
|
+
value = _a.value,
|
|
1219
|
+
restProps = __rest(_a, ["children", "className", "value"]);
|
|
1289
1220
|
return jsx("data", Object.assign({
|
|
1290
1221
|
value: typeof value === 'string' || typeof value === 'number' ? String(value) : undefined
|
|
1291
1222
|
}, restProps, {
|
|
@@ -1299,9 +1230,8 @@ NumberValue.displayName = 'NumberValue';
|
|
|
1299
1230
|
|
|
1300
1231
|
var OrderedList = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1301
1232
|
var children = _a.children,
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1233
|
+
className = _a.className,
|
|
1234
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
1305
1235
|
return jsx("ol", Object.assign({}, restProps, {
|
|
1306
1236
|
ref: ref,
|
|
1307
1237
|
className: clsx('utrecht-ordered-list', className)
|
|
@@ -1313,9 +1243,8 @@ OrderedList.displayName = 'OrderedList';
|
|
|
1313
1243
|
|
|
1314
1244
|
var OrderedListItem = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1315
1245
|
var children = _a.children,
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1246
|
+
className = _a.className,
|
|
1247
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
1319
1248
|
return jsx("li", Object.assign({}, restProps, {
|
|
1320
1249
|
ref: ref,
|
|
1321
1250
|
className: clsx('utrecht-ordered-list__item', className)
|
|
@@ -1327,9 +1256,8 @@ OrderedListItem.displayName = 'OrderedListItem';
|
|
|
1327
1256
|
|
|
1328
1257
|
var Page = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1329
1258
|
var children = _a.children,
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1259
|
+
className = _a.className,
|
|
1260
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
1333
1261
|
return jsx("div", Object.assign({}, restProps, {
|
|
1334
1262
|
ref: ref,
|
|
1335
1263
|
className: clsx('utrecht-page', className)
|
|
@@ -1341,9 +1269,8 @@ Page.displayName = 'Page';
|
|
|
1341
1269
|
|
|
1342
1270
|
var PageContent = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1343
1271
|
var children = _a.children,
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1272
|
+
className = _a.className,
|
|
1273
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
1347
1274
|
return jsx("div", Object.assign({}, restProps, {
|
|
1348
1275
|
ref: ref,
|
|
1349
1276
|
className: clsx('utrecht-page-content', className)
|
|
@@ -1354,9 +1281,8 @@ var PageContent = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
1354
1281
|
PageContent.displayName = 'PageContent';
|
|
1355
1282
|
var PageContentMain = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1356
1283
|
var children = _a.children,
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1284
|
+
className = _a.className,
|
|
1285
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
1360
1286
|
return jsx("main", Object.assign({}, restProps, {
|
|
1361
1287
|
ref: ref,
|
|
1362
1288
|
className: clsx('utrecht-page-content__main', className)
|
|
@@ -1368,9 +1294,8 @@ PageContentMain.displayName = 'PageContentMain';
|
|
|
1368
1294
|
|
|
1369
1295
|
var PageFooter = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1370
1296
|
var children = _a.children,
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1297
|
+
className = _a.className,
|
|
1298
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
1374
1299
|
return jsx("footer", Object.assign({}, restProps, {
|
|
1375
1300
|
ref: ref,
|
|
1376
1301
|
className: clsx('utrecht-page-footer', className)
|
|
@@ -1382,9 +1307,8 @@ PageFooter.displayName = 'PageFooter';
|
|
|
1382
1307
|
|
|
1383
1308
|
var PageHeader = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1384
1309
|
var children = _a.children,
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1310
|
+
className = _a.className,
|
|
1311
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
1388
1312
|
return jsx("header", Object.assign({}, restProps, {
|
|
1389
1313
|
ref: ref,
|
|
1390
1314
|
className: clsx('utrecht-page-header', className)
|
|
@@ -1396,11 +1320,10 @@ PageHeader.displayName = 'PageHeader';
|
|
|
1396
1320
|
|
|
1397
1321
|
var Paragraph = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1398
1322
|
var children = _a.children,
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1323
|
+
className = _a.className,
|
|
1324
|
+
lead = _a.lead,
|
|
1325
|
+
small = _a.small,
|
|
1326
|
+
restProps = __rest(_a, ["children", "className", "lead", "small"]);
|
|
1404
1327
|
return jsx("p", Object.assign({}, restProps, {
|
|
1405
1328
|
ref: ref,
|
|
1406
1329
|
className: clsx('utrecht-paragraph', lead && 'utrecht-paragraph--lead', small && 'utrecht-paragraph--small', className)
|
|
@@ -1416,9 +1339,8 @@ Paragraph.displayName = 'Paragraph';
|
|
|
1416
1339
|
|
|
1417
1340
|
var PreHeading = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1418
1341
|
var children = _a.children,
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1342
|
+
className = _a.className,
|
|
1343
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
1422
1344
|
return jsx("p", Object.assign({}, restProps, {
|
|
1423
1345
|
ref: ref,
|
|
1424
1346
|
className: clsx('utrecht-pre-heading', className)
|
|
@@ -1430,11 +1352,10 @@ PreHeading.displayName = 'PreHeading';
|
|
|
1430
1352
|
|
|
1431
1353
|
var RadioButton = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1432
1354
|
var _a$appearance = _a.appearance,
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1355
|
+
appearance = _a$appearance === void 0 ? 'utrecht-radio-button' : _a$appearance,
|
|
1356
|
+
invalid = _a.invalid,
|
|
1357
|
+
className = _a.className,
|
|
1358
|
+
restProps = __rest(_a, ["appearance", "invalid", "className"]);
|
|
1438
1359
|
return jsx("input", Object.assign({}, restProps, {
|
|
1439
1360
|
ref: ref,
|
|
1440
1361
|
type: "radio",
|
|
@@ -1448,12 +1369,11 @@ RadioButton.displayName = 'RadioButton';
|
|
|
1448
1369
|
|
|
1449
1370
|
var Select = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1450
1371
|
var invalid = _a.invalid,
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1372
|
+
required = _a.required,
|
|
1373
|
+
className = _a.className,
|
|
1374
|
+
noscript = _a.noscript,
|
|
1375
|
+
children = _a.children,
|
|
1376
|
+
restProps = __rest(_a, ["invalid", "required", "className", "noscript", "children"]);
|
|
1457
1377
|
return jsx("select", Object.assign({}, restProps, {
|
|
1458
1378
|
ref: ref,
|
|
1459
1379
|
"aria-invalid": invalid || undefined,
|
|
@@ -1467,12 +1387,11 @@ var Select = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
1467
1387
|
Select.displayName = 'Select';
|
|
1468
1388
|
var SelectOption = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1469
1389
|
var disabled = _a.disabled,
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1390
|
+
invalid = _a.invalid,
|
|
1391
|
+
value = _a.value,
|
|
1392
|
+
children = _a.children,
|
|
1393
|
+
className = _a.className,
|
|
1394
|
+
restProps = __rest(_a, ["disabled", "invalid", "value", "children", "className"]);
|
|
1476
1395
|
return jsx("option", Object.assign({}, restProps, {
|
|
1477
1396
|
ref: ref,
|
|
1478
1397
|
disabled: disabled,
|
|
@@ -1484,11 +1403,11 @@ var SelectOption = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
1484
1403
|
});
|
|
1485
1404
|
SelectOption.displayName = 'SelectOption';
|
|
1486
1405
|
|
|
1406
|
+
// Do not pass `children` along with `restProps` and use _children as it's unused
|
|
1487
1407
|
var Separator = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1488
1408
|
var className = _a.className;
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1409
|
+
_a.children;
|
|
1410
|
+
var restProps = __rest(_a, ["className", "children"]);
|
|
1492
1411
|
return jsx("hr", Object.assign({}, restProps, {
|
|
1493
1412
|
ref: ref,
|
|
1494
1413
|
className: clsx('utrecht-separator', className)
|
|
@@ -1498,9 +1417,8 @@ Separator.displayName = 'Separator';
|
|
|
1498
1417
|
|
|
1499
1418
|
var SkipLink = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1500
1419
|
var children = _a.children,
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1420
|
+
className = _a.className,
|
|
1421
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
1504
1422
|
return jsx("p", {
|
|
1505
1423
|
children: jsx("a", Object.assign({
|
|
1506
1424
|
ref: ref
|
|
@@ -1515,11 +1433,10 @@ SkipLink.displayName = 'SkipLink';
|
|
|
1515
1433
|
|
|
1516
1434
|
var SpotlightSection = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1517
1435
|
var aside = _a.aside,
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1436
|
+
children = _a.children,
|
|
1437
|
+
className = _a.className,
|
|
1438
|
+
type = _a.type,
|
|
1439
|
+
restProps = __rest(_a, ["aside", "children", "className", "type"]);
|
|
1523
1440
|
var props = Object.assign(Object.assign({}, restProps), {
|
|
1524
1441
|
ref: ref,
|
|
1525
1442
|
className: clsx('utrecht-spotlight-section', {
|
|
@@ -1537,9 +1454,8 @@ SpotlightSection.displayName = 'SpotlightSection';
|
|
|
1537
1454
|
|
|
1538
1455
|
var Strong = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1539
1456
|
var children = _a.children,
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1457
|
+
className = _a.className,
|
|
1458
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
1543
1459
|
return jsx("strong", Object.assign({
|
|
1544
1460
|
ref: ref,
|
|
1545
1461
|
className: clsx('utrecht-emphasis', 'utrecht-emphasis--strong', className)
|
|
@@ -1551,9 +1467,8 @@ Strong.displayName = 'Strong';
|
|
|
1551
1467
|
|
|
1552
1468
|
var Surface = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1553
1469
|
var children = _a.children,
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1470
|
+
className = _a.className,
|
|
1471
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
1557
1472
|
return jsx("div", Object.assign({}, restProps, {
|
|
1558
1473
|
ref: ref,
|
|
1559
1474
|
className: clsx('utrecht-surface', className)
|
|
@@ -1565,9 +1480,8 @@ Surface.displayName = 'Surface';
|
|
|
1565
1480
|
|
|
1566
1481
|
var Table = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1567
1482
|
var children = _a.children,
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1483
|
+
className = _a.className,
|
|
1484
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
1571
1485
|
return jsx("table", Object.assign({}, restProps, {
|
|
1572
1486
|
ref: ref,
|
|
1573
1487
|
className: clsx('utrecht-table', className)
|
|
@@ -1579,9 +1493,8 @@ Table.displayName = 'Table';
|
|
|
1579
1493
|
|
|
1580
1494
|
var TableBody = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1581
1495
|
var children = _a.children,
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1496
|
+
className = _a.className,
|
|
1497
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
1585
1498
|
return jsx("tbody", Object.assign({}, restProps, {
|
|
1586
1499
|
ref: ref,
|
|
1587
1500
|
className: clsx('utrecht-table__body', className)
|
|
@@ -1593,9 +1506,8 @@ TableBody.displayName = 'TableBody';
|
|
|
1593
1506
|
|
|
1594
1507
|
var TableCaption = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1595
1508
|
var children = _a.children,
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1509
|
+
className = _a.className,
|
|
1510
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
1599
1511
|
return jsx("caption", Object.assign({}, restProps, {
|
|
1600
1512
|
ref: ref,
|
|
1601
1513
|
className: clsx('utrecht-table__caption', className)
|
|
@@ -1607,9 +1519,8 @@ TableCaption.displayName = 'TableCaption';
|
|
|
1607
1519
|
|
|
1608
1520
|
var TableCell = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1609
1521
|
var children = _a.children,
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1522
|
+
className = _a.className,
|
|
1523
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
1613
1524
|
return jsx("td", Object.assign({}, restProps, {
|
|
1614
1525
|
ref: ref,
|
|
1615
1526
|
className: clsx('utrecht-table__cell', className)
|
|
@@ -1621,9 +1532,8 @@ TableCell.displayName = 'TableCell';
|
|
|
1621
1532
|
|
|
1622
1533
|
var TableFooter = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1623
1534
|
var children = _a.children,
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1535
|
+
className = _a.className,
|
|
1536
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
1627
1537
|
return jsx("tfoot", Object.assign({}, restProps, {
|
|
1628
1538
|
ref: ref,
|
|
1629
1539
|
className: clsx('utrecht-table__footer', className)
|
|
@@ -1635,9 +1545,8 @@ TableFooter.displayName = 'TableFooter';
|
|
|
1635
1545
|
|
|
1636
1546
|
var TableHeader = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1637
1547
|
var children = _a.children,
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1548
|
+
className = _a.className,
|
|
1549
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
1641
1550
|
return jsx("thead", Object.assign({}, restProps, {
|
|
1642
1551
|
ref: ref,
|
|
1643
1552
|
className: clsx('utrecht-table__header', className)
|
|
@@ -1649,9 +1558,8 @@ TableHeader.displayName = 'TableHeader';
|
|
|
1649
1558
|
|
|
1650
1559
|
var TableHeaderCell = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1651
1560
|
var children = _a.children,
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1561
|
+
className = _a.className,
|
|
1562
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
1655
1563
|
return jsx("th", Object.assign({}, restProps, {
|
|
1656
1564
|
ref: ref,
|
|
1657
1565
|
className: clsx('utrecht-table__header-cell', className)
|
|
@@ -1663,9 +1571,8 @@ TableHeaderCell.displayName = 'TableHeaderCell';
|
|
|
1663
1571
|
|
|
1664
1572
|
var TableRow = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1665
1573
|
var children = _a.children,
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1574
|
+
className = _a.className,
|
|
1575
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
1669
1576
|
return jsx("tr", Object.assign({}, restProps, {
|
|
1670
1577
|
ref: ref,
|
|
1671
1578
|
className: clsx('utrecht-table__row', className)
|
|
@@ -1677,12 +1584,11 @@ TableRow.displayName = 'TableRow';
|
|
|
1677
1584
|
|
|
1678
1585
|
var Textarea = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1679
1586
|
var disabled = _a.disabled,
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1587
|
+
invalid = _a.invalid,
|
|
1588
|
+
readOnly = _a.readOnly,
|
|
1589
|
+
required = _a.required,
|
|
1590
|
+
className = _a.className,
|
|
1591
|
+
restProps = __rest(_a, ["disabled", "invalid", "readOnly", "required", "className"]);
|
|
1686
1592
|
return jsx("textarea", Object.assign({}, restProps, {
|
|
1687
1593
|
ref: ref,
|
|
1688
1594
|
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),
|
|
@@ -1696,16 +1602,15 @@ Textarea.displayName = 'Textarea';
|
|
|
1696
1602
|
|
|
1697
1603
|
var Textbox = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1698
1604
|
var disabled = _a.disabled,
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1605
|
+
invalid = _a.invalid,
|
|
1606
|
+
readOnly = _a.readOnly,
|
|
1607
|
+
required = _a.required,
|
|
1608
|
+
className = _a.className,
|
|
1609
|
+
_a$type = _a.type,
|
|
1610
|
+
type = _a$type === void 0 ? 'text' : _a$type,
|
|
1611
|
+
maxLength = _a.maxLength,
|
|
1612
|
+
inputMode = _a.inputMode,
|
|
1613
|
+
restProps = __rest(_a, ["disabled", "invalid", "readOnly", "required", "className", "type", "maxLength", "inputMode"]);
|
|
1709
1614
|
return jsx("input", Object.assign({}, restProps, {
|
|
1710
1615
|
ref: ref,
|
|
1711
1616
|
type: type,
|
|
@@ -1722,9 +1627,8 @@ Textbox.displayName = 'Textbox';
|
|
|
1722
1627
|
|
|
1723
1628
|
var URLValue = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1724
1629
|
var children = _a.children,
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1630
|
+
className = _a.className,
|
|
1631
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
1728
1632
|
return jsx("bdi", Object.assign({
|
|
1729
1633
|
translate: "no"
|
|
1730
1634
|
}, restProps, {
|
|
@@ -1738,9 +1642,8 @@ URLValue.displayName = 'URLValue';
|
|
|
1738
1642
|
|
|
1739
1643
|
var UnorderedList = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1740
1644
|
var children = _a.children,
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1645
|
+
className = _a.className,
|
|
1646
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
1744
1647
|
return jsx("ul", Object.assign({
|
|
1745
1648
|
role: "list"
|
|
1746
1649
|
}, restProps, {
|
|
@@ -1754,9 +1657,8 @@ UnorderedList.displayName = 'UnorderedList';
|
|
|
1754
1657
|
|
|
1755
1658
|
var UnorderedListItem = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1756
1659
|
var children = _a.children,
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1660
|
+
className = _a.className,
|
|
1661
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
1760
1662
|
return jsx("li", Object.assign({}, restProps, {
|
|
1761
1663
|
ref: ref,
|
|
1762
1664
|
className: clsx('utrecht-unordered-list__item', className)
|