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