pallote-react 0.15.17 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/components/Alert.d.ts +16 -0
  2. package/dist/components/Breadcrumbs.d.ts +12 -0
  3. package/dist/components/Button.d.ts +19 -0
  4. package/dist/components/Buttons.d.ts +11 -0
  5. package/dist/components/Card.d.ts +17 -0
  6. package/dist/components/CardActions.d.ts +9 -0
  7. package/dist/components/CardContent.d.ts +7 -0
  8. package/dist/components/CardHeader.d.ts +12 -0
  9. package/dist/components/CardMedia.d.ts +9 -0
  10. package/dist/components/Checkbox.d.ts +13 -0
  11. package/dist/components/Checkboxes.d.ts +17 -0
  12. package/dist/components/Divider.d.ts +10 -0
  13. package/dist/components/Input.d.ts +20 -0
  14. package/dist/components/InputLabel.d.ts +9 -0
  15. package/dist/components/Link.d.ts +13 -0
  16. package/dist/components/List.d.ts +7 -0
  17. package/dist/components/ListItem.d.ts +11 -0
  18. package/dist/components/Nav.d.ts +10 -0
  19. package/dist/components/NavBar.d.ts +11 -0
  20. package/dist/components/NavItem.d.ts +13 -0
  21. package/dist/components/Radio.d.ts +14 -0
  22. package/dist/components/RadioButtons.d.ts +17 -0
  23. package/dist/components/Section.d.ts +13 -0
  24. package/dist/components/SectionContent.d.ts +9 -0
  25. package/dist/components/SectionHeader.d.ts +13 -0
  26. package/dist/components/Select.d.ts +16 -0
  27. package/dist/components/Snippet.d.ts +8 -0
  28. package/dist/components/Status.d.ts +10 -0
  29. package/dist/components/Switch.d.ts +9 -0
  30. package/dist/components/Tab.d.ts +6 -0
  31. package/dist/components/Table.d.ts +12 -0
  32. package/dist/components/TableBody.d.ts +6 -0
  33. package/dist/components/TableCell.d.ts +9 -0
  34. package/dist/components/TableFooter.d.ts +5 -0
  35. package/dist/components/TableHead.d.ts +7 -0
  36. package/dist/components/TableRow.d.ts +6 -0
  37. package/dist/components/Tabs.d.ts +16 -0
  38. package/dist/components/TabsControl.d.ts +6 -0
  39. package/dist/components/TabsPanel.d.ts +7 -0
  40. package/dist/components/Tag.d.ts +10 -0
  41. package/dist/components/Textarea.d.ts +16 -0
  42. package/dist/index.d.ts +90 -0
  43. package/dist/index.js +927 -2936
  44. package/dist/package.json +6 -3
  45. package/dist/utilities/Color.d.ts +18 -0
  46. package/dist/utilities/Display.d.ts +10 -0
  47. package/dist/utilities/Grid.d.ts +24 -0
  48. package/dist/utilities/Text.d.ts +23 -0
  49. package/package.json +10 -6
package/dist/index.js CHANGED
@@ -1,1363 +1,105 @@
1
- import * as React from 'react';
2
- import React__default, { useState, useEffect, createContext, useRef, useContext } from 'react';
1
+ import * as e$7 from 'react';
2
+ import e__default, { useState, useEffect, createContext, forwardRef, useRef, useContext } from 'react';
3
3
  import classnames from 'classnames';
4
+ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
4
5
  import { createPortal } from 'react-dom';
5
6
  import SyntaxHighlighter from 'react-syntax-highlighter';
6
7
 
