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