@raspberrypifoundation/design-system-react 2.7.1 → 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 +15 -3
- package/dist/design-system-react.js +676 -782
- package/dist/design-system-react.umd.cjs +9 -9
- package/dist/types/lib/main.d.ts +7 -0
- package/dist/types/lib/main.d.ts.map +1 -1
- 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/Fieldset/FieldSet.types.d.ts +16 -0
- package/dist/types/src/components/Form/Fieldset/FieldSet.types.d.ts.map +1 -0
- package/dist/types/src/components/Form/Fieldset/Fieldset.spec.d.ts.map +1 -1
- package/dist/types/src/components/Form/Fieldset/index.d.ts +3 -19
- package/dist/types/src/components/Form/Fieldset/index.d.ts.map +1 -1
- package/dist/types/src/components/Form/InputField/InputField.types.d.ts +16 -0
- package/dist/types/src/components/Form/InputField/InputField.types.d.ts.map +1 -0
- package/dist/types/src/components/Form/InputField/index.d.ts +3 -19
- package/dist/types/src/components/Form/InputField/index.d.ts.map +1 -1
- package/dist/types/src/components/Form/InputLabel/InputLabel.spec.d.ts.map +1 -1
- package/dist/types/src/components/Form/InputLabel/InputLabel.types.d.ts +11 -0
- package/dist/types/src/components/Form/InputLabel/InputLabel.types.d.ts.map +1 -0
- package/dist/types/src/components/Form/InputLabel/index.d.ts +3 -15
- package/dist/types/src/components/Form/InputLabel/index.d.ts.map +1 -1
- package/dist/types/src/components/Form/RadioInput/RadioInput.spec.d.ts.map +1 -1
- package/dist/types/src/components/Form/RadioInput/RadioInput.types.d.ts +11 -0
- package/dist/types/src/components/Form/RadioInput/RadioInput.types.d.ts.map +1 -0
- package/dist/types/src/components/Form/RadioInput/index.d.ts +3 -23
- package/dist/types/src/components/Form/RadioInput/index.d.ts.map +1 -1
- package/dist/types/src/components/Form/SearchInput/SearchInput.types.d.ts +1 -1
- package/dist/types/src/components/Form/SearchInput/SearchInput.types.d.ts.map +1 -1
- package/dist/types/src/components/Form/SelectInput/SelectInput.spec.d.ts.map +1 -1
- package/dist/types/src/components/Form/SelectInput/SelectInput.types.d.ts +24 -0
- package/dist/types/src/components/Form/SelectInput/SelectInput.types.d.ts.map +1 -0
- package/dist/types/src/components/Form/SelectInput/index.d.ts +4 -29
- package/dist/types/src/components/Form/SelectInput/index.d.ts.map +1 -1
- package/dist/types/src/components/Form/TextInput/TextInput.spec.d.ts.map +1 -1
- package/dist/types/src/components/Form/TextInput/TextInput.types.d.ts +15 -0
- package/dist/types/src/components/Form/TextInput/TextInput.types.d.ts.map +1 -0
- package/dist/types/src/components/Form/TextInput/index.d.ts +4 -25
- package/dist/types/src/components/Form/TextInput/index.d.ts.map +1 -1
- package/dist/types/src/components/Form/TextareaInput/TextareaInput.spec.d.ts.map +1 -1
- package/dist/types/src/components/Form/TextareaInput/TextareaInput.types.d.ts +23 -0
- package/dist/types/src/components/Form/TextareaInput/TextareaInput.types.d.ts.map +1 -0
- package/dist/types/src/components/Form/TextareaInput/index.d.ts +3 -27
- package/dist/types/src/components/Form/TextareaInput/index.d.ts.map +1 -1
- package/dist/types/src/stories/forms/Fieldset.stories.d.ts +17 -55
- package/dist/types/src/stories/forms/Fieldset.stories.d.ts.map +1 -1
- package/dist/types/src/stories/forms/InputLabel.stories.d.ts +13 -24
- package/dist/types/src/stories/forms/InputLabel.stories.d.ts.map +1 -1
- package/dist/types/src/stories/forms/RadioInput.stories.d.ts +31 -49
- package/dist/types/src/stories/forms/RadioInput.stories.d.ts.map +1 -1
- package/dist/types/src/stories/forms/SelectInput.stories.d.ts +25 -51
- package/dist/types/src/stories/forms/SelectInput.stories.d.ts.map +1 -1
- package/dist/types/src/stories/forms/TextInput.stories.d.ts +21 -36
- package/dist/types/src/stories/forms/TextInput.stories.d.ts.map +1 -1
- package/dist/types/src/stories/forms/TextareaInput.stories.d.ts +25 -51
- package/dist/types/src/stories/forms/TextareaInput.stories.d.ts.map +1 -1
- package/package.json +2 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import Le, { useRef 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
|
-
var
|
|
6
|
+
var ie = { exports: {} };
|
|
7
7
|
/*!
|
|
8
8
|
Copyright (c) 2018 Jed Watson.
|
|
9
9
|
Licensed under the MIT License (MIT), see
|
|
10
10
|
http://jedwatson.github.io/classnames
|
|
11
11
|
*/
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
return
|
|
12
|
+
var Ee;
|
|
13
|
+
function Ye() {
|
|
14
|
+
return Ee || (Ee = 1, function(e) {
|
|
15
15
|
(function() {
|
|
16
16
|
var t = {}.hasOwnProperty;
|
|
17
|
-
function
|
|
18
|
-
for (var r = "",
|
|
19
|
-
var
|
|
20
|
-
|
|
17
|
+
function s() {
|
|
18
|
+
for (var r = "", f = 0; f < arguments.length; f++) {
|
|
19
|
+
var i = arguments[f];
|
|
20
|
+
i && (r = a(r, n(i)));
|
|
21
21
|
}
|
|
22
22
|
return r;
|
|
23
23
|
}
|
|
@@ -27,24 +27,24 @@ function We() {
|
|
|
27
27
|
if (typeof r != "object")
|
|
28
28
|
return "";
|
|
29
29
|
if (Array.isArray(r))
|
|
30
|
-
return
|
|
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
|
|
34
|
-
for (var
|
|
35
|
-
t.call(r,
|
|
36
|
-
return
|
|
33
|
+
var f = "";
|
|
34
|
+
for (var i in r)
|
|
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
|
-
e.exports ? (
|
|
41
|
+
e.exports ? (s.default = s, e.exports = s) : window.classNames = s;
|
|
42
42
|
})();
|
|
43
|
-
}(
|
|
43
|
+
}(ie)), ie.exports;
|
|
44
44
|
}
|
|
45
|
-
var
|
|
46
|
-
const M = /* @__PURE__ */
|
|
47
|
-
var
|
|
45
|
+
var De = Ye();
|
|
46
|
+
const M = /* @__PURE__ */ ke(De);
|
|
47
|
+
var Z = { exports: {} }, K = { exports: {} }, C = {};
|
|
48
48
|
/** @license React v16.13.1
|
|
49
49
|
* react-is.production.min.js
|
|
50
50
|
*
|
|
@@ -53,73 +53,73 @@ var K = { exports: {} }, X = { exports: {} }, S = {};
|
|
|
53
53
|
* This source code is licensed under the MIT license found in the
|
|
54
54
|
* LICENSE file in the root directory of this source tree.
|
|
55
55
|
*/
|
|
56
|
-
var
|
|
57
|
-
function
|
|
58
|
-
if (
|
|
59
|
-
|
|
60
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103,
|
|
61
|
-
function
|
|
62
|
-
if (typeof
|
|
63
|
-
var Y =
|
|
56
|
+
var Te;
|
|
57
|
+
function We() {
|
|
58
|
+
if (Te) return C;
|
|
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, 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
|
|
68
|
-
case
|
|
66
|
+
switch (c = c.type, c) {
|
|
67
|
+
case m:
|
|
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 (
|
|
76
|
-
case
|
|
77
|
-
case
|
|
75
|
+
switch (c = c && c.$$typeof, c) {
|
|
76
|
+
case i:
|
|
77
|
+
case d:
|
|
78
78
|
case I:
|
|
79
|
-
case
|
|
80
|
-
case
|
|
81
|
-
return
|
|
79
|
+
case A:
|
|
80
|
+
case f:
|
|
81
|
+
return c;
|
|
82
82
|
default:
|
|
83
83
|
return Y;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
case
|
|
86
|
+
case s:
|
|
87
87
|
return Y;
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
return
|
|
91
|
+
function j(c) {
|
|
92
|
+
return k(c) === h;
|
|
93
93
|
}
|
|
94
|
-
return
|
|
95
|
-
return
|
|
96
|
-
},
|
|
97
|
-
return
|
|
98
|
-
},
|
|
99
|
-
return
|
|
100
|
-
},
|
|
101
|
-
return typeof
|
|
102
|
-
},
|
|
103
|
-
return
|
|
104
|
-
},
|
|
105
|
-
return
|
|
106
|
-
},
|
|
107
|
-
return
|
|
108
|
-
},
|
|
109
|
-
return
|
|
110
|
-
},
|
|
111
|
-
return
|
|
112
|
-
},
|
|
113
|
-
return
|
|
114
|
-
},
|
|
115
|
-
return
|
|
116
|
-
},
|
|
117
|
-
return
|
|
118
|
-
},
|
|
119
|
-
return typeof
|
|
120
|
-
},
|
|
94
|
+
return 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
|
-
var
|
|
122
|
+
var R = {};
|
|
123
123
|
/** @license React v16.13.1
|
|
124
124
|
* react-is.development.js
|
|
125
125
|
*
|
|
@@ -131,100 +131,100 @@ var x = {};
|
|
|
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,
|
|
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
|
|
140
|
-
if (typeof
|
|
141
|
-
var
|
|
142
|
-
switch (
|
|
139
|
+
function j(l) {
|
|
140
|
+
if (typeof l == "object" && l !== null) {
|
|
141
|
+
var W = l.$$typeof;
|
|
142
|
+
switch (W) {
|
|
143
143
|
case t:
|
|
144
|
-
var
|
|
145
|
-
switch (
|
|
146
|
-
case
|
|
147
|
-
case
|
|
144
|
+
var J = l.type;
|
|
145
|
+
switch (J) {
|
|
146
|
+
case m:
|
|
147
|
+
case h:
|
|
148
148
|
case n:
|
|
149
149
|
case r:
|
|
150
150
|
case a:
|
|
151
|
-
case
|
|
152
|
-
return
|
|
151
|
+
case E:
|
|
152
|
+
return J;
|
|
153
153
|
default:
|
|
154
|
-
var
|
|
155
|
-
switch (
|
|
156
|
-
case
|
|
157
|
-
case
|
|
154
|
+
var _e = J && J.$$typeof;
|
|
155
|
+
switch (_e) {
|
|
156
|
+
case i:
|
|
157
|
+
case d:
|
|
158
158
|
case I:
|
|
159
|
-
case
|
|
160
|
-
case
|
|
161
|
-
return
|
|
159
|
+
case A:
|
|
160
|
+
case f:
|
|
161
|
+
return _e;
|
|
162
162
|
default:
|
|
163
|
-
return
|
|
163
|
+
return W;
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
case
|
|
167
|
-
return
|
|
166
|
+
case s:
|
|
167
|
+
return W;
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
var
|
|
172
|
-
function
|
|
173
|
-
return
|
|
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
|
|
175
|
+
function o(l) {
|
|
176
|
+
return j(l) === h;
|
|
177
177
|
}
|
|
178
|
-
function
|
|
179
|
-
return
|
|
178
|
+
function u(l) {
|
|
179
|
+
return j(l) === i;
|
|
180
180
|
}
|
|
181
|
-
function
|
|
182
|
-
return
|
|
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
|
|
187
|
+
function y(l) {
|
|
188
|
+
return j(l) === d;
|
|
189
189
|
}
|
|
190
|
-
function
|
|
191
|
-
return
|
|
190
|
+
function T(l) {
|
|
191
|
+
return j(l) === n;
|
|
192
192
|
}
|
|
193
|
-
function
|
|
194
|
-
return
|
|
193
|
+
function v(l) {
|
|
194
|
+
return j(l) === I;
|
|
195
195
|
}
|
|
196
|
-
function
|
|
197
|
-
return
|
|
196
|
+
function _(l) {
|
|
197
|
+
return j(l) === A;
|
|
198
198
|
}
|
|
199
|
-
function
|
|
200
|
-
return
|
|
199
|
+
function w(l) {
|
|
200
|
+
return j(l) === s;
|
|
201
201
|
}
|
|
202
|
-
function
|
|
203
|
-
return
|
|
202
|
+
function P(l) {
|
|
203
|
+
return j(l) === r;
|
|
204
204
|
}
|
|
205
|
-
function
|
|
206
|
-
return
|
|
205
|
+
function S(l) {
|
|
206
|
+
return j(l) === a;
|
|
207
207
|
}
|
|
208
|
-
function
|
|
209
|
-
return
|
|
208
|
+
function L(l) {
|
|
209
|
+
return j(l) === E;
|
|
210
210
|
}
|
|
211
|
-
|
|
212
|
-
}()),
|
|
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
|
+
}()), R;
|
|
213
213
|
}
|
|
214
|
-
var
|
|
215
|
-
function
|
|
216
|
-
return
|
|
214
|
+
var Se;
|
|
215
|
+
function Ie() {
|
|
216
|
+
return Se || (Se = 1, process.env.NODE_ENV === "production" ? K.exports = We() : K.exports = Fe()), K.exports;
|
|
217
217
|
}
|
|
218
218
|
/*
|
|
219
219
|
object-assign
|
|
220
220
|
(c) Sindre Sorhus
|
|
221
221
|
@license MIT
|
|
222
222
|
*/
|
|
223
|
-
var
|
|
223
|
+
var ce, Ce;
|
|
224
224
|
function Ue() {
|
|
225
|
-
if (Ce) return
|
|
225
|
+
if (Ce) return ce;
|
|
226
226
|
Ce = 1;
|
|
227
|
-
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty,
|
|
227
|
+
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, s = Object.prototype.propertyIsEnumerable;
|
|
228
228
|
function n(r) {
|
|
229
229
|
if (r == null)
|
|
230
230
|
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
@@ -237,345 +237,345 @@ 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
|
-
var
|
|
248
|
-
return "abcdefghijklmnopqrst".split("").forEach(function(
|
|
249
|
-
|
|
250
|
-
}), Object.keys(Object.assign({},
|
|
247
|
+
var h = {};
|
|
248
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(d) {
|
|
249
|
+
h[d] = d;
|
|
250
|
+
}), Object.keys(Object.assign({}, h)).join("") === "abcdefghijklmnopqrst";
|
|
251
251
|
} catch {
|
|
252
252
|
return !1;
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
|
-
return
|
|
256
|
-
for (var
|
|
257
|
-
|
|
258
|
-
for (var
|
|
259
|
-
t.call(
|
|
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
|
-
|
|
262
|
-
for (var
|
|
263
|
-
|
|
261
|
+
h = e(i);
|
|
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
|
|
267
|
-
},
|
|
266
|
+
return m;
|
|
267
|
+
}, ce;
|
|
268
268
|
}
|
|
269
|
-
var
|
|
270
|
-
function
|
|
271
|
-
if (
|
|
272
|
-
|
|
269
|
+
var le, Re;
|
|
270
|
+
function he() {
|
|
271
|
+
if (Re) return le;
|
|
272
|
+
Re = 1;
|
|
273
273
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
274
|
-
return
|
|
274
|
+
return le = e, le;
|
|
275
275
|
}
|
|
276
|
-
var
|
|
277
|
-
function
|
|
278
|
-
return
|
|
276
|
+
var fe, Pe;
|
|
277
|
+
function Me() {
|
|
278
|
+
return Pe || (Pe = 1, fe = Function.call.bind(Object.prototype.hasOwnProperty)), fe;
|
|
279
279
|
}
|
|
280
|
-
var
|
|
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
|
-
var t = /* @__PURE__ */
|
|
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
|
-
|
|
317
|
-
var
|
|
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
|
+
var A = h ? h() : "";
|
|
318
318
|
e(
|
|
319
|
-
"Failed " +
|
|
319
|
+
"Failed " + i + " type: " + E.message + (A ?? "")
|
|
320
320
|
);
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
return a.resetWarningCache = function() {
|
|
326
|
-
process.env.NODE_ENV !== "production" && (
|
|
327
|
-
},
|
|
326
|
+
process.env.NODE_ENV !== "production" && (s = {});
|
|
327
|
+
}, ue = a, ue;
|
|
328
328
|
}
|
|
329
|
-
var
|
|
329
|
+
var pe, Oe;
|
|
330
330
|
function Be() {
|
|
331
|
-
if (
|
|
332
|
-
|
|
333
|
-
var e =
|
|
331
|
+
if (Oe) return pe;
|
|
332
|
+
Oe = 1;
|
|
333
|
+
var e = Ie(), t = Ue(), s = /* @__PURE__ */ he(), n = /* @__PURE__ */ Me(), a = /* @__PURE__ */ ze(), r = function() {
|
|
334
334
|
};
|
|
335
|
-
process.env.NODE_ENV !== "production" && (r = function(
|
|
336
|
-
var
|
|
337
|
-
typeof console < "u" && console.error(
|
|
335
|
+
process.env.NODE_ENV !== "production" && (r = function(i) {
|
|
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
|
|
347
|
-
var
|
|
348
|
-
function
|
|
349
|
-
var
|
|
350
|
-
if (typeof
|
|
351
|
-
return
|
|
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
|
+
if (typeof u == "function")
|
|
351
|
+
return u;
|
|
352
352
|
}
|
|
353
|
-
var
|
|
354
|
-
array:
|
|
355
|
-
bigint:
|
|
356
|
-
bool:
|
|
357
|
-
func:
|
|
358
|
-
number:
|
|
359
|
-
object:
|
|
360
|
-
string:
|
|
361
|
-
symbol:
|
|
362
|
-
any:
|
|
363
|
-
arrayOf:
|
|
364
|
-
element:
|
|
365
|
-
elementType:
|
|
353
|
+
var O = "<<anonymous>>", A = {
|
|
354
|
+
array: q("array"),
|
|
355
|
+
bigint: q("bigint"),
|
|
356
|
+
bool: q("boolean"),
|
|
357
|
+
func: q("function"),
|
|
358
|
+
number: q("number"),
|
|
359
|
+
object: q("object"),
|
|
360
|
+
string: q("string"),
|
|
361
|
+
symbol: q("symbol"),
|
|
362
|
+
any: F(),
|
|
363
|
+
arrayOf: k,
|
|
364
|
+
element: j(),
|
|
365
|
+
elementType: c(),
|
|
366
366
|
instanceOf: Y,
|
|
367
|
-
node:
|
|
368
|
-
objectOf:
|
|
369
|
-
oneOf:
|
|
370
|
-
oneOfType:
|
|
371
|
-
shape:
|
|
372
|
-
exact:
|
|
367
|
+
node: re(),
|
|
368
|
+
objectOf: Q,
|
|
369
|
+
oneOf: G,
|
|
370
|
+
oneOfType: ee,
|
|
371
|
+
shape: te,
|
|
372
|
+
exact: ne
|
|
373
373
|
};
|
|
374
|
-
function I(o,
|
|
375
|
-
return o ===
|
|
374
|
+
function I(o, u) {
|
|
375
|
+
return o === u ? o !== 0 || 1 / o === 1 / u : o !== o && u !== u;
|
|
376
376
|
}
|
|
377
|
-
function N(o,
|
|
378
|
-
this.message = o, this.data =
|
|
377
|
+
function N(o, u) {
|
|
378
|
+
this.message = o, this.data = u && typeof u == "object" ? u : {}, this.stack = "";
|
|
379
379
|
}
|
|
380
380
|
N.prototype = Error.prototype;
|
|
381
|
-
function
|
|
381
|
+
function $(o) {
|
|
382
382
|
if (process.env.NODE_ENV !== "production")
|
|
383
|
-
var
|
|
384
|
-
function
|
|
385
|
-
if (
|
|
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
|
|
393
|
-
!
|
|
394
|
-
|
|
395
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
396
|
-
),
|
|
392
|
+
var W = w + ":" + _;
|
|
393
|
+
!u[W] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
394
|
+
g < 3 && (r(
|
|
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, g++);
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
|
-
return
|
|
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
|
-
function
|
|
405
|
-
function
|
|
406
|
-
var
|
|
407
|
-
if (
|
|
408
|
-
var
|
|
404
|
+
function q(o) {
|
|
405
|
+
function u(g, b, y, T, v, _) {
|
|
406
|
+
var w = g[b], P = D(w);
|
|
407
|
+
if (P !== o) {
|
|
408
|
+
var S = U(w);
|
|
409
409
|
return new N(
|
|
410
|
-
"Invalid " +
|
|
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
|
-
function
|
|
419
|
-
return
|
|
418
|
+
function F() {
|
|
419
|
+
return $(f);
|
|
420
420
|
}
|
|
421
|
-
function
|
|
422
|
-
function
|
|
421
|
+
function k(o) {
|
|
422
|
+
function u(g, b, y, T, v) {
|
|
423
423
|
if (typeof o != "function")
|
|
424
|
-
return new N("Property `" +
|
|
425
|
-
var
|
|
426
|
-
if (!Array.isArray(
|
|
427
|
-
var
|
|
428
|
-
return new N("Invalid " +
|
|
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
|
|
432
|
-
if (
|
|
433
|
-
return
|
|
430
|
+
for (var P = 0; P < _.length; P++) {
|
|
431
|
+
var S = o(_, P, y, T, v + "[" + P + "]", s);
|
|
432
|
+
if (S instanceof Error)
|
|
433
|
+
return S;
|
|
434
434
|
}
|
|
435
435
|
return null;
|
|
436
436
|
}
|
|
437
|
-
return
|
|
437
|
+
return $(u);
|
|
438
438
|
}
|
|
439
|
-
function
|
|
440
|
-
function o(
|
|
441
|
-
var
|
|
442
|
-
if (!
|
|
443
|
-
var
|
|
444
|
-
return new N("Invalid " +
|
|
439
|
+
function j() {
|
|
440
|
+
function o(u, g, b, y, T) {
|
|
441
|
+
var v = u[g];
|
|
442
|
+
if (!i(v)) {
|
|
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(
|
|
452
|
-
var
|
|
453
|
-
if (!e.isValidElementType(
|
|
454
|
-
var
|
|
455
|
-
return new N("Invalid " +
|
|
450
|
+
function c() {
|
|
451
|
+
function o(u, g, b, y, T) {
|
|
452
|
+
var v = u[g];
|
|
453
|
+
if (!e.isValidElementType(v)) {
|
|
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
|
|
463
|
-
if (!(
|
|
464
|
-
var
|
|
465
|
-
return new N("Invalid " +
|
|
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
|
-
function
|
|
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
|
|
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
|
|
482
|
-
return
|
|
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 N("Invalid " +
|
|
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
|
-
function
|
|
489
|
-
function
|
|
488
|
+
function Q(o) {
|
|
489
|
+
function u(g, b, y, T, v) {
|
|
490
490
|
if (typeof o != "function")
|
|
491
|
-
return new N("Property `" +
|
|
492
|
-
var
|
|
493
|
-
if (
|
|
494
|
-
return new N("Invalid " +
|
|
495
|
-
for (var
|
|
496
|
-
if (n(
|
|
497
|
-
var
|
|
498
|
-
if (
|
|
499
|
-
return
|
|
491
|
+
return new N("Property `" + v + "` of component `" + y + "` has invalid PropType notation inside objectOf.");
|
|
492
|
+
var _ = g[b], w = D(_);
|
|
493
|
+
if (w !== "object")
|
|
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
|
+
if (S instanceof Error)
|
|
499
|
+
return S;
|
|
500
500
|
}
|
|
501
501
|
return null;
|
|
502
502
|
}
|
|
503
|
-
return
|
|
503
|
+
return $(u);
|
|
504
504
|
}
|
|
505
|
-
function
|
|
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."),
|
|
508
|
-
for (var
|
|
509
|
-
var
|
|
510
|
-
if (typeof
|
|
507
|
+
return process.env.NODE_ENV !== "production" && r("Invalid argument supplied to oneOfType, expected an instance of array."), f;
|
|
508
|
+
for (var u = 0; u < o.length; u++) {
|
|
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 " +
|
|
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
|
|
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
|
|
523
|
-
return new N("Invalid " +
|
|
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
|
-
function
|
|
528
|
-
function o(
|
|
529
|
-
return
|
|
527
|
+
function re() {
|
|
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
|
|
533
|
+
function V(o, u, g, b, y) {
|
|
534
534
|
return new N(
|
|
535
|
-
(o || "React class") + ": " +
|
|
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
|
-
function
|
|
539
|
-
function
|
|
540
|
-
var
|
|
541
|
-
if (
|
|
542
|
-
return new N("Invalid " +
|
|
543
|
-
for (var
|
|
544
|
-
var
|
|
545
|
-
if (typeof
|
|
546
|
-
return
|
|
547
|
-
var
|
|
548
|
-
if (
|
|
549
|
-
return
|
|
538
|
+
function te(o) {
|
|
539
|
+
function u(g, b, y, T, v) {
|
|
540
|
+
var _ = g[b], w = D(_);
|
|
541
|
+
if (w !== "object")
|
|
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
|
+
if (typeof S != "function")
|
|
546
|
+
return V(y, T, v, P, U(S));
|
|
547
|
+
var L = S(_, P, y, T, v + "." + P, s);
|
|
548
|
+
if (L)
|
|
549
|
+
return L;
|
|
550
550
|
}
|
|
551
551
|
return null;
|
|
552
552
|
}
|
|
553
|
-
return
|
|
553
|
+
return $(u);
|
|
554
554
|
}
|
|
555
|
-
function
|
|
556
|
-
function
|
|
557
|
-
var
|
|
558
|
-
if (
|
|
559
|
-
return new N("Invalid " +
|
|
560
|
-
var
|
|
561
|
-
for (var
|
|
562
|
-
var
|
|
563
|
-
if (n(o,
|
|
564
|
-
return
|
|
565
|
-
if (!
|
|
555
|
+
function ne(o) {
|
|
556
|
+
function u(g, b, y, T, v) {
|
|
557
|
+
var _ = g[b], w = D(_);
|
|
558
|
+
if (w !== "object")
|
|
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
|
+
var L = o[S];
|
|
563
|
+
if (n(o, S) && typeof L != "function")
|
|
564
|
+
return V(y, T, v, S, U(L));
|
|
565
|
+
if (!L)
|
|
566
566
|
return new N(
|
|
567
|
-
"Invalid " +
|
|
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
|
-
function
|
|
578
|
+
function z(o) {
|
|
579
579
|
switch (typeof o) {
|
|
580
580
|
case "number":
|
|
581
581
|
case "string":
|
|
@@ -585,20 +585,20 @@ Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
|
|
|
585
585
|
return !o;
|
|
586
586
|
case "object":
|
|
587
587
|
if (Array.isArray(o))
|
|
588
|
-
return o.every(
|
|
589
|
-
if (o === null ||
|
|
588
|
+
return o.every(z);
|
|
589
|
+
if (o === null || i(o))
|
|
590
590
|
return !0;
|
|
591
|
-
var
|
|
592
|
-
if (
|
|
593
|
-
var
|
|
594
|
-
if (
|
|
595
|
-
for (; !(
|
|
596
|
-
if (!
|
|
591
|
+
var u = E(o);
|
|
592
|
+
if (u) {
|
|
593
|
+
var g = u.call(o), b;
|
|
594
|
+
if (u !== o.entries) {
|
|
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
|
|
@@ -608,61 +608,61 @@ Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
|
|
|
608
608
|
return !1;
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
|
-
function
|
|
612
|
-
return o === "symbol" ? !0 :
|
|
611
|
+
function ae(o, u) {
|
|
612
|
+
return o === "symbol" ? !0 : u ? u["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && u instanceof Symbol : !1;
|
|
613
613
|
}
|
|
614
614
|
function D(o) {
|
|
615
|
-
var
|
|
616
|
-
return Array.isArray(o) ? "array" : o instanceof RegExp ? "object" :
|
|
615
|
+
var u = typeof o;
|
|
616
|
+
return Array.isArray(o) ? "array" : o instanceof RegExp ? "object" : ae(u, o) ? "symbol" : u;
|
|
617
617
|
}
|
|
618
|
-
function
|
|
618
|
+
function U(o) {
|
|
619
619
|
if (typeof o > "u" || o === null)
|
|
620
620
|
return "" + o;
|
|
621
|
-
var
|
|
622
|
-
if (
|
|
621
|
+
var u = D(o);
|
|
622
|
+
if (u === "object") {
|
|
623
623
|
if (o instanceof Date)
|
|
624
624
|
return "date";
|
|
625
625
|
if (o instanceof RegExp)
|
|
626
626
|
return "regexp";
|
|
627
627
|
}
|
|
628
|
-
return
|
|
628
|
+
return u;
|
|
629
629
|
}
|
|
630
|
-
function
|
|
631
|
-
var
|
|
632
|
-
switch (
|
|
630
|
+
function H(o) {
|
|
631
|
+
var u = U(o);
|
|
632
|
+
switch (u) {
|
|
633
633
|
case "array":
|
|
634
634
|
case "object":
|
|
635
|
-
return "an " +
|
|
635
|
+
return "an " + u;
|
|
636
636
|
case "boolean":
|
|
637
637
|
case "date":
|
|
638
638
|
case "regexp":
|
|
639
|
-
return "a " +
|
|
639
|
+
return "a " + u;
|
|
640
640
|
default:
|
|
641
|
-
return
|
|
641
|
+
return u;
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
|
-
function
|
|
645
|
-
return !o.constructor || !o.constructor.name ?
|
|
644
|
+
function oe(o) {
|
|
645
|
+
return !o.constructor || !o.constructor.name ? O : o.constructor.name;
|
|
646
646
|
}
|
|
647
|
-
return
|
|
648
|
-
},
|
|
647
|
+
return A.checkPropTypes = a, A.resetWarningCache = a.resetWarningCache, A.PropTypes = A, A;
|
|
648
|
+
}, pe;
|
|
649
649
|
}
|
|
650
|
-
var
|
|
650
|
+
var de, Ne;
|
|
651
651
|
function Ve() {
|
|
652
|
-
if (Ne) return
|
|
652
|
+
if (Ne) return de;
|
|
653
653
|
Ne = 1;
|
|
654
|
-
var e = /* @__PURE__ */
|
|
654
|
+
var e = /* @__PURE__ */ he();
|
|
655
655
|
function t() {
|
|
656
656
|
}
|
|
657
|
-
function
|
|
657
|
+
function s() {
|
|
658
658
|
}
|
|
659
|
-
return
|
|
660
|
-
function n(
|
|
661
|
-
if (
|
|
662
|
-
var
|
|
659
|
+
return s.resetWarningCache = t, de = function() {
|
|
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;
|
|
@@ -689,27 +689,27 @@ function Ve() {
|
|
|
689
689
|
oneOfType: a,
|
|
690
690
|
shape: a,
|
|
691
691
|
exact: a,
|
|
692
|
-
checkPropTypes:
|
|
692
|
+
checkPropTypes: s,
|
|
693
693
|
resetWarningCache: t
|
|
694
694
|
};
|
|
695
695
|
return r.PropTypes = r, r;
|
|
696
|
-
},
|
|
696
|
+
}, de;
|
|
697
697
|
}
|
|
698
698
|
var Ae;
|
|
699
699
|
function He() {
|
|
700
|
-
if (Ae) return
|
|
700
|
+
if (Ae) return Z.exports;
|
|
701
701
|
if (Ae = 1, process.env.NODE_ENV !== "production") {
|
|
702
|
-
var e =
|
|
703
|
-
|
|
702
|
+
var e = Ie(), t = !0;
|
|
703
|
+
Z.exports = /* @__PURE__ */ Be()(e.isElement, t);
|
|
704
704
|
} else
|
|
705
|
-
|
|
706
|
-
return
|
|
705
|
+
Z.exports = /* @__PURE__ */ Ve()();
|
|
706
|
+
return Z.exports;
|
|
707
707
|
}
|
|
708
708
|
var Je = /* @__PURE__ */ He();
|
|
709
|
-
const
|
|
710
|
-
const a = M("rpf-accordion",
|
|
711
|
-
return /* @__PURE__ */
|
|
712
|
-
/* @__PURE__ */
|
|
709
|
+
const X = /* @__PURE__ */ ke(Je), Ze = ({ content: e, title: t, className: s, id: n = "accordion" }) => {
|
|
710
|
+
const a = M("rpf-accordion", s);
|
|
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
|
] }),
|
|
@@ -717,196 +717,174 @@ const s = /* @__PURE__ */ qe(Je), Ze = ({ content: e, title: t, className: i, id
|
|
|
717
717
|
] });
|
|
718
718
|
};
|
|
719
719
|
Ze.propTypes = {
|
|
720
|
-
content:
|
|
721
|
-
title:
|
|
722
|
-
id:
|
|
723
|
-
className:
|
|
720
|
+
content: X.string.isRequired,
|
|
721
|
+
title: X.string.isRequired,
|
|
722
|
+
id: X.string,
|
|
723
|
+
className: X.string
|
|
724
724
|
};
|
|
725
|
-
const
|
|
725
|
+
const B = ({
|
|
726
726
|
text: e,
|
|
727
727
|
href: t,
|
|
728
|
-
title:
|
|
728
|
+
title: s,
|
|
729
729
|
className: n,
|
|
730
730
|
type: a = "primary",
|
|
731
731
|
variant: r = "",
|
|
732
|
-
size:
|
|
733
|
-
icon:
|
|
734
|
-
iconOnly:
|
|
735
|
-
iconPosition:
|
|
736
|
-
fullWidth:
|
|
737
|
-
disabled:
|
|
738
|
-
onClick:
|
|
732
|
+
size: f = "default",
|
|
733
|
+
icon: i = "",
|
|
734
|
+
iconOnly: m = !1,
|
|
735
|
+
iconPosition: h = "left",
|
|
736
|
+
fullWidth: d = !1,
|
|
737
|
+
disabled: E = !1,
|
|
738
|
+
onClick: O = () => {
|
|
739
739
|
},
|
|
740
|
-
"aria-label":
|
|
740
|
+
"aria-label": A = "",
|
|
741
741
|
linkComponent: I
|
|
742
742
|
// to pass in react-router-dom Link component
|
|
743
743
|
}) => {
|
|
744
|
-
const N =
|
|
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":
|
|
751
|
+
"rpf-button--sm": f === "small",
|
|
752
752
|
"rpf-button--icon-only": N,
|
|
753
|
-
"rpf-button--full-width":
|
|
754
|
-
disabled:
|
|
753
|
+
"rpf-button--full-width": d,
|
|
754
|
+
disabled: E
|
|
755
755
|
},
|
|
756
756
|
n
|
|
757
757
|
);
|
|
758
|
-
let
|
|
759
|
-
Le.isValidElement(
|
|
758
|
+
let q = "rpf-button__icon";
|
|
759
|
+
Le.isValidElement(i) ? (q += " icon", console.warn(
|
|
760
760
|
"DEPRECATED: icons as React elements will not be supported in future releases"
|
|
761
|
-
)) :
|
|
762
|
-
const
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
761
|
+
)) : q += " material-symbols-sharp";
|
|
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
|
+
F("left", i),
|
|
764
|
+
k(),
|
|
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:
|
|
773
|
-
"aria-label":
|
|
774
|
-
children:
|
|
772
|
+
onClick: O,
|
|
773
|
+
"aria-label": A,
|
|
774
|
+
children: j
|
|
775
775
|
}
|
|
776
776
|
) : /* @__PURE__ */ p(
|
|
777
777
|
"button",
|
|
778
778
|
{
|
|
779
|
-
className:
|
|
780
|
-
title:
|
|
781
|
-
onClick:
|
|
782
|
-
disabled:
|
|
783
|
-
"aria-label":
|
|
784
|
-
children:
|
|
779
|
+
className: $,
|
|
780
|
+
title: s,
|
|
781
|
+
onClick: O,
|
|
782
|
+
disabled: E,
|
|
783
|
+
"aria-label": A,
|
|
784
|
+
children: j
|
|
785
785
|
}
|
|
786
786
|
);
|
|
787
|
-
},
|
|
787
|
+
}, ur = ({
|
|
788
788
|
title: e,
|
|
789
789
|
text: t,
|
|
790
|
-
titleChildren:
|
|
790
|
+
titleChildren: s,
|
|
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
|
-
|
|
799
|
-
!!
|
|
800
|
-
|
|
798
|
+
s ? /* @__PURE__ */ p("div", { className: "rpf-alert__title", children: s }) : e ? /* @__PURE__ */ p("p", { className: "rpf-alert__title", children: e }) : null,
|
|
799
|
+
!!f && /* @__PURE__ */ p("div", { className: "rpf-alert__close", children: /* @__PURE__ */ p(
|
|
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((
|
|
813
|
-
|
|
812
|
+
r && r.length > 0 && /* @__PURE__ */ p("div", { className: "rpf-alert__actions", children: r.map((i, m) => /* @__PURE__ */ p(
|
|
813
|
+
B,
|
|
814
814
|
{
|
|
815
|
-
text:
|
|
815
|
+
text: i.label,
|
|
816
816
|
size: "small",
|
|
817
817
|
type: "tertiary",
|
|
818
|
-
href:
|
|
819
|
-
onClick:
|
|
818
|
+
href: i.href,
|
|
819
|
+
onClick: i.onClick
|
|
820
820
|
},
|
|
821
|
-
|
|
821
|
+
m
|
|
822
822
|
)) })
|
|
823
823
|
] })
|
|
824
|
-
] }),
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
name:
|
|
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: c
|
|
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
|
-
] }), Ke = ({
|
|
824
|
+
] }), pr = ({
|
|
825
|
+
label: e,
|
|
826
|
+
id: t,
|
|
827
|
+
name: s,
|
|
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
|
-
fullWidth:
|
|
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", {
|
|
875
862
|
"rpf-fieldset--disabled": e,
|
|
876
|
-
"rpf-fieldset--full-width":
|
|
863
|
+
"rpf-fieldset--full-width": s,
|
|
877
864
|
"rpf-fieldset--error": t
|
|
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
|
|
890
877
|
]
|
|
891
878
|
}
|
|
892
|
-
)
|
|
893
|
-
Ke.propTypes = {
|
|
894
|
-
disabled: s.bool,
|
|
895
|
-
errorText: s.string,
|
|
896
|
-
fullWidth: s.bool,
|
|
897
|
-
legendText: s.string.isRequired,
|
|
898
|
-
legendHintText: s.string,
|
|
899
|
-
children: s.node
|
|
900
|
-
};
|
|
901
|
-
const Q = ({
|
|
879
|
+
), ve = ({
|
|
902
880
|
id: e,
|
|
903
881
|
label: t,
|
|
904
|
-
children:
|
|
882
|
+
children: s,
|
|
905
883
|
disabled: n = !1,
|
|
906
884
|
error: a = "",
|
|
907
885
|
hint: r = ""
|
|
908
|
-
}) => /* @__PURE__ */
|
|
909
|
-
(t || r) && /* @__PURE__ */
|
|
886
|
+
}) => /* @__PURE__ */ x("div", { className: "rpf-input-field", children: [
|
|
887
|
+
(t || r) && /* @__PURE__ */ x(
|
|
910
888
|
"label",
|
|
911
889
|
{
|
|
912
890
|
htmlFor: e,
|
|
@@ -919,107 +897,65 @@ const Q = ({
|
|
|
919
897
|
]
|
|
920
898
|
}
|
|
921
899
|
),
|
|
922
|
-
|
|
923
|
-
a && /* @__PURE__ */
|
|
900
|
+
s,
|
|
901
|
+
a && /* @__PURE__ */ x("div", { className: "rpf-error-message", children: [
|
|
924
902
|
/* @__PURE__ */ p("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
|
|
925
903
|
a
|
|
926
904
|
] })
|
|
927
|
-
] })
|
|
928
|
-
Q.propTypes = {
|
|
929
|
-
disabled: s.bool,
|
|
930
|
-
error: s.string,
|
|
931
|
-
hint: s.oneOfType([s.string, s.object]),
|
|
932
|
-
label: s.oneOfType([s.string, s.object]).isRequired,
|
|
933
|
-
id: s.string.isRequired,
|
|
934
|
-
children: s.node
|
|
935
|
-
};
|
|
936
|
-
const Xe = ({
|
|
905
|
+
] }), yr = ({
|
|
937
906
|
label: e,
|
|
938
907
|
inputFieldId: t,
|
|
939
|
-
disabled:
|
|
908
|
+
disabled: s = !1,
|
|
940
909
|
hint: n = ""
|
|
941
|
-
}) => /* @__PURE__ */ p("div", { className: "rpf-label", children: /* @__PURE__ */
|
|
910
|
+
}) => /* @__PURE__ */ p("div", { className: "rpf-label", children: /* @__PURE__ */ x(
|
|
942
911
|
"label",
|
|
943
912
|
{
|
|
944
913
|
htmlFor: t,
|
|
945
914
|
className: M("rpf-label", {
|
|
946
|
-
"rpf-label--disabled":
|
|
915
|
+
"rpf-label--disabled": s
|
|
947
916
|
}),
|
|
948
917
|
children: [
|
|
949
918
|
e,
|
|
950
919
|
n && /* @__PURE__ */ p("div", { className: "rpf-label__hint", children: n })
|
|
951
920
|
]
|
|
952
921
|
}
|
|
953
|
-
) })
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
}
|
|
960
|
-
const Ge = ({
|
|
961
|
-
id: e,
|
|
962
|
-
label: t,
|
|
963
|
-
name: i,
|
|
964
|
-
checked: n = !1,
|
|
965
|
-
disabled: a = !1,
|
|
966
|
-
fullWidth: r = !1,
|
|
967
|
-
onChange: l = () => {
|
|
968
|
-
},
|
|
969
|
-
value: c = ""
|
|
970
|
-
}) => /* @__PURE__ */ p(G, { children: /* @__PURE__ */ P(
|
|
922
|
+
) }), mr = ({
|
|
923
|
+
label: e,
|
|
924
|
+
id: t,
|
|
925
|
+
name: s,
|
|
926
|
+
fullWidth: n = !1,
|
|
927
|
+
...a
|
|
928
|
+
}) => /* @__PURE__ */ x(
|
|
971
929
|
"label",
|
|
972
930
|
{
|
|
973
931
|
className: M("rpf-input-radio", {
|
|
974
|
-
"rpf-input-radio--disabled": a,
|
|
975
|
-
"rpf-input--full-width":
|
|
932
|
+
"rpf-input-radio--disabled": a.disabled,
|
|
933
|
+
"rpf-input--full-width": n
|
|
976
934
|
}),
|
|
977
935
|
children: [
|
|
978
|
-
/* @__PURE__ */ p(
|
|
979
|
-
|
|
980
|
-
{
|
|
981
|
-
checked: !!n,
|
|
982
|
-
disabled: a,
|
|
983
|
-
id: e,
|
|
984
|
-
name: i,
|
|
985
|
-
onChange: l,
|
|
986
|
-
type: "radio",
|
|
987
|
-
value: c
|
|
988
|
-
}
|
|
989
|
-
),
|
|
990
|
-
t
|
|
936
|
+
/* @__PURE__ */ p("input", { type: "radio", id: t, name: s, ...a }),
|
|
937
|
+
e
|
|
991
938
|
]
|
|
992
939
|
}
|
|
993
|
-
)
|
|
994
|
-
Ge.propTypes = {
|
|
995
|
-
checked: s.bool,
|
|
996
|
-
disabled: s.bool,
|
|
997
|
-
fullWidth: s.bool,
|
|
998
|
-
id: s.string.isRequired,
|
|
999
|
-
label: s.oneOfType([s.string, s.object]).isRequired,
|
|
1000
|
-
name: s.string.isRequired,
|
|
1001
|
-
onChange: s.func,
|
|
1002
|
-
value: s.string
|
|
1003
|
-
};
|
|
1004
|
-
const gr = ({
|
|
940
|
+
), hr = ({
|
|
1005
941
|
label: e,
|
|
1006
942
|
inputFieldId: t,
|
|
1007
|
-
disabled:
|
|
943
|
+
disabled: s = !1,
|
|
1008
944
|
error: n = "",
|
|
1009
945
|
hint: a = "",
|
|
1010
946
|
placeholder: r = "",
|
|
1011
|
-
defaultValue:
|
|
1012
|
-
onClick:
|
|
947
|
+
defaultValue: f = "",
|
|
948
|
+
onClick: i = () => {
|
|
1013
949
|
},
|
|
1014
|
-
onChange:
|
|
950
|
+
onChange: m = () => {
|
|
1015
951
|
}
|
|
1016
|
-
}) => /* @__PURE__ */ p("search", { children: /* @__PURE__ */
|
|
1017
|
-
/* @__PURE__ */
|
|
952
|
+
}) => /* @__PURE__ */ p("search", { children: /* @__PURE__ */ x("form", { className: "rpf-input-field", onSubmit: i, children: [
|
|
953
|
+
/* @__PURE__ */ x(
|
|
1018
954
|
"label",
|
|
1019
955
|
{
|
|
1020
956
|
htmlFor: t,
|
|
1021
957
|
className: M("rpf-label", {
|
|
1022
|
-
"rpf-label--disabled":
|
|
958
|
+
"rpf-label--disabled": s
|
|
1023
959
|
}),
|
|
1024
960
|
children: [
|
|
1025
961
|
e,
|
|
@@ -1027,22 +963,22 @@ const gr = ({
|
|
|
1027
963
|
]
|
|
1028
964
|
}
|
|
1029
965
|
),
|
|
1030
|
-
/* @__PURE__ */
|
|
966
|
+
/* @__PURE__ */ x("div", { className: "rpf-input-search-container", children: [
|
|
1031
967
|
/* @__PURE__ */ p(
|
|
1032
968
|
"input",
|
|
1033
969
|
{
|
|
1034
970
|
className: M("rpf-input rpf-input-search", {
|
|
1035
|
-
"rpf-input--disabled":
|
|
971
|
+
"rpf-input--disabled": s,
|
|
1036
972
|
"rpf-input--error": n
|
|
1037
973
|
}),
|
|
1038
|
-
disabled:
|
|
974
|
+
disabled: s,
|
|
1039
975
|
id: t,
|
|
1040
976
|
name: "search",
|
|
1041
977
|
type: "search",
|
|
1042
978
|
"aria-label": "Search",
|
|
1043
|
-
defaultValue:
|
|
979
|
+
defaultValue: f,
|
|
1044
980
|
placeholder: r,
|
|
1045
|
-
onChange:
|
|
981
|
+
onChange: m
|
|
1046
982
|
}
|
|
1047
983
|
),
|
|
1048
984
|
/* @__PURE__ */ p(
|
|
@@ -1050,212 +986,170 @@ const gr = ({
|
|
|
1050
986
|
{
|
|
1051
987
|
type: "submit",
|
|
1052
988
|
className: M("rpf-button rpf-button-search", {
|
|
1053
|
-
"rpf-button--disabled":
|
|
989
|
+
"rpf-button--disabled": s,
|
|
1054
990
|
"rpf-button--error": n
|
|
1055
991
|
}),
|
|
1056
|
-
disabled:
|
|
1057
|
-
onClick:
|
|
992
|
+
disabled: s,
|
|
993
|
+
onClick: i,
|
|
1058
994
|
children: /* @__PURE__ */ p("span", { className: "rpf-button__icon material-symbols-sharp", children: "search" })
|
|
1059
995
|
}
|
|
1060
996
|
)
|
|
1061
997
|
] }),
|
|
1062
|
-
n && /* @__PURE__ */
|
|
998
|
+
n && /* @__PURE__ */ x("div", { className: "rpf-error-message", children: [
|
|
1063
999
|
/* @__PURE__ */ p("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "info" }),
|
|
1064
1000
|
n
|
|
1065
1001
|
] })
|
|
1066
|
-
] }) }),
|
|
1002
|
+
] }) }), vr = ({
|
|
1067
1003
|
id: e,
|
|
1068
1004
|
label: t,
|
|
1069
|
-
name:
|
|
1005
|
+
name: s,
|
|
1070
1006
|
options: n,
|
|
1071
1007
|
disabled: a = !1,
|
|
1072
1008
|
error: r = "",
|
|
1073
|
-
fullWidth:
|
|
1074
|
-
hint:
|
|
1075
|
-
onChange:
|
|
1009
|
+
fullWidth: f = !1,
|
|
1010
|
+
hint: i = "",
|
|
1011
|
+
onChange: m = () => {
|
|
1076
1012
|
},
|
|
1077
|
-
placeholder:
|
|
1078
|
-
value:
|
|
1013
|
+
placeholder: h = "",
|
|
1014
|
+
value: d = "",
|
|
1015
|
+
...E
|
|
1079
1016
|
}) => /* @__PURE__ */ p(
|
|
1080
|
-
|
|
1017
|
+
ve,
|
|
1081
1018
|
{
|
|
1082
1019
|
id: e,
|
|
1083
1020
|
disabled: a,
|
|
1084
1021
|
error: r,
|
|
1085
|
-
hint:
|
|
1022
|
+
hint: i,
|
|
1086
1023
|
label: t,
|
|
1087
|
-
children: /* @__PURE__ */
|
|
1024
|
+
children: /* @__PURE__ */ x(
|
|
1088
1025
|
"select",
|
|
1089
1026
|
{
|
|
1090
1027
|
className: M("rpf-input rpf-input-select", {
|
|
1091
1028
|
"rpf-input--error": r,
|
|
1092
|
-
"rpf-input--full-width":
|
|
1029
|
+
"rpf-input--full-width": f
|
|
1093
1030
|
}),
|
|
1094
1031
|
disabled: a,
|
|
1095
1032
|
id: e,
|
|
1096
|
-
name:
|
|
1097
|
-
onChange:
|
|
1098
|
-
|
|
1099
|
-
|
|
1033
|
+
name: s,
|
|
1034
|
+
onChange: m,
|
|
1035
|
+
value: d,
|
|
1036
|
+
...E,
|
|
1100
1037
|
children: [
|
|
1101
|
-
!
|
|
1102
|
-
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))
|
|
1103
1040
|
]
|
|
1104
1041
|
}
|
|
1105
1042
|
)
|
|
1106
1043
|
}
|
|
1107
|
-
)
|
|
1108
|
-
Qe.propTypes = {
|
|
1109
|
-
disabled: s.bool,
|
|
1110
|
-
error: s.string,
|
|
1111
|
-
fullWidth: s.bool,
|
|
1112
|
-
hint: s.oneOfType([s.string, s.object]),
|
|
1113
|
-
label: s.oneOfType([s.string, s.object]).isRequired,
|
|
1114
|
-
id: s.string.isRequired,
|
|
1115
|
-
name: s.string.isRequired,
|
|
1116
|
-
onChange: s.func,
|
|
1117
|
-
options: s.array.isRequired,
|
|
1118
|
-
placeholder: s.string,
|
|
1119
|
-
value: s.string
|
|
1120
|
-
};
|
|
1121
|
-
const er = ({
|
|
1044
|
+
), br = ({
|
|
1122
1045
|
id: e,
|
|
1123
1046
|
label: t,
|
|
1124
|
-
name:
|
|
1047
|
+
name: s,
|
|
1125
1048
|
value: n,
|
|
1126
1049
|
disabled: a = !1,
|
|
1127
1050
|
readOnly: r = !1,
|
|
1128
|
-
error:
|
|
1129
|
-
fullWidth:
|
|
1130
|
-
hint:
|
|
1131
|
-
onChange:
|
|
1051
|
+
error: f = "",
|
|
1052
|
+
fullWidth: i = !1,
|
|
1053
|
+
hint: m = "",
|
|
1054
|
+
onChange: h = () => {
|
|
1132
1055
|
}
|
|
1133
1056
|
}) => /* @__PURE__ */ p(
|
|
1134
|
-
|
|
1057
|
+
ve,
|
|
1135
1058
|
{
|
|
1136
1059
|
id: e,
|
|
1137
1060
|
disabled: a,
|
|
1138
|
-
error:
|
|
1139
|
-
hint:
|
|
1061
|
+
error: f,
|
|
1062
|
+
hint: m,
|
|
1140
1063
|
label: t,
|
|
1141
1064
|
children: /* @__PURE__ */ p(
|
|
1142
1065
|
"textarea",
|
|
1143
1066
|
{
|
|
1144
1067
|
className: M("rpf-input rpf-input-textarea", {
|
|
1145
|
-
"rpf-input--error":
|
|
1146
|
-
"rpf-input--full-width":
|
|
1068
|
+
"rpf-input--error": f,
|
|
1069
|
+
"rpf-input--full-width": i,
|
|
1147
1070
|
"rpf-input--disabled": a
|
|
1148
1071
|
}),
|
|
1149
1072
|
disabled: a,
|
|
1150
1073
|
readOnly: r,
|
|
1151
1074
|
id: e,
|
|
1152
|
-
name:
|
|
1153
|
-
onChange:
|
|
1154
|
-
type: "text",
|
|
1075
|
+
name: s,
|
|
1076
|
+
onChange: h,
|
|
1155
1077
|
value: n
|
|
1156
1078
|
}
|
|
1157
1079
|
)
|
|
1158
1080
|
}
|
|
1159
|
-
)
|
|
1160
|
-
er.propTypes = {
|
|
1161
|
-
disabled: s.bool,
|
|
1162
|
-
readOnly: s.bool,
|
|
1163
|
-
error: s.string,
|
|
1164
|
-
fullWidth: s.bool,
|
|
1165
|
-
hint: s.oneOfType([s.string, s.object]),
|
|
1166
|
-
label: s.oneOfType([s.string, s.object]).isRequired,
|
|
1167
|
-
id: s.string.isRequired,
|
|
1168
|
-
name: s.string.isRequired,
|
|
1169
|
-
onChange: s.func,
|
|
1170
|
-
value: s.string.isRequired
|
|
1171
|
-
};
|
|
1172
|
-
const rr = ({
|
|
1081
|
+
), _r = ({
|
|
1173
1082
|
id: e,
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
onChange: y = () => {
|
|
1182
|
-
}
|
|
1083
|
+
name: t,
|
|
1084
|
+
label: s,
|
|
1085
|
+
error: n = "",
|
|
1086
|
+
fullWidth: a = !1,
|
|
1087
|
+
hint: r = "",
|
|
1088
|
+
type: f = "text",
|
|
1089
|
+
...i
|
|
1183
1090
|
}) => /* @__PURE__ */ p(
|
|
1184
|
-
|
|
1091
|
+
ve,
|
|
1185
1092
|
{
|
|
1186
1093
|
id: e,
|
|
1187
|
-
disabled:
|
|
1188
|
-
error:
|
|
1189
|
-
hint:
|
|
1190
|
-
label:
|
|
1094
|
+
disabled: i.disabled,
|
|
1095
|
+
error: n,
|
|
1096
|
+
hint: r,
|
|
1097
|
+
label: s,
|
|
1191
1098
|
children: /* @__PURE__ */ p(
|
|
1192
1099
|
"input",
|
|
1193
1100
|
{
|
|
1194
1101
|
className: M("rpf-input rpf-input-text", {
|
|
1195
|
-
"rpf-input--error":
|
|
1196
|
-
"rpf-input--full-width":
|
|
1102
|
+
"rpf-input--error": n,
|
|
1103
|
+
"rpf-input--full-width": a
|
|
1197
1104
|
}),
|
|
1198
|
-
disabled: a,
|
|
1199
1105
|
id: e,
|
|
1200
|
-
name:
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
value: n
|
|
1106
|
+
name: t,
|
|
1107
|
+
type: f,
|
|
1108
|
+
...i
|
|
1204
1109
|
}
|
|
1205
1110
|
)
|
|
1206
1111
|
}
|
|
1207
1112
|
);
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
hint: s.oneOfType([s.string, s.object]),
|
|
1213
|
-
label: s.oneOfType([s.string, s.object]).isRequired,
|
|
1214
|
-
id: s.string.isRequired,
|
|
1215
|
-
name: s.string.isRequired,
|
|
1216
|
-
onChange: s.func,
|
|
1217
|
-
value: s.string.isRequired
|
|
1218
|
-
};
|
|
1219
|
-
function tr(e, t) {
|
|
1220
|
-
const i = _e(null), n = _e(null);
|
|
1221
|
-
return ce(() => {
|
|
1222
|
-
const a = i.current;
|
|
1113
|
+
function Ke(e, t) {
|
|
1114
|
+
const s = ge(null), n = ge(null);
|
|
1115
|
+
return se(() => {
|
|
1116
|
+
const a = s.current;
|
|
1223
1117
|
a && (e && !a.open ? a.showModal() : !e && a.open && a.close());
|
|
1224
|
-
}, [e]),
|
|
1225
|
-
const a =
|
|
1118
|
+
}, [e]), se(() => {
|
|
1119
|
+
const a = s.current;
|
|
1226
1120
|
if (!a) return;
|
|
1227
|
-
const r = () => t(!1),
|
|
1228
|
-
|
|
1121
|
+
const r = () => t(!1), f = (i) => {
|
|
1122
|
+
i.preventDefault(), t(!1);
|
|
1229
1123
|
};
|
|
1230
|
-
return a.addEventListener("close", r), a.addEventListener("cancel",
|
|
1231
|
-
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);
|
|
1232
1126
|
};
|
|
1233
|
-
}, [t]),
|
|
1234
|
-
const a =
|
|
1127
|
+
}, [t]), se(() => {
|
|
1128
|
+
const a = s.current, r = n.current;
|
|
1235
1129
|
if (!a || !r) return;
|
|
1236
|
-
const
|
|
1237
|
-
e && !r.contains(
|
|
1130
|
+
const f = (i) => {
|
|
1131
|
+
e && !r.contains(i.target) && t(!1);
|
|
1238
1132
|
};
|
|
1239
|
-
return a.addEventListener("mousedown",
|
|
1240
|
-
}, [e, t]), { dialogRef:
|
|
1133
|
+
return a.addEventListener("mousedown", f), () => a.removeEventListener("mousedown", f);
|
|
1134
|
+
}, [e, t]), { dialogRef: s, contentRef: n };
|
|
1241
1135
|
}
|
|
1242
|
-
const
|
|
1136
|
+
const gr = ({
|
|
1243
1137
|
isOpen: e,
|
|
1244
1138
|
setIsOpen: t,
|
|
1245
|
-
heading:
|
|
1139
|
+
heading: s,
|
|
1246
1140
|
children: n,
|
|
1247
1141
|
primaryButtonLink: a,
|
|
1248
1142
|
primaryButtonText: r,
|
|
1249
|
-
onClickPrimaryButton:
|
|
1250
|
-
secondaryButtonText:
|
|
1251
|
-
secondaryButtonLink:
|
|
1252
|
-
onClickSecondaryButton:
|
|
1253
|
-
tertiaryButtonText:
|
|
1254
|
-
tertiaryButtonLink:
|
|
1255
|
-
onClickTertiaryButton:
|
|
1256
|
-
showCloseButton:
|
|
1143
|
+
onClickPrimaryButton: f,
|
|
1144
|
+
secondaryButtonText: i,
|
|
1145
|
+
secondaryButtonLink: m,
|
|
1146
|
+
onClickSecondaryButton: h,
|
|
1147
|
+
tertiaryButtonText: d,
|
|
1148
|
+
tertiaryButtonLink: E,
|
|
1149
|
+
onClickTertiaryButton: O,
|
|
1150
|
+
showCloseButton: A = !0
|
|
1257
1151
|
}) => {
|
|
1258
|
-
const { dialogRef: I, contentRef: N } =
|
|
1152
|
+
const { dialogRef: I, contentRef: N } = Ke(e, t);
|
|
1259
1153
|
return /* @__PURE__ */ p(
|
|
1260
1154
|
"dialog",
|
|
1261
1155
|
{
|
|
@@ -1263,11 +1157,11 @@ const _r = ({
|
|
|
1263
1157
|
className: "rpf-modal",
|
|
1264
1158
|
"aria-labelledby": "modal-heading",
|
|
1265
1159
|
"aria-describedby": "modal-description",
|
|
1266
|
-
children: /* @__PURE__ */
|
|
1267
|
-
/* @__PURE__ */
|
|
1268
|
-
/* @__PURE__ */ p("h2", { className: "rpf-modal__title", id: "modal-heading", children:
|
|
1269
|
-
|
|
1270
|
-
|
|
1160
|
+
children: /* @__PURE__ */ x("div", { ref: N, className: "rpf-modal__wrapper", children: [
|
|
1161
|
+
/* @__PURE__ */ x("div", { className: "rpf-modal__header", children: [
|
|
1162
|
+
/* @__PURE__ */ p("h2", { className: "rpf-modal__title", id: "modal-heading", children: s }),
|
|
1163
|
+
A && /* @__PURE__ */ p(
|
|
1164
|
+
B,
|
|
1271
1165
|
{
|
|
1272
1166
|
icon: "close",
|
|
1273
1167
|
iconOnly: !0,
|
|
@@ -1278,31 +1172,31 @@ const _r = ({
|
|
|
1278
1172
|
)
|
|
1279
1173
|
] }),
|
|
1280
1174
|
/* @__PURE__ */ p("div", { id: "modal-description", className: "rpf-modal__content", tabIndex: 0, children: n }),
|
|
1281
|
-
/* @__PURE__ */
|
|
1175
|
+
/* @__PURE__ */ x("div", { className: "rpf-modal__buttons", children: [
|
|
1282
1176
|
/* @__PURE__ */ p(
|
|
1283
|
-
|
|
1177
|
+
B,
|
|
1284
1178
|
{
|
|
1285
1179
|
text: r,
|
|
1286
1180
|
href: a,
|
|
1287
|
-
onClick:
|
|
1181
|
+
onClick: f,
|
|
1288
1182
|
type: "primary"
|
|
1289
1183
|
}
|
|
1290
1184
|
),
|
|
1291
|
-
|
|
1292
|
-
|
|
1185
|
+
i && /* @__PURE__ */ p(
|
|
1186
|
+
B,
|
|
1293
1187
|
{
|
|
1294
|
-
text:
|
|
1295
|
-
href:
|
|
1296
|
-
onClick:
|
|
1188
|
+
text: i,
|
|
1189
|
+
href: m,
|
|
1190
|
+
onClick: h,
|
|
1297
1191
|
type: "secondary"
|
|
1298
1192
|
}
|
|
1299
1193
|
),
|
|
1300
|
-
|
|
1301
|
-
|
|
1194
|
+
d && /* @__PURE__ */ p(
|
|
1195
|
+
B,
|
|
1302
1196
|
{
|
|
1303
|
-
text:
|
|
1304
|
-
href:
|
|
1305
|
-
onClick:
|
|
1197
|
+
text: d,
|
|
1198
|
+
href: E,
|
|
1199
|
+
onClick: O,
|
|
1306
1200
|
type: "tertiary"
|
|
1307
1201
|
}
|
|
1308
1202
|
)
|
|
@@ -1310,37 +1204,37 @@ const _r = ({
|
|
|
1310
1204
|
] })
|
|
1311
1205
|
}
|
|
1312
1206
|
);
|
|
1313
|
-
},
|
|
1207
|
+
}, Er = ({
|
|
1314
1208
|
text: e = "",
|
|
1315
1209
|
percent: t,
|
|
1316
|
-
complete:
|
|
1210
|
+
complete: s = !1,
|
|
1317
1211
|
className: n
|
|
1318
1212
|
}) => /* @__PURE__ */ p(
|
|
1319
1213
|
"div",
|
|
1320
1214
|
{
|
|
1321
1215
|
className: M("rpf-progress-bar", {
|
|
1322
|
-
"rpf-progress-bar--complete":
|
|
1216
|
+
"rpf-progress-bar--complete": s,
|
|
1323
1217
|
className: n
|
|
1324
1218
|
}),
|
|
1325
|
-
children: /* @__PURE__ */
|
|
1219
|
+
children: /* @__PURE__ */ x("label", { className: "rpf-progress-bar__label", children: [
|
|
1326
1220
|
/* @__PURE__ */ p("span", { children: e }),
|
|
1327
1221
|
/* @__PURE__ */ p("progress", { className: "rpf-progress-bar__bar", value: t, max: "100", children: `${t}%` })
|
|
1328
1222
|
] })
|
|
1329
1223
|
}
|
|
1330
|
-
),
|
|
1224
|
+
), Tr = ({ children: e }) => /* @__PURE__ */ p("td", { className: "rpf-table-cell rpf-table-cell--body", children: /* @__PURE__ */ p("div", { className: "rpf-table-cell__content", children: e }) });
|
|
1331
1225
|
/**
|
|
1332
1226
|
* @license lucide-react v0.553.0 - ISC
|
|
1333
1227
|
*
|
|
1334
1228
|
* This source code is licensed under the ISC license.
|
|
1335
1229
|
* See the LICENSE file in the root directory of this source tree.
|
|
1336
1230
|
*/
|
|
1337
|
-
const
|
|
1231
|
+
const Xe = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Ge = (e) => e.replace(
|
|
1338
1232
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
1339
|
-
(t,
|
|
1233
|
+
(t, s, n) => n ? n.toUpperCase() : s.toLowerCase()
|
|
1340
1234
|
), je = (e) => {
|
|
1341
|
-
const t =
|
|
1235
|
+
const t = Ge(e);
|
|
1342
1236
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
1343
|
-
},
|
|
1237
|
+
}, qe = (...e) => e.filter((t, s, n) => !!t && t.trim() !== "" && n.indexOf(t) === s).join(" ").trim(), Qe = (e) => {
|
|
1344
1238
|
for (const t in e)
|
|
1345
1239
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
1346
1240
|
return !0;
|
|
@@ -1351,7 +1245,7 @@ const nr = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), ar = (
|
|
|
1351
1245
|
* This source code is licensed under the ISC license.
|
|
1352
1246
|
* See the LICENSE file in the root directory of this source tree.
|
|
1353
1247
|
*/
|
|
1354
|
-
var
|
|
1248
|
+
var er = {
|
|
1355
1249
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1356
1250
|
width: 24,
|
|
1357
1251
|
height: 24,
|
|
@@ -1368,31 +1262,31 @@ var ir = {
|
|
|
1368
1262
|
* This source code is licensed under the ISC license.
|
|
1369
1263
|
* See the LICENSE file in the root directory of this source tree.
|
|
1370
1264
|
*/
|
|
1371
|
-
const
|
|
1265
|
+
const rr = $e(
|
|
1372
1266
|
({
|
|
1373
1267
|
color: e = "currentColor",
|
|
1374
1268
|
size: t = 24,
|
|
1375
|
-
strokeWidth:
|
|
1269
|
+
strokeWidth: s = 2,
|
|
1376
1270
|
absoluteStrokeWidth: n,
|
|
1377
1271
|
className: a = "",
|
|
1378
1272
|
children: r,
|
|
1379
|
-
iconNode:
|
|
1380
|
-
...
|
|
1381
|
-
},
|
|
1273
|
+
iconNode: f,
|
|
1274
|
+
...i
|
|
1275
|
+
}, m) => ye(
|
|
1382
1276
|
"svg",
|
|
1383
1277
|
{
|
|
1384
|
-
ref:
|
|
1385
|
-
...
|
|
1278
|
+
ref: m,
|
|
1279
|
+
...er,
|
|
1386
1280
|
width: t,
|
|
1387
1281
|
height: t,
|
|
1388
1282
|
stroke: e,
|
|
1389
|
-
strokeWidth: n ? Number(
|
|
1390
|
-
className:
|
|
1391
|
-
...!r && !
|
|
1392
|
-
...
|
|
1283
|
+
strokeWidth: n ? Number(s) * 24 / Number(t) : s,
|
|
1284
|
+
className: qe("lucide", a),
|
|
1285
|
+
...!r && !Qe(i) && { "aria-hidden": "true" },
|
|
1286
|
+
...i
|
|
1393
1287
|
},
|
|
1394
1288
|
[
|
|
1395
|
-
...
|
|
1289
|
+
...f.map(([h, d]) => ye(h, d)),
|
|
1396
1290
|
...Array.isArray(r) ? r : [r]
|
|
1397
1291
|
]
|
|
1398
1292
|
)
|
|
@@ -1404,19 +1298,19 @@ const sr = ke(
|
|
|
1404
1298
|
* See the LICENSE file in the root directory of this source tree.
|
|
1405
1299
|
*/
|
|
1406
1300
|
const be = (e, t) => {
|
|
1407
|
-
const
|
|
1408
|
-
({ className: n, ...a }, r) =>
|
|
1301
|
+
const s = $e(
|
|
1302
|
+
({ className: n, ...a }, r) => ye(rr, {
|
|
1409
1303
|
ref: r,
|
|
1410
1304
|
iconNode: t,
|
|
1411
|
-
className:
|
|
1412
|
-
`lucide-${
|
|
1305
|
+
className: qe(
|
|
1306
|
+
`lucide-${Xe(je(e))}`,
|
|
1413
1307
|
`lucide-${e}`,
|
|
1414
1308
|
n
|
|
1415
1309
|
),
|
|
1416
1310
|
...a
|
|
1417
1311
|
})
|
|
1418
1312
|
);
|
|
1419
|
-
return
|
|
1313
|
+
return s.displayName = je(e), s;
|
|
1420
1314
|
};
|
|
1421
1315
|
/**
|
|
1422
1316
|
* @license lucide-react v0.553.0 - ISC
|
|
@@ -1424,60 +1318,60 @@ const be = (e, t) => {
|
|
|
1424
1318
|
* This source code is licensed under the ISC license.
|
|
1425
1319
|
* See the LICENSE file in the root directory of this source tree.
|
|
1426
1320
|
*/
|
|
1427
|
-
const
|
|
1321
|
+
const tr = [
|
|
1428
1322
|
["path", { d: "m3 16 4 4 4-4", key: "1co6wj" }],
|
|
1429
1323
|
["path", { d: "M7 20V4", key: "1yoxec" }],
|
|
1430
1324
|
["path", { d: "m21 8-4-4-4 4", key: "1c9v7m" }],
|
|
1431
1325
|
["path", { d: "M17 4v16", key: "7dpous" }]
|
|
1432
|
-
],
|
|
1326
|
+
], nr = be("arrow-down-up", tr);
|
|
1433
1327
|
/**
|
|
1434
1328
|
* @license lucide-react v0.553.0 - ISC
|
|
1435
1329
|
*
|
|
1436
1330
|
* This source code is licensed under the ISC license.
|
|
1437
1331
|
* See the LICENSE file in the root directory of this source tree.
|
|
1438
1332
|
*/
|
|
1439
|
-
const
|
|
1333
|
+
const ar = [
|
|
1440
1334
|
["path", { d: "m3 16 4 4 4-4", key: "1co6wj" }],
|
|
1441
1335
|
["path", { d: "M7 20V4", key: "1yoxec" }],
|
|
1442
1336
|
["path", { d: "M11 4h10", key: "1w87gc" }],
|
|
1443
1337
|
["path", { d: "M11 8h7", key: "djye34" }],
|
|
1444
1338
|
["path", { d: "M11 12h4", key: "q8tih4" }]
|
|
1445
|
-
],
|
|
1339
|
+
], or = be("arrow-down-wide-narrow", ar);
|
|
1446
1340
|
/**
|
|
1447
1341
|
* @license lucide-react v0.553.0 - ISC
|
|
1448
1342
|
*
|
|
1449
1343
|
* This source code is licensed under the ISC license.
|
|
1450
1344
|
* See the LICENSE file in the root directory of this source tree.
|
|
1451
1345
|
*/
|
|
1452
|
-
const
|
|
1346
|
+
const sr = [
|
|
1453
1347
|
["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
|
|
1454
1348
|
["path", { d: "M7 4v16", key: "1glfcx" }],
|
|
1455
1349
|
["path", { d: "M11 12h4", key: "q8tih4" }],
|
|
1456
1350
|
["path", { d: "M11 16h7", key: "uosisv" }],
|
|
1457
1351
|
["path", { d: "M11 20h10", key: "jvxblo" }]
|
|
1458
|
-
],
|
|
1352
|
+
], ir = be("arrow-up-narrow-wide", sr), cr = (e, t) => {
|
|
1459
1353
|
if (e)
|
|
1460
1354
|
return t === "up" ? "ascending" : t === "down" ? "descending" : "none";
|
|
1461
1355
|
}, wr = ({
|
|
1462
1356
|
sortDirection: e,
|
|
1463
1357
|
children: t,
|
|
1464
|
-
onClick:
|
|
1358
|
+
onClick: s
|
|
1465
1359
|
}) => {
|
|
1466
|
-
const n = !!
|
|
1467
|
-
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__ */
|
|
1360
|
+
const n = !!s, a = e === "up" ? ir : e === "down" ? or : nr, r = cr(n, e);
|
|
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: [
|
|
1468
1362
|
t,
|
|
1469
1363
|
/* @__PURE__ */ p(a, { size: 20 })
|
|
1470
|
-
] }) : /* @__PURE__ */ p(
|
|
1471
|
-
},
|
|
1364
|
+
] }) : /* @__PURE__ */ p(me, { children: t }) }) });
|
|
1365
|
+
}, Sr = ({ headerRow: e, bodyRows: t, fullWidth: s }) => /* @__PURE__ */ p(
|
|
1472
1366
|
"div",
|
|
1473
1367
|
{
|
|
1474
1368
|
"data-testid": "table-container",
|
|
1475
|
-
className: M("rpf-table", { "rpf-table--full-width":
|
|
1476
|
-
children: /* @__PURE__ */
|
|
1369
|
+
className: M("rpf-table", { "rpf-table--full-width": s }),
|
|
1370
|
+
children: /* @__PURE__ */ x(
|
|
1477
1371
|
"table",
|
|
1478
1372
|
{
|
|
1479
1373
|
className: M("rpf-table__table", {
|
|
1480
|
-
"rpf-table__table--full-width":
|
|
1374
|
+
"rpf-table__table--full-width": s
|
|
1481
1375
|
}),
|
|
1482
1376
|
children: [
|
|
1483
1377
|
/* @__PURE__ */ p("thead", { children: /* @__PURE__ */ p("tr", { className: "rpf-table-row", children: e }) }),
|
|
@@ -1489,18 +1383,18 @@ const dr = [
|
|
|
1489
1383
|
), Cr = ({
|
|
1490
1384
|
text: e,
|
|
1491
1385
|
variant: t,
|
|
1492
|
-
secondary:
|
|
1386
|
+
secondary: s,
|
|
1493
1387
|
icon: n,
|
|
1494
1388
|
iconPosition: a
|
|
1495
1389
|
}) => {
|
|
1496
1390
|
const r = n ? /* @__PURE__ */ p("span", { className: "rpf-tag__icon material-symbols-sharp", children: n }) : null;
|
|
1497
1391
|
n && !a && (a = "left");
|
|
1498
|
-
const
|
|
1499
|
-
return /* @__PURE__ */
|
|
1392
|
+
const f = t && t !== "default" ? `rpf-tag--${t}` : null;
|
|
1393
|
+
return /* @__PURE__ */ x(
|
|
1500
1394
|
"span",
|
|
1501
1395
|
{
|
|
1502
|
-
className: M("rpf-tag",
|
|
1503
|
-
"rpf-tag--secondary":
|
|
1396
|
+
className: M("rpf-tag", f, {
|
|
1397
|
+
"rpf-tag--secondary": s
|
|
1504
1398
|
}),
|
|
1505
1399
|
children: [
|
|
1506
1400
|
a === "left" && r,
|
|
@@ -1512,21 +1406,21 @@ const dr = [
|
|
|
1512
1406
|
};
|
|
1513
1407
|
export {
|
|
1514
1408
|
Ze as Accordion,
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1409
|
+
ur as Alert,
|
|
1410
|
+
B as Button,
|
|
1411
|
+
pr as CheckboxInput,
|
|
1412
|
+
dr as Fieldset,
|
|
1413
|
+
ve as InputField,
|
|
1414
|
+
yr as InputLabel,
|
|
1415
|
+
gr as Modal,
|
|
1416
|
+
Er as ProgressBar,
|
|
1417
|
+
mr as RadioInput,
|
|
1418
|
+
hr as SearchInput,
|
|
1419
|
+
vr as SelectInput,
|
|
1420
|
+
Sr as Table,
|
|
1421
|
+
Tr as TableBodyCell,
|
|
1528
1422
|
wr as TableHeaderCell,
|
|
1529
1423
|
Cr as Tag,
|
|
1530
|
-
|
|
1531
|
-
|
|
1424
|
+
_r as TextInput,
|
|
1425
|
+
br as TextareaInput
|
|
1532
1426
|
};
|