7
- function getDefaultExportFromCjs (x) {
8
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
9
- }
10
-
11
- var propTypes = {exports: {}};
12
-
13
- var reactIs = {exports: {}};
14
-
15
- var reactIs_production_min = {};
16
-
17
- /** @license React v16.13.1
18
- * react-is.production.min.js
19
- *
20
- * Copyright (c) Facebook, Inc. and its affiliates.
21
- *
22
- * This source code is licensed under the MIT license found in the
23
- * LICENSE file in the root directory of this source tree.
24
- */
25
- var hasRequiredReactIs_production_min;
26
- function requireReactIs_production_min() {
27
- if (hasRequiredReactIs_production_min) return reactIs_production_min;
28
- hasRequiredReactIs_production_min = 1;
29
- var b = "function" === typeof Symbol && Symbol.for,
30
- c = b ? Symbol.for("react.element") : 60103,
31
- d = b ? Symbol.for("react.portal") : 60106,
32
- e = b ? Symbol.for("react.fragment") : 60107,
33
- f = b ? Symbol.for("react.strict_mode") : 60108,
34
- g = b ? Symbol.for("react.profiler") : 60114,
35
- h = b ? Symbol.for("react.provider") : 60109,
36
- k = b ? Symbol.for("react.context") : 60110,
37
- l = b ? Symbol.for("react.async_mode") : 60111,
38
- m = b ? Symbol.for("react.concurrent_mode") : 60111,
39
- n = b ? Symbol.for("react.forward_ref") : 60112,
40
- p = b ? Symbol.for("react.suspense") : 60113,
41
- q = b ? Symbol.for("react.suspense_list") : 60120,
42
- r = b ? Symbol.for("react.memo") : 60115,
43
- t = b ? Symbol.for("react.lazy") : 60116,
44
- v = b ? Symbol.for("react.block") : 60121,
45
- w = b ? Symbol.for("react.fundamental") : 60117,
46
- x = b ? Symbol.for("react.responder") : 60118,
47
- y = b ? Symbol.for("react.scope") : 60119;
48
- function z(a) {
49
- if ("object" === typeof a && null !== a) {
50
- var u = a.$$typeof;
51
- switch (u) {
52
- case c:
53
- switch (a = a.type, a) {
54
- case l:
55
- case m:
56
- case e:
57
- case g:
58
- case f:
59
- case p:
60
- return a;
61
- default:
62
- switch (a = a && a.$$typeof, a) {
63
- case k:
64
- case n:
65
- case t:
66
- case r:
67
- case h:
68
- return a;
69
- default:
70
- return u;
71
- }
72
- }
73
- case d:
74
- return u;
75
- }
76
- }
77
- }
78
- function A(a) {
79
- return z(a) === m;
80
- }
81
- reactIs_production_min.AsyncMode = l;
82
- reactIs_production_min.ConcurrentMode = m;
83
- reactIs_production_min.ContextConsumer = k;
84
- reactIs_production_min.ContextProvider = h;
85
- reactIs_production_min.Element = c;
86
- reactIs_production_min.ForwardRef = n;
87
- reactIs_production_min.Fragment = e;
88
- reactIs_production_min.Lazy = t;
89
- reactIs_production_min.Memo = r;
90
- reactIs_production_min.Portal = d;
91
- reactIs_production_min.Profiler = g;
92
- reactIs_production_min.StrictMode = f;
93
- reactIs_production_min.Suspense = p;
94
- reactIs_production_min.isAsyncMode = function (a) {
95
- return A(a) || z(a) === l;
96
- };
97
- reactIs_production_min.isConcurrentMode = A;
98
- reactIs_production_min.isContextConsumer = function (a) {
99
- return z(a) === k;
100
- };
101
- reactIs_production_min.isContextProvider = function (a) {
102
- return z(a) === h;
103
- };
104
- reactIs_production_min.isElement = function (a) {
105
- return "object" === typeof a && null !== a && a.$$typeof === c;
106
- };
107
- reactIs_production_min.isForwardRef = function (a) {
108
- return z(a) === n;
109
- };
110
- reactIs_production_min.isFragment = function (a) {
111
- return z(a) === e;
112
- };
113
- reactIs_production_min.isLazy = function (a) {
114
- return z(a) === t;
115
- };
116
- reactIs_production_min.isMemo = function (a) {
117
- return z(a) === r;
118
- };
119
- reactIs_production_min.isPortal = function (a) {
120
- return z(a) === d;
121
- };
122
- reactIs_production_min.isProfiler = function (a) {
123
- return z(a) === g;
124
- };
125
- reactIs_production_min.isStrictMode = function (a) {
126
- return z(a) === f;
127
- };
128
- reactIs_production_min.isSuspense = function (a) {
129
- return z(a) === p;
130
- };
131
- reactIs_production_min.isValidElementType = function (a) {
132
- 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);
133
- };
134
- reactIs_production_min.typeOf = z;
135
- return reactIs_production_min;
136
- }
137
-
138
- var reactIs_development = {};
139
-
140
- /** @license React v16.13.1
141
- * react-is.development.js
142
- *
143
- * Copyright (c) Facebook, Inc. and its affiliates.
144
- *
145
- * This source code is licensed under the MIT license found in the
146
- * LICENSE file in the root directory of this source tree.
147
- */
148
- var hasRequiredReactIs_development;
149
- function requireReactIs_development() {
150
- if (hasRequiredReactIs_development) return reactIs_development;
151
- hasRequiredReactIs_development = 1;
152
- if (process.env.NODE_ENV !== "production") {
153
- (function () {
154
-
155
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
156
- // nor polyfill, then a plain number is used for performance.
157
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
158
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
159
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
160
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
161
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
162
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
163
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
164
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
165
- // (unstable) APIs that have been removed. Can we remove the symbols?
166
-
167
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
168
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
169
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
170
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
171
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
172
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
173
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
174
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
175
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
176
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
177
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
178
- function isValidElementType(type) {
179
- return typeof type === 'string' || typeof type === 'function' ||
180
- // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
181
- 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);
182
- }
183
- function typeOf(object) {
184
- if (typeof object === 'object' && object !== null) {
185
- var $$typeof = object.$$typeof;
186
- switch ($$typeof) {
187
- case REACT_ELEMENT_TYPE:
188
- var type = object.type;
189
- switch (type) {
190
- case REACT_ASYNC_MODE_TYPE:
191
- case REACT_CONCURRENT_MODE_TYPE:
192
- case REACT_FRAGMENT_TYPE:
193
- case REACT_PROFILER_TYPE:
194
- case REACT_STRICT_MODE_TYPE:
195
- case REACT_SUSPENSE_TYPE:
196
- return type;
197
- default:
198
- var $$typeofType = type && type.$$typeof;
199
- switch ($$typeofType) {
200
- case REACT_CONTEXT_TYPE:
201
- case REACT_FORWARD_REF_TYPE:
202
- case REACT_LAZY_TYPE:
203
- case REACT_MEMO_TYPE:
204
- case REACT_PROVIDER_TYPE:
205
- return $$typeofType;
206
- default:
207
- return $$typeof;
208
- }
209
- }
210
- case REACT_PORTAL_TYPE:
211
- return $$typeof;
212
- }
213
- }
214
- return undefined;
215
- } // AsyncMode is deprecated along with isAsyncMode
216
-
217
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
218
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
219
- var ContextConsumer = REACT_CONTEXT_TYPE;
220
- var ContextProvider = REACT_PROVIDER_TYPE;
221
- var Element = REACT_ELEMENT_TYPE;
222
- var ForwardRef = REACT_FORWARD_REF_TYPE;
223
- var Fragment = REACT_FRAGMENT_TYPE;
224
- var Lazy = REACT_LAZY_TYPE;
225
- var Memo = REACT_MEMO_TYPE;
226
- var Portal = REACT_PORTAL_TYPE;
227
- var Profiler = REACT_PROFILER_TYPE;
228
- var StrictMode = REACT_STRICT_MODE_TYPE;
229
- var Suspense = REACT_SUSPENSE_TYPE;
230
- var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
231
-
232
- function isAsyncMode(object) {
233
- {
234
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
235
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
236
-
237
- 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.');
238
- }
239
- }
240
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
241
- }
242
- function isConcurrentMode(object) {
243
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
244
- }
245
- function isContextConsumer(object) {
246
- return typeOf(object) === REACT_CONTEXT_TYPE;
247
- }
248
- function isContextProvider(object) {
249
- return typeOf(object) === REACT_PROVIDER_TYPE;
250
- }
251
- function isElement(object) {
252
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
253
- }
254
- function isForwardRef(object) {
255
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
256
- }
257
- function isFragment(object) {
258
- return typeOf(object) === REACT_FRAGMENT_TYPE;
259
- }
260
- function isLazy(object) {
261
- return typeOf(object) === REACT_LAZY_TYPE;
262
- }
263
- function isMemo(object) {
264
- return typeOf(object) === REACT_MEMO_TYPE;
265
- }
266
- function isPortal(object) {
267
- return typeOf(object) === REACT_PORTAL_TYPE;
268
- }
269
- function isProfiler(object) {
270
- return typeOf(object) === REACT_PROFILER_TYPE;
271
- }
272
- function isStrictMode(object) {
273
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
274
- }
275
- function isSuspense(object) {
276
- return typeOf(object) === REACT_SUSPENSE_TYPE;
277
- }
278
- reactIs_development.AsyncMode = AsyncMode;
279
- reactIs_development.ConcurrentMode = ConcurrentMode;
280
- reactIs_development.ContextConsumer = ContextConsumer;
281
- reactIs_development.ContextProvider = ContextProvider;
282
- reactIs_development.Element = Element;
283
- reactIs_development.ForwardRef = ForwardRef;
284
- reactIs_development.Fragment = Fragment;
285
- reactIs_development.Lazy = Lazy;
286
- reactIs_development.Memo = Memo;
287
- reactIs_development.Portal = Portal;
288
- reactIs_development.Profiler = Profiler;
289
- reactIs_development.StrictMode = StrictMode;
290
- reactIs_development.Suspense = Suspense;
291
- reactIs_development.isAsyncMode = isAsyncMode;
292
- reactIs_development.isConcurrentMode = isConcurrentMode;
293
- reactIs_development.isContextConsumer = isContextConsumer;
294
- reactIs_development.isContextProvider = isContextProvider;
295
- reactIs_development.isElement = isElement;
296
- reactIs_development.isForwardRef = isForwardRef;
297
- reactIs_development.isFragment = isFragment;
298
- reactIs_development.isLazy = isLazy;
299
- reactIs_development.isMemo = isMemo;
300
- reactIs_development.isPortal = isPortal;
301
- reactIs_development.isProfiler = isProfiler;
302
- reactIs_development.isStrictMode = isStrictMode;
303
- reactIs_development.isSuspense = isSuspense;
304
- reactIs_development.isValidElementType = isValidElementType;
305
- reactIs_development.typeOf = typeOf;
306
- })();
307
- }
308
- return reactIs_development;
309
- }
310
-
311
- var hasRequiredReactIs;
312
- function requireReactIs() {
313
- if (hasRequiredReactIs) return reactIs.exports;
314
- hasRequiredReactIs = 1;
315
- if (process.env.NODE_ENV === 'production') {
316
- reactIs.exports = requireReactIs_production_min();
317
- } else {
318
- reactIs.exports = requireReactIs_development();
319
- }
320
- return reactIs.exports;
321
- }
322
-
323
- /*
324
- object-assign
325
- (c) Sindre Sorhus
326
- @license MIT
327
- */
328
- var objectAssign;
329
- var hasRequiredObjectAssign;
330
- function requireObjectAssign() {
331
- if (hasRequiredObjectAssign) return objectAssign;
332
- hasRequiredObjectAssign = 1;
333
- /* eslint-disable no-unused-vars */
334
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
335
- var hasOwnProperty = Object.prototype.hasOwnProperty;
336
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
337
- function toObject(val) {
338
- if (val === null || val === undefined) {
339
- throw new TypeError('Object.assign cannot be called with null or undefined');
340
- }
341
- return Object(val);
342
- }
343
- function shouldUseNative() {
344
- try {
345
- if (!Object.assign) {
346
- return false;
347
- }
348
-
349
- // Detect buggy property enumeration order in older V8 versions.
350
-
351
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
352
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
353
- test1[5] = 'de';
354
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
355
- return false;
356
- }
357
-
358
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
359
- var test2 = {};
360
- for (var i = 0; i < 10; i++) {
361
- test2['_' + String.fromCharCode(i)] = i;
362
- }
363
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
364
- return test2[n];
365
- });
366
- if (order2.join('') !== '0123456789') {
367
- return false;
368
- }
369
-
370
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
371
- var test3 = {};
372
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
373
- test3[letter] = letter;
374
- });
375
- if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') {
376
- return false;
377
- }
378
- return true;
379
- } catch (err) {
380
- // We don't expect any of the above to throw, but better to be safe.
381
- return false;
382
- }
383
- }
384
- objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
385
- var from;
386
- var to = toObject(target);
387
- var symbols;
388
- for (var s = 1; s < arguments.length; s++) {
389
- from = Object(arguments[s]);
390
- for (var key in from) {
391
- if (hasOwnProperty.call(from, key)) {
392
- to[key] = from[key];
393
- }
394
- }
395
- if (getOwnPropertySymbols) {
396
- symbols = getOwnPropertySymbols(from);
397
- for (var i = 0; i < symbols.length; i++) {
398
- if (propIsEnumerable.call(from, symbols[i])) {
399
- to[symbols[i]] = from[symbols[i]];
400
- }
401
- }
402
- }
403
- }
404
- return to;
405
- };
406
- return objectAssign;
407
- }
408
-
409
- /**
410
- * Copyright (c) 2013-present, Facebook, Inc.
411
- *
412
- * This source code is licensed under the MIT license found in the
413
- * LICENSE file in the root directory of this source tree.
414
- */
415
- var ReactPropTypesSecret_1;
416
- var hasRequiredReactPropTypesSecret;
417
- function requireReactPropTypesSecret() {
418
- if (hasRequiredReactPropTypesSecret) return ReactPropTypesSecret_1;
419
- hasRequiredReactPropTypesSecret = 1;
420
- var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
421
- ReactPropTypesSecret_1 = ReactPropTypesSecret;
422
- return ReactPropTypesSecret_1;
423
- }
424
-
425
- var has;
426
- var hasRequiredHas;
427
- function requireHas() {
428
- if (hasRequiredHas) return has;
429
- hasRequiredHas = 1;
430
- has = Function.call.bind(Object.prototype.hasOwnProperty);
431
- return has;
432
- }
433
-
434
- /**
435
- * Copyright (c) 2013-present, Facebook, Inc.
436
- *
437
- * This source code is licensed under the MIT license found in the
438
- * LICENSE file in the root directory of this source tree.
439
- */
440
- var checkPropTypes_1;
441
- var hasRequiredCheckPropTypes;
442
- function requireCheckPropTypes() {
443
- if (hasRequiredCheckPropTypes) return checkPropTypes_1;
444
- hasRequiredCheckPropTypes = 1;
445
- var printWarning = function () {};
446
- if (process.env.NODE_ENV !== 'production') {
447
- var ReactPropTypesSecret = /*@__PURE__*/requireReactPropTypesSecret();
448
- var loggedTypeFailures = {};
449
- var has = /*@__PURE__*/requireHas();
450
- printWarning = function (text) {
451
- var message = 'Warning: ' + text;
452
- if (typeof console !== 'undefined') {
453
- console.error(message);
454
- }
455
- try {
456
- // --- Welcome to debugging React ---
457
- // This error was thrown as a convenience so that you can use this stack
458
- // to find the callsite that caused this warning to fire.
459
- throw new Error(message);
460
- } catch (x) {/**/}
461
- };
462
- }
463
-
464
- /**
465
- * Assert that the values match with the type specs.
466
- * Error messages are memorized and will only be shown once.
467
- *
468
- * @param {object} typeSpecs Map of name to a ReactPropType
469
- * @param {object} values Runtime values that need to be type-checked
470
- * @param {string} location e.g. "prop", "context", "child context"
471
- * @param {string} componentName Name of the component for error messages.
472
- * @param {?Function} getStack Returns the component stack.
473
- * @private
474
- */
475
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
476
- if (process.env.NODE_ENV !== 'production') {
477
- for (var typeSpecName in typeSpecs) {
478
- if (has(typeSpecs, typeSpecName)) {
479
- var error;
480
- // Prop type validation may throw. In case they do, we don't want to
481
- // fail the render phase where it didn't fail before. So we log it.
482
- // After these have been cleaned up, we'll let them throw.
483
- try {
484
- // This is intentionally an invariant that gets caught. It's the same
485
- // behavior as without this statement except with a better message.
486
- if (typeof typeSpecs[typeSpecName] !== 'function') {
487
- var err = Error((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`.');
488
- err.name = 'Invariant Violation';
489
- throw err;
490
- }
491
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
492
- } catch (ex) {
493
- error = ex;
494
- }
495
- if (error && !(error instanceof Error)) {
496
- printWarning((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).');
497
- }
498
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
499
- // Only monitor this failure once because there tends to be a lot of the
500
- // same error.
501
- loggedTypeFailures[error.message] = true;
502
- var stack = getStack ? getStack() : '';
503
- printWarning('Failed ' + location + ' type: ' + error.message + (stack != null ? stack : ''));
504
- }
505
- }
506
- }
507
- }
508
- }
509
-
510
- /**
511
- * Resets warning cache when testing.
512
- *
513
- * @private
514
- */
515
- checkPropTypes.resetWarningCache = function () {
516
- if (process.env.NODE_ENV !== 'production') {
517
- loggedTypeFailures = {};
518
- }
519
- };
520
- checkPropTypes_1 = checkPropTypes;
521
- return checkPropTypes_1;
522
- }
523
-
524
- /**
525
- * Copyright (c) 2013-present, Facebook, Inc.
526
- *
527
- * This source code is licensed under the MIT license found in the
528
- * LICENSE file in the root directory of this source tree.
529
- */
530
- var factoryWithTypeCheckers;
531
- var hasRequiredFactoryWithTypeCheckers;
532
- function requireFactoryWithTypeCheckers() {
533
- if (hasRequiredFactoryWithTypeCheckers) return factoryWithTypeCheckers;
534
- hasRequiredFactoryWithTypeCheckers = 1;
535
- var ReactIs = requireReactIs();
536
- var assign = requireObjectAssign();
537
- var ReactPropTypesSecret = /*@__PURE__*/requireReactPropTypesSecret();
538
- var has = /*@__PURE__*/requireHas();
539
- var checkPropTypes = /*@__PURE__*/requireCheckPropTypes();
540
- var printWarning = function () {};
541
- if (process.env.NODE_ENV !== 'production') {
542
- printWarning = function (text) {
543
- var message = 'Warning: ' + text;
544
- if (typeof console !== 'undefined') {
545
- console.error(message);
546
- }
547
- try {
548
- // --- Welcome to debugging React ---
549
- // This error was thrown as a convenience so that you can use this stack
550
- // to find the callsite that caused this warning to fire.
551
- throw new Error(message);
552
- } catch (x) {}
553
- };
554
- }
555
- function emptyFunctionThatReturnsNull() {
556
- return null;
557
- }
558
- factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
559
- /* global Symbol */
560
- var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
561
- var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
562
-
563
- /**
564
- * Returns the iterator method function contained on the iterable object.
565
- *
566
- * Be sure to invoke the function with the iterable as context:
567
- *
568
- * var iteratorFn = getIteratorFn(myIterable);
569
- * if (iteratorFn) {
570
- * var iterator = iteratorFn.call(myIterable);
571
- * ...
572
- * }
573
- *
574
- * @param {?object} maybeIterable
575
- * @return {?function}
576
- */
577
- function getIteratorFn(maybeIterable) {
578
- var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
579
- if (typeof iteratorFn === 'function') {
580
- return iteratorFn;
581
- }
582
- }
583
-
584
- /**
585
- * Collection of methods that allow declaration and validation of props that are
586
- * supplied to React components. Example usage:
587
- *
588
- * var Props = require('ReactPropTypes');
589
- * var MyArticle = React.createClass({
590
- * propTypes: {
591
- * // An optional string prop named "description".
592
- * description: Props.string,
593
- *
594
- * // A required enum prop named "category".
595
- * category: Props.oneOf(['News','Photos']).isRequired,
596
- *
597
- * // A prop named "dialog" that requires an instance of Dialog.
598
- * dialog: Props.instanceOf(Dialog).isRequired
599
- * },
600
- * render: function() { ... }
601
- * });
602
- *
603
- * A more formal specification of how these methods are used:
604
- *
605
- * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
606
- * decl := ReactPropTypes.{type}(.isRequired)?
607
- *
608
- * Each and every declaration produces a function with the same signature. This
609
- * allows the creation of custom validation functions. For example:
610
- *
611
- * var MyLink = React.createClass({
612
- * propTypes: {
613
- * // An optional string or URI prop named "href".
614
- * href: function(props, propName, componentName) {
615
- * var propValue = props[propName];
616
- * if (propValue != null && typeof propValue !== 'string' &&
617
- * !(propValue instanceof URI)) {
618
- * return new Error(
619
- * 'Expected a string or an URI for ' + propName + ' in ' +
620
- * componentName
621
- * );
622
- * }
623
- * }
624
- * },
625
- * render: function() {...}
626
- * });
627
- *
628
- * @internal
629
- */
630
-
631
- var ANONYMOUS = '<<anonymous>>';
632
-
633
- // Important!
634
- // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
635
- var ReactPropTypes = {
636
- array: createPrimitiveTypeChecker('array'),
637
- bigint: createPrimitiveTypeChecker('bigint'),
638
- bool: createPrimitiveTypeChecker('boolean'),
639
- func: createPrimitiveTypeChecker('function'),
640
- number: createPrimitiveTypeChecker('number'),
641
- object: createPrimitiveTypeChecker('object'),
642
- string: createPrimitiveTypeChecker('string'),
643
- symbol: createPrimitiveTypeChecker('symbol'),
644
- any: createAnyTypeChecker(),
645
- arrayOf: createArrayOfTypeChecker,
646
- element: createElementTypeChecker(),
647
- elementType: createElementTypeTypeChecker(),
648
- instanceOf: createInstanceTypeChecker,
649
- node: createNodeChecker(),
650
- objectOf: createObjectOfTypeChecker,
651
- oneOf: createEnumTypeChecker,
652
- oneOfType: createUnionTypeChecker,
653
- shape: createShapeTypeChecker,
654
- exact: createStrictShapeTypeChecker
8
+ const Color = ({ fill, stroke, customFill, customStroke, className, children, ...props }) => {
9
+ const style = {
10
+ ...(customFill ? { backgroundColor: customFill } : {}),
11
+ ...(customStroke ? { border: `1px solid ${customStroke}` } : {})
655
12
  };
13
+ const childClassName = classnames(children.props.className, className, {
14
+ [`fill-${fill}`]: fill,
15
+ [`stroke-${stroke}`]: stroke
16
+ });
17
+ return e__default.cloneElement(children, {
18
+ className: childClassName,
19
+ style: { ...children.props.style, ...style },
20
+ ...props
21
+ });
22
+ };
656
23
 
657
- /**
658
- * inlined Object.is polyfill to avoid requiring consumers ship their own
659
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
660
- */
661
- /*eslint-disable no-self-compare*/
662
- function is(x, y) {
663
- // SameValue algorithm
664
- if (x === y) {
665
- // Steps 1-5, 7-10
666
- // Steps 6.b-6.e: +0 != -0
667
- return x !== 0 || 1 / x === 1 / y;
668
- } else {
669
- // Step 6.a: NaN == NaN
670
- return x !== x && y !== y;
671
- }
672
- }
673
- /*eslint-enable no-self-compare*/
674
-
675
- /**
676
- * We use an Error-like object for backward compatibility as people may call
677
- * PropTypes directly and inspect their output. However, we don't use real
678
- * Errors anymore. We don't inspect their stack anyway, and creating them
679
- * is prohibitively expensive if they are created too often, such as what
680
- * happens in oneOfType() for any type before the one that matched.
681
- */
682
- function PropTypeError(message, data) {
683
- this.message = message;
684
- this.data = data && typeof data === 'object' ? data : {};
685
- this.stack = '';
686
- }
687
- // Make `instanceof Error` still work for returned errors.
688
- PropTypeError.prototype = Error.prototype;
689
- function createChainableTypeChecker(validate) {
690
- if (process.env.NODE_ENV !== 'production') {
691
- var manualPropTypeCallCache = {};
692
- var manualPropTypeWarningCount = 0;
693
- }
694
- function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
695
- componentName = componentName || ANONYMOUS;
696
- propFullName = propFullName || propName;
697
- if (secret !== ReactPropTypesSecret) {
698
- if (throwOnDirectAccess) {
699
- // New behavior only for users of `prop-types` package
700
- var err = new Error('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');
701
- err.name = 'Invariant Violation';
702
- throw err;
703
- } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
704
- // Old behavior for people using React.PropTypes
705
- var cacheKey = componentName + ':' + propName;
706
- if (!manualPropTypeCallCache[cacheKey] &&
707
- // Avoid spamming the console because they are often not actionable except for lib authors
708
- manualPropTypeWarningCount < 3) {
709
- printWarning('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.');
710
- manualPropTypeCallCache[cacheKey] = true;
711
- manualPropTypeWarningCount++;
712
- }
713
- }
714
- }
715
- if (props[propName] == null) {
716
- if (isRequired) {
717
- if (props[propName] === null) {
718
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
719
- }
720
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
721
- }
722
- return null;
723
- } else {
724
- return validate(props, propName, componentName, location, propFullName);
725
- }
726
- }
727
- var chainedCheckType = checkType.bind(null, false);
728
- chainedCheckType.isRequired = checkType.bind(null, true);
729
- return chainedCheckType;
730
- }
731
- function createPrimitiveTypeChecker(expectedType) {
732
- function validate(props, propName, componentName, location, propFullName, secret) {
733
- var propValue = props[propName];
734
- var propType = getPropType(propValue);
735
- if (propType !== expectedType) {
736
- // `propValue` being instance of, say, date/regexp, pass the 'object'
737
- // check, but we can offer a more precise error message here rather than
738
- // 'of type `object`'.
739
- var preciseType = getPreciseType(propValue);
740
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'), {
741
- expectedType: expectedType
742
- });
743
- }
744
- return null;
745
- }
746
- return createChainableTypeChecker(validate);
747
- }
748
- function createAnyTypeChecker() {
749
- return createChainableTypeChecker(emptyFunctionThatReturnsNull);
750
- }
751
- function createArrayOfTypeChecker(typeChecker) {
752
- function validate(props, propName, componentName, location, propFullName) {
753
- if (typeof typeChecker !== 'function') {
754
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
755
- }
756
- var propValue = props[propName];
757
- if (!Array.isArray(propValue)) {
758
- var propType = getPropType(propValue);
759
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
760
- }
761
- for (var i = 0; i < propValue.length; i++) {
762
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
763
- if (error instanceof Error) {
764
- return error;
765
- }
766
- }
767
- return null;
768
- }
769
- return createChainableTypeChecker(validate);
770
- }
771
- function createElementTypeChecker() {
772
- function validate(props, propName, componentName, location, propFullName) {
773
- var propValue = props[propName];
774
- if (!isValidElement(propValue)) {
775
- var propType = getPropType(propValue);
776
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
777
- }
778
- return null;
779
- }
780
- return createChainableTypeChecker(validate);
781
- }
782
- function createElementTypeTypeChecker() {
783
- function validate(props, propName, componentName, location, propFullName) {
784
- var propValue = props[propName];
785
- if (!ReactIs.isValidElementType(propValue)) {
786
- var propType = getPropType(propValue);
787
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
788
- }
789
- return null;
790
- }
791
- return createChainableTypeChecker(validate);
792
- }
793
- function createInstanceTypeChecker(expectedClass) {
794
- function validate(props, propName, componentName, location, propFullName) {
795
- if (!(props[propName] instanceof expectedClass)) {
796
- var expectedClassName = expectedClass.name || ANONYMOUS;
797
- var actualClassName = getClassName(props[propName]);
798
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
799
- }
800
- return null;
801
- }
802
- return createChainableTypeChecker(validate);
803
- }
804
- function createEnumTypeChecker(expectedValues) {
805
- if (!Array.isArray(expectedValues)) {
806
- if (process.env.NODE_ENV !== 'production') {
807
- if (arguments.length > 1) {
808
- printWarning('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]).');
809
- } else {
810
- printWarning('Invalid argument supplied to oneOf, expected an array.');
811
- }
812
- }
813
- return emptyFunctionThatReturnsNull;
814
- }
815
- function validate(props, propName, componentName, location, propFullName) {
816
- var propValue = props[propName];
817
- for (var i = 0; i < expectedValues.length; i++) {
818
- if (is(propValue, expectedValues[i])) {
819
- return null;
820
- }
821
- }
822
- var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
823
- var type = getPreciseType(value);
824
- if (type === 'symbol') {
825
- return String(value);
826
- }
827
- return value;
828
- });
829
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
830
- }
831
- return createChainableTypeChecker(validate);
832
- }
833
- function createObjectOfTypeChecker(typeChecker) {
834
- function validate(props, propName, componentName, location, propFullName) {
835
- if (typeof typeChecker !== 'function') {
836
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
24
+ const viewportSizes = {
25
+ 'mobile-sm': 375,
26
+ 'mobile': 576,
27
+ 'tablet': 768,
28
+ 'laptop': 1024,
29
+ 'desktop': 1280
30
+ };
31
+ const Display = ({ show, hide, children }) => {
32
+ const [isDisplayed, setDisplayed] = useState(false);
33
+ const updateMedia = () => {
34
+ if (show === 'touch') {
35
+ setDisplayed(navigator.maxTouchPoints > 0);
837
36
  }
838
- var propValue = props[propName];
839
- var propType = getPropType(propValue);
840
- if (propType !== 'object') {
841
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
37
+ else if (hide === 'touch') {
38
+ setDisplayed(navigator.maxTouchPoints === 0);
842
39
  }
843
- for (var key in propValue) {
844
- if (has(propValue, key)) {
845
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
846
- if (error instanceof Error) {
847
- return error;
40
+ else {
41
+ const viewportValue = viewportSizes[(show || hide)];
42
+ if (show) {
43
+ setDisplayed(window.innerWidth <= viewportValue);
848
44
  }
849
- }
850
- }
851
- return null;
852
- }
853
- return createChainableTypeChecker(validate);
854
- }
855
- function createUnionTypeChecker(arrayOfTypeCheckers) {
856
- if (!Array.isArray(arrayOfTypeCheckers)) {
857
- process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
858
- return emptyFunctionThatReturnsNull;
859
- }
860
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
861
- var checker = arrayOfTypeCheckers[i];
862
- if (typeof checker !== 'function') {
863
- printWarning('Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.');
864
- return emptyFunctionThatReturnsNull;
865
- }
866
- }
867
- function validate(props, propName, componentName, location, propFullName) {
868
- var expectedTypes = [];
869
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
870
- var checker = arrayOfTypeCheckers[i];
871
- var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
872
- if (checkerResult == null) {
873
- return null;
874
- }
875
- if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
876
- expectedTypes.push(checkerResult.data.expectedType);
877
- }
878
- }
879
- var expectedTypesMessage = expectedTypes.length > 0 ? ', expected one of type [' + expectedTypes.join(', ') + ']' : '';
880
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
881
- }
882
- return createChainableTypeChecker(validate);
883
- }
884
- function createNodeChecker() {
885
- function validate(props, propName, componentName, location, propFullName) {
886
- if (!isNode(props[propName])) {
887
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
888
- }
889
- return null;
890
- }
891
- return createChainableTypeChecker(validate);
892
- }
893
- function invalidValidatorError(componentName, location, propFullName, key, type) {
894
- return new PropTypeError((componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.');
895
- }
896
- function createShapeTypeChecker(shapeTypes) {
897
- function validate(props, propName, componentName, location, propFullName) {
898
- var propValue = props[propName];
899
- var propType = getPropType(propValue);
900
- if (propType !== 'object') {
901
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
902
- }
903
- for (var key in shapeTypes) {
904
- var checker = shapeTypes[key];
905
- if (typeof checker !== 'function') {
906
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
907
- }
908
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
909
- if (error) {
910
- return error;
911
- }
912
- }
913
- return null;
914
- }
915
- return createChainableTypeChecker(validate);
916
- }
917
- function createStrictShapeTypeChecker(shapeTypes) {
918
- function validate(props, propName, componentName, location, propFullName) {
919
- var propValue = props[propName];
920
- var propType = getPropType(propValue);
921
- if (propType !== 'object') {
922
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
923
- }
924
- // We need to check all keys in case some are required but missing from props.
925
- var allKeys = assign({}, props[propName], shapeTypes);
926
- for (var key in allKeys) {
927
- var checker = shapeTypes[key];
928
- if (has(shapeTypes, key) && typeof checker !== 'function') {
929
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
930
- }
931
- if (!checker) {
932
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' '));
933
- }
934
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
935
- if (error) {
936
- return error;
937
- }
938
- }
939
- return null;
940
- }
941
- return createChainableTypeChecker(validate);
942
- }
943
- function isNode(propValue) {
944
- switch (typeof propValue) {
945
- case 'number':
946
- case 'string':
947
- case 'undefined':
948
- return true;
949
- case 'boolean':
950
- return !propValue;
951
- case 'object':
952
- if (Array.isArray(propValue)) {
953
- return propValue.every(isNode);
954
- }
955
- if (propValue === null || isValidElement(propValue)) {
956
- return true;
957
- }
958
- var iteratorFn = getIteratorFn(propValue);
959
- if (iteratorFn) {
960
- var iterator = iteratorFn.call(propValue);
961
- var step;
962
- if (iteratorFn !== propValue.entries) {
963
- while (!(step = iterator.next()).done) {
964
- if (!isNode(step.value)) {
965
- return false;
966
- }
967
- }
968
- } else {
969
- // Iterator will provide entry [k,v] tuples rather than values.
970
- while (!(step = iterator.next()).done) {
971
- var entry = step.value;
972
- if (entry) {
973
- if (!isNode(entry[1])) {
974
- return false;
975
- }
976
- }
977
- }
45
+ else if (hide) {
46
+ setDisplayed(window.innerWidth > viewportValue);
978
47
  }
979
- } else {
980
- return false;
981
- }
982
- return true;
983
- default:
984
- return false;
985
- }
986
- }
987
- function isSymbol(propType, propValue) {
988
- // Native Symbol.
989
- if (propType === 'symbol') {
990
- return true;
991
- }
992
-
993
- // falsy value can't be a Symbol
994
- if (!propValue) {
995
- return false;
996
- }
997
-
998
- // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
999
- if (propValue['@@toStringTag'] === 'Symbol') {
1000
- return true;
1001
- }
1002
-
1003
- // Fallback for non-spec compliant Symbols which are polyfilled.
1004
- if (typeof Symbol === 'function' && propValue instanceof Symbol) {
1005
- return true;
1006
- }
1007
- return false;
1008
- }
1009
-
1010
- // Equivalent of `typeof` but with special handling for array and regexp.
1011
- function getPropType(propValue) {
1012
- var propType = typeof propValue;
1013
- if (Array.isArray(propValue)) {
1014
- return 'array';
1015
- }
1016
- if (propValue instanceof RegExp) {
1017
- // Old webkits (at least until Android 4.0) return 'function' rather than
1018
- // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
1019
- // passes PropTypes.object.
1020
- return 'object';
1021
- }
1022
- if (isSymbol(propType, propValue)) {
1023
- return 'symbol';
1024
- }
1025
- return propType;
1026
- }
1027
-
1028
- // This handles more types than `getPropType`. Only used for error messages.
1029
- // See `createPrimitiveTypeChecker`.
1030
- function getPreciseType(propValue) {
1031
- if (typeof propValue === 'undefined' || propValue === null) {
1032
- return '' + propValue;
1033
- }
1034
- var propType = getPropType(propValue);
1035
- if (propType === 'object') {
1036
- if (propValue instanceof Date) {
1037
- return 'date';
1038
- } else if (propValue instanceof RegExp) {
1039
- return 'regexp';
1040
48
  }
1041
- }
1042
- return propType;
1043
- }
1044
-
1045
- // Returns a string that is postfixed to a warning about an invalid type.
1046
- // For example, "undefined" or "of type array"
1047
- function getPostfixForTypeWarning(value) {
1048
- var type = getPreciseType(value);
1049
- switch (type) {
1050
- case 'array':
1051
- case 'object':
1052
- return 'an ' + type;
1053
- case 'boolean':
1054
- case 'date':
1055
- case 'regexp':
1056
- return 'a ' + type;
1057
- default:
1058
- return type;
1059
- }
1060
- }
1061
-
1062
- // Returns class name of the object, if any.
1063
- function getClassName(propValue) {
1064
- if (!propValue.constructor || !propValue.constructor.name) {
1065
- return ANONYMOUS;
1066
- }
1067
- return propValue.constructor.name;
1068
- }
1069
- ReactPropTypes.checkPropTypes = checkPropTypes;
1070
- ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
1071
- ReactPropTypes.PropTypes = ReactPropTypes;
1072
- return ReactPropTypes;
1073
- };
1074
- return factoryWithTypeCheckers;
1075
- }
1076
-
1077
- /**
1078
- * Copyright (c) 2013-present, Facebook, Inc.
1079
- *
1080
- * This source code is licensed under the MIT license found in the
1081
- * LICENSE file in the root directory of this source tree.
1082
- */
1083
- var factoryWithThrowingShims;
1084
- var hasRequiredFactoryWithThrowingShims;
1085
- function requireFactoryWithThrowingShims() {
1086
- if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims;
1087
- hasRequiredFactoryWithThrowingShims = 1;
1088
- var ReactPropTypesSecret = /*@__PURE__*/requireReactPropTypesSecret();
1089
- function emptyFunction() {}
1090
- function emptyFunctionWithReset() {}
1091
- emptyFunctionWithReset.resetWarningCache = emptyFunction;
1092
- factoryWithThrowingShims = function () {
1093
- function shim(props, propName, componentName, location, propFullName, secret) {
1094
- if (secret === ReactPropTypesSecret) {
1095
- // It is still safe when called from React.
1096
- return;
1097
- }
1098
- var err = new Error('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');
1099
- err.name = 'Invariant Violation';
1100
- throw err;
1101
- }
1102
- shim.isRequired = shim;
1103
- function getShim() {
1104
- return shim;
1105
- }
1106
- // Important!
1107
- // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
1108
- var ReactPropTypes = {
1109
- array: shim,
1110
- bigint: shim,
1111
- bool: shim,
1112
- func: shim,
1113
- number: shim,
1114
- object: shim,
1115
- string: shim,
1116
- symbol: shim,
1117
- any: shim,
1118
- arrayOf: getShim,
1119
- element: shim,
1120
- elementType: shim,
1121
- instanceOf: getShim,
1122
- node: shim,
1123
- objectOf: getShim,
1124
- oneOf: getShim,
1125
- oneOfType: getShim,
1126
- shape: getShim,
1127
- exact: getShim,
1128
- checkPropTypes: emptyFunctionWithReset,
1129
- resetWarningCache: emptyFunction
1130
49
  };
1131
- ReactPropTypes.PropTypes = ReactPropTypes;
1132
- return ReactPropTypes;
1133
- };
1134
- return factoryWithThrowingShims;
1135
- }
1136
-
1137
- /**
1138
- * Copyright (c) 2013-present, Facebook, Inc.
1139
- *
1140
- * This source code is licensed under the MIT license found in the
1141
- * LICENSE file in the root directory of this source tree.
1142
- */
1143
- var hasRequiredPropTypes;
1144
- function requirePropTypes() {
1145
- if (hasRequiredPropTypes) return propTypes.exports;
1146
- hasRequiredPropTypes = 1;
1147
- if (process.env.NODE_ENV !== 'production') {
1148
- var ReactIs = requireReactIs();
1149
-
1150
- // By explicitly using `prop-types` you are opting into new development behavior.
1151
- // http://fb.me/prop-types-in-prod
1152
- var throwOnDirectAccess = true;
1153
- propTypes.exports = /*@__PURE__*/requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
1154
- } else {
1155
- // By explicitly using `prop-types` you are opting into new production behavior.
1156
- // http://fb.me/prop-types-in-prod
1157
- propTypes.exports = /*@__PURE__*/requireFactoryWithThrowingShims()();
1158
- }
1159
- return propTypes.exports;
1160
- }
1161
-
1162
- var propTypesExports = /*@__PURE__*/ requirePropTypes();
1163
- var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
1164
-
1165
- const Color = ({
1166
- fill,
1167
- stroke,
1168
- customFill,
1169
- customStroke,
1170
- className,
1171
- children,
1172
- ...props
1173
- }) => {
1174
- const style = {
1175
- ...(customFill ? {
1176
- backgroundColor: customFill
1177
- } : {}),
1178
- ...(customStroke ? {
1179
- border: `1px solid ${customStroke}`
1180
- } : {})
1181
- };
1182
- const childClassName = classnames(children.props.className, className, {
1183
- [`fill-${fill}`]: fill,
1184
- [`stroke-${stroke}`]: stroke
1185
- });
1186
- return /*#__PURE__*/React__default.cloneElement(children, {
1187
- className: childClassName,
1188
- style: {
1189
- ...children.props.style,
1190
- ...style
1191
- },
1192
- ...props
1193
- });
1194
- };
1195
- Color.propTypes = {
1196
- fill: PropTypes.oneOf(['main', 'contrast', 'grey90', 'grey80', 'grey70', 'grey60', 'grey50', 'grey40', 'grey30', 'grey20', 'grey10', 'grey5', 'default', 'paper', 'primary', 'secondary', 'success', 'info', 'warning', 'error']),
1197
- stroke: PropTypes.oneOf(['main', 'contrast', 'grey90', 'grey80', 'grey70', 'grey60', 'grey50', 'grey40', 'grey30', 'grey20', 'grey10', 'grey5', 'default', 'paper', 'primary', 'secondary', 'success', 'info', 'warning', 'error']),
1198
- customFill: PropTypes.string,
1199
- customStroke: PropTypes.string,
1200
- className: PropTypes.node,
1201
- children: PropTypes.node
1202
- };
1203
-
1204
- const viewportSizes = {
1205
- 'mobile-sm': 375,
1206
- 'mobile': 576,
1207
- 'tablet': 768,
1208
- 'laptop': 1024,
1209
- 'desktop': 1280
1210
- };
1211
- const Display = ({
1212
- show,
1213
- hide,
1214
- children
1215
- }) => {
1216
- const [isDisplayed, setDisplayed] = useState(false);
1217
- const updateMedia = () => {
1218
- if (show === 'touch') {
1219
- setDisplayed(navigator.maxTouchPoints > 0);
1220
- } else if (hide === 'touch') {
1221
- setDisplayed(navigator.maxTouchPoints === 0);
1222
- } else {
1223
- const viewportValue = viewportSizes[show || hide];
1224
- if (show) {
1225
- setDisplayed(window.innerWidth <= viewportValue);
1226
- } else if (hide) {
1227
- setDisplayed(window.innerWidth > viewportValue);
1228
- }
1229
- }
1230
- };
1231
- useEffect(() => {
1232
- updateMedia();
1233
- window.addEventListener('resize', updateMedia);
1234
- return () => window.removeEventListener('resize', updateMedia);
1235
- }, [show, hide]);
1236
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, isDisplayed ? children : null);
1237
- };
1238
- Display.propTypes = {
1239
- show: PropTypes.oneOf(['mobile-sm', 'mobile', 'tablet', 'laptop', 'desktop', 'touch']),
1240
- hide: PropTypes.oneOf(['mobile-sm', 'mobile', 'tablet', 'laptop', 'desktop', 'touch']),
1241
- children: PropTypes.node
1242
- };
1243
-
1244
- function _extends() {
1245
- return _extends = Object.assign ? Object.assign.bind() : function (n) {
1246
- for (var e = 1; e < arguments.length; e++) {
1247
- var t = arguments[e];
1248
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
1249
- }
1250
- return n;
1251
- }, _extends.apply(null, arguments);
1252
- }
1253
-
1254
- const Grid = ({
1255
- item,
1256
- wrap,
1257
- direction,
1258
- justify,
1259
- items,
1260
- self,
1261
- gap,
1262
- col,
1263
- colxs,
1264
- colsm,
1265
- colmd,
1266
- collg,
1267
- colxl,
1268
- className,
1269
- children,
1270
- ...props
1271
- }) => {
1272
- return /*#__PURE__*/React__default.createElement("div", _extends({
1273
- className: classnames('flex', {
1274
- 'flex-wrap': wrap,
1275
- [`direction-${direction}`]: direction,
1276
- [`justify-${justify}`]: justify,
1277
- [`items-${items}`]: items,
1278
- [`slef-${self}`]: self,
1279
- [`col-${col}`]: col,
1280
- [`col-xs-${colxs}`]: colxs,
1281
- [`col-sm-${colsm}`]: colsm,
1282
- [`col-md-${colmd}`]: colmd,
1283
- [`col-lg-${collg}`]: collg,
1284
- [`col-xl-${colxl}`]: colxl,
1285
- [`gap-${gap}`]: gap
1286
- }, className)
1287
- }, props), children);
1288
- };
1289
- Grid.propTypes = {
1290
- item: PropTypes.bool,
1291
- wrap: PropTypes.bool,
1292
- direction: PropTypes.oneOf(['column', 'columnReverse', 'row', 'rowReverse']),
1293
- justify: PropTypes.oneOf(['center', 'end', 'start', 'spaceAround', 'spaceBetween', 'spaceEvenly']),
1294
- items: PropTypes.oneOf(['stretch', 'center', 'end', 'start', 'baseline']),
1295
- self: PropTypes.oneOf(['stretch', 'center', 'end', 'start', 'baseline']),
1296
- col: PropTypes.oneOf([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]),
1297
- colxs: PropTypes.oneOf([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]),
1298
- colsm: PropTypes.oneOf([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]),
1299
- colmd: PropTypes.oneOf([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]),
1300
- collg: PropTypes.oneOf([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]),
1301
- colxl: PropTypes.oneOf([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]),
1302
- gap: PropTypes.oneOf([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]),
1303
- className: PropTypes.node,
1304
- children: PropTypes.node
1305
- };
1306
-
1307
- const Text = ({
1308
- variant,
1309
- align,
1310
- weight,
1311
- transform,
1312
- italic,
1313
- underline,
1314
- strikeThrough,
1315
- code,
1316
- color,
1317
- component,
1318
- className,
1319
- children,
1320
- ...props
1321
- }) => {
1322
- const Component = component || 'p';
1323
- return /*#__PURE__*/React__default.createElement(Component, _extends({
1324
- className: classnames([{
1325
- [`${variant}`]: variant,
1326
- [`text-${align}`]: align,
1327
- [`text-${weight}`]: weight,
1328
- [`text-${transform}`]: transform,
1329
- [`text-${color}`]: color,
1330
- 'text-italic': italic,
1331
- 'text-underline': underline,
1332
- 'text-strikeThrough': strikeThrough,
1333
- 'text-code': code
1334
- }, className])
1335
- }, props), children);
1336
- };
1337
- Text.propTypes = {
1338
- variant: PropTypes.oneOf(['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'subtitle', 'body', 'caption', 'overline']),
1339
- align: PropTypes.oneOf(['left', 'center', 'right', 'justify']),
1340
- weight: PropTypes.oneOf(['regular', 'bold']),
1341
- transform: PropTypes.oneOf(['none', 'capitalize', 'uppercase', 'lowercase', 'initial', 'inherit']),
1342
- italic: PropTypes.bool,
1343
- underline: PropTypes.bool,
1344
- strikeThrough: PropTypes.bool,
1345
- code: PropTypes.bool,
1346
- color: PropTypes.oneOf(['default', 'alt', 'disabled', 'contrast', 'contrastAlt', 'contrastDisabled', 'primary', 'secondary', 'success', 'info', 'warning', 'error']),
1347
- component: PropTypes.oneOf(['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p', 'span', 'label', 'legend']),
1348
- className: PropTypes.node,
1349
- children: PropTypes.node
1350
- };
1351
-
1352
- const o$3 = /*#__PURE__*/createContext({
50
+ useEffect(() => {
51
+ updateMedia();
52
+ window.addEventListener('resize', updateMedia);
53
+ return () => window.removeEventListener('resize', updateMedia);
54
+ }, [show, hide]);
55
+ return jsx(Fragment, { children: isDisplayed ? children : null });
56
+ };
57
+
58
+ const Grid = ({ item, wrap, direction, justify, items, self, gap, col, colxs, colsm, colmd, collg, colxl, className, children, ...props }) => {
59
+ return (jsx("div", { className: classnames('flex', {
60
+ 'flex-wrap': wrap,
61
+ [`direction-${direction}`]: direction,
62
+ [`justify-${justify}`]: justify,
63
+ [`items-${items}`]: items,
64
+ [`slef-${self}`]: self,
65
+ [`col-${col}`]: col,
66
+ [`col-xs-${colxs}`]: colxs,
67
+ [`col-sm-${colsm}`]: colsm,
68
+ [`col-md-${colmd}`]: colmd,
69
+ [`col-lg-${collg}`]: collg,
70
+ [`col-xl-${colxl}`]: colxl,
71
+ [`gap-${gap}`]: gap
72
+ }, className), ...props, children: children }));
73
+ };
74
+
75
+ const Text = ({ variant, align, weight, transform, italic, underline, strikeThrough, code, color, component, className, children, ...props }) => {
76
+ const Component = component || 'p';
77
+ return (jsx(Component, { className: classnames([
78
+ {
79
+ [`${variant}`]: variant,
80
+ [`text-${align}`]: align,
81
+ [`text-${weight}`]: weight,
82
+ [`text-${transform}`]: transform,
83
+ [`text-${color}`]: color,
84
+ 'text-italic': italic,
85
+ 'text-underline': underline,
86
+ 'text-strikeThrough': strikeThrough,
87
+ 'text-code': code
88
+ },
89
+ className
90
+ ]), ...props, children: children }));
91
+ };
92
+
93
+ const o$3 = createContext({
1353
94
  color: "currentColor",
1354
95
  size: "1em",
1355
96
  weight: "regular",
1356
97
  mirrored: false
1357
98
  });
1358
99
 
1359
- const p = /*#__PURE__*/React.forwardRef((s, a) => {
1360
- const {
100
+ const p = e$7.forwardRef(
101
+ (s, a) => {
102
+ const {
1361
103
  alt: n,
1362
104
  color: r,
1363
105
  size: t,
@@ -1366,1109 +108,600 @@ const p = /*#__PURE__*/React.forwardRef((s, a) => {
1366
108
  children: i,
1367
109
  weights: m,
1368
110
  ...x
1369
- } = s,
1370
- {
111
+ } = s, {
1371
112
  color: d = "currentColor",
1372
113
  size: l,
1373
114
  weight: f = "regular",
1374
115
  mirrored: g = false,
1375
116
  ...w
1376
- } = React.useContext(o$3);
1377
- return /* @__PURE__ */React.createElement("svg", {
1378
- ref: a,
1379
- xmlns: "http://www.w3.org/2000/svg",
1380
- width: t != null ? t : l,
1381
- height: t != null ? t : l,
1382
- fill: r != null ? r : d,
1383
- viewBox: "0 0 256 256",
1384
- transform: c || g ? "scale(-1, 1)" : void 0,
1385
- ...w,
1386
- ...x
1387
- }, !!n && /* @__PURE__ */React.createElement("title", null, n), i, m.get(o != null ? o : f));
1388
- });
117
+ } = e$7.useContext(o$3);
118
+ return /* @__PURE__ */ e$7.createElement(
119
+ "svg",
120
+ {
121
+ ref: a,
122
+ xmlns: "http://www.w3.org/2000/svg",
123
+ width: t != null ? t : l,
124
+ height: t != null ? t : l,
125
+ fill: r != null ? r : d,
126
+ viewBox: "0 0 256 256",
127
+ transform: c || g ? "scale(-1, 1)" : void 0,
128
+ ...w,
129
+ ...x
130
+ },
131
+ !!n && /* @__PURE__ */ e$7.createElement("title", null, n),
132
+ i,
133
+ m.get(o != null ? o : f)
134
+ );
135
+ }
136
+ );
1389
137
  p.displayName = "IconBase";
1390
138
 
1391
- const a$4 = /* @__PURE__ */new Map([["bold", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
1392
- d: "M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"
1393
- }))], ["duotone", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
1394
- d: "M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",
1395
- opacity: "0.2"
1396
- }), /* @__PURE__ */React.createElement("path", {
1397
- d: "M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"
1398
- }))], ["fill", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
1399
- d: "M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"
1400
- }))], ["light", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
1401
- d: "M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"
1402
- }))], ["regular", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
1403
- d: "M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"
1404
- }))], ["thin", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
1405
- d: "M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"
1406
- }))]]);
1407
-
1408
- const e$6 = /*#__PURE__*/React.forwardRef((r, t) => /* @__PURE__ */React.createElement(p, {
1409
- ref: t,
1410
- ...r,
1411
- weights: a$4
1412
- }));
139
+ const a$4 = /* @__PURE__ */ new Map([
140
+ [
141
+ "bold",
142
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z" }))
143
+ ],
144
+ [
145
+ "duotone",
146
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement(
147
+ "path",
148
+ {
149
+ d: "M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",
150
+ opacity: "0.2"
151
+ }
152
+ ), /* @__PURE__ */ e$7.createElement("path", { d: "M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z" }))
153
+ ],
154
+ [
155
+ "fill",
156
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z" }))
157
+ ],
158
+ [
159
+ "light",
160
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z" }))
161
+ ],
162
+ [
163
+ "regular",
164
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z" }))
165
+ ],
166
+ [
167
+ "thin",
168
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z" }))
169
+ ]
170
+ ]);
171
+
172
+ const e$6 = e$7.forwardRef((r, t) => /* @__PURE__ */ e$7.createElement(p, { ref: t, ...r, weights: a$4 }));
1413
173
  e$6.displayName = "XIcon";
1414
174
 
1415
- const Alert = ({
1416
- color = 'success',
1417
- variant = 'toast',
1418
- title,
1419
- subtitle,
1420
- dense,
1421
- noIcon,
1422
- show,
1423
- onClose,
1424
- className,
1425
- ...props
1426
- }) => {
1427
- const [shouldRender, setRender] = useState(show);
1428
- const [container] = useState(() => {
1429
- let el = document.getElementById('alerts');
1430
- if (!el) {
1431
- el = document.createElement('div');
1432
- el.id = 'alerts';
1433
- document.body.appendChild(el);
175
+ const Alert = ({ color = 'success', variant = 'toast', title, subtitle, dense, noIcon, show, onClose, className, ...props }) => {
176
+ const [shouldRender, setRender] = useState(show);
177
+ const [container] = useState(() => {
178
+ let el = document.getElementById('alerts');
179
+ if (!el) {
180
+ el = document.createElement('div');
181
+ el.id = 'alerts';
182
+ document.body.appendChild(el);
183
+ }
184
+ return el;
185
+ });
186
+ useEffect(() => {
187
+ if (show)
188
+ setRender(true);
189
+ }, [show]);
190
+ const onAnimationEnd = () => {
191
+ if (!show)
192
+ setRender(false);
193
+ };
194
+ const alert = (jsxs("div", { className: classnames([
195
+ 'alert',
196
+ {
197
+ [`alert-${color}`]: color,
198
+ [`alert-${variant}`]: variant,
199
+ 'alert-slideIn': show,
200
+ 'alert-slideOut': !show,
201
+ 'alert-dense': dense,
202
+ 'alert-noIcon': noIcon
203
+ },
204
+ className
205
+ ]), onAnimationEnd: onAnimationEnd, ...props, children: [jsxs("div", { className: classnames('alert_content'), children: [title ? jsx(Text, { className: classnames('alert_title'), variant: dense ? 'caption' : 'body', weight: 'bold', children: title }) : null, subtitle ? jsx(Text, { variant: dense ? 'overline' : 'caption', className: classnames('alert_subtitle'), children: subtitle }) : null] }), onClose ? (jsx(e$6, { className: classnames('alert_close'), onClick: onClose, size: dense ? 14 : 16 })) : null] }));
206
+ if (variant === 'notice') {
207
+ return jsx(Fragment, { children: alert });
1434
208
  }
1435
- return el;
1436
- });
1437
- useEffect(() => {
1438
- if (show) setRender(true);
1439
- }, [show]);
1440
- const onAnimationEnd = () => {
1441
- if (!show) setRender(false);
1442
- };
1443
- let alert = /*#__PURE__*/React__default.createElement("div", _extends({
1444
- className: classnames(['alert', {
1445
- [`alert-${color}`]: color,
1446
- [`alert-${variant}`]: variant,
1447
- 'alert-slideIn': show,
1448
- 'alert-slideOut': !show,
1449
- 'alert-dense': dense,
1450
- 'alert-noIcon': noIcon
1451
- }, className]),
1452
- onAnimationEnd: onAnimationEnd
1453
- }, props), /*#__PURE__*/React__default.createElement("div", {
1454
- className: classnames('alert_content')
1455
- }, title ? /*#__PURE__*/React__default.createElement(Text, {
1456
- className: classnames('alert_title'),
1457
- variant: dense ? 'caption' : 'body',
1458
- weight: "bold"
1459
- }, title) : null, subtitle ? /*#__PURE__*/React__default.createElement(Text, {
1460
- variant: dense ? 'overline' : 'caption',
1461
- className: classnames('alert_subtitle')
1462
- }, subtitle) : null), onClose ? /*#__PURE__*/React__default.createElement(e$6, {
1463
- className: classnames('alert_close'),
1464
- onClick: onClose,
1465
- size: dense ? 14 : 16
1466
- }) : null);
1467
- if (variant === 'notice') {
1468
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, alert);
1469
- } else {
1470
- return /*#__PURE__*/createPortal(shouldRender && alert, container);
1471
- }
1472
- };
1473
- Alert.propTypes = {
1474
- color: PropTypes.oneOf(['success', 'info', 'warning', 'error']),
1475
- variant: PropTypes.oneOf(['bar', 'toast', 'notice']),
1476
- title: PropTypes.string.isRequired,
1477
- subtitle: PropTypes.string,
1478
- dense: PropTypes.bool,
1479
- noIcon: PropTypes.bool,
1480
- show: PropTypes.bool,
1481
- onClose: PropTypes.func,
1482
- className: PropTypes.node
1483
- };
1484
-
1485
- const Breadcrumbs = ({
1486
- items,
1487
- separator = "slash",
1488
- className
1489
- }) => /*#__PURE__*/React__default.createElement("nav", {
1490
- "aria-label": "breadcrumbs",
1491
- className: classnames(['breadcrumbs', {
1492
- [`breadcrumbs-${separator}`]: separator
1493
- }, className])
1494
- }, /*#__PURE__*/React__default.createElement("ol", null, items.map((item, index) => /*#__PURE__*/React__default.createElement("li", {
1495
- key: index,
1496
- className: "breadcrumbs_item"
1497
- }, index === items.length - 1 ? /*#__PURE__*/React__default.createElement("p", {
1498
- "aria-current": "page"
1499
- }, item.label) : /*#__PURE__*/React__default.createElement("a", {
1500
- href: item.href
1501
- }, item.label)))));
1502
- Breadcrumbs.propTypes = {
1503
- items: PropTypes.array.isRequired,
1504
- separator: PropTypes.oneOf(['slash', 'arrow']),
1505
- className: PropTypes.node
1506
- };
1507
-
1508
- const Button = /*#__PURE__*/React__default.forwardRef(({
1509
- component = 'button',
1510
- kind,
1511
- variant = 'fill',
1512
- size = 'md',
1513
- color = 'primary',
1514
- fullWidth,
1515
- disabled,
1516
- iconLeft,
1517
- iconRight,
1518
- className,
1519
- children = 'button',
1520
- type = 'button',
1521
- ...props
1522
- }, ref) => {
1523
- const Component = component || 'button';
1524
- let content;
1525
- if (kind === 'icon') {
1526
- content = children;
1527
- } else {
1528
- content = /*#__PURE__*/React__default.createElement(React__default.Fragment, null, iconLeft && iconLeft, children, iconRight && iconRight);
1529
- }
1530
- return /*#__PURE__*/React__default.createElement(Component, _extends({
1531
- className: classnames(['button', {
1532
- [`button-${size}`]: size,
1533
- [`button-${color}`]: color,
1534
- [`button-${kind}`]: kind,
1535
- [`button-${variant}`]: variant,
1536
- 'button-fullWidth': fullWidth,
1537
- 'button-disabled': disabled
1538
- }, className]),
1539
- ref: ref,
1540
- disabled: Component === 'button' ? disabled : undefined
1541
- }, Component === 'button' ? {
1542
- type
1543
- } : {}, props), content);
1544
- });
1545
- Button.displayName = 'Button';
1546
- Button.propTypes = {
1547
- component: PropTypes.oneOfType([PropTypes.oneOf(['button', 'a']), PropTypes.elementType]),
1548
- kind: PropTypes.oneOf(['text', 'icon']),
1549
- variant: PropTypes.oneOf(['fill', 'stroke', 'transparent']),
1550
- size: PropTypes.oneOf(['xs', 'sm', 'md', 'lg']),
1551
- color: PropTypes.oneOf(['primary', 'secondary', 'grey', 'success', 'info', 'warning', 'error', 'main', 'contrast']),
1552
- fullWidth: PropTypes.bool,
1553
- disabled: PropTypes.bool,
1554
- iconLeft: PropTypes.node,
1555
- iconRight: PropTypes.node,
1556
- className: PropTypes.node,
1557
- type: PropTypes.oneOf(['button', 'submit', 'reset']),
1558
- children: PropTypes.node.isRequired
1559
- };
1560
-
1561
- const Buttons = ({
1562
- direction = 'landscape',
1563
- fullWidth,
1564
- wide,
1565
- className,
1566
- children,
1567
- ...props
1568
- }) => {
1569
- return /*#__PURE__*/React__default.createElement("div", _extends({
1570
- className: classnames(['buttons', {
1571
- [`buttons-${direction}`]: direction,
1572
- 'buttons-fullWidth': fullWidth,
1573
- 'buttons-wide': wide
1574
- }, className])
1575
- }, props), children);
1576
- };
1577
- Buttons.propTypes = {
1578
- direction: PropTypes.oneOf(['landscape', 'portrait']),
1579
- fullWidth: PropTypes.bool,
1580
- wide: PropTypes.bool,
1581
- className: PropTypes.node,
1582
- children: PropTypes.node.isRequired
1583
- };
1584
-
1585
- const Card = ({
1586
- size = 'md',
1587
- fill = 'paper',
1588
- direction = 'portrait',
1589
- align = 'left',
1590
- hasShadow = false,
1591
- transparent = false,
1592
- className,
1593
- children,
1594
- ...props
1595
- }) => {
1596
- return /*#__PURE__*/React__default.createElement(Color, {
1597
- fill: transparent ? null : fill
1598
- }, /*#__PURE__*/React__default.createElement("div", _extends({
1599
- className: classnames(['card', {
1600
- [`card-${size}`]: size,
1601
- [`card-${direction}`]: direction,
1602
- [`card-${align}`]: align,
1603
- 'card-hasShadow': hasShadow,
1604
- 'card-transparent': transparent
1605
- }, className])
1606
- }, props), children));
1607
- };
1608
- Card.propTypes = {
1609
- size: PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']),
1610
- fill: PropTypes.oneOf(['default', 'paper', 'primary', 'secondary', 'success', 'info', 'warning', 'error']),
1611
- direction: PropTypes.oneOf(['portrait', 'landscape']),
1612
- align: PropTypes.oneOf(['left', 'center', 'right']),
1613
- hasShadow: PropTypes.bool,
1614
- transparent: PropTypes.bool,
1615
- className: PropTypes.node,
1616
- children: PropTypes.node.isRequired
1617
- };
1618
-
1619
- const CardActions = ({
1620
- direction,
1621
- className,
1622
- children,
1623
- ...props
1624
- }) => {
1625
- return /*#__PURE__*/React__default.createElement("div", _extends({
1626
- className: classnames(['card_actions', {
1627
- [`card_actions-${direction}`]: direction
1628
- }, className])
1629
- }, props), children);
1630
- };
1631
- CardActions.propTypes = {
1632
- direction: PropTypes.oneOf(['portrait', 'landscape']),
1633
- className: PropTypes.node,
1634
- children: PropTypes.node.isRequired
1635
- };
1636
-
1637
- const CardContent = ({
1638
- fullWidth,
1639
- className,
1640
- children,
1641
- ...props
1642
- }) => {
1643
- return /*#__PURE__*/React__default.createElement("div", _extends({
1644
- className: classnames(['card_content', {
1645
- 'card_content-fullWidth': fullWidth
1646
- }, className])
1647
- }, props), children);
1648
- };
1649
- CardContent.propTypes = {
1650
- fullWidth: PropTypes.bool,
1651
- className: PropTypes.node,
1652
- children: PropTypes.node.isRequired
1653
- };
1654
-
1655
- const CardHeader = ({
1656
- icon,
1657
- label,
1658
- title,
1659
- subtitle,
1660
- actions,
1661
- className,
1662
- ...props
1663
- }) => {
1664
- return /*#__PURE__*/React__default.createElement("div", _extends({
1665
- className: classnames(['card_header', className])
1666
- }, props), actions && /*#__PURE__*/React__default.createElement("div", {
1667
- className: "card_headerActions"
1668
- }, actions), icon ? /*#__PURE__*/React__default.cloneElement(icon, {
1669
- className: `${icon.props.className ?? ''} card_icon`
1670
- }) : null, label ? /*#__PURE__*/React__default.createElement(Text, {
1671
- className: classnames('card_label')
1672
- }, label) : null, /*#__PURE__*/React__default.createElement(Text, {
1673
- className: classnames('card_title')
1674
- }, title), subtitle ? /*#__PURE__*/React__default.createElement(Text, {
1675
- className: classnames('card_subtitle')
1676
- }, subtitle) : null);
1677
- };
1678
- CardHeader.propTypes = {
1679
- icon: PropTypes.node,
1680
- label: PropTypes.string,
1681
- title: PropTypes.string.isRequired,
1682
- subtitle: PropTypes.string,
1683
- actions: PropTypes.node,
1684
- className: PropTypes.node,
1685
- children: PropTypes.node
1686
- };
1687
-
1688
- const CardMedia = ({
1689
- width,
1690
- height,
1691
- image,
1692
- fullWidth,
1693
- className,
1694
- ...props
1695
- }) => {
1696
- return /*#__PURE__*/React__default.createElement("div", _extends({
1697
- className: classnames(['card_media', {
1698
- 'card_media-fullWidth': fullWidth
1699
- }, className])
1700
- }, props), /*#__PURE__*/React__default.createElement("div", {
1701
- className: 'card_mediaInner',
1702
- style: {
1703
- width: width + 'px',
1704
- paddingBottom: height,
1705
- backgroundImage: `url(${image})`
209
+ else {
210
+ return createPortal(shouldRender && alert, container);
1706
211
  }
1707
- }));
1708
- };
1709
- CardMedia.propTypes = {
1710
- width: PropTypes.number,
1711
- height: PropTypes.number,
1712
- image: PropTypes.string.isRequired,
1713
- fullWidth: PropTypes.bool,
1714
- className: PropTypes.node
1715
212
  };
1716
213
 
1717
- const Checkbox = ({
1718
- id,
1719
- value,
1720
- label,
1721
- checked,
1722
- disabled,
1723
- optional,
1724
- dense,
1725
- onChange,
1726
- className,
1727
- ...props
1728
- }) => {
1729
- return /*#__PURE__*/React__default.createElement("div", {
1730
- className: classnames(['checkbox', {
1731
- 'checkbox-disabled': disabled,
1732
- 'checkbox-dense': dense
1733
- }, className])
1734
- }, /*#__PURE__*/React__default.createElement("input", _extends({
1735
- className: classnames('checkbox_control'),
1736
- type: "checkbox",
1737
- name: id,
1738
- id: id,
1739
- value: value,
1740
- checked: checked,
1741
- "aria-checked": checked,
1742
- disabled: disabled,
1743
- required: !(disabled || optional),
1744
- onChange: onChange
1745
- }, props)), /*#__PURE__*/React__default.createElement("label", {
1746
- className: classnames('checkbox_label'),
1747
- htmlFor: id
1748
- }, label));
1749
- };
1750
- Checkbox.propTypes = {
1751
- id: PropTypes.string.isRequired,
1752
- value: PropTypes.string.isRequired,
1753
- label: PropTypes.string.isRequired,
1754
- checked: PropTypes.bool,
1755
- disabled: PropTypes.bool,
1756
- optional: PropTypes.bool,
1757
- dense: PropTypes.bool,
1758
- className: PropTypes.node
1759
- };
1760
-
1761
- const InputLabel = ({
1762
- isLegend = false,
1763
- htmlFor,
1764
- label = 'Input label',
1765
- hint,
1766
- error,
1767
- hideLabel = false
1768
- }) => {
1769
- const LabelTag = isLegend ? 'legend' : 'label';
1770
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, label && /*#__PURE__*/React__default.createElement(LabelTag, _extends({
1771
- className: classnames('input_label', {
1772
- 'sr-only': hideLabel
1773
- })
1774
- }, !isLegend && {
1775
- htmlFor
1776
- }), label), hint && /*#__PURE__*/React__default.createElement("p", {
1777
- id: htmlFor + '-hint',
1778
- className: 'input_hint'
1779
- }, hint), error && /*#__PURE__*/React__default.createElement("p", {
1780
- id: htmlFor + '-error',
1781
- className: 'input_error'
1782
- }, error));
1783
- };
1784
- InputLabel.propTypes = {
1785
- isLegend: PropTypes.bool,
1786
- htmlFor: (props, propName, componentName) => {
1787
- if (!props.isLegend && !props[propName]) {
1788
- return new Error(`The prop \`${propName}\` is required in \`${componentName}\` when \`isLegend\` is false.`);
214
+ const Breadcrumbs = ({ items, separator = "slash", className }) => (jsx("nav", { "aria-label": "breadcrumbs", className: classnames([
215
+ 'breadcrumbs',
216
+ {
217
+ [`breadcrumbs-${separator}`]: separator,
218
+ },
219
+ className
220
+ ]), children: jsx("ol", { children: items.map((item, index) => (jsx("li", { className: 'breadcrumbs_item', children: index === items.length - 1 ? (jsx("p", { "aria-current": "page", children: item.label })) : (jsx("a", { href: item.href, children: item.label })) }, index))) }) }));
221
+
222
+ const Button = forwardRef(({ component = 'button', kind, variant = 'fill', size = 'md', color = 'primary', fullWidth, disabled, iconLeft, iconRight, className, children = 'button', type = 'button', ...props }, ref) => {
223
+ const Component = component;
224
+ let content;
225
+ if (kind === 'icon') {
226
+ content = children;
1789
227
  }
1790
- },
1791
- label: PropTypes.string.isRequired,
1792
- hint: PropTypes.string,
1793
- error: PropTypes.string,
1794
- hideLabel: PropTypes.bool
1795
- };
1796
-
1797
- const Checkboxes = ({
1798
- onChange,
1799
- id,
1800
- label = 'Label',
1801
- direction = 'portrait',
1802
- error,
1803
- disabled,
1804
- optional,
1805
- dense,
1806
- hint,
1807
- hideLabel,
1808
- children,
1809
- className
1810
- }) => {
1811
- return /*#__PURE__*/React__default.createElement("fieldset", _extends({
1812
- className: classnames(['input', {
1813
- 'js-error': error,
1814
- 'input-disabled': disabled,
1815
- 'input-optional': optional,
1816
- 'input-dense': dense
1817
- }, className])
1818
- }, hint || error ? {
1819
- 'aria-describedby': [hint ? `${id}-hint` : null, error ? `${id}-error` : null].filter(Boolean).join(' ')
1820
- } : null), /*#__PURE__*/React__default.createElement(InputLabel, {
1821
- isLegend: true,
1822
- label: label,
1823
- hint: hint,
1824
- error: error,
1825
- hideLabel: hideLabel
1826
- }), /*#__PURE__*/React__default.createElement("div", {
1827
- className: classnames(['input_control', 'radios', {
1828
- [`radios-${direction}`]: direction
1829
- }])
1830
- }, React__default.Children.map(children, child => /*#__PURE__*/React__default.isValidElement(child) ? /*#__PURE__*/React__default.cloneElement(child, {
1831
- onChange,
1832
- optional,
1833
- disabled
1834
- }) : child)));
1835
- };
1836
- Checkboxes.propTypes = {
1837
- onChange: PropTypes.func,
1838
- id: PropTypes.string.isRequired,
1839
- label: PropTypes.string.isRequired,
1840
- direction: PropTypes.oneOf(['portrait', 'landscape']),
1841
- error: PropTypes.bool,
1842
- disabled: PropTypes.bool,
1843
- optional: PropTypes.bool,
1844
- dense: PropTypes.bool,
1845
- hint: PropTypes.string,
1846
- hideLabel: PropTypes.bool,
1847
- children: PropTypes.node.isRequired,
1848
- className: PropTypes.node
1849
- };
1850
-
1851
- const Divider = ({
1852
- direction = 'landscape',
1853
- padding = 'md',
1854
- className,
1855
- ...props
1856
- }) => {
1857
- return /*#__PURE__*/React__default.createElement("div", _extends({
1858
- className: classnames(['divider', {
1859
- [`divider-${direction}`]: direction,
1860
- [`divider-${padding}`]: padding
1861
- }, className])
1862
- }, props));
1863
- };
1864
- Divider.propTypes = {
1865
- direction: PropTypes.oneOf(['landscape', 'portrait']),
1866
- padding: PropTypes.oneOf(['none', 'sm', 'md', 'lg']),
1867
- className: PropTypes.node
1868
- };
228
+ else {
229
+ content = (jsxs(Fragment, { children: [iconLeft && iconLeft, children, iconRight && iconRight] }));
230
+ }
231
+ return (jsx(Component, { className: classnames([
232
+ 'button',
233
+ {
234
+ [`button-${size}`]: size,
235
+ [`button-${color}`]: color,
236
+ [`button-${kind}`]: kind,
237
+ [`button-${variant}`]: variant,
238
+ 'button-fullWidth': fullWidth,
239
+ 'button-disabled': disabled
240
+ },
241
+ className
242
+ ]), ref: ref, disabled: Component === 'button' ? disabled : undefined, ...(Component === 'button' ? { type } : {}), ...props, children: content }));
243
+ });
244
+ Button.displayName = 'Button';
1869
245
 
1870
- const e$5 = /* @__PURE__ */new Map([["bold", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
1871
- d: "M208,28H188V24a12,12,0,0,0-24,0v4H92V24a12,12,0,0,0-24,0v4H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V48A20,20,0,0,0,208,28ZM68,52a12,12,0,0,0,24,0h72a12,12,0,0,0,24,0h16V76H52V52ZM52,204V100H204V204Z"
1872
- }))], ["duotone", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
1873
- d: "M216,48V88H40V48a8,8,0,0,1,8-8H208A8,8,0,0,1,216,48Z",
1874
- opacity: "0.2"
1875
- }), /* @__PURE__ */React.createElement("path", {
1876
- d: "M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Z"
1877
- }))], ["fill", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
1878
- d: "M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32Zm0,48H48V48H72v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24Z"
1879
- }))], ["light", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
1880
- d: "M208,34H182V24a6,6,0,0,0-12,0V34H86V24a6,6,0,0,0-12,0V34H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V48A14,14,0,0,0,208,34ZM48,46H74V56a6,6,0,0,0,12,0V46h84V56a6,6,0,0,0,12,0V46h26a2,2,0,0,1,2,2V82H46V48A2,2,0,0,1,48,46ZM208,210H48a2,2,0,0,1-2-2V94H210V208A2,2,0,0,1,208,210Z"
1881
- }))], ["regular", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
1882
- d: "M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Z"
1883
- }))], ["thin", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
1884
- d: "M208,36H180V24a4,4,0,0,0-8,0V36H84V24a4,4,0,0,0-8,0V36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V48A12,12,0,0,0,208,36ZM48,44H76V56a4,4,0,0,0,8,0V44h88V56a4,4,0,0,0,8,0V44h28a4,4,0,0,1,4,4V84H44V48A4,4,0,0,1,48,44ZM208,212H48a4,4,0,0,1-4-4V92H212V208A4,4,0,0,1,208,212Z"
1885
- }))]]);
1886
-
1887
- const e$4 = /*#__PURE__*/React.forwardRef((o, r) => /* @__PURE__ */React.createElement(p, {
1888
- ref: r,
1889
- ...o,
1890
- weights: e$5
1891
- }));
246
+ const Buttons = ({ direction = 'landscape', fullWidth, wide, className, children, ...props }) => {
247
+ return (jsx("div", { className: classnames([
248
+ 'buttons',
249
+ {
250
+ [`buttons-${direction}`]: direction,
251
+ 'buttons-fullWidth': fullWidth,
252
+ 'buttons-wide': wide
253
+ },
254
+ className
255
+ ]), ...props, children: children }));
256
+ };
257
+
258
+ const Card = ({ size = 'md', fill = 'paper', direction = 'portrait', align = 'left', hasShadow = false, transparent = false, className, children, ...props }) => {
259
+ return (jsx(Color, { fill: transparent ? undefined : fill, children: jsx("div", { className: classnames([
260
+ 'card',
261
+ {
262
+ [`card-${size}`]: size,
263
+ [`card-${direction}`]: direction,
264
+ [`card-${align}`]: align,
265
+ 'card-hasShadow': hasShadow,
266
+ 'card-transparent': transparent
267
+ },
268
+ className
269
+ ]), ...props, children: children }) }));
270
+ };
271
+
272
+ const CardActions = ({ direction, className, children, ...props }) => {
273
+ return (jsx("div", { className: classnames([
274
+ 'card_actions',
275
+ {
276
+ [`card_actions-${direction}`]: direction
277
+ },
278
+ className
279
+ ]), ...props, children: children }));
280
+ };
281
+
282
+ const CardContent = ({ fullWidth, className, children, ...props }) => {
283
+ return (jsx("div", { className: classnames([
284
+ 'card_content',
285
+ {
286
+ 'card_content-fullWidth': fullWidth
287
+ },
288
+ className
289
+ ]), ...props, children: children }));
290
+ };
291
+
292
+ const CardHeader = ({ icon, label, title, subtitle, actions, className, ...props }) => {
293
+ return (jsxs("div", { className: classnames([
294
+ 'card_header',
295
+ className
296
+ ]), ...props, children: [actions && (jsx("div", { className: "card_headerActions", children: actions })), icon ? e__default.cloneElement(icon, { className: `${icon.props.className ?? ''} card_icon` }) : null, label ? (jsx(Text, { className: classnames('card_label'), children: label })) : null, jsx(Text, { className: classnames('card_title'), children: title }), subtitle ? (jsx(Text, { className: classnames('card_subtitle'), children: subtitle })) : null] }));
297
+ };
298
+
299
+ const CardMedia = ({ width, height, image, fullWidth, className, ...props }) => {
300
+ return (jsx("div", { className: classnames([
301
+ 'card_media',
302
+ {
303
+ 'card_media-fullWidth': fullWidth
304
+ },
305
+ className
306
+ ]), ...props, children: jsx("div", { className: 'card_mediaInner', style: {
307
+ width: width ? width + 'px' : undefined,
308
+ paddingBottom: height,
309
+ backgroundImage: `url(${image})`
310
+ } }) }));
311
+ };
312
+
313
+ const Checkbox = ({ id, value, label, checked, disabled, optional, dense, onChange, className, ...props }) => {
314
+ return (jsxs("div", { className: classnames([
315
+ 'checkbox',
316
+ {
317
+ 'checkbox-disabled': disabled,
318
+ 'checkbox-dense': dense
319
+ },
320
+ className
321
+ ]), children: [jsx("input", { className: classnames('checkbox_control'), type: "checkbox", name: id, id: id, value: value, checked: checked, "aria-checked": checked, disabled: disabled, required: !(disabled || optional), onChange: onChange, ...props }), jsx("label", { className: classnames('checkbox_label'), htmlFor: id, children: label })] }));
322
+ };
323
+
324
+ const InputLabel = ({ isLegend = false, htmlFor, label = 'Input label', hint, error, hideLabel = false }) => {
325
+ const LabelTag = isLegend ? 'legend' : 'label';
326
+ return (jsxs(Fragment, { children: [label && (jsx(LabelTag, { className: classnames('input_label', { 'sr-only': hideLabel }), ...(!isLegend && htmlFor ? { htmlFor } : {}), children: label })), hint && jsx("p", { id: htmlFor + '-hint', className: 'input_hint', children: hint }), error && jsx("p", { id: htmlFor + '-error', className: 'input_error', children: error })] }));
327
+ };
328
+
329
+ const Checkboxes = ({ id, label = 'Label', direction = 'portrait', error, disabled, optional, dense, hint, hideLabel, children, className }) => {
330
+ return (jsxs("fieldset", { className: classnames([
331
+ 'input',
332
+ {
333
+ 'js-error': error,
334
+ 'input-disabled': disabled,
335
+ 'input-optional': optional,
336
+ 'input-dense': dense
337
+ },
338
+ className
339
+ ]), ...(hint || error
340
+ ? {
341
+ 'aria-describedby': [hint ? `${id}-hint` : null, error ? `${id}-error` : null]
342
+ .filter(Boolean)
343
+ .join(' '),
344
+ }
345
+ : null), children: [jsx(InputLabel, { isLegend: true, label: label, hint: hint, hideLabel: hideLabel }), jsx("div", { className: classnames([
346
+ 'input_control',
347
+ 'radios',
348
+ {
349
+ [`radios-${direction}`]: direction
350
+ }
351
+ ]), children: children })] }));
352
+ };
353
+
354
+ const Divider = ({ direction = 'landscape', padding = 'md', className, ...props }) => {
355
+ return (jsx("div", { className: classnames([
356
+ 'divider',
357
+ {
358
+ [`divider-${direction}`]: direction,
359
+ [`divider-${padding}`]: padding
360
+ },
361
+ className
362
+ ]), ...props }));
363
+ };
364
+
365
+ const e$5 = /* @__PURE__ */ new Map([
366
+ [
367
+ "bold",
368
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M208,28H188V24a12,12,0,0,0-24,0v4H92V24a12,12,0,0,0-24,0v4H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V48A20,20,0,0,0,208,28ZM68,52a12,12,0,0,0,24,0h72a12,12,0,0,0,24,0h16V76H52V52ZM52,204V100H204V204Z" }))
369
+ ],
370
+ [
371
+ "duotone",
372
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement(
373
+ "path",
374
+ {
375
+ d: "M216,48V88H40V48a8,8,0,0,1,8-8H208A8,8,0,0,1,216,48Z",
376
+ opacity: "0.2"
377
+ }
378
+ ), /* @__PURE__ */ e$7.createElement("path", { d: "M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Z" }))
379
+ ],
380
+ [
381
+ "fill",
382
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32Zm0,48H48V48H72v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24Z" }))
383
+ ],
384
+ [
385
+ "light",
386
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M208,34H182V24a6,6,0,0,0-12,0V34H86V24a6,6,0,0,0-12,0V34H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V48A14,14,0,0,0,208,34ZM48,46H74V56a6,6,0,0,0,12,0V46h84V56a6,6,0,0,0,12,0V46h26a2,2,0,0,1,2,2V82H46V48A2,2,0,0,1,48,46ZM208,210H48a2,2,0,0,1-2-2V94H210V208A2,2,0,0,1,208,210Z" }))
387
+ ],
388
+ [
389
+ "regular",
390
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Z" }))
391
+ ],
392
+ [
393
+ "thin",
394
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M208,36H180V24a4,4,0,0,0-8,0V36H84V24a4,4,0,0,0-8,0V36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V48A12,12,0,0,0,208,36ZM48,44H76V56a4,4,0,0,0,8,0V44h88V56a4,4,0,0,0,8,0V44h28a4,4,0,0,1,4,4V84H44V48A4,4,0,0,1,48,44ZM208,212H48a4,4,0,0,1-4-4V92H212V208A4,4,0,0,1,208,212Z" }))
395
+ ]
396
+ ]);
397
+
398
+ const e$4 = e$7.forwardRef((o, r) => /* @__PURE__ */ e$7.createElement(p, { ref: r, ...o, weights: e$5 }));
1892
399
  e$4.displayName = "CalendarBlankIcon";
