@raspberrypifoundation/design-system-react 1.7.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 +7 -0
  2. package/README.md +64 -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 +58 -83
  49. package/dist/cjs/bundle.js +0 -1821
  50. package/dist/esm/bundle.js +0 -1803
@@ -1,1821 +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-radius-sm: var(--space-0-5);\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-radius-sm: var(--space-0-5);\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-color: var(--rpf-button-background-color);\n --rpf-button-border-color-hover: var(--rpf-button-background-color-hover);\n --rpf-button-border-color-active: var(--rpf-button-background-color-active);\n --rpf-button-border-color-disabled: var(--rpf-button-background-color-disabled);\n --rpf-button-danger-background-color: var(--rpf-alert-error);\n --rpf-button-danger-background-color-hover: var(--rpf-alert-error);\n --rpf-button-danger-background-color-active: var(--rpf-red-900);\n --rpf-button-danger-background-color-disabled: var(--rpf-grey-600);\n --rpf-button-danger-text-color: var(--rpf-white);\n --rpf-button-danger-border-color: var(--rpf-button-danger-background-color);\n --rpf-button-danger-border-color-hover: var(--rpf-button-danger-background-color-hover);\n --rpf-button-danger-border-color-active: var(--rpf-button-danger-background-color-active);\n --rpf-button-danger-border-color-disabled: var(--rpf-button-danger-background-color-disabled);\n --rpf-button-border-radius: var(--border-radius);\n --rpf-button-border-width: var(--border-width-md);\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-border-color);\n border-radius: var(--rpf-button-border-radius);\n border-style: solid;\n border-width: var(--rpf-button-border-width);\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-border-color-hover);\n}\n.rpf-button:active::before {\n background-color: var(--rpf-button-background-color-active);\n border-color: var(--rpf-button-border-color-active);\n}\n.rpf-button:focus-visible::before {\n outline: var(--border-width-md) 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-border-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-border-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-border-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-border-color-disabled);\n}\n.rpf-button--secondary.rpf-button--danger {\n color: var(--rpf-button-danger-background-color);\n}\n.rpf-button--secondary.rpf-button--danger::before {\n background-color: var(--rpf-button-danger-text-color);\n}\n.rpf-button--secondary.rpf-button--danger:hover {\n color: var(--rpf-button-danger-background-color-hover);\n}\n.rpf-button--secondary.rpf-button--danger:hover::before {\n background-color: var(--rpf-button-danger-text-color);\n border-color: var(--rpf-button-danger-border-color-hover);\n}\n.rpf-button--secondary.rpf-button--danger:active {\n color: var(--rpf-button-danger-background-color-active);\n}\n.rpf-button--secondary.rpf-button--danger:active::before {\n background-color: var(--rpf-button-danger-text-color);\n border-color: var(--rpf-button-danger-border-color-active);\n}\n.rpf-button--secondary.rpf-button--danger:disabled, .rpf-button--secondary.rpf-button--danger.rpf-button--disabled {\n color: var(--rpf-button-danger-background-color-disabled);\n}\n.rpf-button--secondary.rpf-button--danger:disabled:hover::before, .rpf-button--secondary.rpf-button--danger:disabled:before, .rpf-button--secondary.rpf-button--danger.rpf-button--disabled:hover::before, .rpf-button--secondary.rpf-button--danger.rpf-button--disabled:before {\n background-color: var(--rpf-button-danger-text-color);\n border-color: var(--rpf-button-danger-border-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--tertiary.rpf-button--danger {\n color: var(--rpf-button-danger-background-color);\n}\n.rpf-button--tertiary.rpf-button--danger::before {\n background-color: transparent;\n border-color: transparent;\n}\n.rpf-button--tertiary.rpf-button--danger:hover {\n color: var(--rpf-button-danger-background-color-hover);\n}\n.rpf-button--tertiary.rpf-button--danger:hover::before {\n background-color: transparent;\n border-color: transparent;\n}\n.rpf-button--tertiary.rpf-button--danger:active {\n color: var(--rpf-button-danger-background-color-active);\n}\n.rpf-button--tertiary.rpf-button--danger:active::before {\n background-color: transparent;\n}\n.rpf-button--tertiary.rpf-button--danger:disabled, .rpf-button--tertiary.rpf-button--danger.rpf-button--disabled {\n color: var(--rpf-button-danger-background-color-disabled);\n}\n.rpf-button--tertiary.rpf-button--danger:disabled::before, .rpf-button--tertiary.rpf-button--danger:disabled:hover::before, .rpf-button--tertiary.rpf-button--danger.rpf-button--disabled::before, .rpf-button--tertiary.rpf-button--danger.rpf-button--disabled:hover::before {\n background-color: transparent;\n border-color: transparent;\n}\n.rpf-button--danger {\n color: var(--rpf-button-danger-text-color);\n}\n.rpf-button--danger::before {\n background-color: var(--rpf-button-danger-background-color);\n border-color: var(--rpf-button-danger-border-color);\n}\n.rpf-button--danger:hover::before {\n background-color: var(--rpf-button-danger-background-color-hover);\n border-color: var(--rpf-button-danger-border-color-hover);\n}\n.rpf-button--danger:active::before {\n background-color: var(--rpf-button-danger-background-color-active);\n border-color: var(--rpf-button-danger-border-color-active);\n}\n.rpf-button--danger:focus-visible::before {\n outline: var(--border-width-md) solid var(--rpf-button-danger-background-color);\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-radius-sm: var(--space-0-5);\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:host {\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 flex-direction: column;\n margin-block-end: var(--space-2);\n position: relative;\n text-align: center;\n}\n.rpf-alert__header {\n box-sizing: border-box;\n display: flex;\n flex-direction: row;\n gap: var(--space-1);\n align-items: center;\n justify-content: space-between;\n min-block-size: var(--space-6);\n inline-size: 100%;\n padding-inline: var(--space-2) var(--space-1);\n}\n.rpf-alert__icon {\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 align-self: stretch;\n display: flex;\n flex-direction: column;\n gap: var(--space-2);\n padding-block-end: var(--space-2);\n padding-inline: var(--space-2);\n text-align: start;\n}\n.rpf-alert__body * {\n margin: 0;\n padding: 0;\n}\n.rpf-alert__title {\n font-size: var(--font-size-1);\n font-weight: var(--font-weight-bold);\n line-height: var(--line-height-1-5);\n inline-size: 100%;\n margin-block: var(--space-2);\n margin-inline: 0;\n text-align: start;\n}\n.rpf-alert__actions {\n display: flex;\n flex-direction: row;\n gap: var(--space-2);\n}\n.rpf-alert__close {\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 inset-inline-end: var(--space-0-5);\n inset-block-start: var(--space-0-5);\n}\n.rpf-alert__close .rpf-button__icon {\n color: var(--rpf-text-primary);\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-color: var(--rpf-button-background-color);\n --rpf-button-border-color-hover: var(--rpf-button-background-color-hover);\n --rpf-button-border-color-active: var(--rpf-button-background-color-active);\n --rpf-button-border-color-disabled: var(--rpf-button-background-color-disabled);\n --rpf-button-danger-background-color: var(--rpf-alert-error);\n --rpf-button-danger-background-color-hover: var(--rpf-alert-error);\n --rpf-button-danger-background-color-active: var(--rpf-red-900);\n --rpf-button-danger-background-color-disabled: var(--rpf-grey-600);\n --rpf-button-danger-text-color: var(--rpf-white);\n --rpf-button-danger-border-color: var(--rpf-button-danger-background-color);\n --rpf-button-danger-border-color-hover: var(--rpf-button-danger-background-color-hover);\n --rpf-button-danger-border-color-active: var(--rpf-button-danger-background-color-active);\n --rpf-button-danger-border-color-disabled: var(--rpf-button-danger-background-color-disabled);\n --rpf-button-border-radius: var(--border-radius);\n --rpf-button-border-width: var(--border-width-md);\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-border-color);\n border-radius: var(--rpf-button-border-radius);\n border-style: solid;\n border-width: var(--rpf-button-border-width);\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-border-color-hover);\n}\n.rpf-button:active::before {\n background-color: var(--rpf-button-background-color-active);\n border-color: var(--rpf-button-border-color-active);\n}\n.rpf-button:focus-visible::before {\n outline: var(--border-width-md) 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-border-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-border-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-border-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-border-color-disabled);\n}\n.rpf-button--secondary.rpf-button--danger {\n color: var(--rpf-button-danger-background-color);\n}\n.rpf-button--secondary.rpf-button--danger::before {\n background-color: var(--rpf-button-danger-text-color);\n}\n.rpf-button--secondary.rpf-button--danger:hover {\n color: var(--rpf-button-danger-background-color-hover);\n}\n.rpf-button--secondary.rpf-button--danger:hover::before {\n background-color: var(--rpf-button-danger-text-color);\n border-color: var(--rpf-button-danger-border-color-hover);\n}\n.rpf-button--secondary.rpf-button--danger:active {\n color: var(--rpf-button-danger-background-color-active);\n}\n.rpf-button--secondary.rpf-button--danger:active::before {\n background-color: var(--rpf-button-danger-text-color);\n border-color: var(--rpf-button-danger-border-color-active);\n}\n.rpf-button--secondary.rpf-button--danger:disabled, .rpf-button--secondary.rpf-button--danger.rpf-button--disabled {\n color: var(--rpf-button-danger-background-color-disabled);\n}\n.rpf-button--secondary.rpf-button--danger:disabled:hover::before, .rpf-button--secondary.rpf-button--danger:disabled:before, .rpf-button--secondary.rpf-button--danger.rpf-button--disabled:hover::before, .rpf-button--secondary.rpf-button--danger.rpf-button--disabled:before {\n background-color: var(--rpf-button-danger-text-color);\n border-color: var(--rpf-button-danger-border-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--tertiary.rpf-button--danger {\n color: var(--rpf-button-danger-background-color);\n}\n.rpf-button--tertiary.rpf-button--danger::before {\n background-color: transparent;\n border-color: transparent;\n}\n.rpf-button--tertiary.rpf-button--danger:hover {\n color: var(--rpf-button-danger-background-color-hover);\n}\n.rpf-button--tertiary.rpf-button--danger:hover::before {\n background-color: transparent;\n border-color: transparent;\n}\n.rpf-button--tertiary.rpf-button--danger:active {\n color: var(--rpf-button-danger-background-color-active);\n}\n.rpf-button--tertiary.rpf-button--danger:active::before {\n background-color: transparent;\n}\n.rpf-button--tertiary.rpf-button--danger:disabled, .rpf-button--tertiary.rpf-button--danger.rpf-button--disabled {\n color: var(--rpf-button-danger-background-color-disabled);\n}\n.rpf-button--tertiary.rpf-button--danger:disabled::before, .rpf-button--tertiary.rpf-button--danger:disabled:hover::before, .rpf-button--tertiary.rpf-button--danger.rpf-button--disabled::before, .rpf-button--tertiary.rpf-button--danger.rpf-button--disabled:hover::before {\n background-color: transparent;\n border-color: transparent;\n}\n.rpf-button--danger {\n color: var(--rpf-button-danger-text-color);\n}\n.rpf-button--danger::before {\n background-color: var(--rpf-button-danger-background-color);\n border-color: var(--rpf-button-danger-border-color);\n}\n.rpf-button--danger:hover::before {\n background-color: var(--rpf-button-danger-background-color-hover);\n border-color: var(--rpf-button-danger-border-color-hover);\n}\n.rpf-button--danger:active::before {\n background-color: var(--rpf-button-danger-background-color-active);\n border-color: var(--rpf-button-danger-border-color-active);\n}\n.rpf-button--danger:focus-visible::before {\n outline: var(--border-width-md) solid var(--rpf-button-danger-background-color);\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
- onClose
1262
- }) => /*#__PURE__*/React.createElement("div", {
1263
- className: `rpf-alert rpf-alert--${type}`
1264
- }, /*#__PURE__*/React.createElement("div", {
1265
- className: "rpf-alert__header"
1266
- }, /*#__PURE__*/React.createElement("span", {
1267
- className: "rpf-alert__icon material-symbols-sharp"
1268
- }), /*#__PURE__*/React.createElement("p", {
1269
- className: "rpf-alert__title"
1270
- }, title), !!onClose && /*#__PURE__*/React.createElement("div", {
1271
- className: "rpf-alert__close"
1272
- }, /*#__PURE__*/React.createElement(Button, {
1273
- type: "tertiary",
1274
- icon: "close",
1275
- size: "small",
1276
- iconOnly: true,
1277
- onClick: onClose
1278
- }))), (text || children || actions) && /*#__PURE__*/React.createElement("div", {
1279
- className: "rpf-alert__body"
1280
- }, !children && text && /*#__PURE__*/React.createElement("p", null, text), children && /*#__PURE__*/React.createElement("div", null, children), actions && actions.length > 0 && /*#__PURE__*/React.createElement("div", {
1281
- className: "rpf-alert__actions"
1282
- }, actions.map(action => /*#__PURE__*/React.createElement(Button, {
1283
- key: action.key || action.label,
1284
- text: action.label,
1285
- size: "small",
1286
- type: "tertiary",
1287
- href: action.href,
1288
- onClick: action.onClick
1289
- })))));
1290
- Alert.propTypes = {
1291
- title: PropTypes.string,
1292
- text: PropTypes.string,
1293
- type: PropTypes.oneOf(["error", "warning", "information", "success"]),
1294
- actions: PropTypes.arrayOf(PropTypes.shape({
1295
- href: PropTypes.string,
1296
- label: PropTypes.string,
1297
- onClick: PropTypes.func
1298
- })),
1299
- children: PropTypes.node,
1300
- onClose: PropTypes.func
1301
- };
1302
-
1303
- 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, :host {\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";
1304
- styleInject(css_248z$b);
1305
-
1306
- /* eslint-disable complexity */
1307
- const ProgressBar = ({
1308
- text = "",
1309
- percent
1310
- }) => /*#__PURE__*/React.createElement("div", {
1311
- className: "rpf-progress-bar"
1312
- }, /*#__PURE__*/React.createElement("label", {
1313
- class: "rpf-progress-bar__label"
1314
- }, /*#__PURE__*/React.createElement("span", null, text), /*#__PURE__*/React.createElement("progress", {
1315
- class: "rpf-progress-bar__bar",
1316
- value: percent,
1317
- max: "100"
1318
- }, `${percent}%`)));
1319
- ProgressBar.propTypes = {
1320
- text: PropTypes.string,
1321
- percent: PropTypes.number.isRequired
1322
- };
1323
-
1324
- var css_248z$a = ":root, :host {\n --border-radius: var(--space-1);\n --border-radius-sm: var(--space-0-5);\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, :host {\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, :host {\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";
1325
- styleInject(css_248z$a);
1326
-
1327
- const CheckboxInput = ({
1328
- id,
1329
- label,
1330
- name,
1331
- checked = false,
1332
- disabled = false,
1333
- error = "",
1334
- onChange = () => {},
1335
- value = ""
1336
- }) => /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("label", {
1337
- className: classNames("rpf-input-checkbox", {
1338
- "rpf-input-checkbox--error": error
1339
- })
1340
- }, /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("input", {
1341
- checked: !!checked,
1342
- disabled: disabled,
1343
- id: id,
1344
- name: name,
1345
- onChange: onChange,
1346
- type: "checkbox",
1347
- value: value
1348
- })), /*#__PURE__*/React.createElement("span", {
1349
- className: "checkmark"
1350
- }), label), error && /*#__PURE__*/React.createElement("div", {
1351
- className: "rpf-error-message"
1352
- }, /*#__PURE__*/React.createElement("span", {
1353
- className: "rpf-error-message__icon material-symbols-sharp"
1354
- }, "error"), error));
1355
- CheckboxInput.propTypes = {
1356
- checked: PropTypes.bool,
1357
- disabled: PropTypes.bool,
1358
- error: PropTypes.string,
1359
- id: PropTypes.string.isRequired,
1360
- label: PropTypes.oneOfType([PropTypes.string, PropTypes.object]).isRequired,
1361
- name: PropTypes.string.isRequired,
1362
- onChange: PropTypes.func,
1363
- value: PropTypes.string
1364
- };
1365
-
1366
- var css_248z$9 = ":root, :host {\n --border-radius: var(--space-1);\n --border-radius-sm: var(--space-0-5);\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";
1367
- styleInject(css_248z$9);
1368
-
1369
- const Fieldset = ({
1370
- disabled = false,
1371
- errorText = "",
1372
- fullWidth = false,
1373
- legendText,
1374
- legendHintText = "",
1375
- children
1376
- }) => {
1377
- return /*#__PURE__*/React.createElement("fieldset", {
1378
- className: classNames("rpf-fieldset", {
1379
- "rpf-fieldset--disabled": disabled,
1380
- "rpf-fieldset--full-width": fullWidth,
1381
- "rpf-fieldset--error": errorText
1382
- }),
1383
- disabled: disabled
1384
- }, /*#__PURE__*/React.createElement("legend", {
1385
- className: "rpf-label"
1386
- }, legendText, legendHintText.length > 0 ? /*#__PURE__*/React.createElement("small", {
1387
- className: "rpf-label__hint"
1388
- }, legendHintText) : null), /*#__PURE__*/React.createElement("div", {
1389
- className: "rpf-fieldset__inputs"
1390
- }, children), errorText.length > 0 ? /*#__PURE__*/React.createElement("div", {
1391
- className: "rpf-error-message"
1392
- }, /*#__PURE__*/React.createElement("span", {
1393
- className: "rpf-error-message__icon material-symbols-sharp"
1394
- }, "error"), errorText) : null);
1395
- };
1396
- Fieldset.propTypes = {
1397
- disabled: PropTypes.bool,
1398
- errorText: PropTypes.string,
1399
- fullWidth: PropTypes.bool,
1400
- legendText: PropTypes.string.isRequired,
1401
- legendHintText: PropTypes.string
1402
- };
1403
-
1404
- const InputField = ({
1405
- id,
1406
- label,
1407
- children,
1408
- disabled = false,
1409
- error = "",
1410
- hint = ""
1411
- }) => /*#__PURE__*/React.createElement("div", {
1412
- className: "rpf-input-field"
1413
- }, (label || hint) && /*#__PURE__*/React.createElement("label", {
1414
- htmlFor: id,
1415
- className: classNames("rpf-label", {
1416
- "rpf-label--disabled": disabled
1417
- })
1418
- }, label, /*#__PURE__*/React.createElement("small", {
1419
- className: "rpf-label__hint"
1420
- }, hint)), children, error && /*#__PURE__*/React.createElement("div", {
1421
- className: "rpf-error-message"
1422
- }, /*#__PURE__*/React.createElement("span", {
1423
- className: "rpf-error-message__icon material-symbols-sharp"
1424
- }, "error"), error));
1425
- InputField.propTypes = {
1426
- disabled: PropTypes.bool,
1427
- error: PropTypes.string,
1428
- hint: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
1429
- label: PropTypes.oneOfType([PropTypes.string, PropTypes.object]).isRequired,
1430
- id: PropTypes.string.isRequired
1431
- };
1432
-
1433
- 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, :host {\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, :host {\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-radius-sm: var(--space-0-5);\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";
1434
- styleInject(css_248z$8);
1435
-
1436
- const SelectInput = ({
1437
- id,
1438
- label,
1439
- name,
1440
- options,
1441
- disabled = false,
1442
- error = "",
1443
- fullWidth = false,
1444
- hint = "",
1445
- onChange = () => {},
1446
- placeholder = "",
1447
- value = ""
1448
- }) => /*#__PURE__*/React.createElement(InputField, {
1449
- id: id,
1450
- disabled: disabled,
1451
- error: error,
1452
- hint: hint,
1453
- label: label
1454
- }, /*#__PURE__*/React.createElement("select", {
1455
- className: classNames("rpf-input rpf-input-select", {
1456
- "rpf-input--error": error,
1457
- "rpf-input--full-width": fullWidth
1458
- }),
1459
- disabled: disabled,
1460
- id: id,
1461
- name: name,
1462
- onChange: onChange,
1463
- type: "text",
1464
- value: value
1465
- }, !value && !!placeholder && /*#__PURE__*/React.createElement("option", {
1466
- value: "",
1467
- disabled: true
1468
- }, placeholder), options.map(option => /*#__PURE__*/React.createElement("option", {
1469
- value: option.key,
1470
- key: option.key
1471
- }, option.value))));
1472
- SelectInput.propTypes = {
1473
- disabled: PropTypes.bool,
1474
- error: PropTypes.string,
1475
- fullWidth: PropTypes.bool,
1476
- hint: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
1477
- label: PropTypes.oneOfType([PropTypes.string, PropTypes.object]).isRequired,
1478
- id: PropTypes.string.isRequired,
1479
- name: PropTypes.string.isRequired,
1480
- onChange: PropTypes.func,
1481
- options: PropTypes.array.isRequired,
1482
- placeholder: PropTypes.string,
1483
- value: PropTypes.string
1484
- };
1485
-
1486
- var css_248z$7 = ":root, :host {\n --border-radius: var(--space-1);\n --border-radius-sm: var(--space-0-5);\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, :host {\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 --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";
1487
- styleInject(css_248z$7);
1488
-
1489
- const TextInput = ({
1490
- id,
1491
- label,
1492
- name,
1493
- value,
1494
- disabled = false,
1495
- error = "",
1496
- fullWidth = false,
1497
- hint = "",
1498
- onChange = () => {}
1499
- }) => /*#__PURE__*/React.createElement(InputField, {
1500
- id: id,
1501
- disabled: disabled,
1502
- error: error,
1503
- hint: hint,
1504
- label: label
1505
- }, /*#__PURE__*/React.createElement("input", {
1506
- className: classNames("rpf-input rpf-input-text", {
1507
- "rpf-input--error": error,
1508
- "rpf-input--full-width": fullWidth
1509
- }),
1510
- disabled: disabled,
1511
- id: id,
1512
- name: name,
1513
- onChange: onChange,
1514
- type: "text",
1515
- value: value
1516
- }));
1517
- TextInput.propTypes = {
1518
- disabled: PropTypes.bool,
1519
- error: PropTypes.string,
1520
- fullWidth: PropTypes.bool,
1521
- hint: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
1522
- label: PropTypes.oneOfType([PropTypes.string, PropTypes.object]).isRequired,
1523
- id: PropTypes.string.isRequired,
1524
- name: PropTypes.string.isRequired,
1525
- onChange: PropTypes.func,
1526
- value: PropTypes.string.isRequired
1527
- };
1528
-
1529
- const InputLabel = ({
1530
- label,
1531
- inputFieldId,
1532
- disabled = false,
1533
- hint = ""
1534
- }) => /*#__PURE__*/React.createElement("div", {
1535
- className: "rpf-label"
1536
- }, /*#__PURE__*/React.createElement("label", {
1537
- htmlFor: inputFieldId,
1538
- className: classNames("rpf-label", {
1539
- "rpf-label--disabled": disabled
1540
- })
1541
- }, label, hint && /*#__PURE__*/React.createElement("div", {
1542
- className: "rpf-label__hint"
1543
- }, hint)));
1544
- InputLabel.propTypes = {
1545
- disabled: PropTypes.bool,
1546
- hint: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
1547
- label: PropTypes.oneOfType([PropTypes.string, PropTypes.object]).isRequired,
1548
- inputFieldId: PropTypes.string.isRequired
1549
- };
1550
-
1551
- var css_248z$6 = ":root, :host {\n --border-radius: var(--space-1);\n --border-radius-sm: var(--space-0-5);\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, :host {\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";
1552
- styleInject(css_248z$6);
1553
-
1554
- const RadioInput = ({
1555
- id,
1556
- label,
1557
- name,
1558
- checked = false,
1559
- disabled = false,
1560
- fullWidth = false,
1561
- onChange = () => {},
1562
- value = ""
1563
- }) => /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("label", {
1564
- className: classNames("rpf-input-radio", {
1565
- "rpf-input-radio--disabled": disabled,
1566
- "rpf-input--full-width": fullWidth
1567
- })
1568
- }, /*#__PURE__*/React.createElement("input", {
1569
- checked: !!checked,
1570
- disabled: disabled,
1571
- id: id,
1572
- name: name,
1573
- onChange: onChange,
1574
- type: "radio",
1575
- value: value
1576
- }), label));
1577
- RadioInput.propTypes = {
1578
- checked: PropTypes.bool,
1579
- disabled: PropTypes.bool,
1580
- fullWidth: PropTypes.bool,
1581
- id: PropTypes.string.isRequired,
1582
- label: PropTypes.oneOfType([PropTypes.string, PropTypes.object]).isRequired,
1583
- name: PropTypes.string.isRequired,
1584
- onChange: PropTypes.func,
1585
- value: PropTypes.string
1586
- };
1587
-
1588
- var css_248z$5 = ":root, :host {\n --border-radius: var(--space-1);\n --border-radius-sm: var(--space-0-5);\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, :host {\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, :host {\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";
1589
- styleInject(css_248z$5);
1590
-
1591
- const TextareaInput = ({
1592
- id,
1593
- label,
1594
- name,
1595
- value,
1596
- disabled = false,
1597
- readOnly = false,
1598
- error = "",
1599
- fullWidth = false,
1600
- hint = "",
1601
- onChange = () => {}
1602
- }) => /*#__PURE__*/React.createElement(InputField, {
1603
- id: id,
1604
- disabled: disabled,
1605
- error: error,
1606
- hint: hint,
1607
- label: label
1608
- }, /*#__PURE__*/React.createElement("textarea", {
1609
- className: classNames("rpf-input rpf-input-textarea", {
1610
- "rpf-input--error": error,
1611
- "rpf-input--full-width": fullWidth,
1612
- "rpf-input--disabled": disabled
1613
- }),
1614
- disabled: disabled,
1615
- readOnly: readOnly,
1616
- id: id,
1617
- name: name,
1618
- onChange: onChange,
1619
- type: "text",
1620
- value: value
1621
- }));
1622
- TextareaInput.propTypes = {
1623
- disabled: PropTypes.bool,
1624
- readOnly: PropTypes.bool,
1625
- error: PropTypes.string,
1626
- fullWidth: PropTypes.bool,
1627
- hint: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
1628
- label: PropTypes.oneOfType([PropTypes.string, PropTypes.object]).isRequired,
1629
- id: PropTypes.string.isRequired,
1630
- name: PropTypes.string.isRequired,
1631
- onChange: PropTypes.func,
1632
- value: PropTypes.string.isRequired
1633
- };
1634
-
1635
- 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-radius-sm: var(--space-0-5);\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-color: var(--rpf-button-background-color);\n --rpf-button-border-color-hover: var(--rpf-button-background-color-hover);\n --rpf-button-border-color-active: var(--rpf-button-background-color-active);\n --rpf-button-border-color-disabled: var(--rpf-button-background-color-disabled);\n --rpf-button-danger-background-color: var(--rpf-alert-error);\n --rpf-button-danger-background-color-hover: var(--rpf-alert-error);\n --rpf-button-danger-background-color-active: var(--rpf-red-900);\n --rpf-button-danger-background-color-disabled: var(--rpf-grey-600);\n --rpf-button-danger-text-color: var(--rpf-white);\n --rpf-button-danger-border-color: var(--rpf-button-danger-background-color);\n --rpf-button-danger-border-color-hover: var(--rpf-button-danger-background-color-hover);\n --rpf-button-danger-border-color-active: var(--rpf-button-danger-background-color-active);\n --rpf-button-danger-border-color-disabled: var(--rpf-button-danger-background-color-disabled);\n --rpf-button-border-radius: var(--border-radius);\n --rpf-button-border-width: var(--border-width-md);\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-border-color);\n border-radius: var(--rpf-button-border-radius);\n border-style: solid;\n border-width: var(--rpf-button-border-width);\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-border-color-hover);\n}\n.rpf-button:active::before {\n background-color: var(--rpf-button-background-color-active);\n border-color: var(--rpf-button-border-color-active);\n}\n.rpf-button:focus-visible::before {\n outline: var(--border-width-md) 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-border-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-border-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-border-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-border-color-disabled);\n}\n.rpf-button--secondary.rpf-button--danger {\n color: var(--rpf-button-danger-background-color);\n}\n.rpf-button--secondary.rpf-button--danger::before {\n background-color: var(--rpf-button-danger-text-color);\n}\n.rpf-button--secondary.rpf-button--danger:hover {\n color: var(--rpf-button-danger-background-color-hover);\n}\n.rpf-button--secondary.rpf-button--danger:hover::before {\n background-color: var(--rpf-button-danger-text-color);\n border-color: var(--rpf-button-danger-border-color-hover);\n}\n.rpf-button--secondary.rpf-button--danger:active {\n color: var(--rpf-button-danger-background-color-active);\n}\n.rpf-button--secondary.rpf-button--danger:active::before {\n background-color: var(--rpf-button-danger-text-color);\n border-color: var(--rpf-button-danger-border-color-active);\n}\n.rpf-button--secondary.rpf-button--danger:disabled, .rpf-button--secondary.rpf-button--danger.rpf-button--disabled {\n color: var(--rpf-button-danger-background-color-disabled);\n}\n.rpf-button--secondary.rpf-button--danger:disabled:hover::before, .rpf-button--secondary.rpf-button--danger:disabled:before, .rpf-button--secondary.rpf-button--danger.rpf-button--disabled:hover::before, .rpf-button--secondary.rpf-button--danger.rpf-button--disabled:before {\n background-color: var(--rpf-button-danger-text-color);\n border-color: var(--rpf-button-danger-border-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--tertiary.rpf-button--danger {\n color: var(--rpf-button-danger-background-color);\n}\n.rpf-button--tertiary.rpf-button--danger::before {\n background-color: transparent;\n border-color: transparent;\n}\n.rpf-button--tertiary.rpf-button--danger:hover {\n color: var(--rpf-button-danger-background-color-hover);\n}\n.rpf-button--tertiary.rpf-button--danger:hover::before {\n background-color: transparent;\n border-color: transparent;\n}\n.rpf-button--tertiary.rpf-button--danger:active {\n color: var(--rpf-button-danger-background-color-active);\n}\n.rpf-button--tertiary.rpf-button--danger:active::before {\n background-color: transparent;\n}\n.rpf-button--tertiary.rpf-button--danger:disabled, .rpf-button--tertiary.rpf-button--danger.rpf-button--disabled {\n color: var(--rpf-button-danger-background-color-disabled);\n}\n.rpf-button--tertiary.rpf-button--danger:disabled::before, .rpf-button--tertiary.rpf-button--danger:disabled:hover::before, .rpf-button--tertiary.rpf-button--danger.rpf-button--disabled::before, .rpf-button--tertiary.rpf-button--danger.rpf-button--disabled:hover::before {\n background-color: transparent;\n border-color: transparent;\n}\n.rpf-button--danger {\n color: var(--rpf-button-danger-text-color);\n}\n.rpf-button--danger::before {\n background-color: var(--rpf-button-danger-background-color);\n border-color: var(--rpf-button-danger-border-color);\n}\n.rpf-button--danger:hover::before {\n background-color: var(--rpf-button-danger-background-color-hover);\n border-color: var(--rpf-button-danger-border-color-hover);\n}\n.rpf-button--danger:active::before {\n background-color: var(--rpf-button-danger-background-color-active);\n border-color: var(--rpf-button-danger-border-color-active);\n}\n.rpf-button--danger:focus-visible::before {\n outline: var(--border-width-md) solid var(--rpf-button-danger-background-color);\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";
1636
- styleInject(css_248z$4);
1637
-
1638
- const SearchInput = ({
1639
- label,
1640
- inputFieldId,
1641
- disabled = false,
1642
- error = "",
1643
- hint = "",
1644
- placeholder = "",
1645
- defaultValue = "",
1646
- onClick = () => {},
1647
- onChange = event => {}
1648
- }) => /*#__PURE__*/React.createElement("div", {
1649
- className: "rpf-input-field"
1650
- }, /*#__PURE__*/React.createElement("label", {
1651
- htmlFor: inputFieldId,
1652
- className: classNames("rpf-label", {
1653
- "rpf-label--disabled": disabled
1654
- })
1655
- }, label, hint && /*#__PURE__*/React.createElement("small", {
1656
- className: "rpf-label__hint"
1657
- }, hint)), /*#__PURE__*/React.createElement("div", {
1658
- className: "rpf-input-search-container"
1659
- }, /*#__PURE__*/React.createElement("input", {
1660
- className: classNames("rpf-input rpf-input-search", {
1661
- "rpf-input--disabled": disabled,
1662
- "rpf-input--error": error
1663
- }),
1664
- disabled: disabled,
1665
- id: inputFieldId,
1666
- name: "search",
1667
- type: "search",
1668
- "area-label": "Search",
1669
- defaultValue: defaultValue,
1670
- placeholder: placeholder,
1671
- onChange: onChange
1672
- }), /*#__PURE__*/React.createElement("button", {
1673
- type: "button",
1674
- className: classNames("rpf-button rpf-button-search", {
1675
- "rpf-button--disabled": disabled,
1676
- "rpf-button--error": error
1677
- }),
1678
- disabled: disabled,
1679
- onClick: onClick
1680
- }, /*#__PURE__*/React.createElement("span", {
1681
- className: "rpf-button__icon material-symbols-sharp"
1682
- }, "search"))), error && /*#__PURE__*/React.createElement("div", {
1683
- className: "rpf-error-message"
1684
- }, /*#__PURE__*/React.createElement("span", {
1685
- className: "rpf-error-message__icon material-symbols-sharp"
1686
- }, "info"), error));
1687
- SearchInput.propTypes = {
1688
- disabled: PropTypes.bool,
1689
- error: PropTypes.string,
1690
- hint: PropTypes.string,
1691
- inputFieldId: PropTypes.string.isRequired,
1692
- label: PropTypes.string.isRequired,
1693
- onClick: PropTypes.func,
1694
- onChange: PropTypes.func,
1695
- placeholder: PropTypes.string,
1696
- defaultValue: PropTypes.string
1697
- };
1698
-
1699
- 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";
1700
- styleInject(css_248z$3);
1701
-
1702
- const Table = ({
1703
- headerRow,
1704
- bodyRows,
1705
- fullWidth
1706
- }) => /*#__PURE__*/React.createElement("div", {
1707
- "data-testid": "table-container",
1708
- className: classNames("rpf-table", {
1709
- "rpf-table--full-width": fullWidth
1710
- })
1711
- }, /*#__PURE__*/React.createElement("table", {
1712
- className: classNames("rpf-table__table", {
1713
- "rpf-table__table--full-width": fullWidth
1714
- })
1715
- }, /*#__PURE__*/React.createElement("thead", null, /*#__PURE__*/React.createElement("tr", {
1716
- className: "rpf-table-row"
1717
- }, headerRow)), /*#__PURE__*/React.createElement("tbody", null, bodyRows.map((bodyRow, index) => /*#__PURE__*/React.createElement("tr", {
1718
- className: "rpf-table-row",
1719
- key: index
1720
- }, bodyRow)))));
1721
- PropTypes.Table = {
1722
- headerRow: PropTypes.node.isRequired,
1723
- bodyRows: PropTypes.arrayOf(PropTypes.node).isRequired,
1724
- children: PropTypes.node.isRequired,
1725
- fullWidth: PropTypes.bool
1726
- };
1727
-
1728
- 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";
1729
- styleInject(css_248z$2);
1730
-
1731
- const BodyCell = ({
1732
- children
1733
- }) => /*#__PURE__*/React.createElement("td", {
1734
- className: "rpf-table-cell rpf-table-cell--body"
1735
- }, /*#__PURE__*/React.createElement("div", {
1736
- className: "rpf-table-cell__content"
1737
- }, children));
1738
-
1739
- 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";
1740
- styleInject(css_248z$1);
1741
-
1742
- const HeaderCell = ({
1743
- sortDirection,
1744
- children
1745
- }) => {
1746
- if (sortDirection !== undefined) {
1747
- const symbol = sortDirection === "up" ? "arrow_drop_up" : "arrow_drop_down";
1748
- children = /*#__PURE__*/React.createElement("div", {
1749
- class: "rpf-table-cell__sort-header"
1750
- }, children, /*#__PURE__*/React.createElement("span", {
1751
- class: "material-symbols-sharp"
1752
- }, symbol));
1753
- }
1754
- const headerClass = sortDirection !== undefined ? "rpf-table-cell--sortable-header" : "rpf-table-cell--header";
1755
- return /*#__PURE__*/React.createElement("th", {
1756
- className: `rpf-table-cell ${headerClass}`
1757
- }, /*#__PURE__*/React.createElement("div", {
1758
- className: "rpf-table-cell__content"
1759
- }, children));
1760
- };
1761
- PropTypes.HeaderCell = {
1762
- sortDirection: PropTypes.oneOf(["up", "down"]),
1763
- children: PropTypes.node
1764
- };
1765
-
1766
- 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";
1767
- styleInject(css_248z);
1768
-
1769
- const Tag = ({
1770
- text,
1771
- variant,
1772
- secondary,
1773
- icon,
1774
- iconPosition
1775
- }) => {
1776
- if (icon) {
1777
- icon = /*#__PURE__*/React.createElement("span", {
1778
- className: "rpf-tag__icon material-symbols-sharp"
1779
- }, icon);
1780
- }
1781
- if (icon && !iconPosition) {
1782
- // default to left if icon is present and no position is specified
1783
- iconPosition = "left";
1784
- }
1785
- if (variant && variant !== "default") {
1786
- variant = `rpf-tag--${variant}`;
1787
- } else {
1788
- // no class for default variant
1789
- variant = null;
1790
- }
1791
- return /*#__PURE__*/React.createElement("span", {
1792
- className: classNames("rpf-tag", variant, {
1793
- "rpf-tag--secondary": secondary
1794
- })
1795
- }, iconPosition === "left" && icon, text, iconPosition === "right" && icon);
1796
- };
1797
- Tag.propTypes = {
1798
- text: PropTypes.string.isRequired,
1799
- variant: PropTypes.oneOf(["default", "information", "success", "warning", "error"]),
1800
- secondary: PropTypes.bool,
1801
- icon: PropTypes.string,
1802
- iconPosition: PropTypes.oneOf(["left", "right"])
1803
- };
1804
-
1805
- exports.Accordion = Accordion;
1806
- exports.Alert = Alert;
1807
- exports.Button = Button;
1808
- exports.CheckboxInput = CheckboxInput;
1809
- exports.Fieldset = Fieldset;
1810
- exports.InputField = InputField;
1811
- exports.InputLabel = InputLabel;
1812
- exports.ProgressBar = ProgressBar;
1813
- exports.RadioInput = RadioInput;
1814
- exports.SearchInput = SearchInput;
1815
- exports.SelectInput = SelectInput;
1816
- exports.Table = Table;
1817
- exports.TableBodyCell = BodyCell;
1818
- exports.TableHeaderCell = HeaderCell;
1819
- exports.Tag = Tag;
1820
- exports.TextInput = TextInput;
1821
- exports.TextareaInput = TextareaInput;