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