1893
400
 
1894
- const a$3 = /* @__PURE__ */new Map([["bold", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
1895
- d: "M184.49,167.51a12,12,0,0,1,0,17l-48,48a12,12,0,0,1-17,0l-48-48a12,12,0,0,1,17-17L128,207l39.51-39.52A12,12,0,0,1,184.49,167.51Zm-96-79L128,49l39.51,39.52a12,12,0,0,0,17-17l-48-48a12,12,0,0,0-17,0l-48,48a12,12,0,0,0,17,17Z"
1896
- }))], ["duotone", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
1897
- d: "M80,176h96l-48,48ZM128,32,80,80h96Z",
1898
- opacity: "0.2"
1899
- }), /* @__PURE__ */React.createElement("path", {
1900
- d: "M176,168H80a8,8,0,0,0-5.66,13.66l48,48a8,8,0,0,0,11.32,0l48-48A8,8,0,0,0,176,168Zm-48,44.69L99.31,184h57.38ZM80,88h96a8,8,0,0,0,5.66-13.66l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,80,88Zm48-44.69L156.69,72H99.31Z"
1901
- }))], ["fill", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
1902
- d: "M72.61,83.06a8,8,0,0,1,1.73-8.72l48-48a8,8,0,0,1,11.32,0l48,48A8,8,0,0,1,176,88H80A8,8,0,0,1,72.61,83.06ZM176,168H80a8,8,0,0,0-5.66,13.66l48,48a8,8,0,0,0,11.32,0l48-48A8,8,0,0,0,176,168Z"
1903
- }))], ["light", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
1904
- d: "M180.24,171.76a6,6,0,0,1,0,8.48l-48,48a6,6,0,0,1-8.48,0l-48-48a6,6,0,0,1,8.48-8.48L128,215.51l43.76-43.75A6,6,0,0,1,180.24,171.76Zm-96-87.52L128,40.49l43.76,43.75a6,6,0,0,0,8.48-8.48l-48-48a6,6,0,0,0-8.48,0l-48,48a6,6,0,0,0,8.48,8.48Z"
1905
- }))], ["regular", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
1906
- d: "M181.66,170.34a8,8,0,0,1,0,11.32l-48,48a8,8,0,0,1-11.32,0l-48-48a8,8,0,0,1,11.32-11.32L128,212.69l42.34-42.35A8,8,0,0,1,181.66,170.34Zm-96-84.68L128,43.31l42.34,42.35a8,8,0,0,0,11.32-11.32l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,85.66,85.66Z"
1907
- }))], ["thin", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
1908
- d: "M178.83,173.17a4,4,0,0,1,0,5.66l-48,48a4,4,0,0,1-5.66,0l-48-48a4,4,0,0,1,5.66-5.66L128,218.34l45.17-45.17A4,4,0,0,1,178.83,173.17Zm-96-90.34L128,37.66l45.17,45.17a4,4,0,1,0,5.66-5.66l-48-48a4,4,0,0,0-5.66,0l-48,48a4,4,0,0,0,5.66,5.66Z"
1909
- }))]]);
1910
-
1911
- const e$3 = /*#__PURE__*/React.forwardRef((r, t) => /* @__PURE__ */React.createElement(p, {
1912
- ref: t,
1913
- ...r,
1914
- weights: a$3
1915
- }));
401
+ const a$3 = /* @__PURE__ */ new Map([
402
+ [
403
+ "bold",
404
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M184.49,167.51a12,12,0,0,1,0,17l-48,48a12,12,0,0,1-17,0l-48-48a12,12,0,0,1,17-17L128,207l39.51-39.52A12,12,0,0,1,184.49,167.51Zm-96-79L128,49l39.51,39.52a12,12,0,0,0,17-17l-48-48a12,12,0,0,0-17,0l-48,48a12,12,0,0,0,17,17Z" }))
405
+ ],
406
+ [
407
+ "duotone",
408
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M80,176h96l-48,48ZM128,32,80,80h96Z", opacity: "0.2" }), /* @__PURE__ */ e$7.createElement("path", { d: "M176,168H80a8,8,0,0,0-5.66,13.66l48,48a8,8,0,0,0,11.32,0l48-48A8,8,0,0,0,176,168Zm-48,44.69L99.31,184h57.38ZM80,88h96a8,8,0,0,0,5.66-13.66l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,80,88Zm48-44.69L156.69,72H99.31Z" }))
409
+ ],
410
+ [
411
+ "fill",
412
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M72.61,83.06a8,8,0,0,1,1.73-8.72l48-48a8,8,0,0,1,11.32,0l48,48A8,8,0,0,1,176,88H80A8,8,0,0,1,72.61,83.06ZM176,168H80a8,8,0,0,0-5.66,13.66l48,48a8,8,0,0,0,11.32,0l48-48A8,8,0,0,0,176,168Z" }))
413
+ ],
414
+ [
415
+ "light",
416
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M180.24,171.76a6,6,0,0,1,0,8.48l-48,48a6,6,0,0,1-8.48,0l-48-48a6,6,0,0,1,8.48-8.48L128,215.51l43.76-43.75A6,6,0,0,1,180.24,171.76Zm-96-87.52L128,40.49l43.76,43.75a6,6,0,0,0,8.48-8.48l-48-48a6,6,0,0,0-8.48,0l-48,48a6,6,0,0,0,8.48,8.48Z" }))
417
+ ],
418
+ [
419
+ "regular",
420
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M181.66,170.34a8,8,0,0,1,0,11.32l-48,48a8,8,0,0,1-11.32,0l-48-48a8,8,0,0,1,11.32-11.32L128,212.69l42.34-42.35A8,8,0,0,1,181.66,170.34Zm-96-84.68L128,43.31l42.34,42.35a8,8,0,0,0,11.32-11.32l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,85.66,85.66Z" }))
421
+ ],
422
+ [
423
+ "thin",
424
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M178.83,173.17a4,4,0,0,1,0,5.66l-48,48a4,4,0,0,1-5.66,0l-48-48a4,4,0,0,1,5.66-5.66L128,218.34l45.17-45.17A4,4,0,0,1,178.83,173.17Zm-96-90.34L128,37.66l45.17,45.17a4,4,0,1,0,5.66-5.66l-48-48a4,4,0,0,0-5.66,0l-48,48a4,4,0,0,0,5.66,5.66Z" }))
425
+ ]
426
+ ]);
427
+
428
+ const e$3 = e$7.forwardRef((r, t) => /* @__PURE__ */ e$7.createElement(p, { ref: t, ...r, weights: a$3 }));
1916
429
  e$3.displayName = "CaretUpDownIcon";
