@raspberrypifoundation/design-system-react 2.2.0-beta.7 → 2.2.0-beta.8

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.
@@ -1,1360 +0,0 @@
1
- import { jsxs as w, jsx as d, Fragment as ye } from "react/jsx-runtime";
2
- import Ae from "react";
3
- function Pe(r) {
4
- return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
5
- }
6
- var se = { exports: {} };
7
- /*!
8
- Copyright (c) 2018 Jed Watson.
9
- Licensed under the MIT License (MIT), see
10
- http://jedwatson.github.io/classnames
11
- */
12
- var me;
13
- function je() {
14
- return me || (me = 1, function(r) {
15
- (function() {
16
- var s = {}.hasOwnProperty;
17
- function c() {
18
- for (var n = "", u = 0; u < arguments.length; u++) {
19
- var p = arguments[u];
20
- p && (n = i(n, a(p)));
21
- }
22
- return n;
23
- }
24
- function a(n) {
25
- if (typeof n == "string" || typeof n == "number")
26
- return n;
27
- if (typeof n != "object")
28
- return "";
29
- if (Array.isArray(n))
30
- return c.apply(null, n);
31
- if (n.toString !== Object.prototype.toString && !n.toString.toString().includes("[native code]"))
32
- return n.toString();
33
- var u = "";
34
- for (var p in n)
35
- s.call(n, p) && n[p] && (u = i(u, p));
36
- return u;
37
- }
38
- function i(n, u) {
39
- return u ? n ? n + " " + u : n + u : n;
40
- }
41
- r.exports ? (c.default = c, r.exports = c) : window.classNames = c;
42
- })();
43
- }(se)), se.exports;
44
- }
45
- var qe = je();
46
- const Y = /* @__PURE__ */ Pe(qe);
47
- var X = { exports: {} }, G = { exports: {} }, C = {};
48
- /** @license React v16.13.1
49
- * react-is.production.min.js
50
- *
51
- * Copyright (c) Facebook, Inc. and its affiliates.
52
- *
53
- * This source code is licensed under the MIT license found in the
54
- * LICENSE file in the root directory of this source tree.
55
- */
56
- var ve;
57
- function Ie() {
58
- if (ve) return C;
59
- ve = 1;
60
- var r = typeof Symbol == "function" && Symbol.for, s = r ? Symbol.for("react.element") : 60103, c = r ? Symbol.for("react.portal") : 60106, a = r ? Symbol.for("react.fragment") : 60107, i = r ? Symbol.for("react.strict_mode") : 60108, n = r ? Symbol.for("react.profiler") : 60114, u = r ? Symbol.for("react.provider") : 60109, p = r ? Symbol.for("react.context") : 60110, v = r ? Symbol.for("react.async_mode") : 60111, _ = r ? Symbol.for("react.concurrent_mode") : 60111, g = r ? Symbol.for("react.forward_ref") : 60112, E = r ? Symbol.for("react.suspense") : 60113, A = r ? Symbol.for("react.suspense_list") : 60120, j = r ? Symbol.for("react.memo") : 60115, k = r ? Symbol.for("react.lazy") : 60116, N = r ? Symbol.for("react.block") : 60121, I = r ? Symbol.for("react.fundamental") : 60117, M = r ? Symbol.for("react.responder") : 60118, L = r ? Symbol.for("react.scope") : 60119;
61
- function $(o) {
62
- if (typeof o == "object" && o !== null) {
63
- var z = o.$$typeof;
64
- switch (z) {
65
- case s:
66
- switch (o = o.type, o) {
67
- case v:
68
- case _:
69
- case a:
70
- case n:
71
- case i:
72
- case E:
73
- return o;
74
- default:
75
- switch (o = o && o.$$typeof, o) {
76
- case p:
77
- case g:
78
- case k:
79
- case j:
80
- case u:
81
- return o;
82
- default:
83
- return z;
84
- }
85
- }
86
- case c:
87
- return z;
88
- }
89
- }
90
- }
91
- function q(o) {
92
- return $(o) === _;
93
- }
94
- return C.AsyncMode = v, C.ConcurrentMode = _, C.ContextConsumer = p, C.ContextProvider = u, C.Element = s, C.ForwardRef = g, C.Fragment = a, C.Lazy = k, C.Memo = j, C.Portal = c, C.Profiler = n, C.StrictMode = i, C.Suspense = E, C.isAsyncMode = function(o) {
95
- return q(o) || $(o) === v;
96
- }, C.isConcurrentMode = q, C.isContextConsumer = function(o) {
97
- return $(o) === p;
98
- }, C.isContextProvider = function(o) {
99
- return $(o) === u;
100
- }, C.isElement = function(o) {
101
- return typeof o == "object" && o !== null && o.$$typeof === s;
102
- }, C.isForwardRef = function(o) {
103
- return $(o) === g;
104
- }, C.isFragment = function(o) {
105
- return $(o) === a;
106
- }, C.isLazy = function(o) {
107
- return $(o) === k;
108
- }, C.isMemo = function(o) {
109
- return $(o) === j;
110
- }, C.isPortal = function(o) {
111
- return $(o) === c;
112
- }, C.isProfiler = function(o) {
113
- return $(o) === n;
114
- }, C.isStrictMode = function(o) {
115
- return $(o) === i;
116
- }, C.isSuspense = function(o) {
117
- return $(o) === E;
118
- }, C.isValidElementType = function(o) {
119
- return typeof o == "string" || typeof o == "function" || o === a || o === _ || o === n || o === i || o === E || o === A || typeof o == "object" && o !== null && (o.$$typeof === k || o.$$typeof === j || o.$$typeof === u || o.$$typeof === p || o.$$typeof === g || o.$$typeof === I || o.$$typeof === M || o.$$typeof === L || o.$$typeof === N);
120
- }, C.typeOf = $, C;
121
- }
122
- var x = {};
123
- /** @license React v16.13.1
124
- * react-is.development.js
125
- *
126
- * Copyright (c) Facebook, Inc. and its affiliates.
127
- *
128
- * This source code is licensed under the MIT license found in the
129
- * LICENSE file in the root directory of this source tree.
130
- */
131
- var ge;
132
- function $e() {
133
- return ge || (ge = 1, process.env.NODE_ENV !== "production" && function() {
134
- var r = typeof Symbol == "function" && Symbol.for, s = r ? Symbol.for("react.element") : 60103, c = r ? Symbol.for("react.portal") : 60106, a = r ? Symbol.for("react.fragment") : 60107, i = r ? Symbol.for("react.strict_mode") : 60108, n = r ? Symbol.for("react.profiler") : 60114, u = r ? Symbol.for("react.provider") : 60109, p = r ? Symbol.for("react.context") : 60110, v = r ? Symbol.for("react.async_mode") : 60111, _ = r ? Symbol.for("react.concurrent_mode") : 60111, g = r ? Symbol.for("react.forward_ref") : 60112, E = r ? Symbol.for("react.suspense") : 60113, A = r ? Symbol.for("react.suspense_list") : 60120, j = r ? Symbol.for("react.memo") : 60115, k = r ? Symbol.for("react.lazy") : 60116, N = r ? Symbol.for("react.block") : 60121, I = r ? Symbol.for("react.fundamental") : 60117, M = r ? Symbol.for("react.responder") : 60118, L = r ? Symbol.for("react.scope") : 60119;
135
- function $(l) {
136
- return typeof l == "string" || typeof l == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
137
- l === a || l === _ || l === n || l === i || l === E || l === A || typeof l == "object" && l !== null && (l.$$typeof === k || l.$$typeof === j || l.$$typeof === u || l.$$typeof === p || l.$$typeof === g || l.$$typeof === I || l.$$typeof === M || l.$$typeof === L || l.$$typeof === N);
138
- }
139
- function q(l) {
140
- if (typeof l == "object" && l !== null) {
141
- var F = l.$$typeof;
142
- switch (F) {
143
- case s:
144
- var J = l.type;
145
- switch (J) {
146
- case v:
147
- case _:
148
- case a:
149
- case n:
150
- case i:
151
- case E:
152
- return J;
153
- default:
154
- var he = J && J.$$typeof;
155
- switch (he) {
156
- case p:
157
- case g:
158
- case k:
159
- case j:
160
- case u:
161
- return he;
162
- default:
163
- return F;
164
- }
165
- }
166
- case c:
167
- return F;
168
- }
169
- }
170
- }
171
- var o = v, z = _, Z = p, Q = u, ee = s, re = g, V = a, te = k, ne = j, B = c, ae = n, D = i, U = E, H = !1;
172
- function ie(l) {
173
- return H || (H = !0, 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.")), t(l) || q(l) === v;
174
- }
175
- function t(l) {
176
- return q(l) === _;
177
- }
178
- function f(l) {
179
- return q(l) === p;
180
- }
181
- function T(l) {
182
- return q(l) === u;
183
- }
184
- function h(l) {
185
- return typeof l == "object" && l !== null && l.$$typeof === s;
186
- }
187
- function y(l) {
188
- return q(l) === g;
189
- }
190
- function R(l) {
191
- return q(l) === a;
192
- }
193
- function b(l) {
194
- return q(l) === k;
195
- }
196
- function m(l) {
197
- return q(l) === j;
198
- }
199
- function O(l) {
200
- return q(l) === c;
201
- }
202
- function P(l) {
203
- return q(l) === n;
204
- }
205
- function S(l) {
206
- return q(l) === i;
207
- }
208
- function W(l) {
209
- return q(l) === E;
210
- }
211
- x.AsyncMode = o, x.ConcurrentMode = z, x.ContextConsumer = Z, x.ContextProvider = Q, x.Element = ee, x.ForwardRef = re, x.Fragment = V, x.Lazy = te, x.Memo = ne, x.Portal = B, x.Profiler = ae, x.StrictMode = D, x.Suspense = U, x.isAsyncMode = ie, x.isConcurrentMode = t, x.isContextConsumer = f, x.isContextProvider = T, x.isElement = h, x.isForwardRef = y, x.isFragment = R, x.isLazy = b, x.isMemo = m, x.isPortal = O, x.isProfiler = P, x.isStrictMode = S, x.isSuspense = W, x.isValidElementType = $, x.typeOf = q;
212
- }()), x;
213
- }
214
- var Te;
215
- function we() {
216
- return Te || (Te = 1, process.env.NODE_ENV === "production" ? G.exports = Ie() : G.exports = $e()), G.exports;
217
- }
218
- /*
219
- object-assign
220
- (c) Sindre Sorhus
221
- @license MIT
222
- */
223
- var oe, _e;
224
- function ke() {
225
- if (_e) return oe;
226
- _e = 1;
227
- var r = Object.getOwnPropertySymbols, s = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
228
- function a(n) {
229
- if (n == null)
230
- throw new TypeError("Object.assign cannot be called with null or undefined");
231
- return Object(n);
232
- }
233
- function i() {
234
- try {
235
- if (!Object.assign)
236
- return !1;
237
- var n = new String("abc");
238
- if (n[5] = "de", Object.getOwnPropertyNames(n)[0] === "5")
239
- return !1;
240
- for (var u = {}, p = 0; p < 10; p++)
241
- u["_" + String.fromCharCode(p)] = p;
242
- var v = Object.getOwnPropertyNames(u).map(function(g) {
243
- return u[g];
244
- });
245
- if (v.join("") !== "0123456789")
246
- return !1;
247
- var _ = {};
248
- return "abcdefghijklmnopqrst".split("").forEach(function(g) {
249
- _[g] = g;
250
- }), Object.keys(Object.assign({}, _)).join("") === "abcdefghijklmnopqrst";
251
- } catch {
252
- return !1;
253
- }
254
- }
255
- return oe = i() ? Object.assign : function(n, u) {
256
- for (var p, v = a(n), _, g = 1; g < arguments.length; g++) {
257
- p = Object(arguments[g]);
258
- for (var E in p)
259
- s.call(p, E) && (v[E] = p[E]);
260
- if (r) {
261
- _ = r(p);
262
- for (var A = 0; A < _.length; A++)
263
- c.call(p, _[A]) && (v[_[A]] = p[_[A]]);
264
- }
265
- }
266
- return v;
267
- }, oe;
268
- }
269
- var le, Ee;
270
- function be() {
271
- if (Ee) return le;
272
- Ee = 1;
273
- var r = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
274
- return le = r, le;
275
- }
276
- var ce, Re;
277
- function Ne() {
278
- return Re || (Re = 1, ce = Function.call.bind(Object.prototype.hasOwnProperty)), ce;
279
- }
280
- var fe, Oe;
281
- function Me() {
282
- if (Oe) return fe;
283
- Oe = 1;
284
- var r = function() {
285
- };
286
- if (process.env.NODE_ENV !== "production") {
287
- var s = /* @__PURE__ */ be(), c = {}, a = /* @__PURE__ */ Ne();
288
- r = function(n) {
289
- var u = "Warning: " + n;
290
- typeof console < "u" && console.error(u);
291
- try {
292
- throw new Error(u);
293
- } catch {
294
- }
295
- };
296
- }
297
- function i(n, u, p, v, _) {
298
- if (process.env.NODE_ENV !== "production") {
299
- for (var g in n)
300
- if (a(n, g)) {
301
- var E;
302
- try {
303
- if (typeof n[g] != "function") {
304
- var A = Error(
305
- (v || "React class") + ": " + p + " type `" + g + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[g] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
306
- );
307
- throw A.name = "Invariant Violation", A;
308
- }
309
- E = n[g](u, g, v, p, null, s);
310
- } catch (k) {
311
- E = k;
312
- }
313
- if (E && !(E instanceof Error) && r(
314
- (v || "React class") + ": type specification of " + p + " `" + g + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof E + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
315
- ), E instanceof Error && !(E.message in c)) {
316
- c[E.message] = !0;
317
- var j = _ ? _() : "";
318
- r(
319
- "Failed " + p + " type: " + E.message + (j ?? "")
320
- );
321
- }
322
- }
323
- }
324
- }
325
- return i.resetWarningCache = function() {
326
- process.env.NODE_ENV !== "production" && (c = {});
327
- }, fe = i, fe;
328
- }
329
- var ue, Se;
330
- function Ye() {
331
- if (Se) return ue;
332
- Se = 1;
333
- var r = we(), s = ke(), c = /* @__PURE__ */ be(), a = /* @__PURE__ */ Ne(), i = /* @__PURE__ */ Me(), n = function() {
334
- };
335
- process.env.NODE_ENV !== "production" && (n = function(p) {
336
- var v = "Warning: " + p;
337
- typeof console < "u" && console.error(v);
338
- try {
339
- throw new Error(v);
340
- } catch {
341
- }
342
- });
343
- function u() {
344
- return null;
345
- }
346
- return ue = function(p, v) {
347
- var _ = typeof Symbol == "function" && Symbol.iterator, g = "@@iterator";
348
- function E(t) {
349
- var f = t && (_ && t[_] || t[g]);
350
- if (typeof f == "function")
351
- return f;
352
- }
353
- var A = "<<anonymous>>", j = {
354
- array: M("array"),
355
- bigint: M("bigint"),
356
- bool: M("boolean"),
357
- func: M("function"),
358
- number: M("number"),
359
- object: M("object"),
360
- string: M("string"),
361
- symbol: M("symbol"),
362
- any: L(),
363
- arrayOf: $,
364
- element: q(),
365
- elementType: o(),
366
- instanceOf: z,
367
- node: re(),
368
- objectOf: Q,
369
- oneOf: Z,
370
- oneOfType: ee,
371
- shape: te,
372
- exact: ne
373
- };
374
- function k(t, f) {
375
- return t === f ? t !== 0 || 1 / t === 1 / f : t !== t && f !== f;
376
- }
377
- function N(t, f) {
378
- this.message = t, this.data = f && typeof f == "object" ? f : {}, this.stack = "";
379
- }
380
- N.prototype = Error.prototype;
381
- function I(t) {
382
- if (process.env.NODE_ENV !== "production")
383
- var f = {}, T = 0;
384
- function h(R, b, m, O, P, S, W) {
385
- if (O = O || A, S = S || m, W !== c) {
386
- if (v) {
387
- var l = new Error(
388
- "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
389
- );
390
- throw l.name = "Invariant Violation", l;
391
- } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
392
- var F = O + ":" + m;
393
- !f[F] && // Avoid spamming the console because they are often not actionable except for lib authors
394
- T < 3 && (n(
395
- "You are manually calling a React.PropTypes validation function for the `" + S + "` prop on `" + O + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
396
- ), f[F] = !0, T++);
397
- }
398
- }
399
- return b[m] == null ? R ? b[m] === null ? new N("The " + P + " `" + S + "` is marked as required " + ("in `" + O + "`, but its value is `null`.")) : new N("The " + P + " `" + S + "` is marked as required in " + ("`" + O + "`, but its value is `undefined`.")) : null : t(b, m, O, P, S);
400
- }
401
- var y = h.bind(null, !1);
402
- return y.isRequired = h.bind(null, !0), y;
403
- }
404
- function M(t) {
405
- function f(T, h, y, R, b, m) {
406
- var O = T[h], P = D(O);
407
- if (P !== t) {
408
- var S = U(O);
409
- return new N(
410
- "Invalid " + R + " `" + b + "` of type " + ("`" + S + "` supplied to `" + y + "`, expected ") + ("`" + t + "`."),
411
- { expectedType: t }
412
- );
413
- }
414
- return null;
415
- }
416
- return I(f);
417
- }
418
- function L() {
419
- return I(u);
420
- }
421
- function $(t) {
422
- function f(T, h, y, R, b) {
423
- if (typeof t != "function")
424
- return new N("Property `" + b + "` of component `" + y + "` has invalid PropType notation inside arrayOf.");
425
- var m = T[h];
426
- if (!Array.isArray(m)) {
427
- var O = D(m);
428
- return new N("Invalid " + R + " `" + b + "` of type " + ("`" + O + "` supplied to `" + y + "`, expected an array."));
429
- }
430
- for (var P = 0; P < m.length; P++) {
431
- var S = t(m, P, y, R, b + "[" + P + "]", c);
432
- if (S instanceof Error)
433
- return S;
434
- }
435
- return null;
436
- }
437
- return I(f);
438
- }
439
- function q() {
440
- function t(f, T, h, y, R) {
441
- var b = f[T];
442
- if (!p(b)) {
443
- var m = D(b);
444
- return new N("Invalid " + y + " `" + R + "` of type " + ("`" + m + "` supplied to `" + h + "`, expected a single ReactElement."));
445
- }
446
- return null;
447
- }
448
- return I(t);
449
- }
450
- function o() {
451
- function t(f, T, h, y, R) {
452
- var b = f[T];
453
- if (!r.isValidElementType(b)) {
454
- var m = D(b);
455
- return new N("Invalid " + y + " `" + R + "` of type " + ("`" + m + "` supplied to `" + h + "`, expected a single ReactElement type."));
456
- }
457
- return null;
458
- }
459
- return I(t);
460
- }
461
- function z(t) {
462
- function f(T, h, y, R, b) {
463
- if (!(T[h] instanceof t)) {
464
- var m = t.name || A, O = ie(T[h]);
465
- return new N("Invalid " + R + " `" + b + "` of type " + ("`" + O + "` supplied to `" + y + "`, expected ") + ("instance of `" + m + "`."));
466
- }
467
- return null;
468
- }
469
- return I(f);
470
- }
471
- function Z(t) {
472
- if (!Array.isArray(t))
473
- return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? n(
474
- "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
475
- ) : n("Invalid argument supplied to oneOf, expected an array.")), u;
476
- function f(T, h, y, R, b) {
477
- for (var m = T[h], O = 0; O < t.length; O++)
478
- if (k(m, t[O]))
479
- return null;
480
- var P = JSON.stringify(t, function(W, l) {
481
- var F = U(l);
482
- return F === "symbol" ? String(l) : l;
483
- });
484
- return new N("Invalid " + R + " `" + b + "` of value `" + String(m) + "` " + ("supplied to `" + y + "`, expected one of " + P + "."));
485
- }
486
- return I(f);
487
- }
488
- function Q(t) {
489
- function f(T, h, y, R, b) {
490
- if (typeof t != "function")
491
- return new N("Property `" + b + "` of component `" + y + "` has invalid PropType notation inside objectOf.");
492
- var m = T[h], O = D(m);
493
- if (O !== "object")
494
- return new N("Invalid " + R + " `" + b + "` of type " + ("`" + O + "` supplied to `" + y + "`, expected an object."));
495
- for (var P in m)
496
- if (a(m, P)) {
497
- var S = t(m, P, y, R, b + "." + P, c);
498
- if (S instanceof Error)
499
- return S;
500
- }
501
- return null;
502
- }
503
- return I(f);
504
- }
505
- function ee(t) {
506
- if (!Array.isArray(t))
507
- return process.env.NODE_ENV !== "production" && n("Invalid argument supplied to oneOfType, expected an instance of array."), u;
508
- for (var f = 0; f < t.length; f++) {
509
- var T = t[f];
510
- if (typeof T != "function")
511
- return n(
512
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + H(T) + " at index " + f + "."
513
- ), u;
514
- }
515
- function h(y, R, b, m, O) {
516
- for (var P = [], S = 0; S < t.length; S++) {
517
- var W = t[S], l = W(y, R, b, m, O, c);
518
- if (l == null)
519
- return null;
520
- l.data && a(l.data, "expectedType") && P.push(l.data.expectedType);
521
- }
522
- var F = P.length > 0 ? ", expected one of type [" + P.join(", ") + "]" : "";
523
- return new N("Invalid " + m + " `" + O + "` supplied to " + ("`" + b + "`" + F + "."));
524
- }
525
- return I(h);
526
- }
527
- function re() {
528
- function t(f, T, h, y, R) {
529
- return B(f[T]) ? null : new N("Invalid " + y + " `" + R + "` supplied to " + ("`" + h + "`, expected a ReactNode."));
530
- }
531
- return I(t);
532
- }
533
- function V(t, f, T, h, y) {
534
- return new N(
535
- (t || "React class") + ": " + f + " type `" + T + "." + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + y + "`."
536
- );
537
- }
538
- function te(t) {
539
- function f(T, h, y, R, b) {
540
- var m = T[h], O = D(m);
541
- if (O !== "object")
542
- return new N("Invalid " + R + " `" + b + "` of type `" + O + "` " + ("supplied to `" + y + "`, expected `object`."));
543
- for (var P in t) {
544
- var S = t[P];
545
- if (typeof S != "function")
546
- return V(y, R, b, P, U(S));
547
- var W = S(m, P, y, R, b + "." + P, c);
548
- if (W)
549
- return W;
550
- }
551
- return null;
552
- }
553
- return I(f);
554
- }
555
- function ne(t) {
556
- function f(T, h, y, R, b) {
557
- var m = T[h], O = D(m);
558
- if (O !== "object")
559
- return new N("Invalid " + R + " `" + b + "` of type `" + O + "` " + ("supplied to `" + y + "`, expected `object`."));
560
- var P = s({}, T[h], t);
561
- for (var S in P) {
562
- var W = t[S];
563
- if (a(t, S) && typeof W != "function")
564
- return V(y, R, b, S, U(W));
565
- if (!W)
566
- return new N(
567
- "Invalid " + R + " `" + b + "` key `" + S + "` supplied to `" + y + "`.\nBad object: " + JSON.stringify(T[h], null, " ") + `
568
- Valid keys: ` + JSON.stringify(Object.keys(t), null, " ")
569
- );
570
- var l = W(m, S, y, R, b + "." + S, c);
571
- if (l)
572
- return l;
573
- }
574
- return null;
575
- }
576
- return I(f);
577
- }
578
- function B(t) {
579
- switch (typeof t) {
580
- case "number":
581
- case "string":
582
- case "undefined":
583
- return !0;
584
- case "boolean":
585
- return !t;
586
- case "object":
587
- if (Array.isArray(t))
588
- return t.every(B);
589
- if (t === null || p(t))
590
- return !0;
591
- var f = E(t);
592
- if (f) {
593
- var T = f.call(t), h;
594
- if (f !== t.entries) {
595
- for (; !(h = T.next()).done; )
596
- if (!B(h.value))
597
- return !1;
598
- } else
599
- for (; !(h = T.next()).done; ) {
600
- var y = h.value;
601
- if (y && !B(y[1]))
602
- return !1;
603
- }
604
- } else
605
- return !1;
606
- return !0;
607
- default:
608
- return !1;
609
- }
610
- }
611
- function ae(t, f) {
612
- return t === "symbol" ? !0 : f ? f["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && f instanceof Symbol : !1;
613
- }
614
- function D(t) {
615
- var f = typeof t;
616
- return Array.isArray(t) ? "array" : t instanceof RegExp ? "object" : ae(f, t) ? "symbol" : f;
617
- }
618
- function U(t) {
619
- if (typeof t > "u" || t === null)
620
- return "" + t;
621
- var f = D(t);
622
- if (f === "object") {
623
- if (t instanceof Date)
624
- return "date";
625
- if (t instanceof RegExp)
626
- return "regexp";
627
- }
628
- return f;
629
- }
630
- function H(t) {
631
- var f = U(t);
632
- switch (f) {
633
- case "array":
634
- case "object":
635
- return "an " + f;
636
- case "boolean":
637
- case "date":
638
- case "regexp":
639
- return "a " + f;
640
- default:
641
- return f;
642
- }
643
- }
644
- function ie(t) {
645
- return !t.constructor || !t.constructor.name ? A : t.constructor.name;
646
- }
647
- return j.checkPropTypes = i, j.resetWarningCache = i.resetWarningCache, j.PropTypes = j, j;
648
- }, ue;
649
- }
650
- var pe, Ce;
651
- function We() {
652
- if (Ce) return pe;
653
- Ce = 1;
654
- var r = /* @__PURE__ */ be();
655
- function s() {
656
- }
657
- function c() {
658
- }
659
- return c.resetWarningCache = s, pe = function() {
660
- function a(u, p, v, _, g, E) {
661
- if (E !== r) {
662
- var A = new Error(
663
- "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
664
- );
665
- throw A.name = "Invariant Violation", A;
666
- }
667
- }
668
- a.isRequired = a;
669
- function i() {
670
- return a;
671
- }
672
- var n = {
673
- array: a,
674
- bigint: a,
675
- bool: a,
676
- func: a,
677
- number: a,
678
- object: a,
679
- string: a,
680
- symbol: a,
681
- any: a,
682
- arrayOf: i,
683
- element: a,
684
- elementType: a,
685
- instanceOf: i,
686
- node: a,
687
- objectOf: i,
688
- oneOf: i,
689
- oneOfType: i,
690
- shape: i,
691
- exact: i,
692
- checkPropTypes: c,
693
- resetWarningCache: s
694
- };
695
- return n.PropTypes = n, n;
696
- }, pe;
697
- }
698
- var xe;
699
- function De() {
700
- if (xe) return X.exports;
701
- if (xe = 1, process.env.NODE_ENV !== "production") {
702
- var r = we(), s = !0;
703
- X.exports = /* @__PURE__ */ Ye()(r.isElement, s);
704
- } else
705
- X.exports = /* @__PURE__ */ We()();
706
- return X.exports;
707
- }
708
- var Fe = /* @__PURE__ */ De();
709
- const e = /* @__PURE__ */ Pe(Fe), Le = ({ content: r, title: s, className: c, id: a = "accordion" }) => {
710
- const i = Y("rpf-accordion", c);
711
- return /* @__PURE__ */ w("details", { className: i, id: `${a}`, children: [
712
- /* @__PURE__ */ w("summary", { className: "rpf-accordion__title", role: "button", children: [
713
- s,
714
- /* @__PURE__ */ d("span", { className: "rpf-accordion__icon" })
715
- ] }),
716
- /* @__PURE__ */ d("p", { className: "rpf-accordion__text", children: r })
717
- ] });
718
- };
719
- Le.propTypes = {
720
- content: e.string.isRequired,
721
- title: e.string.isRequired,
722
- id: e.string,
723
- className: e.string
724
- };
725
- const de = ({
726
- text: r,
727
- href: s,
728
- title: c,
729
- className: a,
730
- type: i = "primary",
731
- variant: n = "",
732
- size: u = "default",
733
- icon: p = "",
734
- iconOnly: v = !1,
735
- iconPosition: _ = "left",
736
- fullWidth: g = !1,
737
- disabled: E = !1,
738
- onClick: A = () => {
739
- },
740
- "aria-label": j = "",
741
- linkComponent: k
742
- // to pass in react-router-dom Link component
743
- }) => {
744
- const N = p && v, I = Y(
745
- // Static classes
746
- "rpf-button",
747
- // Conditional classes
748
- {
749
- [`rpf-button--${i}`]: i,
750
- "rpf-button--danger": n === "danger",
751
- "rpf-button--sm": u === "small",
752
- "rpf-button--icon-only": N,
753
- "rpf-button--full-width": g,
754
- disabled: E
755
- },
756
- a
757
- );
758
- let M = "rpf-button__icon";
759
- Ae.isValidElement(p) ? (M += " icon", console.warn(
760
- "DEPRECATED: icons as React elements will not be supported in future releases"
761
- )) : M += " material-symbols-sharp";
762
- const L = (o) => p && _ === o && /* @__PURE__ */ d("span", { className: M, children: p }), $ = () => r && !N && /* @__PURE__ */ d("span", { className: "text", children: r }), q = /* @__PURE__ */ w(ye, { children: [
763
- L("left"),
764
- $(),
765
- L("right")
766
- ] });
767
- return s ? /* @__PURE__ */ d(
768
- k || "a",
769
- {
770
- className: I,
771
- ...k ? { to: s } : { href: s, role: "button" },
772
- onClick: A,
773
- "aria-label": j,
774
- children: q
775
- }
776
- ) : /* @__PURE__ */ d(
777
- "button",
778
- {
779
- className: I,
780
- title: c,
781
- onClick: A,
782
- disabled: E,
783
- "aria-label": j,
784
- children: q
785
- }
786
- );
787
- };
788
- de.propTypes = {
789
- type: e.string,
790
- className: e.string,
791
- disabled: e.bool,
792
- icon: e.oneOfType([e.string, e.element]),
793
- href: e.string,
794
- onClick: e.func,
795
- text: e.string,
796
- iconOnly: e.bool,
797
- title: e.string,
798
- iconPosition: e.oneOf(["left", "right"]),
799
- size: e.oneOf(["default", "small"]),
800
- "aria-label": e.string,
801
- fullWidth: e.bool,
802
- variant: e.string,
803
- linkComponent: e.elementType
804
- // New prop type
805
- };
806
- const ze = ({ title: r, text: s, children: c, type: a, actions: i, onClose: n }) => /* @__PURE__ */ w("div", { className: `rpf-alert rpf-alert--${a}`, children: [
807
- /* @__PURE__ */ w("div", { className: "rpf-alert__header", children: [
808
- /* @__PURE__ */ d("span", { className: "rpf-alert__icon material-symbols-sharp" }),
809
- /* @__PURE__ */ d("p", { className: "rpf-alert__title", children: r }),
810
- !!n && /* @__PURE__ */ d("div", { className: "rpf-alert__close", children: /* @__PURE__ */ d(
811
- de,
812
- {
813
- type: "tertiary",
814
- icon: "close",
815
- size: "small",
816
- iconOnly: !0,
817
- onClick: n
818
- }
819
- ) })
820
- ] }),
821
- (s || c || i) && /* @__PURE__ */ w("div", { className: "rpf-alert__body", children: [
822
- !c && s && /* @__PURE__ */ d("p", { children: s }),
823
- c && /* @__PURE__ */ d("div", { children: c }),
824
- i && i.length > 0 && /* @__PURE__ */ d("div", { className: "rpf-alert__actions", children: i.map((u) => /* @__PURE__ */ d(
825
- de,
826
- {
827
- text: u.label,
828
- size: "small",
829
- type: "tertiary",
830
- href: u.href,
831
- onClick: u.onClick
832
- },
833
- u.key || u.label
834
- )) })
835
- ] })
836
- ] });
837
- ze.propTypes = {
838
- title: e.string,
839
- text: e.string,
840
- type: e.oneOf(["error", "warning", "information", "success"]),
841
- actions: e.arrayOf(
842
- e.shape({
843
- href: e.string,
844
- label: e.string,
845
- onClick: e.func
846
- })
847
- ),
848
- children: e.node,
849
- onClose: e.func
850
- };
851
- const Ue = ({
852
- id: r,
853
- label: s,
854
- name: c,
855
- checked: a = !1,
856
- disabled: i = !1,
857
- error: n = "",
858
- onChange: u = () => {
859
- },
860
- value: p = "",
861
- className: v = ""
862
- }) => /* @__PURE__ */ w(ye, { children: [
863
- /* @__PURE__ */ w(
864
- "label",
865
- {
866
- className: Y("rpf-input-checkbox", {
867
- "rpf-input-checkbox--error": n,
868
- className: v
869
- }),
870
- children: [
871
- /* @__PURE__ */ d("span", { children: /* @__PURE__ */ d(
872
- "input",
873
- {
874
- checked: !!a,
875
- disabled: i,
876
- id: r,
877
- name: c,
878
- onChange: u,
879
- type: "checkbox",
880
- value: p
881
- }
882
- ) }),
883
- /* @__PURE__ */ d("span", { className: "checkmark" }),
884
- s
885
- ]
886
- }
887
- ),
888
- n && /* @__PURE__ */ w("div", { className: "rpf-error-message", children: [
889
- /* @__PURE__ */ d("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
890
- n
891
- ] })
892
- ] });
893
- Ue.propTypes = {
894
- checked: e.bool,
895
- disabled: e.bool,
896
- error: e.string,
897
- id: e.string.isRequired,
898
- label: e.oneOfType([e.string, e.object]).isRequired,
899
- name: e.string.isRequired,
900
- onChange: e.func,
901
- value: e.string,
902
- className: e.string
903
- };
904
- const Be = ({
905
- disabled: r = !1,
906
- errorText: s = "",
907
- fullWidth: c = !1,
908
- legendText: a,
909
- legendHintText: i = "",
910
- children: n
911
- }) => /* @__PURE__ */ w(
912
- "fieldset",
913
- {
914
- className: Y("rpf-fieldset", {
915
- "rpf-fieldset--disabled": r,
916
- "rpf-fieldset--full-width": c,
917
- "rpf-fieldset--error": s
918
- }),
919
- disabled: r,
920
- children: [
921
- /* @__PURE__ */ w("legend", { className: "rpf-label", children: [
922
- a,
923
- i.length > 0 ? /* @__PURE__ */ d("small", { className: "rpf-label__hint", children: i }) : null
924
- ] }),
925
- /* @__PURE__ */ d("div", { className: "rpf-fieldset__inputs", children: n }),
926
- s.length > 0 ? /* @__PURE__ */ w("div", { className: "rpf-error-message", children: [
927
- /* @__PURE__ */ d("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
928
- s
929
- ] }) : null
930
- ]
931
- }
932
- );
933
- Be.propTypes = {
934
- disabled: e.bool,
935
- errorText: e.string,
936
- fullWidth: e.bool,
937
- legendText: e.string.isRequired,
938
- legendHintText: e.string,
939
- children: e.node
940
- };
941
- const K = ({
942
- id: r,
943
- label: s,
944
- children: c,
945
- disabled: a = !1,
946
- error: i = "",
947
- hint: n = ""
948
- }) => /* @__PURE__ */ w("div", { className: "rpf-input-field", children: [
949
- (s || n) && /* @__PURE__ */ w(
950
- "label",
951
- {
952
- htmlFor: r,
953
- className: Y("rpf-label", {
954
- "rpf-label--disabled": a
955
- }),
956
- children: [
957
- s,
958
- /* @__PURE__ */ d("small", { className: "rpf-label__hint", children: n })
959
- ]
960
- }
961
- ),
962
- c,
963
- i && /* @__PURE__ */ w("div", { className: "rpf-error-message", children: [
964
- /* @__PURE__ */ d("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
965
- i
966
- ] })
967
- ] });
968
- K.propTypes = {
969
- disabled: e.bool,
970
- error: e.string,
971
- hint: e.oneOfType([e.string, e.object]),
972
- label: e.oneOfType([e.string, e.object]).isRequired,
973
- id: e.string.isRequired,
974
- children: e.node
975
- };
976
- const Ve = ({
977
- label: r,
978
- inputFieldId: s,
979
- disabled: c = !1,
980
- hint: a = ""
981
- }) => /* @__PURE__ */ d("div", { className: "rpf-label", children: /* @__PURE__ */ w(
982
- "label",
983
- {
984
- htmlFor: s,
985
- className: Y("rpf-label", {
986
- "rpf-label--disabled": c
987
- }),
988
- children: [
989
- r,
990
- a && /* @__PURE__ */ d("div", { className: "rpf-label__hint", children: a })
991
- ]
992
- }
993
- ) });
994
- Ve.propTypes = {
995
- disabled: e.bool,
996
- hint: e.oneOfType([e.string, e.object]),
997
- label: e.oneOfType([e.string, e.object]).isRequired,
998
- inputFieldId: e.string.isRequired
999
- };
1000
- const He = ({ text: r = "", percent: s }) => /* @__PURE__ */ d("div", { className: "rpf-progress-bar", children: /* @__PURE__ */ w("label", { className: "rpf-progress-bar__label", children: [
1001
- /* @__PURE__ */ d("span", { children: r }),
1002
- /* @__PURE__ */ d("progress", { className: "rpf-progress-bar__bar", value: s, max: "100", children: `${s}%` })
1003
- ] }) });
1004
- He.propTypes = {
1005
- text: e.string,
1006
- percent: e.number.isRequired
1007
- };
1008
- const Je = ({
1009
- id: r,
1010
- label: s,
1011
- name: c,
1012
- checked: a = !1,
1013
- disabled: i = !1,
1014
- fullWidth: n = !1,
1015
- onChange: u = () => {
1016
- },
1017
- value: p = ""
1018
- }) => /* @__PURE__ */ d(ye, { children: /* @__PURE__ */ w(
1019
- "label",
1020
- {
1021
- className: Y("rpf-input-radio", {
1022
- "rpf-input-radio--disabled": i,
1023
- "rpf-input--full-width": n
1024
- }),
1025
- children: [
1026
- /* @__PURE__ */ d(
1027
- "input",
1028
- {
1029
- checked: !!a,
1030
- disabled: i,
1031
- id: r,
1032
- name: c,
1033
- onChange: u,
1034
- type: "radio",
1035
- value: p
1036
- }
1037
- ),
1038
- s
1039
- ]
1040
- }
1041
- ) });
1042
- Je.propTypes = {
1043
- checked: e.bool,
1044
- disabled: e.bool,
1045
- fullWidth: e.bool,
1046
- id: e.string.isRequired,
1047
- label: e.oneOfType([e.string, e.object]).isRequired,
1048
- name: e.string.isRequired,
1049
- onChange: e.func,
1050
- value: e.string
1051
- };
1052
- const Xe = ({
1053
- label: r,
1054
- inputFieldId: s,
1055
- disabled: c = !1,
1056
- error: a = "",
1057
- hint: i = "",
1058
- placeholder: n = "",
1059
- defaultValue: u = "",
1060
- onClick: p = () => {
1061
- },
1062
- // eslint-disable-next-line no-unused-vars
1063
- onChange: v = (_) => {
1064
- }
1065
- }) => /* @__PURE__ */ w("div", { className: "rpf-input-field", children: [
1066
- /* @__PURE__ */ w(
1067
- "label",
1068
- {
1069
- htmlFor: s,
1070
- className: Y("rpf-label", {
1071
- "rpf-label--disabled": c
1072
- }),
1073
- children: [
1074
- r,
1075
- i && /* @__PURE__ */ d("small", { className: "rpf-label__hint", children: i })
1076
- ]
1077
- }
1078
- ),
1079
- /* @__PURE__ */ w("div", { className: "rpf-input-search-container", children: [
1080
- /* @__PURE__ */ d(
1081
- "input",
1082
- {
1083
- className: Y("rpf-input rpf-input-search", {
1084
- "rpf-input--disabled": c,
1085
- "rpf-input--error": a
1086
- }),
1087
- disabled: c,
1088
- id: s,
1089
- name: "search",
1090
- type: "search",
1091
- "aria-label": "Search",
1092
- defaultValue: u,
1093
- placeholder: n,
1094
- onChange: v
1095
- }
1096
- ),
1097
- /* @__PURE__ */ d(
1098
- "button",
1099
- {
1100
- type: "button",
1101
- className: Y("rpf-button rpf-button-search", {
1102
- "rpf-button--disabled": c,
1103
- "rpf-button--error": a
1104
- }),
1105
- disabled: c,
1106
- onClick: p,
1107
- children: /* @__PURE__ */ d("span", { className: "rpf-button__icon material-symbols-sharp", children: "search" })
1108
- }
1109
- )
1110
- ] }),
1111
- a && /* @__PURE__ */ w("div", { className: "rpf-error-message", children: [
1112
- /* @__PURE__ */ d("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "info" }),
1113
- a
1114
- ] })
1115
- ] });
1116
- Xe.propTypes = {
1117
- disabled: e.bool,
1118
- error: e.string,
1119
- hint: e.string,
1120
- inputFieldId: e.string.isRequired,
1121
- label: e.string.isRequired,
1122
- onClick: e.func,
1123
- onChange: e.func,
1124
- placeholder: e.string,
1125
- defaultValue: e.string
1126
- };
1127
- const Ge = ({
1128
- id: r,
1129
- label: s,
1130
- name: c,
1131
- options: a,
1132
- disabled: i = !1,
1133
- error: n = "",
1134
- fullWidth: u = !1,
1135
- hint: p = "",
1136
- onChange: v = () => {
1137
- },
1138
- placeholder: _ = "",
1139
- value: g = ""
1140
- }) => /* @__PURE__ */ d(
1141
- K,
1142
- {
1143
- id: r,
1144
- disabled: i,
1145
- error: n,
1146
- hint: p,
1147
- label: s,
1148
- children: /* @__PURE__ */ w(
1149
- "select",
1150
- {
1151
- className: Y("rpf-input rpf-input-select", {
1152
- "rpf-input--error": n,
1153
- "rpf-input--full-width": u
1154
- }),
1155
- disabled: i,
1156
- id: r,
1157
- name: c,
1158
- onChange: v,
1159
- type: "text",
1160
- value: g,
1161
- children: [
1162
- !g && !!_ && /* @__PURE__ */ d("option", { value: "", disabled: !0, children: _ }),
1163
- a.map((E) => /* @__PURE__ */ d("option", { value: E.key, children: E.value }, E.key))
1164
- ]
1165
- }
1166
- )
1167
- }
1168
- );
1169
- Ge.propTypes = {
1170
- disabled: e.bool,
1171
- error: e.string,
1172
- fullWidth: e.bool,
1173
- hint: e.oneOfType([e.string, e.object]),
1174
- label: e.oneOfType([e.string, e.object]).isRequired,
1175
- id: e.string.isRequired,
1176
- name: e.string.isRequired,
1177
- onChange: e.func,
1178
- options: e.array.isRequired,
1179
- placeholder: e.string,
1180
- value: e.string
1181
- };
1182
- const Ke = ({ headerRow: r, bodyRows: s, fullWidth: c }) => /* @__PURE__ */ d(
1183
- "div",
1184
- {
1185
- "data-testid": "table-container",
1186
- className: Y("rpf-table", { "rpf-table--full-width": c }),
1187
- children: /* @__PURE__ */ w(
1188
- "table",
1189
- {
1190
- className: Y("rpf-table__table", {
1191
- "rpf-table__table--full-width": c
1192
- }),
1193
- children: [
1194
- /* @__PURE__ */ d("thead", { children: /* @__PURE__ */ d("tr", { className: "rpf-table-row", children: r }) }),
1195
- /* @__PURE__ */ d("tbody", { children: s.map((a, i) => /* @__PURE__ */ d("tr", { className: "rpf-table-row", children: a }, i)) })
1196
- ]
1197
- }
1198
- )
1199
- }
1200
- );
1201
- Ke.propTypes = {
1202
- headerRow: e.node.isRequired,
1203
- bodyRows: e.arrayOf(e.node).isRequired,
1204
- fullWidth: e.bool
1205
- };
1206
- const Ze = ({ children: r }) => /* @__PURE__ */ d("td", { className: "rpf-table-cell rpf-table-cell--body", children: /* @__PURE__ */ d("div", { className: "rpf-table-cell__content", children: r }) });
1207
- Ze.propTypes = {
1208
- children: e.node
1209
- };
1210
- const Qe = ({ sortDirection: r, children: s }) => (r !== void 0 && (s = /* @__PURE__ */ w("div", { className: "rpf-table-cell__sort-header", children: [
1211
- s,
1212
- /* @__PURE__ */ d("span", { className: "material-symbols-sharp", children: r === "up" ? "arrow_drop_up" : "arrow_drop_down" })
1213
- ] })), /* @__PURE__ */ d("th", { className: `rpf-table-cell ${r !== void 0 ? "rpf-table-cell--sortable-header" : "rpf-table-cell--header"}`, children: /* @__PURE__ */ d("div", { className: "rpf-table-cell__content", children: s }) }));
1214
- Qe.propTypes = {
1215
- sortDirection: e.oneOf(["up", "down"]),
1216
- children: e.node
1217
- };
1218
- const er = ({ text: r, variant: s, secondary: c, icon: a, iconPosition: i }) => (a && (a = /* @__PURE__ */ d("span", { className: "rpf-tag__icon material-symbols-sharp", children: a })), a && !i && (i = "left"), s && s !== "default" ? s = `rpf-tag--${s}` : s = null, /* @__PURE__ */ w(
1219
- "span",
1220
- {
1221
- className: Y("rpf-tag", s, {
1222
- "rpf-tag--secondary": c
1223
- }),
1224
- children: [
1225
- i === "left" && a,
1226
- r,
1227
- i === "right" && a
1228
- ]
1229
- }
1230
- ));
1231
- er.propTypes = {
1232
- text: e.string.isRequired,
1233
- variant: e.oneOf([
1234
- "default",
1235
- "information",
1236
- "success",
1237
- "warning",
1238
- "error"
1239
- ]),
1240
- secondary: e.bool,
1241
- icon: e.string,
1242
- iconPosition: e.oneOf(["left", "right"])
1243
- };
1244
- const rr = ({
1245
- id: r,
1246
- label: s,
1247
- name: c,
1248
- value: a,
1249
- disabled: i = !1,
1250
- readOnly: n = !1,
1251
- error: u = "",
1252
- fullWidth: p = !1,
1253
- hint: v = "",
1254
- onChange: _ = () => {
1255
- }
1256
- }) => /* @__PURE__ */ d(
1257
- K,
1258
- {
1259
- id: r,
1260
- disabled: i,
1261
- error: u,
1262
- hint: v,
1263
- label: s,
1264
- children: /* @__PURE__ */ d(
1265
- "textarea",
1266
- {
1267
- className: Y("rpf-input rpf-input-textarea", {
1268
- "rpf-input--error": u,
1269
- "rpf-input--full-width": p,
1270
- "rpf-input--disabled": i
1271
- }),
1272
- disabled: i,
1273
- readOnly: n,
1274
- id: r,
1275
- name: c,
1276
- onChange: _,
1277
- type: "text",
1278
- value: a
1279
- }
1280
- )
1281
- }
1282
- );
1283
- rr.propTypes = {
1284
- disabled: e.bool,
1285
- readOnly: e.bool,
1286
- error: e.string,
1287
- fullWidth: e.bool,
1288
- hint: e.oneOfType([e.string, e.object]),
1289
- label: e.oneOfType([e.string, e.object]).isRequired,
1290
- id: e.string.isRequired,
1291
- name: e.string.isRequired,
1292
- onChange: e.func,
1293
- value: e.string.isRequired
1294
- };
1295
- const tr = ({
1296
- id: r,
1297
- label: s,
1298
- name: c,
1299
- value: a,
1300
- disabled: i = !1,
1301
- error: n = "",
1302
- fullWidth: u = !1,
1303
- hint: p = "",
1304
- onChange: v = () => {
1305
- }
1306
- }) => /* @__PURE__ */ d(
1307
- K,
1308
- {
1309
- id: r,
1310
- disabled: i,
1311
- error: n,
1312
- hint: p,
1313
- label: s,
1314
- children: /* @__PURE__ */ d(
1315
- "input",
1316
- {
1317
- className: Y("rpf-input rpf-input-text", {
1318
- "rpf-input--error": n,
1319
- "rpf-input--full-width": u
1320
- }),
1321
- disabled: i,
1322
- id: r,
1323
- name: c,
1324
- onChange: v,
1325
- type: "text",
1326
- value: a
1327
- }
1328
- )
1329
- }
1330
- );
1331
- tr.propTypes = {
1332
- disabled: e.bool,
1333
- error: e.string,
1334
- fullWidth: e.bool,
1335
- hint: e.oneOfType([e.string, e.object]),
1336
- label: e.oneOfType([e.string, e.object]).isRequired,
1337
- id: e.string.isRequired,
1338
- name: e.string.isRequired,
1339
- onChange: e.func,
1340
- value: e.string.isRequired
1341
- };
1342
- export {
1343
- Le as Accordion,
1344
- ze as Alert,
1345
- de as Button,
1346
- Ue as CheckboxInput,
1347
- Be as Fieldset,
1348
- K as InputField,
1349
- Ve as InputLabel,
1350
- He as ProgressBar,
1351
- Je as RadioInput,
1352
- Xe as SearchInput,
1353
- Ge as SelectInput,
1354
- Ke as Table,
1355
- Ze as TableBodyCell,
1356
- Qe as TableHeaderCell,
1357
- er as Tag,
1358
- tr as TextInput,
1359
- rr as TextareaInput
1360
- };