@raspberrypifoundation/design-system-react 1.6.0 → 2.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/CHANGELOG.md +16 -1
  2. package/README.md +63 -10
  3. package/dist/rpf-design-system-react.css +1 -0
  4. package/dist/rpf-design-system-react.js +2744 -0
  5. package/dist/rpf-design-system-react.umd.cjs +35 -0
  6. package/dist/scss/components/accordion.scss +94 -0
  7. package/dist/scss/components/alert.scss +131 -0
  8. package/dist/scss/components/burger-menu.scss +89 -0
  9. package/dist/scss/components/button.scss +321 -0
  10. package/dist/scss/components/forms/error-message.scss +20 -0
  11. package/dist/scss/components/forms/fieldset.scss +42 -0
  12. package/dist/scss/components/forms/input-checkbox.scss +62 -0
  13. package/dist/scss/components/forms/input-label.scss +36 -0
  14. package/dist/scss/components/forms/input-number.scss +61 -0
  15. package/dist/scss/components/forms/input-password.scss +109 -0
  16. package/dist/scss/components/forms/input-radio.scss +63 -0
  17. package/dist/scss/components/forms/input-search.scss +65 -0
  18. package/dist/scss/components/forms/input-select.scss +14 -0
  19. package/dist/scss/components/forms/input-text.scss +5 -0
  20. package/dist/scss/components/forms/input-textarea.scss +12 -0
  21. package/dist/scss/components/forms/inputs.scss +40 -0
  22. package/dist/scss/components/layout/decorative-section.scss +185 -0
  23. package/dist/scss/components/link.scss +51 -0
  24. package/dist/scss/components/menu-item.scss +66 -0
  25. package/dist/scss/components/menu-title.scss +25 -0
  26. package/dist/scss/components/menu.scss +31 -0
  27. package/dist/scss/components/progress-bar.scss +43 -0
  28. package/dist/scss/components/squiggle.scss +46 -0
  29. package/dist/scss/components/table/table-cell.scss +82 -0
  30. package/dist/scss/components/table/table.scss +32 -0
  31. package/dist/scss/components/tag.scss +50 -0
  32. package/dist/scss/design-system-core.scss +37 -0
  33. package/dist/scss/mixins/_inputs.scss +19 -0
  34. package/dist/scss/mixins/_typography.scss +75 -0
  35. package/dist/scss/properties/_border.scss +13 -0
  36. package/dist/scss/properties/_font-size.scss +14 -0
  37. package/dist/scss/properties/_font-weight.scss +4 -0
  38. package/dist/scss/properties/_line-height.scss +15 -0
  39. package/dist/scss/properties/_shadows.scss +7 -0
  40. package/dist/scss/properties/_sizing.scss +6 -0
  41. package/dist/scss/properties/_spacing.scss +16 -0
  42. package/dist/scss/properties/colors/_alert.scss +10 -0
  43. package/dist/scss/properties/colors/_brand.scss +14 -0
  44. package/dist/scss/properties/colors/_decorative.scss +58 -0
  45. package/dist/scss/properties/colors/_greys.scss +18 -0
  46. package/dist/scss/properties/colors/_inputs.scss +13 -0
  47. package/dist/scss/properties/colors/_text.scss +7 -0
  48. package/package.json +59 -84
  49. package/dist/cjs/bundle.js +0 -1809
  50. package/dist/esm/bundle.js +0 -1791