1917
430
 
1918
- const a$2 = /* @__PURE__ */new Map([["bold", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
1919
- d: "M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm68-84a12,12,0,0,1-12,12H128a12,12,0,0,1-12-12V72a12,12,0,0,1,24,0v44h44A12,12,0,0,1,196,128Z"
1920
- }))], ["duotone", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
1921
- d: "M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",
1922
- opacity: "0.2"
1923
- }), /* @__PURE__ */React.createElement("path", {
1924
- d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"
1925
- }))], ["fill", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
1926
- d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm56,112H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"
1927
- }))], ["light", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
1928
- d: "M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm62-90a6,6,0,0,1-6,6H128a6,6,0,0,1-6-6V72a6,6,0,0,1,12,0v50h50A6,6,0,0,1,190,128Z"
1929
- }))], ["regular", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
1930
- d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"
1931
- }))], ["thin", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
1932
- d: "M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm60-92a4,4,0,0,1-4,4H128a4,4,0,0,1-4-4V72a4,4,0,0,1,8,0v52h52A4,4,0,0,1,188,128Z"
1933
- }))]]);
1934
-
1935
- const c = /*#__PURE__*/React.forwardRef((e, r) => /* @__PURE__ */React.createElement(p, {
1936
- ref: r,
1937
- ...e,
1938
- weights: a$2
1939
- }));
431
+ const a$2 = /* @__PURE__ */ new Map([
432
+ [
433
+ "bold",
434
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm68-84a12,12,0,0,1-12,12H128a12,12,0,0,1-12-12V72a12,12,0,0,1,24,0v44h44A12,12,0,0,1,196,128Z" }))
435
+ ],
436
+ [
437
+ "duotone",
438
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z", opacity: "0.2" }), /* @__PURE__ */ e$7.createElement("path", { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z" }))
439
+ ],
440
+ [
441
+ "fill",
442
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm56,112H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z" }))
443
+ ],
444
+ [
445
+ "light",
446
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm62-90a6,6,0,0,1-6,6H128a6,6,0,0,1-6-6V72a6,6,0,0,1,12,0v50h50A6,6,0,0,1,190,128Z" }))
447
+ ],
448
+ [
449
+ "regular",
450
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z" }))
451
+ ],
452
+ [
453
+ "thin",
454
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm60-92a4,4,0,0,1-4,4H128a4,4,0,0,1-4-4V72a4,4,0,0,1,8,0v52h52A4,4,0,0,1,188,128Z" }))
455
+ ]
456
+ ]);
457
+
458
+ const c = e$7.forwardRef((e, r) => /* @__PURE__ */ e$7.createElement(p, { ref: r, ...e, weights: a$2 }));
1940
459
  c.displayName = "ClockIcon";
