@solexllc/usx-react 0.1.5 → 0.1.6
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/dist/index.cjs +92 -1264
- package/dist/index.js +94 -1266
- package/package.json +4 -4
- package/src/components/accordion/Accordion.tsx +105 -0
- package/src/components/accordion/accordion.django.html +1 -1
- package/src/components/accordion/config.json +6 -1
- package/src/components/banner/Banner.tsx +35 -27
- package/src/components/banner/banner.django.html +1 -1
- package/src/components/banner/config.json +4 -0
- package/src/components/date-picker/{DatePicker.jsx → DatePicker.tsx} +12 -17
- package/src/components/date-range-picker/{DateRangePicker.jsx → DateRangePicker.tsx} +21 -21
- package/src/components/fieldset/Fieldset.tsx +1 -1
- package/src/components/file-input/{FileInput.jsx → FileInput.tsx} +31 -34
- package/src/components/file-list/{FileList.jsx → FileList.tsx} +24 -24
- package/src/components/header/{HeaderBranding.jsx → HeaderBranding.tsx} +0 -1
- package/src/components/hero/Hero.tsx +49 -7
- package/src/components/hero/config.json +45 -0
- package/src/components/hero/hero.django.html +16 -5
- package/src/components/hero/hero.html +19 -0
- package/src/components/in-page-nav/{InPageNav.jsx → InPageNav.tsx} +14 -18
- package/src/components/language-selector/{LanguageSelector.jsx → LanguageSelector.tsx} +40 -69
- package/src/components/legend/Legend.tsx +1 -1
- package/src/components/memorable-date/{MemorableDate.jsx → MemorableDate.tsx} +27 -27
- package/src/components/page/{Page.jsx → Page.tsx} +7 -11
- package/src/components/range-slider/{RangeSlider.jsx → RangeSlider.tsx} +13 -21
- package/src/components/select/Select.tsx +2 -2
- package/src/components/time-picker/{TimePicker.jsx → TimePicker.tsx} +14 -19
- package/src/index.js +11 -11
- package/src/components/accordion/Accordion.jsx +0 -170
package/dist/index.cjs
CHANGED
|
@@ -5,951 +5,6 @@
|
|
|
5
5
|
function getDefaultExportFromCjs(x) {
|
|
6
6
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
7
7
|
}
|
|
8
|
-
var propTypes = { exports: {} };
|
|
9
|
-
var reactIs = { exports: {} };
|
|
10
|
-
var reactIs_production_min = {};
|
|
11
|
-
/** @license React v16.13.1
|
|
12
|
-
* react-is.production.min.js
|
|
13
|
-
*
|
|
14
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
15
|
-
*
|
|
16
|
-
* This source code is licensed under the MIT license found in the
|
|
17
|
-
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/
|
|
19
|
-
var hasRequiredReactIs_production_min;
|
|
20
|
-
function requireReactIs_production_min() {
|
|
21
|
-
if (hasRequiredReactIs_production_min) return reactIs_production_min;
|
|
22
|
-
hasRequiredReactIs_production_min = 1;
|
|
23
|
-
var b = "function" === typeof Symbol && Symbol.for, c = b ? Symbol.for("react.element") : 60103, d = b ? Symbol.for("react.portal") : 60106, e = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g = b ? Symbol.for("react.profiler") : 60114, h = b ? Symbol.for("react.provider") : 60109, k = b ? Symbol.for("react.context") : 60110, l = b ? Symbol.for("react.async_mode") : 60111, m = b ? Symbol.for("react.concurrent_mode") : 60111, n = b ? Symbol.for("react.forward_ref") : 60112, p = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r = b ? Symbol.for("react.memo") : 60115, t = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119;
|
|
24
|
-
function z(a) {
|
|
25
|
-
if ("object" === typeof a && null !== a) {
|
|
26
|
-
var u = a.$$typeof;
|
|
27
|
-
switch (u) {
|
|
28
|
-
case c:
|
|
29
|
-
switch (a = a.type, a) {
|
|
30
|
-
case l:
|
|
31
|
-
case m:
|
|
32
|
-
case e:
|
|
33
|
-
case g:
|
|
34
|
-
case f:
|
|
35
|
-
case p:
|
|
36
|
-
return a;
|
|
37
|
-
default:
|
|
38
|
-
switch (a = a && a.$$typeof, a) {
|
|
39
|
-
case k:
|
|
40
|
-
case n:
|
|
41
|
-
case t:
|
|
42
|
-
case r:
|
|
43
|
-
case h:
|
|
44
|
-
return a;
|
|
45
|
-
default:
|
|
46
|
-
return u;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
case d:
|
|
50
|
-
return u;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
function A(a) {
|
|
55
|
-
return z(a) === m;
|
|
56
|
-
}
|
|
57
|
-
reactIs_production_min.AsyncMode = l;
|
|
58
|
-
reactIs_production_min.ConcurrentMode = m;
|
|
59
|
-
reactIs_production_min.ContextConsumer = k;
|
|
60
|
-
reactIs_production_min.ContextProvider = h;
|
|
61
|
-
reactIs_production_min.Element = c;
|
|
62
|
-
reactIs_production_min.ForwardRef = n;
|
|
63
|
-
reactIs_production_min.Fragment = e;
|
|
64
|
-
reactIs_production_min.Lazy = t;
|
|
65
|
-
reactIs_production_min.Memo = r;
|
|
66
|
-
reactIs_production_min.Portal = d;
|
|
67
|
-
reactIs_production_min.Profiler = g;
|
|
68
|
-
reactIs_production_min.StrictMode = f;
|
|
69
|
-
reactIs_production_min.Suspense = p;
|
|
70
|
-
reactIs_production_min.isAsyncMode = function(a) {
|
|
71
|
-
return A(a) || z(a) === l;
|
|
72
|
-
};
|
|
73
|
-
reactIs_production_min.isConcurrentMode = A;
|
|
74
|
-
reactIs_production_min.isContextConsumer = function(a) {
|
|
75
|
-
return z(a) === k;
|
|
76
|
-
};
|
|
77
|
-
reactIs_production_min.isContextProvider = function(a) {
|
|
78
|
-
return z(a) === h;
|
|
79
|
-
};
|
|
80
|
-
reactIs_production_min.isElement = function(a) {
|
|
81
|
-
return "object" === typeof a && null !== a && a.$$typeof === c;
|
|
82
|
-
};
|
|
83
|
-
reactIs_production_min.isForwardRef = function(a) {
|
|
84
|
-
return z(a) === n;
|
|
85
|
-
};
|
|
86
|
-
reactIs_production_min.isFragment = function(a) {
|
|
87
|
-
return z(a) === e;
|
|
88
|
-
};
|
|
89
|
-
reactIs_production_min.isLazy = function(a) {
|
|
90
|
-
return z(a) === t;
|
|
91
|
-
};
|
|
92
|
-
reactIs_production_min.isMemo = function(a) {
|
|
93
|
-
return z(a) === r;
|
|
94
|
-
};
|
|
95
|
-
reactIs_production_min.isPortal = function(a) {
|
|
96
|
-
return z(a) === d;
|
|
97
|
-
};
|
|
98
|
-
reactIs_production_min.isProfiler = function(a) {
|
|
99
|
-
return z(a) === g;
|
|
100
|
-
};
|
|
101
|
-
reactIs_production_min.isStrictMode = function(a) {
|
|
102
|
-
return z(a) === f;
|
|
103
|
-
};
|
|
104
|
-
reactIs_production_min.isSuspense = function(a) {
|
|
105
|
-
return z(a) === p;
|
|
106
|
-
};
|
|
107
|
-
reactIs_production_min.isValidElementType = function(a) {
|
|
108
|
-
return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
|
|
109
|
-
};
|
|
110
|
-
reactIs_production_min.typeOf = z;
|
|
111
|
-
return reactIs_production_min;
|
|
112
|
-
}
|
|
113
|
-
var reactIs_development = {};
|
|
114
|
-
/** @license React v16.13.1
|
|
115
|
-
* react-is.development.js
|
|
116
|
-
*
|
|
117
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
118
|
-
*
|
|
119
|
-
* This source code is licensed under the MIT license found in the
|
|
120
|
-
* LICENSE file in the root directory of this source tree.
|
|
121
|
-
*/
|
|
122
|
-
var hasRequiredReactIs_development;
|
|
123
|
-
function requireReactIs_development() {
|
|
124
|
-
if (hasRequiredReactIs_development) return reactIs_development;
|
|
125
|
-
hasRequiredReactIs_development = 1;
|
|
126
|
-
if (process.env.NODE_ENV !== "production") {
|
|
127
|
-
(function() {
|
|
128
|
-
var hasSymbol = typeof Symbol === "function" && Symbol.for;
|
|
129
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
|
|
130
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
|
|
131
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
|
|
132
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
|
|
133
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
|
|
134
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
|
|
135
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
|
|
136
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
|
|
137
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
|
|
138
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
|
|
139
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
|
|
140
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
|
|
141
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
|
|
142
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
|
|
143
|
-
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
|
|
144
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
|
|
145
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
|
|
146
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
|
|
147
|
-
function isValidElementType(type) {
|
|
148
|
-
return typeof type === "string" || typeof type === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
149
|
-
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
150
|
-
}
|
|
151
|
-
function typeOf(object) {
|
|
152
|
-
if (typeof object === "object" && object !== null) {
|
|
153
|
-
var $$typeof = object.$$typeof;
|
|
154
|
-
switch ($$typeof) {
|
|
155
|
-
case REACT_ELEMENT_TYPE:
|
|
156
|
-
var type = object.type;
|
|
157
|
-
switch (type) {
|
|
158
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
159
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
160
|
-
case REACT_FRAGMENT_TYPE:
|
|
161
|
-
case REACT_PROFILER_TYPE:
|
|
162
|
-
case REACT_STRICT_MODE_TYPE:
|
|
163
|
-
case REACT_SUSPENSE_TYPE:
|
|
164
|
-
return type;
|
|
165
|
-
default:
|
|
166
|
-
var $$typeofType = type && type.$$typeof;
|
|
167
|
-
switch ($$typeofType) {
|
|
168
|
-
case REACT_CONTEXT_TYPE:
|
|
169
|
-
case REACT_FORWARD_REF_TYPE:
|
|
170
|
-
case REACT_LAZY_TYPE:
|
|
171
|
-
case REACT_MEMO_TYPE:
|
|
172
|
-
case REACT_PROVIDER_TYPE:
|
|
173
|
-
return $$typeofType;
|
|
174
|
-
default:
|
|
175
|
-
return $$typeof;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
case REACT_PORTAL_TYPE:
|
|
179
|
-
return $$typeof;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
return void 0;
|
|
183
|
-
}
|
|
184
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
185
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
186
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
187
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
188
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
189
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
190
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
191
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
192
|
-
var Memo = REACT_MEMO_TYPE;
|
|
193
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
194
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
195
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
196
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
197
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
198
|
-
function isAsyncMode(object) {
|
|
199
|
-
{
|
|
200
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
201
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
202
|
-
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.");
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
206
|
-
}
|
|
207
|
-
function isConcurrentMode(object) {
|
|
208
|
-
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
209
|
-
}
|
|
210
|
-
function isContextConsumer(object) {
|
|
211
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
212
|
-
}
|
|
213
|
-
function isContextProvider(object) {
|
|
214
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
215
|
-
}
|
|
216
|
-
function isElement(object) {
|
|
217
|
-
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
218
|
-
}
|
|
219
|
-
function isForwardRef(object) {
|
|
220
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
221
|
-
}
|
|
222
|
-
function isFragment(object) {
|
|
223
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
224
|
-
}
|
|
225
|
-
function isLazy(object) {
|
|
226
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
227
|
-
}
|
|
228
|
-
function isMemo(object) {
|
|
229
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
230
|
-
}
|
|
231
|
-
function isPortal(object) {
|
|
232
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
233
|
-
}
|
|
234
|
-
function isProfiler(object) {
|
|
235
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
236
|
-
}
|
|
237
|
-
function isStrictMode(object) {
|
|
238
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
239
|
-
}
|
|
240
|
-
function isSuspense(object) {
|
|
241
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
242
|
-
}
|
|
243
|
-
reactIs_development.AsyncMode = AsyncMode;
|
|
244
|
-
reactIs_development.ConcurrentMode = ConcurrentMode;
|
|
245
|
-
reactIs_development.ContextConsumer = ContextConsumer;
|
|
246
|
-
reactIs_development.ContextProvider = ContextProvider;
|
|
247
|
-
reactIs_development.Element = Element;
|
|
248
|
-
reactIs_development.ForwardRef = ForwardRef;
|
|
249
|
-
reactIs_development.Fragment = Fragment;
|
|
250
|
-
reactIs_development.Lazy = Lazy;
|
|
251
|
-
reactIs_development.Memo = Memo;
|
|
252
|
-
reactIs_development.Portal = Portal;
|
|
253
|
-
reactIs_development.Profiler = Profiler;
|
|
254
|
-
reactIs_development.StrictMode = StrictMode;
|
|
255
|
-
reactIs_development.Suspense = Suspense;
|
|
256
|
-
reactIs_development.isAsyncMode = isAsyncMode;
|
|
257
|
-
reactIs_development.isConcurrentMode = isConcurrentMode;
|
|
258
|
-
reactIs_development.isContextConsumer = isContextConsumer;
|
|
259
|
-
reactIs_development.isContextProvider = isContextProvider;
|
|
260
|
-
reactIs_development.isElement = isElement;
|
|
261
|
-
reactIs_development.isForwardRef = isForwardRef;
|
|
262
|
-
reactIs_development.isFragment = isFragment;
|
|
263
|
-
reactIs_development.isLazy = isLazy;
|
|
264
|
-
reactIs_development.isMemo = isMemo;
|
|
265
|
-
reactIs_development.isPortal = isPortal;
|
|
266
|
-
reactIs_development.isProfiler = isProfiler;
|
|
267
|
-
reactIs_development.isStrictMode = isStrictMode;
|
|
268
|
-
reactIs_development.isSuspense = isSuspense;
|
|
269
|
-
reactIs_development.isValidElementType = isValidElementType;
|
|
270
|
-
reactIs_development.typeOf = typeOf;
|
|
271
|
-
})();
|
|
272
|
-
}
|
|
273
|
-
return reactIs_development;
|
|
274
|
-
}
|
|
275
|
-
var hasRequiredReactIs;
|
|
276
|
-
function requireReactIs() {
|
|
277
|
-
if (hasRequiredReactIs) return reactIs.exports;
|
|
278
|
-
hasRequiredReactIs = 1;
|
|
279
|
-
if (process.env.NODE_ENV === "production") {
|
|
280
|
-
reactIs.exports = requireReactIs_production_min();
|
|
281
|
-
} else {
|
|
282
|
-
reactIs.exports = requireReactIs_development();
|
|
283
|
-
}
|
|
284
|
-
return reactIs.exports;
|
|
285
|
-
}
|
|
286
|
-
/*
|
|
287
|
-
object-assign
|
|
288
|
-
(c) Sindre Sorhus
|
|
289
|
-
@license MIT
|
|
290
|
-
*/
|
|
291
|
-
var objectAssign;
|
|
292
|
-
var hasRequiredObjectAssign;
|
|
293
|
-
function requireObjectAssign() {
|
|
294
|
-
if (hasRequiredObjectAssign) return objectAssign;
|
|
295
|
-
hasRequiredObjectAssign = 1;
|
|
296
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
297
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
298
|
-
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
299
|
-
function toObject(val) {
|
|
300
|
-
if (val === null || val === void 0) {
|
|
301
|
-
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
302
|
-
}
|
|
303
|
-
return Object(val);
|
|
304
|
-
}
|
|
305
|
-
function shouldUseNative() {
|
|
306
|
-
try {
|
|
307
|
-
if (!Object.assign) {
|
|
308
|
-
return false;
|
|
309
|
-
}
|
|
310
|
-
var test1 = new String("abc");
|
|
311
|
-
test1[5] = "de";
|
|
312
|
-
if (Object.getOwnPropertyNames(test1)[0] === "5") {
|
|
313
|
-
return false;
|
|
314
|
-
}
|
|
315
|
-
var test2 = {};
|
|
316
|
-
for (var i = 0; i < 10; i++) {
|
|
317
|
-
test2["_" + String.fromCharCode(i)] = i;
|
|
318
|
-
}
|
|
319
|
-
var order2 = Object.getOwnPropertyNames(test2).map(function(n) {
|
|
320
|
-
return test2[n];
|
|
321
|
-
});
|
|
322
|
-
if (order2.join("") !== "0123456789") {
|
|
323
|
-
return false;
|
|
324
|
-
}
|
|
325
|
-
var test3 = {};
|
|
326
|
-
"abcdefghijklmnopqrst".split("").forEach(function(letter) {
|
|
327
|
-
test3[letter] = letter;
|
|
328
|
-
});
|
|
329
|
-
if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
|
|
330
|
-
return false;
|
|
331
|
-
}
|
|
332
|
-
return true;
|
|
333
|
-
} catch (err) {
|
|
334
|
-
return false;
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
objectAssign = shouldUseNative() ? Object.assign : function(target, source) {
|
|
338
|
-
var from;
|
|
339
|
-
var to = toObject(target);
|
|
340
|
-
var symbols;
|
|
341
|
-
for (var s = 1; s < arguments.length; s++) {
|
|
342
|
-
from = Object(arguments[s]);
|
|
343
|
-
for (var key in from) {
|
|
344
|
-
if (hasOwnProperty.call(from, key)) {
|
|
345
|
-
to[key] = from[key];
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
if (getOwnPropertySymbols) {
|
|
349
|
-
symbols = getOwnPropertySymbols(from);
|
|
350
|
-
for (var i = 0; i < symbols.length; i++) {
|
|
351
|
-
if (propIsEnumerable.call(from, symbols[i])) {
|
|
352
|
-
to[symbols[i]] = from[symbols[i]];
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
return to;
|
|
358
|
-
};
|
|
359
|
-
return objectAssign;
|
|
360
|
-
}
|
|
361
|
-
var ReactPropTypesSecret_1;
|
|
362
|
-
var hasRequiredReactPropTypesSecret;
|
|
363
|
-
function requireReactPropTypesSecret() {
|
|
364
|
-
if (hasRequiredReactPropTypesSecret) return ReactPropTypesSecret_1;
|
|
365
|
-
hasRequiredReactPropTypesSecret = 1;
|
|
366
|
-
var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
367
|
-
ReactPropTypesSecret_1 = ReactPropTypesSecret;
|
|
368
|
-
return ReactPropTypesSecret_1;
|
|
369
|
-
}
|
|
370
|
-
var has;
|
|
371
|
-
var hasRequiredHas;
|
|
372
|
-
function requireHas() {
|
|
373
|
-
if (hasRequiredHas) return has;
|
|
374
|
-
hasRequiredHas = 1;
|
|
375
|
-
has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
376
|
-
return has;
|
|
377
|
-
}
|
|
378
|
-
var checkPropTypes_1;
|
|
379
|
-
var hasRequiredCheckPropTypes;
|
|
380
|
-
function requireCheckPropTypes() {
|
|
381
|
-
if (hasRequiredCheckPropTypes) return checkPropTypes_1;
|
|
382
|
-
hasRequiredCheckPropTypes = 1;
|
|
383
|
-
var printWarning = function() {
|
|
384
|
-
};
|
|
385
|
-
if (process.env.NODE_ENV !== "production") {
|
|
386
|
-
var ReactPropTypesSecret = /* @__PURE__ */ requireReactPropTypesSecret();
|
|
387
|
-
var loggedTypeFailures = {};
|
|
388
|
-
var has2 = /* @__PURE__ */ requireHas();
|
|
389
|
-
printWarning = function(text) {
|
|
390
|
-
var message = "Warning: " + text;
|
|
391
|
-
if (typeof console !== "undefined") {
|
|
392
|
-
console.error(message);
|
|
393
|
-
}
|
|
394
|
-
try {
|
|
395
|
-
throw new Error(message);
|
|
396
|
-
} catch (x) {
|
|
397
|
-
}
|
|
398
|
-
};
|
|
399
|
-
}
|
|
400
|
-
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
401
|
-
if (process.env.NODE_ENV !== "production") {
|
|
402
|
-
for (var typeSpecName in typeSpecs) {
|
|
403
|
-
if (has2(typeSpecs, typeSpecName)) {
|
|
404
|
-
var error;
|
|
405
|
-
try {
|
|
406
|
-
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
407
|
-
var err = Error(
|
|
408
|
-
(componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
409
|
-
);
|
|
410
|
-
err.name = "Invariant Violation";
|
|
411
|
-
throw err;
|
|
412
|
-
}
|
|
413
|
-
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
414
|
-
} catch (ex) {
|
|
415
|
-
error = ex;
|
|
416
|
-
}
|
|
417
|
-
if (error && !(error instanceof Error)) {
|
|
418
|
-
printWarning(
|
|
419
|
-
(componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
420
|
-
);
|
|
421
|
-
}
|
|
422
|
-
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
423
|
-
loggedTypeFailures[error.message] = true;
|
|
424
|
-
var stack = getStack ? getStack() : "";
|
|
425
|
-
printWarning(
|
|
426
|
-
"Failed " + location + " type: " + error.message + (stack != null ? stack : "")
|
|
427
|
-
);
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
checkPropTypes.resetWarningCache = function() {
|
|
434
|
-
if (process.env.NODE_ENV !== "production") {
|
|
435
|
-
loggedTypeFailures = {};
|
|
436
|
-
}
|
|
437
|
-
};
|
|
438
|
-
checkPropTypes_1 = checkPropTypes;
|
|
439
|
-
return checkPropTypes_1;
|
|
440
|
-
}
|
|
441
|
-
var factoryWithTypeCheckers;
|
|
442
|
-
var hasRequiredFactoryWithTypeCheckers;
|
|
443
|
-
function requireFactoryWithTypeCheckers() {
|
|
444
|
-
if (hasRequiredFactoryWithTypeCheckers) return factoryWithTypeCheckers;
|
|
445
|
-
hasRequiredFactoryWithTypeCheckers = 1;
|
|
446
|
-
var ReactIs = requireReactIs();
|
|
447
|
-
var assign = requireObjectAssign();
|
|
448
|
-
var ReactPropTypesSecret = /* @__PURE__ */ requireReactPropTypesSecret();
|
|
449
|
-
var has2 = /* @__PURE__ */ requireHas();
|
|
450
|
-
var checkPropTypes = /* @__PURE__ */ requireCheckPropTypes();
|
|
451
|
-
var printWarning = function() {
|
|
452
|
-
};
|
|
453
|
-
if (process.env.NODE_ENV !== "production") {
|
|
454
|
-
printWarning = function(text) {
|
|
455
|
-
var message = "Warning: " + text;
|
|
456
|
-
if (typeof console !== "undefined") {
|
|
457
|
-
console.error(message);
|
|
458
|
-
}
|
|
459
|
-
try {
|
|
460
|
-
throw new Error(message);
|
|
461
|
-
} catch (x) {
|
|
462
|
-
}
|
|
463
|
-
};
|
|
464
|
-
}
|
|
465
|
-
function emptyFunctionThatReturnsNull() {
|
|
466
|
-
return null;
|
|
467
|
-
}
|
|
468
|
-
factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
469
|
-
var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
|
|
470
|
-
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
471
|
-
function getIteratorFn(maybeIterable) {
|
|
472
|
-
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
|
473
|
-
if (typeof iteratorFn === "function") {
|
|
474
|
-
return iteratorFn;
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
var ANONYMOUS = "<<anonymous>>";
|
|
478
|
-
var ReactPropTypes = {
|
|
479
|
-
array: createPrimitiveTypeChecker("array"),
|
|
480
|
-
bigint: createPrimitiveTypeChecker("bigint"),
|
|
481
|
-
bool: createPrimitiveTypeChecker("boolean"),
|
|
482
|
-
func: createPrimitiveTypeChecker("function"),
|
|
483
|
-
number: createPrimitiveTypeChecker("number"),
|
|
484
|
-
object: createPrimitiveTypeChecker("object"),
|
|
485
|
-
string: createPrimitiveTypeChecker("string"),
|
|
486
|
-
symbol: createPrimitiveTypeChecker("symbol"),
|
|
487
|
-
any: createAnyTypeChecker(),
|
|
488
|
-
arrayOf: createArrayOfTypeChecker,
|
|
489
|
-
element: createElementTypeChecker(),
|
|
490
|
-
elementType: createElementTypeTypeChecker(),
|
|
491
|
-
instanceOf: createInstanceTypeChecker,
|
|
492
|
-
node: createNodeChecker(),
|
|
493
|
-
objectOf: createObjectOfTypeChecker,
|
|
494
|
-
oneOf: createEnumTypeChecker,
|
|
495
|
-
oneOfType: createUnionTypeChecker,
|
|
496
|
-
shape: createShapeTypeChecker,
|
|
497
|
-
exact: createStrictShapeTypeChecker
|
|
498
|
-
};
|
|
499
|
-
function is(x, y) {
|
|
500
|
-
if (x === y) {
|
|
501
|
-
return x !== 0 || 1 / x === 1 / y;
|
|
502
|
-
} else {
|
|
503
|
-
return x !== x && y !== y;
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
function PropTypeError(message, data) {
|
|
507
|
-
this.message = message;
|
|
508
|
-
this.data = data && typeof data === "object" ? data : {};
|
|
509
|
-
this.stack = "";
|
|
510
|
-
}
|
|
511
|
-
PropTypeError.prototype = Error.prototype;
|
|
512
|
-
function createChainableTypeChecker(validate) {
|
|
513
|
-
if (process.env.NODE_ENV !== "production") {
|
|
514
|
-
var manualPropTypeCallCache = {};
|
|
515
|
-
var manualPropTypeWarningCount = 0;
|
|
516
|
-
}
|
|
517
|
-
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
518
|
-
componentName = componentName || ANONYMOUS;
|
|
519
|
-
propFullName = propFullName || propName;
|
|
520
|
-
if (secret !== ReactPropTypesSecret) {
|
|
521
|
-
if (throwOnDirectAccess) {
|
|
522
|
-
var err = new Error(
|
|
523
|
-
"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"
|
|
524
|
-
);
|
|
525
|
-
err.name = "Invariant Violation";
|
|
526
|
-
throw err;
|
|
527
|
-
} else if (process.env.NODE_ENV !== "production" && typeof console !== "undefined") {
|
|
528
|
-
var cacheKey = componentName + ":" + propName;
|
|
529
|
-
if (!manualPropTypeCallCache[cacheKey] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
530
|
-
manualPropTypeWarningCount < 3) {
|
|
531
|
-
printWarning(
|
|
532
|
-
"You are manually calling a React.PropTypes validation function for the `" + propFullName + "` prop on `" + componentName + "`. 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."
|
|
533
|
-
);
|
|
534
|
-
manualPropTypeCallCache[cacheKey] = true;
|
|
535
|
-
manualPropTypeWarningCount++;
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
if (props[propName] == null) {
|
|
540
|
-
if (isRequired) {
|
|
541
|
-
if (props[propName] === null) {
|
|
542
|
-
return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required " + ("in `" + componentName + "`, but its value is `null`."));
|
|
543
|
-
}
|
|
544
|
-
return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required in " + ("`" + componentName + "`, but its value is `undefined`."));
|
|
545
|
-
}
|
|
546
|
-
return null;
|
|
547
|
-
} else {
|
|
548
|
-
return validate(props, propName, componentName, location, propFullName);
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
var chainedCheckType = checkType.bind(null, false);
|
|
552
|
-
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
553
|
-
return chainedCheckType;
|
|
554
|
-
}
|
|
555
|
-
function createPrimitiveTypeChecker(expectedType) {
|
|
556
|
-
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
557
|
-
var propValue = props[propName];
|
|
558
|
-
var propType = getPropType(propValue);
|
|
559
|
-
if (propType !== expectedType) {
|
|
560
|
-
var preciseType = getPreciseType(propValue);
|
|
561
|
-
return new PropTypeError(
|
|
562
|
-
"Invalid " + location + " `" + propFullName + "` of type " + ("`" + preciseType + "` supplied to `" + componentName + "`, expected ") + ("`" + expectedType + "`."),
|
|
563
|
-
{ expectedType }
|
|
564
|
-
);
|
|
565
|
-
}
|
|
566
|
-
return null;
|
|
567
|
-
}
|
|
568
|
-
return createChainableTypeChecker(validate);
|
|
569
|
-
}
|
|
570
|
-
function createAnyTypeChecker() {
|
|
571
|
-
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
|
572
|
-
}
|
|
573
|
-
function createArrayOfTypeChecker(typeChecker) {
|
|
574
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
575
|
-
if (typeof typeChecker !== "function") {
|
|
576
|
-
return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside arrayOf.");
|
|
577
|
-
}
|
|
578
|
-
var propValue = props[propName];
|
|
579
|
-
if (!Array.isArray(propValue)) {
|
|
580
|
-
var propType = getPropType(propValue);
|
|
581
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array."));
|
|
582
|
-
}
|
|
583
|
-
for (var i = 0; i < propValue.length; i++) {
|
|
584
|
-
var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret);
|
|
585
|
-
if (error instanceof Error) {
|
|
586
|
-
return error;
|
|
587
|
-
}
|
|
588
|
-
}
|
|
589
|
-
return null;
|
|
590
|
-
}
|
|
591
|
-
return createChainableTypeChecker(validate);
|
|
592
|
-
}
|
|
593
|
-
function createElementTypeChecker() {
|
|
594
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
595
|
-
var propValue = props[propName];
|
|
596
|
-
if (!isValidElement(propValue)) {
|
|
597
|
-
var propType = getPropType(propValue);
|
|
598
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement."));
|
|
599
|
-
}
|
|
600
|
-
return null;
|
|
601
|
-
}
|
|
602
|
-
return createChainableTypeChecker(validate);
|
|
603
|
-
}
|
|
604
|
-
function createElementTypeTypeChecker() {
|
|
605
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
606
|
-
var propValue = props[propName];
|
|
607
|
-
if (!ReactIs.isValidElementType(propValue)) {
|
|
608
|
-
var propType = getPropType(propValue);
|
|
609
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement type."));
|
|
610
|
-
}
|
|
611
|
-
return null;
|
|
612
|
-
}
|
|
613
|
-
return createChainableTypeChecker(validate);
|
|
614
|
-
}
|
|
615
|
-
function createInstanceTypeChecker(expectedClass) {
|
|
616
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
617
|
-
if (!(props[propName] instanceof expectedClass)) {
|
|
618
|
-
var expectedClassName = expectedClass.name || ANONYMOUS;
|
|
619
|
-
var actualClassName = getClassName(props[propName]);
|
|
620
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + actualClassName + "` supplied to `" + componentName + "`, expected ") + ("instance of `" + expectedClassName + "`."));
|
|
621
|
-
}
|
|
622
|
-
return null;
|
|
623
|
-
}
|
|
624
|
-
return createChainableTypeChecker(validate);
|
|
625
|
-
}
|
|
626
|
-
function createEnumTypeChecker(expectedValues) {
|
|
627
|
-
if (!Array.isArray(expectedValues)) {
|
|
628
|
-
if (process.env.NODE_ENV !== "production") {
|
|
629
|
-
if (arguments.length > 1) {
|
|
630
|
-
printWarning(
|
|
631
|
-
"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])."
|
|
632
|
-
);
|
|
633
|
-
} else {
|
|
634
|
-
printWarning("Invalid argument supplied to oneOf, expected an array.");
|
|
635
|
-
}
|
|
636
|
-
}
|
|
637
|
-
return emptyFunctionThatReturnsNull;
|
|
638
|
-
}
|
|
639
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
640
|
-
var propValue = props[propName];
|
|
641
|
-
for (var i = 0; i < expectedValues.length; i++) {
|
|
642
|
-
if (is(propValue, expectedValues[i])) {
|
|
643
|
-
return null;
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
|
647
|
-
var type = getPreciseType(value);
|
|
648
|
-
if (type === "symbol") {
|
|
649
|
-
return String(value);
|
|
650
|
-
}
|
|
651
|
-
return value;
|
|
652
|
-
});
|
|
653
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of value `" + String(propValue) + "` " + ("supplied to `" + componentName + "`, expected one of " + valuesString + "."));
|
|
654
|
-
}
|
|
655
|
-
return createChainableTypeChecker(validate);
|
|
656
|
-
}
|
|
657
|
-
function createObjectOfTypeChecker(typeChecker) {
|
|
658
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
659
|
-
if (typeof typeChecker !== "function") {
|
|
660
|
-
return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside objectOf.");
|
|
661
|
-
}
|
|
662
|
-
var propValue = props[propName];
|
|
663
|
-
var propType = getPropType(propValue);
|
|
664
|
-
if (propType !== "object") {
|
|
665
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object."));
|
|
666
|
-
}
|
|
667
|
-
for (var key in propValue) {
|
|
668
|
-
if (has2(propValue, key)) {
|
|
669
|
-
var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
|
670
|
-
if (error instanceof Error) {
|
|
671
|
-
return error;
|
|
672
|
-
}
|
|
673
|
-
}
|
|
674
|
-
}
|
|
675
|
-
return null;
|
|
676
|
-
}
|
|
677
|
-
return createChainableTypeChecker(validate);
|
|
678
|
-
}
|
|
679
|
-
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
680
|
-
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
681
|
-
process.env.NODE_ENV !== "production" ? printWarning("Invalid argument supplied to oneOfType, expected an instance of array.") : void 0;
|
|
682
|
-
return emptyFunctionThatReturnsNull;
|
|
683
|
-
}
|
|
684
|
-
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
685
|
-
var checker = arrayOfTypeCheckers[i];
|
|
686
|
-
if (typeof checker !== "function") {
|
|
687
|
-
printWarning(
|
|
688
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + "."
|
|
689
|
-
);
|
|
690
|
-
return emptyFunctionThatReturnsNull;
|
|
691
|
-
}
|
|
692
|
-
}
|
|
693
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
694
|
-
var expectedTypes = [];
|
|
695
|
-
for (var i2 = 0; i2 < arrayOfTypeCheckers.length; i2++) {
|
|
696
|
-
var checker2 = arrayOfTypeCheckers[i2];
|
|
697
|
-
var checkerResult = checker2(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
|
|
698
|
-
if (checkerResult == null) {
|
|
699
|
-
return null;
|
|
700
|
-
}
|
|
701
|
-
if (checkerResult.data && has2(checkerResult.data, "expectedType")) {
|
|
702
|
-
expectedTypes.push(checkerResult.data.expectedType);
|
|
703
|
-
}
|
|
704
|
-
}
|
|
705
|
-
var expectedTypesMessage = expectedTypes.length > 0 ? ", expected one of type [" + expectedTypes.join(", ") + "]" : "";
|
|
706
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`" + expectedTypesMessage + "."));
|
|
707
|
-
}
|
|
708
|
-
return createChainableTypeChecker(validate);
|
|
709
|
-
}
|
|
710
|
-
function createNodeChecker() {
|
|
711
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
712
|
-
if (!isNode(props[propName])) {
|
|
713
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`, expected a ReactNode."));
|
|
714
|
-
}
|
|
715
|
-
return null;
|
|
716
|
-
}
|
|
717
|
-
return createChainableTypeChecker(validate);
|
|
718
|
-
}
|
|
719
|
-
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
720
|
-
return new PropTypeError(
|
|
721
|
-
(componentName || "React class") + ": " + location + " type `" + propFullName + "." + key + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + type + "`."
|
|
722
|
-
);
|
|
723
|
-
}
|
|
724
|
-
function createShapeTypeChecker(shapeTypes) {
|
|
725
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
726
|
-
var propValue = props[propName];
|
|
727
|
-
var propType = getPropType(propValue);
|
|
728
|
-
if (propType !== "object") {
|
|
729
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
|
|
730
|
-
}
|
|
731
|
-
for (var key in shapeTypes) {
|
|
732
|
-
var checker = shapeTypes[key];
|
|
733
|
-
if (typeof checker !== "function") {
|
|
734
|
-
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
735
|
-
}
|
|
736
|
-
var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
|
737
|
-
if (error) {
|
|
738
|
-
return error;
|
|
739
|
-
}
|
|
740
|
-
}
|
|
741
|
-
return null;
|
|
742
|
-
}
|
|
743
|
-
return createChainableTypeChecker(validate);
|
|
744
|
-
}
|
|
745
|
-
function createStrictShapeTypeChecker(shapeTypes) {
|
|
746
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
747
|
-
var propValue = props[propName];
|
|
748
|
-
var propType = getPropType(propValue);
|
|
749
|
-
if (propType !== "object") {
|
|
750
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
|
|
751
|
-
}
|
|
752
|
-
var allKeys = assign({}, props[propName], shapeTypes);
|
|
753
|
-
for (var key in allKeys) {
|
|
754
|
-
var checker = shapeTypes[key];
|
|
755
|
-
if (has2(shapeTypes, key) && typeof checker !== "function") {
|
|
756
|
-
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
757
|
-
}
|
|
758
|
-
if (!checker) {
|
|
759
|
-
return new PropTypeError(
|
|
760
|
-
"Invalid " + location + " `" + propFullName + "` key `" + key + "` supplied to `" + componentName + "`.\nBad object: " + JSON.stringify(props[propName], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(shapeTypes), null, " ")
|
|
761
|
-
);
|
|
762
|
-
}
|
|
763
|
-
var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
|
764
|
-
if (error) {
|
|
765
|
-
return error;
|
|
766
|
-
}
|
|
767
|
-
}
|
|
768
|
-
return null;
|
|
769
|
-
}
|
|
770
|
-
return createChainableTypeChecker(validate);
|
|
771
|
-
}
|
|
772
|
-
function isNode(propValue) {
|
|
773
|
-
switch (typeof propValue) {
|
|
774
|
-
case "number":
|
|
775
|
-
case "string":
|
|
776
|
-
case "undefined":
|
|
777
|
-
return true;
|
|
778
|
-
case "boolean":
|
|
779
|
-
return !propValue;
|
|
780
|
-
case "object":
|
|
781
|
-
if (Array.isArray(propValue)) {
|
|
782
|
-
return propValue.every(isNode);
|
|
783
|
-
}
|
|
784
|
-
if (propValue === null || isValidElement(propValue)) {
|
|
785
|
-
return true;
|
|
786
|
-
}
|
|
787
|
-
var iteratorFn = getIteratorFn(propValue);
|
|
788
|
-
if (iteratorFn) {
|
|
789
|
-
var iterator = iteratorFn.call(propValue);
|
|
790
|
-
var step;
|
|
791
|
-
if (iteratorFn !== propValue.entries) {
|
|
792
|
-
while (!(step = iterator.next()).done) {
|
|
793
|
-
if (!isNode(step.value)) {
|
|
794
|
-
return false;
|
|
795
|
-
}
|
|
796
|
-
}
|
|
797
|
-
} else {
|
|
798
|
-
while (!(step = iterator.next()).done) {
|
|
799
|
-
var entry = step.value;
|
|
800
|
-
if (entry) {
|
|
801
|
-
if (!isNode(entry[1])) {
|
|
802
|
-
return false;
|
|
803
|
-
}
|
|
804
|
-
}
|
|
805
|
-
}
|
|
806
|
-
}
|
|
807
|
-
} else {
|
|
808
|
-
return false;
|
|
809
|
-
}
|
|
810
|
-
return true;
|
|
811
|
-
default:
|
|
812
|
-
return false;
|
|
813
|
-
}
|
|
814
|
-
}
|
|
815
|
-
function isSymbol(propType, propValue) {
|
|
816
|
-
if (propType === "symbol") {
|
|
817
|
-
return true;
|
|
818
|
-
}
|
|
819
|
-
if (!propValue) {
|
|
820
|
-
return false;
|
|
821
|
-
}
|
|
822
|
-
if (propValue["@@toStringTag"] === "Symbol") {
|
|
823
|
-
return true;
|
|
824
|
-
}
|
|
825
|
-
if (typeof Symbol === "function" && propValue instanceof Symbol) {
|
|
826
|
-
return true;
|
|
827
|
-
}
|
|
828
|
-
return false;
|
|
829
|
-
}
|
|
830
|
-
function getPropType(propValue) {
|
|
831
|
-
var propType = typeof propValue;
|
|
832
|
-
if (Array.isArray(propValue)) {
|
|
833
|
-
return "array";
|
|
834
|
-
}
|
|
835
|
-
if (propValue instanceof RegExp) {
|
|
836
|
-
return "object";
|
|
837
|
-
}
|
|
838
|
-
if (isSymbol(propType, propValue)) {
|
|
839
|
-
return "symbol";
|
|
840
|
-
}
|
|
841
|
-
return propType;
|
|
842
|
-
}
|
|
843
|
-
function getPreciseType(propValue) {
|
|
844
|
-
if (typeof propValue === "undefined" || propValue === null) {
|
|
845
|
-
return "" + propValue;
|
|
846
|
-
}
|
|
847
|
-
var propType = getPropType(propValue);
|
|
848
|
-
if (propType === "object") {
|
|
849
|
-
if (propValue instanceof Date) {
|
|
850
|
-
return "date";
|
|
851
|
-
} else if (propValue instanceof RegExp) {
|
|
852
|
-
return "regexp";
|
|
853
|
-
}
|
|
854
|
-
}
|
|
855
|
-
return propType;
|
|
856
|
-
}
|
|
857
|
-
function getPostfixForTypeWarning(value) {
|
|
858
|
-
var type = getPreciseType(value);
|
|
859
|
-
switch (type) {
|
|
860
|
-
case "array":
|
|
861
|
-
case "object":
|
|
862
|
-
return "an " + type;
|
|
863
|
-
case "boolean":
|
|
864
|
-
case "date":
|
|
865
|
-
case "regexp":
|
|
866
|
-
return "a " + type;
|
|
867
|
-
default:
|
|
868
|
-
return type;
|
|
869
|
-
}
|
|
870
|
-
}
|
|
871
|
-
function getClassName(propValue) {
|
|
872
|
-
if (!propValue.constructor || !propValue.constructor.name) {
|
|
873
|
-
return ANONYMOUS;
|
|
874
|
-
}
|
|
875
|
-
return propValue.constructor.name;
|
|
876
|
-
}
|
|
877
|
-
ReactPropTypes.checkPropTypes = checkPropTypes;
|
|
878
|
-
ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
|
|
879
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
880
|
-
return ReactPropTypes;
|
|
881
|
-
};
|
|
882
|
-
return factoryWithTypeCheckers;
|
|
883
|
-
}
|
|
884
|
-
var factoryWithThrowingShims;
|
|
885
|
-
var hasRequiredFactoryWithThrowingShims;
|
|
886
|
-
function requireFactoryWithThrowingShims() {
|
|
887
|
-
if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims;
|
|
888
|
-
hasRequiredFactoryWithThrowingShims = 1;
|
|
889
|
-
var ReactPropTypesSecret = /* @__PURE__ */ requireReactPropTypesSecret();
|
|
890
|
-
function emptyFunction() {
|
|
891
|
-
}
|
|
892
|
-
function emptyFunctionWithReset() {
|
|
893
|
-
}
|
|
894
|
-
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
895
|
-
factoryWithThrowingShims = function() {
|
|
896
|
-
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
897
|
-
if (secret === ReactPropTypesSecret) {
|
|
898
|
-
return;
|
|
899
|
-
}
|
|
900
|
-
var err = new Error(
|
|
901
|
-
"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"
|
|
902
|
-
);
|
|
903
|
-
err.name = "Invariant Violation";
|
|
904
|
-
throw err;
|
|
905
|
-
}
|
|
906
|
-
shim.isRequired = shim;
|
|
907
|
-
function getShim() {
|
|
908
|
-
return shim;
|
|
909
|
-
}
|
|
910
|
-
var ReactPropTypes = {
|
|
911
|
-
array: shim,
|
|
912
|
-
bigint: shim,
|
|
913
|
-
bool: shim,
|
|
914
|
-
func: shim,
|
|
915
|
-
number: shim,
|
|
916
|
-
object: shim,
|
|
917
|
-
string: shim,
|
|
918
|
-
symbol: shim,
|
|
919
|
-
any: shim,
|
|
920
|
-
arrayOf: getShim,
|
|
921
|
-
element: shim,
|
|
922
|
-
elementType: shim,
|
|
923
|
-
instanceOf: getShim,
|
|
924
|
-
node: shim,
|
|
925
|
-
objectOf: getShim,
|
|
926
|
-
oneOf: getShim,
|
|
927
|
-
oneOfType: getShim,
|
|
928
|
-
shape: getShim,
|
|
929
|
-
exact: getShim,
|
|
930
|
-
checkPropTypes: emptyFunctionWithReset,
|
|
931
|
-
resetWarningCache: emptyFunction
|
|
932
|
-
};
|
|
933
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
934
|
-
return ReactPropTypes;
|
|
935
|
-
};
|
|
936
|
-
return factoryWithThrowingShims;
|
|
937
|
-
}
|
|
938
|
-
var hasRequiredPropTypes;
|
|
939
|
-
function requirePropTypes() {
|
|
940
|
-
if (hasRequiredPropTypes) return propTypes.exports;
|
|
941
|
-
hasRequiredPropTypes = 1;
|
|
942
|
-
if (process.env.NODE_ENV !== "production") {
|
|
943
|
-
var ReactIs = requireReactIs();
|
|
944
|
-
var throwOnDirectAccess = true;
|
|
945
|
-
propTypes.exports = /* @__PURE__ */ requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
|
|
946
|
-
} else {
|
|
947
|
-
propTypes.exports = /* @__PURE__ */ requireFactoryWithThrowingShims()();
|
|
948
|
-
}
|
|
949
|
-
return propTypes.exports;
|
|
950
|
-
}
|
|
951
|
-
var propTypesExports = /* @__PURE__ */ requirePropTypes();
|
|
952
|
-
const PropTypes = /* @__PURE__ */ getDefaultExportFromCjs(propTypesExports);
|
|
953
8
|
var classnames = { exports: {} };
|
|
954
9
|
/*!
|
|
955
10
|
Copyright (c) 2018 Jed Watson.
|
|
@@ -1019,9 +74,9 @@
|
|
|
1019
74
|
title,
|
|
1020
75
|
id,
|
|
1021
76
|
content,
|
|
1022
|
-
expanded,
|
|
77
|
+
expanded = false,
|
|
1023
78
|
className,
|
|
1024
|
-
headingLevel,
|
|
79
|
+
headingLevel = "h3",
|
|
1025
80
|
handleToggle
|
|
1026
81
|
}) {
|
|
1027
82
|
const headingClasses = classNames("usa-accordion__heading", className);
|
|
@@ -1031,12 +86,6 @@
|
|
|
1031
86
|
className
|
|
1032
87
|
);
|
|
1033
88
|
const Heading = headingLevel;
|
|
1034
|
-
const handleClick = (e) => {
|
|
1035
|
-
if (e && typeof e.preventDefault === "function") e.preventDefault();
|
|
1036
|
-
if (e && typeof e.stopImmediatePropagation === "function") e.stopImmediatePropagation();
|
|
1037
|
-
if (e && typeof e.stopPropagation === "function") e.stopPropagation();
|
|
1038
|
-
handleToggle(e);
|
|
1039
|
-
};
|
|
1040
89
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1041
90
|
/* @__PURE__ */ jsxRuntime.jsx(Heading, { id: `${id}-heading`, className: headingClasses, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1042
91
|
"button",
|
|
@@ -1046,7 +95,7 @@
|
|
|
1046
95
|
"aria-expanded": expanded,
|
|
1047
96
|
"aria-controls": `${id}-content`,
|
|
1048
97
|
"data-testid": `accordionButton_${id}`,
|
|
1049
|
-
|
|
98
|
+
onClick: handleToggle,
|
|
1050
99
|
children: title
|
|
1051
100
|
}
|
|
1052
101
|
) }),
|
|
@@ -1063,94 +112,34 @@
|
|
|
1063
112
|
)
|
|
1064
113
|
] });
|
|
1065
114
|
}
|
|
1066
|
-
function buildExpansions(items, multiselectable, savedExpansions = /* @__PURE__ */ new Map()) {
|
|
1067
|
-
const lastExpandedItem = multiselectable ? void 0 : items.findLast((item) => item.expanded || savedExpansions.get(item.id));
|
|
1068
|
-
return items.reduce((map, item) => {
|
|
1069
|
-
map.set(
|
|
1070
|
-
item.id,
|
|
1071
|
-
multiselectable ? savedExpansions.get(item.id) ?? item.expanded : !!lastExpandedItem && item.id === lastExpandedItem.id
|
|
1072
|
-
);
|
|
1073
|
-
return map;
|
|
1074
|
-
}, /* @__PURE__ */ new Map());
|
|
1075
|
-
}
|
|
1076
|
-
AccordionItem.propTypes = {
|
|
1077
|
-
title: PropTypes.node.isRequired,
|
|
1078
|
-
id: PropTypes.string.isRequired,
|
|
1079
|
-
content: PropTypes.node.isRequired,
|
|
1080
|
-
expanded: PropTypes.bool,
|
|
1081
|
-
className: PropTypes.string,
|
|
1082
|
-
headingLevel: PropTypes.string,
|
|
1083
|
-
handleToggle: PropTypes.func
|
|
1084
|
-
};
|
|
1085
|
-
Accordion.propTypes = {
|
|
1086
|
-
id: PropTypes.string,
|
|
1087
|
-
bordered: PropTypes.bool,
|
|
1088
|
-
items: PropTypes.arrayOf(PropTypes.shape(AccordionItem.propTypes)),
|
|
1089
|
-
multiselectable: PropTypes.bool,
|
|
1090
|
-
headingLevel: PropTypes.string,
|
|
1091
|
-
className: PropTypes.string
|
|
1092
|
-
};
|
|
1093
115
|
function Accordion({
|
|
1094
116
|
id,
|
|
1095
117
|
bordered = false,
|
|
1096
118
|
items = [],
|
|
1097
119
|
multiselectable = false,
|
|
1098
120
|
headingLevel = "h3",
|
|
121
|
+
iconPosition,
|
|
1099
122
|
className = "",
|
|
1100
123
|
...props
|
|
1101
124
|
}) {
|
|
1102
|
-
const [savedExpansions, setSavedExpansions] = React.useState(
|
|
1103
|
-
() => buildExpansions(items, multiselectable)
|
|
1104
|
-
);
|
|
1105
|
-
const [prevItems, setPrevItems] = React.useState(items);
|
|
1106
|
-
React.useEffect(() => {
|
|
1107
|
-
if (items !== prevItems) {
|
|
1108
|
-
setPrevItems(items);
|
|
1109
|
-
}
|
|
1110
|
-
}, [items, prevItems]);
|
|
1111
|
-
React.useEffect(() => {
|
|
1112
|
-
if (items !== prevItems) {
|
|
1113
|
-
setSavedExpansions(
|
|
1114
|
-
(prevExpansions) => buildExpansions(items, multiselectable, prevExpansions)
|
|
1115
|
-
);
|
|
1116
|
-
}
|
|
1117
|
-
}, [items, multiselectable, prevItems]);
|
|
1118
125
|
const accordionClasses = classNames(
|
|
1119
126
|
"usa-accordion",
|
|
1120
127
|
"usx-accordion",
|
|
1121
128
|
bordered && "usa-accordion--bordered",
|
|
129
|
+
(iconPosition === "start" || iconPosition === "end") && `usa-accordion--icon-${iconPosition}`,
|
|
1122
130
|
className
|
|
1123
131
|
);
|
|
1124
|
-
const toggleItem = (itemId) => {
|
|
1125
|
-
setSavedExpansions((prevExpansions) => {
|
|
1126
|
-
const updatedExpansions = new Map(prevExpansions);
|
|
1127
|
-
if (updatedExpansions.get(itemId)) {
|
|
1128
|
-
updatedExpansions.set(itemId, false);
|
|
1129
|
-
} else {
|
|
1130
|
-
if (!multiselectable) {
|
|
1131
|
-
updatedExpansions.forEach((_val, key, map) => map.set(key, false));
|
|
1132
|
-
}
|
|
1133
|
-
updatedExpansions.set(itemId, true);
|
|
1134
|
-
}
|
|
1135
|
-
return updatedExpansions;
|
|
1136
|
-
});
|
|
1137
|
-
};
|
|
1138
132
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1139
133
|
"div",
|
|
1140
134
|
{
|
|
1141
135
|
id,
|
|
1142
136
|
className: accordionClasses,
|
|
1143
|
-
"data-allow-multiple": multiselectable,
|
|
137
|
+
"data-allow-multiple": multiselectable ? true : void 0,
|
|
1144
138
|
...props,
|
|
1145
139
|
children: items.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1146
140
|
AccordionItem,
|
|
1147
141
|
{
|
|
1148
142
|
...item,
|
|
1149
|
-
expanded: savedExpansions.get(item.id) ?? false,
|
|
1150
|
-
handleToggle: (e) => {
|
|
1151
|
-
if (item.handleToggle) item.handleToggle(e);
|
|
1152
|
-
toggleItem(item.id);
|
|
1153
|
-
},
|
|
1154
143
|
headingLevel,
|
|
1155
144
|
className
|
|
1156
145
|
},
|
|
@@ -1362,6 +351,7 @@
|
|
|
1362
351
|
function Banner({
|
|
1363
352
|
id = "gov-banner",
|
|
1364
353
|
ariaLabel = "Official government website",
|
|
354
|
+
flagSrc = (typeof window !== "undefined" && window.usxBaseUrl || "/") + "img/us_flag_small.png",
|
|
1365
355
|
tld = ".gov",
|
|
1366
356
|
bannerText = "An official website of the United States government",
|
|
1367
357
|
bannerActionText = "Here's how you know",
|
|
@@ -1382,12 +372,7 @@
|
|
|
1382
372
|
className = "",
|
|
1383
373
|
...props
|
|
1384
374
|
}) {
|
|
1385
|
-
const
|
|
1386
|
-
const toggleExpanded = (e) => {
|
|
1387
|
-
e.preventDefault();
|
|
1388
|
-
e.stopPropagation();
|
|
1389
|
-
setExpanded(!expanded);
|
|
1390
|
-
};
|
|
375
|
+
const assetBaseUrl = typeof window !== "undefined" && window.usxBaseUrl || "/";
|
|
1391
376
|
const classes = classNames(
|
|
1392
377
|
"usa-banner",
|
|
1393
378
|
"usx-banner",
|
|
@@ -1400,7 +385,7 @@
|
|
|
1400
385
|
{
|
|
1401
386
|
"aria-hidden": "true",
|
|
1402
387
|
className: "usa-banner__header-flag",
|
|
1403
|
-
src:
|
|
388
|
+
src: flagSrc,
|
|
1404
389
|
alt: ""
|
|
1405
390
|
}
|
|
1406
391
|
) }),
|
|
@@ -1420,9 +405,8 @@
|
|
|
1420
405
|
{
|
|
1421
406
|
type: "button",
|
|
1422
407
|
className: "usa-accordion__button usa-banner__button",
|
|
1423
|
-
"aria-expanded":
|
|
408
|
+
"aria-expanded": "false",
|
|
1424
409
|
"aria-controls": `${id}-content`,
|
|
1425
|
-
onClickCapture: toggleExpanded,
|
|
1426
410
|
children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "usa-banner__button-text", children: bannerActionText })
|
|
1427
411
|
}
|
|
1428
412
|
)
|
|
@@ -1432,18 +416,42 @@
|
|
|
1432
416
|
{
|
|
1433
417
|
id: `${id}-content`,
|
|
1434
418
|
className: "usa-banner__content usa-accordion__content",
|
|
1435
|
-
hidden:
|
|
419
|
+
hidden: true,
|
|
1436
420
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid-row grid-gap-lg", children: [
|
|
1437
|
-
/* @__PURE__ */ jsxRuntime.
|
|
1438
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
421
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "usa-banner__guidance tablet:grid-col-6", children: [
|
|
422
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
423
|
+
"img",
|
|
424
|
+
{
|
|
425
|
+
className: "usa-banner__icon usa-media-block__img",
|
|
426
|
+
src: `${assetBaseUrl}img/icon-dot-gov.svg`,
|
|
427
|
+
role: "img",
|
|
428
|
+
alt: "",
|
|
429
|
+
"aria-hidden": "true"
|
|
430
|
+
}
|
|
431
|
+
),
|
|
432
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "usa-media-block__body", children: /* @__PURE__ */ jsxRuntime.jsxs("p", { children: [
|
|
433
|
+
/* @__PURE__ */ jsxRuntime.jsx("strong", { children: domainHeading }),
|
|
434
|
+
/* @__PURE__ */ jsxRuntime.jsx("br", {}),
|
|
435
|
+
domainText
|
|
436
|
+
] }) })
|
|
437
|
+
] }),
|
|
438
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "usa-banner__guidance tablet:grid-col-6", children: [
|
|
439
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
440
|
+
"img",
|
|
441
|
+
{
|
|
442
|
+
className: "usa-banner__icon usa-media-block__img",
|
|
443
|
+
src: `${assetBaseUrl}img/icon-https.svg`,
|
|
444
|
+
role: "img",
|
|
445
|
+
alt: "",
|
|
446
|
+
"aria-hidden": "true"
|
|
447
|
+
}
|
|
448
|
+
),
|
|
449
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "usa-media-block__body", children: /* @__PURE__ */ jsxRuntime.jsxs("p", { children: [
|
|
450
|
+
/* @__PURE__ */ jsxRuntime.jsx("strong", { children: httpsHeading }),
|
|
451
|
+
/* @__PURE__ */ jsxRuntime.jsx("br", {}),
|
|
452
|
+
httpsText
|
|
453
|
+
] }) })
|
|
454
|
+
] })
|
|
1447
455
|
] })
|
|
1448
456
|
}
|
|
1449
457
|
)
|
|
@@ -2540,21 +1548,6 @@
|
|
|
2540
1548
|
] });
|
|
2541
1549
|
return formGroup ? /* @__PURE__ */ jsxRuntime.jsx(FormGroup, { error: !!error, children: content }) : content;
|
|
2542
1550
|
}
|
|
2543
|
-
DatePicker.propTypes = {
|
|
2544
|
-
id: PropTypes.string,
|
|
2545
|
-
name: PropTypes.string,
|
|
2546
|
-
label: PropTypes.node,
|
|
2547
|
-
hint: PropTypes.node,
|
|
2548
|
-
error: PropTypes.node,
|
|
2549
|
-
disabled: PropTypes.bool,
|
|
2550
|
-
required: PropTypes.bool,
|
|
2551
|
-
defaultValue: PropTypes.string,
|
|
2552
|
-
minDate: PropTypes.string,
|
|
2553
|
-
maxDate: PropTypes.string,
|
|
2554
|
-
rangeDate: PropTypes.string,
|
|
2555
|
-
formGroup: PropTypes.bool,
|
|
2556
|
-
className: PropTypes.string
|
|
2557
|
-
};
|
|
2558
1551
|
function DateRangePicker({
|
|
2559
1552
|
startId = "event-date-start",
|
|
2560
1553
|
endId = "event-date-end",
|
|
@@ -2641,25 +1634,6 @@
|
|
|
2641
1634
|
}
|
|
2642
1635
|
);
|
|
2643
1636
|
}
|
|
2644
|
-
DateRangePicker.propTypes = {
|
|
2645
|
-
startId: PropTypes.string,
|
|
2646
|
-
endId: PropTypes.string,
|
|
2647
|
-
startName: PropTypes.string,
|
|
2648
|
-
endName: PropTypes.string,
|
|
2649
|
-
startLabel: PropTypes.node,
|
|
2650
|
-
endLabel: PropTypes.node,
|
|
2651
|
-
startHint: PropTypes.node,
|
|
2652
|
-
endHint: PropTypes.node,
|
|
2653
|
-
startError: PropTypes.node,
|
|
2654
|
-
endError: PropTypes.node,
|
|
2655
|
-
disabled: PropTypes.bool,
|
|
2656
|
-
required: PropTypes.bool,
|
|
2657
|
-
defaultStartDate: PropTypes.string,
|
|
2658
|
-
defaultEndDate: PropTypes.string,
|
|
2659
|
-
minDate: PropTypes.string,
|
|
2660
|
-
maxDate: PropTypes.string,
|
|
2661
|
-
className: PropTypes.string
|
|
2662
|
-
};
|
|
2663
1637
|
function Eyebrow({ children = null, className = "", ...props }) {
|
|
2664
1638
|
const classes = ["usx-eyebrow", className].filter(Boolean).join(" ");
|
|
2665
1639
|
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: classes, ...props, children });
|
|
@@ -2728,7 +1702,7 @@
|
|
|
2728
1702
|
type: "button",
|
|
2729
1703
|
variant: "secondary",
|
|
2730
1704
|
className: "usx-file-input__delete-button",
|
|
2731
|
-
tooltip: "Delete this file",
|
|
1705
|
+
extraAttributes: { tooltip: "Delete this file" },
|
|
2732
1706
|
ghost: true,
|
|
2733
1707
|
disabled,
|
|
2734
1708
|
onClick: () => handleRemove(entry),
|
|
@@ -2742,22 +1716,6 @@
|
|
|
2742
1716
|
}) })
|
|
2743
1717
|
] });
|
|
2744
1718
|
}
|
|
2745
|
-
FileList.propTypes = {
|
|
2746
|
-
files: PropTypes.arrayOf(
|
|
2747
|
-
PropTypes.shape({
|
|
2748
|
-
key: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
|
|
2749
|
-
file: PropTypes.object,
|
|
2750
|
-
name: PropTypes.string,
|
|
2751
|
-
size: PropTypes.number,
|
|
2752
|
-
url: PropTypes.string,
|
|
2753
|
-
onRemove: PropTypes.func
|
|
2754
|
-
})
|
|
2755
|
-
),
|
|
2756
|
-
hint: PropTypes.node,
|
|
2757
|
-
onRemove: PropTypes.func,
|
|
2758
|
-
disabled: PropTypes.bool,
|
|
2759
|
-
className: PropTypes.string
|
|
2760
|
-
};
|
|
2761
1719
|
function getDefaultFileInputAriaLabel() {
|
|
2762
1720
|
const dragTextIsVisible = typeof window !== "undefined" && typeof window.matchMedia === "function" && window.matchMedia("(hover: hover) and (pointer: fine)").matches;
|
|
2763
1721
|
const chooseText = dragTextIsVisible ? "choose from folder" : "Choose from folder";
|
|
@@ -2790,17 +1748,17 @@
|
|
|
2790
1748
|
const [managedFiles, setManagedFiles] = React.useState(
|
|
2791
1749
|
() => defaultFiles.map((entry) => ({ key: nextFileId.current++, file: null, ...entry }))
|
|
2792
1750
|
);
|
|
2793
|
-
const notify = (files) => onFilesChange && onFilesChange(files.filter((entry) => entry.file).map((entry) => entry.file));
|
|
2794
|
-
const addFiles = (
|
|
2795
|
-
const files = Array.from(
|
|
1751
|
+
const notify = (files) => onFilesChange && onFilesChange(files.filter((entry) => !!entry.file).map((entry) => entry.file));
|
|
1752
|
+
const addFiles = (event) => {
|
|
1753
|
+
const files = Array.from(event.target.files || []);
|
|
2796
1754
|
if (files.length === 0) return;
|
|
2797
1755
|
setManagedFiles((prev) => {
|
|
2798
1756
|
const next = [...prev, ...files.map((file) => ({ key: nextFileId.current++, file }))];
|
|
2799
1757
|
notify(next);
|
|
2800
1758
|
return next;
|
|
2801
1759
|
});
|
|
2802
|
-
|
|
2803
|
-
|
|
1760
|
+
event.target.value = "";
|
|
1761
|
+
event.target.setAttribute("aria-label", getDefaultFileInputAriaLabel());
|
|
2804
1762
|
};
|
|
2805
1763
|
const removeFile = (entry) => {
|
|
2806
1764
|
setManagedFiles((prev) => {
|
|
@@ -2861,30 +1819,6 @@
|
|
|
2861
1819
|
] });
|
|
2862
1820
|
return formGroup ? /* @__PURE__ */ jsxRuntime.jsx(FormGroup, { error: !!error, children: content }) : content;
|
|
2863
1821
|
}
|
|
2864
|
-
FileInput.propTypes = {
|
|
2865
|
-
id: PropTypes.string,
|
|
2866
|
-
name: PropTypes.string,
|
|
2867
|
-
label: PropTypes.node,
|
|
2868
|
-
hint: PropTypes.node,
|
|
2869
|
-
fileListHint: PropTypes.node,
|
|
2870
|
-
error: PropTypes.node,
|
|
2871
|
-
disabled: PropTypes.bool,
|
|
2872
|
-
required: PropTypes.bool,
|
|
2873
|
-
accept: PropTypes.string,
|
|
2874
|
-
multiple: PropTypes.bool,
|
|
2875
|
-
manageIndividualFiles: PropTypes.bool,
|
|
2876
|
-
invalidFileTypeMessage: PropTypes.string,
|
|
2877
|
-
className: PropTypes.string,
|
|
2878
|
-
onFilesChange: PropTypes.func,
|
|
2879
|
-
defaultFiles: PropTypes.arrayOf(
|
|
2880
|
-
PropTypes.shape({
|
|
2881
|
-
name: PropTypes.string.isRequired,
|
|
2882
|
-
size: PropTypes.number,
|
|
2883
|
-
url: PropTypes.string
|
|
2884
|
-
})
|
|
2885
|
-
),
|
|
2886
|
-
formGroup: PropTypes.bool
|
|
2887
|
-
};
|
|
2888
1822
|
function BrandingContent({ config, projectUrl }) {
|
|
2889
1823
|
const { title, symbol, symbolInverse, logo, logoInverse, alt } = config;
|
|
2890
1824
|
const label = alt ?? title ?? "";
|
|
@@ -3331,26 +2265,53 @@
|
|
|
3331
2265
|
button = null,
|
|
3332
2266
|
searchProps = null,
|
|
3333
2267
|
backgroundImage = "",
|
|
2268
|
+
backgroundPosition,
|
|
2269
|
+
contentPosition = "left",
|
|
2270
|
+
boxed = true,
|
|
2271
|
+
calloutMaxWidth,
|
|
2272
|
+
headingLevel = "h1",
|
|
2273
|
+
secondaryContent = null,
|
|
3334
2274
|
overlay = true,
|
|
2275
|
+
overlayOpacity,
|
|
3335
2276
|
ariaLabel = "Introduction",
|
|
3336
2277
|
className = "",
|
|
2278
|
+
style,
|
|
3337
2279
|
...props
|
|
3338
2280
|
}) {
|
|
2281
|
+
const Heading = headingLevel;
|
|
2282
|
+
const secondaryHeadings = { h1: "h2", h2: "h3", h3: "h4", h4: "h5", h5: "h6" };
|
|
2283
|
+
const SecondaryHeading = secondaryHeadings[headingLevel];
|
|
3339
2284
|
const classes = [
|
|
3340
2285
|
"usx-hero",
|
|
3341
2286
|
overlay && "usx-hero--has-overlay",
|
|
2287
|
+
overlayOpacity !== void 0 && "usx-hero--custom-overlay",
|
|
2288
|
+
contentPosition !== "left" && `usx-hero--content-${contentPosition}`,
|
|
2289
|
+
!boxed && "usx-hero--unboxed",
|
|
2290
|
+
secondaryContent && "usx-hero--split",
|
|
3342
2291
|
className
|
|
3343
2292
|
].filter(Boolean).join(" ");
|
|
3344
|
-
const
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
2293
|
+
const heroStyle = {
|
|
2294
|
+
...backgroundImage ? { backgroundImage: `url('${backgroundImage}')` } : {},
|
|
2295
|
+
...backgroundPosition ? { backgroundPosition } : {},
|
|
2296
|
+
...overlayOpacity !== void 0 ? { "--hero-overlay-opacity": Math.min(1, Math.max(0, overlayOpacity)) } : {},
|
|
2297
|
+
...style
|
|
2298
|
+
};
|
|
2299
|
+
return /* @__PURE__ */ jsxRuntime.jsx("section", { className: classes, "aria-label": ariaLabel, style: heroStyle, ...props, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "usx-hero__inner", children: [
|
|
2300
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "usx-hero__callout", style: calloutMaxWidth ? { maxWidth: calloutMaxWidth } : void 0, children: [
|
|
2301
|
+
/* @__PURE__ */ jsxRuntime.jsxs(Heading, { className: "usx-hero__heading", children: [
|
|
2302
|
+
callout && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "usx-hero__heading--alt", children: callout }),
|
|
2303
|
+
title
|
|
2304
|
+
] }),
|
|
2305
|
+
paragraph && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "usx-hero__paragraph", children: paragraph }),
|
|
2306
|
+
searchProps && /* @__PURE__ */ jsxRuntime.jsx(Search, { ...searchProps }),
|
|
2307
|
+
!searchProps && button && /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "primary", href: button.href, onClick: button.onClick, children: button.text })
|
|
3349
2308
|
] }),
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
2309
|
+
secondaryContent && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "usx-hero__secondary", children: [
|
|
2310
|
+
secondaryContent.title && /* @__PURE__ */ jsxRuntime.jsx(SecondaryHeading, { className: "usx-hero__secondary-heading", children: secondaryContent.title }),
|
|
2311
|
+
secondaryContent.paragraph && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "usx-hero__paragraph", children: secondaryContent.paragraph }),
|
|
2312
|
+
secondaryContent.link && /* @__PURE__ */ jsxRuntime.jsx("a", { className: "usx-hero__secondary-link", href: secondaryContent.link.href, children: secondaryContent.link.text })
|
|
2313
|
+
] })
|
|
2314
|
+
] }) });
|
|
3354
2315
|
}
|
|
3355
2316
|
function renderContent$1(content) {
|
|
3356
2317
|
if (typeof content === "string") {
|
|
@@ -3551,21 +2512,6 @@
|
|
|
3551
2512
|
)
|
|
3552
2513
|
] });
|
|
3553
2514
|
}
|
|
3554
|
-
InPageNav.propTypes = {
|
|
3555
|
-
id: PropTypes.string,
|
|
3556
|
-
headingElements: PropTypes.string,
|
|
3557
|
-
mainContentSelector: PropTypes.string,
|
|
3558
|
-
titleHeadingLevel: PropTypes.string,
|
|
3559
|
-
titleText: PropTypes.string,
|
|
3560
|
-
scrollOffset: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
3561
|
-
rootMargin: PropTypes.string,
|
|
3562
|
-
threshold: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
3563
|
-
minimumHeadingCount: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
3564
|
-
content: PropTypes.string,
|
|
3565
|
-
children: PropTypes.node,
|
|
3566
|
-
className: PropTypes.string,
|
|
3567
|
-
contentClassName: PropTypes.string
|
|
3568
|
-
};
|
|
3569
2515
|
function Indicator({ items = [], children = null, className = "", ...props }) {
|
|
3570
2516
|
const classes = classNames("usx-indicator", className);
|
|
3571
2517
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: classes, ...props, children: [
|
|
@@ -3585,35 +2531,20 @@
|
|
|
3585
2531
|
if (!code) {
|
|
3586
2532
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: label });
|
|
3587
2533
|
}
|
|
3588
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("span", { lang: code, xmlLang: code, children: [
|
|
2534
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("span", { ...{ lang: code, xmlLang: code }, children: [
|
|
3589
2535
|
/* @__PURE__ */ jsxRuntime.jsx("strong", { children: label }),
|
|
3590
2536
|
description ? ` (${description})` : null
|
|
3591
2537
|
] });
|
|
3592
2538
|
}
|
|
3593
|
-
LanguageLabel.propTypes = {
|
|
3594
|
-
code: PropTypes.string,
|
|
3595
|
-
label: PropTypes.node.isRequired,
|
|
3596
|
-
description: PropTypes.string
|
|
3597
|
-
};
|
|
3598
2539
|
function TwoLanguageSelector({ target, onSelect, className, navAriaLabel }) {
|
|
3599
|
-
const handleClick = (
|
|
3600
|
-
if (onSelect) onSelect(target,
|
|
3601
|
-
if (!target.href)
|
|
2540
|
+
const handleClick = (event) => {
|
|
2541
|
+
if (onSelect) onSelect(target, event);
|
|
2542
|
+
if (!target.href) event.preventDefault();
|
|
3602
2543
|
};
|
|
3603
2544
|
const Tag2 = target.href ? "a" : "button";
|
|
3604
2545
|
const tagProps = target.href ? { href: target.href } : { type: "button" };
|
|
3605
2546
|
return /* @__PURE__ */ jsxRuntime.jsx("nav", { "aria-label": navAriaLabel, className, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "usa-language-container", children: /* @__PURE__ */ jsxRuntime.jsx(Tag2, { className: "usa-button usx-button usa-button--primary", onClick: handleClick, ...tagProps, children: /* @__PURE__ */ jsxRuntime.jsx(LanguageLabel, { code: target.code, label: target.label }) }) }) });
|
|
3606
2547
|
}
|
|
3607
|
-
TwoLanguageSelector.propTypes = {
|
|
3608
|
-
target: PropTypes.shape({
|
|
3609
|
-
code: PropTypes.string,
|
|
3610
|
-
label: PropTypes.node,
|
|
3611
|
-
href: PropTypes.string
|
|
3612
|
-
}).isRequired,
|
|
3613
|
-
onSelect: PropTypes.func,
|
|
3614
|
-
className: PropTypes.string,
|
|
3615
|
-
navAriaLabel: PropTypes.string
|
|
3616
|
-
};
|
|
3617
2548
|
function MenuLanguageSelector({
|
|
3618
2549
|
languages,
|
|
3619
2550
|
unstyled,
|
|
@@ -3656,28 +2587,9 @@
|
|
|
3656
2587
|
},
|
|
3657
2588
|
children: lang.plain ? lang.label : /* @__PURE__ */ jsxRuntime.jsx(LanguageLabel, { code: lang.code, label: lang.label, description: lang.description })
|
|
3658
2589
|
}
|
|
3659
|
-
) }, lang.code || lang.label || idx)) })
|
|
2590
|
+
) }, lang.code || (typeof lang.label === "string" || typeof lang.label === "number" ? lang.label : void 0) || idx)) })
|
|
3660
2591
|
] }) }) }) });
|
|
3661
2592
|
}
|
|
3662
|
-
MenuLanguageSelector.propTypes = {
|
|
3663
|
-
languages: PropTypes.arrayOf(
|
|
3664
|
-
PropTypes.shape({
|
|
3665
|
-
code: PropTypes.string,
|
|
3666
|
-
label: PropTypes.node,
|
|
3667
|
-
description: PropTypes.string,
|
|
3668
|
-
href: PropTypes.string,
|
|
3669
|
-
current: PropTypes.bool,
|
|
3670
|
-
plain: PropTypes.bool
|
|
3671
|
-
})
|
|
3672
|
-
).isRequired,
|
|
3673
|
-
unstyled: PropTypes.bool,
|
|
3674
|
-
small: PropTypes.bool,
|
|
3675
|
-
label: PropTypes.string,
|
|
3676
|
-
id: PropTypes.string,
|
|
3677
|
-
onSelect: PropTypes.func,
|
|
3678
|
-
className: PropTypes.string,
|
|
3679
|
-
navAriaLabel: PropTypes.string
|
|
3680
|
-
};
|
|
3681
2593
|
function LanguageSelector({
|
|
3682
2594
|
languages = [],
|
|
3683
2595
|
variant = null,
|
|
@@ -3723,26 +2635,6 @@
|
|
|
3723
2635
|
}
|
|
3724
2636
|
);
|
|
3725
2637
|
}
|
|
3726
|
-
LanguageSelector.propTypes = {
|
|
3727
|
-
languages: PropTypes.arrayOf(
|
|
3728
|
-
PropTypes.shape({
|
|
3729
|
-
code: PropTypes.string,
|
|
3730
|
-
label: PropTypes.node,
|
|
3731
|
-
description: PropTypes.string,
|
|
3732
|
-
href: PropTypes.string,
|
|
3733
|
-
current: PropTypes.bool,
|
|
3734
|
-
plain: PropTypes.bool
|
|
3735
|
-
})
|
|
3736
|
-
),
|
|
3737
|
-
variant: PropTypes.oneOf(["two", "menu"]),
|
|
3738
|
-
unstyled: PropTypes.bool,
|
|
3739
|
-
small: PropTypes.bool,
|
|
3740
|
-
label: PropTypes.string,
|
|
3741
|
-
id: PropTypes.string,
|
|
3742
|
-
navAriaLabel: PropTypes.string,
|
|
3743
|
-
className: PropTypes.string,
|
|
3744
|
-
onSelect: PropTypes.func
|
|
3745
|
-
};
|
|
3746
2638
|
function SingleColumnLayout({ children, className = "", ...props }) {
|
|
3747
2639
|
const classes = ["usx-layout__single-column", className].filter(Boolean).join(" ");
|
|
3748
2640
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classes, ...props, children });
|
|
@@ -4017,28 +2909,6 @@
|
|
|
4017
2909
|
] })
|
|
4018
2910
|
] }) });
|
|
4019
2911
|
}
|
|
4020
|
-
MemorableDate.propTypes = {
|
|
4021
|
-
id: PropTypes.string,
|
|
4022
|
-
legend: PropTypes.node,
|
|
4023
|
-
groupHint: PropTypes.node,
|
|
4024
|
-
monthLabel: PropTypes.node,
|
|
4025
|
-
dayLabel: PropTypes.node,
|
|
4026
|
-
yearLabel: PropTypes.node,
|
|
4027
|
-
monthHint: PropTypes.node,
|
|
4028
|
-
dayHint: PropTypes.node,
|
|
4029
|
-
yearHint: PropTypes.node,
|
|
4030
|
-
monthName: PropTypes.string,
|
|
4031
|
-
dayName: PropTypes.string,
|
|
4032
|
-
yearName: PropTypes.string,
|
|
4033
|
-
defaultMonth: PropTypes.string,
|
|
4034
|
-
defaultDay: PropTypes.string,
|
|
4035
|
-
defaultYear: PropTypes.string,
|
|
4036
|
-
disabled: PropTypes.bool,
|
|
4037
|
-
ariaDisabled: PropTypes.bool,
|
|
4038
|
-
required: PropTypes.bool,
|
|
4039
|
-
error: PropTypes.string,
|
|
4040
|
-
className: PropTypes.string
|
|
4041
|
-
};
|
|
4042
2912
|
function MiscBanner({
|
|
4043
2913
|
children = null,
|
|
4044
2914
|
className = "",
|
|
@@ -4195,14 +3065,6 @@
|
|
|
4195
3065
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "usx-page__content", children: pageContent })
|
|
4196
3066
|
] });
|
|
4197
3067
|
}
|
|
4198
|
-
Page.propTypes = {
|
|
4199
|
-
id: PropTypes.string,
|
|
4200
|
-
title: PropTypes.string,
|
|
4201
|
-
eyebrow: PropTypes.node,
|
|
4202
|
-
children: PropTypes.node,
|
|
4203
|
-
content: PropTypes.node,
|
|
4204
|
-
className: PropTypes.string
|
|
4205
|
-
};
|
|
4206
3068
|
function getPageItems(currentPage, totalPages) {
|
|
4207
3069
|
const page = (p) => ({ type: "page", page: p });
|
|
4208
3070
|
const ellipsis = (key) => ({ type: "ellipsis", key });
|
|
@@ -4649,24 +3511,6 @@
|
|
|
4649
3511
|
] });
|
|
4650
3512
|
return formGroup ? /* @__PURE__ */ jsxRuntime.jsx(FormGroup, { error: !!error, children: content }) : content;
|
|
4651
3513
|
}
|
|
4652
|
-
RangeSlider.propTypes = {
|
|
4653
|
-
id: PropTypes.string,
|
|
4654
|
-
name: PropTypes.string,
|
|
4655
|
-
label: PropTypes.node,
|
|
4656
|
-
hint: PropTypes.node,
|
|
4657
|
-
error: PropTypes.node,
|
|
4658
|
-
disabled: PropTypes.bool,
|
|
4659
|
-
required: PropTypes.bool,
|
|
4660
|
-
min: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
4661
|
-
max: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
4662
|
-
step: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
4663
|
-
value: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
4664
|
-
defaultValue: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
4665
|
-
textUnit: PropTypes.string,
|
|
4666
|
-
textPreposition: PropTypes.string,
|
|
4667
|
-
formGroup: PropTypes.bool,
|
|
4668
|
-
className: PropTypes.string
|
|
4669
|
-
};
|
|
4670
3514
|
const Section = ({
|
|
4671
3515
|
title = "",
|
|
4672
3516
|
children = null,
|
|
@@ -5904,22 +4748,6 @@
|
|
|
5904
4748
|
] });
|
|
5905
4749
|
return formGroup ? /* @__PURE__ */ jsxRuntime.jsx(FormGroup, { error: !!error, children: content }) : content;
|
|
5906
4750
|
}
|
|
5907
|
-
TimePicker.propTypes = {
|
|
5908
|
-
id: PropTypes.string,
|
|
5909
|
-
name: PropTypes.string,
|
|
5910
|
-
label: PropTypes.node,
|
|
5911
|
-
hint: PropTypes.node,
|
|
5912
|
-
error: PropTypes.node,
|
|
5913
|
-
disabled: PropTypes.bool,
|
|
5914
|
-
ariaDisabled: PropTypes.bool,
|
|
5915
|
-
required: PropTypes.bool,
|
|
5916
|
-
defaultValue: PropTypes.string,
|
|
5917
|
-
minTime: PropTypes.string,
|
|
5918
|
-
maxTime: PropTypes.string,
|
|
5919
|
-
step: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
5920
|
-
formGroup: PropTypes.bool,
|
|
5921
|
-
className: PropTypes.string
|
|
5922
|
-
};
|
|
5923
4751
|
const Toggle = ({
|
|
5924
4752
|
options = [],
|
|
5925
4753
|
value,
|