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