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