@raspberrypifoundation/design-system-react 2.4.2 → 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 +13 -0
  2. package/dist/design-system-react.css +1 -1
  3. package/dist/design-system-react.js +878 -779
  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,50 +1,50 @@
1
- import { jsxs as w, jsx as d, Fragment as ye } from "react/jsx-runtime";
2
- import Ae from "react";
3
- function Pe(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 se = { 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 s = {}.hasOwnProperty;
17
- function o() {
18
- for (var n = "", p = 0; p < arguments.length; p++) {
19
- var u = arguments[p];
20
- u && (n = i(n, a(u)));
16
+ var o = {}.hasOwnProperty;
17
+ function s() {
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
- return n;
22
+ return t;
23
23
  }
24
- function a(n) {
25
- if (typeof n == "string" || typeof n == "number")
26
- return n;
27
- if (typeof n != "object")
24
+ function i(t) {
25
+ if (typeof t == "string" || typeof t == "number")
26
+ return t;
27
+ if (typeof t != "object")
28
28
  return "";
29
- if (Array.isArray(n))
30
- return o.apply(null, n);
31
- if (n.toString !== Object.prototype.toString && !n.toString.toString().includes("[native code]"))
32
- return n.toString();
33
- var p = "";
34
- for (var u in n)
35
- s.call(n, u) && n[u] && (p = i(p, u));
36
- return p;
29
+ if (Array.isArray(t))
30
+ return s.apply(null, t);
31
+ if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
32
+ return t.toString();
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 i(n, p) {
39
- return p ? n ? n + " " + p : n + p : n;
38
+ function a(t, u) {
39
+ return u ? t ? t + " " + u : t + u : t;
40
40
  }
41
- r.exports ? (o.default = o, r.exports = o) : window.classNames = o;
41
+ r.exports ? (s.default = s, r.exports = s) : window.classNames = s;
42
42
  })();
43
- }(se)), se.exports;
43
+ }(ce)), ce.exports;
44
44
  }