1941
460
 
1942
- const Input = ({
1943
- onChange,
1944
- type = 'text',
1945
- id,
1946
- placeholder,
1947
- label = 'Input',
1948
- icon,
1949
- isFocused,
1950
- error,
1951
- disabled,
1952
- optional,
1953
- dense,
1954
- hint,
1955
- hideLabel,
1956
- className,
1957
- ...props
1958
- }) => {
1959
- const inputRef = useRef(null);
1960
- useEffect(() => {
1961
- if (isFocused && inputRef.current) {
1962
- inputRef.current.focus();
1963
- }
1964
- }, [isFocused]);
1965
- const customIcon = icon || type === 'date' && /*#__PURE__*/React__default.createElement(e$4, null) || type === 'time' && /*#__PURE__*/React__default.createElement(c, null) || type === 'number' && /*#__PURE__*/React__default.createElement(e$3, null);
1966
- return /*#__PURE__*/React__default.createElement("div", {
1967
- className: classnames(['input', {
1968
- 'js-error': error,
1969
- 'input-disabled': disabled,
1970
- 'input-optional': optional,
1971
- 'input-dense': dense,
1972
- 'input-withIcon': icon
1973
- }, className])
1974
- }, /*#__PURE__*/React__default.createElement(InputLabel, {
1975
- htmlFor: id,
1976
- label: label,
1977
- hint: hint,
1978
- error: error,
1979
- hideLabel: hideLabel
1980
- }), customIcon && /*#__PURE__*/React__default.createElement("div", {
1981
- className: 'input_icon'
1982
- }, customIcon), /*#__PURE__*/React__default.createElement("input", _extends({
1983
- ref: inputRef,
1984
- type: type,
1985
- className: 'input_control',
1986
- name: id,
1987
- id: id,
1988
- placeholder: placeholder,
1989
- disabled: disabled,
1990
- required: !(disabled || optional),
1991
- onChange: onChange
1992
- }, hint || error ? {
1993
- 'aria-describedby': [hint ? `${id}-hint` : null, error ? `${id}-error` : null].filter(Boolean).join(' ')
1994
- } : null, props)));
1995
- };
1996
- Input.propTypes = {
1997
- onChange: PropTypes.func,
1998
- type: PropTypes.oneOf(['date', 'email', 'number', 'tel', 'text', 'time']),
1999
- id: PropTypes.string.isRequired,
2000
- placeholder: PropTypes.string,
2001
- label: PropTypes.string.isRequired,
2002
- icon: PropTypes.node,
2003
- isFocused: PropTypes.bool,
2004
- error: PropTypes.bool,
2005
- disabled: PropTypes.bool,
2006
- optional: PropTypes.bool,
2007
- dense: PropTypes.bool,
2008
- hint: PropTypes.string,
2009
- hideLabel: PropTypes.bool,
2010
- className: PropTypes.node
2011
- };
2012
-
2013
- const e$2 = /* @__PURE__ */new Map([["bold", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
2014
- d: "M228,104a12,12,0,0,1-24,0V69l-59.51,59.51a12,12,0,0,1-17-17L187,52H152a12,12,0,0,1,0-24h64a12,12,0,0,1,12,12Zm-44,24a12,12,0,0,0-12,12v64H52V84h64a12,12,0,0,0,0-24H48A20,20,0,0,0,28,80V208a20,20,0,0,0,20,20H176a20,20,0,0,0,20-20V140A12,12,0,0,0,184,128Z"
2015
- }))], ["duotone", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
2016
- d: "M184,80V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H176A8,8,0,0,1,184,80Z",
2017
- opacity: "0.2"
2018
- }), /* @__PURE__ */React.createElement("path", {
2019
- d: "M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"
2020
- }))], ["fill", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
2021
- d: "M192,136v72a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V80A16,16,0,0,1,48,64h72a8,8,0,0,1,0,16H48V208H176V136a8,8,0,0,1,16,0Zm32-96a8,8,0,0,0-8-8H152a8,8,0,0,0-5.66,13.66L172.69,72l-42.35,42.34a8,8,0,0,0,11.32,11.32L184,83.31l26.34,26.35A8,8,0,0,0,224,104Z"
2022
- }))], ["light", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
2023
- d: "M222,104a6,6,0,0,1-12,0V54.49l-69.75,69.75a6,6,0,0,1-8.48-8.48L201.51,46H152a6,6,0,0,1,0-12h64a6,6,0,0,1,6,6Zm-38,26a6,6,0,0,0-6,6v72a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V80a2,2,0,0,1,2-2h72a6,6,0,0,0,0-12H48A14,14,0,0,0,34,80V208a14,14,0,0,0,14,14H176a14,14,0,0,0,14-14V136A6,6,0,0,0,184,130Z"
2024
- }))], ["regular", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
2025
- d: "M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"
2026
- }))], ["thin", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
2027
- d: "M220,104a4,4,0,0,1-8,0V49.66l-73.16,73.17a4,4,0,0,1-5.66-5.66L206.34,44H152a4,4,0,0,1,0-8h64a4,4,0,0,1,4,4Zm-36,28a4,4,0,0,0-4,4v72a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4h72a4,4,0,0,0,0-8H48A12,12,0,0,0,36,80V208a12,12,0,0,0,12,12H176a12,12,0,0,0,12-12V136A4,4,0,0,0,184,132Z"
2028
- }))]]);
2029
-
2030
- const o$2 = /*#__PURE__*/React.forwardRef((e, t) => /* @__PURE__ */React.createElement(p, {
2031
- ref: t,
2032
- ...e,
2033
- weights: e$2
2034
- }));
461
+ const Input = ({ onChange, type = 'text', id, placeholder, label = 'Input', icon, isFocused, error, disabled, optional, dense, hint, hideLabel, className, ...props }) => {
462
+ const inputRef = useRef(null);
463
+ useEffect(() => {
464
+ if (isFocused && inputRef.current) {
465
+ inputRef.current.focus();
466
+ }
467
+ }, [isFocused]);
468
+ const customIcon = icon ||
469
+ (type === 'date' && jsx(e$4, {})) ||
470
+ (type === 'time' && jsx(c, {})) ||
471
+ (type === 'number' && jsx(e$3, {}));
472
+ return (jsxs("div", { className: classnames([
473
+ 'input',
474
+ {
475
+ 'js-error': error,
476
+ 'input-disabled': disabled,
477
+ 'input-optional': optional,
478
+ 'input-dense': dense,
479
+ 'input-withIcon': icon
480
+ },
481
+ className
482
+ ]), children: [jsx(InputLabel, { htmlFor: id, label: label, hint: hint, hideLabel: hideLabel }), customIcon && jsx("div", { className: 'input_icon', children: customIcon }), jsx("input", { ref: inputRef, type: type, className: 'input_control', name: id, id: id, placeholder: placeholder, disabled: disabled, required: !(disabled || optional), onChange: onChange, ...(hint || error
483
+ ? {
484
+ 'aria-describedby': [hint ? `${id}-hint` : null, error ? `${id}-error` : null]
485
+ .filter(Boolean)
486
+ .join(' '),
487
+ }
488
+ : null), ...props })] }));
489
+ };
490
+
491
+ const e$2 = /* @__PURE__ */ new Map([
492
+ [
493
+ "bold",
494
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M228,104a12,12,0,0,1-24,0V69l-59.51,59.51a12,12,0,0,1-17-17L187,52H152a12,12,0,0,1,0-24h64a12,12,0,0,1,12,12Zm-44,24a12,12,0,0,0-12,12v64H52V84h64a12,12,0,0,0,0-24H48A20,20,0,0,0,28,80V208a20,20,0,0,0,20,20H176a20,20,0,0,0,20-20V140A12,12,0,0,0,184,128Z" }))
495
+ ],
496
+ [
497
+ "duotone",
498
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement(
499
+ "path",
500
+ {
501
+ d: "M184,80V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H176A8,8,0,0,1,184,80Z",
502
+ opacity: "0.2"
503
+ }
504
+ ), /* @__PURE__ */ e$7.createElement("path", { d: "M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z" }))
505
+ ],
506
+ [
507
+ "fill",
508
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M192,136v72a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V80A16,16,0,0,1,48,64h72a8,8,0,0,1,0,16H48V208H176V136a8,8,0,0,1,16,0Zm32-96a8,8,0,0,0-8-8H152a8,8,0,0,0-5.66,13.66L172.69,72l-42.35,42.34a8,8,0,0,0,11.32,11.32L184,83.31l26.34,26.35A8,8,0,0,0,224,104Z" }))
509
+ ],
510
+ [
511
+ "light",
512
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M222,104a6,6,0,0,1-12,0V54.49l-69.75,69.75a6,6,0,0,1-8.48-8.48L201.51,46H152a6,6,0,0,1,0-12h64a6,6,0,0,1,6,6Zm-38,26a6,6,0,0,0-6,6v72a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V80a2,2,0,0,1,2-2h72a6,6,0,0,0,0-12H48A14,14,0,0,0,34,80V208a14,14,0,0,0,14,14H176a14,14,0,0,0,14-14V136A6,6,0,0,0,184,130Z" }))
513
+ ],
514
+ [
515
+ "regular",
516
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z" }))
517
+ ],
518
+ [
519
+ "thin",
520
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M220,104a4,4,0,0,1-8,0V49.66l-73.16,73.17a4,4,0,0,1-5.66-5.66L206.34,44H152a4,4,0,0,1,0-8h64a4,4,0,0,1,4,4Zm-36,28a4,4,0,0,0-4,4v72a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4h72a4,4,0,0,0,0-8H48A12,12,0,0,0,36,80V208a12,12,0,0,0,12,12H176a12,12,0,0,0,12-12V136A4,4,0,0,0,184,132Z" }))
521
+ ]
522
+ ]);
523
+
524
+ const o$2 = e$7.forwardRef((e, t) => /* @__PURE__ */ e$7.createElement(p, { ref: t, ...e, weights: e$2 }));
2035
525
  o$2.displayName = "ArrowSquareOutIcon";
