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