45
- var qe = je();
46
- const M = /* @__PURE__ */ Pe(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,73 +53,73 @@ 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, 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, p = r ? Symbol.for("react.provider") : 60109, u = 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 $(l) {
62
- if (typeof l == "object" && l !== null) {
63
- var z = l.$$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 s:
66
- switch (l = l.type, l) {
65
+ case o:
66
+ switch (c = c.type, c) {
67
+ case b:
67
68
  case v:
68
- case _:
69
- case a:
70
- case n:
71
69
  case i:
72
- case E:
73
- return l;
70
+ case t:
71
+ case a:
72
+ case g:
73
+ return c;
74
74
  default:
75
- switch (l = l && l.$$typeof, l) {
76
- case u:
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 l;
80
+ case u:
81
+ return c;
82
82
  default:
83
83
  return z;
84
84
  }
85
85
  }
86
- case o:
86
+ case s:
87
87
  return z;
88
88
  }
89
89
  }
90
90
  }
91
- function q(l) {
92
- return $(l) === _;
91
+ function q(c) {
92
+ return $(c) === v;
93
93
  }
94
- return x.AsyncMode = v, x.ConcurrentMode = _, x.ContextConsumer = u, x.ContextProvider = p, x.Element = s, x.ForwardRef = g, x.Fragment = a, x.Lazy = k, x.Memo = j, x.Portal = o, x.Profiler = n, x.StrictMode = i, x.Suspense = E, x.isAsyncMode = function(l) {
95
- return q(l) || $(l) === v;
96
- }, x.isConcurrentMode = q, x.isContextConsumer = function(l) {
97
- return $(l) === u;
98
- }, x.isContextProvider = function(l) {
99
- return $(l) === p;
100
- }, x.isElement = function(l) {
101
- return typeof l == "object" && l !== null && l.$$typeof === s;
102
- }, x.isForwardRef = function(l) {
103
- return $(l) === g;
104
- }, x.isFragment = function(l) {
105
- return $(l) === a;
106
- }, x.isLazy = function(l) {
107
- return $(l) === k;
108
- }, x.isMemo = function(l) {
109
- return $(l) === j;
110
- }, x.isPortal = function(l) {
111
- return $(l) === o;
112
- }, x.isProfiler = function(l) {
113
- return $(l) === n;
114
- }, x.isStrictMode = function(l) {
115
- return $(l) === i;
116
- }, x.isSuspense = function(l) {
117
- return $(l) === E;
118
- }, x.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 === k || l.$$typeof === j || l.$$typeof === p || l.$$typeof === u || l.$$typeof === g || l.$$typeof === I || l.$$typeof === Y || l.$$typeof === L || l.$$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 C = {};
122
+ var x = {};
123
123
  /** @license React v16.13.1
124
124
  * react-is.development.js
125
125
  *
@@ -128,227 +128,227 @@ var C = {};
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, 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, p = r ? Symbol.for("react.provider") : 60109, u = 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 $(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 === k || c.$$typeof === j || c.$$typeof === p || c.$$typeof === u || c.$$typeof === g || c.$$typeof === I || c.$$typeof === Y || c.$$typeof === L || c.$$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(c) {
140
- if (typeof c == "object" && c !== null) {
141
- var F = c.$$typeof;
142
- switch (F) {
143
- case s:
144
- var J = c.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:
149
- case n:
150
148
  case i:
151
- case E:
152
- return J;
149
+ case t:
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 u:
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
- case o:
167
- return F;
166
+ case s:
167
+ return W;
168
168
  }
169
169
  }
170
170
  }
171
- var l = v, z = _, Z = u, Q = p, ee = s, re = g, V = a, te = k, 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;
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 t(c) {
176
- return q(c) === _;
175
+ function n(f) {
176
+ return q(f) === v;
177
177
  }
178
- function f(c) {
179
- return q(c) === u;
178
+ function p(f) {
179
+ return q(f) === l;
180
180
  }
181
- function T(c) {
182
- return q(c) === p;
181
+ function E(f) {
182
+ return q(f) === u;
183
183
  }
184
- function h(c) {
185
- return typeof c == "object" && c !== null && c.$$typeof === s;
184
+ function T(f) {
185
+ return typeof f == "object" && f !== null && f.$$typeof === o;
186
186
  }
187
- function y(c) {
188
- return q(c) === g;
187
+ function y(f) {
188
+ return q(f) === m;
189
189
  }
190
- function R(c) {
191
- return q(c) === a;
190
+ function R(f) {
191
+ return q(f) === i;
192
192
  }
193
- function b(c) {
194
- return q(c) === k;
193
+ function h(f) {
194
+ return q(f) === k;
195
195
  }
196
- function m(c) {
197
- return q(c) === j;
196
+ function _(f) {
197
+ return q(f) === j;
198
198
  }
199
- function O(c) {
200
- return q(c) === o;
199
+ function O(f) {
200
+ return q(f) === s;
201
201
  }
202
- function P(c) {
203
- return q(c) === n;
202
+ function w(f) {
203
+ return q(f) === t;
204
204
  }
205
- function S(c) {
206
- return q(c) === i;
205
+ function C(f) {
206
+ return q(f) === a;
207
207
  }
208
- function W(c) {
209
- return q(c) === E;
208
+ function D(f) {
209
+ return q(f) === g;
210
210
  }
211
- C.AsyncMode = l, C.ConcurrentMode = z, C.ContextConsumer = Z, C.ContextProvider = Q, C.Element = ee, C.ForwardRef = re, C.Fragment = V, C.Lazy = te, C.Memo = ne, C.Portal = B, C.Profiler = ae, C.StrictMode = D, C.Suspense = U, C.isAsyncMode = ie, C.isConcurrentMode = t, C.isContextConsumer = f, C.isContextProvider = T, C.isElement = h, C.isForwardRef = y, C.isFragment = R, C.isLazy = b, C.isMemo = m, C.isPortal = O, C.isProfiler = P, C.isStrictMode = S, C.isSuspense = W, C.isValidElementType = $, C.typeOf = q;
212
- }()), C;
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 oe, _e;
224
- function Me() {
225
- if (_e) return oe;
226
- _e = 1;
227
- var r = Object.getOwnPropertySymbols, s = Object.prototype.hasOwnProperty, o = Object.prototype.propertyIsEnumerable;
228
- function a(n) {
229
- if (n == null)
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
+ if (t == null)
230
230
  throw new TypeError("Object.assign cannot be called with null or undefined");
231
- return Object(n);
231
+ return Object(t);
232
232
  }
233
- function i() {
233
+ function a() {
234
234
  try {
235
235
  if (!Object.assign)
236
236
  return !1;
237
- var n = new String("abc");
238
- if (n[5] = "de", Object.getOwnPropertyNames(n)[0] === "5")
237
+ var t = new String("abc");
238
+ if (t[5] = "de", Object.getOwnPropertyNames(t)[0] === "5")
239
239
  return !1;
240
- for (var p = {}, u = 0; u < 10; u++)
241
- p["_" + String.fromCharCode(u)] = u;
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 oe = i() ? Object.assign : function(n, p) {
256
- for (var u, v = a(n), _, g = 1; g < arguments.length; g++) {
257
- u = Object(arguments[g]);
258
- for (var E in u)
259
- s.call(u, E) && (v[E] = u[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(u);
262
- for (var A = 0; A < _.length; A++)
263
- o.call(u, _[A]) && (v[_[A]] = u[_[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
- }, oe;
266
+ return b;
267
+ }, fe;
268
268
  }
269
- var le, Ee;
269
+ var ue, Oe;
270
270
  function be() {
271
- if (Ee) return le;
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 le = r, le;
274
+ return ue = r, ue;
275
275
  }
276
- var ce, Re;
277
- function Ne() {
278
- return Re || (Re = 1, ce = Function.call.bind(Object.prototype.hasOwnProperty)), ce;
276
+ var pe, Ce;
277
+ function je() {
278
+ return Ce || (Ce = 1, pe = Function.call.bind(Object.prototype.hasOwnProperty)), pe;
279
279
  }
280
- var fe, Oe;
281
- function ke() {
282
- if (Oe) return fe;
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 s = /* @__PURE__ */ be(), o = {}, a = /* @__PURE__ */ Ne();
288
- r = function(n) {
289
- var p = "Warning: " + n;
290
- typeof console < "u" && console.error(p);
287
+ var o = /* @__PURE__ */ be(), s = {}, i = /* @__PURE__ */ je();
288
+ r = function(t) {
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 i(n, p, u, v, _) {
297
+ function a(t, u, l, b, v) {
298
298
  if (process.env.NODE_ENV !== "production") {
299
- for (var g in n)
300
- if (a(n, g)) {
301
- var E;
299
+ for (var m in t)
300
+ if (i(t, m)) {
301
+ var g;
302
302
  try {
303
- if (typeof n[g] != "function") {
303
+ if (typeof t[m] != "function") {
304
304
  var A = Error(
305
- (v || "React class") + ": " + u + " type `" + g + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[g] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
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 = n[g](p, g, v, u, null, s);
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 " + u + " `" + 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 o)) {
316
- o[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 " + u + " type: " + E.message + (j ?? "")
319
+ "Failed " + l + " type: " + g.message + (j ?? "")
320
320
  );
321
321
  }
322
322
  }
323
323
  }
324
324
  }
325
- return i.resetWarningCache = function() {
326
- process.env.NODE_ENV !== "production" && (o = {});
327
- }, fe = i, fe;
325
+ return a.resetWarningCache = function() {
326
+ process.env.NODE_ENV !== "production" && (s = {});
327
+ }, de = a, de;
328
328
  }
329
- var ue, Se;
330
- function Ye() {
331
- if (Se) return ue;
332
- Se = 1;
333
- var r = we(), s = Me(), o = /* @__PURE__ */ be(), a = /* @__PURE__ */ Ne(), i = /* @__PURE__ */ ke(), n = 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" && (n = function(u) {
336
- var v = "Warning: " + u;
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 ue = function(u, v) {
347
- var _ = typeof Symbol == "function" && Symbol.iterator, g = "@@iterator";
348
- function E(t) {
349
- var f = t && (_ && t[_] || t[g]);
350
- if (typeof f == "function")
351
- return f;
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,246 +359,246 @@ 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: l(),
365
+ elementType: c(),
366
366
  instanceOf: z,
367
- node: re(),
368
- objectOf: Q,
369
- oneOf: Z,
370
- oneOfType: ee,
371
- shape: te,
372
- exact: ne
367
+ node: ne(),
368
+ objectOf: re,
369
+ oneOf: ee,
370
+ oneOfType: te,
371
+ shape: ae,
372
+ exact: ie
373
373
  };
374
- function k(t, f) {
375
- return t === f ? t !== 0 || 1 / t === 1 / f : t !== t && f !== f;
374
+ function k(n, p) {
375
+ return n === p ? n !== 0 || 1 / n === 1 / p : n !== n && p !== p;
376
376
  }
377
- function N(t, f) {
378
- this.message = t, this.data = f && typeof f == "object" ? f : {}, 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
- function I(t) {
381
+ function I(n) {
382
382
  if (process.env.NODE_ENV !== "production")
383
- var f = {}, T = 0;
384
- function h(R, b, m, O, P, S, W) {
385
- if (O = O || A, S = S || m, W !== o) {
386
- if (v) {
387
- var c = 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 c.name = "Invariant Violation", c;
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
- !f[F] && // Avoid spamming the console because they are often not actionable except for lib authors
394
- T < 3 && (n(
395
- "You are manually calling a React.PropTypes validation function for the `" + S + "` prop on `" + O + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
396
- ), f[F] = !0, T++);
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 " + P + " `" + S + "` is marked as required " + ("in `" + O + "`, but its value is `null`.")) : new N("The " + P + " `" + S + "` is marked as required in " + ("`" + O + "`, but its value is `undefined`.")) : null : t(b, m, O, P, S);
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
- function Y(t) {
405
- function f(T, h, y, R, b, m) {
406
- var O = T[h], P = D(O);
407
- if (P !== t) {
408
- var S = U(O);
404
+ function Y(n) {
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 ") + ("`" + t + "`."),
411
- { expectedType: t }
410
+ "Invalid " + R + " `" + h + "` of type " + ("`" + C + "` supplied to `" + y + "`, expected ") + ("`" + n + "`."),
411
+ { expectedType: n }
412
412
  );
413
413
  }
414
414
  return null;
415
415
  }
416
- return I(f);
417
- }
418
- function L() {
419
416
  return I(p);
420
417
  }
421
- function $(t) {
422
- function f(T, h, y, R, b) {
423
- if (typeof t != "function")
424
- return new N("Property `" + b + "` of component `" + y + "` has invalid PropType notation inside arrayOf.");
425
- var m = T[h];
426
- if (!Array.isArray(m)) {
427
- var O = D(m);
428
- return new N("Invalid " + R + " `" + b + "` of type " + ("`" + O + "` supplied to `" + y + "`, expected an array."));
418
+ function F() {
419
+ return I(u);
420
+ }
421
+ function $(n) {
422
+ function p(E, T, y, R, h) {
423
+ if (typeof n != "function")
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 P = 0; P < m.length; P++) {
431
- var S = t(m, P, y, R, b + "[" + P + "]", o);
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(f);
437
+ return I(p);
438
438
  }
439
439
  function q() {
440
- function t(f, T, h, y, R) {
441
- var b = f[T];
442
- if (!u(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
- return I(t);
448
+ return I(n);
449
449
  }
450
- function l() {
451
- function t(f, T, h, y, R) {
452
- var b = f[T];
453
- if (!r.isValidElementType(b)) {
454
- var m = D(b);
455
- return new N("Invalid " + y + " `" + R + "` of type " + ("`" + m + "` supplied to `" + h + "`, expected a single ReactElement type."));
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
- return I(t);
459
+ return I(n);
460
460
  }
461
- function z(t) {
462
- function f(T, h, y, R, b) {
463
- if (!(T[h] instanceof t)) {
464
- var m = t.name || A, O = ie(T[h]);
465
- return new N("Invalid " + R + " `" + b + "` of type " + ("`" + O + "` supplied to `" + y + "`, expected ") + ("instance of `" + m + "`."));
461
+ function z(n) {
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(f);
469
+ return I(p);
470
470
  }
471
- function Z(t) {
472
- if (!Array.isArray(t))
473
- return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? n(
471
+ function ee(n) {
472
+ if (!Array.isArray(n))
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
- ) : n("Invalid argument supplied to oneOf, expected an array.")), p;
476
- function f(T, h, y, R, b) {
477
- for (var m = T[h], O = 0; O < t.length; O++)
478
- if (k(m, t[O]))
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 P = JSON.stringify(t, function(W, c) {
481
- var F = U(c);
482
- return F === "symbol" ? String(c) : c;
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 " + P + "."));
484
+ return new N("Invalid " + R + " `" + h + "` of value `" + String(_) + "` " + ("supplied to `" + y + "`, expected one of " + w + "."));
485
485
  }
486
- return I(f);
486
+ return I(p);
487
487
  }
488
- function Q(t) {
489
- function f(T, h, y, R, b) {
490
- if (typeof t != "function")
491
- return new N("Property `" + b + "` of component `" + y + "` has invalid PropType notation inside objectOf.");
492
- var m = T[h], O = D(m);
488
+ function re(n) {
489
+ function p(E, T, y, R, h) {
490
+ if (typeof n != "function")
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 P in m)
496
- if (a(m, P)) {
497
- var S = t(m, P, y, R, b + "." + P, o);
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(f);
503
+ return I(p);
504
504
  }
505
- function ee(t) {
506
- if (!Array.isArray(t))
507
- return process.env.NODE_ENV !== "production" && n("Invalid argument supplied to oneOfType, expected an instance of array."), p;
508
- for (var f = 0; f < t.length; f++) {
509
- var T = t[f];
510
- if (typeof T != "function")
511
- return n(
512
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + H(T) + " at index " + f + "."
513
- ), p;
505
+ function te(n) {
506
+ if (!Array.isArray(n))
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
+ return t(
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 P = [], S = 0; S < t.length; S++) {
517
- var W = t[S], c = W(y, R, b, m, O, o);
518
- if (c == 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
- c.data && a(c.data, "expectedType") && P.push(c.data.expectedType);
520
+ f.data && i(f.data, "expectedType") && w.push(f.data.expectedType);
521
521
  }
522
- var F = P.length > 0 ? ", expected one of type [" + P.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 re() {
528
- function t(f, T, h, y, R) {
529
- return B(f[T]) ? null : new N("Invalid " + y + " `" + R + "` supplied to " + ("`" + h + "`, expected a ReactNode."));
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
- return I(t);
531
+ return I(n);
532
532
  }
533
- function V(t, f, T, h, y) {
533
+ function H(n, p, E, T, y) {
534
534
  return new N(
535
- (t || "React class") + ": " + f + " type `" + T + "." + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + y + "`."
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 te(t) {
539
- function f(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 P in t) {
544
- var S = t[P];
545
- if (typeof S != "function")
546
- return V(y, R, b, P, U(S));
547
- var W = S(m, P, y, R, b + "." + P, o);
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(f);
553
+ return I(p);
554
554
  }
555
- function ne(t) {
556
- function f(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 P = s({}, T[h], t);
561
- for (var S in P) {
562
- var W = t[S];
563
- if (a(t, S) && typeof W != "function")
564
- return V(y, R, b, S, U(W));
565
- if (!W)
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, " ") + `
568
- Valid keys: ` + JSON.stringify(Object.keys(t), null, " ")
567
+ "Invalid " + R + " `" + h + "` key `" + C + "` supplied to `" + y + "`.\nBad object: " + JSON.stringify(E[T], null, " ") + `
568
+ Valid keys: ` + JSON.stringify(Object.keys(n), null, " ")
569
569
  );
570
- var c = W(m, S, y, R, b + "." + S, o);
571
- if (c)
572
- return c;
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(f);
576
+ return I(p);
577
577
  }
578
- function B(t) {
579
- switch (typeof t) {
578
+ function V(n) {
579
+ switch (typeof n) {
580
580
  case "number":
581
581
  case "string":
582
582
  case "undefined":
583
583
  return !0;
584
584
  case "boolean":
585
- return !t;
585
+ return !n;
586
586
  case "object":
587
- if (Array.isArray(t))
588
- return t.every(B);
589
- if (t === null || u(t))
587
+ if (Array.isArray(n))
588
+ return n.every(V);
589
+ if (n === null || l(n))
590
590
  return !0;
591
- var f = E(t);
592
- if (f) {
593
- var T = f.call(t), h;
594
- if (f !== t.entries) {
595
- for (; !(h = T.next()).done; )
596
- if (!B(h.value))
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(t), null, " ")
608
608
  return !1;
609
609
  }
610
610
  }
611
- function ae(t, f) {
612
- return t === "symbol" ? !0 : f ? f["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && f 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(t) {
615
- var f = typeof t;
616
- return Array.isArray(t) ? "array" : t instanceof RegExp ? "object" : ae(f, t) ? "symbol" : f;
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
- function U(t) {
619
- if (typeof t > "u" || t === null)
620
- return "" + t;
621
- var f = D(t);
622
- if (f === "object") {
623
- if (t instanceof Date)
618
+ function U(n) {
619
+ if (typeof n > "u" || n === null)
620
+ return "" + n;
621
+ var p = L(n);
622
+ if (p === "object") {
623
+ if (n instanceof Date)
624
624
  return "date";
625
- if (t instanceof RegExp)
625
+ if (n instanceof RegExp)
626
626
  return "regexp";
627
627
  }
628
- return f;
628
+ return p;
629
629
  }
630
- function H(t) {
631
- var f = U(t);
632
- switch (f) {
630
+ function J(n) {
631
+ var p = U(n);
632
+ switch (p) {
633
633
  case "array":
634
634
  case "object":
635
- return "an " + f;
635
+ return "an " + p;
636
636
  case "boolean":
637
637
  case "date":
638
638
  case "regexp":
639
- return "a " + f;
639
+ return "a " + p;
640
640
  default:
641
- return f;
641
+ return p;
642
642
  }
643
643
  }
644
- function ie(t) {
645
- return !t.constructor || !t.constructor.name ? A : t.constructor.name;
644
+ function se(n) {
645
+ return !n.constructor || !n.constructor.name ? A : n.constructor.name;
646
646
  }
647
- return j.checkPropTypes = i, j.resetWarningCache = i.resetWarningCache, j.PropTypes = j, j;
648
- }, ue;
647
+ return j.checkPropTypes = a, j.resetWarningCache = a.resetWarningCache, j.PropTypes = j, j;
648
+ }, ye;
649
649
  }
650
- var pe, xe;
650
+ var me, Pe;
651
651
  function We() {
652
- if (xe) return pe;
653
- xe = 1;
652
+ if (Pe) return me;
653
+ Pe = 1;
654
654
  var r = /* @__PURE__ */ be();
655
- function s() {
656
- }
657
655
  function o() {
658
656
  }
659
- return o.resetWarningCache = s, pe = function() {
660
- function a(p, u, v, _, g, E) {
661
- if (E !== r) {
657
+ function s() {
658
+ }
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 i() {
670
- return a;
668
+ i.isRequired = i;
669
+ function a() {
670
+ return i;
671
671
  }
672
- var n = {
673
- array: a,
674
- bigint: a,
675
- bool: a,
676
- func: a,
677
- number: a,
678
- object: a,
679
- string: a,
680
- symbol: a,
681
- any: a,
682
- arrayOf: i,
683
- element: a,
684
- elementType: a,
685
- instanceOf: i,
686
- node: a,
687
- objectOf: i,
688
- oneOf: i,
689
- oneOfType: i,
690
- shape: i,
691
- exact: i,
692
- checkPropTypes: o,
693
- resetWarningCache: s
672
+ var t = {
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
+ checkPropTypes: s,
693
+ resetWarningCache: o
694
694
  };
695
- return n.PropTypes = n, n;
696
- }, pe;
695
+ return t.PropTypes = t, t;
696
+ }, me;
697
697
  }
698
- var Ce;
699
- function De() {
700
- if (Ce) return X.exports;
701
- if (Ce = 1, process.env.NODE_ENV !== "production") {
702
- var r = we(), s = !0;
703
- X.exports = /* @__PURE__ */ Ye()(r.isElement, s);
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__ */ Pe(Fe), Le = ({ content: r, title: s, className: o, id: a = "accordion" }) => {
710
- const i = M("rpf-accordion", o);
711
- return /* @__PURE__ */ w("details", { className: i, id: `${a}`, children: [
712
- /* @__PURE__ */ w("summary", { className: "rpf-accordion__title", role: "button", children: [
713
- s,
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 de = ({
725
+ const B = ({
726
726
  text: r,
727
- href: s,
728
- title: o,
729
- className: a,
730
- type: i = "primary",
731
- variant: n = "",
732
- size: p = "default",
733
- icon: u = "",
734
- iconOnly: v = !1,
735
- iconPosition: _ = "left",
736
- fullWidth: g = !1,
737
- disabled: E = !1,
727
+ href: o,
728
+ title: s,
729
+ className: i,
730
+ type: a = "primary",
731
+ variant: t = "",
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 = u && 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--${i}`]: i,
750
- "rpf-button--danger": n === "danger",
751
- "rpf-button--sm": p === "small",
749
+ [`rpf-button--${a}`]: a,
750
+ "rpf-button--danger": t === "danger",
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(u) ? (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 = (l) => u && _ === l && /* @__PURE__ */ d("span", { className: Y, children: u }), $ = () => r && !N && /* @__PURE__ */ d("span", { className: "text", children: r }), q = /* @__PURE__ */ w(ye, { 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 s ? /* @__PURE__ */ d(
767
+ return o ? /* @__PURE__ */ d(
768
768
  k || "a",
769
769
  {
770
770
  className: I,
771
- ...k ? { to: s } : { href: s, role: "button" },
771
+ ...k ? { to: o } : { href: o, role: "button" },
772
772
  onClick: A,
773
773
  "aria-label": j,
774
774
  children: q
@@ -777,15 +777,15 @@ const de = ({
777
777
  "button",
778
778
  {
779
779
  className: I,
780
- title: o,
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
- de.propTypes = {
788
+ B.propTypes = {
789
789
  type: e.string,
790
790
  className: e.string,
791
791
  disabled: e.bool,
@@ -802,38 +802,41 @@ de.propTypes = {
802
802
  variant: e.string,
803
803
  linkComponent: e.elementType
804
804
  };
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: [
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
- /* @__PURE__ */ d("p", { className: "rpf-alert__title", children: r }),
809
- !!n && /* @__PURE__ */ d("div", { className: "rpf-alert__close", children: /* @__PURE__ */ d(
810
- de,
808
+ (r || s) && /* @__PURE__ */ P(Z, { children: [
809
+ !s && r && /* @__PURE__ */ d("p", { className: "rpf-alert__title", children: r }),
810
+ s && /* @__PURE__ */ d("div", { className: "rpf-alert__title", children: s })
811
+ ] }),
812
+ !!u && /* @__PURE__ */ d("div", { className: "rpf-alert__close", children: /* @__PURE__ */ d(
813
+ B,
811
814
  {
812
815
  type: "tertiary",
813
816
  icon: "close",
814
817
  size: "small",
815
818
  iconOnly: !0,
816
- onClick: n
819
+ onClick: u
817
820
  }
818
821
  ) })
819
822
  ] }),
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 }),
823
- i && i.length > 0 && /* @__PURE__ */ d("div", { className: "rpf-alert__actions", children: i.map((p) => /* @__PURE__ */ d(
824
- de,
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,
825
828
  {
826
- text: p.label,
829
+ text: l.label,
827
830
  size: "small",
828
831
  type: "tertiary",
829
- href: p.href,
830
- onClick: p.onClick
832
+ href: l.href,
833
+ onClick: l.onClick
831
834
  },
832
- p.key || p.label
835
+ l.key || l.label
833
836
  )) })
834
837
  ] })
835
838
  ] });
836
- ze.propTypes = {
839
+ Be.propTypes = {
837
840
  title: e.string,
838
841
  text: e.string,
839
842
  type: e.oneOf(["error", "warning", "information", "success"]),
@@ -844,51 +847,52 @@ ze.propTypes = {
844
847
  onClick: e.func
845
848
  })
846
849
  ),
850
+ titleChildren: e.node,
847
851
  children: e.node,
848
852
  onClose: e.func
849
853
  };
850
- const Ue = ({
854
+ const Ve = ({
851
855
  id: r,
852
- label: s,
853
- name: o,
854
- checked: a = !1,
855
- disabled: i = !1,
856
- error: n = "",
857
- onChange: p = () => {
856
+ label: o,
857
+ name: s,
858
+ checked: i = !1,
859
+ disabled: a = !1,
860
+ error: t = "",
861
+ onChange: u = () => {
858
862
  },
859
- value: u = "",
860
- className: v = ""
861
- }) => /* @__PURE__ */ w(ye, { children: [
862
- /* @__PURE__ */ w(
863
+ value: l = "",
864
+ className: b = ""
865
+ }) => /* @__PURE__ */ P(Z, { children: [
866
+ /* @__PURE__ */ P(
863
867
  "label",
864
868
  {
865
869
  className: M("rpf-input-checkbox", {
866
- "rpf-input-checkbox--error": n,
867
- className: v
870
+ "rpf-input-checkbox--error": t,
871
+ className: b
868
872
  }),
869
873
  children: [
870
874
  /* @__PURE__ */ d(
871
875
  "input",
872
876
  {
873
- checked: !!a,
874
- disabled: i,
877
+ checked: !!i,
878
+ disabled: a,
875
879
  id: r,
876
- name: o,
877
- onChange: p,
880
+ name: s,
881
+ onChange: u,
878
882
  type: "checkbox",
879
- value: u
883
+ value: l
880
884
  }
881
885
  ),
882
- s
886
+ o
883
887
  ]
884
888
  }
885
889
  ),
886
- n && /* @__PURE__ */ w("div", { className: "rpf-error-message", children: [
890
+ t && /* @__PURE__ */ P("div", { className: "rpf-error-message", children: [
887
891
  /* @__PURE__ */ d("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
888
- n
892
+ t
889
893
  ] })
890
894
  ] });
891
- Ue.propTypes = {
895
+ Ve.propTypes = {
892
896
  checked: e.bool,
893
897
  disabled: e.bool,
894
898
  error: e.string,
@@ -899,36 +903,36 @@ Ue.propTypes = {
899
903
  value: e.string,
900
904
  className: e.string
901
905
  };
902
- const Be = ({
906
+ const He = ({
903
907
  disabled: r = !1,
904
- errorText: s = "",
905
- fullWidth: o = !1,
906
- legendText: a,
907
- legendHintText: i = "",
908
- children: n
909
- }) => /* @__PURE__ */ w(
908
+ errorText: o = "",
909
+ fullWidth: s = !1,
910
+ legendText: i,
911
+ legendHintText: a = "",
912
+ children: t
913
+ }) => /* @__PURE__ */ P(
910
914
  "fieldset",
911
915
  {
912
916
  className: M("rpf-fieldset", {
913
917
  "rpf-fieldset--disabled": r,
914
- "rpf-fieldset--full-width": o,
915
- "rpf-fieldset--error": s
918
+ "rpf-fieldset--full-width": s,
919
+ "rpf-fieldset--error": o
916
920
  }),
917
921
  disabled: r,
918
922
  children: [
919
- /* @__PURE__ */ w("legend", { className: "rpf-label", children: [
920
- a,
921
- i.length > 0 ? /* @__PURE__ */ d("small", { className: "rpf-label__hint", children: i }) : 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
922
926
  ] }),
923
- /* @__PURE__ */ d("div", { className: "rpf-fieldset__inputs", children: n }),
924
- s.length > 0 ? /* @__PURE__ */ w("div", { className: "rpf-error-message", children: [
927
+ /* @__PURE__ */ d("div", { className: "rpf-fieldset__inputs", children: t }),
928
+ o.length > 0 ? /* @__PURE__ */ P("div", { className: "rpf-error-message", children: [
925
929
  /* @__PURE__ */ d("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
926
- s
930
+ o
927
931
  ] }) : null
928
932
  ]
929
933
  }
930
934
  );
931
- Be.propTypes = {
935
+ He.propTypes = {
932
936
  disabled: e.bool,
933
937
  errorText: e.string,
934
938
  fullWidth: e.bool,
@@ -936,34 +940,34 @@ Be.propTypes = {
936
940
  legendHintText: e.string,
937
941
  children: e.node
938
942
  };
939
- const K = ({
943
+ const Q = ({
940
944
  id: r,
941
- label: s,
942
- children: o,
943
- disabled: a = !1,
944
- error: i = "",
945
- hint: n = ""
946
- }) => /* @__PURE__ */ w("div", { className: "rpf-input-field", children: [
947
- (s || n) && /* @__PURE__ */ w(
945
+ label: o,
946
+ children: s,
947
+ disabled: i = !1,
948
+ error: a = "",
949
+ hint: t = ""
950
+ }) => /* @__PURE__ */ P("div", { className: "rpf-input-field", children: [
951
+ (o || t) && /* @__PURE__ */ P(
948
952
  "label",
949
953
  {
950
954
  htmlFor: r,
951
955
  className: M("rpf-label", {
952
- "rpf-label--disabled": a
956
+ "rpf-label--disabled": i
953
957
  }),
954
958
  children: [
955
- s,
956
- /* @__PURE__ */ d("small", { className: "rpf-label__hint", children: n })
959
+ o,
960
+ /* @__PURE__ */ d("small", { className: "rpf-label__hint", children: t })
957
961
  ]
958
962
  }
959
963
  ),
960
- o,
961
- i && /* @__PURE__ */ w("div", { className: "rpf-error-message", children: [
964
+ s,
965
+ a && /* @__PURE__ */ P("div", { className: "rpf-error-message", children: [
962
966
  /* @__PURE__ */ d("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
963
- i
967
+ a
964
968
  ] })
965
969
  ] });
966
- K.propTypes = {
970
+ Q.propTypes = {
967
971
  disabled: e.bool,
968
972
  error: e.string,
969
973
  hint: e.oneOfType([e.string, e.object]),
@@ -971,89 +975,65 @@ K.propTypes = {
971
975
  id: e.string.isRequired,
972
976
  children: e.node
973
977
  };
974
- const Ve = ({
978
+ const Je = ({
975
979
  label: r,
976
- inputFieldId: s,
977
- disabled: o = !1,
978
- hint: a = ""
979
- }) => /* @__PURE__ */ d("div", { className: "rpf-label", children: /* @__PURE__ */ w(
980
+ inputFieldId: o,
981
+ disabled: s = !1,
982
+ hint: i = ""
983
+ }) => /* @__PURE__ */ d("div", { className: "rpf-label", children: /* @__PURE__ */ P(
980
984
  "label",
981
985
  {
982
- htmlFor: s,
986
+ htmlFor: o,
983
987
  className: M("rpf-label", {
984
- "rpf-label--disabled": o
988
+ "rpf-label--disabled": s
985
989
  }),
986
990
  children: [
987
991
  r,
988
- a && /* @__PURE__ */ d("div", { className: "rpf-label__hint", children: a })
992
+ i && /* @__PURE__ */ d("div", { className: "rpf-label__hint", children: i })
989
993
  ]
990
994
  }
991
995
  ) });
992
- Ve.propTypes = {
996
+ Je.propTypes = {
993
997
  disabled: e.bool,
994
998
  hint: e.oneOfType([e.string, e.object]),
995
999
  label: e.oneOfType([e.string, e.object]).isRequired,
996
1000
  inputFieldId: e.string.isRequired
997
1001
  };
998
- const He = ({
999
- text: r = "",
1000
- percent: s,
1001
- complete: o = !1,
1002
- className: a
1003
- }) => /* @__PURE__ */ d(
1004
- "div",
1005
- {
1006
- className: M("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
- );
1016
- He.propTypes = {
1017
- text: e.string,
1018
- percent: e.number.isRequired,
1019
- complete: e.bool,
1020
- className: e.string
1021
- };
1022
- const Je = ({
1002
+ const Xe = ({
1023
1003
  id: r,
1024
- label: s,
1025
- name: o,
1026
- checked: a = !1,
1027
- disabled: i = !1,
1028
- fullWidth: n = !1,
1029
- onChange: p = () => {
1004
+ label: o,
1005
+ name: s,
1006
+ checked: i = !1,
1007
+ disabled: a = !1,
1008
+ fullWidth: t = !1,
1009
+ onChange: u = () => {
1030
1010
  },
1031
- value: u = ""
1032
- }) => /* @__PURE__ */ d(ye, { children: /* @__PURE__ */ w(
1011
+ value: l = ""
1012
+ }) => /* @__PURE__ */ d(Z, { children: /* @__PURE__ */ P(
1033
1013
  "label",
1034
1014
  {
1035
1015
  className: M("rpf-input-radio", {
1036
- "rpf-input-radio--disabled": i,
1037
- "rpf-input--full-width": n
1016
+ "rpf-input-radio--disabled": a,
1017
+ "rpf-input--full-width": t
1038
1018
  }),
1039
1019
  children: [
1040
1020
  /* @__PURE__ */ d(
1041
1021
  "input",
1042
1022
  {
1043
- checked: !!a,
1044
- disabled: i,
1023
+ checked: !!i,
1024
+ disabled: a,
1045
1025
  id: r,
1046
- name: o,
1047
- onChange: p,
1026
+ name: s,
1027
+ onChange: u,
1048
1028
  type: "radio",
1049
- value: u
1029
+ value: l
1050
1030
  }
1051
1031
  ),
1052
- s
1032
+ o
1053
1033
  ]
1054
1034
  }
1055
1035
  ) });
1056
- Je.propTypes = {
1036
+ Xe.propTypes = {
1057
1037
  checked: e.bool,
1058
1038
  disabled: e.bool,
1059
1039
  fullWidth: e.bool,
@@ -1063,49 +1043,49 @@ Je.propTypes = {
1063
1043
  onChange: e.func,
1064
1044
  value: e.string
1065
1045
  };
1066
- const Xe = ({
1046
+ const Ge = ({
1067
1047
  label: r,
1068
- inputFieldId: s,
1069
- disabled: o = !1,
1070
- error: a = "",
1071
- hint: i = "",
1072
- placeholder: n = "",
1073
- defaultValue: p = "",
1074
- onClick: u = () => {
1048
+ inputFieldId: o,
1049
+ disabled: s = !1,
1050
+ error: i = "",
1051
+ hint: a = "",
1052
+ placeholder: t = "",
1053
+ defaultValue: u = "",
1054
+ onClick: l = () => {
1075
1055
  },
1076
1056
  // eslint-disable-next-line no-unused-vars
1077
- onChange: v = (_) => {
1057
+ onChange: b = (v) => {
1078
1058
  }
1079
- }) => /* @__PURE__ */ d("search", { children: /* @__PURE__ */ w("form", { className: "rpf-input-field", onSubmit: u, children: [
1080
- /* @__PURE__ */ w(
1059
+ }) => /* @__PURE__ */ d("search", { children: /* @__PURE__ */ P("form", { className: "rpf-input-field", onSubmit: l, children: [
1060
+ /* @__PURE__ */ P(
1081
1061
  "label",
1082
1062
  {
1083
- htmlFor: s,
1063
+ htmlFor: o,
1084
1064
  className: M("rpf-label", {
1085
- "rpf-label--disabled": o
1065
+ "rpf-label--disabled": s
1086
1066
  }),
1087
1067
  children: [
1088
1068
  r,
1089
- i && /* @__PURE__ */ d("small", { className: "rpf-label__hint", children: i })
1069
+ a && /* @__PURE__ */ d("small", { className: "rpf-label__hint", children: a })
1090
1070
  ]
1091
1071
  }
1092
1072
  ),
1093
- /* @__PURE__ */ w("div", { className: "rpf-input-search-container", children: [
1073
+ /* @__PURE__ */ P("div", { className: "rpf-input-search-container", children: [
1094
1074
  /* @__PURE__ */ d(
1095
1075
  "input",
1096
1076
  {
1097
1077
  className: M("rpf-input rpf-input-search", {
1098
- "rpf-input--disabled": o,
1099
- "rpf-input--error": a
1078
+ "rpf-input--disabled": s,
1079
+ "rpf-input--error": i
1100
1080
  }),
1101
- disabled: o,
1102
- id: s,
1081
+ disabled: s,
1082
+ id: o,
1103
1083
  name: "search",
1104
1084
  type: "search",
1105
1085
  "aria-label": "Search",
1106
- defaultValue: p,
1107
- placeholder: n,
1108
- onChange: v
1086
+ defaultValue: u,
1087
+ placeholder: t,
1088
+ onChange: b
1109
1089
  }
1110
1090
  ),
1111
1091
  /* @__PURE__ */ d(
@@ -1113,21 +1093,21 @@ const Xe = ({
1113
1093
  {
1114
1094
  type: "submit",
1115
1095
  className: M("rpf-button rpf-button-search", {
1116
- "rpf-button--disabled": o,
1117
- "rpf-button--error": a
1096
+ "rpf-button--disabled": s,
1097
+ "rpf-button--error": i
1118
1098
  }),
1119
- disabled: o,
1120
- onClick: u,
1099
+ disabled: s,
1100
+ onClick: l,
1121
1101
  children: /* @__PURE__ */ d("span", { className: "rpf-button__icon material-symbols-sharp", children: "search" })
1122
1102
  }
1123
1103
  )
1124
1104
  ] }),
1125
- a && /* @__PURE__ */ w("div", { className: "rpf-error-message", children: [
1105
+ i && /* @__PURE__ */ P("div", { className: "rpf-error-message", children: [
1126
1106
  /* @__PURE__ */ d("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "info" }),
1127
- a
1107
+ i
1128
1108
  ] })
1129
1109
  ] }) });
1130
- Xe.propTypes = {
1110
+ Ge.propTypes = {
1131
1111
  disabled: e.bool,
1132
1112
  error: e.string,
1133
1113
  hint: e.string,
@@ -1138,49 +1118,49 @@ Xe.propTypes = {
1138
1118
  placeholder: e.string,
1139
1119
  defaultValue: e.string
1140
1120
  };
1141
- const Ge = ({
1121
+ const Ke = ({
1142
1122
  id: r,
1143
- label: s,
1144
- name: o,
1145
- options: a,
1146
- disabled: i = !1,
1147
- error: n = "",
1148
- fullWidth: p = !1,
1149
- hint: u = "",
1150
- onChange: v = () => {
1123
+ label: o,
1124
+ name: s,
1125
+ options: i,
1126
+ disabled: a = !1,
1127
+ error: t = "",
1128
+ fullWidth: u = !1,
1129
+ hint: l = "",
1130
+ onChange: b = () => {
1151
1131
  },
1152
- placeholder: _ = "",
1153
- value: g = ""
1132
+ placeholder: v = "",
1133
+ value: m = ""
1154
1134
  }) => /* @__PURE__ */ d(
1155
- K,
1135
+ Q,
1156
1136
  {
1157
1137
  id: r,
1158
- disabled: i,
1159
- error: n,
1160
- hint: u,
1161
- label: s,
1162
- children: /* @__PURE__ */ w(
1138
+ disabled: a,
1139
+ error: t,
1140
+ hint: l,
1141
+ label: o,
1142
+ children: /* @__PURE__ */ P(
1163
1143
  "select",
1164
1144
  {
1165
1145
  className: M("rpf-input rpf-input-select", {
1166
- "rpf-input--error": n,
1167
- "rpf-input--full-width": p
1146
+ "rpf-input--error": t,
1147
+ "rpf-input--full-width": u
1168
1148
  }),
1169
- disabled: i,
1149
+ disabled: a,
1170
1150
  id: r,
1171
- name: o,
1172
- onChange: v,
1151
+ name: s,
1152
+ onChange: b,
1173
1153
  type: "text",
1174
- value: g,
1154
+ value: m,
1175
1155
  children: [
1176
- !g && !!_ && /* @__PURE__ */ d("option", { value: "", disabled: !0, children: _ }),
1177
- 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))
1178
1158
  ]
1179
1159
  }
1180
1160
  )
1181
1161
  }
1182
1162
  );
1183
- Ge.propTypes = {
1163
+ Ke.propTypes = {
1184
1164
  disabled: e.bool,
1185
1165
  error: e.string,
1186
1166
  fullWidth: e.bool,
@@ -1193,108 +1173,46 @@ Ge.propTypes = {
1193
1173
  placeholder: e.string,
1194
1174
  value: e.string
1195
1175
  };
1196
- const Ke = ({ headerRow: r, bodyRows: s, fullWidth: o }) => /* @__PURE__ */ d(
1197
- "div",
1198
- {
1199
- "data-testid": "table-container",
1200
- className: M("rpf-table", { "rpf-table--full-width": o }),
1201
- children: /* @__PURE__ */ w(
1202
- "table",
1203
- {
1204
- className: M("rpf-table__table", {
1205
- "rpf-table__table--full-width": o
1206
- }),
1207
- children: [
1208
- /* @__PURE__ */ d("thead", { children: /* @__PURE__ */ d("tr", { className: "rpf-table-row", children: r }) }),
1209
- /* @__PURE__ */ d("tbody", { children: s.map((a, i) => /* @__PURE__ */ d("tr", { className: "rpf-table-row", children: a }, i)) })
1210
- ]
1211
- }
1212
- )
1213
- }
1214
- );
1215
- Ke.propTypes = {
1216
- headerRow: e.node.isRequired,
1217
- bodyRows: e.arrayOf(e.node).isRequired,
1218
- fullWidth: e.bool
1219
- };
1220
- 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 }) });
1221
- Ze.propTypes = {
1222
- children: e.node
1223
- };
1224
- const Qe = ({ sortDirection: r, children: s }) => (r !== void 0 && (s = /* @__PURE__ */ w("div", { className: "rpf-table-cell__sort-header", children: [
1225
- s,
1226
- /* @__PURE__ */ d("span", { className: "material-symbols-sharp", children: r === "up" ? "arrow_drop_up" : "arrow_drop_down" })
1227
- ] })), /* @__PURE__ */ d("th", { className: `rpf-table-cell ${r !== void 0 ? "rpf-table-cell--sortable-header" : "rpf-table-cell--header"}`, children: /* @__PURE__ */ d("div", { className: "rpf-table-cell__content", children: s }) }));
1228
- Qe.propTypes = {
1229
- sortDirection: e.oneOf(["up", "down"]),
1230
- children: e.node
1231
- };
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(
1233
- "span",
1234
- {
1235
- className: M("rpf-tag", s, {
1236
- "rpf-tag--secondary": o
1237
- }),
1238
- children: [
1239
- i === "left" && a,
1240
- r,
1241
- i === "right" && a
1242
- ]
1243
- }
1244
- ));
1245
- er.propTypes = {
1246
- text: e.string.isRequired,
1247
- variant: e.oneOf([
1248
- "default",
1249
- "information",
1250
- "success",
1251
- "warning",
1252
- "error"
1253
- ]),
1254
- secondary: e.bool,
1255
- icon: e.string,
1256
- iconPosition: e.oneOf(["left", "right"])
1257
- };
1258
- const rr = ({
1176
+ const Ze = ({
1259
1177
  id: r,
1260
- label: s,
1261
- name: o,
1262
- value: a,
1263
- disabled: i = !1,
1264
- readOnly: n = !1,
1265
- error: p = "",
1266
- fullWidth: u = !1,
1267
- hint: v = "",
1268
- onChange: _ = () => {
1178
+ label: o,
1179
+ name: s,
1180
+ value: i,
1181
+ disabled: a = !1,
1182
+ readOnly: t = !1,
1183
+ error: u = "",
1184
+ fullWidth: l = !1,
1185
+ hint: b = "",
1186
+ onChange: v = () => {
1269
1187
  }
1270
1188
  }) => /* @__PURE__ */ d(
1271
- K,
1189
+ Q,
1272
1190
  {
1273
1191
  id: r,
1274
- disabled: i,
1275
- error: p,
1276
- hint: v,
1277
- label: s,
1192
+ disabled: a,
1193
+ error: u,
1194
+ hint: b,
1195
+ label: o,
1278
1196
  children: /* @__PURE__ */ d(
1279
1197
  "textarea",
1280
1198
  {
1281
1199
  className: M("rpf-input rpf-input-textarea", {
1282
- "rpf-input--error": p,
1283
- "rpf-input--full-width": u,
1284
- "rpf-input--disabled": i
1200
+ "rpf-input--error": u,
1201
+ "rpf-input--full-width": l,
1202
+ "rpf-input--disabled": a
1285
1203
  }),
1286
- disabled: i,
1287
- readOnly: n,
1204
+ disabled: a,
1205
+ readOnly: t,
1288
1206
  id: r,
1289
- name: o,
1290
- onChange: _,
1207
+ name: s,
1208
+ onChange: v,
1291
1209
  type: "text",
1292
- value: a
1210
+ value: i
1293
1211
  }
1294
1212
  )
1295
1213
  }
1296
1214
  );
1297
- rr.propTypes = {
1215
+ Ze.propTypes = {
1298
1216
  disabled: e.bool,
1299
1217
  readOnly: e.bool,
1300
1218
  error: e.string,
@@ -1306,43 +1224,43 @@ rr.propTypes = {
1306
1224
  onChange: e.func,
1307
1225
  value: e.string.isRequired
1308
1226
  };
1309
- const tr = ({
1227
+ const Qe = ({
1310
1228
  id: r,
1311
- label: s,
1312
- name: o,
1313
- value: a,
1314
- disabled: i = !1,
1315
- error: n = "",
1316
- fullWidth: p = !1,
1317
- hint: u = "",
1318
- onChange: v = () => {
1229
+ label: o,
1230
+ name: s,
1231
+ value: i,
1232
+ disabled: a = !1,
1233
+ error: t = "",
1234
+ fullWidth: u = !1,
1235
+ hint: l = "",
1236
+ onChange: b = () => {
1319
1237
  }
1320
1238
  }) => /* @__PURE__ */ d(
1321
- K,
1239
+ Q,
1322
1240
  {
1323
1241
  id: r,
1324
- disabled: i,
1325
- error: n,
1326
- hint: u,
1327
- label: s,
1242
+ disabled: a,
1243
+ error: t,
1244
+ hint: l,
1245
+ label: o,
1328
1246
  children: /* @__PURE__ */ d(
1329
1247
  "input",
1330
1248
  {
1331
1249
  className: M("rpf-input rpf-input-text", {
1332
- "rpf-input--error": n,
1333
- "rpf-input--full-width": p
1250
+ "rpf-input--error": t,
1251
+ "rpf-input--full-width": u
1334
1252
  }),
1335
- disabled: i,
1253
+ disabled: a,
1336
1254
  id: r,
1337
- name: o,
1338
- onChange: v,
1255
+ name: s,
1256
+ onChange: b,
1339
1257
  type: "text",
1340
- value: a
1258
+ value: i
1341
1259
  }
1342
1260
  )
1343
1261
  }
1344
1262
  );
1345
- tr.propTypes = {
1263
+ Qe.propTypes = {
1346
1264
  disabled: e.bool,
1347
1265
  error: e.string,
1348
1266
  fullWidth: e.bool,
@@ -1353,22 +1271,203 @@ tr.propTypes = {
1353
1271
  onChange: e.func,
1354
1272
  value: e.string.isRequired
1355
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
+ };
1356
1454
  export {
1357
- Le as Accordion,
1358
- ze as Alert,
1359
- de as Button,
1360
- Ue as CheckboxInput,
1361
- Be as Fieldset,
1362
- K as InputField,
1363
- Ve as InputLabel,
1364
- He as ProgressBar,
1365
- Je as RadioInput,
1366
- Xe as SearchInput,
1367
- Ge as SelectInput,
1368
- Ke as Table,
1369
- Ze as TableBodyCell,
1370
- Qe as TableHeaderCell,
1371
- er as Tag,
1372
- tr as TextInput,
1373
- 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
1374
1473
  };