2036
526
 
2037
- const Link = ({
2038
- component = 'a',
2039
- icon,
2040
- color,
2041
- isExternal,
2042
- href,
2043
- className,
2044
- children,
2045
- ...props
2046
- }) => {
2047
- const Component = component || 'a';
2048
- return /*#__PURE__*/React__default.createElement(Component, _extends({
2049
- className: classnames(['link', {
2050
- [`text-${color}`]: color
2051
- }, className]),
2052
- href: isExternal ? href : undefined,
2053
- target: isExternal ? '_blank' : undefined,
2054
- rel: isExternal ? 'noopener noreferrer' : undefined
2055
- }, props), children, icon && !isExternal && /*#__PURE__*/React__default.createElement("span", {
2056
- className: 'link_icon'
2057
- }, icon), isExternal && /*#__PURE__*/React__default.createElement("span", {
2058
- className: 'link_icon'
2059
- }, /*#__PURE__*/React__default.createElement(o$2, null)));
2060
- };
2061
- Link.propTypes = {
2062
- component: PropTypes.oneOfType(['a', PropTypes.elementType]),
2063
- icon: PropTypes.node,
2064
- color: PropTypes.oneOf(['default', 'alt', 'disabled', 'contrast', 'contrastAlt', 'contrastDisabled', 'primary', 'secondary', 'inherit']),
2065
- href: PropTypes.string,
2066
- className: PropTypes.node,
2067
- children: PropTypes.node.isRequired
2068
- };
2069
-
2070
- const List = ({
2071
- dense,
2072
- className,
2073
- children,
2074
- ...props
2075
- }) => {
2076
- return /*#__PURE__*/React__default.createElement("div", _extends({
2077
- className: classnames(['list', {
2078
- 'list-dense': dense
2079
- }, className])
2080
- }, props), children);
2081
- };
2082
- List.propTypes = {
2083
- dense: PropTypes.bool,
2084
- className: PropTypes.node,
2085
- children: PropTypes.node.isRequired
2086
- };
2087
-
2088
- const ListItem = ({
2089
- icon,
2090
- bold,
2091
- className,
2092
- children = 'List item',
2093
- ...props
2094
- }) => {
2095
- return /*#__PURE__*/React__default.createElement(Text, _extends({
2096
- className: classnames(['list_item', {
2097
- 'list_item-bold': bold
2098
- }, className])
2099
- }, props), icon ? /*#__PURE__*/React__default.cloneElement(icon, {
2100
- className: `${icon.props.className ?? ''} list_itemIcon`
2101
- }) : null, children);
2102
- };
2103
- ListItem.propTypes = {
2104
- icon: PropTypes.node,
2105
- bold: PropTypes.bool,
2106
- className: PropTypes.node,
2107
- children: PropTypes.node.isRequired
2108
- };
2109
-
2110
- const Nav = ({
2111
- direction,
2112
- dense,
2113
- className,
2114
- children,
2115
- ...props
2116
- }) => {
2117
- return /*#__PURE__*/React__default.createElement("nav", _extends({
2118
- className: classnames(['nav', {
2119
- [`nav-${direction}`]: direction,
2120
- 'nav-dense': dense
2121
- }, className])
2122
- }, props), /*#__PURE__*/React__default.createElement("div", {
2123
- className: "nav_container"
2124
- }, children));
2125
- };
2126
- Nav.propTypes = {
2127
- direction: PropTypes.oneOf(['portrait', 'landscape']),
2128
- dense: PropTypes.bool,
2129
- className: PropTypes.node,
2130
- children: PropTypes.node.isRequired
2131
- };
2132
-
2133
- const SectionHeader = ({
2134
- label,
2135
- title,
2136
- promoteTitle = false,
2137
- titleComponent = 'h2',
2138
- subtitle,
2139
- actions,
2140
- className,
2141
- ...props
2142
- }) => {
2143
- return /*#__PURE__*/React__default.createElement("div", _extends({
2144
- className: classnames(['section_header', className])
2145
- }, props), label ? /*#__PURE__*/React__default.createElement(Text, {
2146
- className: classnames('section_label')
2147
- }, label) : null, /*#__PURE__*/React__default.createElement(Text, {
2148
- className: "section_title",
2149
- component: titleComponent || (promoteTitle ? 'h1' : 'h2')
2150
- }, title), subtitle ? /*#__PURE__*/React__default.createElement("div", {
2151
- className: classnames('section_subtitle')
2152
- }, subtitle) : null, actions ? /*#__PURE__*/React__default.createElement("div", {
2153
- className: "section_actions"
2154
- }, actions) : null);
2155
- };
2156
- SectionHeader.propTypes = {
2157
- label: PropTypes.string,
2158
- title: PropTypes.string.isRequired,
2159
- promoteTitle: PropTypes.bool,
2160
- titleComponent: PropTypes.oneOf(['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p']),
2161
- subtitle: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
2162
- actions: PropTypes.node,
2163
- className: PropTypes.node
527
+ const Link = ({ component = 'a', icon, color, isExternal, href, className, children, ...props }) => {
528
+ const Component = component || 'a';
529
+ return (jsxs(Component, { className: classnames([
530
+ 'link',
531
+ { [`text-${color}`]: color },
532
+ className
533
+ ]), href: isExternal ? href : undefined, target: isExternal ? '_blank' : undefined, rel: isExternal ? 'noopener noreferrer' : undefined, ...props, children: [children, icon && !isExternal && jsx("span", { className: 'link_icon', children: icon }), isExternal && jsx("span", { className: 'link_icon', children: jsx(o$2, {}) })] }));
534
+ };
535
+
536
+ const List = ({ dense, className, children, ...props }) => {
537
+ return (jsx("div", { className: classnames([
538
+ 'list',
539
+ {
540
+ 'list-dense': dense
541
+ },
542
+ className
543
+ ]), ...props, children: children }));
544
+ };
545
+
546
+ const ListItem = ({ icon, bold, className, children = 'List item', ...props }) => {
547
+ return (jsxs(Text, { className: classnames([
548
+ 'list_item',
549
+ {
550
+ 'list_item-bold': bold
551
+ },
552
+ className
553
+ ]), ...props, children: [icon ? e__default.cloneElement(icon, { className: `${icon.props.className ?? ''} list_itemIcon` }) : null, children] }));
554
+ };
555
+
556
+ const Nav = ({ direction, dense, className, children, ...props }) => {
557
+ return (jsx("nav", { className: classnames([
558
+ 'nav',
559
+ {
560
+ [`nav-${direction}`]: direction,
561
+ 'nav-dense': dense
562
+ },
563
+ className
564
+ ]), ...props, children: jsx("div", { className: 'nav_container', children: children }) }));
565
+ };
566
+
567
+ const SectionHeader = ({ label, title, promoteTitle = false, titleComponent = 'h2', subtitle, actions, className, ...props }) => {
568
+ return (jsxs("div", { className: classnames([
569
+ 'section_header',
570
+ className
571
+ ]), ...props, children: [label ? jsx(Text, { className: classnames('section_label'), children: label }) : null, jsx(Text, { className: "section_title", component: titleComponent || (promoteTitle ? 'h1' : 'h2'), children: title }), subtitle ? jsx("div", { className: classnames('section_subtitle'), children: subtitle }) : null, actions ? (jsx("div", { className: "section_actions", children: actions })) : null] }));
572
+ };
573
+
574
+ const Section = ({ align = 'left', color = 'default', landing, header, className, children, ...props }) => {
575
+ return (jsx("div", { className: classnames([
576
+ 'section',
577
+ {
578
+ [`section-${align}`]: align,
579
+ [`section-${color}`]: color,
580
+ 'section-landing': landing,
581
+ 'section-header': header
582
+ },
583
+ className
584
+ ]), ...props, children: jsx("div", { className: 'section_container', children: e__default.Children.map(children, child => {
585
+ if (e__default.isValidElement(child) && child.type === SectionHeader) {
586
+ return e__default.cloneElement(child, { promoteTitle: landing || header });
587
+ }
588
+ return child;
589
+ }) }) }));
2164
590
  };
2165
591
 
2166
- const Section = ({
2167
- align = 'left',
2168
- color = 'default',
2169
- landing,
2170
- header,
2171
- className,
2172
- children,
2173
- ...props
2174
- }) => {
2175
- return /*#__PURE__*/React__default.createElement("div", _extends({
2176
- className: classnames(['section', {
2177
- [`section-${align}`]: align,
2178
- [`section-${color}`]: color,
2179
- 'section-landing': landing,
2180
- 'section-header': header
2181
- }, className])
2182
- }, props), /*#__PURE__*/React__default.createElement("div", {
2183
- className: 'section_container'
2184
- }, React__default.Children.map(children, child => {
2185
- if (/*#__PURE__*/React__default.isValidElement(child) && child.type === SectionHeader) {
2186
- return /*#__PURE__*/React__default.cloneElement(child, {
2187
- promoteTitle: landing || header
2188
- });
592
+ const NavBar = ({ logo, align, className, children, ...props }) => {
593
+ const [isOpen, setIsOpen] = useState(false);
594
+ const toggleNav = () => {
595
+ setIsOpen(!isOpen);
596
+ document.body.classList.toggle('js-navbar', !isOpen);
597
+ };
598
+ return (jsx("header", { children: jsxs(Section, { className: classnames([
599
+ 'navbar',
600
+ {
601
+ [`navbar-${align}`]: align,
602
+ 'js-opened': isOpen
603
+ },
604
+ className
605
+ ]), ...props, children: [jsxs("div", { className: "navbar_main", children: [jsx("div", { className: "navbar_logo", children: logo }), jsx("button", { "aria-label": "Open mobile menu", className: classnames('navbar_button', { 'js-opened': isOpen }), onClick: toggleNav, children: jsx("span", {}) })] }), jsx("nav", { "aria-label": "main-nav", className: classnames('navbar_nav nav', { 'js-opened': isOpen }), children: jsx("div", { className: 'nav_container', children: children }) })] }) }));
606
+ };
607
+
608
+ const NavItem = ({ component, label, active, dropdown, icon, end, to, className, ...props }) => {
609
+ const dropdownRef = useRef(null);
610
+ const [isExpanded, setIsExpanded] = useState(false);
611
+ const onClick = () => setIsExpanded(!isExpanded);
612
+ let Component;
613
+ if (dropdown) {
614
+ Component = 'button';
2189
615
  }
2190
- return child;
2191
- })));
2192
- };
2193
- Section.propTypes = {
2194
- align: PropTypes.oneOf(['left', 'center', 'right']),
2195
- color: PropTypes.oneOf(['default', 'paper', 'primary', 'primaryLight']),
2196
- landing: PropTypes.bool,
2197
- header: PropTypes.bool,
2198
- className: PropTypes.node,
2199
- children: PropTypes.node.isRequired
2200
- };
2201
-
2202
- const NavBar = ({
2203
- logo,
2204
- align,
2205
- className,
2206
- children,
2207
- ...props
2208
- }) => {
2209
- const [isOpen, setIsOpen] = useState(false);
2210
- const toggleNav = () => {
2211
- setIsOpen(!isOpen);
2212
- document.body.classList.toggle('js-navbar', !isOpen);
2213
- };
2214
- return /*#__PURE__*/React__default.createElement("header", null, /*#__PURE__*/React__default.createElement(Section, _extends({
2215
- className: classnames(['navbar', {
2216
- [`navbar-${align}`]: align,
2217
- 'js-opened': isOpen
2218
- }, className])
2219
- }, props), /*#__PURE__*/React__default.createElement("div", {
2220
- className: "navbar_main"
2221
- }, /*#__PURE__*/React__default.createElement("div", {
2222
- className: "navbar_logo"
2223
- }, logo), /*#__PURE__*/React__default.createElement("button", {
2224
- "aria-label": "Open mobile menu",
2225
- className: classnames('navbar_button', {
2226
- 'js-opened': isOpen
2227
- }),
2228
- onClick: toggleNav
2229
- }, /*#__PURE__*/React__default.createElement("span", null))), /*#__PURE__*/React__default.createElement("nav", {
2230
- "aria-label": "main-nav",
2231
- className: classnames('navbar_nav nav', {
2232
- 'js-opened': isOpen
2233
- })
2234
- }, /*#__PURE__*/React__default.createElement("div", {
2235
- className: "nav_container"
2236
- }, children))));
2237
- };
2238
- NavBar.propTypes = {
2239
- logo: PropTypes.node,
2240
- align: PropTypes.oneOf(['left', 'right']),
2241
- className: PropTypes.node,
2242
- children: PropTypes.node.isRequired
2243
- };
2244
-
2245
- const NavItem = ({
2246
- component,
2247
- label,
2248
- active,
2249
- dropdown,
2250
- icon,
2251
- end,
2252
- to,
2253
- className,
2254
- ...props
2255
- }) => {
2256
- const dropdownRef = useRef(null);
2257
- const [isExpanded, setIsExpanded] = useState(false);
2258
- const onClick = () => setIsExpanded(!isExpanded);
2259
- let Component;
2260
- if (dropdown) {
2261
- Component = 'button';
2262
- } else {
2263
- Component = component || "a";
2264
- }
2265
- return /*#__PURE__*/React__default.createElement("div", {
2266
- className: classnames(['nav_item', {
2267
- 'nav_item-dropdown': dropdown,
2268
- 'js-show': isExpanded
2269
- }, className])
2270
- }, /*#__PURE__*/React__default.createElement(Component, _extends({
2271
- end: end,
2272
- to: to,
2273
- className: classnames(['nav_trigger', {
2274
- 'nav_trigger-active': active
2275
- }]),
2276
- onClick: onClick
2277
- }, props), icon ? /*#__PURE__*/React__default.createElement("span", {
2278
- className: classnames('nav_icon')
2279
- }, icon) : null, label), dropdown ? /*#__PURE__*/React__default.createElement("div", {
2280
- ref: dropdownRef,
2281
- className: "nav_target"
2282
- }, dropdown) : null);
2283
- };
2284
- NavItem.propTypes = {
2285
- label: PropTypes.string.isRequired,
2286
- active: PropTypes.bool,
2287
- dropdown: PropTypes.object,
2288
- icon: PropTypes.node,
2289
- end: PropTypes.node,
2290
- to: PropTypes.node,
2291
- className: PropTypes.node
2292
- };
2293
-
2294
- const Radio = ({
2295
- id,
2296
- name,
2297
- value,
2298
- label,
2299
- checked,
2300
- disabled,
2301
- optional,
2302
- dense,
2303
- onChange,
2304
- className,
2305
- ...props
2306
- }) => {
2307
- return /*#__PURE__*/React__default.createElement("div", {
2308
- className: classnames(['radio', {
2309
- 'radio-disabled': disabled,
2310
- 'radio-dense': dense
2311
- }, className])
2312
- }, /*#__PURE__*/React__default.createElement("input", _extends({
2313
- className: classnames('radio_control'),
2314
- type: "radio",
2315
- id: id,
2316
- name: name,
2317
- value: value,
2318
- checked: checked,
2319
- "aria-checked": checked,
2320
- disabled: disabled,
2321
- required: !(disabled || optional),
2322
- onChange: onChange
2323
- }, props)), /*#__PURE__*/React__default.createElement("label", {
2324
- className: classnames('radio_label'),
2325
- htmlFor: id
2326
- }, label));
2327
- };
2328
- Radio.propTypes = {
2329
- id: PropTypes.string.isRequired,
2330
- name: PropTypes.string.isRequired,
2331
- value: PropTypes.string.isRequired,
2332
- label: PropTypes.string.isRequired,
2333
- checked: PropTypes.bool,
2334
- disabled: PropTypes.bool,
2335
- optional: PropTypes.bool,
2336
- dense: PropTypes.bool,
2337
- className: PropTypes.node
2338
- };
2339
-
2340
- const RadioButtons = ({
2341
- onChange,
2342
- id,
2343
- label = 'Label',
2344
- direction = 'portrait',
2345
- error,
2346
- disabled,
2347
- optional,
2348
- dense,
2349
- hint,
2350
- hideLabel,
2351
- children,
2352
- className
2353
- }) => {
2354
- return /*#__PURE__*/React__default.createElement("fieldset", _extends({
2355
- className: classnames(['input', {
2356
- 'js-error': error,
2357
- 'input-disabled': disabled,
2358
- 'input-optional': optional,
2359
- 'input-dense': dense
2360
- }, className])
2361
- }, hint || error ? {
2362
- 'aria-describedby': [hint ? `${id}-hint` : null, error ? `${id}-error` : null].filter(Boolean).join(' ')
2363
- } : null), /*#__PURE__*/React__default.createElement(InputLabel, {
2364
- isLegend: true,
2365
- label: label,
2366
- hint: hint,
2367
- error: error,
2368
- hideLabel: hideLabel
2369
- }), /*#__PURE__*/React__default.createElement("div", {
2370
- className: classnames(['input_control', 'radios', {
2371
- [`radios-${direction}`]: direction
2372
- }])
2373
- }, React__default.Children.map(children, child => /*#__PURE__*/React__default.isValidElement(child) ? /*#__PURE__*/React__default.cloneElement(child, {
2374
- onChange,
2375
- optional,
2376
- disabled
2377
- }) : child)));
2378
- };
2379
- RadioButtons.propTypes = {
2380
- onChange: PropTypes.func,
2381
- id: PropTypes.string.isRequired,
2382
- label: PropTypes.string.isRequired,
2383
- direction: PropTypes.oneOf(['portrait', 'landscape']),
2384
- error: PropTypes.bool,
2385
- disabled: PropTypes.bool,
2386
- optional: PropTypes.bool,
2387
- dense: PropTypes.bool,
2388
- hint: PropTypes.string,
2389
- hideLabel: PropTypes.bool,
2390
- children: PropTypes.node.isRequired,
2391
- className: PropTypes.node
2392
- };
2393
-
2394
- const SectionContent = ({
2395
- align = 'left',
2396
- className,
2397
- children,
2398
- ...props
2399
- }) => {
2400
- return /*#__PURE__*/React__default.createElement("div", _extends({
2401
- className: classnames(['section_content', {
2402
- [`section_content-${align}`]: align
2403
- }, className])
2404
- }, props), children);
2405
- };
2406
- SectionContent.propTypes = {
2407
- align: PropTypes.oneOf(['left', 'center', 'right']),
2408
- className: PropTypes.node,
2409
- children: PropTypes.node.isRequired
2410
- };
2411
-
2412
- const Select = ({
2413
- onChange,
2414
- id,
2415
- label = 'Select',
2416
- isFocused,
2417
- error,
2418
- disabled,
2419
- optional,
2420
- dense,
2421
- hint,
2422
- hideLabel,
2423
- children,
2424
- className,
2425
- ...props
2426
- }) => {
2427
- const inputRef = useRef(null);
2428
- useEffect(() => {
2429
- if (isFocused && inputRef.current) {
2430
- inputRef.current.focus();
616
+ else {
617
+ Component = component || 'a';
2431
618
  }
2432
- }, [isFocused]);
2433
- return /*#__PURE__*/React__default.createElement("div", {
2434
- className: classnames(['input', 'select', {
2435
- 'input-focused': isFocused,
2436
- 'js-error': error,
2437
- 'input-disabled': disabled,
2438
- 'input-optional': optional,
2439
- 'input-dense': dense
2440
- }, className])
2441
- }, /*#__PURE__*/React__default.createElement(InputLabel, {
2442
- htmlFor: id,
2443
- label: label,
2444
- hint: hint,
2445
- error: error,
2446
- hideLabel: hideLabel
2447
- }), /*#__PURE__*/React__default.createElement("select", _extends({
2448
- ref: inputRef,
2449
- className: 'input_control',
2450
- name: id,
2451
- id: id,
2452
- disabled: disabled,
2453
- required: !(disabled || optional),
2454
- onChange: onChange
2455
- }, hint || error ? {
2456
- 'aria-describedby': [hint ? `${id}-hint` : null, error ? `${id}-error` : null].filter(Boolean).join(' ')
2457
- } : null, props), children));
2458
- };
2459
- Select.propTypes = {
2460
- onChange: PropTypes.func,
2461
- id: PropTypes.string.isRequired,
2462
- label: PropTypes.string.isRequired,
2463
- isFocused: PropTypes.bool,
2464
- error: PropTypes.bool,
2465
- disabled: PropTypes.bool,
2466
- optional: PropTypes.bool,
2467
- dense: PropTypes.bool,
2468
- hint: PropTypes.string,
2469
- hideLabel: PropTypes.bool,
2470
- children: PropTypes.any.isRequired,
2471
- className: PropTypes.node
619
+ return (jsxs("div", { className: classnames([
620
+ 'nav_item',
621
+ {
622
+ 'nav_item-dropdown': dropdown,
623
+ 'js-show': isExpanded
624
+ },
625
+ className
626
+ ]), children: [jsxs(Component, { end: end, to: to, className: classnames([
627
+ 'nav_trigger',
628
+ {
629
+ 'nav_trigger-active': active
630
+ }
631
+ ]), onClick: onClick, ...props, children: [icon ? (jsx("span", { className: classnames('nav_icon'), children: icon })) : null, label] }), dropdown ? (jsx("div", { ref: dropdownRef, className: 'nav_target', children: dropdown })) : null] }));
632
+ };
633
+
634
+ const Radio = ({ id, name, value, label, checked, disabled, optional, dense, onChange, className, ...props }) => {
635
+ return (jsxs("div", { className: classnames([
636
+ 'radio',
637
+ {
638
+ 'radio-disabled': disabled,
639
+ 'radio-dense': dense
640
+ },
641
+ className
642
+ ]), children: [jsx("input", { className: classnames('radio_control'), type: "radio", id: id, name: name, value: value, checked: checked, "aria-checked": checked, disabled: disabled, required: !(disabled || optional), onChange: onChange, ...props }), jsx("label", { className: classnames('radio_label'), htmlFor: id, children: label })] }));
643
+ };
644
+
645
+ const RadioButtons = ({ id, label = 'Label', direction = 'portrait', error, disabled, optional, dense, hint, hideLabel, children, className }) => {
646
+ return (jsxs("fieldset", { className: classnames([
647
+ 'input',
648
+ {
649
+ 'js-error': error,
650
+ 'input-disabled': disabled,
651
+ 'input-optional': optional,
652
+ 'input-dense': dense
653
+ },
654
+ className
655
+ ]), ...(hint || error
656
+ ? {
657
+ 'aria-describedby': [hint ? `${id}-hint` : null, error ? `${id}-error` : null]
658
+ .filter(Boolean)
659
+ .join(' '),
660
+ }
661
+ : null), children: [jsx(InputLabel, { isLegend: true, label: label, hint: hint, hideLabel: hideLabel }), jsx("div", { className: classnames([
662
+ 'input_control',
663
+ 'radios',
664
+ {
665
+ [`radios-${direction}`]: direction
666
+ }
667
+ ]), children: children })] }));
668
+ };
669
+
670
+ const SectionContent = ({ align = 'left', className, children, ...props }) => {
671
+ return (jsx("div", { className: classnames([
672
+ 'section_content',
673
+ {
674
+ [`section_content-${align}`]: align
675
+ },
676
+ className
677
+ ]), ...props, children: children }));
678
+ };
679
+
680
+ const Select = ({ onChange, id, label = 'Select', isFocused, error, disabled, optional, dense, hint, hideLabel, children, className, ...props }) => {
681
+ const inputRef = useRef(null);
682
+ useEffect(() => {
683
+ if (isFocused && inputRef.current) {
684
+ inputRef.current.focus();
685
+ }
686
+ }, [isFocused]);
687
+ return (jsxs("div", { className: classnames([
688
+ 'input',
689
+ 'select',
690
+ {
691
+ 'input-focused': isFocused,
692
+ 'js-error': error,
693
+ 'input-disabled': disabled,
694
+ 'input-optional': optional,
695
+ 'input-dense': dense,
696
+ },
697
+ className
698
+ ]), children: [jsx(InputLabel, { htmlFor: id, label: label, hint: hint, hideLabel: hideLabel }), jsx("select", { ref: inputRef, className: 'input_control', name: id, id: id, disabled: disabled, required: !(disabled || optional), onChange: onChange, ...(hint || error
699
+ ? {
700
+ 'aria-describedby': [hint ? `${id}-hint` : null, error ? `${id}-error` : null]
701
+ .filter(Boolean)
702
+ .join(' '),
703
+ }
704
+ : null), ...props, children: children })] }));
2472
705
  };
2473
706
 
2474
707
  var nnfxDark = {
@@ -2588,532 +821,290 @@ var nnfxDark = {
2588
821
  }
2589
822
  };
2590
823
 
2591
- const Snippet = ({
2592
- content = 'Snippet',
2593
- isDefault = false,
2594
- dense = false,
2595
- fullWidth,
2596
- className,
2597
- ...props
2598
- }) => {
2599
- return /*#__PURE__*/React__default.createElement("div", {
2600
- className: classnames(['snippet_wrapper', {
2601
- ' w-full': fullWidth
2602
- }])
2603
- }, /*#__PURE__*/React__default.createElement(SyntaxHighlighter, _extends({
2604
- language: "javascript",
2605
- style: nnfxDark,
2606
- className: classnames(['snippet', {
2607
- ' snippet-dense': dense
2608
- }, {
2609
- ' snippet-default': isDefault
2610
- }, className])
2611
- }, props), content));
2612
- };
2613
- Snippet.propTypes = {
2614
- content: PropTypes.string.isRequired,
2615
- isDefault: PropTypes.bool,
2616
- dense: PropTypes.bool,
2617
- className: PropTypes.node
2618
- };
2619
-
2620
- const Status = ({
2621
- color = 'inactive',
2622
- dense,
2623
- className,
2624
- children = 'Status',
2625
- ...props
2626
- }) => {
2627
- return /*#__PURE__*/React__default.createElement(Text, _extends({
2628
- className: classnames(['status', {
2629
- [`status-${color}`]: color,
2630
- 'status-dense': dense
2631
- }, className])
2632
- }, props), children);
2633
- };
2634
- Status.propTypes = {
2635
- color: PropTypes.oneOf(['inactive', 'success', 'info', 'warning', 'error']),
2636
- dense: PropTypes.bool,
2637
- className: PropTypes.node,
2638
- children: PropTypes.node.isRequired
2639
- };
2640
-
2641
- const Switch = ({
2642
- id,
2643
- startLabel,
2644
- endLabel,
2645
- disabled,
2646
- className,
2647
- ...props
2648
- }) => {
2649
- return /*#__PURE__*/React__default.createElement("div", {
2650
- className: classnames(['switch', {
2651
- 'switch-disabled': disabled
2652
- }, className])
2653
- }, startLabel ? /*#__PURE__*/React__default.createElement(Text, {
2654
- className: classnames('switch_label'),
2655
- variant: "body"
2656
- }, startLabel) : null, /*#__PURE__*/React__default.createElement("input", _extends({
2657
- className: classnames('switch_input'),
2658
- type: "checkbox",
2659
- name: id,
2660
- id: id,
2661
- disabled: disabled
2662
- }, props)), /*#__PURE__*/React__default.createElement("label", {
2663
- className: classnames('switch_switch'),
2664
- htmlFor: id
2665
- }, /*#__PURE__*/React__default.createElement("div", {
2666
- className: classnames('switch_toggle')
2667
- })), endLabel ? /*#__PURE__*/React__default.createElement(Text, {
2668
- className: classnames('switch_label'),
2669
- variant: "body"
2670
- }, endLabel) : null);
2671
- };
2672
- Switch.propTypes = {
2673
- id: PropTypes.string,
2674
- startLabel: PropTypes.string,
2675
- endLabel: PropTypes.string,
2676
- disabled: PropTypes.bool,
2677
- className: PropTypes.node
2678
- };
2679
-
2680
- const TabsContext = /*#__PURE__*/createContext();
2681
- const Tabs = ({
2682
- direction,
2683
- dense,
2684
- hasBorder,
2685
- className,
2686
- children
2687
- }) => {
2688
- const [activeIndex, setActiveIndex] = useState(0);
2689
- return /*#__PURE__*/React__default.createElement(TabsContext.Provider, {
2690
- value: {
2691
- activeIndex,
2692
- setActiveIndex
2693
- }
2694
- }, /*#__PURE__*/React__default.createElement("div", {
2695
- className: classnames(['tabs', {
2696
- [`tabs-${direction}`]: direction,
2697
- 'tabs-dense': dense,
2698
- 'tabs-hasBorder': hasBorder
2699
- }, className])
2700
- }, children));
2701
- };
2702
- Tabs.propTypes = {
2703
- direction: PropTypes.oneOf(['portrait', 'landscape']),
2704
- dense: PropTypes.bool,
2705
- hasBorder: PropTypes.bool,
2706
- className: PropTypes.node,
2707
- children: PropTypes.node.isRequired
2708
- };
2709
-
2710
- const Tab = ({
2711
- index,
2712
- label,
2713
- className
2714
- }) => {
2715
- const {
2716
- activeIndex,
2717
- setActiveIndex
2718
- } = useContext(TabsContext);
2719
- const isSelected = activeIndex === index;
2720
- return /*#__PURE__*/React__default.createElement("button", {
2721
- className: classnames(['tab', {
2722
- 'tab-active': isSelected
2723
- }, className]),
2724
- role: "tab",
2725
- "aria-selected": isSelected,
2726
- "aria-controls": `tabpanel-${index}`,
2727
- id: `tab-${index}`,
2728
- tabIndex: isSelected ? 0 : -1,
2729
- onClick: () => setActiveIndex(index)
2730
- }, label);
2731
- };
2732
- Tab.propTypes = {
2733
- label: PropTypes.string,
2734
- className: PropTypes.node.isRequired
2735
- };
2736
-
2737
- const a$1 = /* @__PURE__ */new Map([["bold", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
2738
- d: "M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z"
2739
- }))], ["duotone", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
2740
- d: "M160,48V208L80,128Z",
2741
- opacity: "0.2"
2742
- }), /* @__PURE__ */React.createElement("path", {
2743
- d: "M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z"
2744
- }))], ["fill", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
2745
- d: "M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z"
2746
- }))], ["light", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
2747
- d: "M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z"
2748
- }))], ["regular", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
2749
- d: "M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"
2750
- }))], ["thin", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
2751
- d: "M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z"
2752
- }))]]);
2753
-
2754
- const t$1 = /*#__PURE__*/React.forwardRef((o, r) => /* @__PURE__ */React.createElement(p, {
2755
- ref: r,
2756
- ...o,
2757
- weights: a$1
2758
- }));
824
+ const Snippet = ({ content = 'Snippet', isDefault = false, dense = false, fullWidth, className, ...props }) => {
825
+ return (jsx("div", { className: classnames([
826
+ 'snippet_wrapper',
827
+ { ' w-full': fullWidth }
828
+ ]), children: jsx(SyntaxHighlighter, { language: "javascript", style: nnfxDark, className: classnames([
829
+ 'snippet',
830
+ { ' snippet-dense': dense },
831
+ { ' snippet-default': isDefault },
832
+ className
833
+ ]), ...props, children: content }) }));
834
+ };
835
+
836
+ const Status = ({ color = 'inactive', dense, className, children = 'Status', ...props }) => {
837
+ return (jsx(Text, { className: classnames([
838
+ 'status',
839
+ {
840
+ [`status-${color}`]: color,
841
+ 'status-dense': dense
842
+ },
843
+ className
844
+ ]), ...props, children: children }));
845
+ };
846
+
847
+ const Switch = ({ id, startLabel, endLabel, disabled, className, ...props }) => {
848
+ return (jsxs("div", { className: classnames([
849
+ 'switch',
850
+ { 'switch-disabled': disabled },
851
+ className
852
+ ]), children: [startLabel ? jsx(Text, { className: classnames('switch_label'), variant: "body", children: startLabel }) : null, jsx("input", { className: classnames('switch_input'), type: "checkbox", name: id, id: id, disabled: disabled, ...props }), jsx("label", { className: classnames('switch_switch'), htmlFor: id, children: jsx("div", { className: classnames('switch_toggle') }) }), endLabel ? jsx(Text, { className: classnames('switch_label'), variant: "body", children: endLabel }) : null] }));
853
+ };
854
+
855
+ const TabsContext = createContext(null);
856
+ const Tabs = ({ direction, dense, hasBorder, className, children }) => {
857
+ const [activeIndex, setActiveIndex] = useState(0);
858
+ return (jsx(TabsContext.Provider, { value: { activeIndex, setActiveIndex }, children: jsx("div", { className: classnames([
859
+ 'tabs',
860
+ {
861
+ [`tabs-${direction}`]: direction,
862
+ 'tabs-dense': dense,
863
+ 'tabs-hasBorder': hasBorder,
864
+ },
865
+ className
866
+ ]), children: children }) }));
867
+ };
868
+
869
+ const Tab = ({ index, label, className, }) => {
870
+ const context = useContext(TabsContext);
871
+ const activeIndex = context?.activeIndex ?? 0;
872
+ const setActiveIndex = context?.setActiveIndex ?? (() => { });
873
+ const isSelected = activeIndex === index;
874
+ return (jsx("button", { className: classnames([
875
+ 'tab',
876
+ {
877
+ 'tab-active': isSelected,
878
+ },
879
+ className
880
+ ]), role: "tab", "aria-selected": isSelected, "aria-controls": `tabpanel-${index}`, id: `tab-${index}`, tabIndex: isSelected ? 0 : -1, onClick: () => setActiveIndex(index), children: label }));
881
+ };
882
+
883
+ const a$1 = /* @__PURE__ */ new Map([
884
+ [
885
+ "bold",
886
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z" }))
887
+ ],
888
+ [
889
+ "duotone",
890
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M160,48V208L80,128Z", opacity: "0.2" }), /* @__PURE__ */ e$7.createElement("path", { d: "M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z" }))
891
+ ],
892
+ [
893
+ "fill",
894
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z" }))
895
+ ],
896
+ [
897
+ "light",
898
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z" }))
899
+ ],
900
+ [
901
+ "regular",
902
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z" }))
903
+ ],
904
+ [
905
+ "thin",
906
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z" }))
907
+ ]
908
+ ]);
909
+
910
+ const t$1 = e$7.forwardRef((o, r) => /* @__PURE__ */ e$7.createElement(p, { ref: r, ...o, weights: a$1 }));
2759
911
  t$1.displayName = "CaretLeftIcon";
