@raspberrypifoundation/design-system-react 2.2.0-beta.9 → 2.3.0

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.
@@ -14,7 +14,7 @@ function je() {
14
14
  return me || (me = 1, function(r) {
15
15
  (function() {
16
16
  var s = {}.hasOwnProperty;
17
- function c() {
17
+ function o() {
18
18
  for (var n = "", u = 0; u < arguments.length; u++) {
19
19
  var p = arguments[u];
20
20
  p && (n = i(n, a(p)));
@@ -27,7 +27,7 @@ function je() {
27
27
  if (typeof n != "object")
28
28
  return "";
29
29
  if (Array.isArray(n))
30
- return c.apply(null, n);
30
+ return o.apply(null, n);
31
31
  if (n.toString !== Object.prototype.toString && !n.toString.toString().includes("[native code]"))
32
32
  return n.toString();
33
33
  var u = "";
@@ -38,12 +38,12 @@ function je() {
38
38
  function i(n, u) {
39
39
  return u ? n ? n + " " + u : n + u : n;
40
40
  }
41
- r.exports ? (c.default = c, r.exports = c) : window.classNames = c;
41
+ r.exports ? (o.default = o, r.exports = o) : window.classNames = o;
42
42
  })();
43
43
  }(se)), se.exports;
44
44
  }
45
45
  var qe = je();
46
- const Y = /* @__PURE__ */ Pe(qe);
46
+ const k = /* @__PURE__ */ Pe(qe);
47
47
  var X = { exports: {} }, G = { exports: {} }, C = {};
48
48
  /** @license React v16.13.1
49
49
  * react-is.production.min.js
@@ -57,66 +57,66 @@ var ve;
57
57
  function Ie() {
58
58
  if (ve) return C;
59
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;
60
+ var r = typeof Symbol == "function" && Symbol.for, s = r ? Symbol.for("react.element") : 60103, o = 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, M = r ? Symbol.for("react.lazy") : 60116, N = r ? Symbol.for("react.block") : 60121, I = r ? Symbol.for("react.fundamental") : 60117, Y = r ? Symbol.for("react.responder") : 60118, L = r ? Symbol.for("react.scope") : 60119;
61
+ function $(l) {
62
+ if (typeof l == "object" && l !== null) {
63
+ var z = l.$$typeof;
64
64
  switch (z) {
65
65
  case s:
66
- switch (o = o.type, o) {
66
+ switch (l = l.type, l) {
67
67
  case v:
68
68
  case _:
69
69
  case a:
70
70
  case n:
71
71
  case i:
72
72
  case E:
73
- return o;
73
+ return l;
74
74
  default:
75
- switch (o = o && o.$$typeof, o) {
75
+ switch (l = l && l.$$typeof, l) {
76
76
  case p:
77
77
  case g:
78
- case k:
78
+ case M:
79
79
  case j:
80
80
  case u:
81
- return o;
81
+ return l;
82
82
  default:
83
83
  return z;
84
84
  }
85
85
  }
86
- case c:
86
+ case o:
87
87
  return z;
88
88
  }
89
89
  }
90
90
  }
91
- function q(o) {
92
- return $(o) === _;
91
+ function q(l) {
92
+ return $(l) === _;
93
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);
94
+ return C.AsyncMode = v, C.ConcurrentMode = _, C.ContextConsumer = p, C.ContextProvider = u, C.Element = s, C.ForwardRef = g, C.Fragment = a, C.Lazy = M, C.Memo = j, C.Portal = o, C.Profiler = n, C.StrictMode = i, C.Suspense = E, C.isAsyncMode = function(l) {
95
+ return q(l) || $(l) === v;
96
+ }, C.isConcurrentMode = q, C.isContextConsumer = function(l) {
97
+ return $(l) === p;
98
+ }, C.isContextProvider = function(l) {
99
+ return $(l) === u;
100
+ }, C.isElement = function(l) {
101
+ return typeof l == "object" && l !== null && l.$$typeof === s;
102
+ }, C.isForwardRef = function(l) {
103
+ return $(l) === g;
104
+ }, C.isFragment = function(l) {
105
+ return $(l) === a;
106
+ }, C.isLazy = function(l) {
107
+ return $(l) === M;
108
+ }, C.isMemo = function(l) {
109
+ return $(l) === j;
110
+ }, C.isPortal = function(l) {
111
+ return $(l) === o;
112
+ }, C.isProfiler = function(l) {
113
+ return $(l) === n;
114
+ }, C.isStrictMode = function(l) {
115
+ return $(l) === i;
116
+ }, C.isSuspense = function(l) {
117
+ return $(l) === E;
118
+ }, C.isValidElementType = function(l) {
119
+ return typeof l == "string" || typeof l == "function" || l === a || l === _ || l === n || l === i || l === E || l === A || typeof l == "object" && l !== null && (l.$$typeof === M || l.$$typeof === j || l.$$typeof === u || l.$$typeof === p || l.$$typeof === g || l.$$typeof === I || l.$$typeof === Y || l.$$typeof === L || l.$$typeof === N);
120
120
  }, C.typeOf = $, C;
121
121
  }
122
122
  var x = {};
@@ -131,17 +131,17 @@ var x = {};
131
131
  var ge;
132
132
  function $e() {
133
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);
134
+ var r = typeof Symbol == "function" && Symbol.for, s = r ? Symbol.for("react.element") : 60103, o = 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, M = r ? Symbol.for("react.lazy") : 60116, N = r ? Symbol.for("react.block") : 60121, I = r ? Symbol.for("react.fundamental") : 60117, Y = r ? Symbol.for("react.responder") : 60118, L = r ? Symbol.for("react.scope") : 60119;
135
+ function $(c) {
136
+ return typeof c == "string" || typeof c == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
137
+ c === a || c === _ || c === n || c === i || c === E || c === A || typeof c == "object" && c !== null && (c.$$typeof === M || c.$$typeof === j || c.$$typeof === u || c.$$typeof === p || c.$$typeof === g || c.$$typeof === I || c.$$typeof === Y || c.$$typeof === L || c.$$typeof === N);
138
138
  }
139
- function q(l) {
140
- if (typeof l == "object" && l !== null) {
141
- var F = l.$$typeof;
139
+ function q(c) {
140
+ if (typeof c == "object" && c !== null) {
141
+ var F = c.$$typeof;
142
142
  switch (F) {
143
143
  case s:
144
- var J = l.type;
144
+ var J = c.type;
145
145
  switch (J) {
146
146
  case v:
147
147
  case _:
@@ -155,7 +155,7 @@ function $e() {
155
155
  switch (he) {
156
156
  case p:
157
157
  case g:
158
- case k:
158
+ case M:
159
159
  case j:
160
160
  case u:
161
161
  return he;
@@ -163,52 +163,52 @@ function $e() {
163
163
  return F;
164
164
  }
165
165
  }
166
- case c:
166
+ case o:
167
167
  return F;
168
168
  }
169
169
  }
170
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;
171
+ var l = v, z = _, Z = p, Q = u, ee = s, re = g, V = a, te = M, ne = j, B = o, ae = n, D = i, U = E, H = !1;
172
+ function ie(c) {
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(c) || q(c) === v;
174
174
  }
175
- function t(l) {
176
- return q(l) === _;
175
+ function t(c) {
176
+ return q(c) === _;
177
177
  }
178
- function f(l) {
179
- return q(l) === p;
178
+ function f(c) {
179
+ return q(c) === p;
180
180
  }
181
- function T(l) {
182
- return q(l) === u;
181
+ function T(c) {
182
+ return q(c) === u;
183
183
  }
184
- function h(l) {
185
- return typeof l == "object" && l !== null && l.$$typeof === s;
184
+ function h(c) {
185
+ return typeof c == "object" && c !== null && c.$$typeof === s;
186
186
  }
187
- function y(l) {
188
- return q(l) === g;
187
+ function y(c) {
188
+ return q(c) === g;
189
189
  }
190
- function R(l) {
191
- return q(l) === a;
190
+ function R(c) {
191
+ return q(c) === a;
192
192
  }
193
- function b(l) {
194
- return q(l) === k;
193
+ function b(c) {
194
+ return q(c) === M;
195
195
  }
196
- function m(l) {
197
- return q(l) === j;
196
+ function m(c) {
197
+ return q(c) === j;
198
198
  }
199
- function O(l) {
200
- return q(l) === c;
199
+ function O(c) {
200
+ return q(c) === o;
201
201
  }
202
- function P(l) {
203
- return q(l) === n;
202
+ function P(c) {
203
+ return q(c) === n;
204
204
  }
205
- function S(l) {
206
- return q(l) === i;
205
+ function S(c) {
206
+ return q(c) === i;
207
207
  }
208
- function W(l) {
209
- return q(l) === E;
208
+ function W(c) {
209
+ return q(c) === E;
210
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;
211
+ x.AsyncMode = l, 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
212
  }()), x;
213
213
  }
214
214
  var Te;
@@ -224,7 +224,7 @@ var oe, _e;
224
224
  function ke() {
225
225
  if (_e) return oe;
226
226
  _e = 1;
227
- var r = Object.getOwnPropertySymbols, s = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
227
+ var r = Object.getOwnPropertySymbols, s = Object.prototype.hasOwnProperty, o = Object.prototype.propertyIsEnumerable;
228
228
  function a(n) {
229
229
  if (n == null)
230
230
  throw new TypeError("Object.assign cannot be called with null or undefined");
@@ -260,7 +260,7 @@ function ke() {
260
260
  if (r) {
261
261
  _ = r(p);
262
262
  for (var A = 0; A < _.length; A++)
263
- c.call(p, _[A]) && (v[_[A]] = p[_[A]]);
263
+ o.call(p, _[A]) && (v[_[A]] = p[_[A]]);
264
264
  }
265
265
  }
266
266
  return v;
@@ -284,7 +284,7 @@ function Me() {
284
284
  var r = function() {
285
285
  };
286
286
  if (process.env.NODE_ENV !== "production") {
287
- var s = /* @__PURE__ */ be(), c = {}, a = /* @__PURE__ */ Ne();
287
+ var s = /* @__PURE__ */ be(), o = {}, a = /* @__PURE__ */ Ne();
288
288
  r = function(n) {
289
289
  var u = "Warning: " + n;
290
290
  typeof console < "u" && console.error(u);
@@ -307,13 +307,13 @@ function Me() {
307
307
  throw A.name = "Invariant Violation", A;
308
308
  }
309
309
  E = n[g](u, g, v, p, null, s);
310
- } catch (k) {
311
- E = k;
310
+ } catch (M) {
311
+ E = M;
312
312
  }
313
313
  if (E && !(E instanceof Error) && r(
314
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;
315
+ ), E instanceof Error && !(E.message in o)) {
316
+ o[E.message] = !0;
317
317
  var j = _ ? _() : "";
318
318
  r(
319
319
  "Failed " + p + " type: " + E.message + (j ?? "")
@@ -323,14 +323,14 @@ function Me() {
323
323
  }
324
324
  }
325
325
  return i.resetWarningCache = function() {
326
- process.env.NODE_ENV !== "production" && (c = {});
326
+ process.env.NODE_ENV !== "production" && (o = {});
327
327
  }, fe = i, fe;
328
328
  }
329
329
  var ue, Se;
330
330
  function Ye() {
331
331
  if (Se) return ue;
332
332
  Se = 1;
333
- var r = we(), s = ke(), c = /* @__PURE__ */ be(), a = /* @__PURE__ */ Ne(), i = /* @__PURE__ */ Me(), n = function() {
333
+ var r = we(), s = ke(), o = /* @__PURE__ */ be(), a = /* @__PURE__ */ Ne(), i = /* @__PURE__ */ Me(), n = function() {
334
334
  };
335
335
  process.env.NODE_ENV !== "production" && (n = function(p) {
336
336
  var v = "Warning: " + p;
@@ -351,18 +351,18 @@ function Ye() {
351
351
  return f;
352
352
  }
353
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"),
354
+ array: Y("array"),
355
+ bigint: Y("bigint"),
356
+ bool: Y("boolean"),
357
+ func: Y("function"),
358
+ number: Y("number"),
359
+ object: Y("object"),
360
+ string: Y("string"),
361
+ symbol: Y("symbol"),
362
362
  any: L(),
363
363
  arrayOf: $,
364
364
  element: q(),
365
- elementType: o(),
365
+ elementType: l(),
366
366
  instanceOf: z,
367
367
  node: re(),
368
368
  objectOf: Q,
@@ -371,7 +371,7 @@ function Ye() {
371
371
  shape: te,
372
372
  exact: ne
373
373
  };
374
- function k(t, f) {
374
+ function M(t, f) {
375
375
  return t === f ? t !== 0 || 1 / t === 1 / f : t !== t && f !== f;
376
376
  }
377
377
  function N(t, f) {
@@ -382,12 +382,12 @@ function Ye() {
382
382
  if (process.env.NODE_ENV !== "production")
383
383
  var f = {}, T = 0;
384
384
  function h(R, b, m, O, P, S, W) {
385
- if (O = O || A, S = S || m, W !== c) {
385
+ if (O = O || A, S = S || m, W !== o) {
386
386
  if (v) {
387
- var l = new Error(
387
+ var c = new Error(
388
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
389
  );
390
- throw l.name = "Invariant Violation", l;
390
+ throw c.name = "Invariant Violation", c;
391
391
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
392
392
  var F = O + ":" + m;
393
393
  !f[F] && // Avoid spamming the console because they are often not actionable except for lib authors
@@ -401,7 +401,7 @@ function Ye() {
401
401
  var y = h.bind(null, !1);
402
402
  return y.isRequired = h.bind(null, !0), y;
403
403
  }
404
- function M(t) {
404
+ function Y(t) {
405
405
  function f(T, h, y, R, b, m) {
406
406
  var O = T[h], P = D(O);
407
407
  if (P !== t) {
@@ -428,7 +428,7 @@ function Ye() {
428
428
  return new N("Invalid " + R + " `" + b + "` of type " + ("`" + O + "` supplied to `" + y + "`, expected an array."));
429
429
  }
430
430
  for (var P = 0; P < m.length; P++) {
431
- var S = t(m, P, y, R, b + "[" + P + "]", c);
431
+ var S = t(m, P, y, R, b + "[" + P + "]", o);
432
432
  if (S instanceof Error)
433
433
  return S;
434
434
  }
@@ -447,7 +447,7 @@ function Ye() {
447
447
  }
448
448
  return I(t);
449
449
  }
450
- function o() {
450
+ function l() {
451
451
  function t(f, T, h, y, R) {
452
452
  var b = f[T];
453
453
  if (!r.isValidElementType(b)) {
@@ -475,11 +475,11 @@ function Ye() {
475
475
  ) : n("Invalid argument supplied to oneOf, expected an array.")), u;
476
476
  function f(T, h, y, R, b) {
477
477
  for (var m = T[h], O = 0; O < t.length; O++)
478
- if (k(m, t[O]))
478
+ if (M(m, t[O]))
479
479
  return null;
480
- var P = JSON.stringify(t, function(W, l) {
481
- var F = U(l);
482
- return F === "symbol" ? String(l) : l;
480
+ var P = JSON.stringify(t, function(W, c) {
481
+ var F = U(c);
482
+ return F === "symbol" ? String(c) : c;
483
483
  });
484
484
  return new N("Invalid " + R + " `" + b + "` of value `" + String(m) + "` " + ("supplied to `" + y + "`, expected one of " + P + "."));
485
485
  }
@@ -494,7 +494,7 @@ function Ye() {
494
494
  return new N("Invalid " + R + " `" + b + "` of type " + ("`" + O + "` supplied to `" + y + "`, expected an object."));
495
495
  for (var P in m)
496
496
  if (a(m, P)) {
497
- var S = t(m, P, y, R, b + "." + P, c);
497
+ var S = t(m, P, y, R, b + "." + P, o);
498
498
  if (S instanceof Error)
499
499
  return S;
500
500
  }
@@ -514,10 +514,10 @@ function Ye() {
514
514
  }
515
515
  function h(y, R, b, m, O) {
516
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)
517
+ var W = t[S], c = W(y, R, b, m, O, o);
518
+ if (c == null)
519
519
  return null;
520
- l.data && a(l.data, "expectedType") && P.push(l.data.expectedType);
520
+ c.data && a(c.data, "expectedType") && P.push(c.data.expectedType);
521
521
  }
522
522
  var F = P.length > 0 ? ", expected one of type [" + P.join(", ") + "]" : "";
523
523
  return new N("Invalid " + m + " `" + O + "` supplied to " + ("`" + b + "`" + F + "."));
@@ -544,7 +544,7 @@ function Ye() {
544
544
  var S = t[P];
545
545
  if (typeof S != "function")
546
546
  return V(y, R, b, P, U(S));
547
- var W = S(m, P, y, R, b + "." + P, c);
547
+ var W = S(m, P, y, R, b + "." + P, o);
548
548
  if (W)
549
549
  return W;
550
550
  }
@@ -567,9 +567,9 @@ function Ye() {
567
567
  "Invalid " + R + " `" + b + "` key `" + S + "` supplied to `" + y + "`.\nBad object: " + JSON.stringify(T[h], null, " ") + `
568
568
  Valid keys: ` + JSON.stringify(Object.keys(t), null, " ")
569
569
  );
570
- var l = W(m, S, y, R, b + "." + S, c);
571
- if (l)
572
- return l;
570
+ var c = W(m, S, y, R, b + "." + S, o);
571
+ if (c)
572
+ return c;
573
573
  }
574
574
  return null;
575
575
  }
@@ -654,9 +654,9 @@ function We() {
654
654
  var r = /* @__PURE__ */ be();
655
655
  function s() {
656
656
  }
657
- function c() {
657
+ function o() {
658
658
  }
659
- return c.resetWarningCache = s, pe = function() {
659
+ return o.resetWarningCache = s, pe = function() {
660
660
  function a(u, p, v, _, g, E) {
661
661
  if (E !== r) {
662
662
  var A = new Error(
@@ -689,7 +689,7 @@ function We() {
689
689
  oneOfType: i,
690
690
  shape: i,
691
691
  exact: i,
692
- checkPropTypes: c,
692
+ checkPropTypes: o,
693
693
  resetWarningCache: s
694
694
  };
695
695
  return n.PropTypes = n, n;
@@ -706,8 +706,8 @@ function De() {
706
706
  return X.exports;
707
707
  }
708
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);
709
+ const e = /* @__PURE__ */ Pe(Fe), Le = ({ content: r, title: s, className: o, id: a = "accordion" }) => {
710
+ const i = k("rpf-accordion", o);
711
711
  return /* @__PURE__ */ w("details", { className: i, id: `${a}`, children: [
712
712
  /* @__PURE__ */ w("summary", { className: "rpf-accordion__title", role: "button", children: [
713
713
  s,
@@ -725,7 +725,7 @@ Le.propTypes = {
725
725
  const de = ({
726
726
  text: r,
727
727
  href: s,
728
- title: c,
728
+ title: o,
729
729
  className: a,
730
730
  type: i = "primary",
731
731
  variant: n = "",
@@ -738,10 +738,10 @@ const de = ({
738
738
  onClick: A = () => {
739
739
  },
740
740
  "aria-label": j = "",
741
- linkComponent: k
741
+ linkComponent: M
742
742
  // to pass in react-router-dom Link component
743
743
  }) => {
744
- const N = p && v, I = Y(
744
+ const N = p && v, I = k(
745
745
  // Static classes
746
746
  "rpf-button",
747
747
  // Conditional classes
@@ -755,20 +755,20 @@ const de = ({
755
755
  },
756
756
  a
757
757
  );
758
- let M = "rpf-button__icon";
759
- Ae.isValidElement(p) ? (M += " icon", console.warn(
758
+ let Y = "rpf-button__icon";
759
+ Ae.isValidElement(p) ? (Y += " icon", console.warn(
760
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: [
761
+ )) : Y += " material-symbols-sharp";
762
+ const L = (l) => p && _ === l && /* @__PURE__ */ d("span", { className: Y, children: p }), $ = () => r && !N && /* @__PURE__ */ d("span", { className: "text", children: r }), q = /* @__PURE__ */ w(ye, { children: [
763
763
  L("left"),
764
764
  $(),
765
765
  L("right")
766
766
  ] });
767
767
  return s ? /* @__PURE__ */ d(
768
- k || "a",
768
+ M || "a",
769
769
  {
770
770
  className: I,
771
- ...k ? { to: s } : { href: s, role: "button" },
771
+ ...M ? { to: s } : { href: s, role: "button" },
772
772
  onClick: A,
773
773
  "aria-label": j,
774
774
  children: q
@@ -777,7 +777,7 @@ const de = ({
777
777
  "button",
778
778
  {
779
779
  className: I,
780
- title: c,
780
+ title: o,
781
781
  onClick: A,
782
782
  disabled: E,
783
783
  "aria-label": j,
@@ -801,9 +801,8 @@ de.propTypes = {
801
801
  fullWidth: e.bool,
802
802
  variant: e.string,
803
803
  linkComponent: e.elementType
804
- // New prop type
805
804
  };
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: [
805
+ const ze = ({ title: r, text: s, children: o, type: a, actions: i, onClose: n }) => /* @__PURE__ */ w("div", { className: `rpf-alert rpf-alert--${a}`, children: [
807
806
  /* @__PURE__ */ w("div", { className: "rpf-alert__header", children: [
808
807
  /* @__PURE__ */ d("span", { className: "rpf-alert__icon material-symbols-sharp" }),
809
808
  /* @__PURE__ */ d("p", { className: "rpf-alert__title", children: r }),
@@ -818,9 +817,9 @@ const ze = ({ title: r, text: s, children: c, type: a, actions: i, onClose: n })
818
817
  }
819
818
  ) })
820
819
  ] }),
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 }),
820
+ (s || o || i) && /* @__PURE__ */ w("div", { className: "rpf-alert__body", children: [
821
+ !o && s && /* @__PURE__ */ d("p", { children: s }),
822
+ o && /* @__PURE__ */ d("div", { children: o }),
824
823
  i && i.length > 0 && /* @__PURE__ */ d("div", { className: "rpf-alert__actions", children: i.map((u) => /* @__PURE__ */ d(
825
824
  de,
826
825
  {
@@ -851,7 +850,7 @@ ze.propTypes = {
851
850
  const Ue = ({
852
851
  id: r,
853
852
  label: s,
854
- name: c,
853
+ name: o,
855
854
  checked: a = !1,
856
855
  disabled: i = !1,
857
856
  error: n = "",
@@ -863,24 +862,23 @@ const Ue = ({
863
862
  /* @__PURE__ */ w(
864
863
  "label",
865
864
  {
866
- className: Y("rpf-input-checkbox", {
865
+ className: k("rpf-input-checkbox", {
867
866
  "rpf-input-checkbox--error": n,
868
867
  className: v
869
868
  }),
870
869
  children: [
871
- /* @__PURE__ */ d("span", { children: /* @__PURE__ */ d(
870
+ /* @__PURE__ */ d(
872
871
  "input",
873
872
  {
874
873
  checked: !!a,
875
874
  disabled: i,
876
875
  id: r,
877
- name: c,
876
+ name: o,
878
877
  onChange: u,
879
878
  type: "checkbox",
880
879
  value: p
881
880
  }
882
- ) }),
883
- /* @__PURE__ */ d("span", { className: "checkmark" }),
881
+ ),
884
882
  s
885
883
  ]
886
884
  }
@@ -904,16 +902,16 @@ Ue.propTypes = {
904
902
  const Be = ({
905
903
  disabled: r = !1,
906
904
  errorText: s = "",
907
- fullWidth: c = !1,
905
+ fullWidth: o = !1,
908
906
  legendText: a,
909
907
  legendHintText: i = "",
910
908
  children: n
911
909
  }) => /* @__PURE__ */ w(
912
910
  "fieldset",
913
911
  {
914
- className: Y("rpf-fieldset", {
912
+ className: k("rpf-fieldset", {
915
913
  "rpf-fieldset--disabled": r,
916
- "rpf-fieldset--full-width": c,
914
+ "rpf-fieldset--full-width": o,
917
915
  "rpf-fieldset--error": s
918
916
  }),
919
917
  disabled: r,
@@ -941,7 +939,7 @@ Be.propTypes = {
941
939
  const K = ({
942
940
  id: r,
943
941
  label: s,
944
- children: c,
942
+ children: o,
945
943
  disabled: a = !1,
946
944
  error: i = "",
947
945
  hint: n = ""
@@ -950,7 +948,7 @@ const K = ({
950
948
  "label",
951
949
  {
952
950
  htmlFor: r,
953
- className: Y("rpf-label", {
951
+ className: k("rpf-label", {
954
952
  "rpf-label--disabled": a
955
953
  }),
956
954
  children: [
@@ -959,7 +957,7 @@ const K = ({
959
957
  ]
960
958
  }
961
959
  ),
962
- c,
960
+ o,
963
961
  i && /* @__PURE__ */ w("div", { className: "rpf-error-message", children: [
964
962
  /* @__PURE__ */ d("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
965
963
  i
@@ -976,14 +974,14 @@ K.propTypes = {
976
974
  const Ve = ({
977
975
  label: r,
978
976
  inputFieldId: s,
979
- disabled: c = !1,
977
+ disabled: o = !1,
980
978
  hint: a = ""
981
979
  }) => /* @__PURE__ */ d("div", { className: "rpf-label", children: /* @__PURE__ */ w(
982
980
  "label",
983
981
  {
984
982
  htmlFor: s,
985
- className: Y("rpf-label", {
986
- "rpf-label--disabled": c
983
+ className: k("rpf-label", {
984
+ "rpf-label--disabled": o
987
985
  }),
988
986
  children: [
989
987
  r,
@@ -997,18 +995,34 @@ Ve.propTypes = {
997
995
  label: e.oneOfType([e.string, e.object]).isRequired,
998
996
  inputFieldId: e.string.isRequired
999
997
  };
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
- ] }) });
998
+ const He = ({
999
+ text: r = "",
1000
+ percent: s,
1001
+ complete: o = !1,
1002
+ className: a
1003
+ }) => /* @__PURE__ */ d(
1004
+ "div",
1005
+ {
1006
+ className: k("rpf-progress-bar", {
1007
+ "rpf-progress-bar--complete": o,
1008
+ className: a
1009
+ }),
1010
+ children: /* @__PURE__ */ w("label", { className: "rpf-progress-bar__label", children: [
1011
+ /* @__PURE__ */ d("span", { children: r }),
1012
+ /* @__PURE__ */ d("progress", { className: "rpf-progress-bar__bar", value: s, max: "100", children: `${s}%` })
1013
+ ] })
1014
+ }
1015
+ );
1004
1016
  He.propTypes = {
1005
1017
  text: e.string,
1006
- percent: e.number.isRequired
1018
+ percent: e.number.isRequired,
1019
+ complete: e.bool,
1020
+ className: e.string
1007
1021
  };
1008
1022
  const Je = ({
1009
1023
  id: r,
1010
1024
  label: s,
1011
- name: c,
1025
+ name: o,
1012
1026
  checked: a = !1,
1013
1027
  disabled: i = !1,
1014
1028
  fullWidth: n = !1,
@@ -1018,7 +1032,7 @@ const Je = ({
1018
1032
  }) => /* @__PURE__ */ d(ye, { children: /* @__PURE__ */ w(
1019
1033
  "label",
1020
1034
  {
1021
- className: Y("rpf-input-radio", {
1035
+ className: k("rpf-input-radio", {
1022
1036
  "rpf-input-radio--disabled": i,
1023
1037
  "rpf-input--full-width": n
1024
1038
  }),
@@ -1029,7 +1043,7 @@ const Je = ({
1029
1043
  checked: !!a,
1030
1044
  disabled: i,
1031
1045
  id: r,
1032
- name: c,
1046
+ name: o,
1033
1047
  onChange: u,
1034
1048
  type: "radio",
1035
1049
  value: p
@@ -1052,7 +1066,7 @@ Je.propTypes = {
1052
1066
  const Xe = ({
1053
1067
  label: r,
1054
1068
  inputFieldId: s,
1055
- disabled: c = !1,
1069
+ disabled: o = !1,
1056
1070
  error: a = "",
1057
1071
  hint: i = "",
1058
1072
  placeholder: n = "",
@@ -1067,8 +1081,8 @@ const Xe = ({
1067
1081
  "label",
1068
1082
  {
1069
1083
  htmlFor: s,
1070
- className: Y("rpf-label", {
1071
- "rpf-label--disabled": c
1084
+ className: k("rpf-label", {
1085
+ "rpf-label--disabled": o
1072
1086
  }),
1073
1087
  children: [
1074
1088
  r,
@@ -1080,11 +1094,11 @@ const Xe = ({
1080
1094
  /* @__PURE__ */ d(
1081
1095
  "input",
1082
1096
  {
1083
- className: Y("rpf-input rpf-input-search", {
1084
- "rpf-input--disabled": c,
1097
+ className: k("rpf-input rpf-input-search", {
1098
+ "rpf-input--disabled": o,
1085
1099
  "rpf-input--error": a
1086
1100
  }),
1087
- disabled: c,
1101
+ disabled: o,
1088
1102
  id: s,
1089
1103
  name: "search",
1090
1104
  type: "search",
@@ -1098,11 +1112,11 @@ const Xe = ({
1098
1112
  "button",
1099
1113
  {
1100
1114
  type: "button",
1101
- className: Y("rpf-button rpf-button-search", {
1102
- "rpf-button--disabled": c,
1115
+ className: k("rpf-button rpf-button-search", {
1116
+ "rpf-button--disabled": o,
1103
1117
  "rpf-button--error": a
1104
1118
  }),
1105
- disabled: c,
1119
+ disabled: o,
1106
1120
  onClick: p,
1107
1121
  children: /* @__PURE__ */ d("span", { className: "rpf-button__icon material-symbols-sharp", children: "search" })
1108
1122
  }
@@ -1127,7 +1141,7 @@ Xe.propTypes = {
1127
1141
  const Ge = ({
1128
1142
  id: r,
1129
1143
  label: s,
1130
- name: c,
1144
+ name: o,
1131
1145
  options: a,
1132
1146
  disabled: i = !1,
1133
1147
  error: n = "",
@@ -1148,13 +1162,13 @@ const Ge = ({
1148
1162
  children: /* @__PURE__ */ w(
1149
1163
  "select",
1150
1164
  {
1151
- className: Y("rpf-input rpf-input-select", {
1165
+ className: k("rpf-input rpf-input-select", {
1152
1166
  "rpf-input--error": n,
1153
1167
  "rpf-input--full-width": u
1154
1168
  }),
1155
1169
  disabled: i,
1156
1170
  id: r,
1157
- name: c,
1171
+ name: o,
1158
1172
  onChange: v,
1159
1173
  type: "text",
1160
1174
  value: g,
@@ -1179,16 +1193,16 @@ Ge.propTypes = {
1179
1193
  placeholder: e.string,
1180
1194
  value: e.string
1181
1195
  };
1182
- const Ke = ({ headerRow: r, bodyRows: s, fullWidth: c }) => /* @__PURE__ */ d(
1196
+ const Ke = ({ headerRow: r, bodyRows: s, fullWidth: o }) => /* @__PURE__ */ d(
1183
1197
  "div",
1184
1198
  {
1185
1199
  "data-testid": "table-container",
1186
- className: Y("rpf-table", { "rpf-table--full-width": c }),
1200
+ className: k("rpf-table", { "rpf-table--full-width": o }),
1187
1201
  children: /* @__PURE__ */ w(
1188
1202
  "table",
1189
1203
  {
1190
- className: Y("rpf-table__table", {
1191
- "rpf-table__table--full-width": c
1204
+ className: k("rpf-table__table", {
1205
+ "rpf-table__table--full-width": o
1192
1206
  }),
1193
1207
  children: [
1194
1208
  /* @__PURE__ */ d("thead", { children: /* @__PURE__ */ d("tr", { className: "rpf-table-row", children: r }) }),
@@ -1215,11 +1229,11 @@ Qe.propTypes = {
1215
1229
  sortDirection: e.oneOf(["up", "down"]),
1216
1230
  children: e.node
1217
1231
  };
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(
1232
+ const er = ({ text: r, variant: s, secondary: o, 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
1233
  "span",
1220
1234
  {
1221
- className: Y("rpf-tag", s, {
1222
- "rpf-tag--secondary": c
1235
+ className: k("rpf-tag", s, {
1236
+ "rpf-tag--secondary": o
1223
1237
  }),
1224
1238
  children: [
1225
1239
  i === "left" && a,
@@ -1244,7 +1258,7 @@ er.propTypes = {
1244
1258
  const rr = ({
1245
1259
  id: r,
1246
1260
  label: s,
1247
- name: c,
1261
+ name: o,
1248
1262
  value: a,
1249
1263
  disabled: i = !1,
1250
1264
  readOnly: n = !1,
@@ -1264,7 +1278,7 @@ const rr = ({
1264
1278
  children: /* @__PURE__ */ d(
1265
1279
  "textarea",
1266
1280
  {
1267
- className: Y("rpf-input rpf-input-textarea", {
1281
+ className: k("rpf-input rpf-input-textarea", {
1268
1282
  "rpf-input--error": u,
1269
1283
  "rpf-input--full-width": p,
1270
1284
  "rpf-input--disabled": i
@@ -1272,7 +1286,7 @@ const rr = ({
1272
1286
  disabled: i,
1273
1287
  readOnly: n,
1274
1288
  id: r,
1275
- name: c,
1289
+ name: o,
1276
1290
  onChange: _,
1277
1291
  type: "text",
1278
1292
  value: a
@@ -1295,7 +1309,7 @@ rr.propTypes = {
1295
1309
  const tr = ({
1296
1310
  id: r,
1297
1311
  label: s,
1298
- name: c,
1312
+ name: o,
1299
1313
  value: a,
1300
1314
  disabled: i = !1,
1301
1315
  error: n = "",
@@ -1314,13 +1328,13 @@ const tr = ({
1314
1328
  children: /* @__PURE__ */ d(
1315
1329
  "input",
1316
1330
  {
1317
- className: Y("rpf-input rpf-input-text", {
1331
+ className: k("rpf-input rpf-input-text", {
1318
1332
  "rpf-input--error": n,
1319
1333
  "rpf-input--full-width": u
1320
1334
  }),
1321
1335
  disabled: i,
1322
1336
  id: r,
1323
- name: c,
1337
+ name: o,
1324
1338
  onChange: v,
1325
1339
  type: "text",
1326
1340
  value: a