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