@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.
- package/CHANGELOG.md +13 -0
- package/dist/design-system-react.css +1 -1
- package/dist/design-system-react.js +878 -779
- package/dist/design-system-react.umd.cjs +6 -6
- package/dist/scss/components/modal.scss +95 -0
- package/dist/scss/design-system-core.scss +4 -0
- package/dist/scss/properties/colors/_utilities.scss +4 -0
- package/dist/types/lib/main.d.ts +20 -0
- package/dist/types/lib/main.d.ts.map +1 -0
- package/dist/types/src/components/Accordion/Accordion.spec.d.ts +2 -0
- package/dist/types/src/components/Accordion/Accordion.spec.d.ts.map +1 -0
- package/dist/types/src/components/Accordion/index.d.ts +17 -0
- package/dist/types/src/components/Accordion/index.d.ts.map +1 -0
- package/dist/types/src/components/Alert/Alert.spec.d.ts +2 -0
- package/dist/types/src/components/Alert/Alert.spec.d.ts.map +1 -0
- package/dist/types/src/components/Alert/index.d.ts +27 -0
- package/dist/types/src/components/Alert/index.d.ts.map +1 -0
- package/dist/types/src/components/Button/Button.spec.d.ts +2 -0
- package/dist/types/src/components/Button/Button.spec.d.ts.map +1 -0
- package/dist/types/src/components/Button/index.d.ts +39 -0
- package/dist/types/src/components/Button/index.d.ts.map +1 -0
- package/dist/types/src/components/Form/CheckboxInput/index.d.ts +27 -0
- package/dist/types/src/components/Form/CheckboxInput/index.d.ts.map +1 -0
- package/dist/types/src/components/Form/Fieldset/Fieldset.spec.d.ts +2 -0
- package/dist/types/src/components/Form/Fieldset/Fieldset.spec.d.ts.map +1 -0
- package/dist/types/src/components/Form/Fieldset/index.d.ts +21 -0
- package/dist/types/src/components/Form/Fieldset/index.d.ts.map +1 -0
- package/dist/types/src/components/Form/InputField/index.d.ts +21 -0
- package/dist/types/src/components/Form/InputField/index.d.ts.map +1 -0
- package/dist/types/src/components/Form/InputLabel/InputLabel.spec.d.ts +2 -0
- package/dist/types/src/components/Form/InputLabel/InputLabel.spec.d.ts.map +1 -0
- package/dist/types/src/components/Form/InputLabel/index.d.ts +17 -0
- package/dist/types/src/components/Form/InputLabel/index.d.ts.map +1 -0
- package/dist/types/src/components/Form/RadioInput/RadioInput.spec.d.ts +2 -0
- package/dist/types/src/components/Form/RadioInput/RadioInput.spec.d.ts.map +1 -0
- package/dist/types/src/components/Form/RadioInput/index.d.ts +25 -0
- package/dist/types/src/components/Form/RadioInput/index.d.ts.map +1 -0
- package/dist/types/src/components/Form/SearchInput/SearchInput.spec.d.ts +2 -0
- package/dist/types/src/components/Form/SearchInput/SearchInput.spec.d.ts.map +1 -0
- package/dist/types/src/components/Form/SearchInput/index.d.ts +27 -0
- package/dist/types/src/components/Form/SearchInput/index.d.ts.map +1 -0
- package/dist/types/src/components/Form/SelectInput/SelectInput.spec.d.ts +2 -0
- package/dist/types/src/components/Form/SelectInput/SelectInput.spec.d.ts.map +1 -0
- package/dist/types/src/components/Form/SelectInput/index.d.ts +31 -0
- package/dist/types/src/components/Form/SelectInput/index.d.ts.map +1 -0
- package/dist/types/src/components/Form/TextInput/TextInput.spec.d.ts +2 -0
- package/dist/types/src/components/Form/TextInput/TextInput.spec.d.ts.map +1 -0
- package/dist/types/src/components/Form/TextInput/index.d.ts +27 -0
- package/dist/types/src/components/Form/TextInput/index.d.ts.map +1 -0
- package/dist/types/src/components/Form/TextareaInput/TextareaInput.spec.d.ts +2 -0
- package/dist/types/src/components/Form/TextareaInput/TextareaInput.spec.d.ts.map +1 -0
- package/dist/types/src/components/Form/TextareaInput/index.d.ts +29 -0
- package/dist/types/src/components/Form/TextareaInput/index.d.ts.map +1 -0
- package/dist/types/src/components/MaterialSymbols/index.d.ts +2 -0
- package/dist/types/src/components/MaterialSymbols/index.d.ts.map +1 -0
- package/dist/types/src/components/Modal/Modal.types.d.ts +45 -0
- package/dist/types/src/components/Modal/Modal.types.d.ts.map +1 -0
- package/dist/types/src/components/Modal/index.d.ts +6 -0
- package/dist/types/src/components/Modal/index.d.ts.map +1 -0
- package/dist/types/src/components/ProgressBar/index.d.ts +17 -0
- package/dist/types/src/components/ProgressBar/index.d.ts.map +1 -0
- package/dist/types/src/components/Table/BodyCell/BodyCell.spec.d.ts +2 -0
- package/dist/types/src/components/Table/BodyCell/BodyCell.spec.d.ts.map +1 -0
- package/dist/types/src/components/Table/BodyCell/index.d.ts +11 -0
- package/dist/types/src/components/Table/BodyCell/index.d.ts.map +1 -0
- package/dist/types/src/components/Table/HeaderCell/HeaderCell.spec.d.ts +2 -0
- package/dist/types/src/components/Table/HeaderCell/HeaderCell.spec.d.ts.map +1 -0
- package/dist/types/src/components/Table/HeaderCell/index.d.ts +13 -0
- package/dist/types/src/components/Table/HeaderCell/index.d.ts.map +1 -0
- package/dist/types/src/components/Table/Table/Table.spec.d.ts +2 -0
- package/dist/types/src/components/Table/Table/Table.spec.d.ts.map +1 -0
- package/dist/types/src/components/Table/Table/index.d.ts +15 -0
- package/dist/types/src/components/Table/Table/index.d.ts.map +1 -0
- package/dist/types/src/components/Tag/Tag.spec.d.ts +2 -0
- package/dist/types/src/components/Tag/Tag.spec.d.ts.map +1 -0
- package/dist/types/src/components/Tag/index.d.ts +19 -0
- package/dist/types/src/components/Tag/index.d.ts.map +1 -0
- package/dist/types/src/hooks/useDialog.d.ts +5 -0
- package/dist/types/src/hooks/useDialog.d.ts.map +1 -0
- package/dist/types/src/stories/Accordion.stories.d.ts +15 -0
- package/dist/types/src/stories/Accordion.stories.d.ts.map +1 -0
- package/dist/types/src/stories/Alert.stories.d.ts +92 -0
- package/dist/types/src/stories/Alert.stories.d.ts.map +1 -0
- package/dist/types/src/stories/Button.stories.d.ts +132 -0
- package/dist/types/src/stories/Button.stories.d.ts.map +1 -0
- package/dist/types/src/stories/Modal/ExampleModal/ExampleModal.d.ts +2 -0
- package/dist/types/src/stories/Modal/ExampleModal/ExampleModal.d.ts.map +1 -0
- package/dist/types/src/stories/Modal/ExampleModal/ExampleModal.stories.d.ts +7 -0
- package/dist/types/src/stories/Modal/ExampleModal/ExampleModal.stories.d.ts.map +1 -0
- package/dist/types/src/stories/Modal/Modal.stories.d.ts +26 -0
- package/dist/types/src/stories/Modal/Modal.stories.d.ts.map +1 -0
- package/dist/types/src/stories/Modal/Modal.stories.helpers.d.ts +3 -0
- package/dist/types/src/stories/Modal/Modal.stories.helpers.d.ts.map +1 -0
- package/dist/types/src/stories/ProgressBar.stories.d.ts +93 -0
- package/dist/types/src/stories/ProgressBar.stories.d.ts.map +1 -0
- package/dist/types/src/stories/Tag.stories.d.ts +53 -0
- package/dist/types/src/stories/Tag.stories.d.ts.map +1 -0
- package/dist/types/src/stories/forms/CheckboxInput.stories.d.ts +30 -0
- package/dist/types/src/stories/forms/CheckboxInput.stories.d.ts.map +1 -0
- package/dist/types/src/stories/forms/Fieldset.stories.d.ts +57 -0
- package/dist/types/src/stories/forms/Fieldset.stories.d.ts.map +1 -0
- package/dist/types/src/stories/forms/InputLabel.stories.d.ts +25 -0
- package/dist/types/src/stories/forms/InputLabel.stories.d.ts.map +1 -0
- package/dist/types/src/stories/forms/RadioInput.stories.d.ts +51 -0
- package/dist/types/src/stories/forms/RadioInput.stories.d.ts.map +1 -0
- package/dist/types/src/stories/forms/SearchInput.stories.d.ts +40 -0
- package/dist/types/src/stories/forms/SearchInput.stories.d.ts.map +1 -0
- package/dist/types/src/stories/forms/SelectInput.stories.d.ts +52 -0
- package/dist/types/src/stories/forms/SelectInput.stories.d.ts.map +1 -0
- package/dist/types/src/stories/forms/TextInput.stories.d.ts +37 -0
- package/dist/types/src/stories/forms/TextInput.stories.d.ts.map +1 -0
- package/dist/types/src/stories/forms/TextareaInput.stories.d.ts +52 -0
- package/dist/types/src/stories/forms/TextareaInput.stories.d.ts.map +1 -0
- package/dist/types/src/stories/table/Table.stories.d.ts +22 -0
- package/dist/types/src/stories/table/Table.stories.d.ts.map +1 -0
- package/package.json +24 -9
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
function
|
|
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
|
|
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
|
|
13
|
-
function
|
|
14
|
-
return
|
|
12
|
+
var ge;
|
|
13
|
+
function Ie() {
|
|
14
|
+
return ge || (ge = 1, function(r) {
|
|
15
15
|
(function() {
|
|
16
|
-
var
|
|
17
|
-
function
|
|
18
|
-
for (var
|
|
19
|
-
var
|
|
20
|
-
|
|
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
|
|
22
|
+
return t;
|
|
23
23
|
}
|
|
24
|
-
function
|
|
25
|
-
if (typeof
|
|
26
|
-
return
|
|
27
|
-
if (typeof
|
|
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(
|
|
30
|
-
return
|
|
31
|
-
if (
|
|
32
|
-
return
|
|
33
|
-
var
|
|
34
|
-
for (var
|
|
35
|
-
|
|
36
|
-
return
|
|
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
|
|
39
|
-
return
|
|
38
|
+
function a(t, u) {
|
|
39
|
+
return u ? t ? t + " " + u : t + u : t;
|
|
40
40
|
}
|
|
41
|
-
r.exports ? (
|
|
41
|
+
r.exports ? (s.default = s, r.exports = s) : window.classNames = s;
|
|
42
42
|
})();
|
|
43
|
-
}(
|
|
43
|
+
}(ce)), ce.exports;
|
|
44
44
|
}
|
|
45
|
-
var
|
|
46
|
-
const M = /* @__PURE__ */
|
|
47
|
-
var
|
|
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
|
|
57
|
-
function
|
|
58
|
-
if (
|
|
59
|
-
|
|
60
|
-
var r = typeof Symbol == "function" && Symbol.for,
|
|
61
|
-
function $(
|
|
62
|
-
if (typeof
|
|
63
|
-
var z =
|
|
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
|
|
66
|
-
switch (
|
|
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
|
|
73
|
-
|
|
70
|
+
case t:
|
|
71
|
+
case a:
|
|
72
|
+
case g:
|
|
73
|
+
return c;
|
|
74
74
|
default:
|
|
75
|
-
switch (
|
|
76
|
-
case
|
|
77
|
-
case
|
|
75
|
+
switch (c = c && c.$$typeof, c) {
|
|
76
|
+
case l:
|
|
77
|
+
case m:
|
|
78
78
|
case k:
|
|
79
79
|
case j:
|
|
80
|
-
case
|
|
81
|
-
return
|
|
80
|
+
case u:
|
|
81
|
+
return c;
|
|
82
82
|
default:
|
|
83
83
|
return z;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
case
|
|
86
|
+
case s:
|
|
87
87
|
return z;
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
function q(
|
|
92
|
-
return $(
|
|
91
|
+
function q(c) {
|
|
92
|
+
return $(c) === v;
|
|
93
93
|
}
|
|
94
|
-
return
|
|
95
|
-
return q(
|
|
96
|
-
},
|
|
97
|
-
return $(
|
|
98
|
-
},
|
|
99
|
-
return $(
|
|
100
|
-
},
|
|
101
|
-
return typeof
|
|
102
|
-
},
|
|
103
|
-
return $(
|
|
104
|
-
},
|
|
105
|
-
return $(
|
|
106
|
-
},
|
|
107
|
-
return $(
|
|
108
|
-
},
|
|
109
|
-
return $(
|
|
110
|
-
},
|
|
111
|
-
return $(
|
|
112
|
-
},
|
|
113
|
-
return $(
|
|
114
|
-
},
|
|
115
|
-
return $(
|
|
116
|
-
},
|
|
117
|
-
return $(
|
|
118
|
-
},
|
|
119
|
-
return typeof
|
|
120
|
-
},
|
|
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
|
|
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
|
|
132
|
-
function
|
|
133
|
-
return
|
|
134
|
-
var r = typeof Symbol == "function" && Symbol.for,
|
|
135
|
-
function $(
|
|
136
|
-
return typeof
|
|
137
|
-
|
|
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(
|
|
140
|
-
if (typeof
|
|
141
|
-
var
|
|
142
|
-
switch (
|
|
143
|
-
case
|
|
144
|
-
var
|
|
145
|
-
switch (
|
|
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
|
|
152
|
-
|
|
149
|
+
case t:
|
|
150
|
+
case a:
|
|
151
|
+
case g:
|
|
152
|
+
return X;
|
|
153
153
|
default:
|
|
154
|
-
var he =
|
|
154
|
+
var he = X && X.$$typeof;
|
|
155
155
|
switch (he) {
|
|
156
|
-
case
|
|
157
|
-
case
|
|
156
|
+
case l:
|
|
157
|
+
case m:
|
|
158
158
|
case k:
|
|
159
159
|
case j:
|
|
160
|
-
case
|
|
160
|
+
case u:
|
|
161
161
|
return he;
|
|
162
162
|
default:
|
|
163
|
-
return
|
|
163
|
+
return W;
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
case
|
|
167
|
-
return
|
|
166
|
+
case s:
|
|
167
|
+
return W;
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
var
|
|
172
|
-
function
|
|
173
|
-
return
|
|
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
|
|
176
|
-
return q(
|
|
175
|
+
function n(f) {
|
|
176
|
+
return q(f) === v;
|
|
177
177
|
}
|
|
178
|
-
function f
|
|
179
|
-
return q(
|
|
178
|
+
function p(f) {
|
|
179
|
+
return q(f) === l;
|
|
180
180
|
}
|
|
181
|
-
function
|
|
182
|
-
return q(
|
|
181
|
+
function E(f) {
|
|
182
|
+
return q(f) === u;
|
|
183
183
|
}
|
|
184
|
-
function
|
|
185
|
-
return typeof
|
|
184
|
+
function T(f) {
|
|
185
|
+
return typeof f == "object" && f !== null && f.$$typeof === o;
|
|
186
186
|
}
|
|
187
|
-
function y(
|
|
188
|
-
return q(
|
|
187
|
+
function y(f) {
|
|
188
|
+
return q(f) === m;
|
|
189
189
|
}
|
|
190
|
-
function R(
|
|
191
|
-
return q(
|
|
190
|
+
function R(f) {
|
|
191
|
+
return q(f) === i;
|
|
192
192
|
}
|
|
193
|
-
function
|
|
194
|
-
return q(
|
|
193
|
+
function h(f) {
|
|
194
|
+
return q(f) === k;
|
|
195
195
|
}
|
|
196
|
-
function
|
|
197
|
-
return q(
|
|
196
|
+
function _(f) {
|
|
197
|
+
return q(f) === j;
|
|
198
198
|
}
|
|
199
|
-
function O(
|
|
200
|
-
return q(
|
|
199
|
+
function O(f) {
|
|
200
|
+
return q(f) === s;
|
|
201
201
|
}
|
|
202
|
-
function
|
|
203
|
-
return q(
|
|
202
|
+
function w(f) {
|
|
203
|
+
return q(f) === t;
|
|
204
204
|
}
|
|
205
|
-
function
|
|
206
|
-
return q(
|
|
205
|
+
function C(f) {
|
|
206
|
+
return q(f) === a;
|
|
207
207
|
}
|
|
208
|
-
function
|
|
209
|
-
return q(
|
|
208
|
+
function D(f) {
|
|
209
|
+
return q(f) === g;
|
|
210
210
|
}
|
|
211
|
-
|
|
212
|
-
}()),
|
|
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
|
|
215
|
-
function
|
|
216
|
-
return
|
|
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
|
|
224
|
-
function
|
|
225
|
-
if (
|
|
226
|
-
|
|
227
|
-
var r = Object.getOwnPropertySymbols,
|
|
228
|
-
function
|
|
229
|
-
if (
|
|
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(
|
|
231
|
+
return Object(t);
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function a() {
|
|
234
234
|
try {
|
|
235
235
|
if (!Object.assign)
|
|
236
236
|
return !1;
|
|
237
|
-
var
|
|
238
|
-
if (
|
|
237
|
+
var t = new String("abc");
|
|
238
|
+
if (t[5] = "de", Object.getOwnPropertyNames(t)[0] === "5")
|
|
239
239
|
return !1;
|
|
240
|
-
for (var
|
|
241
|
-
|
|
242
|
-
var
|
|
243
|
-
return
|
|
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 (
|
|
245
|
+
if (b.join("") !== "0123456789")
|
|
246
246
|
return !1;
|
|
247
|
-
var
|
|
248
|
-
return "abcdefghijklmnopqrst".split("").forEach(function(
|
|
249
|
-
|
|
250
|
-
}), Object.keys(Object.assign({},
|
|
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
|
|
256
|
-
for (var
|
|
257
|
-
|
|
258
|
-
for (var
|
|
259
|
-
|
|
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
|
-
|
|
262
|
-
for (var A = 0; A <
|
|
263
|
-
|
|
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
|
|
267
|
-
},
|
|
266
|
+
return b;
|
|
267
|
+
}, fe;
|
|
268
268
|
}
|
|
269
|
-
var
|
|
269
|
+
var ue, Oe;
|
|
270
270
|
function be() {
|
|
271
|
-
if (
|
|
272
|
-
|
|
271
|
+
if (Oe) return ue;
|
|
272
|
+
Oe = 1;
|
|
273
273
|
var r = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
274
|
-
return
|
|
274
|
+
return ue = r, ue;
|
|
275
275
|
}
|
|
276
|
-
var
|
|
277
|
-
function
|
|
278
|
-
return
|
|
276
|
+
var pe, Ce;
|
|
277
|
+
function je() {
|
|
278
|
+
return Ce || (Ce = 1, pe = Function.call.bind(Object.prototype.hasOwnProperty)), pe;
|
|
279
279
|
}
|
|
280
|
-
var
|
|
281
|
-
function
|
|
282
|
-
if (
|
|
283
|
-
|
|
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
|
|
288
|
-
r = function(
|
|
289
|
-
var
|
|
290
|
-
typeof console < "u" && console.error(
|
|
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(
|
|
292
|
+
throw new Error(u);
|
|
293
293
|
} catch {
|
|
294
294
|
}
|
|
295
295
|
};
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function a(t, u, l, b, v) {
|
|
298
298
|
if (process.env.NODE_ENV !== "production") {
|
|
299
|
-
for (var
|
|
300
|
-
if (
|
|
301
|
-
var
|
|
299
|
+
for (var m in t)
|
|
300
|
+
if (i(t, m)) {
|
|
301
|
+
var g;
|
|
302
302
|
try {
|
|
303
|
-
if (typeof
|
|
303
|
+
if (typeof t[m] != "function") {
|
|
304
304
|
var A = Error(
|
|
305
|
-
(
|
|
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
|
-
|
|
309
|
+
g = t[m](u, m, b, l, null, o);
|
|
310
310
|
} catch (k) {
|
|
311
|
-
|
|
311
|
+
g = k;
|
|
312
312
|
}
|
|
313
|
-
if (
|
|
314
|
-
(
|
|
315
|
-
),
|
|
316
|
-
|
|
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 " +
|
|
319
|
+
"Failed " + l + " type: " + g.message + (j ?? "")
|
|
320
320
|
);
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
|
-
return
|
|
326
|
-
process.env.NODE_ENV !== "production" && (
|
|
327
|
-
},
|
|
325
|
+
return a.resetWarningCache = function() {
|
|
326
|
+
process.env.NODE_ENV !== "production" && (s = {});
|
|
327
|
+
}, de = a, de;
|
|
328
328
|
}
|
|
329
|
-
var
|
|
330
|
-
function
|
|
331
|
-
if (
|
|
332
|
-
|
|
333
|
-
var r =
|
|
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" && (
|
|
336
|
-
var
|
|
337
|
-
typeof console < "u" && console.error(
|
|
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(
|
|
339
|
+
throw new Error(b);
|
|
340
340
|
} catch {
|
|
341
341
|
}
|
|
342
342
|
});
|
|
343
|
-
function
|
|
343
|
+
function u() {
|
|
344
344
|
return null;
|
|
345
345
|
}
|
|
346
|
-
return
|
|
347
|
-
var
|
|
348
|
-
function
|
|
349
|
-
var
|
|
350
|
-
if (typeof
|
|
351
|
-
return
|
|
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:
|
|
362
|
+
any: F(),
|
|
363
363
|
arrayOf: $,
|
|
364
364
|
element: q(),
|
|
365
|
-
elementType:
|
|
365
|
+
elementType: c(),
|
|
366
366
|
instanceOf: z,
|
|
367
|
-
node:
|
|
368
|
-
objectOf:
|
|
369
|
-
oneOf:
|
|
370
|
-
oneOfType:
|
|
371
|
-
shape:
|
|
372
|
-
exact:
|
|
367
|
+
node: ne(),
|
|
368
|
+
objectOf: re,
|
|
369
|
+
oneOf: ee,
|
|
370
|
+
oneOfType: te,
|
|
371
|
+
shape: ae,
|
|
372
|
+
exact: ie
|
|
373
373
|
};
|
|
374
|
-
function k(
|
|
375
|
-
return
|
|
374
|
+
function k(n, p) {
|
|
375
|
+
return n === p ? n !== 0 || 1 / n === 1 / p : n !== n && p !== p;
|
|
376
376
|
}
|
|
377
|
-
function N(
|
|
378
|
-
this.message =
|
|
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(
|
|
381
|
+
function I(n) {
|
|
382
382
|
if (process.env.NODE_ENV !== "production")
|
|
383
|
-
var
|
|
384
|
-
function
|
|
385
|
-
if (O = O || A,
|
|
386
|
-
if (
|
|
387
|
-
var
|
|
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
|
|
390
|
+
throw f.name = "Invariant Violation", f;
|
|
391
391
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
392
|
-
var
|
|
393
|
-
!
|
|
394
|
-
|
|
395
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
396
|
-
),
|
|
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
|
|
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 =
|
|
402
|
-
return y.isRequired =
|
|
401
|
+
var y = T.bind(null, !1);
|
|
402
|
+
return y.isRequired = T.bind(null, !0), y;
|
|
403
403
|
}
|
|
404
|
-
function Y(
|
|
405
|
-
function
|
|
406
|
-
var O = T
|
|
407
|
-
if (
|
|
408
|
-
var
|
|
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 + " `" +
|
|
411
|
-
{ expectedType:
|
|
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
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
if (
|
|
427
|
-
|
|
428
|
-
|
|
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
|
|
431
|
-
var
|
|
432
|
-
if (
|
|
433
|
-
return
|
|
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(
|
|
437
|
+
return I(p);
|
|
438
438
|
}
|
|
439
439
|
function q() {
|
|
440
|
-
function
|
|
441
|
-
var
|
|
442
|
-
if (!
|
|
443
|
-
var
|
|
444
|
-
return new N("Invalid " + y + " `" + R + "` of type " + ("`" +
|
|
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(
|
|
448
|
+
return I(n);
|
|
449
449
|
}
|
|
450
|
-
function
|
|
451
|
-
function
|
|
452
|
-
var
|
|
453
|
-
if (!r.isValidElementType(
|
|
454
|
-
var
|
|
455
|
-
return new N("Invalid " + y + " `" + R + "` of 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(
|
|
459
|
+
return I(n);
|
|
460
460
|
}
|
|
461
|
-
function z(
|
|
462
|
-
function
|
|
463
|
-
if (!(T
|
|
464
|
-
var
|
|
465
|
-
return new N("Invalid " + R + " `" +
|
|
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(
|
|
469
|
+
return I(p);
|
|
470
470
|
}
|
|
471
|
-
function
|
|
472
|
-
if (!Array.isArray(
|
|
473
|
-
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ?
|
|
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
|
-
) :
|
|
476
|
-
function
|
|
477
|
-
for (var
|
|
478
|
-
if (k(
|
|
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
|
|
481
|
-
var
|
|
482
|
-
return
|
|
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 + " `" +
|
|
484
|
+
return new N("Invalid " + R + " `" + h + "` of value `" + String(_) + "` " + ("supplied to `" + y + "`, expected one of " + w + "."));
|
|
485
485
|
}
|
|
486
|
-
return I(
|
|
486
|
+
return I(p);
|
|
487
487
|
}
|
|
488
|
-
function
|
|
489
|
-
function
|
|
490
|
-
if (typeof
|
|
491
|
-
return new N("Property `" +
|
|
492
|
-
var
|
|
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 + " `" +
|
|
495
|
-
for (var
|
|
496
|
-
if (
|
|
497
|
-
var
|
|
498
|
-
if (
|
|
499
|
-
return
|
|
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(
|
|
503
|
+
return I(p);
|
|
504
504
|
}
|
|
505
|
-
function
|
|
506
|
-
if (!Array.isArray(
|
|
507
|
-
return process.env.NODE_ENV !== "production" &&
|
|
508
|
-
for (var
|
|
509
|
-
var
|
|
510
|
-
if (typeof
|
|
511
|
-
return
|
|
512
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
513
|
-
),
|
|
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
|
|
516
|
-
for (var
|
|
517
|
-
var
|
|
518
|
-
if (
|
|
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
|
-
|
|
520
|
+
f.data && i(f.data, "expectedType") && w.push(f.data.expectedType);
|
|
521
521
|
}
|
|
522
|
-
var
|
|
523
|
-
return new N("Invalid " +
|
|
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(
|
|
525
|
+
return I(T);
|
|
526
526
|
}
|
|
527
|
-
function
|
|
528
|
-
function
|
|
529
|
-
return
|
|
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(
|
|
531
|
+
return I(n);
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function H(n, p, E, T, y) {
|
|
534
534
|
return new N(
|
|
535
|
-
(
|
|
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
|
|
539
|
-
function
|
|
540
|
-
var
|
|
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 + " `" +
|
|
543
|
-
for (var
|
|
544
|
-
var
|
|
545
|
-
if (typeof
|
|
546
|
-
return
|
|
547
|
-
var
|
|
548
|
-
if (
|
|
549
|
-
return
|
|
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(
|
|
553
|
+
return I(p);
|
|
554
554
|
}
|
|
555
|
-
function
|
|
556
|
-
function
|
|
557
|
-
var
|
|
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 + " `" +
|
|
560
|
-
var
|
|
561
|
-
for (var
|
|
562
|
-
var
|
|
563
|
-
if (
|
|
564
|
-
return
|
|
565
|
-
if (!
|
|
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 + " `" +
|
|
568
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
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
|
|
571
|
-
if (
|
|
572
|
-
return
|
|
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(
|
|
576
|
+
return I(p);
|
|
577
577
|
}
|
|
578
|
-
function
|
|
579
|
-
switch (typeof
|
|
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 !
|
|
585
|
+
return !n;
|
|
586
586
|
case "object":
|
|
587
|
-
if (Array.isArray(
|
|
588
|
-
return
|
|
589
|
-
if (
|
|
587
|
+
if (Array.isArray(n))
|
|
588
|
+
return n.every(V);
|
|
589
|
+
if (n === null || l(n))
|
|
590
590
|
return !0;
|
|
591
|
-
var
|
|
592
|
-
if (
|
|
593
|
-
var
|
|
594
|
-
if (
|
|
595
|
-
for (; !(
|
|
596
|
-
if (!
|
|
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 (; !(
|
|
600
|
-
var y =
|
|
601
|
-
if (y && !
|
|
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
|
|
612
|
-
return
|
|
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
|
|
615
|
-
var
|
|
616
|
-
return Array.isArray(
|
|
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(
|
|
619
|
-
if (typeof
|
|
620
|
-
return "" +
|
|
621
|
-
var
|
|
622
|
-
if (
|
|
623
|
-
if (
|
|
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 (
|
|
625
|
+
if (n instanceof RegExp)
|
|
626
626
|
return "regexp";
|
|
627
627
|
}
|
|
628
|
-
return
|
|
628
|
+
return p;
|
|
629
629
|
}
|
|
630
|
-
function
|
|
631
|
-
var
|
|
632
|
-
switch (
|
|
630
|
+
function J(n) {
|
|
631
|
+
var p = U(n);
|
|
632
|
+
switch (p) {
|
|
633
633
|
case "array":
|
|
634
634
|
case "object":
|
|
635
|
-
return "an " +
|
|
635
|
+
return "an " + p;
|
|
636
636
|
case "boolean":
|
|
637
637
|
case "date":
|
|
638
638
|
case "regexp":
|
|
639
|
-
return "a " +
|
|
639
|
+
return "a " + p;
|
|
640
640
|
default:
|
|
641
|
-
return
|
|
641
|
+
return p;
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
|
-
function
|
|
645
|
-
return !
|
|
644
|
+
function se(n) {
|
|
645
|
+
return !n.constructor || !n.constructor.name ? A : n.constructor.name;
|
|
646
646
|
}
|
|
647
|
-
return j.checkPropTypes =
|
|
648
|
-
},
|
|
647
|
+
return j.checkPropTypes = a, j.resetWarningCache = a.resetWarningCache, j.PropTypes = j, j;
|
|
648
|
+
}, ye;
|
|
649
649
|
}
|
|
650
|
-
var
|
|
650
|
+
var me, Pe;
|
|
651
651
|
function We() {
|
|
652
|
-
if (
|
|
653
|
-
|
|
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
|
-
|
|
660
|
-
|
|
661
|
-
|
|
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
|
-
|
|
669
|
-
function
|
|
670
|
-
return
|
|
668
|
+
i.isRequired = i;
|
|
669
|
+
function a() {
|
|
670
|
+
return i;
|
|
671
671
|
}
|
|
672
|
-
var
|
|
673
|
-
array:
|
|
674
|
-
bigint:
|
|
675
|
-
bool:
|
|
676
|
-
func:
|
|
677
|
-
number:
|
|
678
|
-
object:
|
|
679
|
-
string:
|
|
680
|
-
symbol:
|
|
681
|
-
any:
|
|
682
|
-
arrayOf:
|
|
683
|
-
element:
|
|
684
|
-
elementType:
|
|
685
|
-
instanceOf:
|
|
686
|
-
node:
|
|
687
|
-
objectOf:
|
|
688
|
-
oneOf:
|
|
689
|
-
oneOfType:
|
|
690
|
-
shape:
|
|
691
|
-
exact:
|
|
692
|
-
checkPropTypes:
|
|
693
|
-
resetWarningCache:
|
|
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
|
|
696
|
-
},
|
|
695
|
+
return t.PropTypes = t, t;
|
|
696
|
+
}, me;
|
|
697
697
|
}
|
|
698
|
-
var
|
|
699
|
-
function
|
|
700
|
-
if (
|
|
701
|
-
if (
|
|
702
|
-
var r =
|
|
703
|
-
|
|
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
|
-
|
|
706
|
-
return
|
|
705
|
+
G.exports = /* @__PURE__ */ We()();
|
|
706
|
+
return G.exports;
|
|
707
707
|
}
|
|
708
|
-
var
|
|
709
|
-
const e = /* @__PURE__ */
|
|
710
|
-
const
|
|
711
|
-
return /* @__PURE__ */
|
|
712
|
-
/* @__PURE__ */
|
|
713
|
-
|
|
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
|
-
|
|
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
|
|
725
|
+
const B = ({
|
|
726
726
|
text: r,
|
|
727
|
-
href:
|
|
728
|
-
title:
|
|
729
|
-
className:
|
|
730
|
-
type:
|
|
731
|
-
variant:
|
|
732
|
-
size:
|
|
733
|
-
icon:
|
|
734
|
-
iconOnly:
|
|
735
|
-
iconPosition:
|
|
736
|
-
fullWidth:
|
|
737
|
-
disabled:
|
|
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 =
|
|
744
|
+
const N = l && b, I = M(
|
|
745
745
|
// Static classes
|
|
746
746
|
"rpf-button",
|
|
747
747
|
// Conditional classes
|
|
748
748
|
{
|
|
749
|
-
[`rpf-button--${
|
|
750
|
-
"rpf-button--danger":
|
|
751
|
-
"rpf-button--sm":
|
|
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":
|
|
754
|
-
disabled:
|
|
753
|
+
"rpf-button--full-width": m,
|
|
754
|
+
disabled: g
|
|
755
755
|
},
|
|
756
|
-
|
|
756
|
+
i
|
|
757
757
|
);
|
|
758
758
|
let Y = "rpf-button__icon";
|
|
759
|
-
|
|
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
|
|
763
|
-
|
|
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
|
-
|
|
765
|
+
F("right")
|
|
766
766
|
] });
|
|
767
|
-
return
|
|
767
|
+
return o ? /* @__PURE__ */ d(
|
|
768
768
|
k || "a",
|
|
769
769
|
{
|
|
770
770
|
className: I,
|
|
771
|
-
...k ? { to:
|
|
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:
|
|
780
|
+
title: s,
|
|
781
781
|
onClick: A,
|
|
782
|
-
disabled:
|
|
782
|
+
disabled: g,
|
|
783
783
|
"aria-label": j,
|
|
784
784
|
children: q
|
|
785
785
|
}
|
|
786
786
|
);
|
|
787
787
|
};
|
|
788
|
-
|
|
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
|
|
806
|
-
/* @__PURE__ */
|
|
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__ */
|
|
809
|
-
|
|
810
|
-
|
|
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:
|
|
819
|
+
onClick: u
|
|
817
820
|
}
|
|
818
821
|
) })
|
|
819
822
|
] }),
|
|
820
|
-
(
|
|
821
|
-
!
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
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:
|
|
829
|
+
text: l.label,
|
|
827
830
|
size: "small",
|
|
828
831
|
type: "tertiary",
|
|
829
|
-
href:
|
|
830
|
-
onClick:
|
|
832
|
+
href: l.href,
|
|
833
|
+
onClick: l.onClick
|
|
831
834
|
},
|
|
832
|
-
|
|
835
|
+
l.key || l.label
|
|
833
836
|
)) })
|
|
834
837
|
] })
|
|
835
838
|
] });
|
|
836
|
-
|
|
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
|
|
854
|
+
const Ve = ({
|
|
851
855
|
id: r,
|
|
852
|
-
label:
|
|
853
|
-
name:
|
|
854
|
-
checked:
|
|
855
|
-
disabled:
|
|
856
|
-
error:
|
|
857
|
-
onChange:
|
|
856
|
+
label: o,
|
|
857
|
+
name: s,
|
|
858
|
+
checked: i = !1,
|
|
859
|
+
disabled: a = !1,
|
|
860
|
+
error: t = "",
|
|
861
|
+
onChange: u = () => {
|
|
858
862
|
},
|
|
859
|
-
value:
|
|
860
|
-
className:
|
|
861
|
-
}) => /* @__PURE__ */
|
|
862
|
-
/* @__PURE__ */
|
|
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":
|
|
867
|
-
className:
|
|
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: !!
|
|
874
|
-
disabled:
|
|
877
|
+
checked: !!i,
|
|
878
|
+
disabled: a,
|
|
875
879
|
id: r,
|
|
876
|
-
name:
|
|
877
|
-
onChange:
|
|
880
|
+
name: s,
|
|
881
|
+
onChange: u,
|
|
878
882
|
type: "checkbox",
|
|
879
|
-
value:
|
|
883
|
+
value: l
|
|
880
884
|
}
|
|
881
885
|
),
|
|
882
|
-
|
|
886
|
+
o
|
|
883
887
|
]
|
|
884
888
|
}
|
|
885
889
|
),
|
|
886
|
-
|
|
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
|
-
|
|
892
|
+
t
|
|
889
893
|
] })
|
|
890
894
|
] });
|
|
891
|
-
|
|
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
|
|
906
|
+
const He = ({
|
|
903
907
|
disabled: r = !1,
|
|
904
|
-
errorText:
|
|
905
|
-
fullWidth:
|
|
906
|
-
legendText:
|
|
907
|
-
legendHintText:
|
|
908
|
-
children:
|
|
909
|
-
}) => /* @__PURE__ */
|
|
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":
|
|
915
|
-
"rpf-fieldset--error":
|
|
918
|
+
"rpf-fieldset--full-width": s,
|
|
919
|
+
"rpf-fieldset--error": o
|
|
916
920
|
}),
|
|
917
921
|
disabled: r,
|
|
918
922
|
children: [
|
|
919
|
-
/* @__PURE__ */
|
|
920
|
-
|
|
921
|
-
|
|
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:
|
|
924
|
-
|
|
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
|
-
|
|
930
|
+
o
|
|
927
931
|
] }) : null
|
|
928
932
|
]
|
|
929
933
|
}
|
|
930
934
|
);
|
|
931
|
-
|
|
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
|
|
943
|
+
const Q = ({
|
|
940
944
|
id: r,
|
|
941
|
-
label:
|
|
942
|
-
children:
|
|
943
|
-
disabled:
|
|
944
|
-
error:
|
|
945
|
-
hint:
|
|
946
|
-
}) => /* @__PURE__ */
|
|
947
|
-
(
|
|
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":
|
|
956
|
+
"rpf-label--disabled": i
|
|
953
957
|
}),
|
|
954
958
|
children: [
|
|
955
|
-
|
|
956
|
-
/* @__PURE__ */ d("small", { className: "rpf-label__hint", children:
|
|
959
|
+
o,
|
|
960
|
+
/* @__PURE__ */ d("small", { className: "rpf-label__hint", children: t })
|
|
957
961
|
]
|
|
958
962
|
}
|
|
959
963
|
),
|
|
960
|
-
|
|
961
|
-
|
|
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
|
-
|
|
967
|
+
a
|
|
964
968
|
] })
|
|
965
969
|
] });
|
|
966
|
-
|
|
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
|
|
978
|
+
const Je = ({
|
|
975
979
|
label: r,
|
|
976
|
-
inputFieldId:
|
|
977
|
-
disabled:
|
|
978
|
-
hint:
|
|
979
|
-
}) => /* @__PURE__ */ d("div", { className: "rpf-label", children: /* @__PURE__ */
|
|
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:
|
|
986
|
+
htmlFor: o,
|
|
983
987
|
className: M("rpf-label", {
|
|
984
|
-
"rpf-label--disabled":
|
|
988
|
+
"rpf-label--disabled": s
|
|
985
989
|
}),
|
|
986
990
|
children: [
|
|
987
991
|
r,
|
|
988
|
-
|
|
992
|
+
i && /* @__PURE__ */ d("div", { className: "rpf-label__hint", children: i })
|
|
989
993
|
]
|
|
990
994
|
}
|
|
991
995
|
) });
|
|
992
|
-
|
|
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
|
|
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:
|
|
1025
|
-
name:
|
|
1026
|
-
checked:
|
|
1027
|
-
disabled:
|
|
1028
|
-
fullWidth:
|
|
1029
|
-
onChange:
|
|
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:
|
|
1032
|
-
}) => /* @__PURE__ */ d(
|
|
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":
|
|
1037
|
-
"rpf-input--full-width":
|
|
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: !!
|
|
1044
|
-
disabled:
|
|
1023
|
+
checked: !!i,
|
|
1024
|
+
disabled: a,
|
|
1045
1025
|
id: r,
|
|
1046
|
-
name:
|
|
1047
|
-
onChange:
|
|
1026
|
+
name: s,
|
|
1027
|
+
onChange: u,
|
|
1048
1028
|
type: "radio",
|
|
1049
|
-
value:
|
|
1029
|
+
value: l
|
|
1050
1030
|
}
|
|
1051
1031
|
),
|
|
1052
|
-
|
|
1032
|
+
o
|
|
1053
1033
|
]
|
|
1054
1034
|
}
|
|
1055
1035
|
) });
|
|
1056
|
-
|
|
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
|
|
1046
|
+
const Ge = ({
|
|
1067
1047
|
label: r,
|
|
1068
|
-
inputFieldId:
|
|
1069
|
-
disabled:
|
|
1070
|
-
error:
|
|
1071
|
-
hint:
|
|
1072
|
-
placeholder:
|
|
1073
|
-
defaultValue:
|
|
1074
|
-
onClick:
|
|
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:
|
|
1057
|
+
onChange: b = (v) => {
|
|
1078
1058
|
}
|
|
1079
|
-
}) => /* @__PURE__ */ d("search", { children: /* @__PURE__ */
|
|
1080
|
-
/* @__PURE__ */
|
|
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:
|
|
1063
|
+
htmlFor: o,
|
|
1084
1064
|
className: M("rpf-label", {
|
|
1085
|
-
"rpf-label--disabled":
|
|
1065
|
+
"rpf-label--disabled": s
|
|
1086
1066
|
}),
|
|
1087
1067
|
children: [
|
|
1088
1068
|
r,
|
|
1089
|
-
|
|
1069
|
+
a && /* @__PURE__ */ d("small", { className: "rpf-label__hint", children: a })
|
|
1090
1070
|
]
|
|
1091
1071
|
}
|
|
1092
1072
|
),
|
|
1093
|
-
/* @__PURE__ */
|
|
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":
|
|
1099
|
-
"rpf-input--error":
|
|
1078
|
+
"rpf-input--disabled": s,
|
|
1079
|
+
"rpf-input--error": i
|
|
1100
1080
|
}),
|
|
1101
|
-
disabled:
|
|
1102
|
-
id:
|
|
1081
|
+
disabled: s,
|
|
1082
|
+
id: o,
|
|
1103
1083
|
name: "search",
|
|
1104
1084
|
type: "search",
|
|
1105
1085
|
"aria-label": "Search",
|
|
1106
|
-
defaultValue:
|
|
1107
|
-
placeholder:
|
|
1108
|
-
onChange:
|
|
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":
|
|
1117
|
-
"rpf-button--error":
|
|
1096
|
+
"rpf-button--disabled": s,
|
|
1097
|
+
"rpf-button--error": i
|
|
1118
1098
|
}),
|
|
1119
|
-
disabled:
|
|
1120
|
-
onClick:
|
|
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
|
-
|
|
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
|
-
|
|
1107
|
+
i
|
|
1128
1108
|
] })
|
|
1129
1109
|
] }) });
|
|
1130
|
-
|
|
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
|
|
1121
|
+
const Ke = ({
|
|
1142
1122
|
id: r,
|
|
1143
|
-
label:
|
|
1144
|
-
name:
|
|
1145
|
-
options:
|
|
1146
|
-
disabled:
|
|
1147
|
-
error:
|
|
1148
|
-
fullWidth:
|
|
1149
|
-
hint:
|
|
1150
|
-
onChange:
|
|
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:
|
|
1132
|
+
placeholder: v = "",
|
|
1133
|
+
value: m = ""
|
|
1154
1134
|
}) => /* @__PURE__ */ d(
|
|
1155
|
-
|
|
1135
|
+
Q,
|
|
1156
1136
|
{
|
|
1157
1137
|
id: r,
|
|
1158
|
-
disabled:
|
|
1159
|
-
error:
|
|
1160
|
-
hint:
|
|
1161
|
-
label:
|
|
1162
|
-
children: /* @__PURE__ */
|
|
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":
|
|
1167
|
-
"rpf-input--full-width":
|
|
1146
|
+
"rpf-input--error": t,
|
|
1147
|
+
"rpf-input--full-width": u
|
|
1168
1148
|
}),
|
|
1169
|
-
disabled:
|
|
1149
|
+
disabled: a,
|
|
1170
1150
|
id: r,
|
|
1171
|
-
name:
|
|
1172
|
-
onChange:
|
|
1151
|
+
name: s,
|
|
1152
|
+
onChange: b,
|
|
1173
1153
|
type: "text",
|
|
1174
|
-
value:
|
|
1154
|
+
value: m,
|
|
1175
1155
|
children: [
|
|
1176
|
-
!
|
|
1177
|
-
|
|
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
|
-
|
|
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
|
|
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:
|
|
1261
|
-
name:
|
|
1262
|
-
value:
|
|
1263
|
-
disabled:
|
|
1264
|
-
readOnly:
|
|
1265
|
-
error:
|
|
1266
|
-
fullWidth:
|
|
1267
|
-
hint:
|
|
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
|
-
|
|
1189
|
+
Q,
|
|
1272
1190
|
{
|
|
1273
1191
|
id: r,
|
|
1274
|
-
disabled:
|
|
1275
|
-
error:
|
|
1276
|
-
hint:
|
|
1277
|
-
label:
|
|
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":
|
|
1283
|
-
"rpf-input--full-width":
|
|
1284
|
-
"rpf-input--disabled":
|
|
1200
|
+
"rpf-input--error": u,
|
|
1201
|
+
"rpf-input--full-width": l,
|
|
1202
|
+
"rpf-input--disabled": a
|
|
1285
1203
|
}),
|
|
1286
|
-
disabled:
|
|
1287
|
-
readOnly:
|
|
1204
|
+
disabled: a,
|
|
1205
|
+
readOnly: t,
|
|
1288
1206
|
id: r,
|
|
1289
|
-
name:
|
|
1290
|
-
onChange:
|
|
1207
|
+
name: s,
|
|
1208
|
+
onChange: v,
|
|
1291
1209
|
type: "text",
|
|
1292
|
-
value:
|
|
1210
|
+
value: i
|
|
1293
1211
|
}
|
|
1294
1212
|
)
|
|
1295
1213
|
}
|
|
1296
1214
|
);
|
|
1297
|
-
|
|
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
|
|
1227
|
+
const Qe = ({
|
|
1310
1228
|
id: r,
|
|
1311
|
-
label:
|
|
1312
|
-
name:
|
|
1313
|
-
value:
|
|
1314
|
-
disabled:
|
|
1315
|
-
error:
|
|
1316
|
-
fullWidth:
|
|
1317
|
-
hint:
|
|
1318
|
-
onChange:
|
|
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
|
-
|
|
1239
|
+
Q,
|
|
1322
1240
|
{
|
|
1323
1241
|
id: r,
|
|
1324
|
-
disabled:
|
|
1325
|
-
error:
|
|
1326
|
-
hint:
|
|
1327
|
-
label:
|
|
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":
|
|
1333
|
-
"rpf-input--full-width":
|
|
1250
|
+
"rpf-input--error": t,
|
|
1251
|
+
"rpf-input--full-width": u
|
|
1334
1252
|
}),
|
|
1335
|
-
disabled:
|
|
1253
|
+
disabled: a,
|
|
1336
1254
|
id: r,
|
|
1337
|
-
name:
|
|
1338
|
-
onChange:
|
|
1255
|
+
name: s,
|
|
1256
|
+
onChange: b,
|
|
1339
1257
|
type: "text",
|
|
1340
|
-
value:
|
|
1258
|
+
value: i
|
|
1341
1259
|
}
|
|
1342
1260
|
)
|
|
1343
1261
|
}
|
|
1344
1262
|
);
|
|
1345
|
-
|
|
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
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
Xe as
|
|
1367
|
-
Ge as
|
|
1368
|
-
Ke as
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
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
|
};
|