@raspberrypifoundation/design-system-react 2.7.2 → 2.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -1
- package/dist/design-system-react.js +399 -429
- package/dist/design-system-react.umd.cjs +13 -13
- package/dist/types/src/components/Form/CheckboxInput/CheckboxInput.types.d.ts +1 -11
- package/dist/types/src/components/Form/CheckboxInput/CheckboxInput.types.d.ts.map +1 -1
- package/dist/types/src/components/Form/CheckboxInput/index.d.ts +1 -1
- package/dist/types/src/components/Form/CheckboxInput/index.d.ts.map +1 -1
- package/dist/types/src/components/Form/RadioInput/RadioInput.types.d.ts +3 -11
- package/dist/types/src/components/Form/RadioInput/RadioInput.types.d.ts.map +1 -1
- package/dist/types/src/components/Form/RadioInput/index.d.ts +1 -1
- package/dist/types/src/components/Form/RadioInput/index.d.ts.map +1 -1
- package/dist/types/src/components/Form/SelectInput/SelectInput.types.d.ts +1 -7
- package/dist/types/src/components/Form/SelectInput/SelectInput.types.d.ts.map +1 -1
- package/dist/types/src/components/Form/SelectInput/index.d.ts +1 -1
- package/dist/types/src/components/Form/SelectInput/index.d.ts.map +1 -1
- package/dist/types/src/components/Form/TextInput/TextInput.types.d.ts +1 -7
- package/dist/types/src/components/Form/TextInput/TextInput.types.d.ts.map +1 -1
- package/dist/types/src/components/Form/TextInput/index.d.ts +1 -1
- package/dist/types/src/components/Form/TextInput/index.d.ts.map +1 -1
- package/dist/types/src/stories/forms/RadioInput.stories.d.ts +4 -0
- package/dist/types/src/stories/forms/RadioInput.stories.d.ts.map +1 -1
- package/dist/types/src/stories/forms/TextInput.stories.d.ts +4 -0
- package/dist/types/src/stories/forms/TextInput.stories.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import Le, { useRef as ge, useEffect as se, forwardRef as
|
|
3
|
-
function
|
|
1
|
+
import { jsxs as x, jsx as p, Fragment as me } from "react/jsx-runtime";
|
|
2
|
+
import Le, { useRef as ge, useEffect as se, forwardRef as $e, createElement as ye } from "react";
|
|
3
|
+
function ke(e) {
|
|
4
4
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
5
5
|
}
|
|
6
6
|
var ie = { exports: {} };
|
|
@@ -15,8 +15,8 @@ function Ye() {
|
|
|
15
15
|
(function() {
|
|
16
16
|
var t = {}.hasOwnProperty;
|
|
17
17
|
function s() {
|
|
18
|
-
for (var r = "",
|
|
19
|
-
var i = arguments[
|
|
18
|
+
for (var r = "", f = 0; f < arguments.length; f++) {
|
|
19
|
+
var i = arguments[f];
|
|
20
20
|
i && (r = a(r, n(i)));
|
|
21
21
|
}
|
|
22
22
|
return r;
|
|
@@ -30,20 +30,20 @@ function Ye() {
|
|
|
30
30
|
return s.apply(null, r);
|
|
31
31
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
32
32
|
return r.toString();
|
|
33
|
-
var
|
|
33
|
+
var f = "";
|
|
34
34
|
for (var i in r)
|
|
35
|
-
t.call(r, i) && r[i] && (
|
|
36
|
-
return
|
|
35
|
+
t.call(r, i) && r[i] && (f = a(f, i));
|
|
36
|
+
return f;
|
|
37
37
|
}
|
|
38
|
-
function a(r,
|
|
39
|
-
return
|
|
38
|
+
function a(r, f) {
|
|
39
|
+
return f ? r ? r + " " + f : r + f : r;
|
|
40
40
|
}
|
|
41
41
|
e.exports ? (s.default = s, e.exports = s) : window.classNames = s;
|
|
42
42
|
})();
|
|
43
43
|
}(ie)), ie.exports;
|
|
44
44
|
}
|
|
45
45
|
var De = Ye();
|
|
46
|
-
const M = /* @__PURE__ */
|
|
46
|
+
const M = /* @__PURE__ */ ke(De);
|
|
47
47
|
var Z = { exports: {} }, K = { exports: {} }, C = {};
|
|
48
48
|
/** @license React v16.13.1
|
|
49
49
|
* react-is.production.min.js
|
|
@@ -57,28 +57,28 @@ var Te;
|
|
|
57
57
|
function We() {
|
|
58
58
|
if (Te) return C;
|
|
59
59
|
Te = 1;
|
|
60
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, s = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, r = e ? Symbol.for("react.profiler") : 60114,
|
|
61
|
-
function
|
|
62
|
-
if (typeof
|
|
63
|
-
var Y =
|
|
60
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, s = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, r = e ? Symbol.for("react.profiler") : 60114, f = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, h = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, E = e ? Symbol.for("react.suspense") : 60113, O = e ? Symbol.for("react.suspense_list") : 60120, A = e ? Symbol.for("react.memo") : 60115, I = e ? Symbol.for("react.lazy") : 60116, N = e ? Symbol.for("react.block") : 60121, $ = e ? Symbol.for("react.fundamental") : 60117, q = e ? Symbol.for("react.responder") : 60118, F = e ? Symbol.for("react.scope") : 60119;
|
|
61
|
+
function k(c) {
|
|
62
|
+
if (typeof c == "object" && c !== null) {
|
|
63
|
+
var Y = c.$$typeof;
|
|
64
64
|
switch (Y) {
|
|
65
65
|
case t:
|
|
66
|
-
switch (
|
|
67
|
-
case
|
|
66
|
+
switch (c = c.type, c) {
|
|
67
|
+
case m:
|
|
68
68
|
case h:
|
|
69
69
|
case n:
|
|
70
70
|
case r:
|
|
71
71
|
case a:
|
|
72
|
-
case
|
|
73
|
-
return
|
|
72
|
+
case E:
|
|
73
|
+
return c;
|
|
74
74
|
default:
|
|
75
|
-
switch (
|
|
75
|
+
switch (c = c && c.$$typeof, c) {
|
|
76
76
|
case i:
|
|
77
|
-
case
|
|
77
|
+
case d:
|
|
78
78
|
case I:
|
|
79
79
|
case A:
|
|
80
|
-
case
|
|
81
|
-
return
|
|
80
|
+
case f:
|
|
81
|
+
return c;
|
|
82
82
|
default:
|
|
83
83
|
return Y;
|
|
84
84
|
}
|
|
@@ -88,36 +88,36 @@ function We() {
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
function j(
|
|
92
|
-
return
|
|
91
|
+
function j(c) {
|
|
92
|
+
return k(c) === h;
|
|
93
93
|
}
|
|
94
|
-
return C.AsyncMode =
|
|
95
|
-
return j(
|
|
96
|
-
}, C.isConcurrentMode = j, C.isContextConsumer = function(
|
|
97
|
-
return
|
|
98
|
-
}, C.isContextProvider = function(
|
|
99
|
-
return
|
|
100
|
-
}, C.isElement = function(
|
|
101
|
-
return typeof
|
|
102
|
-
}, C.isForwardRef = function(
|
|
103
|
-
return
|
|
104
|
-
}, C.isFragment = function(
|
|
105
|
-
return
|
|
106
|
-
}, C.isLazy = function(
|
|
107
|
-
return
|
|
108
|
-
}, C.isMemo = function(
|
|
109
|
-
return
|
|
110
|
-
}, C.isPortal = function(
|
|
111
|
-
return
|
|
112
|
-
}, C.isProfiler = function(
|
|
113
|
-
return
|
|
114
|
-
}, C.isStrictMode = function(
|
|
115
|
-
return
|
|
116
|
-
}, C.isSuspense = function(
|
|
117
|
-
return
|
|
118
|
-
}, C.isValidElementType = function(
|
|
119
|
-
return typeof
|
|
120
|
-
}, C.typeOf =
|
|
94
|
+
return C.AsyncMode = m, C.ConcurrentMode = h, C.ContextConsumer = i, C.ContextProvider = f, C.Element = t, C.ForwardRef = d, C.Fragment = n, C.Lazy = I, C.Memo = A, C.Portal = s, C.Profiler = r, C.StrictMode = a, C.Suspense = E, C.isAsyncMode = function(c) {
|
|
95
|
+
return j(c) || k(c) === m;
|
|
96
|
+
}, C.isConcurrentMode = j, C.isContextConsumer = function(c) {
|
|
97
|
+
return k(c) === i;
|
|
98
|
+
}, C.isContextProvider = function(c) {
|
|
99
|
+
return k(c) === f;
|
|
100
|
+
}, C.isElement = function(c) {
|
|
101
|
+
return typeof c == "object" && c !== null && c.$$typeof === t;
|
|
102
|
+
}, C.isForwardRef = function(c) {
|
|
103
|
+
return k(c) === d;
|
|
104
|
+
}, C.isFragment = function(c) {
|
|
105
|
+
return k(c) === n;
|
|
106
|
+
}, C.isLazy = function(c) {
|
|
107
|
+
return k(c) === I;
|
|
108
|
+
}, C.isMemo = function(c) {
|
|
109
|
+
return k(c) === A;
|
|
110
|
+
}, C.isPortal = function(c) {
|
|
111
|
+
return k(c) === s;
|
|
112
|
+
}, C.isProfiler = function(c) {
|
|
113
|
+
return k(c) === r;
|
|
114
|
+
}, C.isStrictMode = function(c) {
|
|
115
|
+
return k(c) === a;
|
|
116
|
+
}, C.isSuspense = function(c) {
|
|
117
|
+
return k(c) === E;
|
|
118
|
+
}, C.isValidElementType = function(c) {
|
|
119
|
+
return typeof c == "string" || typeof c == "function" || c === n || c === h || c === r || c === a || c === E || c === O || typeof c == "object" && c !== null && (c.$$typeof === I || c.$$typeof === A || c.$$typeof === f || c.$$typeof === i || c.$$typeof === d || c.$$typeof === $ || c.$$typeof === q || c.$$typeof === F || c.$$typeof === N);
|
|
120
|
+
}, C.typeOf = k, C;
|
|
121
121
|
}
|
|
122
122
|
var R = {};
|
|
123
123
|
/** @license React v16.13.1
|
|
@@ -131,33 +131,33 @@ var R = {};
|
|
|
131
131
|
var we;
|
|
132
132
|
function Fe() {
|
|
133
133
|
return we || (we = 1, process.env.NODE_ENV !== "production" && function() {
|
|
134
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, s = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, r = e ? Symbol.for("react.profiler") : 60114,
|
|
135
|
-
function
|
|
136
|
-
return typeof
|
|
137
|
-
|
|
134
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, s = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, r = e ? Symbol.for("react.profiler") : 60114, f = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, h = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, E = e ? Symbol.for("react.suspense") : 60113, O = e ? Symbol.for("react.suspense_list") : 60120, A = e ? Symbol.for("react.memo") : 60115, I = e ? Symbol.for("react.lazy") : 60116, N = e ? Symbol.for("react.block") : 60121, $ = e ? Symbol.for("react.fundamental") : 60117, q = e ? Symbol.for("react.responder") : 60118, F = e ? Symbol.for("react.scope") : 60119;
|
|
135
|
+
function k(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 === n || l === h || l === r || l === a || l === E || l === O || typeof l == "object" && l !== null && (l.$$typeof === I || l.$$typeof === A || l.$$typeof === f || l.$$typeof === i || l.$$typeof === d || l.$$typeof === $ || l.$$typeof === q || l.$$typeof === F || l.$$typeof === N);
|
|
138
138
|
}
|
|
139
|
-
function j(
|
|
140
|
-
if (typeof
|
|
141
|
-
var W =
|
|
139
|
+
function j(l) {
|
|
140
|
+
if (typeof l == "object" && l !== null) {
|
|
141
|
+
var W = l.$$typeof;
|
|
142
142
|
switch (W) {
|
|
143
143
|
case t:
|
|
144
|
-
var J =
|
|
144
|
+
var J = l.type;
|
|
145
145
|
switch (J) {
|
|
146
|
-
case
|
|
146
|
+
case m:
|
|
147
147
|
case h:
|
|
148
148
|
case n:
|
|
149
149
|
case r:
|
|
150
150
|
case a:
|
|
151
|
-
case
|
|
151
|
+
case E:
|
|
152
152
|
return J;
|
|
153
153
|
default:
|
|
154
154
|
var _e = J && J.$$typeof;
|
|
155
155
|
switch (_e) {
|
|
156
156
|
case i:
|
|
157
|
-
case
|
|
157
|
+
case d:
|
|
158
158
|
case I:
|
|
159
159
|
case A:
|
|
160
|
-
case
|
|
160
|
+
case f:
|
|
161
161
|
return _e;
|
|
162
162
|
default:
|
|
163
163
|
return W;
|
|
@@ -168,47 +168,47 @@ function Fe() {
|
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
var
|
|
172
|
-
function oe(
|
|
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.")), o(
|
|
171
|
+
var c = m, Y = h, G = i, Q = f, ee = t, re = d, V = n, te = I, ne = A, z = s, ae = r, D = a, U = E, H = !1;
|
|
172
|
+
function oe(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.")), o(l) || j(l) === m;
|
|
174
174
|
}
|
|
175
|
-
function o(
|
|
176
|
-
return j(
|
|
175
|
+
function o(l) {
|
|
176
|
+
return j(l) === h;
|
|
177
177
|
}
|
|
178
|
-
function u(
|
|
179
|
-
return j(
|
|
178
|
+
function u(l) {
|
|
179
|
+
return j(l) === i;
|
|
180
180
|
}
|
|
181
|
-
function
|
|
182
|
-
return j(
|
|
181
|
+
function g(l) {
|
|
182
|
+
return j(l) === f;
|
|
183
183
|
}
|
|
184
|
-
function
|
|
185
|
-
return typeof
|
|
184
|
+
function b(l) {
|
|
185
|
+
return typeof l == "object" && l !== null && l.$$typeof === t;
|
|
186
186
|
}
|
|
187
|
-
function
|
|
188
|
-
return j(
|
|
187
|
+
function y(l) {
|
|
188
|
+
return j(l) === d;
|
|
189
189
|
}
|
|
190
|
-
function T(
|
|
191
|
-
return j(
|
|
190
|
+
function T(l) {
|
|
191
|
+
return j(l) === n;
|
|
192
192
|
}
|
|
193
|
-
function v(
|
|
194
|
-
return j(
|
|
193
|
+
function v(l) {
|
|
194
|
+
return j(l) === I;
|
|
195
195
|
}
|
|
196
|
-
function
|
|
197
|
-
return j(
|
|
196
|
+
function _(l) {
|
|
197
|
+
return j(l) === A;
|
|
198
198
|
}
|
|
199
|
-
function w(
|
|
200
|
-
return j(
|
|
199
|
+
function w(l) {
|
|
200
|
+
return j(l) === s;
|
|
201
201
|
}
|
|
202
|
-
function
|
|
203
|
-
return j(
|
|
202
|
+
function P(l) {
|
|
203
|
+
return j(l) === r;
|
|
204
204
|
}
|
|
205
|
-
function S(
|
|
206
|
-
return j(
|
|
205
|
+
function S(l) {
|
|
206
|
+
return j(l) === a;
|
|
207
207
|
}
|
|
208
|
-
function L(
|
|
209
|
-
return j(
|
|
208
|
+
function L(l) {
|
|
209
|
+
return j(l) === E;
|
|
210
210
|
}
|
|
211
|
-
R.AsyncMode =
|
|
211
|
+
R.AsyncMode = c, R.ConcurrentMode = Y, R.ContextConsumer = G, R.ContextProvider = Q, R.Element = ee, R.ForwardRef = re, R.Fragment = V, R.Lazy = te, R.Memo = ne, R.Portal = z, R.Profiler = ae, R.StrictMode = D, R.Suspense = U, R.isAsyncMode = oe, R.isConcurrentMode = o, R.isContextConsumer = u, R.isContextProvider = g, R.isElement = b, R.isForwardRef = y, R.isFragment = T, R.isLazy = v, R.isMemo = _, R.isPortal = w, R.isProfiler = P, R.isStrictMode = S, R.isSuspense = L, R.isValidElementType = k, R.typeOf = j;
|
|
212
212
|
}()), R;
|
|
213
213
|
}
|
|
214
214
|
var Se;
|
|
@@ -237,33 +237,33 @@ function Ue() {
|
|
|
237
237
|
var r = new String("abc");
|
|
238
238
|
if (r[5] = "de", Object.getOwnPropertyNames(r)[0] === "5")
|
|
239
239
|
return !1;
|
|
240
|
-
for (var
|
|
241
|
-
|
|
242
|
-
var
|
|
243
|
-
return
|
|
240
|
+
for (var f = {}, i = 0; i < 10; i++)
|
|
241
|
+
f["_" + String.fromCharCode(i)] = i;
|
|
242
|
+
var m = Object.getOwnPropertyNames(f).map(function(d) {
|
|
243
|
+
return f[d];
|
|
244
244
|
});
|
|
245
|
-
if (
|
|
245
|
+
if (m.join("") !== "0123456789")
|
|
246
246
|
return !1;
|
|
247
247
|
var h = {};
|
|
248
|
-
return "abcdefghijklmnopqrst".split("").forEach(function(
|
|
249
|
-
h[
|
|
248
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(d) {
|
|
249
|
+
h[d] = d;
|
|
250
250
|
}), Object.keys(Object.assign({}, h)).join("") === "abcdefghijklmnopqrst";
|
|
251
251
|
} catch {
|
|
252
252
|
return !1;
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
|
-
return ce = a() ? Object.assign : function(r,
|
|
256
|
-
for (var i,
|
|
257
|
-
i = Object(arguments[
|
|
258
|
-
for (var
|
|
259
|
-
t.call(i,
|
|
255
|
+
return ce = a() ? Object.assign : function(r, f) {
|
|
256
|
+
for (var i, m = n(r), h, d = 1; d < arguments.length; d++) {
|
|
257
|
+
i = Object(arguments[d]);
|
|
258
|
+
for (var E in i)
|
|
259
|
+
t.call(i, E) && (m[E] = i[E]);
|
|
260
260
|
if (e) {
|
|
261
261
|
h = e(i);
|
|
262
|
-
for (var
|
|
263
|
-
s.call(i, h[
|
|
262
|
+
for (var O = 0; O < h.length; O++)
|
|
263
|
+
s.call(i, h[O]) && (m[h[O]] = i[h[O]]);
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
|
-
return
|
|
266
|
+
return m;
|
|
267
267
|
}, ce;
|
|
268
268
|
}
|
|
269
269
|
var le, Re;
|
|
@@ -273,50 +273,50 @@ function he() {
|
|
|
273
273
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
274
274
|
return le = e, le;
|
|
275
275
|
}
|
|
276
|
-
var fe,
|
|
276
|
+
var fe, Pe;
|
|
277
277
|
function Me() {
|
|
278
|
-
return
|
|
278
|
+
return Pe || (Pe = 1, fe = Function.call.bind(Object.prototype.hasOwnProperty)), fe;
|
|
279
279
|
}
|
|
280
|
-
var ue,
|
|
280
|
+
var ue, xe;
|
|
281
281
|
function ze() {
|
|
282
|
-
if (
|
|
283
|
-
|
|
282
|
+
if (xe) return ue;
|
|
283
|
+
xe = 1;
|
|
284
284
|
var e = function() {
|
|
285
285
|
};
|
|
286
286
|
if (process.env.NODE_ENV !== "production") {
|
|
287
287
|
var t = /* @__PURE__ */ he(), s = {}, n = /* @__PURE__ */ Me();
|
|
288
288
|
e = function(r) {
|
|
289
|
-
var
|
|
290
|
-
typeof console < "u" && console.error(
|
|
289
|
+
var f = "Warning: " + r;
|
|
290
|
+
typeof console < "u" && console.error(f);
|
|
291
291
|
try {
|
|
292
|
-
throw new Error(
|
|
292
|
+
throw new Error(f);
|
|
293
293
|
} catch {
|
|
294
294
|
}
|
|
295
295
|
};
|
|
296
296
|
}
|
|
297
|
-
function a(r,
|
|
297
|
+
function a(r, f, i, m, h) {
|
|
298
298
|
if (process.env.NODE_ENV !== "production") {
|
|
299
|
-
for (var
|
|
300
|
-
if (n(r,
|
|
301
|
-
var
|
|
299
|
+
for (var d in r)
|
|
300
|
+
if (n(r, d)) {
|
|
301
|
+
var E;
|
|
302
302
|
try {
|
|
303
|
-
if (typeof r[
|
|
304
|
-
var
|
|
305
|
-
(
|
|
303
|
+
if (typeof r[d] != "function") {
|
|
304
|
+
var O = Error(
|
|
305
|
+
(m || "React class") + ": " + i + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
306
306
|
);
|
|
307
|
-
throw
|
|
307
|
+
throw O.name = "Invariant Violation", O;
|
|
308
308
|
}
|
|
309
|
-
|
|
309
|
+
E = r[d](f, d, m, i, null, t);
|
|
310
310
|
} catch (I) {
|
|
311
|
-
|
|
311
|
+
E = I;
|
|
312
312
|
}
|
|
313
|
-
if (
|
|
314
|
-
(
|
|
315
|
-
),
|
|
316
|
-
s[
|
|
313
|
+
if (E && !(E instanceof Error) && e(
|
|
314
|
+
(m || "React class") + ": type specification of " + i + " `" + d + "` 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 A = h ? h() : "";
|
|
318
318
|
e(
|
|
319
|
-
"Failed " + i + " type: " +
|
|
319
|
+
"Failed " + i + " type: " + E.message + (A ?? "")
|
|
320
320
|
);
|
|
321
321
|
}
|
|
322
322
|
}
|
|
@@ -333,24 +333,24 @@ function Be() {
|
|
|
333
333
|
var e = Ie(), t = Ue(), s = /* @__PURE__ */ he(), n = /* @__PURE__ */ Me(), a = /* @__PURE__ */ ze(), r = function() {
|
|
334
334
|
};
|
|
335
335
|
process.env.NODE_ENV !== "production" && (r = function(i) {
|
|
336
|
-
var
|
|
337
|
-
typeof console < "u" && console.error(
|
|
336
|
+
var m = "Warning: " + i;
|
|
337
|
+
typeof console < "u" && console.error(m);
|
|
338
338
|
try {
|
|
339
|
-
throw new Error(
|
|
339
|
+
throw new Error(m);
|
|
340
340
|
} catch {
|
|
341
341
|
}
|
|
342
342
|
});
|
|
343
|
-
function
|
|
343
|
+
function f() {
|
|
344
344
|
return null;
|
|
345
345
|
}
|
|
346
|
-
return pe = function(i,
|
|
347
|
-
var h = typeof Symbol == "function" && Symbol.iterator,
|
|
348
|
-
function
|
|
349
|
-
var u = o && (h && o[h] || o[
|
|
346
|
+
return pe = function(i, m) {
|
|
347
|
+
var h = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
|
|
348
|
+
function E(o) {
|
|
349
|
+
var u = o && (h && o[h] || o[d]);
|
|
350
350
|
if (typeof u == "function")
|
|
351
351
|
return u;
|
|
352
352
|
}
|
|
353
|
-
var
|
|
353
|
+
var O = "<<anonymous>>", A = {
|
|
354
354
|
array: q("array"),
|
|
355
355
|
bigint: q("bigint"),
|
|
356
356
|
bool: q("boolean"),
|
|
@@ -360,9 +360,9 @@ function Be() {
|
|
|
360
360
|
string: q("string"),
|
|
361
361
|
symbol: q("symbol"),
|
|
362
362
|
any: F(),
|
|
363
|
-
arrayOf:
|
|
363
|
+
arrayOf: k,
|
|
364
364
|
element: j(),
|
|
365
|
-
elementType:
|
|
365
|
+
elementType: c(),
|
|
366
366
|
instanceOf: Y,
|
|
367
367
|
node: re(),
|
|
368
368
|
objectOf: Q,
|
|
@@ -374,206 +374,206 @@ function Be() {
|
|
|
374
374
|
function I(o, u) {
|
|
375
375
|
return o === u ? o !== 0 || 1 / o === 1 / u : o !== o && u !== u;
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function N(o, u) {
|
|
378
378
|
this.message = o, this.data = u && typeof u == "object" ? u : {}, this.stack = "";
|
|
379
379
|
}
|
|
380
|
-
|
|
381
|
-
function
|
|
380
|
+
N.prototype = Error.prototype;
|
|
381
|
+
function $(o) {
|
|
382
382
|
if (process.env.NODE_ENV !== "production")
|
|
383
|
-
var u = {},
|
|
384
|
-
function
|
|
385
|
-
if (w = w ||
|
|
386
|
-
if (
|
|
387
|
-
var
|
|
383
|
+
var u = {}, g = 0;
|
|
384
|
+
function b(T, v, _, w, P, S, L) {
|
|
385
|
+
if (w = w || O, S = S || _, L !== s) {
|
|
386
|
+
if (m) {
|
|
387
|
+
var l = new Error(
|
|
388
388
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
389
389
|
);
|
|
390
|
-
throw
|
|
390
|
+
throw l.name = "Invariant Violation", l;
|
|
391
391
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
392
|
-
var W = w + ":" +
|
|
392
|
+
var W = w + ":" + _;
|
|
393
393
|
!u[W] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
394
|
-
|
|
394
|
+
g < 3 && (r(
|
|
395
395
|
"You are manually calling a React.PropTypes validation function for the `" + S + "` prop on `" + w + "`. 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
|
-
), u[W] = !0,
|
|
396
|
+
), u[W] = !0, g++);
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
|
-
return v[
|
|
399
|
+
return v[_] == null ? T ? v[_] === null ? new N("The " + P + " `" + S + "` is marked as required " + ("in `" + w + "`, but its value is `null`.")) : new N("The " + P + " `" + S + "` is marked as required in " + ("`" + w + "`, but its value is `undefined`.")) : null : o(v, _, w, P, S);
|
|
400
400
|
}
|
|
401
|
-
var
|
|
402
|
-
return
|
|
401
|
+
var y = b.bind(null, !1);
|
|
402
|
+
return y.isRequired = b.bind(null, !0), y;
|
|
403
403
|
}
|
|
404
404
|
function q(o) {
|
|
405
|
-
function u(
|
|
406
|
-
var w =
|
|
407
|
-
if (
|
|
405
|
+
function u(g, b, y, T, v, _) {
|
|
406
|
+
var w = g[b], P = D(w);
|
|
407
|
+
if (P !== o) {
|
|
408
408
|
var S = U(w);
|
|
409
|
-
return new
|
|
410
|
-
"Invalid " + T + " `" + v + "` of type " + ("`" + S + "` supplied to `" +
|
|
409
|
+
return new N(
|
|
410
|
+
"Invalid " + T + " `" + v + "` of type " + ("`" + S + "` supplied to `" + y + "`, expected ") + ("`" + o + "`."),
|
|
411
411
|
{ expectedType: o }
|
|
412
412
|
);
|
|
413
413
|
}
|
|
414
414
|
return null;
|
|
415
415
|
}
|
|
416
|
-
return
|
|
416
|
+
return $(u);
|
|
417
417
|
}
|
|
418
418
|
function F() {
|
|
419
|
-
return
|
|
419
|
+
return $(f);
|
|
420
420
|
}
|
|
421
|
-
function
|
|
422
|
-
function u(
|
|
421
|
+
function k(o) {
|
|
422
|
+
function u(g, b, y, T, v) {
|
|
423
423
|
if (typeof o != "function")
|
|
424
|
-
return new
|
|
425
|
-
var
|
|
426
|
-
if (!Array.isArray(
|
|
427
|
-
var w = D(
|
|
428
|
-
return new
|
|
424
|
+
return new N("Property `" + v + "` of component `" + y + "` has invalid PropType notation inside arrayOf.");
|
|
425
|
+
var _ = g[b];
|
|
426
|
+
if (!Array.isArray(_)) {
|
|
427
|
+
var w = D(_);
|
|
428
|
+
return new N("Invalid " + T + " `" + v + "` of type " + ("`" + w + "` supplied to `" + y + "`, expected an array."));
|
|
429
429
|
}
|
|
430
|
-
for (var
|
|
431
|
-
var S = o(
|
|
430
|
+
for (var P = 0; P < _.length; P++) {
|
|
431
|
+
var S = o(_, P, y, T, v + "[" + P + "]", s);
|
|
432
432
|
if (S instanceof Error)
|
|
433
433
|
return S;
|
|
434
434
|
}
|
|
435
435
|
return null;
|
|
436
436
|
}
|
|
437
|
-
return
|
|
437
|
+
return $(u);
|
|
438
438
|
}
|
|
439
439
|
function j() {
|
|
440
|
-
function o(u,
|
|
441
|
-
var v = u[
|
|
440
|
+
function o(u, g, b, y, T) {
|
|
441
|
+
var v = u[g];
|
|
442
442
|
if (!i(v)) {
|
|
443
|
-
var
|
|
444
|
-
return new
|
|
443
|
+
var _ = D(v);
|
|
444
|
+
return new N("Invalid " + y + " `" + T + "` of type " + ("`" + _ + "` supplied to `" + b + "`, expected a single ReactElement."));
|
|
445
445
|
}
|
|
446
446
|
return null;
|
|
447
447
|
}
|
|
448
|
-
return
|
|
448
|
+
return $(o);
|
|
449
449
|
}
|
|
450
|
-
function
|
|
451
|
-
function o(u,
|
|
452
|
-
var v = u[
|
|
450
|
+
function c() {
|
|
451
|
+
function o(u, g, b, y, T) {
|
|
452
|
+
var v = u[g];
|
|
453
453
|
if (!e.isValidElementType(v)) {
|
|
454
|
-
var
|
|
455
|
-
return new
|
|
454
|
+
var _ = D(v);
|
|
455
|
+
return new N("Invalid " + y + " `" + T + "` of type " + ("`" + _ + "` supplied to `" + b + "`, expected a single ReactElement type."));
|
|
456
456
|
}
|
|
457
457
|
return null;
|
|
458
458
|
}
|
|
459
|
-
return
|
|
459
|
+
return $(o);
|
|
460
460
|
}
|
|
461
461
|
function Y(o) {
|
|
462
|
-
function u(
|
|
463
|
-
if (!(
|
|
464
|
-
var
|
|
465
|
-
return new
|
|
462
|
+
function u(g, b, y, T, v) {
|
|
463
|
+
if (!(g[b] instanceof o)) {
|
|
464
|
+
var _ = o.name || O, w = oe(g[b]);
|
|
465
|
+
return new N("Invalid " + T + " `" + v + "` of type " + ("`" + w + "` supplied to `" + y + "`, expected ") + ("instance of `" + _ + "`."));
|
|
466
466
|
}
|
|
467
467
|
return null;
|
|
468
468
|
}
|
|
469
|
-
return
|
|
469
|
+
return $(u);
|
|
470
470
|
}
|
|
471
471
|
function G(o) {
|
|
472
472
|
if (!Array.isArray(o))
|
|
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
|
-
) : r("Invalid argument supplied to oneOf, expected an array.")),
|
|
476
|
-
function u(
|
|
477
|
-
for (var
|
|
478
|
-
if (I(
|
|
475
|
+
) : r("Invalid argument supplied to oneOf, expected an array.")), f;
|
|
476
|
+
function u(g, b, y, T, v) {
|
|
477
|
+
for (var _ = g[b], w = 0; w < o.length; w++)
|
|
478
|
+
if (I(_, o[w]))
|
|
479
479
|
return null;
|
|
480
|
-
var
|
|
481
|
-
var W = U(
|
|
482
|
-
return W === "symbol" ? String(
|
|
480
|
+
var P = JSON.stringify(o, function(L, l) {
|
|
481
|
+
var W = U(l);
|
|
482
|
+
return W === "symbol" ? String(l) : l;
|
|
483
483
|
});
|
|
484
|
-
return new
|
|
484
|
+
return new N("Invalid " + T + " `" + v + "` of value `" + String(_) + "` " + ("supplied to `" + y + "`, expected one of " + P + "."));
|
|
485
485
|
}
|
|
486
|
-
return
|
|
486
|
+
return $(u);
|
|
487
487
|
}
|
|
488
488
|
function Q(o) {
|
|
489
|
-
function u(
|
|
489
|
+
function u(g, b, y, T, v) {
|
|
490
490
|
if (typeof o != "function")
|
|
491
|
-
return new
|
|
492
|
-
var
|
|
491
|
+
return new N("Property `" + v + "` of component `" + y + "` has invalid PropType notation inside objectOf.");
|
|
492
|
+
var _ = g[b], w = D(_);
|
|
493
493
|
if (w !== "object")
|
|
494
|
-
return new
|
|
495
|
-
for (var
|
|
496
|
-
if (n(
|
|
497
|
-
var S = o(
|
|
494
|
+
return new N("Invalid " + T + " `" + v + "` of type " + ("`" + w + "` supplied to `" + y + "`, expected an object."));
|
|
495
|
+
for (var P in _)
|
|
496
|
+
if (n(_, P)) {
|
|
497
|
+
var S = o(_, P, y, T, v + "." + P, s);
|
|
498
498
|
if (S instanceof Error)
|
|
499
499
|
return S;
|
|
500
500
|
}
|
|
501
501
|
return null;
|
|
502
502
|
}
|
|
503
|
-
return
|
|
503
|
+
return $(u);
|
|
504
504
|
}
|
|
505
505
|
function ee(o) {
|
|
506
506
|
if (!Array.isArray(o))
|
|
507
|
-
return process.env.NODE_ENV !== "production" && r("Invalid argument supplied to oneOfType, expected an instance of array."),
|
|
507
|
+
return process.env.NODE_ENV !== "production" && r("Invalid argument supplied to oneOfType, expected an instance of array."), f;
|
|
508
508
|
for (var u = 0; u < o.length; u++) {
|
|
509
|
-
var
|
|
510
|
-
if (typeof
|
|
509
|
+
var g = o[u];
|
|
510
|
+
if (typeof g != "function")
|
|
511
511
|
return r(
|
|
512
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + H(
|
|
513
|
-
),
|
|
512
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + H(g) + " at index " + u + "."
|
|
513
|
+
), f;
|
|
514
514
|
}
|
|
515
|
-
function
|
|
516
|
-
for (var
|
|
517
|
-
var L = o[S],
|
|
518
|
-
if (
|
|
515
|
+
function b(y, T, v, _, w) {
|
|
516
|
+
for (var P = [], S = 0; S < o.length; S++) {
|
|
517
|
+
var L = o[S], l = L(y, T, v, _, w, s);
|
|
518
|
+
if (l == null)
|
|
519
519
|
return null;
|
|
520
|
-
|
|
520
|
+
l.data && n(l.data, "expectedType") && P.push(l.data.expectedType);
|
|
521
521
|
}
|
|
522
|
-
var W =
|
|
523
|
-
return new
|
|
522
|
+
var W = P.length > 0 ? ", expected one of type [" + P.join(", ") + "]" : "";
|
|
523
|
+
return new N("Invalid " + _ + " `" + w + "` supplied to " + ("`" + v + "`" + W + "."));
|
|
524
524
|
}
|
|
525
|
-
return
|
|
525
|
+
return $(b);
|
|
526
526
|
}
|
|
527
527
|
function re() {
|
|
528
|
-
function o(u,
|
|
529
|
-
return z(u[
|
|
528
|
+
function o(u, g, b, y, T) {
|
|
529
|
+
return z(u[g]) ? null : new N("Invalid " + y + " `" + T + "` supplied to " + ("`" + b + "`, expected a ReactNode."));
|
|
530
530
|
}
|
|
531
|
-
return
|
|
531
|
+
return $(o);
|
|
532
532
|
}
|
|
533
|
-
function V(o, u,
|
|
534
|
-
return new
|
|
535
|
-
(o || "React class") + ": " + u + " type `" +
|
|
533
|
+
function V(o, u, g, b, y) {
|
|
534
|
+
return new N(
|
|
535
|
+
(o || "React class") + ": " + u + " type `" + g + "." + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + y + "`."
|
|
536
536
|
);
|
|
537
537
|
}
|
|
538
538
|
function te(o) {
|
|
539
|
-
function u(
|
|
540
|
-
var
|
|
539
|
+
function u(g, b, y, T, v) {
|
|
540
|
+
var _ = g[b], w = D(_);
|
|
541
541
|
if (w !== "object")
|
|
542
|
-
return new
|
|
543
|
-
for (var
|
|
544
|
-
var S = o[
|
|
542
|
+
return new N("Invalid " + T + " `" + v + "` of type `" + w + "` " + ("supplied to `" + y + "`, expected `object`."));
|
|
543
|
+
for (var P in o) {
|
|
544
|
+
var S = o[P];
|
|
545
545
|
if (typeof S != "function")
|
|
546
|
-
return V(
|
|
547
|
-
var L = S(
|
|
546
|
+
return V(y, T, v, P, U(S));
|
|
547
|
+
var L = S(_, P, y, T, v + "." + P, s);
|
|
548
548
|
if (L)
|
|
549
549
|
return L;
|
|
550
550
|
}
|
|
551
551
|
return null;
|
|
552
552
|
}
|
|
553
|
-
return
|
|
553
|
+
return $(u);
|
|
554
554
|
}
|
|
555
555
|
function ne(o) {
|
|
556
|
-
function u(
|
|
557
|
-
var
|
|
556
|
+
function u(g, b, y, T, v) {
|
|
557
|
+
var _ = g[b], w = D(_);
|
|
558
558
|
if (w !== "object")
|
|
559
|
-
return new
|
|
560
|
-
var
|
|
561
|
-
for (var S in
|
|
559
|
+
return new N("Invalid " + T + " `" + v + "` of type `" + w + "` " + ("supplied to `" + y + "`, expected `object`."));
|
|
560
|
+
var P = t({}, g[b], o);
|
|
561
|
+
for (var S in P) {
|
|
562
562
|
var L = o[S];
|
|
563
563
|
if (n(o, S) && typeof L != "function")
|
|
564
|
-
return V(
|
|
564
|
+
return V(y, T, v, S, U(L));
|
|
565
565
|
if (!L)
|
|
566
|
-
return new
|
|
567
|
-
"Invalid " + T + " `" + v + "` key `" + S + "` supplied to `" +
|
|
566
|
+
return new N(
|
|
567
|
+
"Invalid " + T + " `" + v + "` key `" + S + "` supplied to `" + y + "`.\nBad object: " + JSON.stringify(g[b], null, " ") + `
|
|
568
568
|
Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
|
|
569
569
|
);
|
|
570
|
-
var
|
|
571
|
-
if (
|
|
572
|
-
return
|
|
570
|
+
var l = L(_, S, y, T, v + "." + S, s);
|
|
571
|
+
if (l)
|
|
572
|
+
return l;
|
|
573
573
|
}
|
|
574
574
|
return null;
|
|
575
575
|
}
|
|
576
|
-
return
|
|
576
|
+
return $(u);
|
|
577
577
|
}
|
|
578
578
|
function z(o) {
|
|
579
579
|
switch (typeof o) {
|
|
@@ -588,17 +588,17 @@ Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
|
|
|
588
588
|
return o.every(z);
|
|
589
589
|
if (o === null || i(o))
|
|
590
590
|
return !0;
|
|
591
|
-
var u =
|
|
591
|
+
var u = E(o);
|
|
592
592
|
if (u) {
|
|
593
|
-
var
|
|
593
|
+
var g = u.call(o), b;
|
|
594
594
|
if (u !== o.entries) {
|
|
595
|
-
for (; !(
|
|
596
|
-
if (!z(
|
|
595
|
+
for (; !(b = g.next()).done; )
|
|
596
|
+
if (!z(b.value))
|
|
597
597
|
return !1;
|
|
598
598
|
} else
|
|
599
|
-
for (; !(
|
|
600
|
-
var
|
|
601
|
-
if (
|
|
599
|
+
for (; !(b = g.next()).done; ) {
|
|
600
|
+
var y = b.value;
|
|
601
|
+
if (y && !z(y[1]))
|
|
602
602
|
return !1;
|
|
603
603
|
}
|
|
604
604
|
} else
|
|
@@ -642,7 +642,7 @@ Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
|
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
644
|
function oe(o) {
|
|
645
|
-
return !o.constructor || !o.constructor.name ?
|
|
645
|
+
return !o.constructor || !o.constructor.name ? O : o.constructor.name;
|
|
646
646
|
}
|
|
647
647
|
return A.checkPropTypes = a, A.resetWarningCache = a.resetWarningCache, A.PropTypes = A, A;
|
|
648
648
|
}, pe;
|
|
@@ -657,12 +657,12 @@ function Ve() {
|
|
|
657
657
|
function s() {
|
|
658
658
|
}
|
|
659
659
|
return s.resetWarningCache = t, de = function() {
|
|
660
|
-
function n(
|
|
661
|
-
if (
|
|
662
|
-
var
|
|
660
|
+
function n(f, i, m, h, d, E) {
|
|
661
|
+
if (E !== e) {
|
|
662
|
+
var O = new Error(
|
|
663
663
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
664
664
|
);
|
|
665
|
-
throw
|
|
665
|
+
throw O.name = "Invariant Violation", O;
|
|
666
666
|
}
|
|
667
667
|
}
|
|
668
668
|
n.isRequired = n;
|
|
@@ -706,10 +706,10 @@ function He() {
|
|
|
706
706
|
return Z.exports;
|
|
707
707
|
}
|
|
708
708
|
var Je = /* @__PURE__ */ He();
|
|
709
|
-
const X = /* @__PURE__ */
|
|
709
|
+
const X = /* @__PURE__ */ ke(Je), Ze = ({ content: e, title: t, className: s, id: n = "accordion" }) => {
|
|
710
710
|
const a = M("rpf-accordion", s);
|
|
711
|
-
return /* @__PURE__ */
|
|
712
|
-
/* @__PURE__ */
|
|
711
|
+
return /* @__PURE__ */ x("details", { className: a, id: `${n}`, children: [
|
|
712
|
+
/* @__PURE__ */ x("summary", { className: "rpf-accordion__title", role: "button", children: [
|
|
713
713
|
t,
|
|
714
714
|
/* @__PURE__ */ p("span", { className: "rpf-accordion__icon" })
|
|
715
715
|
] }),
|
|
@@ -729,29 +729,29 @@ const B = ({
|
|
|
729
729
|
className: n,
|
|
730
730
|
type: a = "primary",
|
|
731
731
|
variant: r = "",
|
|
732
|
-
size:
|
|
732
|
+
size: f = "default",
|
|
733
733
|
icon: i = "",
|
|
734
|
-
iconOnly:
|
|
734
|
+
iconOnly: m = !1,
|
|
735
735
|
iconPosition: h = "left",
|
|
736
|
-
fullWidth:
|
|
737
|
-
disabled:
|
|
738
|
-
onClick:
|
|
736
|
+
fullWidth: d = !1,
|
|
737
|
+
disabled: E = !1,
|
|
738
|
+
onClick: O = () => {
|
|
739
739
|
},
|
|
740
740
|
"aria-label": A = "",
|
|
741
741
|
linkComponent: I
|
|
742
742
|
// to pass in react-router-dom Link component
|
|
743
743
|
}) => {
|
|
744
|
-
const
|
|
744
|
+
const N = i && m, $ = M(
|
|
745
745
|
// Static classes
|
|
746
746
|
"rpf-button",
|
|
747
747
|
// Conditional classes
|
|
748
748
|
{
|
|
749
749
|
[`rpf-button--${a}`]: a,
|
|
750
750
|
"rpf-button--danger": r === "danger",
|
|
751
|
-
"rpf-button--sm":
|
|
752
|
-
"rpf-button--icon-only":
|
|
753
|
-
"rpf-button--full-width":
|
|
754
|
-
disabled:
|
|
751
|
+
"rpf-button--sm": f === "small",
|
|
752
|
+
"rpf-button--icon-only": N,
|
|
753
|
+
"rpf-button--full-width": d,
|
|
754
|
+
disabled: E
|
|
755
755
|
},
|
|
756
756
|
n
|
|
757
757
|
);
|
|
@@ -759,27 +759,27 @@ const B = ({
|
|
|
759
759
|
Le.isValidElement(i) ? (q += " icon", console.warn(
|
|
760
760
|
"DEPRECATED: icons as React elements will not be supported in future releases"
|
|
761
761
|
)) : q += " material-symbols-sharp";
|
|
762
|
-
const F = (
|
|
762
|
+
const F = (c, Y) => !Y || h !== c ? null : typeof Y == "string" ? /* @__PURE__ */ p("span", { className: q, children: Y }) : Y, k = () => e && !N && /* @__PURE__ */ p("span", { className: "text", children: e }), j = /* @__PURE__ */ x(me, { children: [
|
|
763
763
|
F("left", i),
|
|
764
|
-
|
|
764
|
+
k(),
|
|
765
765
|
F("right", i)
|
|
766
766
|
] });
|
|
767
767
|
return t ? /* @__PURE__ */ p(
|
|
768
768
|
I || "a",
|
|
769
769
|
{
|
|
770
|
-
className:
|
|
770
|
+
className: $,
|
|
771
771
|
...I ? { to: t } : { href: t, role: "button" },
|
|
772
|
-
onClick:
|
|
772
|
+
onClick: O,
|
|
773
773
|
"aria-label": A,
|
|
774
774
|
children: j
|
|
775
775
|
}
|
|
776
776
|
) : /* @__PURE__ */ p(
|
|
777
777
|
"button",
|
|
778
778
|
{
|
|
779
|
-
className:
|
|
779
|
+
className: $,
|
|
780
780
|
title: s,
|
|
781
|
-
onClick:
|
|
782
|
-
disabled:
|
|
781
|
+
onClick: O,
|
|
782
|
+
disabled: E,
|
|
783
783
|
"aria-label": A,
|
|
784
784
|
children: j
|
|
785
785
|
}
|
|
@@ -791,25 +791,25 @@ const B = ({
|
|
|
791
791
|
children: n,
|
|
792
792
|
type: a,
|
|
793
793
|
actions: r,
|
|
794
|
-
onClose:
|
|
795
|
-
}) => /* @__PURE__ */
|
|
796
|
-
/* @__PURE__ */
|
|
794
|
+
onClose: f
|
|
795
|
+
}) => /* @__PURE__ */ x("div", { className: `rpf-alert rpf-alert--${a}`, children: [
|
|
796
|
+
/* @__PURE__ */ x("div", { className: "rpf-alert__header", children: [
|
|
797
797
|
/* @__PURE__ */ p("span", { className: "rpf-alert__icon material-symbols-sharp" }),
|
|
798
798
|
s ? /* @__PURE__ */ p("div", { className: "rpf-alert__title", children: s }) : e ? /* @__PURE__ */ p("p", { className: "rpf-alert__title", children: e }) : null,
|
|
799
|
-
!!
|
|
799
|
+
!!f && /* @__PURE__ */ p("div", { className: "rpf-alert__close", children: /* @__PURE__ */ p(
|
|
800
800
|
B,
|
|
801
801
|
{
|
|
802
802
|
type: "tertiary",
|
|
803
803
|
icon: "close",
|
|
804
804
|
size: "small",
|
|
805
805
|
iconOnly: !0,
|
|
806
|
-
onClick:
|
|
806
|
+
onClick: f
|
|
807
807
|
}
|
|
808
808
|
) })
|
|
809
809
|
] }),
|
|
810
|
-
(t || n || r) && /* @__PURE__ */
|
|
810
|
+
(t || n || r) && /* @__PURE__ */ x("div", { className: "rpf-alert__body", children: [
|
|
811
811
|
t ? /* @__PURE__ */ p("p", { children: t }) : n ? /* @__PURE__ */ p("div", { children: n }) : null,
|
|
812
|
-
r && r.length > 0 && /* @__PURE__ */ p("div", { className: "rpf-alert__actions", children: r.map((i,
|
|
812
|
+
r && r.length > 0 && /* @__PURE__ */ p("div", { className: "rpf-alert__actions", children: r.map((i, m) => /* @__PURE__ */ p(
|
|
813
813
|
B,
|
|
814
814
|
{
|
|
815
815
|
text: i.label,
|
|
@@ -818,57 +818,44 @@ const B = ({
|
|
|
818
818
|
href: i.href,
|
|
819
819
|
onClick: i.onClick
|
|
820
820
|
},
|
|
821
|
-
|
|
821
|
+
m
|
|
822
822
|
)) })
|
|
823
823
|
] })
|
|
824
824
|
] }), pr = ({
|
|
825
|
-
|
|
826
|
-
|
|
825
|
+
label: e,
|
|
826
|
+
id: t,
|
|
827
827
|
name: s,
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
type: "checkbox",
|
|
853
|
-
value: i
|
|
854
|
-
}
|
|
855
|
-
),
|
|
856
|
-
t
|
|
857
|
-
]
|
|
858
|
-
}
|
|
859
|
-
),
|
|
860
|
-
r && /* @__PURE__ */ P("div", { className: "rpf-error-message", children: [
|
|
861
|
-
/* @__PURE__ */ p("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
|
|
862
|
-
r
|
|
863
|
-
] })
|
|
864
|
-
] }), dr = ({
|
|
828
|
+
error: n = "",
|
|
829
|
+
...a
|
|
830
|
+
}) => {
|
|
831
|
+
const { className: r, ...f } = a;
|
|
832
|
+
return /* @__PURE__ */ x(me, { children: [
|
|
833
|
+
/* @__PURE__ */ x(
|
|
834
|
+
"label",
|
|
835
|
+
{
|
|
836
|
+
className: M("rpf-input-checkbox", {
|
|
837
|
+
"rpf-input-checkbox--error": n,
|
|
838
|
+
className: r
|
|
839
|
+
}),
|
|
840
|
+
children: [
|
|
841
|
+
/* @__PURE__ */ p("input", { id: t, name: s, type: "checkbox", ...f }),
|
|
842
|
+
e
|
|
843
|
+
]
|
|
844
|
+
}
|
|
845
|
+
),
|
|
846
|
+
n && /* @__PURE__ */ x("div", { className: "rpf-error-message", children: [
|
|
847
|
+
/* @__PURE__ */ p("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
|
|
848
|
+
n
|
|
849
|
+
] })
|
|
850
|
+
] });
|
|
851
|
+
}, dr = ({
|
|
865
852
|
disabled: e = !1,
|
|
866
853
|
errorText: t = "",
|
|
867
854
|
fullWidth: s = !1,
|
|
868
855
|
legendText: n,
|
|
869
856
|
legendHintText: a = "",
|
|
870
857
|
children: r
|
|
871
|
-
}) => /* @__PURE__ */
|
|
858
|
+
}) => /* @__PURE__ */ x(
|
|
872
859
|
"fieldset",
|
|
873
860
|
{
|
|
874
861
|
className: M("rpf-fieldset", {
|
|
@@ -878,12 +865,12 @@ const B = ({
|
|
|
878
865
|
}),
|
|
879
866
|
disabled: e,
|
|
880
867
|
children: [
|
|
881
|
-
/* @__PURE__ */
|
|
868
|
+
/* @__PURE__ */ x("legend", { className: "rpf-label", children: [
|
|
882
869
|
n,
|
|
883
870
|
a.length > 0 ? /* @__PURE__ */ p("small", { className: "rpf-label__hint", children: a }) : null
|
|
884
871
|
] }),
|
|
885
872
|
/* @__PURE__ */ p("div", { className: "rpf-fieldset__inputs", children: r }),
|
|
886
|
-
t.length > 0 ? /* @__PURE__ */
|
|
873
|
+
t.length > 0 ? /* @__PURE__ */ x("div", { className: "rpf-error-message", children: [
|
|
887
874
|
/* @__PURE__ */ p("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
|
|
888
875
|
t
|
|
889
876
|
] }) : null
|
|
@@ -896,8 +883,8 @@ const B = ({
|
|
|
896
883
|
disabled: n = !1,
|
|
897
884
|
error: a = "",
|
|
898
885
|
hint: r = ""
|
|
899
|
-
}) => /* @__PURE__ */
|
|
900
|
-
(t || r) && /* @__PURE__ */
|
|
886
|
+
}) => /* @__PURE__ */ x("div", { className: "rpf-input-field", children: [
|
|
887
|
+
(t || r) && /* @__PURE__ */ x(
|
|
901
888
|
"label",
|
|
902
889
|
{
|
|
903
890
|
htmlFor: e,
|
|
@@ -911,7 +898,7 @@ const B = ({
|
|
|
911
898
|
}
|
|
912
899
|
),
|
|
913
900
|
s,
|
|
914
|
-
a && /* @__PURE__ */
|
|
901
|
+
a && /* @__PURE__ */ x("div", { className: "rpf-error-message", children: [
|
|
915
902
|
/* @__PURE__ */ p("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
|
|
916
903
|
a
|
|
917
904
|
] })
|
|
@@ -920,7 +907,7 @@ const B = ({
|
|
|
920
907
|
inputFieldId: t,
|
|
921
908
|
disabled: s = !1,
|
|
922
909
|
hint: n = ""
|
|
923
|
-
}) => /* @__PURE__ */ p("div", { className: "rpf-label", children: /* @__PURE__ */
|
|
910
|
+
}) => /* @__PURE__ */ p("div", { className: "rpf-label", children: /* @__PURE__ */ x(
|
|
924
911
|
"label",
|
|
925
912
|
{
|
|
926
913
|
htmlFor: t,
|
|
@@ -933,36 +920,21 @@ const B = ({
|
|
|
933
920
|
]
|
|
934
921
|
}
|
|
935
922
|
) }), mr = ({
|
|
936
|
-
|
|
937
|
-
|
|
923
|
+
label: e,
|
|
924
|
+
id: t,
|
|
938
925
|
name: s,
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
onChange: c = () => {
|
|
943
|
-
},
|
|
944
|
-
value: i = ""
|
|
945
|
-
}) => /* @__PURE__ */ P(
|
|
926
|
+
fullWidth: n = !1,
|
|
927
|
+
...a
|
|
928
|
+
}) => /* @__PURE__ */ x(
|
|
946
929
|
"label",
|
|
947
930
|
{
|
|
948
931
|
className: M("rpf-input-radio", {
|
|
949
|
-
"rpf-input-radio--disabled": a,
|
|
950
|
-
"rpf-input--full-width":
|
|
932
|
+
"rpf-input-radio--disabled": a.disabled,
|
|
933
|
+
"rpf-input--full-width": n
|
|
951
934
|
}),
|
|
952
935
|
children: [
|
|
953
|
-
/* @__PURE__ */ p(
|
|
954
|
-
|
|
955
|
-
{
|
|
956
|
-
checked: !!n,
|
|
957
|
-
disabled: a,
|
|
958
|
-
id: e,
|
|
959
|
-
name: s,
|
|
960
|
-
onChange: c,
|
|
961
|
-
type: "radio",
|
|
962
|
-
value: i
|
|
963
|
-
}
|
|
964
|
-
),
|
|
965
|
-
t
|
|
936
|
+
/* @__PURE__ */ p("input", { type: "radio", id: t, name: s, ...a }),
|
|
937
|
+
e
|
|
966
938
|
]
|
|
967
939
|
}
|
|
968
940
|
), hr = ({
|
|
@@ -972,13 +944,13 @@ const B = ({
|
|
|
972
944
|
error: n = "",
|
|
973
945
|
hint: a = "",
|
|
974
946
|
placeholder: r = "",
|
|
975
|
-
defaultValue:
|
|
947
|
+
defaultValue: f = "",
|
|
976
948
|
onClick: i = () => {
|
|
977
949
|
},
|
|
978
|
-
onChange:
|
|
950
|
+
onChange: m = () => {
|
|
979
951
|
}
|
|
980
|
-
}) => /* @__PURE__ */ p("search", { children: /* @__PURE__ */
|
|
981
|
-
/* @__PURE__ */
|
|
952
|
+
}) => /* @__PURE__ */ p("search", { children: /* @__PURE__ */ x("form", { className: "rpf-input-field", onSubmit: i, children: [
|
|
953
|
+
/* @__PURE__ */ x(
|
|
982
954
|
"label",
|
|
983
955
|
{
|
|
984
956
|
htmlFor: t,
|
|
@@ -991,7 +963,7 @@ const B = ({
|
|
|
991
963
|
]
|
|
992
964
|
}
|
|
993
965
|
),
|
|
994
|
-
/* @__PURE__ */
|
|
966
|
+
/* @__PURE__ */ x("div", { className: "rpf-input-search-container", children: [
|
|
995
967
|
/* @__PURE__ */ p(
|
|
996
968
|
"input",
|
|
997
969
|
{
|
|
@@ -1004,9 +976,9 @@ const B = ({
|
|
|
1004
976
|
name: "search",
|
|
1005
977
|
type: "search",
|
|
1006
978
|
"aria-label": "Search",
|
|
1007
|
-
defaultValue:
|
|
979
|
+
defaultValue: f,
|
|
1008
980
|
placeholder: r,
|
|
1009
|
-
onChange:
|
|
981
|
+
onChange: m
|
|
1010
982
|
}
|
|
1011
983
|
),
|
|
1012
984
|
/* @__PURE__ */ p(
|
|
@@ -1023,7 +995,7 @@ const B = ({
|
|
|
1023
995
|
}
|
|
1024
996
|
)
|
|
1025
997
|
] }),
|
|
1026
|
-
n && /* @__PURE__ */
|
|
998
|
+
n && /* @__PURE__ */ x("div", { className: "rpf-error-message", children: [
|
|
1027
999
|
/* @__PURE__ */ p("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "info" }),
|
|
1028
1000
|
n
|
|
1029
1001
|
] })
|
|
@@ -1034,12 +1006,13 @@ const B = ({
|
|
|
1034
1006
|
options: n,
|
|
1035
1007
|
disabled: a = !1,
|
|
1036
1008
|
error: r = "",
|
|
1037
|
-
fullWidth:
|
|
1009
|
+
fullWidth: f = !1,
|
|
1038
1010
|
hint: i = "",
|
|
1039
|
-
onChange:
|
|
1011
|
+
onChange: m = () => {
|
|
1040
1012
|
},
|
|
1041
1013
|
placeholder: h = "",
|
|
1042
|
-
value:
|
|
1014
|
+
value: d = "",
|
|
1015
|
+
...E
|
|
1043
1016
|
}) => /* @__PURE__ */ p(
|
|
1044
1017
|
ve,
|
|
1045
1018
|
{
|
|
@@ -1048,21 +1021,22 @@ const B = ({
|
|
|
1048
1021
|
error: r,
|
|
1049
1022
|
hint: i,
|
|
1050
1023
|
label: t,
|
|
1051
|
-
children: /* @__PURE__ */
|
|
1024
|
+
children: /* @__PURE__ */ x(
|
|
1052
1025
|
"select",
|
|
1053
1026
|
{
|
|
1054
1027
|
className: M("rpf-input rpf-input-select", {
|
|
1055
1028
|
"rpf-input--error": r,
|
|
1056
|
-
"rpf-input--full-width":
|
|
1029
|
+
"rpf-input--full-width": f
|
|
1057
1030
|
}),
|
|
1058
1031
|
disabled: a,
|
|
1059
1032
|
id: e,
|
|
1060
1033
|
name: s,
|
|
1061
|
-
onChange:
|
|
1062
|
-
value:
|
|
1034
|
+
onChange: m,
|
|
1035
|
+
value: d,
|
|
1036
|
+
...E,
|
|
1063
1037
|
children: [
|
|
1064
|
-
!
|
|
1065
|
-
n.map((
|
|
1038
|
+
!d && !!h && /* @__PURE__ */ p("option", { value: "", disabled: !0, children: h }),
|
|
1039
|
+
n.map((O) => /* @__PURE__ */ p("option", { value: O.key, children: O.value }, O.key))
|
|
1066
1040
|
]
|
|
1067
1041
|
}
|
|
1068
1042
|
)
|
|
@@ -1074,9 +1048,9 @@ const B = ({
|
|
|
1074
1048
|
value: n,
|
|
1075
1049
|
disabled: a = !1,
|
|
1076
1050
|
readOnly: r = !1,
|
|
1077
|
-
error:
|
|
1051
|
+
error: f = "",
|
|
1078
1052
|
fullWidth: i = !1,
|
|
1079
|
-
hint:
|
|
1053
|
+
hint: m = "",
|
|
1080
1054
|
onChange: h = () => {
|
|
1081
1055
|
}
|
|
1082
1056
|
}) => /* @__PURE__ */ p(
|
|
@@ -1084,14 +1058,14 @@ const B = ({
|
|
|
1084
1058
|
{
|
|
1085
1059
|
id: e,
|
|
1086
1060
|
disabled: a,
|
|
1087
|
-
error:
|
|
1088
|
-
hint:
|
|
1061
|
+
error: f,
|
|
1062
|
+
hint: m,
|
|
1089
1063
|
label: t,
|
|
1090
1064
|
children: /* @__PURE__ */ p(
|
|
1091
1065
|
"textarea",
|
|
1092
1066
|
{
|
|
1093
1067
|
className: M("rpf-input rpf-input-textarea", {
|
|
1094
|
-
"rpf-input--error":
|
|
1068
|
+
"rpf-input--error": f,
|
|
1095
1069
|
"rpf-input--full-width": i,
|
|
1096
1070
|
"rpf-input--disabled": a
|
|
1097
1071
|
}),
|
|
@@ -1106,36 +1080,32 @@ const B = ({
|
|
|
1106
1080
|
}
|
|
1107
1081
|
), _r = ({
|
|
1108
1082
|
id: e,
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
onChange: d = () => {
|
|
1117
|
-
}
|
|
1083
|
+
name: t,
|
|
1084
|
+
label: s,
|
|
1085
|
+
error: n = "",
|
|
1086
|
+
fullWidth: a = !1,
|
|
1087
|
+
hint: r = "",
|
|
1088
|
+
type: f = "text",
|
|
1089
|
+
...i
|
|
1118
1090
|
}) => /* @__PURE__ */ p(
|
|
1119
1091
|
ve,
|
|
1120
1092
|
{
|
|
1121
1093
|
id: e,
|
|
1122
|
-
disabled:
|
|
1123
|
-
error:
|
|
1124
|
-
hint:
|
|
1125
|
-
label:
|
|
1094
|
+
disabled: i.disabled,
|
|
1095
|
+
error: n,
|
|
1096
|
+
hint: r,
|
|
1097
|
+
label: s,
|
|
1126
1098
|
children: /* @__PURE__ */ p(
|
|
1127
1099
|
"input",
|
|
1128
1100
|
{
|
|
1129
1101
|
className: M("rpf-input rpf-input-text", {
|
|
1130
|
-
"rpf-input--error":
|
|
1131
|
-
"rpf-input--full-width":
|
|
1102
|
+
"rpf-input--error": n,
|
|
1103
|
+
"rpf-input--full-width": a
|
|
1132
1104
|
}),
|
|
1133
|
-
disabled: a,
|
|
1134
1105
|
id: e,
|
|
1135
|
-
name:
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
value: n
|
|
1106
|
+
name: t,
|
|
1107
|
+
type: f,
|
|
1108
|
+
...i
|
|
1139
1109
|
}
|
|
1140
1110
|
)
|
|
1141
1111
|
}
|
|
@@ -1148,19 +1118,19 @@ function Ke(e, t) {
|
|
|
1148
1118
|
}, [e]), se(() => {
|
|
1149
1119
|
const a = s.current;
|
|
1150
1120
|
if (!a) return;
|
|
1151
|
-
const r = () => t(!1),
|
|
1121
|
+
const r = () => t(!1), f = (i) => {
|
|
1152
1122
|
i.preventDefault(), t(!1);
|
|
1153
1123
|
};
|
|
1154
|
-
return a.addEventListener("close", r), a.addEventListener("cancel",
|
|
1155
|
-
a.removeEventListener("close", r), a.removeEventListener("cancel",
|
|
1124
|
+
return a.addEventListener("close", r), a.addEventListener("cancel", f), () => {
|
|
1125
|
+
a.removeEventListener("close", r), a.removeEventListener("cancel", f);
|
|
1156
1126
|
};
|
|
1157
1127
|
}, [t]), se(() => {
|
|
1158
1128
|
const a = s.current, r = n.current;
|
|
1159
1129
|
if (!a || !r) return;
|
|
1160
|
-
const
|
|
1130
|
+
const f = (i) => {
|
|
1161
1131
|
e && !r.contains(i.target) && t(!1);
|
|
1162
1132
|
};
|
|
1163
|
-
return a.addEventListener("mousedown",
|
|
1133
|
+
return a.addEventListener("mousedown", f), () => a.removeEventListener("mousedown", f);
|
|
1164
1134
|
}, [e, t]), { dialogRef: s, contentRef: n };
|
|
1165
1135
|
}
|
|
1166
1136
|
const gr = ({
|
|
@@ -1170,16 +1140,16 @@ const gr = ({
|
|
|
1170
1140
|
children: n,
|
|
1171
1141
|
primaryButtonLink: a,
|
|
1172
1142
|
primaryButtonText: r,
|
|
1173
|
-
onClickPrimaryButton:
|
|
1143
|
+
onClickPrimaryButton: f,
|
|
1174
1144
|
secondaryButtonText: i,
|
|
1175
|
-
secondaryButtonLink:
|
|
1145
|
+
secondaryButtonLink: m,
|
|
1176
1146
|
onClickSecondaryButton: h,
|
|
1177
|
-
tertiaryButtonText:
|
|
1178
|
-
tertiaryButtonLink:
|
|
1179
|
-
onClickTertiaryButton:
|
|
1147
|
+
tertiaryButtonText: d,
|
|
1148
|
+
tertiaryButtonLink: E,
|
|
1149
|
+
onClickTertiaryButton: O,
|
|
1180
1150
|
showCloseButton: A = !0
|
|
1181
1151
|
}) => {
|
|
1182
|
-
const { dialogRef: I, contentRef:
|
|
1152
|
+
const { dialogRef: I, contentRef: N } = Ke(e, t);
|
|
1183
1153
|
return /* @__PURE__ */ p(
|
|
1184
1154
|
"dialog",
|
|
1185
1155
|
{
|
|
@@ -1187,8 +1157,8 @@ const gr = ({
|
|
|
1187
1157
|
className: "rpf-modal",
|
|
1188
1158
|
"aria-labelledby": "modal-heading",
|
|
1189
1159
|
"aria-describedby": "modal-description",
|
|
1190
|
-
children: /* @__PURE__ */
|
|
1191
|
-
/* @__PURE__ */
|
|
1160
|
+
children: /* @__PURE__ */ x("div", { ref: N, className: "rpf-modal__wrapper", children: [
|
|
1161
|
+
/* @__PURE__ */ x("div", { className: "rpf-modal__header", children: [
|
|
1192
1162
|
/* @__PURE__ */ p("h2", { className: "rpf-modal__title", id: "modal-heading", children: s }),
|
|
1193
1163
|
A && /* @__PURE__ */ p(
|
|
1194
1164
|
B,
|
|
@@ -1202,13 +1172,13 @@ const gr = ({
|
|
|
1202
1172
|
)
|
|
1203
1173
|
] }),
|
|
1204
1174
|
/* @__PURE__ */ p("div", { id: "modal-description", className: "rpf-modal__content", tabIndex: 0, children: n }),
|
|
1205
|
-
/* @__PURE__ */
|
|
1175
|
+
/* @__PURE__ */ x("div", { className: "rpf-modal__buttons", children: [
|
|
1206
1176
|
/* @__PURE__ */ p(
|
|
1207
1177
|
B,
|
|
1208
1178
|
{
|
|
1209
1179
|
text: r,
|
|
1210
1180
|
href: a,
|
|
1211
|
-
onClick:
|
|
1181
|
+
onClick: f,
|
|
1212
1182
|
type: "primary"
|
|
1213
1183
|
}
|
|
1214
1184
|
),
|
|
@@ -1216,17 +1186,17 @@ const gr = ({
|
|
|
1216
1186
|
B,
|
|
1217
1187
|
{
|
|
1218
1188
|
text: i,
|
|
1219
|
-
href:
|
|
1189
|
+
href: m,
|
|
1220
1190
|
onClick: h,
|
|
1221
1191
|
type: "secondary"
|
|
1222
1192
|
}
|
|
1223
1193
|
),
|
|
1224
|
-
|
|
1194
|
+
d && /* @__PURE__ */ p(
|
|
1225
1195
|
B,
|
|
1226
1196
|
{
|
|
1227
|
-
text:
|
|
1228
|
-
href:
|
|
1229
|
-
onClick:
|
|
1197
|
+
text: d,
|
|
1198
|
+
href: E,
|
|
1199
|
+
onClick: O,
|
|
1230
1200
|
type: "tertiary"
|
|
1231
1201
|
}
|
|
1232
1202
|
)
|
|
@@ -1246,7 +1216,7 @@ const gr = ({
|
|
|
1246
1216
|
"rpf-progress-bar--complete": s,
|
|
1247
1217
|
className: n
|
|
1248
1218
|
}),
|
|
1249
|
-
children: /* @__PURE__ */
|
|
1219
|
+
children: /* @__PURE__ */ x("label", { className: "rpf-progress-bar__label", children: [
|
|
1250
1220
|
/* @__PURE__ */ p("span", { children: e }),
|
|
1251
1221
|
/* @__PURE__ */ p("progress", { className: "rpf-progress-bar__bar", value: t, max: "100", children: `${t}%` })
|
|
1252
1222
|
] })
|
|
@@ -1292,7 +1262,7 @@ var er = {
|
|
|
1292
1262
|
* This source code is licensed under the ISC license.
|
|
1293
1263
|
* See the LICENSE file in the root directory of this source tree.
|
|
1294
1264
|
*/
|
|
1295
|
-
const rr =
|
|
1265
|
+
const rr = $e(
|
|
1296
1266
|
({
|
|
1297
1267
|
color: e = "currentColor",
|
|
1298
1268
|
size: t = 24,
|
|
@@ -1300,12 +1270,12 @@ const rr = ke(
|
|
|
1300
1270
|
absoluteStrokeWidth: n,
|
|
1301
1271
|
className: a = "",
|
|
1302
1272
|
children: r,
|
|
1303
|
-
iconNode:
|
|
1273
|
+
iconNode: f,
|
|
1304
1274
|
...i
|
|
1305
|
-
},
|
|
1275
|
+
}, m) => ye(
|
|
1306
1276
|
"svg",
|
|
1307
1277
|
{
|
|
1308
|
-
ref:
|
|
1278
|
+
ref: m,
|
|
1309
1279
|
...er,
|
|
1310
1280
|
width: t,
|
|
1311
1281
|
height: t,
|
|
@@ -1316,7 +1286,7 @@ const rr = ke(
|
|
|
1316
1286
|
...i
|
|
1317
1287
|
},
|
|
1318
1288
|
[
|
|
1319
|
-
...
|
|
1289
|
+
...f.map(([h, d]) => ye(h, d)),
|
|
1320
1290
|
...Array.isArray(r) ? r : [r]
|
|
1321
1291
|
]
|
|
1322
1292
|
)
|
|
@@ -1328,7 +1298,7 @@ const rr = ke(
|
|
|
1328
1298
|
* See the LICENSE file in the root directory of this source tree.
|
|
1329
1299
|
*/
|
|
1330
1300
|
const be = (e, t) => {
|
|
1331
|
-
const s =
|
|
1301
|
+
const s = $e(
|
|
1332
1302
|
({ className: n, ...a }, r) => ye(rr, {
|
|
1333
1303
|
ref: r,
|
|
1334
1304
|
iconNode: t,
|
|
@@ -1388,7 +1358,7 @@ const sr = [
|
|
|
1388
1358
|
onClick: s
|
|
1389
1359
|
}) => {
|
|
1390
1360
|
const n = !!s, a = e === "up" ? ir : e === "down" ? or : nr, r = cr(n, e);
|
|
1391
|
-
return /* @__PURE__ */ p("th", { className: `rpf-table-cell ${n ? "rpf-table-cell--sortable-header" : "rpf-table-cell--header"}`, "aria-sort": r, children: /* @__PURE__ */ p("div", { className: "rpf-table-cell__content", children: n ? /* @__PURE__ */
|
|
1361
|
+
return /* @__PURE__ */ p("th", { className: `rpf-table-cell ${n ? "rpf-table-cell--sortable-header" : "rpf-table-cell--header"}`, "aria-sort": r, children: /* @__PURE__ */ p("div", { className: "rpf-table-cell__content", children: n ? /* @__PURE__ */ x("button", { className: "rpf-table-cell__sort-header", onClick: s, children: [
|
|
1392
1362
|
t,
|
|
1393
1363
|
/* @__PURE__ */ p(a, { size: 20 })
|
|
1394
1364
|
] }) : /* @__PURE__ */ p(me, { children: t }) }) });
|
|
@@ -1397,7 +1367,7 @@ const sr = [
|
|
|
1397
1367
|
{
|
|
1398
1368
|
"data-testid": "table-container",
|
|
1399
1369
|
className: M("rpf-table", { "rpf-table--full-width": s }),
|
|
1400
|
-
children: /* @__PURE__ */
|
|
1370
|
+
children: /* @__PURE__ */ x(
|
|
1401
1371
|
"table",
|
|
1402
1372
|
{
|
|
1403
1373
|
className: M("rpf-table__table", {
|
|
@@ -1419,11 +1389,11 @@ const sr = [
|
|
|
1419
1389
|
}) => {
|
|
1420
1390
|
const r = n ? /* @__PURE__ */ p("span", { className: "rpf-tag__icon material-symbols-sharp", children: n }) : null;
|
|
1421
1391
|
n && !a && (a = "left");
|
|
1422
|
-
const
|
|
1423
|
-
return /* @__PURE__ */
|
|
1392
|
+
const f = t && t !== "default" ? `rpf-tag--${t}` : null;
|
|
1393
|
+
return /* @__PURE__ */ x(
|
|
1424
1394
|
"span",
|
|
1425
1395
|
{
|
|
1426
|
-
className: M("rpf-tag",
|
|
1396
|
+
className: M("rpf-tag", f, {
|
|
1427
1397
|
"rpf-tag--secondary": s
|
|
1428
1398
|
}),
|
|
1429
1399
|
children: [
|