2760
912
 
2761
- const t = /* @__PURE__ */new Map([["bold", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
2762
- d: "M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"
2763
- }))], ["duotone", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
2764
- d: "M176,128,96,208V48Z",
2765
- opacity: "0.2"
2766
- }), /* @__PURE__ */React.createElement("path", {
2767
- d: "M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"
2768
- }))], ["fill", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
2769
- d: "M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"
2770
- }))], ["light", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
2771
- d: "M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"
2772
- }))], ["regular", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
2773
- d: "M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"
2774
- }))], ["thin", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
2775
- d: "M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"
2776
- }))]]);
2777
-
2778
- const e$1 = /*#__PURE__*/React.forwardRef((o, r) => /* @__PURE__ */React.createElement(p, {
2779
- ref: r,
2780
- ...o,
2781
- weights: t
2782
- }));
913
+ const t = /* @__PURE__ */ new Map([
914
+ [
915
+ "bold",
916
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z" }))
917
+ ],
918
+ [
919
+ "duotone",
920
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M176,128,96,208V48Z", opacity: "0.2" }), /* @__PURE__ */ e$7.createElement("path", { d: "M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z" }))
921
+ ],
922
+ [
923
+ "fill",
924
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z" }))
925
+ ],
926
+ [
927
+ "light",
928
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z" }))
929
+ ],
930
+ [
931
+ "regular",
932
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z" }))
933
+ ],
934
+ [
935
+ "thin",
936
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z" }))
937
+ ]
938
+ ]);
939
+
940
+ const e$1 = e$7.forwardRef((o, r) => /* @__PURE__ */ e$7.createElement(p, { ref: r, ...o, weights: t }));
2783
941
  e$1.displayName = "CaretRightIcon";
2784
942
 
2785
- const e = /* @__PURE__ */new Map([["bold", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
2786
- d: "M208.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L137,128ZM57,128l71.52-71.51a12,12,0,0,0-17-17l-80,80a12,12,0,0,0,0,17l80,80a12,12,0,0,0,17-17Z"
2787
- }))], ["duotone", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
2788
- d: "M200,48V208l-80-80Z",
2789
- opacity: "0.2"
2790
- }), /* @__PURE__ */React.createElement("path", {
2791
- d: "M203.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,208,208V48A8,8,0,0,0,203.06,40.61ZM192,188.69,131.31,128,192,67.31Zm-66.34,13.65a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L51.31,128Z"
2792
- }))], ["fill", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
2793
- d: "M208,48V208a8,8,0,0,1-13.66,5.66L128,147.31V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,128,48v60.69l66.34-66.35A8,8,0,0,1,208,48Z"
2794
- }))], ["light", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
2795
- d: "M204.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L128.49,128ZM48.49,128l75.75-75.76a6,6,0,0,0-8.48-8.48l-80,80a6,6,0,0,0,0,8.48l80,80a6,6,0,1,0,8.48-8.48Z"
2796
- }))], ["regular", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
2797
- d: "M205.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L131.31,128ZM51.31,128l74.35-74.34a8,8,0,0,0-11.32-11.32l-80,80a8,8,0,0,0,0,11.32l80,80a8,8,0,0,0,11.32-11.32Z"
2798
- }))], ["thin", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
2799
- d: "M202.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L125.66,128ZM45.66,128l77.17-77.17a4,4,0,0,0-5.66-5.66l-80,80a4,4,0,0,0,0,5.66l80,80a4,4,0,1,0,5.66-5.66Z"
2800
- }))]]);
2801
-
2802
- const o$1 = /*#__PURE__*/React.forwardRef((t, r) => /* @__PURE__ */React.createElement(p, {
2803
- ref: r,
2804
- ...t,
2805
- weights: e
2806
- }));
943
+ const e = /* @__PURE__ */ new Map([
944
+ [
945
+ "bold",
946
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M208.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L137,128ZM57,128l71.52-71.51a12,12,0,0,0-17-17l-80,80a12,12,0,0,0,0,17l80,80a12,12,0,0,0,17-17Z" }))
947
+ ],
948
+ [
949
+ "duotone",
950
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M200,48V208l-80-80Z", opacity: "0.2" }), /* @__PURE__ */ e$7.createElement("path", { d: "M203.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,208,208V48A8,8,0,0,0,203.06,40.61ZM192,188.69,131.31,128,192,67.31Zm-66.34,13.65a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L51.31,128Z" }))
951
+ ],
952
+ [
953
+ "fill",
954
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M208,48V208a8,8,0,0,1-13.66,5.66L128,147.31V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,128,48v60.69l66.34-66.35A8,8,0,0,1,208,48Z" }))
955
+ ],
956
+ [
957
+ "light",
958
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M204.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L128.49,128ZM48.49,128l75.75-75.76a6,6,0,0,0-8.48-8.48l-80,80a6,6,0,0,0,0,8.48l80,80a6,6,0,1,0,8.48-8.48Z" }))
959
+ ],
960
+ [
961
+ "regular",
962
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M205.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L131.31,128ZM51.31,128l74.35-74.34a8,8,0,0,0-11.32-11.32l-80,80a8,8,0,0,0,0,11.32l80,80a8,8,0,0,0,11.32-11.32Z" }))
963
+ ],
964
+ [
965
+ "thin",
966
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M202.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L125.66,128ZM45.66,128l77.17-77.17a4,4,0,0,0-5.66-5.66l-80,80a4,4,0,0,0,0,5.66l80,80a4,4,0,1,0,5.66-5.66Z" }))
967
+ ]
968
+ ]);
969
+
970
+ const o$1 = e$7.forwardRef((t, r) => /* @__PURE__ */ e$7.createElement(p, { ref: r, ...t, weights: e }));
2807
971
  o$1.displayName = "CaretDoubleLeftIcon";
2808
972
 