@@ -1,1809 +0,0 @@
1
- 'use strict';
2
-
3
- var React = require('react');
4
- var reactRouterDom = require('react-router-dom');
5
-
6
- function getDefaultExportFromCjs (x) {
7
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
8
- }
9
-
10
- var classnames = {exports: {}};
11
-
12
- /*!
13
- Copyright (c) 2018 Jed Watson.
14
- Licensed under the MIT License (MIT), see
15
- http://jedwatson.github.io/classnames
16
- */
17
-
18
- (function (module) {
19
- /* global define */
20
-
21
- (function () {
22
-
23
- var hasOwn = {}.hasOwnProperty;
24
-
25
- function classNames () {
26
- var classes = '';
27
-
28
- for (var i = 0; i < arguments.length; i++) {
29
- var arg = arguments[i];
30
- if (arg) {
31
- classes = appendClass(classes, parseValue(arg));
32
- }
33
- }
34
-
35
- return classes;
36
- }
37
-
38
- function parseValue (arg) {
39
- if (typeof arg === 'string' || typeof arg === 'number') {
40
- return arg;
41
- }
42
-
43
- if (typeof arg !== 'object') {
44
- return '';
45
- }
46
-
47
- if (Array.isArray(arg)) {
48
- return classNames.apply(null, arg);
49
- }
50
-
51
- if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
52
- return arg.toString();
53
- }
54
-
55
- var classes = '';
56
-
57
- for (var key in arg) {
58
- if (hasOwn.call(arg, key) && arg[key]) {
59
- classes = appendClass(classes, key);
60
- }
61
- }
62
-
63
- return classes;
64
- }
65
-
66
- function appendClass (value, newClass) {
67
- if (!newClass) {
68
- return value;
69
- }
70
-
71
- if (value) {
72
- return value + ' ' + newClass;
73
- }
74
-
75
- return value + newClass;
76
- }
77
-
78
- if (module.exports) {
79
- classNames.default = classNames;
80
- module.exports = classNames;
81
- } else {
82
- window.classNames = classNames;
83
- }
84
- }());
85
- } (classnames));
86
-
87
- var classnamesExports = classnames.exports;
88
- var classNames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
89
-
90
- var propTypes = {exports: {}};
91
-
92
- var reactIs = {exports: {}};
93
-
94
- var reactIs_development = {};
95
-
96
- /** @license React v16.13.1
97
- * react-is.development.js
98
- *
99
- * Copyright (c) Facebook, Inc. and its affiliates.
100
- *
101
- * This source code is licensed under the MIT license found in the
102
- * LICENSE file in the root directory of this source tree.
103
- */
104
-
105
-
106
-
107
- {
108
- (function() {
109
-
110
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
111
- // nor polyfill, then a plain number is used for performance.
112
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
113
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
114
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
115
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
116
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
117
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
118
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
119
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
120
- // (unstable) APIs that have been removed. Can we remove the symbols?
121
-
122
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
123
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
124
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
125
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
126
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
127
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
128
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
129
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
130
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
131
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
132
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
133
-
134
- function isValidElementType(type) {
135
- return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
136
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
137
- }
138
-
139
- function typeOf(object) {
140
- if (typeof object === 'object' && object !== null) {
141
- var $$typeof = object.$$typeof;
142
-
143
- switch ($$typeof) {
144
- case REACT_ELEMENT_TYPE:
145
- var type = object.type;
146
-
147
- switch (type) {
148
- case REACT_ASYNC_MODE_TYPE:
149
- case REACT_CONCURRENT_MODE_TYPE:
150
- case REACT_FRAGMENT_TYPE:
151
- case REACT_PROFILER_TYPE:
152
- case REACT_STRICT_MODE_TYPE:
153
- case REACT_SUSPENSE_TYPE:
154
- return type;
155
-
156
- default:
157
- var $$typeofType = type && type.$$typeof;
158
-
159
- switch ($$typeofType) {
160
- case REACT_CONTEXT_TYPE:
161
- case REACT_FORWARD_REF_TYPE:
162
- case REACT_LAZY_TYPE:
163
- case REACT_MEMO_TYPE:
164
- case REACT_PROVIDER_TYPE:
165
- return $$typeofType;
166
-
167
- default:
168
- return $$typeof;
169
- }
170
-
171
- }
172
-
173
- case REACT_PORTAL_TYPE:
174
- return $$typeof;
175
- }
176
- }
177
-
178
- return undefined;
179
- } // AsyncMode is deprecated along with isAsyncMode
180
-
181
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
182
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
183
- var ContextConsumer = REACT_CONTEXT_TYPE;
184
- var ContextProvider = REACT_PROVIDER_TYPE;
185
- var Element = REACT_ELEMENT_TYPE;
186
- var ForwardRef = REACT_FORWARD_REF_TYPE;
187
- var Fragment = REACT_FRAGMENT_TYPE;
188
- var Lazy = REACT_LAZY_TYPE;
189
- var Memo = REACT_MEMO_TYPE;
190
- var Portal = REACT_PORTAL_TYPE;
191
- var Profiler = REACT_PROFILER_TYPE;
192
- var StrictMode = REACT_STRICT_MODE_TYPE;
193
- var Suspense = REACT_SUSPENSE_TYPE;
194
- var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
195
-
196
- function isAsyncMode(object) {
197
- {
198
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
199
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
200
-
201
- console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
202
- }
203
- }
204
-
205
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
206
- }
207
- function isConcurrentMode(object) {
208
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
209
- }
210
- function isContextConsumer(object) {
211
- return typeOf(object) === REACT_CONTEXT_TYPE;
212
- }
213
- function isContextProvider(object) {
214
- return typeOf(object) === REACT_PROVIDER_TYPE;
215
- }
216
- function isElement(object) {
217
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
218
- }
219
- function isForwardRef(object) {
220
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
221
- }
222
- function isFragment(object) {
223
- return typeOf(object) === REACT_FRAGMENT_TYPE;
224
- }
225
- function isLazy(object) {
226
- return typeOf(object) === REACT_LAZY_TYPE;
227
- }
228
- function isMemo(object) {
229
- return typeOf(object) === REACT_MEMO_TYPE;
230
- }
231
- function isPortal(object) {
232
- return typeOf(object) === REACT_PORTAL_TYPE;
233
- }
234
- function isProfiler(object) {
235
- return typeOf(object) === REACT_PROFILER_TYPE;
236
- }
237
- function isStrictMode(object) {
238
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
239
- }
240
- function isSuspense(object) {
241
- return typeOf(object) === REACT_SUSPENSE_TYPE;
242
- }
243
-
244
- reactIs_development.AsyncMode = AsyncMode;
245
- reactIs_development.ConcurrentMode = ConcurrentMode;
246
- reactIs_development.ContextConsumer = ContextConsumer;
247
- reactIs_development.ContextProvider = ContextProvider;
248
- reactIs_development.Element = Element;
249
- reactIs_development.ForwardRef = ForwardRef;
250
- reactIs_development.Fragment = Fragment;
251
- reactIs_development.Lazy = Lazy;
252
- reactIs_development.Memo = Memo;
253
- reactIs_development.Portal = Portal;
254
- reactIs_development.Profiler = Profiler;
255
- reactIs_development.StrictMode = StrictMode;
256
- reactIs_development.Suspense = Suspense;
257
- reactIs_development.isAsyncMode = isAsyncMode;
258
- reactIs_development.isConcurrentMode = isConcurrentMode;
259
- reactIs_development.isContextConsumer = isContextConsumer;
260
- reactIs_development.isContextProvider = isContextProvider;
261
- reactIs_development.isElement = isElement;
262
- reactIs_development.isForwardRef = isForwardRef;
263
- reactIs_development.isFragment = isFragment;
264
- reactIs_development.isLazy = isLazy;
265
- reactIs_development.isMemo = isMemo;
266
- reactIs_development.isPortal = isPortal;
267
- reactIs_development.isProfiler = isProfiler;
268
- reactIs_development.isStrictMode = isStrictMode;
269
- reactIs_development.isSuspense = isSuspense;
270
- reactIs_development.isValidElementType = isValidElementType;
271
- reactIs_development.typeOf = typeOf;
272
- })();
273
- }
274
-
275
- {
276
- reactIs.exports = reactIs_development;
277
- }
278
-
279
- var reactIsExports = reactIs.exports;
280
-
281
- /*
282
- object-assign
283
- (c) Sindre Sorhus
284
- @license MIT
285
- */
286
- /* eslint-disable no-unused-vars */
287
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
288
- var hasOwnProperty = Object.prototype.hasOwnProperty;
289
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
290
-
291
- function toObject(val) {
292
- if (val === null || val === undefined) {
293
- throw new TypeError('Object.assign cannot be called with null or undefined');
294
- }
295
-
296
- return Object(val);
297
- }
298
-
299
- function shouldUseNative() {
300
- try {
301
- if (!Object.assign) {
302
- return false;
303
- }
304
-
305
- // Detect buggy property enumeration order in older V8 versions.
306
-
307
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
308
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
309
- test1[5] = 'de';
310
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
311
- return false;
312
- }
313
-
314
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
315
- var test2 = {};
316
- for (var i = 0; i < 10; i++) {
317
- test2['_' + String.fromCharCode(i)] = i;
318
- }
319
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
320
- return test2[n];
321
- });
322
- if (order2.join('') !== '0123456789') {
323
- return false;
324
- }
325
-
326
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
327
- var test3 = {};
328
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
329
- test3[letter] = letter;
330
- });
331
- if (Object.keys(Object.assign({}, test3)).join('') !==
332
- 'abcdefghijklmnopqrst') {
333
- return false;
334
- }
335
-
336
- return true;
337
- } catch (err) {
338
- // We don't expect any of the above to throw, but better to be safe.
339
- return false;
340
- }
341
- }
342
-
343
- var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
344
- var from;
345
- var to = toObject(target);
346
- var symbols;
347
-
348
- for (var s = 1; s < arguments.length; s++) {
349
- from = Object(arguments[s]);
350
-
351
- for (var key in from) {
352
- if (hasOwnProperty.call(from, key)) {
353
- to[key] = from[key];
354
- }
355
- }
356
-
357
- if (getOwnPropertySymbols) {
358
- symbols = getOwnPropertySymbols(from);
359
- for (var i = 0; i < symbols.length; i++) {
360
- if (propIsEnumerable.call(from, symbols[i])) {
361
- to[symbols[i]] = from[symbols[i]];
362
- }
363
- }
364
- }
365
- }
366
-
367
- return to;
368
- };
369
-
370
- /**
371
- * Copyright (c) 2013-present, Facebook, Inc.
372
- *
373
- * This source code is licensed under the MIT license found in the
374
- * LICENSE file in the root directory of this source tree.
375
- */
376
-
377
- var ReactPropTypesSecret$2 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
378
-
379
- var ReactPropTypesSecret_1 = ReactPropTypesSecret$2;
380
-
381
- var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
382
-
383
- /**
384
- * Copyright (c) 2013-present, Facebook, Inc.
385
- *
386
- * This source code is licensed under the MIT license found in the
387
- * LICENSE file in the root directory of this source tree.
388
- */
389
-
390
- var printWarning$1 = function() {};
391
-
392
- {
393
- var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
394
- var loggedTypeFailures = {};
395
- var has$1 = has$2;
396
-
397
- printWarning$1 = function(text) {
398
- var message = 'Warning: ' + text;
399
- if (typeof console !== 'undefined') {
400
- console.error(message);
401
- }
402
- try {
403
- // --- Welcome to debugging React ---
404
- // This error was thrown as a convenience so that you can use this stack
405
- // to find the callsite that caused this warning to fire.
406
- throw new Error(message);
407
- } catch (x) { /**/ }
408
- };
409
- }
410
-
411
- /**
412
- * Assert that the values match with the type specs.
413
- * Error messages are memorized and will only be shown once.
414
- *
415
- * @param {object} typeSpecs Map of name to a ReactPropType
416
- * @param {object} values Runtime values that need to be type-checked
417
- * @param {string} location e.g. "prop", "context", "child context"
418
- * @param {string} componentName Name of the component for error messages.
419
- * @param {?Function} getStack Returns the component stack.
420
- * @private
421
- */
422
- function checkPropTypes$1(typeSpecs, values, location, componentName, getStack) {
423
- {
424
- for (var typeSpecName in typeSpecs) {
425
- if (has$1(typeSpecs, typeSpecName)) {
426
- var error;
427
- // Prop type validation may throw. In case they do, we don't want to
428
- // fail the render phase where it didn't fail before. So we log it.
429
- // After these have been cleaned up, we'll let them throw.
430
- try {
431
- // This is intentionally an invariant that gets caught. It's the same
432
- // behavior as without this statement except with a better message.
433
- if (typeof typeSpecs[typeSpecName] !== 'function') {
434
- var err = Error(
435
- (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
436
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
437
- 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
438
- );
439
- err.name = 'Invariant Violation';
440
- throw err;
441
- }
442
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$1);
443
- } catch (ex) {
444
- error = ex;
445
- }
446
- if (error && !(error instanceof Error)) {
447
- printWarning$1(
448
- (componentName || 'React class') + ': type specification of ' +
449
- location + ' `' + typeSpecName + '` is invalid; the type checker ' +
450
- 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
451
- 'You may have forgotten to pass an argument to the type checker ' +
452
- 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
453
- 'shape all require an argument).'
454
- );
455
- }
456
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
457
- // Only monitor this failure once because there tends to be a lot of the
458
- // same error.
459
- loggedTypeFailures[error.message] = true;
460
-
461
- var stack = getStack ? getStack() : '';
462
-
463
- printWarning$1(
464
- 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
465
- );
466
- }
467
- }
468
- }
469
- }
470
- }
471
-
472
- /**
473
- * Resets warning cache when testing.
474
- *
475
- * @private
476
- */
477
- checkPropTypes$1.resetWarningCache = function() {
478
- {
479
- loggedTypeFailures = {};
480
- }
481
- };
482
-
483
- var checkPropTypes_1 = checkPropTypes$1;
484
-
485
- /**
486
- * Copyright (c) 2013-present, Facebook, Inc.
487
- *
488
- * This source code is licensed under the MIT license found in the
489
- * LICENSE file in the root directory of this source tree.
490
- */
491
-
492
- var ReactIs$1 = reactIsExports;
493
- var assign = objectAssign;
494
-
495
- var ReactPropTypesSecret = ReactPropTypesSecret_1;
496
- var has = has$2;
497
- var checkPropTypes = checkPropTypes_1;
498
-
499
- var printWarning = function() {};
500
-
501
- {
502
- printWarning = function(text) {
503
- var message = 'Warning: ' + text;
504
- if (typeof console !== 'undefined') {
505
- console.error(message);
506
- }
507
- try {
508
- // --- Welcome to debugging React ---
509
- // This error was thrown as a convenience so that you can use this stack
510
- // to find the callsite that caused this warning to fire.
511
- throw new Error(message);
512
- } catch (x) {}
513
- };
514
- }
515
-
516
- function emptyFunctionThatReturnsNull() {
517
- return null;
518
- }
519
-
520
- var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
521
- /* global Symbol */
522
- var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
523
- var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
524
-
525
- /**
526
- * Returns the iterator method function contained on the iterable object.
527
- *
528
- * Be sure to invoke the function with the iterable as context:
529
- *
530
- * var iteratorFn = getIteratorFn(myIterable);
531
- * if (iteratorFn) {
532
- * var iterator = iteratorFn.call(myIterable);
533
- * ...
534
- * }
535
- *
536
- * @param {?object} maybeIterable
537
- * @return {?function}
538
- */
539
- function getIteratorFn(maybeIterable) {
540
- var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
541
- if (typeof iteratorFn === 'function') {
542
- return iteratorFn;
543
- }
544
- }
545
-
546
- /**
547
- * Collection of methods that allow declaration and validation of props that are
548
- * supplied to React components. Example usage:
549
- *
550
- * var Props = require('ReactPropTypes');
551
- * var MyArticle = React.createClass({
552
- * propTypes: {
553
- * // An optional string prop named "description".
554
- * description: Props.string,
555
- *
556
- * // A required enum prop named "category".
557
- * category: Props.oneOf(['News','Photos']).isRequired,
558
- *
559
- * // A prop named "dialog" that requires an instance of Dialog.
560
- * dialog: Props.instanceOf(Dialog).isRequired
561
- * },
562
- * render: function() { ... }
563
- * });
564
- *
565
- * A more formal specification of how these methods are used:
566
- *
567
- * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
568
- * decl := ReactPropTypes.{type}(.isRequired)?
569
- *
570
- * Each and every declaration produces a function with the same signature. This
571
- * allows the creation of custom validation functions. For example:
572
- *
573
- * var MyLink = React.createClass({
574
- * propTypes: {
575
- * // An optional string or URI prop named "href".
576
- * href: function(props, propName, componentName) {
577
- * var propValue = props[propName];
578
- * if (propValue != null && typeof propValue !== 'string' &&
579
- * !(propValue instanceof URI)) {
580
- * return new Error(
581
- * 'Expected a string or an URI for ' + propName + ' in ' +
582
- * componentName
583
- * );
584
- * }
585
- * }
586
- * },
587
- * render: function() {...}
588
- * });
589
- *
590
- * @internal
591
- */
592
-
593
- var ANONYMOUS = '<<anonymous>>';
594
-
595
- // Important!
596
- // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
597
- var ReactPropTypes = {
598
- array: createPrimitiveTypeChecker('array'),
599
- bigint: createPrimitiveTypeChecker('bigint'),
600
- bool: createPrimitiveTypeChecker('boolean'),
601
- func: createPrimitiveTypeChecker('function'),
602
- number: createPrimitiveTypeChecker('number'),
603
- object: createPrimitiveTypeChecker('object'),
604
- string: createPrimitiveTypeChecker('string'),
605
- symbol: createPrimitiveTypeChecker('symbol'),
606
-
607
- any: createAnyTypeChecker(),
608
- arrayOf: createArrayOfTypeChecker,
609
- element: createElementTypeChecker(),
610
- elementType: createElementTypeTypeChecker(),
611
- instanceOf: createInstanceTypeChecker,
612
- node: createNodeChecker(),
613
- objectOf: createObjectOfTypeChecker,
614
- oneOf: createEnumTypeChecker,
615
- oneOfType: createUnionTypeChecker,
616
- shape: createShapeTypeChecker,
617
- exact: createStrictShapeTypeChecker,
618
- };
619
-
620
- /**
621
- * inlined Object.is polyfill to avoid requiring consumers ship their own
622
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
623
- */
624
- /*eslint-disable no-self-compare*/
625
- function is(x, y) {
626
- // SameValue algorithm
627
- if (x === y) {
628
- // Steps 1-5, 7-10
629
- // Steps 6.b-6.e: +0 != -0
630
- return x !== 0 || 1 / x === 1 / y;
631
- } else {
632
- // Step 6.a: NaN == NaN
633
- return x !== x && y !== y;
634
- }
635
- }
636
- /*eslint-enable no-self-compare*/
637
-
638
- /**
639
- * We use an Error-like object for backward compatibility as people may call
640
- * PropTypes directly and inspect their output. However, we don't use real
641
- * Errors anymore. We don't inspect their stack anyway, and creating them
642
- * is prohibitively expensive if they are created too often, such as what
643
- * happens in oneOfType() for any type before the one that matched.
644
- */
645
- function PropTypeError(message, data) {
646
- this.message = message;
647
- this.data = data && typeof data === 'object' ? data: {};
648
- this.stack = '';
649
- }
650
- // Make `instanceof Error` still work for returned errors.
651
- PropTypeError.prototype = Error.prototype;
652
-
653
- function createChainableTypeChecker(validate) {
654
- {
655
- var manualPropTypeCallCache = {};
656
- var manualPropTypeWarningCount = 0;
657
- }
658
- function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
659
- componentName = componentName || ANONYMOUS;
660
- propFullName = propFullName || propName;
661
-
662
- if (secret !== ReactPropTypesSecret) {
663
- if (throwOnDirectAccess) {
664
- // New behavior only for users of `prop-types` package
665
- var err = new Error(
666
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
667
- 'Use `PropTypes.checkPropTypes()` to call them. ' +
668
- 'Read more at http://fb.me/use-check-prop-types'
669
- );
670
- err.name = 'Invariant Violation';
671
- throw err;
672
- } else if (typeof console !== 'undefined') {
673
- // Old behavior for people using React.PropTypes
674
- var cacheKey = componentName + ':' + propName;
675
- if (
676
- !manualPropTypeCallCache[cacheKey] &&
677
- // Avoid spamming the console because they are often not actionable except for lib authors
678
- manualPropTypeWarningCount < 3
679
- ) {
680
- printWarning(
681
- 'You are manually calling a React.PropTypes validation ' +
682
- 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
683
- 'and will throw in the standalone `prop-types` package. ' +
684
- 'You may be seeing this warning due to a third-party PropTypes ' +
685
- 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
686
- );
687
- manualPropTypeCallCache[cacheKey] = true;
688
- manualPropTypeWarningCount++;
689
- }
690
- }
691
- }
692
- if (props[propName] == null) {
693
- if (isRequired) {
694
- if (props[propName] === null) {
695
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
696
- }
697
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
698
- }
699
- return null;
700
- } else {
701
- return validate(props, propName, componentName, location, propFullName);
702
- }
703
- }
704
-
705
- var chainedCheckType = checkType.bind(null, false);
706
- chainedCheckType.isRequired = checkType.bind(null, true);
707
-
708
- return chainedCheckType;
709
- }
710
-
711
- function createPrimitiveTypeChecker(expectedType) {
712
- function validate(props, propName, componentName, location, propFullName, secret) {
713
- var propValue = props[propName];
714
- var propType = getPropType(propValue);
715
- if (propType !== expectedType) {
716
- // `propValue` being instance of, say, date/regexp, pass the 'object'
717
- // check, but we can offer a more precise error message here rather than
718
- // 'of type `object`'.
719
- var preciseType = getPreciseType(propValue);
720
-
721
- return new PropTypeError(
722
- 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
723
- {expectedType: expectedType}
724
- );
725
- }
726
- return null;
727
- }
728
- return createChainableTypeChecker(validate);
729
- }
730
-
731
- function createAnyTypeChecker() {
732
- return createChainableTypeChecker(emptyFunctionThatReturnsNull);
733
- }
734
-
735
- function createArrayOfTypeChecker(typeChecker) {
736
- function validate(props, propName, componentName, location, propFullName) {
737
- if (typeof typeChecker !== 'function') {
738
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
739
- }
740
- var propValue = props[propName];
741
- if (!Array.isArray(propValue)) {
742
- var propType = getPropType(propValue);
743
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
744
- }
745
- for (var i = 0; i < propValue.length; i++) {
746
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
747
- if (error instanceof Error) {
748
- return error;
749
- }
750
- }
751
- return null;
752
- }
753
- return createChainableTypeChecker(validate);
754
- }
755
-
756
- function createElementTypeChecker() {
757
- function validate(props, propName, componentName, location, propFullName) {
758
- var propValue = props[propName];
759
- if (!isValidElement(propValue)) {
760
- var propType = getPropType(propValue);
761
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
762
- }
763
- return null;
764
- }
765
- return createChainableTypeChecker(validate);
766
- }
767
-
768
- function createElementTypeTypeChecker() {
769
- function validate(props, propName, componentName, location, propFullName) {
770
- var propValue = props[propName];
771
- if (!ReactIs$1.isValidElementType(propValue)) {
772
- var propType = getPropType(propValue);
773
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
774
- }
775
- return null;
776
- }
777
- return createChainableTypeChecker(validate);
778
- }
779
-
780
- function createInstanceTypeChecker(expectedClass) {
781
- function validate(props, propName, componentName, location, propFullName) {
782
- if (!(props[propName] instanceof expectedClass)) {
783
- var expectedClassName = expectedClass.name || ANONYMOUS;
784
- var actualClassName = getClassName(props[propName]);
785
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
786
- }
787
- return null;
788
- }
789
- return createChainableTypeChecker(validate);
790
- }
791
-
792
- function createEnumTypeChecker(expectedValues) {
793
- if (!Array.isArray(expectedValues)) {
794
- {
795
- if (arguments.length > 1) {
796
- printWarning(
797
- 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
798
- 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
799
- );
800
- } else {
801
- printWarning('Invalid argument supplied to oneOf, expected an array.');
802
- }
803
- }
804
- return emptyFunctionThatReturnsNull;
805
- }
806
-
807
- function validate(props, propName, componentName, location, propFullName) {
808
- var propValue = props[propName];
809
- for (var i = 0; i < expectedValues.length; i++) {
810
- if (is(propValue, expectedValues[i])) {
811
- return null;
812
- }
813
- }
814
-
815
- var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
816
- var type = getPreciseType(value);
817
- if (type === 'symbol') {
818
- return String(value);
819
- }
820
- return value;
821
- });
822
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
823
- }
824
- return createChainableTypeChecker(validate);
825
- }
826
-
827
- function createObjectOfTypeChecker(typeChecker) {
828
- function validate(props, propName, componentName, location, propFullName) {
829
- if (typeof typeChecker !== 'function') {
830
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
831
- }
832
- var propValue = props[propName];
833
- var propType = getPropType(propValue);
834
- if (propType !== 'object') {
835
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
836
- }
837
- for (var key in propValue) {
838
- if (has(propValue, key)) {
839
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
840
- if (error instanceof Error) {
841
- return error;
842
- }
843
- }
844
- }
845
- return null;
846
- }
847
- return createChainableTypeChecker(validate);
848
- }
849
-
850
- function createUnionTypeChecker(arrayOfTypeCheckers) {
851
- if (!Array.isArray(arrayOfTypeCheckers)) {
852
- printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') ;
853
- return emptyFunctionThatReturnsNull;
854
- }
855
-
856
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
857
- var checker = arrayOfTypeCheckers[i];
858
- if (typeof checker !== 'function') {
859
- printWarning(
860
- 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
861
- 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
862
- );
863
- return emptyFunctionThatReturnsNull;
864
- }
865
- }
866
-
867
- function validate(props, propName, componentName, location, propFullName) {
868
- var expectedTypes = [];
869
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
870
- var checker = arrayOfTypeCheckers[i];
871
- var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
872
- if (checkerResult == null) {
873
- return null;
874
- }
875
- if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
876
- expectedTypes.push(checkerResult.data.expectedType);
877
- }
878
- }
879
- var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
880
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
881
- }
882
- return createChainableTypeChecker(validate);
883
- }
884
-
885
- function createNodeChecker() {
886
- function validate(props, propName, componentName, location, propFullName) {
887
- if (!isNode(props[propName])) {
888
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
889
- }
890
- return null;
891
- }
892
- return createChainableTypeChecker(validate);
893
- }
894
-
895
- function invalidValidatorError(componentName, location, propFullName, key, type) {
896
- return new PropTypeError(
897
- (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
898
- 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
899
- );
900
- }
901
-
902
- function createShapeTypeChecker(shapeTypes) {
903
- function validate(props, propName, componentName, location, propFullName) {
904
- var propValue = props[propName];
905
- var propType = getPropType(propValue);
906
- if (propType !== 'object') {
907
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
908
- }
909
- for (var key in shapeTypes) {
910
- var checker = shapeTypes[key];
911
- if (typeof checker !== 'function') {
912
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
913
- }
914
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
915
- if (error) {
916
- return error;
917
- }
918
- }
919
- return null;
920
- }
921
- return createChainableTypeChecker(validate);
922
- }
923
-
924
- function createStrictShapeTypeChecker(shapeTypes) {
925
- function validate(props, propName, componentName, location, propFullName) {
926
- var propValue = props[propName];
927
- var propType = getPropType(propValue);
928
- if (propType !== 'object') {
929
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
930
- }
931
- // We need to check all keys in case some are required but missing from props.
932
- var allKeys = assign({}, props[propName], shapeTypes);
933
- for (var key in allKeys) {
934
- var checker = shapeTypes[key];
935
- if (has(shapeTypes, key) && typeof checker !== 'function') {
936
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
937
- }
938
- if (!checker) {
939
- return new PropTypeError(
940
- 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
941
- '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
942
- '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
943
- );
944
- }
945
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
946
- if (error) {
947
- return error;
948
- }
949
- }
950
- return null;
951
- }
952
-
953
- return createChainableTypeChecker(validate);
954
- }
955
-
956
- function isNode(propValue) {
957
- switch (typeof propValue) {
958
- case 'number':
959
- case 'string':
960
- case 'undefined':
961
- return true;
962
- case 'boolean':
963
- return !propValue;
964
- case 'object':
965
- if (Array.isArray(propValue)) {
966
- return propValue.every(isNode);
967
- }
968
- if (propValue === null || isValidElement(propValue)) {
969
- return true;
970
- }
971
-
972
- var iteratorFn = getIteratorFn(propValue);
973
- if (iteratorFn) {
974
- var iterator = iteratorFn.call(propValue);
975
- var step;
976
- if (iteratorFn !== propValue.entries) {
977
- while (!(step = iterator.next()).done) {
978
- if (!isNode(step.value)) {
979
- return false;
980
- }
981
- }
982
- } else {
983
- // Iterator will provide entry [k,v] tuples rather than values.
984
- while (!(step = iterator.next()).done) {
985
- var entry = step.value;
986
- if (entry) {
987
- if (!isNode(entry[1])) {
988
- return false;
989
- }
990
- }
991
- }
992
- }
993
- } else {
994
- return false;
995
- }
996
-
997
- return true;
998
- default:
999
- return false;
1000
- }
1001
- }
1002
-
1003
- function isSymbol(propType, propValue) {
1004
- // Native Symbol.
1005
- if (propType === 'symbol') {
1006
- return true;
1007
- }
1008
-
1009
- // falsy value can't be a Symbol
1010
- if (!propValue) {
1011
- return false;
1012
- }
1013
-
1014
- // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
1015
- if (propValue['@@toStringTag'] === 'Symbol') {
1016
- return true;
1017
- }
1018
-
1019
- // Fallback for non-spec compliant Symbols which are polyfilled.
1020
- if (typeof Symbol === 'function' && propValue instanceof Symbol) {
1021
- return true;
1022
- }
1023
-
1024
- return false;
1025
- }
1026
-
1027
- // Equivalent of `typeof` but with special handling for array and regexp.
1028
- function getPropType(propValue) {
1029
- var propType = typeof propValue;
1030
- if (Array.isArray(propValue)) {
1031
- return 'array';
1032
- }
1033
- if (propValue instanceof RegExp) {
1034
- // Old webkits (at least until Android 4.0) return 'function' rather than
1035
- // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
1036
- // passes PropTypes.object.
1037
- return 'object';
1038
- }
1039
- if (isSymbol(propType, propValue)) {
1040
- return 'symbol';
1041
- }
1042
- return propType;
1043
- }
1044
-
1045
- // This handles more types than `getPropType`. Only used for error messages.
1046
- // See `createPrimitiveTypeChecker`.
1047
- function getPreciseType(propValue) {
1048
- if (typeof propValue === 'undefined' || propValue === null) {
1049
- return '' + propValue;
1050
- }
1051
- var propType = getPropType(propValue);
1052
- if (propType === 'object') {
1053
- if (propValue instanceof Date) {
1054
- return 'date';
1055
- } else if (propValue instanceof RegExp) {
1056
- return 'regexp';
1057
- }
1058
- }
1059
- return propType;
1060
- }
1061
-
1062
- // Returns a string that is postfixed to a warning about an invalid type.
1063
- // For example, "undefined" or "of type array"
1064
- function getPostfixForTypeWarning(value) {
1065
- var type = getPreciseType(value);
1066
- switch (type) {
1067
- case 'array':
1068
- case 'object':
1069
- return 'an ' + type;
1070
- case 'boolean':
1071
- case 'date':
1072
- case 'regexp':
1073
- return 'a ' + type;
1074
- default:
1075
- return type;
1076
- }
1077
- }
1078
-
1079
- // Returns class name of the object, if any.
1080
- function getClassName(propValue) {
1081
- if (!propValue.constructor || !propValue.constructor.name) {
1082
- return ANONYMOUS;
1083
- }
1084
- return propValue.constructor.name;
1085
- }
1086
-
1087
- ReactPropTypes.checkPropTypes = checkPropTypes;
1088
- ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
1089
- ReactPropTypes.PropTypes = ReactPropTypes;
1090
-
1091
- return ReactPropTypes;
1092
- };
1093
-
1094
- /**
1095
- * Copyright (c) 2013-present, Facebook, Inc.
1096
- *
1097
- * This source code is licensed under the MIT license found in the
1098
- * LICENSE file in the root directory of this source tree.
1099
- */
1100
-
1101
- {
1102
- var ReactIs = reactIsExports;
1103
-
1104
- // By explicitly using `prop-types` you are opting into new development behavior.
1105
- // http://fb.me/prop-types-in-prod
1106
- var throwOnDirectAccess = true;
1107
- propTypes.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
1108
- }
1109
-
1110
- var propTypesExports = propTypes.exports;
1111
- var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
1112
-
1113
- function styleInject(css, ref) {
1114
- if ( ref === void 0 ) ref = {};
1115
- var insertAt = ref.insertAt;
1116
-
1117
- if (!css || typeof document === 'undefined') { return; }
1118
-
1119
- var head = document.head || document.getElementsByTagName('head')[0];
1120
- var style = document.createElement('style');
1121
- style.type = 'text/css';
1122
-
1123
- if (insertAt === 'top') {
1124
- if (head.firstChild) {
1125
- head.insertBefore(style, head.firstChild);
1126
- } else {
1127
- head.appendChild(style);
1128
- }
1129
- } else {
1130
- head.appendChild(style);
1131
- }
1132
-
1133
- if (style.styleSheet) {
1134
- style.styleSheet.cssText = css;
1135
- } else {
1136
- style.appendChild(document.createTextNode(css));
1137
- }
1138
- }
1139
-
1140
- var css_248z$f = "@font-face {\n font-family: \"Material Symbols Outlined\";\n font-style: normal;\n font-weight: 100 700;\n font-display: block;\n src: url(\"./material-symbols-outlined.woff2\") format(\"woff2\");\n}\n.material-symbols-outlined {\n font-family: \"Material Symbols Outlined\";\n font-weight: normal;\n font-style: normal;\n font-size: 24px;\n line-height: 1;\n letter-spacing: normal;\n text-transform: none;\n display: inline-block;\n white-space: nowrap;\n word-wrap: normal;\n direction: ltr;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-rendering: optimizeLegibility;\n font-feature-settings: \"liga\";\n}\n\n@font-face {\n font-family: \"Material Symbols Rounded\";\n font-style: normal;\n font-weight: 100 700;\n font-display: block;\n src: url(\"./material-symbols-rounded.woff2\") format(\"woff2\");\n}\n.material-symbols-rounded {\n font-family: \"Material Symbols Rounded\";\n font-weight: normal;\n font-style: normal;\n font-size: 24px;\n line-height: 1;\n letter-spacing: normal;\n text-transform: none;\n display: inline-block;\n white-space: nowrap;\n word-wrap: normal;\n direction: ltr;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-rendering: optimizeLegibility;\n font-feature-settings: \"liga\";\n}\n\n@font-face {\n font-family: \"Material Symbols Sharp\";\n font-style: normal;\n font-weight: 100 700;\n font-display: block;\n src: url(\"./material-symbols-sharp.woff2\") format(\"woff2\");\n}\n.material-symbols-sharp {\n font-family: \"Material Symbols Sharp\";\n font-weight: normal;\n font-style: normal;\n font-size: 24px;\n line-height: 1;\n letter-spacing: normal;\n text-transform: none;\n display: inline-block;\n white-space: nowrap;\n word-wrap: normal;\n direction: ltr;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-rendering: optimizeLegibility;\n font-feature-settings: \"liga\";\n}\n";
1141
- styleInject(css_248z$f);
1142
-
1143
- var css_248z$e = ":root, :host {\n --rpf-text-primary: hsla(0, 0%, 13%, 1);\n --rpf-text-primary-darkmode: var(--rpf-white);\n --rpf-text-secondary: hsla(200, 9%, 33%, 1);\n --rpf-text-secondary-darkmode: hsla(0, 0%, 80%, 1);\n --rpf-link-text: var(--rpf-navy-800);\n}\n\n:root, :host {\n --rpf-red-100: hsla(4, 89%, 96%, 1);\n --rpf-red-200: hsla(1, 87%, 91%, 1);\n --rpf-red-400: hsla(1, 87%, 82%, 1);\n --rpf-red-600: hsla(1, 87%, 72%, 1);\n --rpf-red-800: hsla(1, 87%, 63%, 1);\n --rpf-red-900: hsla(1, 52%, 50%, 1);\n --rpf-green-100: hsla(125, 41%, 95%, 1);\n --rpf-green-200: hsla(122, 39%, 87%, 1);\n --rpf-green-400: hsla(123, 40%, 74%, 1);\n --rpf-green-600: hsla(123, 40%, 61%, 1);\n --rpf-green-800: hsla(123, 43%, 48%, 1);\n --rpf-green-900: hsla(123, 43%, 34%, 1);\n --rpf-teal-100: hsla(176, 55%, 94%, 1);\n --rpf-teal-200: hsla(174, 55%, 85%, 1);\n --rpf-teal-400: hsla(174, 55%, 70%, 1);\n --rpf-teal-600: hsla(174, 56%, 56%, 1);\n --rpf-teal-800: hsla(174, 81%, 41%, 1);\n --rpf-teal-900: hsla(174, 81%, 27%, 1);\n --rpf-teal-950: hsla(174, 80%, 20%, 1);\n --rpf-orange-100: hsla(31, 100%, 95%, 1);\n --rpf-orange-200: hsla(32, 100%, 88%, 1);\n --rpf-orange-400: hsla(31, 100%, 77%, 1);\n --rpf-orange-600: hsla(31, 99%, 65%, 1);\n --rpf-orange-800: hsla(31, 99%, 54%, 1);\n --rpf-orange-900: hsla(31, 85%, 35%, 1);\n --rpf-yellow-100: hsla(51, 100%, 95%, 1);\n --rpf-yellow-200: hsla(52, 100%, 87%, 1);\n --rpf-yellow-400: hsla(51, 100%, 75%, 1);\n --rpf-yellow-600: hsla(52, 100%, 63%, 1);\n --rpf-yellow-800: hsla(52, 100%, 50%, 1);\n --rpf-yellow-900: hsla(52, 100%, 26%, 1);\n --rpf-purple-100: hsla(282, 36%, 95%, 1);\n --rpf-purple-200: hsla(279, 38%, 87%, 1);\n --rpf-purple-400: hsla(279, 38%, 73%, 1);\n --rpf-purple-600: hsla(279, 37%, 60%, 1);\n --rpf-purple-800: hsla(279, 43%, 47%, 1);\n --rpf-purple-900: hsla(280, 43%, 37%, 1);\n --rpf-navy-100: hsla(235, 38%, 94%, 1);\n --rpf-navy-200: hsla(234, 38%, 84%, 1);\n --rpf-navy-400: hsla(235, 38%, 69%, 1);\n --rpf-navy-600: hsla(235, 38%, 53%, 1);\n --rpf-navy-800: hsla(235, 63%, 37%, 1);\n --rpf-navy-900: hsla(234, 63%, 30%, 1);\n --rpf-blue-100: hsla(203, 86%, 95%, 1);\n --rpf-blue-200: hsla(204, 88%, 87%, 1);\n --rpf-blue-400: hsla(204, 88%, 74%, 1);\n --rpf-blue-600: hsla(204, 89%, 60%, 1);\n --rpf-blue-800: hsla(204, 100%, 47%, 1);\n --rpf-blue-900: hsla(204, 99%, 37%, 1);\n}\n\n:root, :host {\n --font-size-0-5: 0.5rem;\n --font-size-0-75: 0.75rem;\n --font-size-1: 1rem;\n --font-size-1-5: 1.25rem;\n --font-size-2: 1.5rem;\n --font-size-3: 2rem;\n --font-size-4: 2.5rem;\n --font-size-5: 3rem;\n --font-size-6: 3.5rem;\n --font-size-7: 4rem;\n --font-size-8: 4.5rem;\n --font-size-9: 5rem;\n}\n\n:root, :host {\n --font-weight-regular: 400;\n --font-weight-bold: 700;\n}\n\n:root, :host {\n --line-height-0-75: 0.75rem;\n --line-height-1: 1rem;\n --line-height-1-5: 1.5rem;\n --line-height-2: 2rem;\n --line-height-2-5: 2.5rem;\n --line-height-3: 3rem;\n --line-height-3-5: 3.5rem;\n --line-height-4: 4rem;\n --line-height-4-5: 4.5rem;\n --line-height-5: 5rem;\n --line-height-5-5: 5.5rem;\n --line-height-6: 6rem;\n --line-height-6-5: 6.5rem;\n}\n\n:root, :host {\n --border-radius: var(--space-1);\n --border-width-sm: 1px;\n --border-width-md: 2px;\n --border-width-lg: 3px;\n --alert-border-width: var(--border-width-md);\n --fieldset-border-width: var(--border-width-md);\n --input-border-width: var(--border-width-md);\n --table-border-width: var(--border-width-sm);\n}\n\n:root, :host {\n --rpf-brand-black: hsla(60, 4%, 11%, 1);\n --rpf-brand-leaf: hsla(123, 43%, 48%, 1);\n --rpf-brand-raspberry: hsla(342, 71%, 47%, 1);\n --rpf-raspberry-50: hsla(338, 57%, 97%, 1);\n --rpf-raspberry-100: hsla(342, 62%, 96%, 1);\n --rpf-raspberry-200: hsla(344, 73%, 93%, 1);\n --rpf-raspberry-400: hsla(341, 63%, 84%, 1);\n --rpf-raspberry-500: hsla(343, 62%, 68%, 1);\n --rpf-raspberry-600: hsla(343, 64%, 58%, 1);\n --rpf-raspberry-800: hsla(342, 71%, 47%, 1);\n --rpf-raspberry-900: hsla(340, 78%, 36%, 1);\n}\n\n:root, :host {\n --rpf-white: hsla(0, 0%, 100%, 1);\n --rpf-off-white: hsla(225, 25%, 97%, 1);\n --rpf-grey-50: hsla(210, 8%, 95%, 1);\n --rpf-grey-100: hsla(228, 10%, 90%, 1);\n --rpf-grey-150: hsla(223, 9%, 85%, 1);\n --rpf-grey-200: hsla(228, 10%, 80%, 1);\n --rpf-grey-300: hsla(229, 9%, 75%, 1);\n --rpf-grey-400: hsla(229, 8%, 61%, 1);\n --rpf-grey-500: hsla(229, 9%, 42%, 1);\n --rpf-grey-600: hsla(228, 9%, 32%, 1);\n --rpf-grey-700: hsla(228, 9%, 22%, 1);\n --rpf-grey-800: hsla(232, 9%, 18%, 1);\n --rpf-grey-850: hsla(228, 9%, 15%, 1);\n --rpf-grey-900: hsla(228, 9%, 10%, 1);\n --rpf-grey-950: hsla(228, 8%, 5%, 1);\n --rpf-black: hsla(0, 0%, 0%, 1);\n}\n\n:root, :host {\n --space-0-125: 0.0625rem;\n --space-0-25: 0.125rem;\n --space-0-5: 0.25rem;\n --space-1: 0.5rem;\n --space-1-5: 0.75rem;\n --space-2: 1rem;\n --space-3: 1.5rem;\n --space-4: 2rem;\n --space-5: 2.5rem;\n --space-6: 3rem;\n --space-7: 3.5rem;\n --space-8: 4rem;\n --space-9: 4.5rem;\n --space-10: 5rem;\n}\n\n.rpf-accordion {\n --background-color: var(--rpf-white);\n --border-color: var(--rpf-grey-50);\n --border-width: var(--border-width-sm);\n --text-color: var(--rpf-text-primary);\n --icon-color: var(--rpf-navy-800);\n background: var(--background-color);\n border-block-start: var(--border-width) solid var(--border-color);\n}\n.rpf-accordion:last-of-type {\n border-block-end: var(--border-width) solid var(--border-color);\n}\n.rpf-accordion__container {\n border-block-start: var(--border-width) solid var(--border-color);\n}\n.rpf-accordion__container:first-of-type {\n border-block-start: none;\n}\n.rpf-accordion__text {\n font-size: var(--font-size-1);\n font-weight: var(--font-weight-regular);\n line-height: var(--line-height-1-5);\n color: var(--text-color);\n margin: 0;\n padding-block-end: var(--space-2);\n padding-block-start: var(--space-1);\n padding-inline: var(--space-2);\n}\n.rpf-accordion__title {\n font-size: var(--font-size-1-5);\n font-weight: var(--font-weight-bold);\n line-height: var(--line-height-1-5);\n align-items: center;\n color: var(--text-color);\n cursor: pointer;\n display: flex;\n justify-content: space-between;\n list-style: none;\n padding-block: var(--space-2);\n padding-inline: var(--space-2);\n}\n.rpf-accordion__title::marker {\n display: none;\n}\n.rpf-accordion__title:focus-visible {\n outline: var(--border-width-lg) solid var(--rpf-brand-raspberry);\n}\n.rpf-accordion__icon {\n background: transparent;\n display: block;\n block-size: var(--space-0-25);\n margin-block-start: 0;\n margin-inline-start: var(--space-2);\n position: relative;\n inline-size: var(--space-2);\n}\n.rpf-accordion__icon::before, .rpf-accordion__icon::after {\n background: var(--icon-color);\n border-radius: var(--border-radius);\n content: \"\";\n block-size: var(--space-0-25);\n position: absolute;\n transition: all 0.3s;\n inline-size: var(--space-2);\n}\n.rpf-accordion__icon::before {\n transform: rotate(90deg);\n}\n.rpf-accordion[open] .rpf-accordion__icon::before, .rpf-accordion__container[open] .rpf-accordion__icon::before {\n transform: rotate(180deg);\n}\n";
1144
- styleInject(css_248z$e);
1145
-
1146
- const Accordion = ({
1147
- content,
1148
- title,
1149
- className,
1150
- id = "accordion"
1151
- }) => {
1152
- const classes = classNames("rpf-accordion", className);
1153
- return /*#__PURE__*/React.createElement("details", {
1154
- className: classes,
1155
- id: `${id}`
1156
- }, /*#__PURE__*/React.createElement("summary", {
1157
- className: "rpf-accordion__title",
1158
- role: "button"
1159
- }, title, /*#__PURE__*/React.createElement("span", {
1160
- className: "rpf-accordion__icon"
1161
- })), /*#__PURE__*/React.createElement("p", {
1162
- className: "rpf-accordion__text"
1163
- }, content));
1164
- };
1165
- Accordion.propTypes = {
1166
- content: PropTypes.string.isRequired,
1167
- title: PropTypes.string.isRequired,
1168
- id: PropTypes.string,
1169
- className: PropTypes.string
1170
- };
1171
-
1172
- var css_248z$d = ":root, :host {\n --rpf-brand-black: hsla(60, 4%, 11%, 1);\n --rpf-brand-leaf: hsla(123, 43%, 48%, 1);\n --rpf-brand-raspberry: hsla(342, 71%, 47%, 1);\n --rpf-raspberry-50: hsla(338, 57%, 97%, 1);\n --rpf-raspberry-100: hsla(342, 62%, 96%, 1);\n --rpf-raspberry-200: hsla(344, 73%, 93%, 1);\n --rpf-raspberry-400: hsla(341, 63%, 84%, 1);\n --rpf-raspberry-500: hsla(343, 62%, 68%, 1);\n --rpf-raspberry-600: hsla(343, 64%, 58%, 1);\n --rpf-raspberry-800: hsla(342, 71%, 47%, 1);\n --rpf-raspberry-900: hsla(340, 78%, 36%, 1);\n}\n\n:root, :host {\n --rpf-red-100: hsla(4, 89%, 96%, 1);\n --rpf-red-200: hsla(1, 87%, 91%, 1);\n --rpf-red-400: hsla(1, 87%, 82%, 1);\n --rpf-red-600: hsla(1, 87%, 72%, 1);\n --rpf-red-800: hsla(1, 87%, 63%, 1);\n --rpf-red-900: hsla(1, 52%, 50%, 1);\n --rpf-green-100: hsla(125, 41%, 95%, 1);\n --rpf-green-200: hsla(122, 39%, 87%, 1);\n --rpf-green-400: hsla(123, 40%, 74%, 1);\n --rpf-green-600: hsla(123, 40%, 61%, 1);\n --rpf-green-800: hsla(123, 43%, 48%, 1);\n --rpf-green-900: hsla(123, 43%, 34%, 1);\n --rpf-teal-100: hsla(176, 55%, 94%, 1);\n --rpf-teal-200: hsla(174, 55%, 85%, 1);\n --rpf-teal-400: hsla(174, 55%, 70%, 1);\n --rpf-teal-600: hsla(174, 56%, 56%, 1);\n --rpf-teal-800: hsla(174, 81%, 41%, 1);\n --rpf-teal-900: hsla(174, 81%, 27%, 1);\n --rpf-teal-950: hsla(174, 80%, 20%, 1);\n --rpf-orange-100: hsla(31, 100%, 95%, 1);\n --rpf-orange-200: hsla(32, 100%, 88%, 1);\n --rpf-orange-400: hsla(31, 100%, 77%, 1);\n --rpf-orange-600: hsla(31, 99%, 65%, 1);\n --rpf-orange-800: hsla(31, 99%, 54%, 1);\n --rpf-orange-900: hsla(31, 85%, 35%, 1);\n --rpf-yellow-100: hsla(51, 100%, 95%, 1);\n --rpf-yellow-200: hsla(52, 100%, 87%, 1);\n --rpf-yellow-400: hsla(51, 100%, 75%, 1);\n --rpf-yellow-600: hsla(52, 100%, 63%, 1);\n --rpf-yellow-800: hsla(52, 100%, 50%, 1);\n --rpf-yellow-900: hsla(52, 100%, 26%, 1);\n --rpf-purple-100: hsla(282, 36%, 95%, 1);\n --rpf-purple-200: hsla(279, 38%, 87%, 1);\n --rpf-purple-400: hsla(279, 38%, 73%, 1);\n --rpf-purple-600: hsla(279, 37%, 60%, 1);\n --rpf-purple-800: hsla(279, 43%, 47%, 1);\n --rpf-purple-900: hsla(280, 43%, 37%, 1);\n --rpf-navy-100: hsla(235, 38%, 94%, 1);\n --rpf-navy-200: hsla(234, 38%, 84%, 1);\n --rpf-navy-400: hsla(235, 38%, 69%, 1);\n --rpf-navy-600: hsla(235, 38%, 53%, 1);\n --rpf-navy-800: hsla(235, 63%, 37%, 1);\n --rpf-navy-900: hsla(234, 63%, 30%, 1);\n --rpf-blue-100: hsla(203, 86%, 95%, 1);\n --rpf-blue-200: hsla(204, 88%, 87%, 1);\n --rpf-blue-400: hsla(204, 88%, 74%, 1);\n --rpf-blue-600: hsla(204, 89%, 60%, 1);\n --rpf-blue-800: hsla(204, 100%, 47%, 1);\n --rpf-blue-900: hsla(204, 99%, 37%, 1);\n}\n\n:root, :host {\n --rpf-white: hsla(0, 0%, 100%, 1);\n --rpf-off-white: hsla(225, 25%, 97%, 1);\n --rpf-grey-50: hsla(210, 8%, 95%, 1);\n --rpf-grey-100: hsla(228, 10%, 90%, 1);\n --rpf-grey-150: hsla(223, 9%, 85%, 1);\n --rpf-grey-200: hsla(228, 10%, 80%, 1);\n --rpf-grey-300: hsla(229, 9%, 75%, 1);\n --rpf-grey-400: hsla(229, 8%, 61%, 1);\n --rpf-grey-500: hsla(229, 9%, 42%, 1);\n --rpf-grey-600: hsla(228, 9%, 32%, 1);\n --rpf-grey-700: hsla(228, 9%, 22%, 1);\n --rpf-grey-800: hsla(232, 9%, 18%, 1);\n --rpf-grey-850: hsla(228, 9%, 15%, 1);\n --rpf-grey-900: hsla(228, 9%, 10%, 1);\n --rpf-grey-950: hsla(228, 8%, 5%, 1);\n --rpf-black: hsla(0, 0%, 0%, 1);\n}\n\n:root, :host {\n --rpf-alert-error-highlight: hsla(0, 88%, 99%, 1);\n --rpf-alert-error: hsla(0, 88%, 33%, 1);\n --rpf-alert-information-highlight: hsla(225, 64%, 99%, 1);\n --rpf-alert-information: hsla(225, 64%, 33%, 1);\n --rpf-alert-success-highlight: hsla(136, 90%, 99%, 1);\n --rpf-alert-success: hsla(136, 90%, 20%, 1);\n --rpf-alert-warning-highlight: hsla(26, 70%, 99%, 1);\n --rpf-alert-warning: hsla(26, 70%, 29%, 1);\n}\n\n:root, :host {\n --font-size-0-5: 0.5rem;\n --font-size-0-75: 0.75rem;\n --font-size-1: 1rem;\n --font-size-1-5: 1.25rem;\n --font-size-2: 1.5rem;\n --font-size-3: 2rem;\n --font-size-4: 2.5rem;\n --font-size-5: 3rem;\n --font-size-6: 3.5rem;\n --font-size-7: 4rem;\n --font-size-8: 4.5rem;\n --font-size-9: 5rem;\n}\n\n:root, :host {\n --font-weight-regular: 400;\n --font-weight-bold: 700;\n}\n\n:root, :host {\n --border-radius: var(--space-1);\n --border-width-sm: 1px;\n --border-width-md: 2px;\n --border-width-lg: 3px;\n --alert-border-width: var(--border-width-md);\n --fieldset-border-width: var(--border-width-md);\n --input-border-width: var(--border-width-md);\n --table-border-width: var(--border-width-sm);\n}\n\n:root, :host {\n --space-0-125: 0.0625rem;\n --space-0-25: 0.125rem;\n --space-0-5: 0.25rem;\n --space-1: 0.5rem;\n --space-1-5: 0.75rem;\n --space-2: 1rem;\n --space-3: 1.5rem;\n --space-4: 2rem;\n --space-5: 2.5rem;\n --space-6: 3rem;\n --space-7: 3.5rem;\n --space-8: 4rem;\n --space-9: 4.5rem;\n --space-10: 5rem;\n}\n\n:root, :host {\n /* 44px min-height to meet WCAG AAA target size requirements */\n --min-target-size: 44px;\n --sm-target-size: 32px;\n --lg-target-size: 48px;\n}\n\n.rpf-button {\n --rpf-button-background-color: var(--rpf-navy-800);\n --rpf-button-background-color-hover: var(--rpf-navy-900);\n --rpf-button-background-color-active: var(--rpf-navy-600);\n --rpf-button-background-color-disabled: var(--rpf-grey-600);\n --rpf-button-text-color: var(--rpf-white);\n --rpf-button-border-radius: var(--border-radius);\n --rpf-button-lg-height: var(--lg-target-size);\n --rpf-button-sm-height: var(--sm-target-size);\n --rpf-button-min-target-size: var(--min-target-size);\n all: unset;\n align-items: center;\n box-sizing: border-box;\n color: var(--rpf-button-text-color);\n /*\n * We've decided to follow the masses on this and have a pointer on buttons.\n * Google, Facebook, Twitter, Mozilla, and Microsoft amongst many others have a pointer on buttons.\n */\n cursor: pointer;\n display: flex;\n font-size: var(--font-size-1-5);\n font-weight: var(--font-weight-bold);\n gap: var(--space-1);\n min-block-size: var(--rpf-button-lg-height);\n padding: var(--space-1) var(--space-2);\n position: relative;\n text-align: center;\n text-decoration: none;\n /* Fixes a rendering error that sometimes occurs due to negative z-index */\n transform: scale(1);\n inline-size: fit-content;\n /* A bit of a hack to allow for separate visual and target heights */\n}\n.rpf-button::before {\n background-color: var(--rpf-button-background-color);\n border-color: var(--rpf-button-background-color);\n border-radius: var(--rpf-button-border-radius);\n border-style: solid;\n border-width: 2px;\n content: \"\";\n display: block;\n inset: 0;\n position: absolute;\n /* To ensure it renders under its siblings */\n z-index: -1;\n}\n.rpf-button:hover::before {\n background-color: var(--rpf-button-background-color-hover);\n border-color: var(--rpf-button-background-color-hover);\n}\n.rpf-button:active::before {\n background-color: var(--rpf-button-background-color-active);\n border-color: var(--rpf-button-background-color-active);\n}\n.rpf-button:focus-visible::before {\n outline: 2px solid var(--rpf-button-background-color);\n outline-offset: 3px;\n}\n.rpf-button:disabled, .rpf-button--disabled {\n cursor: default;\n}\n.rpf-button:disabled::before, .rpf-button:disabled:hover::before, .rpf-button--disabled::before, .rpf-button--disabled:hover::before {\n border-color: var(--rpf-button-background-color-disabled);\n background-color: var(--rpf-button-background-color-disabled);\n}\n.rpf-button--secondary {\n color: var(--rpf-button-background-color);\n}\n.rpf-button--secondary::before {\n background-color: var(--rpf-button-text-color);\n}\n.rpf-button--secondary:hover {\n color: var(--rpf-button-background-color-hover);\n}\n.rpf-button--secondary:hover::before {\n background-color: var(--rpf-button-text-color);\n border-color: var(--rpf-button-background-color-hover);\n}\n.rpf-button--secondary:active {\n color: var(--rpf-button-background-color-active);\n}\n.rpf-button--secondary:active::before {\n background-color: var(--rpf-button-text-color);\n border-color: var(--rpf-button-background-color-active);\n}\n.rpf-button--secondary:disabled, .rpf-button--secondary.rpf-button--disabled {\n color: var(--rpf-button-background-color-disabled);\n}\n.rpf-button--secondary:disabled:hover::before, .rpf-button--secondary:disabled:before, .rpf-button--secondary.rpf-button--disabled:hover::before, .rpf-button--secondary.rpf-button--disabled:before {\n background-color: var(--rpf-button-text-color);\n border-color: var(--rpf-button-background-color-disabled);\n}\n.rpf-button--tertiary {\n color: var(--rpf-button-background-color);\n}\n.rpf-button--tertiary::before {\n background-color: transparent;\n border-color: transparent;\n}\n.rpf-button--tertiary:hover {\n color: var(--rpf-button-background-color-hover);\n}\n.rpf-button--tertiary:hover::before {\n background-color: transparent;\n border-color: transparent;\n}\n.rpf-button--tertiary:active {\n color: var(--rpf-button-background-color-active);\n}\n.rpf-button--tertiary:active::before {\n background-color: transparent;\n}\n.rpf-button--tertiary:disabled, .rpf-button--tertiary.rpf-button--disabled {\n color: var(--rpf-button-background-color-disabled);\n}\n.rpf-button--tertiary:disabled::before, .rpf-button--tertiary:disabled:hover::before, .rpf-button--tertiary.rpf-button--disabled::before, .rpf-button--tertiary.rpf-button--disabled:hover::before {\n background-color: transparent;\n border-color: transparent;\n}\n.rpf-button--danger {\n --rpf-button-background-color: var(--rpf-alert-error);\n --rpf-button-background-color-hover: var(--rpf-alert-error);\n --rpf-button-background-color-active: var(--rpf-red-900);\n}\n.rpf-button--icon-only {\n block-size: var(--rpf-button-lg-height);\n line-height: var(--rpf-button-lg-height);\n padding: 0;\n text-align: center;\n inline-size: var(--rpf-button-lg-height);\n}\n.rpf-button--icon-only .rpf-button__icon {\n margin: 0 auto;\n}\n.rpf-button--sm {\n font-size: var(--font-size-1);\n min-block-size: var(--rpf-button-min-target-size);\n padding: var(--space-1) var(--space-1);\n /* To account for 32px visual height and 44px target height */\n}\n.rpf-button--sm::before {\n inset: calc((var(--rpf-button-min-target-size) - var(--rpf-button-sm-height)) / 2) 0;\n}\n.rpf-button--sm.rpf-button--icon-only {\n block-size: var(--rpf-button-min-target-size);\n line-height: var(--rpf-button-min-target-size);\n padding: 0;\n inline-size: var(--rpf-button-min-target-size);\n}\n.rpf-button--sm.rpf-button--icon-only::before {\n inset: calc((var(--rpf-button-min-target-size) - var(--rpf-button-sm-height)) / 2);\n}\n.rpf-button--sm .material-symbols-sharp {\n font-size: 20px;\n font-variation-settings: \"OPSZ\" 20;\n}\n.rpf-button--full-width {\n justify-content: center;\n inline-size: 100%;\n}\n";
1173
- styleInject(css_248z$d);
1174
-
1175
- /* eslint-disable complexity */
1176
- const Button = ({
1177
- text,
1178
- href,
1179
- title,
1180
- className,
1181
- type = "primary",
1182
- variant = "",
1183
- size = "default",
1184
- icon = "",
1185
- iconOnly = false,
1186
- iconPosition = "left",
1187
- fullWidth = false,
1188
- disabled = false,
1189
- onClick = () => {},
1190
- "aria-label": ariaLabel = ""
1191
- }) => {
1192
- const iconButton = icon && iconOnly;
1193
- const classes = classNames(
1194
- // Static classes
1195
- "rpf-button",
1196
- // Conditional classes
1197
- {
1198
- [`rpf-button--${type}`]: type,
1199
- "rpf-button--danger": variant === "danger",
1200
- "rpf-button--sm": size === "small",
1201
- "rpf-button--icon-only": iconButton,
1202
- "rpf-button--full-width": fullWidth,
1203
- disabled
1204
- }, className);
1205
- let iconClasses = "rpf-button__icon";
1206
- if (/*#__PURE__*/React.isValidElement(icon)) {
1207
- iconClasses += " icon";
1208
- console.warn("DEPRECATED: icons as React elements will not be supported in future releases");
1209
- } else {
1210
- iconClasses += " material-symbols-sharp";
1211
- }
1212
- const renderIcon = position => icon && iconPosition === position && /*#__PURE__*/React.createElement("span", {
1213
- className: iconClasses
1214
- }, icon);
1215
- const renderText = () => text && !iconButton && /*#__PURE__*/React.createElement("span", {
1216
- className: "text"
1217
- }, text);
1218
- const content = /*#__PURE__*/React.createElement(React.Fragment, null, renderIcon("left"), renderText(), renderIcon("right"));
1219
- if (href) {
1220
- return /*#__PURE__*/React.createElement(reactRouterDom.Link, {
1221
- className: classes,
1222
- to: href,
1223
- onClick: onClick,
1224
- "aria-label": ariaLabel
1225
- }, content);
1226
- }
1227
- return /*#__PURE__*/React.createElement("button", {
1228
- className: classes,
1229
- title: title,
1230
- onClick: onClick,
1231
- disabled: disabled,
1232
- "aria-label": ariaLabel
1233
- }, content);
1234
- };
1235
- Button.propTypes = {
1236
- type: PropTypes.string,
1237
- className: PropTypes.string,
1238
- disabled: PropTypes.bool,
1239
- icon: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
1240
- href: PropTypes.string,
1241
- onClick: PropTypes.func,
1242
- text: PropTypes.string,
1243
- iconOnly: PropTypes.bool,
1244
- title: PropTypes.string,
1245
- iconPosition: PropTypes.oneOf(["left", "right"]),
1246
- size: PropTypes.oneOf(["default", "small"]),
1247
- // added size prop
1248
- "aria-label": PropTypes.string
1249
- };
1250
-
1251
- var css_248z$c = ":root, :host {\n --font-size-0-5: 0.5rem;\n --font-size-0-75: 0.75rem;\n --font-size-1: 1rem;\n --font-size-1-5: 1.25rem;\n --font-size-2: 1.5rem;\n --font-size-3: 2rem;\n --font-size-4: 2.5rem;\n --font-size-5: 3rem;\n --font-size-6: 3.5rem;\n --font-size-7: 4rem;\n --font-size-8: 4.5rem;\n --font-size-9: 5rem;\n}\n\n:root, :host {\n --font-weight-regular: 400;\n --font-weight-bold: 700;\n}\n\n:root, :host {\n --line-height-0-75: 0.75rem;\n --line-height-1: 1rem;\n --line-height-1-5: 1.5rem;\n --line-height-2: 2rem;\n --line-height-2-5: 2.5rem;\n --line-height-3: 3rem;\n --line-height-3-5: 3.5rem;\n --line-height-4: 4rem;\n --line-height-4-5: 4.5rem;\n --line-height-5: 5rem;\n --line-height-5-5: 5.5rem;\n --line-height-6: 6rem;\n --line-height-6-5: 6.5rem;\n}\n\n:root, :host {\n --rpf-alert-error-highlight: hsla(0, 88%, 99%, 1);\n --rpf-alert-error: hsla(0, 88%, 33%, 1);\n --rpf-alert-information-highlight: hsla(225, 64%, 99%, 1);\n --rpf-alert-information: hsla(225, 64%, 33%, 1);\n --rpf-alert-success-highlight: hsla(136, 90%, 99%, 1);\n --rpf-alert-success: hsla(136, 90%, 20%, 1);\n --rpf-alert-warning-highlight: hsla(26, 70%, 99%, 1);\n --rpf-alert-warning: hsla(26, 70%, 29%, 1);\n}\n\n:root, :host {\n --rpf-white: hsla(0, 0%, 100%, 1);\n --rpf-off-white: hsla(225, 25%, 97%, 1);\n --rpf-grey-50: hsla(210, 8%, 95%, 1);\n --rpf-grey-100: hsla(228, 10%, 90%, 1);\n --rpf-grey-150: hsla(223, 9%, 85%, 1);\n --rpf-grey-200: hsla(228, 10%, 80%, 1);\n --rpf-grey-300: hsla(229, 9%, 75%, 1);\n --rpf-grey-400: hsla(229, 8%, 61%, 1);\n --rpf-grey-500: hsla(229, 9%, 42%, 1);\n --rpf-grey-600: hsla(228, 9%, 32%, 1);\n --rpf-grey-700: hsla(228, 9%, 22%, 1);\n --rpf-grey-800: hsla(232, 9%, 18%, 1);\n --rpf-grey-850: hsla(228, 9%, 15%, 1);\n --rpf-grey-900: hsla(228, 9%, 10%, 1);\n --rpf-grey-950: hsla(228, 8%, 5%, 1);\n --rpf-black: hsla(0, 0%, 0%, 1);\n}\n\n:root, :host {\n --rpf-text-primary: hsla(0, 0%, 13%, 1);\n --rpf-text-primary-darkmode: var(--rpf-white);\n --rpf-text-secondary: hsla(200, 9%, 33%, 1);\n --rpf-text-secondary-darkmode: hsla(0, 0%, 80%, 1);\n --rpf-link-text: var(--rpf-navy-800);\n}\n\n:root, :host {\n --border-radius: var(--space-1);\n --border-width-sm: 1px;\n --border-width-md: 2px;\n --border-width-lg: 3px;\n --alert-border-width: var(--border-width-md);\n --fieldset-border-width: var(--border-width-md);\n --input-border-width: var(--border-width-md);\n --table-border-width: var(--border-width-sm);\n}\n\n:root, :host {\n --space-0-125: 0.0625rem;\n --space-0-25: 0.125rem;\n --space-0-5: 0.25rem;\n --space-1: 0.5rem;\n --space-1-5: 0.75rem;\n --space-2: 1rem;\n --space-3: 1.5rem;\n --space-4: 2rem;\n --space-5: 2.5rem;\n --space-6: 3rem;\n --space-7: 3.5rem;\n --space-8: 4rem;\n --space-9: 4.5rem;\n --space-10: 5rem;\n}\n\n:root {\n --rpf-alert-background-color: var(--rpf-alert-information-highlight);\n --rpf-alert-color: var(--rpf-alert-information);\n}\n\n.rpf-alert {\n align-items: center;\n background-color: var(--rpf-alert-background-color);\n border-color: var(--rpf-alert-color);\n border-radius: var(--border-radius);\n border-style: solid;\n border-width: var(--alert-border-width);\n color: var(--rpf-text-primary);\n display: flex;\n gap: var(--space-2);\n margin-block-end: var(--space-2);\n padding-block: var(--space-2);\n padding-inline: var(--space-2);\n text-align: center;\n}\n.rpf-alert__icon {\n align-self: flex-start;\n color: var(--rpf-alert-color);\n font-size: var(--font-size-2);\n}\n.rpf-alert__body {\n font-size: var(--font-size-1);\n font-weight: var(--font-weight-regular);\n line-height: var(--line-height-1-5);\n display: flex;\n flex-direction: column;\n text-align: start;\n}\n.rpf-alert__title {\n font-weight: var(--font-weight-bold);\n margin: 0;\n}\n.rpf-alert__actions {\n display: flex;\n flex-direction: row;\n gap: var(--space-2);\n}\n.rpf-alert__close {\n align-self: flex-start;\n background: none;\n border: none;\n color: inherit;\n cursor: pointer;\n font-size: var(--font-size-2);\n margin-inline-start: auto;\n}\n.rpf-alert--hidden {\n display: none;\n}\n.rpf-alert--error {\n --rpf-alert-background-color: var(--rpf-alert-error-highlight);\n --rpf-alert-color: var(--rpf-alert-error);\n}\n.rpf-alert--error .rpf-alert__icon::after {\n content: \"error_outline\";\n}\n.rpf-alert--information .rpf-alert__icon::after {\n content: \"info\";\n}\n.rpf-alert--warning {\n --rpf-alert-background-color: var(--rpf-alert-warning-highlight);\n --rpf-alert-color: var(--rpf-alert-warning);\n}\n.rpf-alert--warning .rpf-alert__icon::after {\n content: \"warning_amber\";\n}\n.rpf-alert--success {\n --rpf-alert-background-color: var(--rpf-alert-success-highlight);\n --rpf-alert-color: var(--rpf-alert-success);\n}\n.rpf-alert--success .rpf-alert__icon::after {\n content: \"check_circle\";\n}\n\n:root, :host {\n --rpf-brand-black: hsla(60, 4%, 11%, 1);\n --rpf-brand-leaf: hsla(123, 43%, 48%, 1);\n --rpf-brand-raspberry: hsla(342, 71%, 47%, 1);\n --rpf-raspberry-50: hsla(338, 57%, 97%, 1);\n --rpf-raspberry-100: hsla(342, 62%, 96%, 1);\n --rpf-raspberry-200: hsla(344, 73%, 93%, 1);\n --rpf-raspberry-400: hsla(341, 63%, 84%, 1);\n --rpf-raspberry-500: hsla(343, 62%, 68%, 1);\n --rpf-raspberry-600: hsla(343, 64%, 58%, 1);\n --rpf-raspberry-800: hsla(342, 71%, 47%, 1);\n --rpf-raspberry-900: hsla(340, 78%, 36%, 1);\n}\n\n:root, :host {\n --rpf-red-100: hsla(4, 89%, 96%, 1);\n --rpf-red-200: hsla(1, 87%, 91%, 1);\n --rpf-red-400: hsla(1, 87%, 82%, 1);\n --rpf-red-600: hsla(1, 87%, 72%, 1);\n --rpf-red-800: hsla(1, 87%, 63%, 1);\n --rpf-red-900: hsla(1, 52%, 50%, 1);\n --rpf-green-100: hsla(125, 41%, 95%, 1);\n --rpf-green-200: hsla(122, 39%, 87%, 1);\n --rpf-green-400: hsla(123, 40%, 74%, 1);\n --rpf-green-600: hsla(123, 40%, 61%, 1);\n --rpf-green-800: hsla(123, 43%, 48%, 1);\n --rpf-green-900: hsla(123, 43%, 34%, 1);\n --rpf-teal-100: hsla(176, 55%, 94%, 1);\n --rpf-teal-200: hsla(174, 55%, 85%, 1);\n --rpf-teal-400: hsla(174, 55%, 70%, 1);\n --rpf-teal-600: hsla(174, 56%, 56%, 1);\n --rpf-teal-800: hsla(174, 81%, 41%, 1);\n --rpf-teal-900: hsla(174, 81%, 27%, 1);\n --rpf-teal-950: hsla(174, 80%, 20%, 1);\n --rpf-orange-100: hsla(31, 100%, 95%, 1);\n --rpf-orange-200: hsla(32, 100%, 88%, 1);\n --rpf-orange-400: hsla(31, 100%, 77%, 1);\n --rpf-orange-600: hsla(31, 99%, 65%, 1);\n --rpf-orange-800: hsla(31, 99%, 54%, 1);\n --rpf-orange-900: hsla(31, 85%, 35%, 1);\n --rpf-yellow-100: hsla(51, 100%, 95%, 1);\n --rpf-yellow-200: hsla(52, 100%, 87%, 1);\n --rpf-yellow-400: hsla(51, 100%, 75%, 1);\n --rpf-yellow-600: hsla(52, 100%, 63%, 1);\n --rpf-yellow-800: hsla(52, 100%, 50%, 1);\n --rpf-yellow-900: hsla(52, 100%, 26%, 1);\n --rpf-purple-100: hsla(282, 36%, 95%, 1);\n --rpf-purple-200: hsla(279, 38%, 87%, 1);\n --rpf-purple-400: hsla(279, 38%, 73%, 1);\n --rpf-purple-600: hsla(279, 37%, 60%, 1);\n --rpf-purple-800: hsla(279, 43%, 47%, 1);\n --rpf-purple-900: hsla(280, 43%, 37%, 1);\n --rpf-navy-100: hsla(235, 38%, 94%, 1);\n --rpf-navy-200: hsla(234, 38%, 84%, 1);\n --rpf-navy-400: hsla(235, 38%, 69%, 1);\n --rpf-navy-600: hsla(235, 38%, 53%, 1);\n --rpf-navy-800: hsla(235, 63%, 37%, 1);\n --rpf-navy-900: hsla(234, 63%, 30%, 1);\n --rpf-blue-100: hsla(203, 86%, 95%, 1);\n --rpf-blue-200: hsla(204, 88%, 87%, 1);\n --rpf-blue-400: hsla(204, 88%, 74%, 1);\n --rpf-blue-600: hsla(204, 89%, 60%, 1);\n --rpf-blue-800: hsla(204, 100%, 47%, 1);\n --rpf-blue-900: hsla(204, 99%, 37%, 1);\n}\n\n:root, :host {\n /* 44px min-height to meet WCAG AAA target size requirements */\n --min-target-size: 44px;\n --sm-target-size: 32px;\n --lg-target-size: 48px;\n}\n\n.rpf-button {\n --rpf-button-background-color: var(--rpf-navy-800);\n --rpf-button-background-color-hover: var(--rpf-navy-900);\n --rpf-button-background-color-active: var(--rpf-navy-600);\n --rpf-button-background-color-disabled: var(--rpf-grey-600);\n --rpf-button-text-color: var(--rpf-white);\n --rpf-button-border-radius: var(--border-radius);\n --rpf-button-lg-height: var(--lg-target-size);\n --rpf-button-sm-height: var(--sm-target-size);\n --rpf-button-min-target-size: var(--min-target-size);\n all: unset;\n align-items: center;\n box-sizing: border-box;\n color: var(--rpf-button-text-color);\n /*\n * We've decided to follow the masses on this and have a pointer on buttons.\n * Google, Facebook, Twitter, Mozilla, and Microsoft amongst many others have a pointer on buttons.\n */\n cursor: pointer;\n display: flex;\n font-size: var(--font-size-1-5);\n font-weight: var(--font-weight-bold);\n gap: var(--space-1);\n min-block-size: var(--rpf-button-lg-height);\n padding: var(--space-1) var(--space-2);\n position: relative;\n text-align: center;\n text-decoration: none;\n /* Fixes a rendering error that sometimes occurs due to negative z-index */\n transform: scale(1);\n inline-size: fit-content;\n /* A bit of a hack to allow for separate visual and target heights */\n}\n.rpf-button::before {\n background-color: var(--rpf-button-background-color);\n border-color: var(--rpf-button-background-color);\n border-radius: var(--rpf-button-border-radius);\n border-style: solid;\n border-width: 2px;\n content: \"\";\n display: block;\n inset: 0;\n position: absolute;\n /* To ensure it renders under its siblings */\n z-index: -1;\n}\n.rpf-button:hover::before {\n background-color: var(--rpf-button-background-color-hover);\n border-color: var(--rpf-button-background-color-hover);\n}\n.rpf-button:active::before {\n background-color: var(--rpf-button-background-color-active);\n border-color: var(--rpf-button-background-color-active);\n}\n.rpf-button:focus-visible::before {\n outline: 2px solid var(--rpf-button-background-color);\n outline-offset: 3px;\n}\n.rpf-button:disabled, .rpf-button--disabled {\n cursor: default;\n}\n.rpf-button:disabled::before, .rpf-button:disabled:hover::before, .rpf-button--disabled::before, .rpf-button--disabled:hover::before {\n border-color: var(--rpf-button-background-color-disabled);\n background-color: var(--rpf-button-background-color-disabled);\n}\n.rpf-button--secondary {\n color: var(--rpf-button-background-color);\n}\n.rpf-button--secondary::before {\n background-color: var(--rpf-button-text-color);\n}\n.rpf-button--secondary:hover {\n color: var(--rpf-button-background-color-hover);\n}\n.rpf-button--secondary:hover::before {\n background-color: var(--rpf-button-text-color);\n border-color: var(--rpf-button-background-color-hover);\n}\n.rpf-button--secondary:active {\n color: var(--rpf-button-background-color-active);\n}\n.rpf-button--secondary:active::before {\n background-color: var(--rpf-button-text-color);\n border-color: var(--rpf-button-background-color-active);\n}\n.rpf-button--secondary:disabled, .rpf-button--secondary.rpf-button--disabled {\n color: var(--rpf-button-background-color-disabled);\n}\n.rpf-button--secondary:disabled:hover::before, .rpf-button--secondary:disabled:before, .rpf-button--secondary.rpf-button--disabled:hover::before, .rpf-button--secondary.rpf-button--disabled:before {\n background-color: var(--rpf-button-text-color);\n border-color: var(--rpf-button-background-color-disabled);\n}\n.rpf-button--tertiary {\n color: var(--rpf-button-background-color);\n}\n.rpf-button--tertiary::before {\n background-color: transparent;\n border-color: transparent;\n}\n.rpf-button--tertiary:hover {\n color: var(--rpf-button-background-color-hover);\n}\n.rpf-button--tertiary:hover::before {\n background-color: transparent;\n border-color: transparent;\n}\n.rpf-button--tertiary:active {\n color: var(--rpf-button-background-color-active);\n}\n.rpf-button--tertiary:active::before {\n background-color: transparent;\n}\n.rpf-button--tertiary:disabled, .rpf-button--tertiary.rpf-button--disabled {\n color: var(--rpf-button-background-color-disabled);\n}\n.rpf-button--tertiary:disabled::before, .rpf-button--tertiary:disabled:hover::before, .rpf-button--tertiary.rpf-button--disabled::before, .rpf-button--tertiary.rpf-button--disabled:hover::before {\n background-color: transparent;\n border-color: transparent;\n}\n.rpf-button--danger {\n --rpf-button-background-color: var(--rpf-alert-error);\n --rpf-button-background-color-hover: var(--rpf-alert-error);\n --rpf-button-background-color-active: var(--rpf-red-900);\n}\n.rpf-button--icon-only {\n block-size: var(--rpf-button-lg-height);\n line-height: var(--rpf-button-lg-height);\n padding: 0;\n text-align: center;\n inline-size: var(--rpf-button-lg-height);\n}\n.rpf-button--icon-only .rpf-button__icon {\n margin: 0 auto;\n}\n.rpf-button--sm {\n font-size: var(--font-size-1);\n min-block-size: var(--rpf-button-min-target-size);\n padding: var(--space-1) var(--space-1);\n /* To account for 32px visual height and 44px target height */\n}\n.rpf-button--sm::before {\n inset: calc((var(--rpf-button-min-target-size) - var(--rpf-button-sm-height)) / 2) 0;\n}\n.rpf-button--sm.rpf-button--icon-only {\n block-size: var(--rpf-button-min-target-size);\n line-height: var(--rpf-button-min-target-size);\n padding: 0;\n inline-size: var(--rpf-button-min-target-size);\n}\n.rpf-button--sm.rpf-button--icon-only::before {\n inset: calc((var(--rpf-button-min-target-size) - var(--rpf-button-sm-height)) / 2);\n}\n.rpf-button--sm .material-symbols-sharp {\n font-size: 20px;\n font-variation-settings: \"OPSZ\" 20;\n}\n.rpf-button--full-width {\n justify-content: center;\n inline-size: 100%;\n}\n";
1252
- styleInject(css_248z$c);
1253
-
1254
- /* eslint-disable complexity */
1255
- const Alert = ({
1256
- title,
1257
- text,
1258
- children,
1259
- type,
1260
- actions
1261
- }) => /*#__PURE__*/React.createElement("div", {
1262
- className: `rpf-alert rpf-alert--${type}`
1263
- }, /*#__PURE__*/React.createElement("span", {
1264
- className: "rpf-alert__icon material-symbols-sharp"
1265
- }), /*#__PURE__*/React.createElement("div", {
1266
- className: "rpf-alert__body"
1267
- }, /*#__PURE__*/React.createElement("p", {
1268
- className: "rpf-alert__title"
1269
- }, title), text && /*#__PURE__*/React.createElement("p", null, text), children && /*#__PURE__*/React.createElement("div", null, children), actions && actions.length > 0 && /*#__PURE__*/React.createElement("div", {
1270
- className: "rpf-alert__actions"
1271
- }, actions.map(action => /*#__PURE__*/React.createElement(Button, {
1272
- key: action.key || action.label,
1273
- text: action.label,
1274
- size: "small",
1275
- type: "tertiary",
1276
- href: action.href,
1277
- onClick: action.onClick
1278
- })))));
1279
- Alert.propTypes = {
1280
- title: PropTypes.string,
1281
- text: PropTypes.string,
1282
- type: PropTypes.oneOf(["error", "warning", "information", "success"]),
1283
- actions: PropTypes.arrayOf(PropTypes.shape({
1284
- href: PropTypes.string,
1285
- label: PropTypes.string,
1286
- onClick: PropTypes.func
1287
- })),
1288
- children: PropTypes.node
1289
- };
1290
-
1291
- var css_248z$b = ":root, :host {\n --font-size-0-5: 0.5rem;\n --font-size-0-75: 0.75rem;\n --font-size-1: 1rem;\n --font-size-1-5: 1.25rem;\n --font-size-2: 1.5rem;\n --font-size-3: 2rem;\n --font-size-4: 2.5rem;\n --font-size-5: 3rem;\n --font-size-6: 3.5rem;\n --font-size-7: 4rem;\n --font-size-8: 4.5rem;\n --font-size-9: 5rem;\n}\n\n:root, :host {\n --font-weight-regular: 400;\n --font-weight-bold: 700;\n}\n\n:root, :host {\n --line-height-0-75: 0.75rem;\n --line-height-1: 1rem;\n --line-height-1-5: 1.5rem;\n --line-height-2: 2rem;\n --line-height-2-5: 2.5rem;\n --line-height-3: 3rem;\n --line-height-3-5: 3.5rem;\n --line-height-4: 4rem;\n --line-height-4-5: 4.5rem;\n --line-height-5: 5rem;\n --line-height-5-5: 5.5rem;\n --line-height-6: 6rem;\n --line-height-6-5: 6.5rem;\n}\n\n:root, :host {\n --space-0-125: 0.0625rem;\n --space-0-25: 0.125rem;\n --space-0-5: 0.25rem;\n --space-1: 0.5rem;\n --space-1-5: 0.75rem;\n --space-2: 1rem;\n --space-3: 1.5rem;\n --space-4: 2rem;\n --space-5: 2.5rem;\n --space-6: 3rem;\n --space-7: 3.5rem;\n --space-8: 4rem;\n --space-9: 4.5rem;\n --space-10: 5rem;\n}\n\n:root, :host {\n --rpf-white: hsla(0, 0%, 100%, 1);\n --rpf-off-white: hsla(225, 25%, 97%, 1);\n --rpf-grey-50: hsla(210, 8%, 95%, 1);\n --rpf-grey-100: hsla(228, 10%, 90%, 1);\n --rpf-grey-150: hsla(223, 9%, 85%, 1);\n --rpf-grey-200: hsla(228, 10%, 80%, 1);\n --rpf-grey-300: hsla(229, 9%, 75%, 1);\n --rpf-grey-400: hsla(229, 8%, 61%, 1);\n --rpf-grey-500: hsla(229, 9%, 42%, 1);\n --rpf-grey-600: hsla(228, 9%, 32%, 1);\n --rpf-grey-700: hsla(228, 9%, 22%, 1);\n --rpf-grey-800: hsla(232, 9%, 18%, 1);\n --rpf-grey-850: hsla(228, 9%, 15%, 1);\n --rpf-grey-900: hsla(228, 9%, 10%, 1);\n --rpf-grey-950: hsla(228, 8%, 5%, 1);\n --rpf-black: hsla(0, 0%, 0%, 1);\n}\n\n:root, :host {\n --rpf-red-100: hsla(4, 89%, 96%, 1);\n --rpf-red-200: hsla(1, 87%, 91%, 1);\n --rpf-red-400: hsla(1, 87%, 82%, 1);\n --rpf-red-600: hsla(1, 87%, 72%, 1);\n --rpf-red-800: hsla(1, 87%, 63%, 1);\n --rpf-red-900: hsla(1, 52%, 50%, 1);\n --rpf-green-100: hsla(125, 41%, 95%, 1);\n --rpf-green-200: hsla(122, 39%, 87%, 1);\n --rpf-green-400: hsla(123, 40%, 74%, 1);\n --rpf-green-600: hsla(123, 40%, 61%, 1);\n --rpf-green-800: hsla(123, 43%, 48%, 1);\n --rpf-green-900: hsla(123, 43%, 34%, 1);\n --rpf-teal-100: hsla(176, 55%, 94%, 1);\n --rpf-teal-200: hsla(174, 55%, 85%, 1);\n --rpf-teal-400: hsla(174, 55%, 70%, 1);\n --rpf-teal-600: hsla(174, 56%, 56%, 1);\n --rpf-teal-800: hsla(174, 81%, 41%, 1);\n --rpf-teal-900: hsla(174, 81%, 27%, 1);\n --rpf-teal-950: hsla(174, 80%, 20%, 1);\n --rpf-orange-100: hsla(31, 100%, 95%, 1);\n --rpf-orange-200: hsla(32, 100%, 88%, 1);\n --rpf-orange-400: hsla(31, 100%, 77%, 1);\n --rpf-orange-600: hsla(31, 99%, 65%, 1);\n --rpf-orange-800: hsla(31, 99%, 54%, 1);\n --rpf-orange-900: hsla(31, 85%, 35%, 1);\n --rpf-yellow-100: hsla(51, 100%, 95%, 1);\n --rpf-yellow-200: hsla(52, 100%, 87%, 1);\n --rpf-yellow-400: hsla(51, 100%, 75%, 1);\n --rpf-yellow-600: hsla(52, 100%, 63%, 1);\n --rpf-yellow-800: hsla(52, 100%, 50%, 1);\n --rpf-yellow-900: hsla(52, 100%, 26%, 1);\n --rpf-purple-100: hsla(282, 36%, 95%, 1);\n --rpf-purple-200: hsla(279, 38%, 87%, 1);\n --rpf-purple-400: hsla(279, 38%, 73%, 1);\n --rpf-purple-600: hsla(279, 37%, 60%, 1);\n --rpf-purple-800: hsla(279, 43%, 47%, 1);\n --rpf-purple-900: hsla(280, 43%, 37%, 1);\n --rpf-navy-100: hsla(235, 38%, 94%, 1);\n --rpf-navy-200: hsla(234, 38%, 84%, 1);\n --rpf-navy-400: hsla(235, 38%, 69%, 1);\n --rpf-navy-600: hsla(235, 38%, 53%, 1);\n --rpf-navy-800: hsla(235, 63%, 37%, 1);\n --rpf-navy-900: hsla(234, 63%, 30%, 1);\n --rpf-blue-100: hsla(203, 86%, 95%, 1);\n --rpf-blue-200: hsla(204, 88%, 87%, 1);\n --rpf-blue-400: hsla(204, 88%, 74%, 1);\n --rpf-blue-600: hsla(204, 89%, 60%, 1);\n --rpf-blue-800: hsla(204, 100%, 47%, 1);\n --rpf-blue-900: hsla(204, 99%, 37%, 1);\n}\n\n:root {\n --color-progress-bar-complete: var(--rpf-navy-800);\n --color-progress-bar-incomplete: var(--rpf-grey-150);\n}\n\n.rpf-progress-bar__label {\n font-size: var(--font-size-1);\n font-weight: var(--font-weight-regular);\n line-height: var(--line-height-1-5);\n align-items: center;\n display: grid;\n grid-gap: var(--space-3);\n grid-template-columns: max-content 1fr;\n}\n.rpf-progress-bar__bar {\n background: var(--color-progress-bar-incomplete);\n block-size: 0.375rem;\n border-radius: 0.375rem;\n inline-size: 100%;\n}\n.rpf-progress-bar__bar::-webkit-progress-bar {\n background: var(--color-progress-bar-incomplete);\n border-radius: 0.375rem;\n}\n.rpf-progress-bar__bar::-webkit-progress-value {\n background: var(--color-progress-bar-complete);\n border-radius: 0.375rem;\n}\n.rpf-progress-bar__bar::-moz-progress-bar {\n background: var(--color-progress-bar-complete);\n border-radius: 0.375rem;\n}\n";
1292
- styleInject(css_248z$b);
1293
-
1294
- /* eslint-disable complexity */
1295
- const ProgressBar = ({
1296
- text = "",
1297
- percent
1298
- }) => /*#__PURE__*/React.createElement("div", {
1299
- className: "rpf-progress-bar"
1300
- }, /*#__PURE__*/React.createElement("label", {
1301
- class: "rpf-progress-bar__label"
1302
- }, /*#__PURE__*/React.createElement("span", null, text), /*#__PURE__*/React.createElement("progress", {
1303
- class: "rpf-progress-bar__bar",
1304
- value: percent,
1305
- max: "100"
1306
- }, `${percent}%`)));
1307
- ProgressBar.propTypes = {
1308
- text: PropTypes.string,
1309
- percent: PropTypes.number.isRequired
1310
- };
1311
-
1312
- var css_248z$a = ":root, :host {\n --border-radius: var(--space-1);\n --border-width-sm: 1px;\n --border-width-md: 2px;\n --border-width-lg: 3px;\n --alert-border-width: var(--border-width-md);\n --fieldset-border-width: var(--border-width-md);\n --input-border-width: var(--border-width-md);\n --table-border-width: var(--border-width-sm);\n}\n\n:root, :host {\n --rpf-alert-error-highlight: hsla(0, 88%, 99%, 1);\n --rpf-alert-error: hsla(0, 88%, 33%, 1);\n --rpf-alert-information-highlight: hsla(225, 64%, 99%, 1);\n --rpf-alert-information: hsla(225, 64%, 33%, 1);\n --rpf-alert-success-highlight: hsla(136, 90%, 99%, 1);\n --rpf-alert-success: hsla(136, 90%, 20%, 1);\n --rpf-alert-warning-highlight: hsla(26, 70%, 99%, 1);\n --rpf-alert-warning: hsla(26, 70%, 29%, 1);\n}\n\n:root, :host {\n --rpf-white: hsla(0, 0%, 100%, 1);\n --rpf-off-white: hsla(225, 25%, 97%, 1);\n --rpf-grey-50: hsla(210, 8%, 95%, 1);\n --rpf-grey-100: hsla(228, 10%, 90%, 1);\n --rpf-grey-150: hsla(223, 9%, 85%, 1);\n --rpf-grey-200: hsla(228, 10%, 80%, 1);\n --rpf-grey-300: hsla(229, 9%, 75%, 1);\n --rpf-grey-400: hsla(229, 8%, 61%, 1);\n --rpf-grey-500: hsla(229, 9%, 42%, 1);\n --rpf-grey-600: hsla(228, 9%, 32%, 1);\n --rpf-grey-700: hsla(228, 9%, 22%, 1);\n --rpf-grey-800: hsla(232, 9%, 18%, 1);\n --rpf-grey-850: hsla(228, 9%, 15%, 1);\n --rpf-grey-900: hsla(228, 9%, 10%, 1);\n --rpf-grey-950: hsla(228, 8%, 5%, 1);\n --rpf-black: hsla(0, 0%, 0%, 1);\n}\n\n:root, :host {\n --rpf-red-100: hsla(4, 89%, 96%, 1);\n --rpf-red-200: hsla(1, 87%, 91%, 1);\n --rpf-red-400: hsla(1, 87%, 82%, 1);\n --rpf-red-600: hsla(1, 87%, 72%, 1);\n --rpf-red-800: hsla(1, 87%, 63%, 1);\n --rpf-red-900: hsla(1, 52%, 50%, 1);\n --rpf-green-100: hsla(125, 41%, 95%, 1);\n --rpf-green-200: hsla(122, 39%, 87%, 1);\n --rpf-green-400: hsla(123, 40%, 74%, 1);\n --rpf-green-600: hsla(123, 40%, 61%, 1);\n --rpf-green-800: hsla(123, 43%, 48%, 1);\n --rpf-green-900: hsla(123, 43%, 34%, 1);\n --rpf-teal-100: hsla(176, 55%, 94%, 1);\n --rpf-teal-200: hsla(174, 55%, 85%, 1);\n --rpf-teal-400: hsla(174, 55%, 70%, 1);\n --rpf-teal-600: hsla(174, 56%, 56%, 1);\n --rpf-teal-800: hsla(174, 81%, 41%, 1);\n --rpf-teal-900: hsla(174, 81%, 27%, 1);\n --rpf-teal-950: hsla(174, 80%, 20%, 1);\n --rpf-orange-100: hsla(31, 100%, 95%, 1);\n --rpf-orange-200: hsla(32, 100%, 88%, 1);\n --rpf-orange-400: hsla(31, 100%, 77%, 1);\n --rpf-orange-600: hsla(31, 99%, 65%, 1);\n --rpf-orange-800: hsla(31, 99%, 54%, 1);\n --rpf-orange-900: hsla(31, 85%, 35%, 1);\n --rpf-yellow-100: hsla(51, 100%, 95%, 1);\n --rpf-yellow-200: hsla(52, 100%, 87%, 1);\n --rpf-yellow-400: hsla(51, 100%, 75%, 1);\n --rpf-yellow-600: hsla(52, 100%, 63%, 1);\n --rpf-yellow-800: hsla(52, 100%, 50%, 1);\n --rpf-yellow-900: hsla(52, 100%, 26%, 1);\n --rpf-purple-100: hsla(282, 36%, 95%, 1);\n --rpf-purple-200: hsla(279, 38%, 87%, 1);\n --rpf-purple-400: hsla(279, 38%, 73%, 1);\n --rpf-purple-600: hsla(279, 37%, 60%, 1);\n --rpf-purple-800: hsla(279, 43%, 47%, 1);\n --rpf-purple-900: hsla(280, 43%, 37%, 1);\n --rpf-navy-100: hsla(235, 38%, 94%, 1);\n --rpf-navy-200: hsla(234, 38%, 84%, 1);\n --rpf-navy-400: hsla(235, 38%, 69%, 1);\n --rpf-navy-600: hsla(235, 38%, 53%, 1);\n --rpf-navy-800: hsla(235, 63%, 37%, 1);\n --rpf-navy-900: hsla(234, 63%, 30%, 1);\n --rpf-blue-100: hsla(203, 86%, 95%, 1);\n --rpf-blue-200: hsla(204, 88%, 87%, 1);\n --rpf-blue-400: hsla(204, 88%, 74%, 1);\n --rpf-blue-600: hsla(204, 89%, 60%, 1);\n --rpf-blue-800: hsla(204, 100%, 47%, 1);\n --rpf-blue-900: hsla(204, 99%, 37%, 1);\n}\n\n:root, :host {\n --rpf-text-primary: hsla(0, 0%, 13%, 1);\n --rpf-text-primary-darkmode: var(--rpf-white);\n --rpf-text-secondary: hsla(200, 9%, 33%, 1);\n --rpf-text-secondary-darkmode: hsla(0, 0%, 80%, 1);\n --rpf-link-text: var(--rpf-navy-800);\n}\n\n:root, :host {\n --rpf-input-background-color: var(--rpf-white);\n --rpf-input-background-color-disabled: var(--rpf-grey-50);\n --rpf-input-background-color-readonly: var(--rpf-grey-50);\n --rpf-input-color-error: var(--rpf-alert-error);\n --rpf-input-color: var(--rpf-text-primary);\n --rpf-input-outline-color: var(--rpf-blue-800);\n}\n\n:root, :host {\n --font-size-0-5: 0.5rem;\n --font-size-0-75: 0.75rem;\n --font-size-1: 1rem;\n --font-size-1-5: 1.25rem;\n --font-size-2: 1.5rem;\n --font-size-3: 2rem;\n --font-size-4: 2.5rem;\n --font-size-5: 3rem;\n --font-size-6: 3.5rem;\n --font-size-7: 4rem;\n --font-size-8: 4.5rem;\n --font-size-9: 5rem;\n}\n\n:root, :host {\n --space-0-125: 0.0625rem;\n --space-0-25: 0.125rem;\n --space-0-5: 0.25rem;\n --space-1: 0.5rem;\n --space-1-5: 0.75rem;\n --space-2: 1rem;\n --space-3: 1.5rem;\n --space-4: 2rem;\n --space-5: 2.5rem;\n --space-6: 3rem;\n --space-7: 3.5rem;\n --space-8: 4rem;\n --space-9: 4.5rem;\n --space-10: 5rem;\n}\n\n.rpf-input-field {\n margin-block-end: var(--space-3);\n}\n\n.rpf-input {\n all: unset;\n background-color: var(--rpf-input-background-color);\n border: var(--input-border-width) solid var(--rpf-input-color);\n border-radius: var(--border-radius);\n box-sizing: border-box;\n color: var(--rpf-input-color);\n display: flex;\n font-size: var(--font-size-1);\n line-height: var(--line-height-2);\n padding-block: calc(var(--space-1) - 2px);\n padding-inline: var(--space-1-5);\n max-width: 50ch;\n min-width: 240px;\n width: 100%;\n}\n.rpf-input:disabled, .rpf-input--disabled {\n border-color: var(--rpf-input-background-color-disabled);\n background-color: var(--rpf-input-background-color-disabled);\n}\n.rpf-input:focus-visible {\n outline: 3px solid var(--rpf-input-outline-color);\n}\n.rpf-input--error {\n border-color: var(--rpf-input-color-error);\n}\n.rpf-input--full-width {\n max-width: none;\n}\n\n:root, :host {\n --font-weight-regular: 400;\n --font-weight-bold: 700;\n}\n\n:root, :host {\n --line-height-0-75: 0.75rem;\n --line-height-1: 1rem;\n --line-height-1-5: 1.5rem;\n --line-height-2: 2rem;\n --line-height-2-5: 2.5rem;\n --line-height-3: 3rem;\n --line-height-3-5: 3.5rem;\n --line-height-4: 4rem;\n --line-height-4-5: 4.5rem;\n --line-height-5: 5rem;\n --line-height-5-5: 5.5rem;\n --line-height-6: 6rem;\n --line-height-6-5: 6.5rem;\n}\n\n:root {\n --rpf-label-hint-color: var(--rpf-text-secondary);\n --rpf-label-text-color: var(--rpf-text-primary);\n --rpf-label-text-color-disabled: var(--rpf-grey-500);\n}\n\n.rpf-label {\n all: unset;\n color: var(--rpf-label-text-color);\n display: flex;\n flex-direction: column;\n font-weight: var(--font-weight-bold);\n padding-block-end: var(--space-1);\n font-size: var(--font-size-1);\n line-height: var(--line-height-1-5);\n}\n.rpf-label__hint {\n color: var(--rpf-label-hint-color);\n font-size: var(--font-size-1);\n font-weight: var(--font-weight-regular);\n}\n.rpf-label--disabled {\n color: var(--rpf-label-text-color-disabled);\n}\n.rpf-label--disabled .rpf-label__hint {\n color: var(--rpf-label-text-color-disabled);\n}\n\n:root, :host {\n /* 44px min-height to meet WCAG AAA target size requirements */\n --min-target-size: 44px;\n --sm-target-size: 32px;\n --lg-target-size: 48px;\n}\n\n.rpf-input-checkbox {\n --rpf-input-checkbox-hit-target: var(--min-target-size);\n --rpf-input-checkbox-size: var(--space-3);\n align-items: center;\n border-radius: var(--space-1);\n box-sizing: border-box;\n display: flex;\n gap: var(--space-1-5);\n margin-block-end: var(--space-1);\n max-width: 50ch;\n min-height: var(--rpf-input-checkbox-hit-target);\n min-width: 240px;\n padding-block: calc((var(--rpf-input-checkbox-hit-target) - var(--rpf-input-checkbox-size)) / 2);\n padding-inline: var(--space-1);\n width: 100%;\n}\n.rpf-input-checkbox input[type=checkbox] {\n align-self: flex-start;\n appearance: none;\n background: var(--rpf-white);\n border: var(--space-0-25) solid var(--rpf-grey-850);\n border-radius: var(--space-0-5);\n flex-shrink: 0;\n height: var(--rpf-input-checkbox-size);\n margin: 0;\n width: var(--rpf-input-checkbox-size);\n}\n.rpf-input-checkbox input[type=checkbox]:checked {\n background: var(--rpf-grey-850);\n background-image: url('data:image/svg+xml;utf8,<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M7.95834 15.0003L3.20834 10.2503L4.39584 9.06283L7.95834 12.6253L15.6042 4.97949L16.7917 6.16699L7.95834 15.0003Z\" fill=\"white\"/></svg>');\n}\n.rpf-input-checkbox input[type=checkbox]:disabled {\n border-color: var(--rpf-grey-600);\n}\n.rpf-input-checkbox input[type=checkbox]:disabled:checked {\n background-color: var(--rpf-grey-600);\n}\n.rpf-input-checkbox.rpf-input--full-width {\n max-width: none;\n}\n.rpf-input-checkbox:has(> input[type=checkbox]:disabled), .rpf-input-checkbox--disabled {\n background-color: var(--rpf-input-background-color-disabled);\n color: var(--rpf-grey-400);\n}\n.rpf-input-checkbox:has(> input[type=checkbox]:focus-visible) {\n outline: 3px solid var(--rpf-input-outline-color);\n}\n.rpf-input-checkbox:has(> input[type=checkbox]:focus-visible) > input[type=checkbox]:focus-visible {\n outline: none;\n}\n\n:root {\n --rpf-message-text-color: var(--rpf-alert-error);\n}\n\n.rpf-error-message {\n all: unset;\n align-items: center;\n color: var(--rpf-message-text-color);\n display: flex;\n font-weight: var(--font-weight-bold);\n padding-block: var(--space-1);\n}\n.rpf-error-message__icon {\n margin-inline-end: var(--space-1);\n}\n";
1313
- styleInject(css_248z$a);
1314
-
1315
- const CheckboxInput = ({
1316
- id,
1317
- label,
1318
- name,
1319
- checked = false,
1320
- disabled = false,
1321
- error = "",
1322
- onChange = () => {},
1323
- value = ""
1324
- }) => /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("label", {
1325
- className: classNames("rpf-input-checkbox", {
1326
- "rpf-input-checkbox--error": error
1327
- })
1328
- }, /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("input", {
1329
- checked: !!checked,
1330
- disabled: disabled,
1331
- id: id,
1332
- name: name,
1333
- onChange: onChange,
1334
- type: "checkbox",
1335
- value: value
1336
- })), /*#__PURE__*/React.createElement("span", {
1337
- className: "checkmark"
1338
- }), label), error && /*#__PURE__*/React.createElement("div", {
1339
- className: "rpf-error-message"
1340
- }, /*#__PURE__*/React.createElement("span", {
1341
- className: "rpf-error-message__icon material-symbols-sharp"
1342
- }, "error"), error));
1343
- CheckboxInput.propTypes = {
1344
- checked: PropTypes.bool,
1345
- disabled: PropTypes.bool,
1346
- error: PropTypes.string,
1347
- id: PropTypes.string.isRequired,
1348
- label: PropTypes.oneOfType([PropTypes.string, PropTypes.object]).isRequired,
1349
- name: PropTypes.string.isRequired,
1350
- onChange: PropTypes.func,
1351
- value: PropTypes.string
1352
- };
1353
-
1354
- var css_248z$9 = ":root, :host {\n --border-radius: var(--space-1);\n --border-width-sm: 1px;\n --border-width-md: 2px;\n --border-width-lg: 3px;\n --alert-border-width: var(--border-width-md);\n --fieldset-border-width: var(--border-width-md);\n --input-border-width: var(--border-width-md);\n --table-border-width: var(--border-width-sm);\n}\n\n:root, :host {\n --rpf-alert-error-highlight: hsla(0, 88%, 99%, 1);\n --rpf-alert-error: hsla(0, 88%, 33%, 1);\n --rpf-alert-information-highlight: hsla(225, 64%, 99%, 1);\n --rpf-alert-information: hsla(225, 64%, 33%, 1);\n --rpf-alert-success-highlight: hsla(136, 90%, 99%, 1);\n --rpf-alert-success: hsla(136, 90%, 20%, 1);\n --rpf-alert-warning-highlight: hsla(26, 70%, 99%, 1);\n --rpf-alert-warning: hsla(26, 70%, 29%, 1);\n}\n\n:root, :host {\n --rpf-white: hsla(0, 0%, 100%, 1);\n --rpf-off-white: hsla(225, 25%, 97%, 1);\n --rpf-grey-50: hsla(210, 8%, 95%, 1);\n --rpf-grey-100: hsla(228, 10%, 90%, 1);\n --rpf-grey-150: hsla(223, 9%, 85%, 1);\n --rpf-grey-200: hsla(228, 10%, 80%, 1);\n --rpf-grey-300: hsla(229, 9%, 75%, 1);\n --rpf-grey-400: hsla(229, 8%, 61%, 1);\n --rpf-grey-500: hsla(229, 9%, 42%, 1);\n --rpf-grey-600: hsla(228, 9%, 32%, 1);\n --rpf-grey-700: hsla(228, 9%, 22%, 1);\n --rpf-grey-800: hsla(232, 9%, 18%, 1);\n --rpf-grey-850: hsla(228, 9%, 15%, 1);\n --rpf-grey-900: hsla(228, 9%, 10%, 1);\n --rpf-grey-950: hsla(228, 8%, 5%, 1);\n --rpf-black: hsla(0, 0%, 0%, 1);\n}\n\n:root, :host {\n --rpf-red-100: hsla(4, 89%, 96%, 1);\n --rpf-red-200: hsla(1, 87%, 91%, 1);\n --rpf-red-400: hsla(1, 87%, 82%, 1);\n --rpf-red-600: hsla(1, 87%, 72%, 1);\n --rpf-red-800: hsla(1, 87%, 63%, 1);\n --rpf-red-900: hsla(1, 52%, 50%, 1);\n --rpf-green-100: hsla(125, 41%, 95%, 1);\n --rpf-green-200: hsla(122, 39%, 87%, 1);\n --rpf-green-400: hsla(123, 40%, 74%, 1);\n --rpf-green-600: hsla(123, 40%, 61%, 1);\n --rpf-green-800: hsla(123, 43%, 48%, 1);\n --rpf-green-900: hsla(123, 43%, 34%, 1);\n --rpf-teal-100: hsla(176, 55%, 94%, 1);\n --rpf-teal-200: hsla(174, 55%, 85%, 1);\n --rpf-teal-400: hsla(174, 55%, 70%, 1);\n --rpf-teal-600: hsla(174, 56%, 56%, 1);\n --rpf-teal-800: hsla(174, 81%, 41%, 1);\n --rpf-teal-900: hsla(174, 81%, 27%, 1);\n --rpf-teal-950: hsla(174, 80%, 20%, 1);\n --rpf-orange-100: hsla(31, 100%, 95%, 1);\n --rpf-orange-200: hsla(32, 100%, 88%, 1);\n --rpf-orange-400: hsla(31, 100%, 77%, 1);\n --rpf-orange-600: hsla(31, 99%, 65%, 1);\n --rpf-orange-800: hsla(31, 99%, 54%, 1);\n --rpf-orange-900: hsla(31, 85%, 35%, 1);\n --rpf-yellow-100: hsla(51, 100%, 95%, 1);\n --rpf-yellow-200: hsla(52, 100%, 87%, 1);\n --rpf-yellow-400: hsla(51, 100%, 75%, 1);\n --rpf-yellow-600: hsla(52, 100%, 63%, 1);\n --rpf-yellow-800: hsla(52, 100%, 50%, 1);\n --rpf-yellow-900: hsla(52, 100%, 26%, 1);\n --rpf-purple-100: hsla(282, 36%, 95%, 1);\n --rpf-purple-200: hsla(279, 38%, 87%, 1);\n --rpf-purple-400: hsla(279, 38%, 73%, 1);\n --rpf-purple-600: hsla(279, 37%, 60%, 1);\n --rpf-purple-800: hsla(279, 43%, 47%, 1);\n --rpf-purple-900: hsla(280, 43%, 37%, 1);\n --rpf-navy-100: hsla(235, 38%, 94%, 1);\n --rpf-navy-200: hsla(234, 38%, 84%, 1);\n --rpf-navy-400: hsla(235, 38%, 69%, 1);\n --rpf-navy-600: hsla(235, 38%, 53%, 1);\n --rpf-navy-800: hsla(235, 63%, 37%, 1);\n --rpf-navy-900: hsla(234, 63%, 30%, 1);\n --rpf-blue-100: hsla(203, 86%, 95%, 1);\n --rpf-blue-200: hsla(204, 88%, 87%, 1);\n --rpf-blue-400: hsla(204, 88%, 74%, 1);\n --rpf-blue-600: hsla(204, 89%, 60%, 1);\n --rpf-blue-800: hsla(204, 100%, 47%, 1);\n --rpf-blue-900: hsla(204, 99%, 37%, 1);\n}\n\n:root, :host {\n --rpf-text-primary: hsla(0, 0%, 13%, 1);\n --rpf-text-primary-darkmode: var(--rpf-white);\n --rpf-text-secondary: hsla(200, 9%, 33%, 1);\n --rpf-text-secondary-darkmode: hsla(0, 0%, 80%, 1);\n --rpf-link-text: var(--rpf-navy-800);\n}\n\n:root, :host {\n --rpf-input-background-color: var(--rpf-white);\n --rpf-input-background-color-disabled: var(--rpf-grey-50);\n --rpf-input-background-color-readonly: var(--rpf-grey-50);\n --rpf-input-color-error: var(--rpf-alert-error);\n --rpf-input-color: var(--rpf-text-primary);\n --rpf-input-outline-color: var(--rpf-blue-800);\n}\n\n.rpf-fieldset {\n all: unset;\n background-color: var(--rpf-input-background-color);\n box-sizing: border-box;\n display: block;\n color: var(--rpf-input-color);\n margin-block-end: var(--space-3);\n max-inline-size: fit-content;\n}\n.rpf-fieldset legend {\n background-color: var(--rpf-input-background-color);\n color: var(--rpf-input-color);\n inline-size: 100%;\n}\n.rpf-fieldset--full-width, .rpf-fieldset--full-width .rpf-fieldset__inputs * {\n max-inline-size: none;\n}\n.rpf-fieldset__inputs *:last-child {\n margin-block-end: 0;\n}\n.rpf-fieldset--error .rpf-fieldset__inputs {\n border-color: var(--rpf-input-color-error);\n border-radius: var(--border-radius);\n border-style: solid;\n border-width: var(--fieldset-border-width);\n}\n.rpf-fieldset--disabled .rpf-fieldset__inputs, .rpf-fieldset:disabled .rpf-fieldset__inputs {\n background-color: var(--rpf-input-background-color-disabled);\n border-radius: var(--border-radius);\n color: var(--rpf-input-color);\n}\n";
1355
- styleInject(css_248z$9);
1356
-
1357
- const Fieldset = ({
1358
- disabled = false,
1359
- errorText = "",
1360
- fullWidth = false,
1361
- legendText,
1362
- legendHintText = "",
1363
- children
1364
- }) => {
1365
- return /*#__PURE__*/React.createElement("fieldset", {
1366
- className: classNames("rpf-fieldset", {
1367
- "rpf-fieldset--disabled": disabled,
1368
- "rpf-fieldset--full-width": fullWidth,
1369
- "rpf-fieldset--error": errorText
1370
- }),
1371
- disabled: disabled
1372
- }, /*#__PURE__*/React.createElement("legend", {
1373
- className: "rpf-label"
1374
- }, legendText, legendHintText.length > 0 ? /*#__PURE__*/React.createElement("small", {
1375
- className: "rpf-label__hint"
1376
- }, legendHintText) : null), /*#__PURE__*/React.createElement("div", {
1377
- className: "rpf-fieldset__inputs"
1378
- }, children), errorText.length > 0 ? /*#__PURE__*/React.createElement("div", {
1379
- className: "rpf-error-message"
1380
- }, /*#__PURE__*/React.createElement("span", {
1381
- className: "rpf-error-message__icon material-symbols-sharp"
1382
- }, "error"), errorText) : null);
1383
- };
1384
- Fieldset.propTypes = {
1385
- disabled: PropTypes.bool,
1386
- errorText: PropTypes.string,
1387
- fullWidth: PropTypes.bool,
1388
- legendText: PropTypes.string.isRequired,
1389
- legendHintText: PropTypes.string
1390
- };
1391
-
1392
- const InputField = ({
1393
- id,
1394
- label,
1395
- children,
1396
- disabled = false,
1397
- error = "",
1398
- hint = ""
1399
- }) => /*#__PURE__*/React.createElement("div", {
1400
- className: "rpf-input-field"
1401
- }, (label || hint) && /*#__PURE__*/React.createElement("label", {
1402
- htmlFor: id,
1403
- className: classNames("rpf-label", {
1404
- "rpf-label--disabled": disabled
1405
- })
1406
- }, label, /*#__PURE__*/React.createElement("small", {
1407
- className: "rpf-label__hint"
1408
- }, hint)), children, error && /*#__PURE__*/React.createElement("div", {
1409
- className: "rpf-error-message"
1410
- }, /*#__PURE__*/React.createElement("span", {
1411
- className: "rpf-error-message__icon material-symbols-sharp"
1412
- }, "error"), error));
1413
- InputField.propTypes = {
1414
- disabled: PropTypes.bool,
1415
- error: PropTypes.string,
1416
- hint: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
1417
- label: PropTypes.oneOfType([PropTypes.string, PropTypes.object]).isRequired,
1418
- id: PropTypes.string.isRequired
1419
- };
1420
-
1421
- var css_248z$8 = ":root, :host {\n --rpf-alert-error-highlight: hsla(0, 88%, 99%, 1);\n --rpf-alert-error: hsla(0, 88%, 33%, 1);\n --rpf-alert-information-highlight: hsla(225, 64%, 99%, 1);\n --rpf-alert-information: hsla(225, 64%, 33%, 1);\n --rpf-alert-success-highlight: hsla(136, 90%, 99%, 1);\n --rpf-alert-success: hsla(136, 90%, 20%, 1);\n --rpf-alert-warning-highlight: hsla(26, 70%, 99%, 1);\n --rpf-alert-warning: hsla(26, 70%, 29%, 1);\n}\n\n:root, :host {\n --font-weight-regular: 400;\n --font-weight-bold: 700;\n}\n\n:root, :host {\n --space-0-125: 0.0625rem;\n --space-0-25: 0.125rem;\n --space-0-5: 0.25rem;\n --space-1: 0.5rem;\n --space-1-5: 0.75rem;\n --space-2: 1rem;\n --space-3: 1.5rem;\n --space-4: 2rem;\n --space-5: 2.5rem;\n --space-6: 3rem;\n --space-7: 3.5rem;\n --space-8: 4rem;\n --space-9: 4.5rem;\n --space-10: 5rem;\n}\n\n:root {\n --rpf-message-text-color: var(--rpf-alert-error);\n}\n\n.rpf-error-message {\n all: unset;\n align-items: center;\n color: var(--rpf-message-text-color);\n display: flex;\n font-weight: var(--font-weight-bold);\n padding-block: var(--space-1);\n}\n.rpf-error-message__icon {\n margin-inline-end: var(--space-1);\n}\n\n:root, :host {\n --rpf-white: hsla(0, 0%, 100%, 1);\n --rpf-off-white: hsla(225, 25%, 97%, 1);\n --rpf-grey-50: hsla(210, 8%, 95%, 1);\n --rpf-grey-100: hsla(228, 10%, 90%, 1);\n --rpf-grey-150: hsla(223, 9%, 85%, 1);\n --rpf-grey-200: hsla(228, 10%, 80%, 1);\n --rpf-grey-300: hsla(229, 9%, 75%, 1);\n --rpf-grey-400: hsla(229, 8%, 61%, 1);\n --rpf-grey-500: hsla(229, 9%, 42%, 1);\n --rpf-grey-600: hsla(228, 9%, 32%, 1);\n --rpf-grey-700: hsla(228, 9%, 22%, 1);\n --rpf-grey-800: hsla(232, 9%, 18%, 1);\n --rpf-grey-850: hsla(228, 9%, 15%, 1);\n --rpf-grey-900: hsla(228, 9%, 10%, 1);\n --rpf-grey-950: hsla(228, 8%, 5%, 1);\n --rpf-black: hsla(0, 0%, 0%, 1);\n}\n\n:root, :host {\n --rpf-text-primary: hsla(0, 0%, 13%, 1);\n --rpf-text-primary-darkmode: var(--rpf-white);\n --rpf-text-secondary: hsla(200, 9%, 33%, 1);\n --rpf-text-secondary-darkmode: hsla(0, 0%, 80%, 1);\n --rpf-link-text: var(--rpf-navy-800);\n}\n\n:root, :host {\n --line-height-0-75: 0.75rem;\n --line-height-1: 1rem;\n --line-height-1-5: 1.5rem;\n --line-height-2: 2rem;\n --line-height-2-5: 2.5rem;\n --line-height-3: 3rem;\n --line-height-3-5: 3.5rem;\n --line-height-4: 4rem;\n --line-height-4-5: 4.5rem;\n --line-height-5: 5rem;\n --line-height-5-5: 5.5rem;\n --line-height-6: 6rem;\n --line-height-6-5: 6.5rem;\n}\n\n:root {\n --rpf-label-hint-color: var(--rpf-text-secondary);\n --rpf-label-text-color: var(--rpf-text-primary);\n --rpf-label-text-color-disabled: var(--rpf-grey-500);\n}\n\n.rpf-label {\n all: unset;\n color: var(--rpf-label-text-color);\n display: flex;\n flex-direction: column;\n font-weight: var(--font-weight-bold);\n padding-block-end: var(--space-1);\n font-size: var(--font-size-1);\n line-height: var(--line-height-1-5);\n}\n.rpf-label__hint {\n color: var(--rpf-label-hint-color);\n font-size: var(--font-size-1);\n font-weight: var(--font-weight-regular);\n}\n.rpf-label--disabled {\n color: var(--rpf-label-text-color-disabled);\n}\n.rpf-label--disabled .rpf-label__hint {\n color: var(--rpf-label-text-color-disabled);\n}\n\n.rpf-input.rpf-input-select {\n background-image: url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'><path fill='%23212121' d='m12 15.375-6-6 1.4-1.4 4.6 4.6 4.6-4.6 1.4 1.4-6 6Z'/></svg>\");\n background-repeat: no-repeat;\n background-position: center right var(--space-1-5);\n}\nhtml[dir=rtl] .rpf-input.rpf-input-select {\n background-position: center left var(--space-1-5);\n}\n.rpf-input.rpf-input-select:disabled, .rpf-input.rpf-input-select--disabled {\n background-image: none;\n}\n\n:root, :host {\n --border-radius: var(--space-1);\n --border-width-sm: 1px;\n --border-width-md: 2px;\n --border-width-lg: 3px;\n --alert-border-width: var(--border-width-md);\n --fieldset-border-width: var(--border-width-md);\n --input-border-width: var(--border-width-md);\n --table-border-width: var(--border-width-sm);\n}\n\n:root, :host {\n --rpf-red-100: hsla(4, 89%, 96%, 1);\n --rpf-red-200: hsla(1, 87%, 91%, 1);\n --rpf-red-400: hsla(1, 87%, 82%, 1);\n --rpf-red-600: hsla(1, 87%, 72%, 1);\n --rpf-red-800: hsla(1, 87%, 63%, 1);\n --rpf-red-900: hsla(1, 52%, 50%, 1);\n --rpf-green-100: hsla(125, 41%, 95%, 1);\n --rpf-green-200: hsla(122, 39%, 87%, 1);\n --rpf-green-400: hsla(123, 40%, 74%, 1);\n --rpf-green-600: hsla(123, 40%, 61%, 1);\n --rpf-green-800: hsla(123, 43%, 48%, 1);\n --rpf-green-900: hsla(123, 43%, 34%, 1);\n --rpf-teal-100: hsla(176, 55%, 94%, 1);\n --rpf-teal-200: hsla(174, 55%, 85%, 1);\n --rpf-teal-400: hsla(174, 55%, 70%, 1);\n --rpf-teal-600: hsla(174, 56%, 56%, 1);\n --rpf-teal-800: hsla(174, 81%, 41%, 1);\n --rpf-teal-900: hsla(174, 81%, 27%, 1);\n --rpf-teal-950: hsla(174, 80%, 20%, 1);\n --rpf-orange-100: hsla(31, 100%, 95%, 1);\n --rpf-orange-200: hsla(32, 100%, 88%, 1);\n --rpf-orange-400: hsla(31, 100%, 77%, 1);\n --rpf-orange-600: hsla(31, 99%, 65%, 1);\n --rpf-orange-800: hsla(31, 99%, 54%, 1);\n --rpf-orange-900: hsla(31, 85%, 35%, 1);\n --rpf-yellow-100: hsla(51, 100%, 95%, 1);\n --rpf-yellow-200: hsla(52, 100%, 87%, 1);\n --rpf-yellow-400: hsla(51, 100%, 75%, 1);\n --rpf-yellow-600: hsla(52, 100%, 63%, 1);\n --rpf-yellow-800: hsla(52, 100%, 50%, 1);\n --rpf-yellow-900: hsla(52, 100%, 26%, 1);\n --rpf-purple-100: hsla(282, 36%, 95%, 1);\n --rpf-purple-200: hsla(279, 38%, 87%, 1);\n --rpf-purple-400: hsla(279, 38%, 73%, 1);\n --rpf-purple-600: hsla(279, 37%, 60%, 1);\n --rpf-purple-800: hsla(279, 43%, 47%, 1);\n --rpf-purple-900: hsla(280, 43%, 37%, 1);\n --rpf-navy-100: hsla(235, 38%, 94%, 1);\n --rpf-navy-200: hsla(234, 38%, 84%, 1);\n --rpf-navy-400: hsla(235, 38%, 69%, 1);\n --rpf-navy-600: hsla(235, 38%, 53%, 1);\n --rpf-navy-800: hsla(235, 63%, 37%, 1);\n --rpf-navy-900: hsla(234, 63%, 30%, 1);\n --rpf-blue-100: hsla(203, 86%, 95%, 1);\n --rpf-blue-200: hsla(204, 88%, 87%, 1);\n --rpf-blue-400: hsla(204, 88%, 74%, 1);\n --rpf-blue-600: hsla(204, 89%, 60%, 1);\n --rpf-blue-800: hsla(204, 100%, 47%, 1);\n --rpf-blue-900: hsla(204, 99%, 37%, 1);\n}\n\n:root, :host {\n --rpf-input-background-color: var(--rpf-white);\n --rpf-input-background-color-disabled: var(--rpf-grey-50);\n --rpf-input-background-color-readonly: var(--rpf-grey-50);\n --rpf-input-color-error: var(--rpf-alert-error);\n --rpf-input-color: var(--rpf-text-primary);\n --rpf-input-outline-color: var(--rpf-blue-800);\n}\n\n:root, :host {\n --font-size-0-5: 0.5rem;\n --font-size-0-75: 0.75rem;\n --font-size-1: 1rem;\n --font-size-1-5: 1.25rem;\n --font-size-2: 1.5rem;\n --font-size-3: 2rem;\n --font-size-4: 2.5rem;\n --font-size-5: 3rem;\n --font-size-6: 3.5rem;\n --font-size-7: 4rem;\n --font-size-8: 4.5rem;\n --font-size-9: 5rem;\n}\n\n.rpf-input-field {\n margin-block-end: var(--space-3);\n}\n\n.rpf-input {\n all: unset;\n background-color: var(--rpf-input-background-color);\n border: var(--input-border-width) solid var(--rpf-input-color);\n border-radius: var(--border-radius);\n box-sizing: border-box;\n color: var(--rpf-input-color);\n display: flex;\n font-size: var(--font-size-1);\n line-height: var(--line-height-2);\n padding-block: calc(var(--space-1) - 2px);\n padding-inline: var(--space-1-5);\n max-width: 50ch;\n min-width: 240px;\n width: 100%;\n}\n.rpf-input:disabled, .rpf-input--disabled {\n border-color: var(--rpf-input-background-color-disabled);\n background-color: var(--rpf-input-background-color-disabled);\n}\n.rpf-input:focus-visible {\n outline: 3px solid var(--rpf-input-outline-color);\n}\n.rpf-input--error {\n border-color: var(--rpf-input-color-error);\n}\n.rpf-input--full-width {\n max-width: none;\n}\n";
1422
- styleInject(css_248z$8);
1423
-
1424
- const SelectInput = ({
1425
- id,
1426
- label,
1427
- name,
1428
- options,
1429
- disabled = false,
1430
- error = "",
1431
- fullWidth = false,
1432
- hint = "",
1433
- onChange = () => {},
1434
- placeholder = "",
1435
- value = ""
1436
- }) => /*#__PURE__*/React.createElement(InputField, {
1437
- id: id,
1438
- disabled: disabled,
1439
- error: error,
1440
- hint: hint,
1441
- label: label
1442
- }, /*#__PURE__*/React.createElement("select", {
1443
- className: classNames("rpf-input rpf-input-select", {
1444
- "rpf-input--error": error,
1445
- "rpf-input--full-width": fullWidth
1446
- }),
1447
- disabled: disabled,
1448
- id: id,
1449
- name: name,
1450
- onChange: onChange,
1451
- type: "text",
1452
- value: value
1453
- }, !value && !!placeholder && /*#__PURE__*/React.createElement("option", {
1454
- value: "",
1455
- disabled: true
1456
- }, placeholder), options.map(option => /*#__PURE__*/React.createElement("option", {
1457
- value: option.key,
1458
- key: option.key
1459
- }, option.value))));
1460
- SelectInput.propTypes = {
1461
- disabled: PropTypes.bool,
1462
- error: PropTypes.string,
1463
- fullWidth: PropTypes.bool,
1464
- hint: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
1465
- label: PropTypes.oneOfType([PropTypes.string, PropTypes.object]).isRequired,
1466
- id: PropTypes.string.isRequired,
1467
- name: PropTypes.string.isRequired,
1468
- onChange: PropTypes.func,
1469
- options: PropTypes.array.isRequired,
1470
- placeholder: PropTypes.string,
1471
- value: PropTypes.string
1472
- };
1473
-
1474
- var css_248z$7 = ":root, :host {\n --border-radius: var(--space-1);\n --border-width-sm: 1px;\n --border-width-md: 2px;\n --border-width-lg: 3px;\n --alert-border-width: var(--border-width-md);\n --fieldset-border-width: var(--border-width-md);\n --input-border-width: var(--border-width-md);\n --table-border-width: var(--border-width-sm);\n}\n\n:root, :host {\n --rpf-alert-error-highlight: hsla(0, 88%, 99%, 1);\n --rpf-alert-error: hsla(0, 88%, 33%, 1);\n --rpf-alert-information-highlight: hsla(225, 64%, 99%, 1);\n --rpf-alert-information: hsla(225, 64%, 33%, 1);\n --rpf-alert-success-highlight: hsla(136, 90%, 99%, 1);\n --rpf-alert-success: hsla(136, 90%, 20%, 1);\n --rpf-alert-warning-highlight: hsla(26, 70%, 99%, 1);\n --rpf-alert-warning: hsla(26, 70%, 29%, 1);\n}\n\n:root, :host {\n --rpf-white: hsla(0, 0%, 100%, 1);\n --rpf-off-white: hsla(225, 25%, 97%, 1);\n --rpf-grey-50: hsla(210, 8%, 95%, 1);\n --rpf-grey-100: hsla(228, 10%, 90%, 1);\n --rpf-grey-150: hsla(223, 9%, 85%, 1);\n --rpf-grey-200: hsla(228, 10%, 80%, 1);\n --rpf-grey-300: hsla(229, 9%, 75%, 1);\n --rpf-grey-400: hsla(229, 8%, 61%, 1);\n --rpf-grey-500: hsla(229, 9%, 42%, 1);\n --rpf-grey-600: hsla(228, 9%, 32%, 1);\n --rpf-grey-700: hsla(228, 9%, 22%, 1);\n --rpf-grey-800: hsla(232, 9%, 18%, 1);\n --rpf-grey-850: hsla(228, 9%, 15%, 1);\n --rpf-grey-900: hsla(228, 9%, 10%, 1);\n --rpf-grey-950: hsla(228, 8%, 5%, 1);\n --rpf-black: hsla(0, 0%, 0%, 1);\n}\n\n:root, :host {\n --rpf-red-100: hsla(4, 89%, 96%, 1);\n --rpf-red-200: hsla(1, 87%, 91%, 1);\n --rpf-red-400: hsla(1, 87%, 82%, 1);\n --rpf-red-600: hsla(1, 87%, 72%, 1);\n --rpf-red-800: hsla(1, 87%, 63%, 1);\n --rpf-red-900: hsla(1, 52%, 50%, 1);\n --rpf-green-100: hsla(125, 41%, 95%, 1);\n --rpf-green-200: hsla(122, 39%, 87%, 1);\n --rpf-green-400: hsla(123, 40%, 74%, 1);\n --rpf-green-600: hsla(123, 40%, 61%, 1);\n --rpf-green-800: hsla(123, 43%, 48%, 1);\n --rpf-green-900: hsla(123, 43%, 34%, 1);\n --rpf-teal-100: hsla(176, 55%, 94%, 1);\n --rpf-teal-200: hsla(174, 55%, 85%, 1);\n --rpf-teal-400: hsla(174, 55%, 70%, 1);\n --rpf-teal-600: hsla(174, 56%, 56%, 1);\n --rpf-teal-800: hsla(174, 81%, 41%, 1);\n --rpf-teal-900: hsla(174, 81%, 27%, 1);\n --rpf-teal-950: hsla(174, 80%, 20%, 1);\n --rpf-orange-100: hsla(31, 100%, 95%, 1);\n --rpf-orange-200: hsla(32, 100%, 88%, 1);\n --rpf-orange-400: hsla(31, 100%, 77%, 1);\n --rpf-orange-600: hsla(31, 99%, 65%, 1);\n --rpf-orange-800: hsla(31, 99%, 54%, 1);\n --rpf-orange-900: hsla(31, 85%, 35%, 1);\n --rpf-yellow-100: hsla(51, 100%, 95%, 1);\n --rpf-yellow-200: hsla(52, 100%, 87%, 1);\n --rpf-yellow-400: hsla(51, 100%, 75%, 1);\n --rpf-yellow-600: hsla(52, 100%, 63%, 1);\n --rpf-yellow-800: hsla(52, 100%, 50%, 1);\n --rpf-yellow-900: hsla(52, 100%, 26%, 1);\n --rpf-purple-100: hsla(282, 36%, 95%, 1);\n --rpf-purple-200: hsla(279, 38%, 87%, 1);\n --rpf-purple-400: hsla(279, 38%, 73%, 1);\n --rpf-purple-600: hsla(279, 37%, 60%, 1);\n --rpf-purple-800: hsla(279, 43%, 47%, 1);\n --rpf-purple-900: hsla(280, 43%, 37%, 1);\n --rpf-navy-100: hsla(235, 38%, 94%, 1);\n --rpf-navy-200: hsla(234, 38%, 84%, 1);\n --rpf-navy-400: hsla(235, 38%, 69%, 1);\n --rpf-navy-600: hsla(235, 38%, 53%, 1);\n --rpf-navy-800: hsla(235, 63%, 37%, 1);\n --rpf-navy-900: hsla(234, 63%, 30%, 1);\n --rpf-blue-100: hsla(203, 86%, 95%, 1);\n --rpf-blue-200: hsla(204, 88%, 87%, 1);\n --rpf-blue-400: hsla(204, 88%, 74%, 1);\n --rpf-blue-600: hsla(204, 89%, 60%, 1);\n --rpf-blue-800: hsla(204, 100%, 47%, 1);\n --rpf-blue-900: hsla(204, 99%, 37%, 1);\n}\n\n:root, :host {\n --rpf-text-primary: hsla(0, 0%, 13%, 1);\n --rpf-text-primary-darkmode: var(--rpf-white);\n --rpf-text-secondary: hsla(200, 9%, 33%, 1);\n --rpf-text-secondary-darkmode: hsla(0, 0%, 80%, 1);\n --rpf-link-text: var(--rpf-navy-800);\n}\n\n:root, :host {\n --rpf-input-background-color: var(--rpf-white);\n --rpf-input-background-color-disabled: var(--rpf-grey-50);\n --rpf-input-background-color-readonly: var(--rpf-grey-50);\n --rpf-input-color-error: var(--rpf-alert-error);\n --rpf-input-color: var(--rpf-text-primary);\n --rpf-input-outline-color: var(--rpf-blue-800);\n}\n\n:root, :host {\n --font-size-0-5: 0.5rem;\n --font-size-0-75: 0.75rem;\n --font-size-1: 1rem;\n --font-size-1-5: 1.25rem;\n --font-size-2: 1.5rem;\n --font-size-3: 2rem;\n --font-size-4: 2.5rem;\n --font-size-5: 3rem;\n --font-size-6: 3.5rem;\n --font-size-7: 4rem;\n --font-size-8: 4.5rem;\n --font-size-9: 5rem;\n}\n\n:root, :host {\n --space-0-125: 0.0625rem;\n --space-0-25: 0.125rem;\n --space-0-5: 0.25rem;\n --space-1: 0.5rem;\n --space-1-5: 0.75rem;\n --space-2: 1rem;\n --space-3: 1.5rem;\n --space-4: 2rem;\n --space-5: 2.5rem;\n --space-6: 3rem;\n --space-7: 3.5rem;\n --space-8: 4rem;\n --space-9: 4.5rem;\n --space-10: 5rem;\n}\n\n.rpf-input-field {\n margin-block-end: var(--space-3);\n}\n\n.rpf-input {\n all: unset;\n background-color: var(--rpf-input-background-color);\n border: var(--input-border-width) solid var(--rpf-input-color);\n border-radius: var(--border-radius);\n box-sizing: border-box;\n color: var(--rpf-input-color);\n display: flex;\n font-size: var(--font-size-1);\n line-height: var(--line-height-2);\n padding-block: calc(var(--space-1) - 2px);\n padding-inline: var(--space-1-5);\n max-width: 50ch;\n min-width: 240px;\n width: 100%;\n}\n.rpf-input:disabled, .rpf-input--disabled {\n border-color: var(--rpf-input-background-color-disabled);\n background-color: var(--rpf-input-background-color-disabled);\n}\n.rpf-input:focus-visible {\n outline: 3px solid var(--rpf-input-outline-color);\n}\n.rpf-input--error {\n border-color: var(--rpf-input-color-error);\n}\n.rpf-input--full-width {\n max-width: none;\n}\n\n:root, :host {\n --font-weight-regular: 400;\n --font-weight-bold: 700;\n}\n\n:root, :host {\n --line-height-0-75: 0.75rem;\n --line-height-1: 1rem;\n --line-height-1-5: 1.5rem;\n --line-height-2: 2rem;\n --line-height-2-5: 2.5rem;\n --line-height-3: 3rem;\n --line-height-3-5: 3.5rem;\n --line-height-4: 4rem;\n --line-height-4-5: 4.5rem;\n --line-height-5: 5rem;\n --line-height-5-5: 5.5rem;\n --line-height-6: 6rem;\n --line-height-6-5: 6.5rem;\n}\n\n:root {\n --rpf-label-hint-color: var(--rpf-text-secondary);\n --rpf-label-text-color: var(--rpf-text-primary);\n --rpf-label-text-color-disabled: var(--rpf-grey-500);\n}\n\n.rpf-label {\n all: unset;\n color: var(--rpf-label-text-color);\n display: flex;\n flex-direction: column;\n font-weight: var(--font-weight-bold);\n padding-block-end: var(--space-1);\n font-size: var(--font-size-1);\n line-height: var(--line-height-1-5);\n}\n.rpf-label__hint {\n color: var(--rpf-label-hint-color);\n font-size: var(--font-size-1);\n font-weight: var(--font-weight-regular);\n}\n.rpf-label--disabled {\n color: var(--rpf-label-text-color-disabled);\n}\n.rpf-label--disabled .rpf-label__hint {\n color: var(--rpf-label-text-color-disabled);\n}\n\n:root {\n --rpf-message-text-color: var(--rpf-alert-error);\n}\n\n.rpf-error-message {\n all: unset;\n align-items: center;\n color: var(--rpf-message-text-color);\n display: flex;\n font-weight: var(--font-weight-bold);\n padding-block: var(--space-1);\n}\n.rpf-error-message__icon {\n margin-inline-end: var(--space-1);\n}\n";
1475
- styleInject(css_248z$7);
1476
-
1477
- const TextInput = ({
1478
- id,
1479
- label,
1480
- name,
1481
- value,
1482
- disabled = false,
1483
- error = "",
1484
- fullWidth = false,
1485
- hint = "",
1486
- onChange = () => {}
1487
- }) => /*#__PURE__*/React.createElement(InputField, {
1488
- id: id,
1489
- disabled: disabled,
1490
- error: error,
1491
- hint: hint,
1492
- label: label
1493
- }, /*#__PURE__*/React.createElement("input", {
1494
- className: classNames("rpf-input rpf-input-text", {
1495
- "rpf-input--error": error,
1496
- "rpf-input--full-width": fullWidth
1497
- }),
1498
- disabled: disabled,
1499
- id: id,
1500
- name: name,
1501
- onChange: onChange,
1502
- type: "text",
1503
- value: value
1504
- }));
1505
- TextInput.propTypes = {
1506
- disabled: PropTypes.bool,
1507
- error: PropTypes.string,
1508
- fullWidth: PropTypes.bool,
1509
- hint: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
1510
- label: PropTypes.oneOfType([PropTypes.string, PropTypes.object]).isRequired,
1511
- id: PropTypes.string.isRequired,
1512
- name: PropTypes.string.isRequired,
1513
- onChange: PropTypes.func,
1514
- value: PropTypes.string.isRequired
1515
- };
1516
-
1517
- const InputLabel = ({
1518
- label,
1519
- inputFieldId,
1520
- disabled = false,
1521
- hint = ""
1522
- }) => /*#__PURE__*/React.createElement("div", {
1523
- className: "rpf-label"
1524
- }, /*#__PURE__*/React.createElement("label", {
1525
- htmlFor: inputFieldId,
1526
- className: classNames("rpf-label", {
1527
- "rpf-label--disabled": disabled
1528
- })
1529
- }, label, hint && /*#__PURE__*/React.createElement("div", {
1530
- className: "rpf-label__hint"
1531
- }, hint)));
1532
- InputLabel.propTypes = {
1533
- disabled: PropTypes.bool,
1534
- hint: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
1535
- label: PropTypes.oneOfType([PropTypes.string, PropTypes.object]).isRequired,
1536
- inputFieldId: PropTypes.string.isRequired
1537
- };
1538
-
1539
- var css_248z$6 = ":root, :host {\n --border-radius: var(--space-1);\n --border-width-sm: 1px;\n --border-width-md: 2px;\n --border-width-lg: 3px;\n --alert-border-width: var(--border-width-md);\n --fieldset-border-width: var(--border-width-md);\n --input-border-width: var(--border-width-md);\n --table-border-width: var(--border-width-sm);\n}\n\n:root, :host {\n --rpf-alert-error-highlight: hsla(0, 88%, 99%, 1);\n --rpf-alert-error: hsla(0, 88%, 33%, 1);\n --rpf-alert-information-highlight: hsla(225, 64%, 99%, 1);\n --rpf-alert-information: hsla(225, 64%, 33%, 1);\n --rpf-alert-success-highlight: hsla(136, 90%, 99%, 1);\n --rpf-alert-success: hsla(136, 90%, 20%, 1);\n --rpf-alert-warning-highlight: hsla(26, 70%, 99%, 1);\n --rpf-alert-warning: hsla(26, 70%, 29%, 1);\n}\n\n:root, :host {\n --rpf-white: hsla(0, 0%, 100%, 1);\n --rpf-off-white: hsla(225, 25%, 97%, 1);\n --rpf-grey-50: hsla(210, 8%, 95%, 1);\n --rpf-grey-100: hsla(228, 10%, 90%, 1);\n --rpf-grey-150: hsla(223, 9%, 85%, 1);\n --rpf-grey-200: hsla(228, 10%, 80%, 1);\n --rpf-grey-300: hsla(229, 9%, 75%, 1);\n --rpf-grey-400: hsla(229, 8%, 61%, 1);\n --rpf-grey-500: hsla(229, 9%, 42%, 1);\n --rpf-grey-600: hsla(228, 9%, 32%, 1);\n --rpf-grey-700: hsla(228, 9%, 22%, 1);\n --rpf-grey-800: hsla(232, 9%, 18%, 1);\n --rpf-grey-850: hsla(228, 9%, 15%, 1);\n --rpf-grey-900: hsla(228, 9%, 10%, 1);\n --rpf-grey-950: hsla(228, 8%, 5%, 1);\n --rpf-black: hsla(0, 0%, 0%, 1);\n}\n\n:root, :host {\n --rpf-red-100: hsla(4, 89%, 96%, 1);\n --rpf-red-200: hsla(1, 87%, 91%, 1);\n --rpf-red-400: hsla(1, 87%, 82%, 1);\n --rpf-red-600: hsla(1, 87%, 72%, 1);\n --rpf-red-800: hsla(1, 87%, 63%, 1);\n --rpf-red-900: hsla(1, 52%, 50%, 1);\n --rpf-green-100: hsla(125, 41%, 95%, 1);\n --rpf-green-200: hsla(122, 39%, 87%, 1);\n --rpf-green-400: hsla(123, 40%, 74%, 1);\n --rpf-green-600: hsla(123, 40%, 61%, 1);\n --rpf-green-800: hsla(123, 43%, 48%, 1);\n --rpf-green-900: hsla(123, 43%, 34%, 1);\n --rpf-teal-100: hsla(176, 55%, 94%, 1);\n --rpf-teal-200: hsla(174, 55%, 85%, 1);\n --rpf-teal-400: hsla(174, 55%, 70%, 1);\n --rpf-teal-600: hsla(174, 56%, 56%, 1);\n --rpf-teal-800: hsla(174, 81%, 41%, 1);\n --rpf-teal-900: hsla(174, 81%, 27%, 1);\n --rpf-teal-950: hsla(174, 80%, 20%, 1);\n --rpf-orange-100: hsla(31, 100%, 95%, 1);\n --rpf-orange-200: hsla(32, 100%, 88%, 1);\n --rpf-orange-400: hsla(31, 100%, 77%, 1);\n --rpf-orange-600: hsla(31, 99%, 65%, 1);\n --rpf-orange-800: hsla(31, 99%, 54%, 1);\n --rpf-orange-900: hsla(31, 85%, 35%, 1);\n --rpf-yellow-100: hsla(51, 100%, 95%, 1);\n --rpf-yellow-200: hsla(52, 100%, 87%, 1);\n --rpf-yellow-400: hsla(51, 100%, 75%, 1);\n --rpf-yellow-600: hsla(52, 100%, 63%, 1);\n --rpf-yellow-800: hsla(52, 100%, 50%, 1);\n --rpf-yellow-900: hsla(52, 100%, 26%, 1);\n --rpf-purple-100: hsla(282, 36%, 95%, 1);\n --rpf-purple-200: hsla(279, 38%, 87%, 1);\n --rpf-purple-400: hsla(279, 38%, 73%, 1);\n --rpf-purple-600: hsla(279, 37%, 60%, 1);\n --rpf-purple-800: hsla(279, 43%, 47%, 1);\n --rpf-purple-900: hsla(280, 43%, 37%, 1);\n --rpf-navy-100: hsla(235, 38%, 94%, 1);\n --rpf-navy-200: hsla(234, 38%, 84%, 1);\n --rpf-navy-400: hsla(235, 38%, 69%, 1);\n --rpf-navy-600: hsla(235, 38%, 53%, 1);\n --rpf-navy-800: hsla(235, 63%, 37%, 1);\n --rpf-navy-900: hsla(234, 63%, 30%, 1);\n --rpf-blue-100: hsla(203, 86%, 95%, 1);\n --rpf-blue-200: hsla(204, 88%, 87%, 1);\n --rpf-blue-400: hsla(204, 88%, 74%, 1);\n --rpf-blue-600: hsla(204, 89%, 60%, 1);\n --rpf-blue-800: hsla(204, 100%, 47%, 1);\n --rpf-blue-900: hsla(204, 99%, 37%, 1);\n}\n\n:root, :host {\n --rpf-text-primary: hsla(0, 0%, 13%, 1);\n --rpf-text-primary-darkmode: var(--rpf-white);\n --rpf-text-secondary: hsla(200, 9%, 33%, 1);\n --rpf-text-secondary-darkmode: hsla(0, 0%, 80%, 1);\n --rpf-link-text: var(--rpf-navy-800);\n}\n\n:root, :host {\n --rpf-input-background-color: var(--rpf-white);\n --rpf-input-background-color-disabled: var(--rpf-grey-50);\n --rpf-input-background-color-readonly: var(--rpf-grey-50);\n --rpf-input-color-error: var(--rpf-alert-error);\n --rpf-input-color: var(--rpf-text-primary);\n --rpf-input-outline-color: var(--rpf-blue-800);\n}\n\n:root, :host {\n --font-size-0-5: 0.5rem;\n --font-size-0-75: 0.75rem;\n --font-size-1: 1rem;\n --font-size-1-5: 1.25rem;\n --font-size-2: 1.5rem;\n --font-size-3: 2rem;\n --font-size-4: 2.5rem;\n --font-size-5: 3rem;\n --font-size-6: 3.5rem;\n --font-size-7: 4rem;\n --font-size-8: 4.5rem;\n --font-size-9: 5rem;\n}\n\n:root, :host {\n --space-0-125: 0.0625rem;\n --space-0-25: 0.125rem;\n --space-0-5: 0.25rem;\n --space-1: 0.5rem;\n --space-1-5: 0.75rem;\n --space-2: 1rem;\n --space-3: 1.5rem;\n --space-4: 2rem;\n --space-5: 2.5rem;\n --space-6: 3rem;\n --space-7: 3.5rem;\n --space-8: 4rem;\n --space-9: 4.5rem;\n --space-10: 5rem;\n}\n\n.rpf-input-field {\n margin-block-end: var(--space-3);\n}\n\n.rpf-input {\n all: unset;\n background-color: var(--rpf-input-background-color);\n border: var(--input-border-width) solid var(--rpf-input-color);\n border-radius: var(--border-radius);\n box-sizing: border-box;\n color: var(--rpf-input-color);\n display: flex;\n font-size: var(--font-size-1);\n line-height: var(--line-height-2);\n padding-block: calc(var(--space-1) - 2px);\n padding-inline: var(--space-1-5);\n max-width: 50ch;\n min-width: 240px;\n width: 100%;\n}\n.rpf-input:disabled, .rpf-input--disabled {\n border-color: var(--rpf-input-background-color-disabled);\n background-color: var(--rpf-input-background-color-disabled);\n}\n.rpf-input:focus-visible {\n outline: 3px solid var(--rpf-input-outline-color);\n}\n.rpf-input--error {\n border-color: var(--rpf-input-color-error);\n}\n.rpf-input--full-width {\n max-width: none;\n}\n\n:root, :host {\n --font-weight-regular: 400;\n --font-weight-bold: 700;\n}\n\n:root, :host {\n --line-height-0-75: 0.75rem;\n --line-height-1: 1rem;\n --line-height-1-5: 1.5rem;\n --line-height-2: 2rem;\n --line-height-2-5: 2.5rem;\n --line-height-3: 3rem;\n --line-height-3-5: 3.5rem;\n --line-height-4: 4rem;\n --line-height-4-5: 4.5rem;\n --line-height-5: 5rem;\n --line-height-5-5: 5.5rem;\n --line-height-6: 6rem;\n --line-height-6-5: 6.5rem;\n}\n\n:root {\n --rpf-label-hint-color: var(--rpf-text-secondary);\n --rpf-label-text-color: var(--rpf-text-primary);\n --rpf-label-text-color-disabled: var(--rpf-grey-500);\n}\n\n.rpf-label {\n all: unset;\n color: var(--rpf-label-text-color);\n display: flex;\n flex-direction: column;\n font-weight: var(--font-weight-bold);\n padding-block-end: var(--space-1);\n font-size: var(--font-size-1);\n line-height: var(--line-height-1-5);\n}\n.rpf-label__hint {\n color: var(--rpf-label-hint-color);\n font-size: var(--font-size-1);\n font-weight: var(--font-weight-regular);\n}\n.rpf-label--disabled {\n color: var(--rpf-label-text-color-disabled);\n}\n.rpf-label--disabled .rpf-label__hint {\n color: var(--rpf-label-text-color-disabled);\n}\n\n:root, :host {\n /* 44px min-height to meet WCAG AAA target size requirements */\n --min-target-size: 44px;\n --sm-target-size: 32px;\n --lg-target-size: 48px;\n}\n\n.rpf-input-radio {\n --rpf-input-radio-hit-target: var(--min-target-size);\n --rpf-input-radio-size: var(--space-3);\n align-items: center;\n border-radius: var(--space-1);\n box-sizing: border-box;\n display: flex;\n gap: var(--space-1-5);\n margin-block-end: var(--space-1);\n max-width: 50ch;\n min-height: var(--rpf-input-radio-hit-target);\n min-width: 240px;\n padding-block: calc((var(--rpf-input-radio-hit-target) - var(--rpf-input-radio-size)) / 2);\n padding-inline: var(--space-1);\n width: 100%;\n}\n.rpf-input-radio input[type=radio] {\n align-self: flex-start;\n appearance: none;\n background: var(--rpf-white);\n border: var(--space-0-25) solid var(--rpf-grey-850);\n border-radius: var(--rpf-input-radio-size);\n flex-shrink: 0;\n height: var(--rpf-input-radio-size);\n margin: 0;\n width: var(--rpf-input-radio-size);\n}\n.rpf-input-radio input[type=radio]:checked {\n background-image: url('data:image/svg+xml;utf8,<svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><rect width=\"12\" height=\"12\" rx=\"6\" fill=\"hsla(228, 9%, 15%, 1)\"/></svg>');\n background-position: center center;\n background-repeat: no-repeat;\n}\n.rpf-input-radio input[type=radio]:disabled {\n border-color: var(--rpf-grey-400);\n}\n.rpf-input-radio input[type=radio]:disabled:checked {\n background-image: url('data:image/svg+xml;utf8,<svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><rect width=\"12\" height=\"12\" rx=\"6\" fill=\"hsla(229, 8%, 61%, 1)\"/></svg>');\n}\n.rpf-input-radio.rpf-input--full-width {\n max-width: none;\n}\n.rpf-input-radio:has(> input[type=radio]:disabled), .rpf-input-radio--disabled {\n background-color: var(--rpf-input-background-color-disabled);\n color: var(--rpf-grey-400);\n}\n.rpf-input-radio:has(> input[type=radio]:focus-visible) {\n outline: 3px solid var(--rpf-input-outline-color);\n}\n.rpf-input-radio:has(> input[type=radio]:focus-visible) > input[type=radio]:focus-visible {\n outline: none;\n}\n";
1540
- styleInject(css_248z$6);
1541
-
1542
- const RadioInput = ({
1543
- id,
1544
- label,
1545
- name,
1546
- checked = false,
1547
- disabled = false,
1548
- fullWidth = false,
1549
- onChange = () => {},
1550
- value = ""
1551
- }) => /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("label", {
1552
- className: classNames("rpf-input-radio", {
1553
- "rpf-input-radio--disabled": disabled,
1554
- "rpf-input--full-width": fullWidth
1555
- })
1556
- }, /*#__PURE__*/React.createElement("input", {
1557
- checked: !!checked,
1558
- disabled: disabled,
1559
- id: id,
1560
- name: name,
1561
- onChange: onChange,
1562
- type: "radio",
1563
- value: value
1564
- }), label));
1565
- RadioInput.propTypes = {
1566
- checked: PropTypes.bool,
1567
- disabled: PropTypes.bool,
1568
- fullWidth: PropTypes.bool,
1569
- id: PropTypes.string.isRequired,
1570
- label: PropTypes.oneOfType([PropTypes.string, PropTypes.object]).isRequired,
1571
- name: PropTypes.string.isRequired,
1572
- onChange: PropTypes.func,
1573
- value: PropTypes.string
1574
- };
1575
-
1576
- var css_248z$5 = ":root, :host {\n --border-radius: var(--space-1);\n --border-width-sm: 1px;\n --border-width-md: 2px;\n --border-width-lg: 3px;\n --alert-border-width: var(--border-width-md);\n --fieldset-border-width: var(--border-width-md);\n --input-border-width: var(--border-width-md);\n --table-border-width: var(--border-width-sm);\n}\n\n:root, :host {\n --rpf-alert-error-highlight: hsla(0, 88%, 99%, 1);\n --rpf-alert-error: hsla(0, 88%, 33%, 1);\n --rpf-alert-information-highlight: hsla(225, 64%, 99%, 1);\n --rpf-alert-information: hsla(225, 64%, 33%, 1);\n --rpf-alert-success-highlight: hsla(136, 90%, 99%, 1);\n --rpf-alert-success: hsla(136, 90%, 20%, 1);\n --rpf-alert-warning-highlight: hsla(26, 70%, 99%, 1);\n --rpf-alert-warning: hsla(26, 70%, 29%, 1);\n}\n\n:root, :host {\n --rpf-white: hsla(0, 0%, 100%, 1);\n --rpf-off-white: hsla(225, 25%, 97%, 1);\n --rpf-grey-50: hsla(210, 8%, 95%, 1);\n --rpf-grey-100: hsla(228, 10%, 90%, 1);\n --rpf-grey-150: hsla(223, 9%, 85%, 1);\n --rpf-grey-200: hsla(228, 10%, 80%, 1);\n --rpf-grey-300: hsla(229, 9%, 75%, 1);\n --rpf-grey-400: hsla(229, 8%, 61%, 1);\n --rpf-grey-500: hsla(229, 9%, 42%, 1);\n --rpf-grey-600: hsla(228, 9%, 32%, 1);\n --rpf-grey-700: hsla(228, 9%, 22%, 1);\n --rpf-grey-800: hsla(232, 9%, 18%, 1);\n --rpf-grey-850: hsla(228, 9%, 15%, 1);\n --rpf-grey-900: hsla(228, 9%, 10%, 1);\n --rpf-grey-950: hsla(228, 8%, 5%, 1);\n --rpf-black: hsla(0, 0%, 0%, 1);\n}\n\n:root, :host {\n --rpf-red-100: hsla(4, 89%, 96%, 1);\n --rpf-red-200: hsla(1, 87%, 91%, 1);\n --rpf-red-400: hsla(1, 87%, 82%, 1);\n --rpf-red-600: hsla(1, 87%, 72%, 1);\n --rpf-red-800: hsla(1, 87%, 63%, 1);\n --rpf-red-900: hsla(1, 52%, 50%, 1);\n --rpf-green-100: hsla(125, 41%, 95%, 1);\n --rpf-green-200: hsla(122, 39%, 87%, 1);\n --rpf-green-400: hsla(123, 40%, 74%, 1);\n --rpf-green-600: hsla(123, 40%, 61%, 1);\n --rpf-green-800: hsla(123, 43%, 48%, 1);\n --rpf-green-900: hsla(123, 43%, 34%, 1);\n --rpf-teal-100: hsla(176, 55%, 94%, 1);\n --rpf-teal-200: hsla(174, 55%, 85%, 1);\n --rpf-teal-400: hsla(174, 55%, 70%, 1);\n --rpf-teal-600: hsla(174, 56%, 56%, 1);\n --rpf-teal-800: hsla(174, 81%, 41%, 1);\n --rpf-teal-900: hsla(174, 81%, 27%, 1);\n --rpf-teal-950: hsla(174, 80%, 20%, 1);\n --rpf-orange-100: hsla(31, 100%, 95%, 1);\n --rpf-orange-200: hsla(32, 100%, 88%, 1);\n --rpf-orange-400: hsla(31, 100%, 77%, 1);\n --rpf-orange-600: hsla(31, 99%, 65%, 1);\n --rpf-orange-800: hsla(31, 99%, 54%, 1);\n --rpf-orange-900: hsla(31, 85%, 35%, 1);\n --rpf-yellow-100: hsla(51, 100%, 95%, 1);\n --rpf-yellow-200: hsla(52, 100%, 87%, 1);\n --rpf-yellow-400: hsla(51, 100%, 75%, 1);\n --rpf-yellow-600: hsla(52, 100%, 63%, 1);\n --rpf-yellow-800: hsla(52, 100%, 50%, 1);\n --rpf-yellow-900: hsla(52, 100%, 26%, 1);\n --rpf-purple-100: hsla(282, 36%, 95%, 1);\n --rpf-purple-200: hsla(279, 38%, 87%, 1);\n --rpf-purple-400: hsla(279, 38%, 73%, 1);\n --rpf-purple-600: hsla(279, 37%, 60%, 1);\n --rpf-purple-800: hsla(279, 43%, 47%, 1);\n --rpf-purple-900: hsla(280, 43%, 37%, 1);\n --rpf-navy-100: hsla(235, 38%, 94%, 1);\n --rpf-navy-200: hsla(234, 38%, 84%, 1);\n --rpf-navy-400: hsla(235, 38%, 69%, 1);\n --rpf-navy-600: hsla(235, 38%, 53%, 1);\n --rpf-navy-800: hsla(235, 63%, 37%, 1);\n --rpf-navy-900: hsla(234, 63%, 30%, 1);\n --rpf-blue-100: hsla(203, 86%, 95%, 1);\n --rpf-blue-200: hsla(204, 88%, 87%, 1);\n --rpf-blue-400: hsla(204, 88%, 74%, 1);\n --rpf-blue-600: hsla(204, 89%, 60%, 1);\n --rpf-blue-800: hsla(204, 100%, 47%, 1);\n --rpf-blue-900: hsla(204, 99%, 37%, 1);\n}\n\n:root, :host {\n --rpf-text-primary: hsla(0, 0%, 13%, 1);\n --rpf-text-primary-darkmode: var(--rpf-white);\n --rpf-text-secondary: hsla(200, 9%, 33%, 1);\n --rpf-text-secondary-darkmode: hsla(0, 0%, 80%, 1);\n --rpf-link-text: var(--rpf-navy-800);\n}\n\n:root, :host {\n --rpf-input-background-color: var(--rpf-white);\n --rpf-input-background-color-disabled: var(--rpf-grey-50);\n --rpf-input-background-color-readonly: var(--rpf-grey-50);\n --rpf-input-color-error: var(--rpf-alert-error);\n --rpf-input-color: var(--rpf-text-primary);\n --rpf-input-outline-color: var(--rpf-blue-800);\n}\n\n:root, :host {\n --font-size-0-5: 0.5rem;\n --font-size-0-75: 0.75rem;\n --font-size-1: 1rem;\n --font-size-1-5: 1.25rem;\n --font-size-2: 1.5rem;\n --font-size-3: 2rem;\n --font-size-4: 2.5rem;\n --font-size-5: 3rem;\n --font-size-6: 3.5rem;\n --font-size-7: 4rem;\n --font-size-8: 4.5rem;\n --font-size-9: 5rem;\n}\n\n:root, :host {\n --space-0-125: 0.0625rem;\n --space-0-25: 0.125rem;\n --space-0-5: 0.25rem;\n --space-1: 0.5rem;\n --space-1-5: 0.75rem;\n --space-2: 1rem;\n --space-3: 1.5rem;\n --space-4: 2rem;\n --space-5: 2.5rem;\n --space-6: 3rem;\n --space-7: 3.5rem;\n --space-8: 4rem;\n --space-9: 4.5rem;\n --space-10: 5rem;\n}\n\n.rpf-input-field {\n margin-block-end: var(--space-3);\n}\n\n.rpf-input {\n all: unset;\n background-color: var(--rpf-input-background-color);\n border: var(--input-border-width) solid var(--rpf-input-color);\n border-radius: var(--border-radius);\n box-sizing: border-box;\n color: var(--rpf-input-color);\n display: flex;\n font-size: var(--font-size-1);\n line-height: var(--line-height-2);\n padding-block: calc(var(--space-1) - 2px);\n padding-inline: var(--space-1-5);\n max-width: 50ch;\n min-width: 240px;\n width: 100%;\n}\n.rpf-input:disabled, .rpf-input--disabled {\n border-color: var(--rpf-input-background-color-disabled);\n background-color: var(--rpf-input-background-color-disabled);\n}\n.rpf-input:focus-visible {\n outline: 3px solid var(--rpf-input-outline-color);\n}\n.rpf-input--error {\n border-color: var(--rpf-input-color-error);\n}\n.rpf-input--full-width {\n max-width: none;\n}\n\n:root, :host {\n --font-weight-regular: 400;\n --font-weight-bold: 700;\n}\n\n:root, :host {\n --line-height-0-75: 0.75rem;\n --line-height-1: 1rem;\n --line-height-1-5: 1.5rem;\n --line-height-2: 2rem;\n --line-height-2-5: 2.5rem;\n --line-height-3: 3rem;\n --line-height-3-5: 3.5rem;\n --line-height-4: 4rem;\n --line-height-4-5: 4.5rem;\n --line-height-5: 5rem;\n --line-height-5-5: 5.5rem;\n --line-height-6: 6rem;\n --line-height-6-5: 6.5rem;\n}\n\n:root {\n --rpf-label-hint-color: var(--rpf-text-secondary);\n --rpf-label-text-color: var(--rpf-text-primary);\n --rpf-label-text-color-disabled: var(--rpf-grey-500);\n}\n\n.rpf-label {\n all: unset;\n color: var(--rpf-label-text-color);\n display: flex;\n flex-direction: column;\n font-weight: var(--font-weight-bold);\n padding-block-end: var(--space-1);\n font-size: var(--font-size-1);\n line-height: var(--line-height-1-5);\n}\n.rpf-label__hint {\n color: var(--rpf-label-hint-color);\n font-size: var(--font-size-1);\n font-weight: var(--font-weight-regular);\n}\n.rpf-label--disabled {\n color: var(--rpf-label-text-color-disabled);\n}\n.rpf-label--disabled .rpf-label__hint {\n color: var(--rpf-label-text-color-disabled);\n}\n\n.rpf-input.rpf-input-textarea {\n resize: vertical;\n min-height: 120px;\n height: auto;\n max-height: 240px;\n overflow: auto;\n white-space: pre-wrap;\n}\n.rpf-input.rpf-input-textarea:read-only, .rpf-input.rpf-input-textarea--read-only, .rpf-input.rpf-input-textarea--readonly {\n border-color: var(--rpf-input-background-color-readonly);\n background-color: var(--rpf-input-background-color-readonly);\n}\n\n:root {\n --rpf-message-text-color: var(--rpf-alert-error);\n}\n\n.rpf-error-message {\n all: unset;\n align-items: center;\n color: var(--rpf-message-text-color);\n display: flex;\n font-weight: var(--font-weight-bold);\n padding-block: var(--space-1);\n}\n.rpf-error-message__icon {\n margin-inline-end: var(--space-1);\n}\n";
1577
- styleInject(css_248z$5);
1578
-
1579
- const TextareaInput = ({
1580
- id,
1581
- label,
1582
- name,
1583
- value,
1584
- disabled = false,
1585
- readOnly = false,
1586
- error = "",
1587
- fullWidth = false,
1588
- hint = "",
1589
- onChange = () => {}
1590
- }) => /*#__PURE__*/React.createElement(InputField, {
1591
- id: id,
1592
- disabled: disabled,
1593
- error: error,
1594
- hint: hint,
1595
- label: label
1596
- }, /*#__PURE__*/React.createElement("textarea", {
1597
- className: classNames("rpf-input rpf-input-textarea", {
1598
- "rpf-input--error": error,
1599
- "rpf-input--full-width": fullWidth,
1600
- "rpf-input--disabled": disabled
1601
- }),
1602
- disabled: disabled,
1603
- readOnly: readOnly,
1604
- id: id,
1605
- name: name,
1606
- onChange: onChange,
1607
- type: "text",
1608
- value: value
1609
- }));
1610
- TextareaInput.propTypes = {
1611
- disabled: PropTypes.bool,
1612
- readOnly: PropTypes.bool,
1613
- error: PropTypes.string,
1614
- fullWidth: PropTypes.bool,
1615
- hint: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
1616
- label: PropTypes.oneOfType([PropTypes.string, PropTypes.object]).isRequired,
1617
- id: PropTypes.string.isRequired,
1618
- name: PropTypes.string.isRequired,
1619
- onChange: PropTypes.func,
1620
- value: PropTypes.string.isRequired
1621
- };
1622
-
1623
- var css_248z$4 = ":root, :host {\n --rpf-brand-black: hsla(60, 4%, 11%, 1);\n --rpf-brand-leaf: hsla(123, 43%, 48%, 1);\n --rpf-brand-raspberry: hsla(342, 71%, 47%, 1);\n --rpf-raspberry-50: hsla(338, 57%, 97%, 1);\n --rpf-raspberry-100: hsla(342, 62%, 96%, 1);\n --rpf-raspberry-200: hsla(344, 73%, 93%, 1);\n --rpf-raspberry-400: hsla(341, 63%, 84%, 1);\n --rpf-raspberry-500: hsla(343, 62%, 68%, 1);\n --rpf-raspberry-600: hsla(343, 64%, 58%, 1);\n --rpf-raspberry-800: hsla(342, 71%, 47%, 1);\n --rpf-raspberry-900: hsla(340, 78%, 36%, 1);\n}\n\n:root, :host {\n --rpf-red-100: hsla(4, 89%, 96%, 1);\n --rpf-red-200: hsla(1, 87%, 91%, 1);\n --rpf-red-400: hsla(1, 87%, 82%, 1);\n --rpf-red-600: hsla(1, 87%, 72%, 1);\n --rpf-red-800: hsla(1, 87%, 63%, 1);\n --rpf-red-900: hsla(1, 52%, 50%, 1);\n --rpf-green-100: hsla(125, 41%, 95%, 1);\n --rpf-green-200: hsla(122, 39%, 87%, 1);\n --rpf-green-400: hsla(123, 40%, 74%, 1);\n --rpf-green-600: hsla(123, 40%, 61%, 1);\n --rpf-green-800: hsla(123, 43%, 48%, 1);\n --rpf-green-900: hsla(123, 43%, 34%, 1);\n --rpf-teal-100: hsla(176, 55%, 94%, 1);\n --rpf-teal-200: hsla(174, 55%, 85%, 1);\n --rpf-teal-400: hsla(174, 55%, 70%, 1);\n --rpf-teal-600: hsla(174, 56%, 56%, 1);\n --rpf-teal-800: hsla(174, 81%, 41%, 1);\n --rpf-teal-900: hsla(174, 81%, 27%, 1);\n --rpf-teal-950: hsla(174, 80%, 20%, 1);\n --rpf-orange-100: hsla(31, 100%, 95%, 1);\n --rpf-orange-200: hsla(32, 100%, 88%, 1);\n --rpf-orange-400: hsla(31, 100%, 77%, 1);\n --rpf-orange-600: hsla(31, 99%, 65%, 1);\n --rpf-orange-800: hsla(31, 99%, 54%, 1);\n --rpf-orange-900: hsla(31, 85%, 35%, 1);\n --rpf-yellow-100: hsla(51, 100%, 95%, 1);\n --rpf-yellow-200: hsla(52, 100%, 87%, 1);\n --rpf-yellow-400: hsla(51, 100%, 75%, 1);\n --rpf-yellow-600: hsla(52, 100%, 63%, 1);\n --rpf-yellow-800: hsla(52, 100%, 50%, 1);\n --rpf-yellow-900: hsla(52, 100%, 26%, 1);\n --rpf-purple-100: hsla(282, 36%, 95%, 1);\n --rpf-purple-200: hsla(279, 38%, 87%, 1);\n --rpf-purple-400: hsla(279, 38%, 73%, 1);\n --rpf-purple-600: hsla(279, 37%, 60%, 1);\n --rpf-purple-800: hsla(279, 43%, 47%, 1);\n --rpf-purple-900: hsla(280, 43%, 37%, 1);\n --rpf-navy-100: hsla(235, 38%, 94%, 1);\n --rpf-navy-200: hsla(234, 38%, 84%, 1);\n --rpf-navy-400: hsla(235, 38%, 69%, 1);\n --rpf-navy-600: hsla(235, 38%, 53%, 1);\n --rpf-navy-800: hsla(235, 63%, 37%, 1);\n --rpf-navy-900: hsla(234, 63%, 30%, 1);\n --rpf-blue-100: hsla(203, 86%, 95%, 1);\n --rpf-blue-200: hsla(204, 88%, 87%, 1);\n --rpf-blue-400: hsla(204, 88%, 74%, 1);\n --rpf-blue-600: hsla(204, 89%, 60%, 1);\n --rpf-blue-800: hsla(204, 100%, 47%, 1);\n --rpf-blue-900: hsla(204, 99%, 37%, 1);\n}\n\n:root, :host {\n --rpf-white: hsla(0, 0%, 100%, 1);\n --rpf-off-white: hsla(225, 25%, 97%, 1);\n --rpf-grey-50: hsla(210, 8%, 95%, 1);\n --rpf-grey-100: hsla(228, 10%, 90%, 1);\n --rpf-grey-150: hsla(223, 9%, 85%, 1);\n --rpf-grey-200: hsla(228, 10%, 80%, 1);\n --rpf-grey-300: hsla(229, 9%, 75%, 1);\n --rpf-grey-400: hsla(229, 8%, 61%, 1);\n --rpf-grey-500: hsla(229, 9%, 42%, 1);\n --rpf-grey-600: hsla(228, 9%, 32%, 1);\n --rpf-grey-700: hsla(228, 9%, 22%, 1);\n --rpf-grey-800: hsla(232, 9%, 18%, 1);\n --rpf-grey-850: hsla(228, 9%, 15%, 1);\n --rpf-grey-900: hsla(228, 9%, 10%, 1);\n --rpf-grey-950: hsla(228, 8%, 5%, 1);\n --rpf-black: hsla(0, 0%, 0%, 1);\n}\n\n:root, :host {\n --rpf-alert-error-highlight: hsla(0, 88%, 99%, 1);\n --rpf-alert-error: hsla(0, 88%, 33%, 1);\n --rpf-alert-information-highlight: hsla(225, 64%, 99%, 1);\n --rpf-alert-information: hsla(225, 64%, 33%, 1);\n --rpf-alert-success-highlight: hsla(136, 90%, 99%, 1);\n --rpf-alert-success: hsla(136, 90%, 20%, 1);\n --rpf-alert-warning-highlight: hsla(26, 70%, 99%, 1);\n --rpf-alert-warning: hsla(26, 70%, 29%, 1);\n}\n\n:root, :host {\n --font-size-0-5: 0.5rem;\n --font-size-0-75: 0.75rem;\n --font-size-1: 1rem;\n --font-size-1-5: 1.25rem;\n --font-size-2: 1.5rem;\n --font-size-3: 2rem;\n --font-size-4: 2.5rem;\n --font-size-5: 3rem;\n --font-size-6: 3.5rem;\n --font-size-7: 4rem;\n --font-size-8: 4.5rem;\n --font-size-9: 5rem;\n}\n\n:root, :host {\n --font-weight-regular: 400;\n --font-weight-bold: 700;\n}\n\n:root, :host {\n --border-radius: var(--space-1);\n --border-width-sm: 1px;\n --border-width-md: 2px;\n --border-width-lg: 3px;\n --alert-border-width: var(--border-width-md);\n --fieldset-border-width: var(--border-width-md);\n --input-border-width: var(--border-width-md);\n --table-border-width: var(--border-width-sm);\n}\n\n:root, :host {\n --space-0-125: 0.0625rem;\n --space-0-25: 0.125rem;\n --space-0-5: 0.25rem;\n --space-1: 0.5rem;\n --space-1-5: 0.75rem;\n --space-2: 1rem;\n --space-3: 1.5rem;\n --space-4: 2rem;\n --space-5: 2.5rem;\n --space-6: 3rem;\n --space-7: 3.5rem;\n --space-8: 4rem;\n --space-9: 4.5rem;\n --space-10: 5rem;\n}\n\n:root, :host {\n /* 44px min-height to meet WCAG AAA target size requirements */\n --min-target-size: 44px;\n --sm-target-size: 32px;\n --lg-target-size: 48px;\n}\n\n.rpf-button {\n --rpf-button-background-color: var(--rpf-navy-800);\n --rpf-button-background-color-hover: var(--rpf-navy-900);\n --rpf-button-background-color-active: var(--rpf-navy-600);\n --rpf-button-background-color-disabled: var(--rpf-grey-600);\n --rpf-button-text-color: var(--rpf-white);\n --rpf-button-border-radius: var(--border-radius);\n --rpf-button-lg-height: var(--lg-target-size);\n --rpf-button-sm-height: var(--sm-target-size);\n --rpf-button-min-target-size: var(--min-target-size);\n all: unset;\n align-items: center;\n box-sizing: border-box;\n color: var(--rpf-button-text-color);\n /*\n * We've decided to follow the masses on this and have a pointer on buttons.\n * Google, Facebook, Twitter, Mozilla, and Microsoft amongst many others have a pointer on buttons.\n */\n cursor: pointer;\n display: flex;\n font-size: var(--font-size-1-5);\n font-weight: var(--font-weight-bold);\n gap: var(--space-1);\n min-block-size: var(--rpf-button-lg-height);\n padding: var(--space-1) var(--space-2);\n position: relative;\n text-align: center;\n text-decoration: none;\n /* Fixes a rendering error that sometimes occurs due to negative z-index */\n transform: scale(1);\n inline-size: fit-content;\n /* A bit of a hack to allow for separate visual and target heights */\n}\n.rpf-button::before {\n background-color: var(--rpf-button-background-color);\n border-color: var(--rpf-button-background-color);\n border-radius: var(--rpf-button-border-radius);\n border-style: solid;\n border-width: 2px;\n content: \"\";\n display: block;\n inset: 0;\n position: absolute;\n /* To ensure it renders under its siblings */\n z-index: -1;\n}\n.rpf-button:hover::before {\n background-color: var(--rpf-button-background-color-hover);\n border-color: var(--rpf-button-background-color-hover);\n}\n.rpf-button:active::before {\n background-color: var(--rpf-button-background-color-active);\n border-color: var(--rpf-button-background-color-active);\n}\n.rpf-button:focus-visible::before {\n outline: 2px solid var(--rpf-button-background-color);\n outline-offset: 3px;\n}\n.rpf-button:disabled, .rpf-button--disabled {\n cursor: default;\n}\n.rpf-button:disabled::before, .rpf-button:disabled:hover::before, .rpf-button--disabled::before, .rpf-button--disabled:hover::before {\n border-color: var(--rpf-button-background-color-disabled);\n background-color: var(--rpf-button-background-color-disabled);\n}\n.rpf-button--secondary {\n color: var(--rpf-button-background-color);\n}\n.rpf-button--secondary::before {\n background-color: var(--rpf-button-text-color);\n}\n.rpf-button--secondary:hover {\n color: var(--rpf-button-background-color-hover);\n}\n.rpf-button--secondary:hover::before {\n background-color: var(--rpf-button-text-color);\n border-color: var(--rpf-button-background-color-hover);\n}\n.rpf-button--secondary:active {\n color: var(--rpf-button-background-color-active);\n}\n.rpf-button--secondary:active::before {\n background-color: var(--rpf-button-text-color);\n border-color: var(--rpf-button-background-color-active);\n}\n.rpf-button--secondary:disabled, .rpf-button--secondary.rpf-button--disabled {\n color: var(--rpf-button-background-color-disabled);\n}\n.rpf-button--secondary:disabled:hover::before, .rpf-button--secondary:disabled:before, .rpf-button--secondary.rpf-button--disabled:hover::before, .rpf-button--secondary.rpf-button--disabled:before {\n background-color: var(--rpf-button-text-color);\n border-color: var(--rpf-button-background-color-disabled);\n}\n.rpf-button--tertiary {\n color: var(--rpf-button-background-color);\n}\n.rpf-button--tertiary::before {\n background-color: transparent;\n border-color: transparent;\n}\n.rpf-button--tertiary:hover {\n color: var(--rpf-button-background-color-hover);\n}\n.rpf-button--tertiary:hover::before {\n background-color: transparent;\n border-color: transparent;\n}\n.rpf-button--tertiary:active {\n color: var(--rpf-button-background-color-active);\n}\n.rpf-button--tertiary:active::before {\n background-color: transparent;\n}\n.rpf-button--tertiary:disabled, .rpf-button--tertiary.rpf-button--disabled {\n color: var(--rpf-button-background-color-disabled);\n}\n.rpf-button--tertiary:disabled::before, .rpf-button--tertiary:disabled:hover::before, .rpf-button--tertiary.rpf-button--disabled::before, .rpf-button--tertiary.rpf-button--disabled:hover::before {\n background-color: transparent;\n border-color: transparent;\n}\n.rpf-button--danger {\n --rpf-button-background-color: var(--rpf-alert-error);\n --rpf-button-background-color-hover: var(--rpf-alert-error);\n --rpf-button-background-color-active: var(--rpf-red-900);\n}\n.rpf-button--icon-only {\n block-size: var(--rpf-button-lg-height);\n line-height: var(--rpf-button-lg-height);\n padding: 0;\n text-align: center;\n inline-size: var(--rpf-button-lg-height);\n}\n.rpf-button--icon-only .rpf-button__icon {\n margin: 0 auto;\n}\n.rpf-button--sm {\n font-size: var(--font-size-1);\n min-block-size: var(--rpf-button-min-target-size);\n padding: var(--space-1) var(--space-1);\n /* To account for 32px visual height and 44px target height */\n}\n.rpf-button--sm::before {\n inset: calc((var(--rpf-button-min-target-size) - var(--rpf-button-sm-height)) / 2) 0;\n}\n.rpf-button--sm.rpf-button--icon-only {\n block-size: var(--rpf-button-min-target-size);\n line-height: var(--rpf-button-min-target-size);\n padding: 0;\n inline-size: var(--rpf-button-min-target-size);\n}\n.rpf-button--sm.rpf-button--icon-only::before {\n inset: calc((var(--rpf-button-min-target-size) - var(--rpf-button-sm-height)) / 2);\n}\n.rpf-button--sm .material-symbols-sharp {\n font-size: 20px;\n font-variation-settings: \"OPSZ\" 20;\n}\n.rpf-button--full-width {\n justify-content: center;\n inline-size: 100%;\n}\n\n:root, :host {\n --rpf-text-primary: hsla(0, 0%, 13%, 1);\n --rpf-text-primary-darkmode: var(--rpf-white);\n --rpf-text-secondary: hsla(200, 9%, 33%, 1);\n --rpf-text-secondary-darkmode: hsla(0, 0%, 80%, 1);\n --rpf-link-text: var(--rpf-navy-800);\n}\n\n:root, :host {\n --rpf-input-background-color: var(--rpf-white);\n --rpf-input-background-color-disabled: var(--rpf-grey-50);\n --rpf-input-background-color-readonly: var(--rpf-grey-50);\n --rpf-input-color-error: var(--rpf-alert-error);\n --rpf-input-color: var(--rpf-text-primary);\n --rpf-input-outline-color: var(--rpf-blue-800);\n}\n\n.rpf-input-search-container {\n display: flex;\n max-width: 50ch;\n min-width: 240px;\n width: 100%;\n}\n.rpf-input-search-container input[type=search]::-webkit-search-decoration,\n.rpf-input-search-container input[type=search]::-webkit-search-cancel-button {\n appearance: none;\n}\n.rpf-input-search-container .rpf-input-search {\n border-end-end-radius: 0;\n border-inline-end: 0;\n border-start-end-radius: 0;\n}\n.rpf-input-search-container .rpf-button {\n flex-shrink: 0;\n border-radius: 0 var(--border-radius) var(--border-radius) 0;\n box-sizing: border-box;\n justify-content: center;\n max-width: var(--space-6);\n}\n.rpf-input-search-container .rpf-button::before {\n border: var(--input-border-width) solid var(--rpf-input-color);\n border-radius: 0 var(--border-radius) var(--border-radius) 0;\n}\n.rpf-input-search-container .rpf-button:disabled .rpf-button__icon, .rpf-input-search-container .rpf-button--disabled .rpf-button__icon {\n color: var(--rpf-input-color);\n}\n.rpf-input-search-container .rpf-button:disabled::before, .rpf-input-search-container .rpf-button--disabled::before {\n background-color: var(--rpf-input-background-color-disabled);\n border-color: var(--rpf-input-background-color-disabled);\n}\n.rpf-input-search-container .rpf-button--error::before {\n border-color: var(--rpf-alert-error);\n}\n.rpf-input-search-container .rpf-input-search:focus-visible,\n.rpf-input-search-container .rpf-button:focus-visible {\n outline: 3px solid var(--rpf-input-outline-color);\n z-index: 1;\n}\n.rpf-input-search-container .rpf-input-search:focus-visible::before,\n.rpf-input-search-container .rpf-button:focus-visible::before {\n outline: 0;\n}\n";
1624
- styleInject(css_248z$4);
1625
-
1626
- const SearchInput = ({
1627
- label,
1628
- inputFieldId,
1629
- disabled = false,
1630
- error = "",
1631
- hint = "",
1632
- placeholder = "",
1633
- defaultValue = "",
1634
- onClick = () => {},
1635
- onChange = event => {}
1636
- }) => /*#__PURE__*/React.createElement("div", {
1637
- className: "rpf-input-field"
1638
- }, /*#__PURE__*/React.createElement("label", {
1639
- htmlFor: inputFieldId,
1640
- className: classNames("rpf-label", {
1641
- "rpf-label--disabled": disabled
1642
- })
1643
- }, label, hint && /*#__PURE__*/React.createElement("small", {
1644
- className: "rpf-label__hint"
1645
- }, hint)), /*#__PURE__*/React.createElement("div", {
1646
- className: "rpf-input-search-container"
1647
- }, /*#__PURE__*/React.createElement("input", {
1648
- className: classNames("rpf-input rpf-input-search", {
1649
- "rpf-input--disabled": disabled,
1650
- "rpf-input--error": error
1651
- }),
1652
- disabled: disabled,
1653
- id: inputFieldId,
1654
- name: "search",
1655
- type: "search",
1656
- "area-label": "Search",
1657
- defaultValue: defaultValue,
1658
- placeholder: placeholder,
1659
- onChange: onChange
1660
- }), /*#__PURE__*/React.createElement("button", {
1661
- type: "button",
1662
- className: classNames("rpf-button rpf-button-search", {
1663
- "rpf-button--disabled": disabled,
1664
- "rpf-button--error": error
1665
- }),
1666
- disabled: disabled,
1667
- onClick: onClick
1668
- }, /*#__PURE__*/React.createElement("span", {
1669
- className: "rpf-button__icon material-symbols-sharp"
1670
- }, "search"))), error && /*#__PURE__*/React.createElement("div", {
1671
- className: "rpf-error-message"
1672
- }, /*#__PURE__*/React.createElement("span", {
1673
- className: "rpf-error-message__icon material-symbols-sharp"
1674
- }, "info"), error));
1675
- SearchInput.propTypes = {
1676
- disabled: PropTypes.bool,
1677
- error: PropTypes.string,
1678
- hint: PropTypes.string,
1679
- inputFieldId: PropTypes.string.isRequired,
1680
- label: PropTypes.string.isRequired,
1681
- onClick: PropTypes.func,
1682
- onChange: PropTypes.func,
1683
- placeholder: PropTypes.string,
1684
- defaultValue: PropTypes.string
1685
- };
1686
-
1687
- var css_248z$3 = ".rpf-table {\n border: 1px solid var(--rpf-grey-100);\n border-radius: var(--border-radius);\n overflow: auto;\n top: 0;\n width: fit-content;\n}\n.rpf-table--full-width {\n width: 100%;\n}\n.rpf-table__table {\n border-collapse: collapse;\n width: max-content;\n}\n.rpf-table__table--full-width {\n width: 100%;\n}\n.rpf-table__table thead th,\n.rpf-table__table thead td {\n position: sticky;\n top: 0;\n z-index: 1;\n}\n";
1688
- styleInject(css_248z$3);
1689
-
1690
- const Table = ({
1691
- headerRow,
1692
- bodyRows,
1693
- fullWidth
1694
- }) => /*#__PURE__*/React.createElement("div", {
1695
- "data-testid": "table-container",
1696
- className: classNames("rpf-table", {
1697
- "rpf-table--full-width": fullWidth
1698
- })
1699
- }, /*#__PURE__*/React.createElement("table", {
1700
- className: classNames("rpf-table__table", {
1701
- "rpf-table__table--full-width": fullWidth
1702
- })
1703
- }, /*#__PURE__*/React.createElement("thead", null, /*#__PURE__*/React.createElement("tr", {
1704
- className: "rpf-table-row"
1705
- }, headerRow)), /*#__PURE__*/React.createElement("tbody", null, bodyRows.map((bodyRow, index) => /*#__PURE__*/React.createElement("tr", {
1706
- className: "rpf-table-row",
1707
- key: index
1708
- }, bodyRow)))));
1709
- PropTypes.Table = {
1710
- headerRow: PropTypes.node.isRequired,
1711
- bodyRows: PropTypes.arrayOf(PropTypes.node).isRequired,
1712
- children: PropTypes.node.isRequired,
1713
- fullWidth: PropTypes.bool
1714
- };
1715
-
1716
- var css_248z$2 = ".rpf-table-cell {\n border-bottom: var(--table-border-width) solid var(--rpf-grey-100);\n}\n.rpf-table-cell > * {\n align-items: center;\n box-sizing: border-box;\n display: flex;\n gap: var(--space-1);\n line-height: var(--line-height-1-5);\n padding-block: var(--space-1);\n padding-inline: var(--space-2);\n}\n.rpf-table-cell--header, .rpf-table-cell--sortable-header {\n background-color: var(--rpf-grey-50);\n}\n.rpf-table-cell--header > *, .rpf-table-cell--sortable-header > * {\n min-height: var(--space-7);\n min-width: var(--space-7);\n}\n.rpf-table-cell--sortable-header .rpf-table-cell__sort-header {\n display: flex;\n width: 100%;\n gap: var(--space-1);\n min-height: var(--min-target-size);\n align-items: center;\n border-radius: var(--border-radius);\n}\n.rpf-table-cell--sortable-header .rpf-table-cell__sort-header:focus-visible {\n outline: 2px solid var(--rpf-raspberry-800);\n outline-offset: 3px;\n}\n.rpf-table-cell--sortable-header button {\n all: unset;\n cursor: pointer;\n}\n.rpf-table-cell--sortable-header a {\n color: inherit;\n text-decoration: none;\n}\n.rpf-table-cell--body {\n background-color: var(--rpf-white);\n}\n.rpf-table-cell--body .rpf-table-cell__content {\n min-height: var(--space-8);\n min-width: var(--space-8);\n}\n.rpf-table-cell--body .rpf-table-cell__content > * {\n margin-block: auto;\n}\n.rpf-table-cell--body .rpf-table-cell__content a {\n color: var(--rpf-brand-500);\n font-weight: var(--font-weight-bold);\n}\n.rpf-table-cell--body .rpf-table-cell__content:has(> .rpf-button) {\n justify-content: end;\n padding: var(--space-1);\n}\n.rpf-table-cell--body .rpf-table-cell__content--truncated {\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n";
1717
- styleInject(css_248z$2);
1718
-
1719
- const BodyCell = ({
1720
- children
1721
- }) => /*#__PURE__*/React.createElement("td", {
1722
- className: "rpf-table-cell rpf-table-cell--body"
1723
- }, /*#__PURE__*/React.createElement("div", {
1724
- className: "rpf-table-cell__content"
1725
- }, children));
1726
-
1727
- var css_248z$1 = ".rpf-table-cell {\n border-bottom: var(--table-border-width) solid var(--rpf-grey-100);\n}\n.rpf-table-cell > * {\n align-items: center;\n box-sizing: border-box;\n display: flex;\n gap: var(--space-1);\n line-height: var(--line-height-1-5);\n padding-block: var(--space-1);\n padding-inline: var(--space-2);\n}\n.rpf-table-cell--header, .rpf-table-cell--sortable-header {\n background-color: var(--rpf-grey-50);\n}\n.rpf-table-cell--header > *, .rpf-table-cell--sortable-header > * {\n min-height: var(--space-7);\n min-width: var(--space-7);\n}\n.rpf-table-cell--sortable-header .rpf-table-cell__sort-header {\n display: flex;\n width: 100%;\n gap: var(--space-1);\n min-height: var(--min-target-size);\n align-items: center;\n border-radius: var(--border-radius);\n}\n.rpf-table-cell--sortable-header .rpf-table-cell__sort-header:focus-visible {\n outline: 2px solid var(--rpf-raspberry-800);\n outline-offset: 3px;\n}\n.rpf-table-cell--sortable-header button {\n all: unset;\n cursor: pointer;\n}\n.rpf-table-cell--sortable-header a {\n color: inherit;\n text-decoration: none;\n}\n.rpf-table-cell--body {\n background-color: var(--rpf-white);\n}\n.rpf-table-cell--body .rpf-table-cell__content {\n min-height: var(--space-8);\n min-width: var(--space-8);\n}\n.rpf-table-cell--body .rpf-table-cell__content > * {\n margin-block: auto;\n}\n.rpf-table-cell--body .rpf-table-cell__content a {\n color: var(--rpf-brand-500);\n font-weight: var(--font-weight-bold);\n}\n.rpf-table-cell--body .rpf-table-cell__content:has(> .rpf-button) {\n justify-content: end;\n padding: var(--space-1);\n}\n.rpf-table-cell--body .rpf-table-cell__content--truncated {\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n";
1728
- styleInject(css_248z$1);
1729
-
1730
- const HeaderCell = ({
1731
- sortDirection,
1732
- children
1733
- }) => {
1734
- if (sortDirection !== undefined) {
1735
- const symbol = sortDirection === "up" ? "arrow_drop_up" : "arrow_drop_down";
1736
- children = /*#__PURE__*/React.createElement("div", {
1737
- class: "rpf-table-cell__sort-header"
1738
- }, children, /*#__PURE__*/React.createElement("span", {
1739
- class: "material-symbols-sharp"
1740
- }, symbol));
1741
- }
1742
- const headerClass = sortDirection !== undefined ? "rpf-table-cell--sortable-header" : "rpf-table-cell--header";
1743
- return /*#__PURE__*/React.createElement("th", {
1744
- className: `rpf-table-cell ${headerClass}`
1745
- }, /*#__PURE__*/React.createElement("div", {
1746
- className: "rpf-table-cell__content"
1747
- }, children));
1748
- };
1749
- PropTypes.HeaderCell = {
1750
- sortDirection: PropTypes.oneOf(["up", "down"]),
1751
- children: PropTypes.node
1752
- };
1753
-
1754
- var css_248z = ":root, :host {\n --font-weight-regular: 400;\n --font-weight-bold: 700;\n}\n\n:root, :host {\n --space-0-125: 0.0625rem;\n --space-0-25: 0.125rem;\n --space-0-5: 0.25rem;\n --space-1: 0.5rem;\n --space-1-5: 0.75rem;\n --space-2: 1rem;\n --space-3: 1.5rem;\n --space-4: 2rem;\n --space-5: 2.5rem;\n --space-6: 3rem;\n --space-7: 3.5rem;\n --space-8: 4rem;\n --space-9: 4.5rem;\n --space-10: 5rem;\n}\n\n.rpf-tag {\n --tag-color: var(--rpf-text-primary);\n --tag-color-secondary: color-mix(in srgb, var(--tag-color), white 95%);\n --tag-text-color: var(--rpf-white);\n --tag-text-color-secondary: var(--tag-color);\n align-items: center;\n border: solid 1px var(--tag-color);\n background-color: var(--tag-color);\n border-radius: 2rem;\n color: var(--tag-text-color);\n display: flex;\n font-weight: var(--font-weight-bold);\n gap: var(--space-0-5);\n line-height: 1.5rem;\n padding: var(--space-0-5) var(--space-1);\n inline-size: max-content;\n}\n.rpf-tag--information {\n background-color: var(--rpf-alert-information);\n border-color: var(--rpf-alert-information);\n}\n.rpf-tag--success {\n background-color: var(--rpf-alert-success);\n border-color: var(--rpf-alert-success);\n}\n.rpf-tag--warning {\n background-color: var(--rpf-alert-warning);\n border-color: var(--rpf-alert-warning);\n}\n.rpf-tag--error {\n background-color: var(--rpf-alert-error);\n border-color: var(--rpf-alert-error);\n}\n.rpf-tag--secondary {\n background-color: var(--tag-color-secondary);\n color: var(--tag-text-color-secondary);\n}\n.rpf-tag--secondary.rpf-tag--information {\n border-color: var(--rpf-alert-information);\n color: var(--rpf-alert-information);\n}\n.rpf-tag--secondary.rpf-tag--success {\n border-color: var(--rpf-alert-success);\n color: var(--rpf-alert-success);\n}\n.rpf-tag--secondary.rpf-tag--warning {\n border-color: var(--rpf-alert-warning);\n color: var(--rpf-alert-warning);\n}\n.rpf-tag--secondary.rpf-tag--error {\n border-color: var(--rpf-alert-error);\n color: var(--rpf-alert-error);\n}\n";
1755
- styleInject(css_248z);
1756
-
1757
- const Tag = ({
1758
- text,
1759
- variant,
1760
- secondary,
1761
- icon,
1762
- iconPosition
1763
- }) => {
1764
- if (icon) {
1765
- icon = /*#__PURE__*/React.createElement("span", {
1766
- className: "rpf-tag__icon material-symbols-sharp"
1767
- }, icon);
1768
- }
1769
- if (icon && !iconPosition) {
1770
- // default to left if icon is present and no position is specified
1771
- iconPosition = "left";
1772
- }
1773
- if (variant && variant !== "default") {
1774
- variant = `rpf-tag--${variant}`;
1775
- } else {
1776
- // no class for default variant
1777
- variant = null;
1778
- }
1779
- return /*#__PURE__*/React.createElement("span", {
1780
- className: classNames("rpf-tag", variant, {
1781
- "rpf-tag--secondary": secondary
1782
- })
1783
- }, iconPosition === "left" && icon, text, iconPosition === "right" && icon);
1784
- };
1785
- Tag.propTypes = {
1786
- text: PropTypes.string.isRequired,
1787
- variant: PropTypes.oneOf(["default", "information", "success", "warning", "error"]),
1788
- secondary: PropTypes.bool,
1789
- icon: PropTypes.string,
1790
- iconPosition: PropTypes.oneOf(["left", "right"])
1791
- };
1792
-
1793
- exports.Accordion = Accordion;
1794
- exports.Alert = Alert;
1795
- exports.Button = Button;
1796
- exports.CheckboxInput = CheckboxInput;
1797
- exports.Fieldset = Fieldset;
1798
- exports.InputField = InputField;
1799
- exports.InputLabel = InputLabel;
1800
- exports.ProgressBar = ProgressBar;
1801
- exports.RadioInput = RadioInput;
1802
- exports.SearchInput = SearchInput;
1803
- exports.SelectInput = SelectInput;
1804
- exports.Table = Table;
1805
- exports.TableBodyCell = BodyCell;
1806
- exports.TableHeaderCell = HeaderCell;
1807
- exports.Tag = Tag;
1808
- exports.TextInput = TextInput;
1809
- exports.TextareaInput = TextareaInput;