2809
- const a = /* @__PURE__ */new Map([["bold", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
2810
- d: "M144.49,136.49l-80,80a12,12,0,0,1-17-17L119,128,47.51,56.49a12,12,0,0,1,17-17l80,80A12,12,0,0,1,144.49,136.49Zm80-17-80-80a12,12,0,1,0-17,17L199,128l-71.52,71.51a12,12,0,0,0,17,17l80-80A12,12,0,0,0,224.49,119.51Z"
2811
- }))], ["duotone", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
2812
- d: "M136,128,56,208V48Z",
2813
- opacity: "0.2"
2814
- }), /* @__PURE__ */React.createElement("path", {
2815
- d: "M141.66,122.34l-80-80A8,8,0,0,0,48,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,141.66,122.34ZM64,188.69V67.31L124.69,128Zm157.66-55-80,80a8,8,0,0,1-11.32-11.32L204.69,128,130.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,221.66,133.66Z"
2816
- }))], ["fill", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
2817
- d: "M221.66,133.66l-80,80A8,8,0,0,1,128,208V147.31L61.66,213.66A8,8,0,0,1,48,208V48a8,8,0,0,1,13.66-5.66L128,108.69V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,221.66,133.66Z"
2818
- }))], ["light", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
2819
- d: "M140.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L127.51,128,51.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,140.24,132.24Zm80-8.48-80-80a6,6,0,0,0-8.48,8.48L207.51,128l-75.75,75.76a6,6,0,1,0,8.48,8.48l80-80A6,6,0,0,0,220.24,123.76Z"
2820
- }))], ["regular", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
2821
- d: "M141.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L124.69,128,50.34,53.66A8,8,0,0,1,61.66,42.34l80,80A8,8,0,0,1,141.66,133.66Zm80-11.32-80-80a8,8,0,0,0-11.32,11.32L204.69,128l-74.35,74.34a8,8,0,0,0,11.32,11.32l80-80A8,8,0,0,0,221.66,122.34Z"
2822
- }))], ["thin", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
2823
- d: "M138.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L130.34,128,53.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,138.83,130.83Zm80-5.66-80-80a4,4,0,0,0-5.66,5.66L210.34,128l-77.17,77.17a4,4,0,0,0,5.66,5.66l80-80A4,4,0,0,0,218.83,125.17Z"
2824
- }))]]);
2825
-
2826
- const o = /*#__PURE__*/React.forwardRef((t, r) => /* @__PURE__ */React.createElement(p, {
2827
- ref: r,
2828
- ...t,
2829
- weights: a
2830
- }));
973
+ const a = /* @__PURE__ */ new Map([
974
+ [
975
+ "bold",
976
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M144.49,136.49l-80,80a12,12,0,0,1-17-17L119,128,47.51,56.49a12,12,0,0,1,17-17l80,80A12,12,0,0,1,144.49,136.49Zm80-17-80-80a12,12,0,1,0-17,17L199,128l-71.52,71.51a12,12,0,0,0,17,17l80-80A12,12,0,0,0,224.49,119.51Z" }))
977
+ ],
978
+ [
979
+ "duotone",
980
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M136,128,56,208V48Z", opacity: "0.2" }), /* @__PURE__ */ e$7.createElement("path", { d: "M141.66,122.34l-80-80A8,8,0,0,0,48,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,141.66,122.34ZM64,188.69V67.31L124.69,128Zm157.66-55-80,80a8,8,0,0,1-11.32-11.32L204.69,128,130.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,221.66,133.66Z" }))
981
+ ],
982
+ [
983
+ "fill",
984
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M221.66,133.66l-80,80A8,8,0,0,1,128,208V147.31L61.66,213.66A8,8,0,0,1,48,208V48a8,8,0,0,1,13.66-5.66L128,108.69V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,221.66,133.66Z" }))
985
+ ],
986
+ [
987
+ "light",
988
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M140.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L127.51,128,51.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,140.24,132.24Zm80-8.48-80-80a6,6,0,0,0-8.48,8.48L207.51,128l-75.75,75.76a6,6,0,1,0,8.48,8.48l80-80A6,6,0,0,0,220.24,123.76Z" }))
989
+ ],
990
+ [
991
+ "regular",
992
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M141.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L124.69,128,50.34,53.66A8,8,0,0,1,61.66,42.34l80,80A8,8,0,0,1,141.66,133.66Zm80-11.32-80-80a8,8,0,0,0-11.32,11.32L204.69,128l-74.35,74.34a8,8,0,0,0,11.32,11.32l80-80A8,8,0,0,0,221.66,122.34Z" }))
993
+ ],
994
+ [
995
+ "thin",
996
+ /* @__PURE__ */ e$7.createElement(e$7.Fragment, null, /* @__PURE__ */ e$7.createElement("path", { d: "M138.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L130.34,128,53.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,138.83,130.83Zm80-5.66-80-80a4,4,0,0,0-5.66,5.66L210.34,128l-77.17,77.17a4,4,0,0,0,5.66,5.66l80-80A4,4,0,0,0,218.83,125.17Z" }))
997
+ ]
998
+ ]);
999
+
1000
+ const o = e$7.forwardRef((t, r) => /* @__PURE__ */ e$7.createElement(p, { ref: r, ...t, weights: a }));
2831
1001
  o.displayName = "CaretDoubleRightIcon";
2832
1002
 
2833
- const TableFooter = ({
2834
- className,
2835
- ...props
2836
- }) => {
2837
- return /*#__PURE__*/React__default.createElement("div", _extends({
2838
- className: classnames(['table_footer', className])
2839
- }, props), /*#__PURE__*/React__default.createElement(Select, {
2840
- dense: true,
2841
- id: "rows",
2842
- className: "table_rowSelect"
2843
- }, /*#__PURE__*/React__default.createElement("option", {
2844
- value: "1"
2845
- }, "10"), /*#__PURE__*/React__default.createElement("option", {
2846
- value: "2"
2847
- }, "25"), /*#__PURE__*/React__default.createElement("option", {
2848
- value: "2"
2849
- }, "50"), /*#__PURE__*/React__default.createElement("option", {
2850
- value: "2"
2851
- }, "100"), /*#__PURE__*/React__default.createElement("option", {
2852
- value: "2"
2853
- }, "All")), /*#__PURE__*/React__default.createElement(Buttons, {
2854
- className: "table_pagination"
2855
- }, /*#__PURE__*/React__default.createElement(Button, {
2856
- kind: "icon",
2857
- variant: "transparent",
2858
- size: "sm"
2859
- }, /*#__PURE__*/React__default.createElement(o$1, null)), /*#__PURE__*/React__default.createElement(Button, {
2860
- kind: "icon",
2861
- variant: "transparent",
2862
- size: "sm"
2863
- }, /*#__PURE__*/React__default.createElement(t$1, null)), /*#__PURE__*/React__default.createElement(Button, {
2864
- kind: "icon",
2865
- size: "sm"
2866
- }, "1"), /*#__PURE__*/React__default.createElement(Button, {
2867
- kind: "icon",
2868
- variant: "transparent",
2869
- size: "sm"
2870
- }, "2"), /*#__PURE__*/React__default.createElement(Button, {
2871
- kind: "icon",
2872
- variant: "transparent",
2873
- size: "sm"
2874
- }, "3"), /*#__PURE__*/React__default.createElement(Button, {
2875
- kind: "icon",
2876
- variant: "transparent",
2877
- size: "sm"
2878
- }, "\u2026"), /*#__PURE__*/React__default.createElement(Button, {
2879
- kind: "icon",
2880
- variant: "transparent",
2881
- size: "sm"
2882
- }, "8"), /*#__PURE__*/React__default.createElement(Button, {
2883
- kind: "icon",
2884
- variant: "transparent",
2885
- size: "sm"
2886
- }, /*#__PURE__*/React__default.createElement(e$1, null)), /*#__PURE__*/React__default.createElement(Button, {
2887
- kind: "icon",
2888
- variant: "transparent",
2889
- size: "sm"
2890
- }, /*#__PURE__*/React__default.createElement(o, null))));
2891
- };
2892
- TableFooter.propTypes = {
2893
- className: PropTypes.node
2894
- };
2895
-
2896
- const DenseContext = /*#__PURE__*/createContext(false);
2897
- const Table = ({
2898
- striped,
2899
- hasHover,
2900
- dense,
2901
- border,
2902
- withFooter,
2903
- className,
2904
- children,
2905
- ...props
2906
- }) => {
2907
- return /*#__PURE__*/React__default.createElement(DenseContext.Provider, {
2908
- value: dense
2909
- }, /*#__PURE__*/React__default.createElement("div", {
2910
- className: classnames(['table', {
2911
- 'table-striped': striped,
2912
- 'table-hasHover': hasHover,
2913
- 'table-dense': dense,
2914
- 'table-border': border
2915
- }, className])
2916
- }, /*#__PURE__*/React__default.createElement("table", _extends({
2917
- cellPadding: 0,
2918
- cellSpacing: 0,
2919
- className: classnames('table_content')
2920
- }, props), children), withFooter ? /*#__PURE__*/React__default.createElement(TableFooter, {
2921
- dense: dense ? dense : null
2922
- }) : null));
2923
- };
2924
- Table.propTypes = {
2925
- striped: PropTypes.bool,
2926
- hasHover: PropTypes.bool,
2927
- dense: PropTypes.bool,
2928
- border: PropTypes.bool,
2929
- withFooter: PropTypes.bool,
2930
- className: PropTypes.node,
2931
- children: PropTypes.node.isRequired
2932
- };
2933
-
2934
- const TableBody = ({
2935
- className,
2936
- children,
2937
- ...props
2938
- }) => {
2939
- return /*#__PURE__*/React__default.createElement("tbody", _extends({
2940
- className: classnames(['table_body', className])
2941
- }, props), children);
2942
- };
2943
- TableBody.propTypes = {
2944
- className: PropTypes.node,
2945
- children: PropTypes.node.isRequired
2946
- };
2947
-
2948
- const TableCellComponentContext = /*#__PURE__*/createContext('td');
2949
- const TableHead = ({
2950
- className,
2951
- children,
2952
- ...props
2953
- }) => {
2954
- return /*#__PURE__*/React__default.createElement(TableCellComponentContext.Provider, {
2955
- value: "th"
2956
- }, /*#__PURE__*/React__default.createElement("thead", _extends({
2957
- className: classnames(['table_head', className])
2958
- }, props), children));
2959
- };
2960
- TableHead.propTypes = {
2961
- className: PropTypes.node,
2962
- children: PropTypes.node.isRequired
2963
- };
2964
-
2965
- const TableCell = ({
2966
- kind = 'default',
2967
- className,
2968
- children,
2969
- ...props
2970
- }) => {
2971
- const useTableCellComponent = () => useContext(TableCellComponentContext);
2972
- const Component = useTableCellComponent();
2973
- return /*#__PURE__*/React__default.createElement(Component, _extends({
2974
- className: classnames(['table_cell', {
2975
- [`table_cell-${kind}`]: kind
2976
- }, className])
2977
- }, props), children);
2978
- };
2979
- TableCell.propTypes = {
2980
- kind: PropTypes.oneOf(['default', 'number', 'action']),
2981
- className: PropTypes.node,
2982
- children: PropTypes.node.isRequired
2983
- };
2984
-
2985
- const TableRow = ({
2986
- className,
2987
- children,
2988
- ...props
2989
- }) => {
2990
- return /*#__PURE__*/React__default.createElement("tr", _extends({
2991
- className: classnames(['table_row', className])
2992
- }, props), children);
2993
- };
2994
- TableRow.propTypes = {
2995
- className: PropTypes.node,
2996
- children: PropTypes.node.isRequired
2997
- };
2998
-
2999
- const TabsControl = ({
3000
- className,
3001
- children
3002
- }) => {
3003
- return /*#__PURE__*/React__default.createElement("div", {
3004
- role: "tablist",
3005
- className: classnames(['tabs_controls', className])
3006
- }, children);
3007
- };
3008
- TabsControl.propTypes = {
3009
- className: PropTypes.node,
3010
- children: PropTypes.node.isRequired
3011
- };
3012
-
3013
- const TabsPanel = ({
3014
- index,
3015
- className,
3016
- children
3017
- }) => {
3018
- const {
3019
- activeIndex
3020
- } = useContext(TabsContext);
3021
- const isActive = activeIndex === index;
3022
- return isActive ? /*#__PURE__*/React__default.createElement("div", {
3023
- className: classnames(['tabs_panel', className]),
3024
- role: "tabpanel",
3025
- id: `tabpanel-${index}`,
3026
- "aria-labelledby": `tab-${index}`,
3027
- hidden: !isActive
3028
- }, children) : null;
3029
- };
3030
- TabsPanel.propTypes = {
3031
- className: PropTypes.node,
3032
- children: PropTypes.node.isRequired
3033
- };
3034
-
3035
- const Tag = ({
3036
- color = 'primary',
3037
- dense,
3038
- className,
3039
- children = 'Tag',
3040
- ...props
3041
- }) => {
3042
- return /*#__PURE__*/React__default.createElement(Text, _extends({
3043
- className: classnames(['tag', {
3044
- [`tag-${color}`]: color,
3045
- 'tag-dense': dense
3046
- }, className])
3047
- }, props), children);
3048
- };
3049
- Tag.propTypes = {
3050
- color: PropTypes.oneOf(['primary', 'secondary', 'grey', 'success', 'info', 'warning', 'error']),
3051
- dense: PropTypes.bool,
3052
- className: PropTypes.node,
3053
- children: PropTypes.node.isRequired
3054
- };
3055
-
3056
- const Textarea = ({
3057
- onChange,
3058
- id,
3059
- placeholder,
3060
- label = 'Textarea',
3061
- isFocused,
3062
- error,
3063
- disabled,
3064
- optional,
3065
- dense,
3066
- hint,
3067
- hideLabel,
3068
- className,
3069
- ...props
3070
- }) => {
3071
- const inputRef = useRef(null);
3072
- useEffect(() => {
3073
- if (isFocused && inputRef.current) {
3074
- inputRef.current.focus();
3075
- }
3076
- }, [isFocused]);
3077
- return /*#__PURE__*/React__default.createElement("div", {
3078
- className: classnames(['input', {
3079
- 'js-error': error,
3080
- 'input-disabled': disabled,
3081
- 'input-optional': optional,
3082
- 'input-dense': dense
3083
- }, className])
3084
- }, /*#__PURE__*/React__default.createElement(InputLabel, {
3085
- htmlFor: id,
3086
- label: label,
3087
- hint: hint,
3088
- error: error,
3089
- hideLabel: hideLabel
3090
- }), /*#__PURE__*/React__default.createElement("textarea", _extends({
3091
- ref: inputRef,
3092
- className: 'input_control',
3093
- name: id,
3094
- id: id,
3095
- placeholder: placeholder,
3096
- disabled: disabled,
3097
- required: !(disabled || optional),
3098
- rows: 4,
3099
- onChange: onChange
3100
- }, hint || error ? {
3101
- 'aria-describedby': [hint ? `${id}-hint` : null, error ? `${id}-error` : null].filter(Boolean).join(' ')
3102
- } : null, props)));
3103
- };
3104
- Textarea.propTypes = {
3105
- onChange: PropTypes.func,
3106
- id: PropTypes.string.isRequired,
3107
- placeholder: PropTypes.string,
3108
- label: PropTypes.string.isRequired,
3109
- isFocused: PropTypes.bool,
3110
- error: PropTypes.bool,
3111
- disabled: PropTypes.bool,
3112
- optional: PropTypes.bool,
3113
- dense: PropTypes.bool,
3114
- hint: PropTypes.string,
3115
- hideLabel: PropTypes.bool,
3116
- className: PropTypes.node
1003
+ const TableFooter = ({ className, ...props }) => {
1004
+ return (jsxs("div", { className: classnames([
1005
+ 'table_footer',
1006
+ className
1007
+ ]), ...props, children: [jsxs(Select, { dense: true, id: "rows", className: "table_rowSelect", children: [jsx("option", { value: "1", children: "10" }), jsx("option", { value: "2", children: "25" }), jsx("option", { value: "2", children: "50" }), jsx("option", { value: "2", children: "100" }), jsx("option", { value: "2", children: "All" })] }), jsxs(Buttons, { className: "table_pagination", children: [jsx(Button, { kind: "icon", variant: "transparent", size: "sm", children: jsx(o$1, {}) }), jsx(Button, { kind: "icon", variant: "transparent", size: "sm", children: jsx(t$1, {}) }), jsx(Button, { kind: "icon", size: "sm", children: "1" }), jsx(Button, { kind: "icon", variant: "transparent", size: "sm", children: "2" }), jsx(Button, { kind: "icon", variant: "transparent", size: "sm", children: "3" }), jsx(Button, { kind: "icon", variant: "transparent", size: "sm", children: "\u2026" }), jsx(Button, { kind: "icon", variant: "transparent", size: "sm", children: "8" }), jsx(Button, { kind: "icon", variant: "transparent", size: "sm", children: jsx(e$1, {}) }), jsx(Button, { kind: "icon", variant: "transparent", size: "sm", children: jsx(o, {}) })] })] }));
1008
+ };
1009
+
1010
+ const DenseContext = createContext(false);
1011
+ const Table = ({ striped, hasHover, dense, border, withFooter, className, children, ...props }) => {
1012
+ return (jsx(DenseContext.Provider, { value: dense ?? false, children: jsxs("div", { className: classnames([
1013
+ 'table',
1014
+ {
1015
+ 'table-striped': striped,
1016
+ 'table-hasHover': hasHover,
1017
+ 'table-dense': dense,
1018
+ 'table-border': border
1019
+ },
1020
+ className
1021
+ ]), children: [jsx("table", { cellPadding: 0, cellSpacing: 0, className: classnames('table_content'), ...props, children: children }), withFooter ? jsx(TableFooter, {}) : null] }) }));
1022
+ };
1023
+
1024
+ const TableBody = ({ className, children, ...props }) => {
1025
+ return (jsx("tbody", { className: classnames([
1026
+ 'table_body',
1027
+ className
1028
+ ]), ...props, children: children }));
1029
+ };
1030
+
1031
+ const TableCellComponentContext = createContext('td');
1032
+ const TableHead = ({ className, children, ...props }) => {
1033
+ return (jsx(TableCellComponentContext.Provider, { value: 'th', children: jsx("thead", { className: classnames([
1034
+ 'table_head',
1035
+ className
1036
+ ]), ...props, children: children }) }));
1037
+ };
1038
+
1039
+ const TableCell = ({ kind = 'default', className, children, ...props }) => {
1040
+ const Component = useContext(TableCellComponentContext);
1041
+ return (jsx(Component, { className: classnames([
1042
+ 'table_cell',
1043
+ {
1044
+ [`table_cell-${kind}`]: kind,
1045
+ },
1046
+ className
1047
+ ]), ...props, children: children }));
1048
+ };
1049
+
1050
+ const TableRow = ({ className, children, ...props }) => {
1051
+ return (jsx("tr", { className: classnames([
1052
+ 'table_row',
1053
+ className
1054
+ ]), ...props, children: children }));
1055
+ };
1056
+
1057
+ const TabsControl = ({ className, children, }) => {
1058
+ return (jsx("div", { role: 'tablist', className: classnames([
1059
+ 'tabs_controls',
1060
+ className
1061
+ ]), children: children }));
1062
+ };
1063
+
1064
+ const TabsPanel = ({ index, className, children, }) => {
1065
+ const context = useContext(TabsContext);
1066
+ const activeIndex = context?.activeIndex ?? 0;
1067
+ const isActive = activeIndex === index;
1068
+ return (isActive ? (jsx("div", { className: classnames([
1069
+ 'tabs_panel',
1070
+ className
1071
+ ]), role: "tabpanel", id: `tabpanel-${index}`, "aria-labelledby": `tab-${index}`, hidden: !isActive, children: children })) : null);
1072
+ };
1073
+
1074
+ const Tag = ({ color = 'primary', dense, className, children = 'Tag', ...props }) => {
1075
+ return (jsx(Text, { className: classnames([
1076
+ 'tag',
1077
+ {
1078
+ [`tag-${color}`]: color,
1079
+ 'tag-dense': dense
1080
+ },
1081
+ className
1082
+ ]), ...props, children: children }));
1083
+ };
1084
+
1085
+ const Textarea = ({ onChange, id, placeholder, label = 'Textarea', isFocused, error, disabled, optional, dense, hint, hideLabel, className, ...props }) => {
1086
+ const inputRef = useRef(null);
1087
+ useEffect(() => {
1088
+ if (isFocused && inputRef.current) {
1089
+ inputRef.current.focus();
1090
+ }
1091
+ }, [isFocused]);
1092
+ return (jsxs("div", { className: classnames([
1093
+ 'input',
1094
+ {
1095
+ 'js-error': error,
1096
+ 'input-disabled': disabled,
1097
+ 'input-optional': optional,
1098
+ 'input-dense': dense
1099
+ },
1100
+ className
1101
+ ]), children: [jsx(InputLabel, { htmlFor: id, label: label, hint: hint, hideLabel: hideLabel }), jsx("textarea", { ref: inputRef, className: 'input_control', name: id, id: id, placeholder: placeholder, disabled: disabled, required: !(disabled || optional), rows: 4, onChange: onChange, ...(hint || error
1102
+ ? {
1103
+ 'aria-describedby': [hint ? `${id}-hint` : null, error ? `${id}-error` : null]
1104
+ .filter(Boolean)
1105
+ .join(' '),
1106
+ }
1107
+ : null), ...props })] }));
3117
1108
  };
3118
1109
 
3119
1110
  export { Alert, Breadcrumbs, Button, Buttons, Card, CardActions, CardContent, CardHeader, CardMedia, Checkbox, Checkboxes, Color, Display, Divider, Grid, Input, InputLabel, Link, List, ListItem, Nav, NavBar, NavItem, Radio, RadioButtons, Section, SectionContent, SectionHeader, Select, Snippet, Status, Switch, Tab, Table, TableBody, TableCell, TableFooter, TableHead, TableRow, Tabs, TabsControl, TabsPanel, Tag, Text, Textarea };