@fluxo-dev/shell-hub 25.3.2 → 25.3.4

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 (2) hide show
  1. package/index.esm.js +70 -1276
  2. package/package.json +4 -4
package/index.esm.js CHANGED
@@ -4,1319 +4,113 @@ import { forwardRef, createElement } from 'react';
4
4
 
5
5
  var styles = {"root":"shell-hub-module_root__wmQYr","container":"shell-hub-module_container__nu0-N"};
6
6
 
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
-
26
- var hasRequiredReactIs_production_min;
27
-
28
- function requireReactIs_production_min () {
29
- if (hasRequiredReactIs_production_min) return reactIs_production_min;
30
- hasRequiredReactIs_production_min = 1;
31
- var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
32
- Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
33
- function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m;reactIs_production_min.ContextConsumer=k;reactIs_production_min.ContextProvider=h;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n;reactIs_production_min.Fragment=e;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r;reactIs_production_min.Portal=d;
34
- reactIs_production_min.Profiler=g;reactIs_production_min.StrictMode=f;reactIs_production_min.Suspense=p;reactIs_production_min.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min.isConcurrentMode=A;reactIs_production_min.isContextConsumer=function(a){return z(a)===k};reactIs_production_min.isContextProvider=function(a){return z(a)===h};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min.isForwardRef=function(a){return z(a)===n};reactIs_production_min.isFragment=function(a){return z(a)===e};reactIs_production_min.isLazy=function(a){return z(a)===t};
35
- reactIs_production_min.isMemo=function(a){return z(a)===r};reactIs_production_min.isPortal=function(a){return z(a)===d};reactIs_production_min.isProfiler=function(a){return z(a)===g};reactIs_production_min.isStrictMode=function(a){return z(a)===f};reactIs_production_min.isSuspense=function(a){return z(a)===p};
36
- reactIs_production_min.isValidElementType=function(a){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)};reactIs_production_min.typeOf=z;
37
- return reactIs_production_min;
38
- }
39
-
40
- var reactIs_development = {};
41
-
42
- /** @license React v16.13.1
43
- * react-is.development.js
44
- *
45
- * Copyright (c) Facebook, Inc. and its affiliates.
46
- *
47
- * This source code is licensed under the MIT license found in the
48
- * LICENSE file in the root directory of this source tree.
49
- */
50
-
51
- var hasRequiredReactIs_development;
52
-
53
- function requireReactIs_development () {
54
- if (hasRequiredReactIs_development) return reactIs_development;
55
- hasRequiredReactIs_development = 1;
56
-
57
-
58
-
59
- if (process.env.NODE_ENV !== "production") {
60
- (function() {
61
-
62
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
63
- // nor polyfill, then a plain number is used for performance.
64
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
65
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
66
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
67
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
68
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
69
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
70
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
71
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
72
- // (unstable) APIs that have been removed. Can we remove the symbols?
73
-
74
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
75
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
76
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
77
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
78
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
79
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
80
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
81
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
82
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
83
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
84
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
85
-
86
- function isValidElementType(type) {
87
- return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
88
- 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);
89
- }
90
-
91
- function typeOf(object) {
92
- if (typeof object === 'object' && object !== null) {
93
- var $$typeof = object.$$typeof;
94
-
95
- switch ($$typeof) {
96
- case REACT_ELEMENT_TYPE:
97
- var type = object.type;
98
-
99
- switch (type) {
100
- case REACT_ASYNC_MODE_TYPE:
101
- case REACT_CONCURRENT_MODE_TYPE:
102
- case REACT_FRAGMENT_TYPE:
103
- case REACT_PROFILER_TYPE:
104
- case REACT_STRICT_MODE_TYPE:
105
- case REACT_SUSPENSE_TYPE:
106
- return type;
107
-
108
- default:
109
- var $$typeofType = type && type.$$typeof;
110
-
111
- switch ($$typeofType) {
112
- case REACT_CONTEXT_TYPE:
113
- case REACT_FORWARD_REF_TYPE:
114
- case REACT_LAZY_TYPE:
115
- case REACT_MEMO_TYPE:
116
- case REACT_PROVIDER_TYPE:
117
- return $$typeofType;
118
-
119
- default:
120
- return $$typeof;
121
- }
122
-
123
- }
124
-
125
- case REACT_PORTAL_TYPE:
126
- return $$typeof;
127
- }
128
- }
129
-
130
- return undefined;
131
- } // AsyncMode is deprecated along with isAsyncMode
132
-
133
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
134
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
135
- var ContextConsumer = REACT_CONTEXT_TYPE;
136
- var ContextProvider = REACT_PROVIDER_TYPE;
137
- var Element = REACT_ELEMENT_TYPE;
138
- var ForwardRef = REACT_FORWARD_REF_TYPE;
139
- var Fragment = REACT_FRAGMENT_TYPE;
140
- var Lazy = REACT_LAZY_TYPE;
141
- var Memo = REACT_MEMO_TYPE;
142
- var Portal = REACT_PORTAL_TYPE;
143
- var Profiler = REACT_PROFILER_TYPE;
144
- var StrictMode = REACT_STRICT_MODE_TYPE;
145
- var Suspense = REACT_SUSPENSE_TYPE;
146
- var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
147
-
148
- function isAsyncMode(object) {
149
- {
150
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
151
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
152
-
153
- 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.');
154
- }
155
- }
156
-
157
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
158
- }
159
- function isConcurrentMode(object) {
160
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
161
- }
162
- function isContextConsumer(object) {
163
- return typeOf(object) === REACT_CONTEXT_TYPE;
164
- }
165
- function isContextProvider(object) {
166
- return typeOf(object) === REACT_PROVIDER_TYPE;
167
- }
168
- function isElement(object) {
169
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
170
- }
171
- function isForwardRef(object) {
172
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
173
- }
174
- function isFragment(object) {
175
- return typeOf(object) === REACT_FRAGMENT_TYPE;
176
- }
177
- function isLazy(object) {
178
- return typeOf(object) === REACT_LAZY_TYPE;
179
- }
180
- function isMemo(object) {
181
- return typeOf(object) === REACT_MEMO_TYPE;
182
- }
183
- function isPortal(object) {
184
- return typeOf(object) === REACT_PORTAL_TYPE;
185
- }
186
- function isProfiler(object) {
187
- return typeOf(object) === REACT_PROFILER_TYPE;
188
- }
189
- function isStrictMode(object) {
190
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
191
- }
192
- function isSuspense(object) {
193
- return typeOf(object) === REACT_SUSPENSE_TYPE;
194
- }
195
-
196
- reactIs_development.AsyncMode = AsyncMode;
197
- reactIs_development.ConcurrentMode = ConcurrentMode;
198
- reactIs_development.ContextConsumer = ContextConsumer;
199
- reactIs_development.ContextProvider = ContextProvider;
200
- reactIs_development.Element = Element;
201
- reactIs_development.ForwardRef = ForwardRef;
202
- reactIs_development.Fragment = Fragment;
203
- reactIs_development.Lazy = Lazy;
204
- reactIs_development.Memo = Memo;
205
- reactIs_development.Portal = Portal;
206
- reactIs_development.Profiler = Profiler;
207
- reactIs_development.StrictMode = StrictMode;
208
- reactIs_development.Suspense = Suspense;
209
- reactIs_development.isAsyncMode = isAsyncMode;
210
- reactIs_development.isConcurrentMode = isConcurrentMode;
211
- reactIs_development.isContextConsumer = isContextConsumer;
212
- reactIs_development.isContextProvider = isContextProvider;
213
- reactIs_development.isElement = isElement;
214
- reactIs_development.isForwardRef = isForwardRef;
215
- reactIs_development.isFragment = isFragment;
216
- reactIs_development.isLazy = isLazy;
217
- reactIs_development.isMemo = isMemo;
218
- reactIs_development.isPortal = isPortal;
219
- reactIs_development.isProfiler = isProfiler;
220
- reactIs_development.isStrictMode = isStrictMode;
221
- reactIs_development.isSuspense = isSuspense;
222
- reactIs_development.isValidElementType = isValidElementType;
223
- reactIs_development.typeOf = typeOf;
224
- })();
225
- }
226
- return reactIs_development;
227
- }
228
-
229
- var hasRequiredReactIs;
230
-
231
- function requireReactIs () {
232
- if (hasRequiredReactIs) return reactIs.exports;
233
- hasRequiredReactIs = 1;
234
-
235
- if (process.env.NODE_ENV === 'production') {
236
- reactIs.exports = requireReactIs_production_min();
237
- } else {
238
- reactIs.exports = requireReactIs_development();
239
- }
240
- return reactIs.exports;
241
- }
242
-
243
- /*
244
- object-assign
245
- (c) Sindre Sorhus
246
- @license MIT
247
- */
248
-
249
- var objectAssign;
250
- var hasRequiredObjectAssign;
251
-
252
- function requireObjectAssign () {
253
- if (hasRequiredObjectAssign) return objectAssign;
254
- hasRequiredObjectAssign = 1;
255
- /* eslint-disable no-unused-vars */
256
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
257
- var hasOwnProperty = Object.prototype.hasOwnProperty;
258
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
259
-
260
- function toObject(val) {
261
- if (val === null || val === undefined) {
262
- throw new TypeError('Object.assign cannot be called with null or undefined');
263
- }
264
-
265
- return Object(val);
266
- }
267
-
268
- function shouldUseNative() {
269
- try {
270
- if (!Object.assign) {
271
- return false;
272
- }
273
-
274
- // Detect buggy property enumeration order in older V8 versions.
275
-
276
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
277
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
278
- test1[5] = 'de';
279
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
280
- return false;
281
- }
282
-
283
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
284
- var test2 = {};
285
- for (var i = 0; i < 10; i++) {
286
- test2['_' + String.fromCharCode(i)] = i;
287
- }
288
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
289
- return test2[n];
290
- });
291
- if (order2.join('') !== '0123456789') {
292
- return false;
293
- }
294
-
295
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
296
- var test3 = {};
297
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
298
- test3[letter] = letter;
299
- });
300
- if (Object.keys(Object.assign({}, test3)).join('') !==
301
- 'abcdefghijklmnopqrst') {
302
- return false;
303
- }
304
-
305
- return true;
306
- } catch (err) {
307
- // We don't expect any of the above to throw, but better to be safe.
308
- return false;
309
- }
310
- }
311
-
312
- objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
313
- var from;
314
- var to = toObject(target);
315
- var symbols;
316
-
317
- for (var s = 1; s < arguments.length; s++) {
318
- from = Object(arguments[s]);
319
-
320
- for (var key in from) {
321
- if (hasOwnProperty.call(from, key)) {
322
- to[key] = from[key];
323
- }
324
- }
325
-
326
- if (getOwnPropertySymbols) {
327
- symbols = getOwnPropertySymbols(from);
328
- for (var i = 0; i < symbols.length; i++) {
329
- if (propIsEnumerable.call(from, symbols[i])) {
330
- to[symbols[i]] = from[symbols[i]];
331
- }
332
- }
333
- }
334
- }
335
-
336
- return to;
337
- };
338
- return objectAssign;
339
- }
340
-
341
7
  /**
342
- * Copyright (c) 2013-present, Facebook, Inc.
8
+ * @license @tabler/icons-react v3.36.0 - MIT
343
9
  *
344
- * This source code is licensed under the MIT license found in the
345
- * LICENSE file in the root directory of this source tree.
346
- */
347
-
348
- var ReactPropTypesSecret_1;
349
- var hasRequiredReactPropTypesSecret;
350
-
351
- function requireReactPropTypesSecret () {
352
- if (hasRequiredReactPropTypesSecret) return ReactPropTypesSecret_1;
353
- hasRequiredReactPropTypesSecret = 1;
354
-
355
- var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
356
-
357
- ReactPropTypesSecret_1 = ReactPropTypesSecret;
358
- return ReactPropTypesSecret_1;
359
- }
360
-
361
- var has;
362
- var hasRequiredHas;
363
-
364
- function requireHas () {
365
- if (hasRequiredHas) return has;
366
- hasRequiredHas = 1;
367
- has = Function.call.bind(Object.prototype.hasOwnProperty);
368
- return has;
369
- }
370
-
371
- /**
372
- * Copyright (c) 2013-present, Facebook, Inc.
373
- *
374
- * This source code is licensed under the MIT license found in the
375
- * LICENSE file in the root directory of this source tree.
376
- */
377
-
378
- var checkPropTypes_1;
379
- var hasRequiredCheckPropTypes;
380
-
381
- function requireCheckPropTypes () {
382
- if (hasRequiredCheckPropTypes) return checkPropTypes_1;
383
- hasRequiredCheckPropTypes = 1;
384
-
385
- var printWarning = function() {};
386
-
387
- if (process.env.NODE_ENV !== 'production') {
388
- var ReactPropTypesSecret = requireReactPropTypesSecret();
389
- var loggedTypeFailures = {};
390
- var has = requireHas();
391
-
392
- printWarning = function(text) {
393
- var message = 'Warning: ' + text;
394
- if (typeof console !== 'undefined') {
395
- console.error(message);
396
- }
397
- try {
398
- // --- Welcome to debugging React ---
399
- // This error was thrown as a convenience so that you can use this stack
400
- // to find the callsite that caused this warning to fire.
401
- throw new Error(message);
402
- } catch (x) { /**/ }
403
- };
404
- }
405
-
406
- /**
407
- * Assert that the values match with the type specs.
408
- * Error messages are memorized and will only be shown once.
409
- *
410
- * @param {object} typeSpecs Map of name to a ReactPropType
411
- * @param {object} values Runtime values that need to be type-checked
412
- * @param {string} location e.g. "prop", "context", "child context"
413
- * @param {string} componentName Name of the component for error messages.
414
- * @param {?Function} getStack Returns the component stack.
415
- * @private
416
- */
417
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
418
- if (process.env.NODE_ENV !== 'production') {
419
- for (var typeSpecName in typeSpecs) {
420
- if (has(typeSpecs, typeSpecName)) {
421
- var error;
422
- // Prop type validation may throw. In case they do, we don't want to
423
- // fail the render phase where it didn't fail before. So we log it.
424
- // After these have been cleaned up, we'll let them throw.
425
- try {
426
- // This is intentionally an invariant that gets caught. It's the same
427
- // behavior as without this statement except with a better message.
428
- if (typeof typeSpecs[typeSpecName] !== 'function') {
429
- var err = Error(
430
- (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
431
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
432
- 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
433
- );
434
- err.name = 'Invariant Violation';
435
- throw err;
436
- }
437
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
438
- } catch (ex) {
439
- error = ex;
440
- }
441
- if (error && !(error instanceof Error)) {
442
- printWarning(
443
- (componentName || 'React class') + ': type specification of ' +
444
- location + ' `' + typeSpecName + '` is invalid; the type checker ' +
445
- 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
446
- 'You may have forgotten to pass an argument to the type checker ' +
447
- 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
448
- 'shape all require an argument).'
449
- );
450
- }
451
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
452
- // Only monitor this failure once because there tends to be a lot of the
453
- // same error.
454
- loggedTypeFailures[error.message] = true;
455
-
456
- var stack = getStack ? getStack() : '';
457
-
458
- printWarning(
459
- 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
460
- );
461
- }
462
- }
463
- }
464
- }
465
- }
466
-
467
- /**
468
- * Resets warning cache when testing.
469
- *
470
- * @private
471
- */
472
- checkPropTypes.resetWarningCache = function() {
473
- if (process.env.NODE_ENV !== 'production') {
474
- loggedTypeFailures = {};
475
- }
476
- };
477
-
478
- checkPropTypes_1 = checkPropTypes;
479
- return checkPropTypes_1;
480
- }
481
-
482
- /**
483
- * Copyright (c) 2013-present, Facebook, Inc.
484
- *
485
- * This source code is licensed under the MIT license found in the
486
- * LICENSE file in the root directory of this source tree.
487
- */
488
-
489
- var factoryWithTypeCheckers;
490
- var hasRequiredFactoryWithTypeCheckers;
491
-
492
- function requireFactoryWithTypeCheckers () {
493
- if (hasRequiredFactoryWithTypeCheckers) return factoryWithTypeCheckers;
494
- hasRequiredFactoryWithTypeCheckers = 1;
495
-
496
- var ReactIs = requireReactIs();
497
- var assign = requireObjectAssign();
498
-
499
- var ReactPropTypesSecret = requireReactPropTypesSecret();
500
- var has = requireHas();
501
- var checkPropTypes = requireCheckPropTypes();
502
-
503
- var printWarning = function() {};
504
-
505
- if (process.env.NODE_ENV !== 'production') {
506
- printWarning = function(text) {
507
- var message = 'Warning: ' + text;
508
- if (typeof console !== 'undefined') {
509
- console.error(message);
510
- }
511
- try {
512
- // --- Welcome to debugging React ---
513
- // This error was thrown as a convenience so that you can use this stack
514
- // to find the callsite that caused this warning to fire.
515
- throw new Error(message);
516
- } catch (x) {}
517
- };
518
- }
519
-
520
- function emptyFunctionThatReturnsNull() {
521
- return null;
522
- }
523
-
524
- factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
525
- /* global Symbol */
526
- var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
527
- var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
528
-
529
- /**
530
- * Returns the iterator method function contained on the iterable object.
531
- *
532
- * Be sure to invoke the function with the iterable as context:
533
- *
534
- * var iteratorFn = getIteratorFn(myIterable);
535
- * if (iteratorFn) {
536
- * var iterator = iteratorFn.call(myIterable);
537
- * ...
538
- * }
539
- *
540
- * @param {?object} maybeIterable
541
- * @return {?function}
542
- */
543
- function getIteratorFn(maybeIterable) {
544
- var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
545
- if (typeof iteratorFn === 'function') {
546
- return iteratorFn;
547
- }
548
- }
549
-
550
- /**
551
- * Collection of methods that allow declaration and validation of props that are
552
- * supplied to React components. Example usage:
553
- *
554
- * var Props = require('ReactPropTypes');
555
- * var MyArticle = React.createClass({
556
- * propTypes: {
557
- * // An optional string prop named "description".
558
- * description: Props.string,
559
- *
560
- * // A required enum prop named "category".
561
- * category: Props.oneOf(['News','Photos']).isRequired,
562
- *
563
- * // A prop named "dialog" that requires an instance of Dialog.
564
- * dialog: Props.instanceOf(Dialog).isRequired
565
- * },
566
- * render: function() { ... }
567
- * });
568
- *
569
- * A more formal specification of how these methods are used:
570
- *
571
- * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
572
- * decl := ReactPropTypes.{type}(.isRequired)?
573
- *
574
- * Each and every declaration produces a function with the same signature. This
575
- * allows the creation of custom validation functions. For example:
576
- *
577
- * var MyLink = React.createClass({
578
- * propTypes: {
579
- * // An optional string or URI prop named "href".
580
- * href: function(props, propName, componentName) {
581
- * var propValue = props[propName];
582
- * if (propValue != null && typeof propValue !== 'string' &&
583
- * !(propValue instanceof URI)) {
584
- * return new Error(
585
- * 'Expected a string or an URI for ' + propName + ' in ' +
586
- * componentName
587
- * );
588
- * }
589
- * }
590
- * },
591
- * render: function() {...}
592
- * });
593
- *
594
- * @internal
595
- */
596
-
597
- var ANONYMOUS = '<<anonymous>>';
598
-
599
- // Important!
600
- // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
601
- var ReactPropTypes = {
602
- array: createPrimitiveTypeChecker('array'),
603
- bigint: createPrimitiveTypeChecker('bigint'),
604
- bool: createPrimitiveTypeChecker('boolean'),
605
- func: createPrimitiveTypeChecker('function'),
606
- number: createPrimitiveTypeChecker('number'),
607
- object: createPrimitiveTypeChecker('object'),
608
- string: createPrimitiveTypeChecker('string'),
609
- symbol: createPrimitiveTypeChecker('symbol'),
610
-
611
- any: createAnyTypeChecker(),
612
- arrayOf: createArrayOfTypeChecker,
613
- element: createElementTypeChecker(),
614
- elementType: createElementTypeTypeChecker(),
615
- instanceOf: createInstanceTypeChecker,
616
- node: createNodeChecker(),
617
- objectOf: createObjectOfTypeChecker,
618
- oneOf: createEnumTypeChecker,
619
- oneOfType: createUnionTypeChecker,
620
- shape: createShapeTypeChecker,
621
- exact: createStrictShapeTypeChecker,
622
- };
623
-
624
- /**
625
- * inlined Object.is polyfill to avoid requiring consumers ship their own
626
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
627
- */
628
- /*eslint-disable no-self-compare*/
629
- function is(x, y) {
630
- // SameValue algorithm
631
- if (x === y) {
632
- // Steps 1-5, 7-10
633
- // Steps 6.b-6.e: +0 != -0
634
- return x !== 0 || 1 / x === 1 / y;
635
- } else {
636
- // Step 6.a: NaN == NaN
637
- return x !== x && y !== y;
638
- }
639
- }
640
- /*eslint-enable no-self-compare*/
641
-
642
- /**
643
- * We use an Error-like object for backward compatibility as people may call
644
- * PropTypes directly and inspect their output. However, we don't use real
645
- * Errors anymore. We don't inspect their stack anyway, and creating them
646
- * is prohibitively expensive if they are created too often, such as what
647
- * happens in oneOfType() for any type before the one that matched.
648
- */
649
- function PropTypeError(message, data) {
650
- this.message = message;
651
- this.data = data && typeof data === 'object' ? data: {};
652
- this.stack = '';
653
- }
654
- // Make `instanceof Error` still work for returned errors.
655
- PropTypeError.prototype = Error.prototype;
656
-
657
- function createChainableTypeChecker(validate) {
658
- if (process.env.NODE_ENV !== 'production') {
659
- var manualPropTypeCallCache = {};
660
- var manualPropTypeWarningCount = 0;
661
- }
662
- function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
663
- componentName = componentName || ANONYMOUS;
664
- propFullName = propFullName || propName;
665
-
666
- if (secret !== ReactPropTypesSecret) {
667
- if (throwOnDirectAccess) {
668
- // New behavior only for users of `prop-types` package
669
- var err = new Error(
670
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
671
- 'Use `PropTypes.checkPropTypes()` to call them. ' +
672
- 'Read more at http://fb.me/use-check-prop-types'
673
- );
674
- err.name = 'Invariant Violation';
675
- throw err;
676
- } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
677
- // Old behavior for people using React.PropTypes
678
- var cacheKey = componentName + ':' + propName;
679
- if (
680
- !manualPropTypeCallCache[cacheKey] &&
681
- // Avoid spamming the console because they are often not actionable except for lib authors
682
- manualPropTypeWarningCount < 3
683
- ) {
684
- printWarning(
685
- 'You are manually calling a React.PropTypes validation ' +
686
- 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
687
- 'and will throw in the standalone `prop-types` package. ' +
688
- 'You may be seeing this warning due to a third-party PropTypes ' +
689
- 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
690
- );
691
- manualPropTypeCallCache[cacheKey] = true;
692
- manualPropTypeWarningCount++;
693
- }
694
- }
695
- }
696
- if (props[propName] == null) {
697
- if (isRequired) {
698
- if (props[propName] === null) {
699
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
700
- }
701
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
702
- }
703
- return null;
704
- } else {
705
- return validate(props, propName, componentName, location, propFullName);
706
- }
707
- }
708
-
709
- var chainedCheckType = checkType.bind(null, false);
710
- chainedCheckType.isRequired = checkType.bind(null, true);
711
-
712
- return chainedCheckType;
713
- }
714
-
715
- function createPrimitiveTypeChecker(expectedType) {
716
- function validate(props, propName, componentName, location, propFullName, secret) {
717
- var propValue = props[propName];
718
- var propType = getPropType(propValue);
719
- if (propType !== expectedType) {
720
- // `propValue` being instance of, say, date/regexp, pass the 'object'
721
- // check, but we can offer a more precise error message here rather than
722
- // 'of type `object`'.
723
- var preciseType = getPreciseType(propValue);
724
-
725
- return new PropTypeError(
726
- 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
727
- {expectedType: expectedType}
728
- );
729
- }
730
- return null;
731
- }
732
- return createChainableTypeChecker(validate);
733
- }
734
-
735
- function createAnyTypeChecker() {
736
- return createChainableTypeChecker(emptyFunctionThatReturnsNull);
737
- }
738
-
739
- function createArrayOfTypeChecker(typeChecker) {
740
- function validate(props, propName, componentName, location, propFullName) {
741
- if (typeof typeChecker !== 'function') {
742
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
743
- }
744
- var propValue = props[propName];
745
- if (!Array.isArray(propValue)) {
746
- var propType = getPropType(propValue);
747
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
748
- }
749
- for (var i = 0; i < propValue.length; i++) {
750
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
751
- if (error instanceof Error) {
752
- return error;
753
- }
754
- }
755
- return null;
756
- }
757
- return createChainableTypeChecker(validate);
758
- }
759
-
760
- function createElementTypeChecker() {
761
- function validate(props, propName, componentName, location, propFullName) {
762
- var propValue = props[propName];
763
- if (!isValidElement(propValue)) {
764
- var propType = getPropType(propValue);
765
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
766
- }
767
- return null;
768
- }
769
- return createChainableTypeChecker(validate);
770
- }
771
-
772
- function createElementTypeTypeChecker() {
773
- function validate(props, propName, componentName, location, propFullName) {
774
- var propValue = props[propName];
775
- if (!ReactIs.isValidElementType(propValue)) {
776
- var propType = getPropType(propValue);
777
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
778
- }
779
- return null;
780
- }
781
- return createChainableTypeChecker(validate);
782
- }
783
-
784
- function createInstanceTypeChecker(expectedClass) {
785
- function validate(props, propName, componentName, location, propFullName) {
786
- if (!(props[propName] instanceof expectedClass)) {
787
- var expectedClassName = expectedClass.name || ANONYMOUS;
788
- var actualClassName = getClassName(props[propName]);
789
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
790
- }
791
- return null;
792
- }
793
- return createChainableTypeChecker(validate);
794
- }
795
-
796
- function createEnumTypeChecker(expectedValues) {
797
- if (!Array.isArray(expectedValues)) {
798
- if (process.env.NODE_ENV !== 'production') {
799
- if (arguments.length > 1) {
800
- printWarning(
801
- 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
802
- 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
803
- );
804
- } else {
805
- printWarning('Invalid argument supplied to oneOf, expected an array.');
806
- }
807
- }
808
- return emptyFunctionThatReturnsNull;
809
- }
810
-
811
- function validate(props, propName, componentName, location, propFullName) {
812
- var propValue = props[propName];
813
- for (var i = 0; i < expectedValues.length; i++) {
814
- if (is(propValue, expectedValues[i])) {
815
- return null;
816
- }
817
- }
818
-
819
- var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
820
- var type = getPreciseType(value);
821
- if (type === 'symbol') {
822
- return String(value);
823
- }
824
- return value;
825
- });
826
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
827
- }
828
- return createChainableTypeChecker(validate);
829
- }
830
-
831
- function createObjectOfTypeChecker(typeChecker) {
832
- function validate(props, propName, componentName, location, propFullName) {
833
- if (typeof typeChecker !== 'function') {
834
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
835
- }
836
- var propValue = props[propName];
837
- var propType = getPropType(propValue);
838
- if (propType !== 'object') {
839
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
840
- }
841
- for (var key in propValue) {
842
- if (has(propValue, key)) {
843
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
844
- if (error instanceof Error) {
845
- return error;
846
- }
847
- }
848
- }
849
- return null;
850
- }
851
- return createChainableTypeChecker(validate);
852
- }
853
-
854
- function createUnionTypeChecker(arrayOfTypeCheckers) {
855
- if (!Array.isArray(arrayOfTypeCheckers)) {
856
- process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
857
- return emptyFunctionThatReturnsNull;
858
- }
859
-
860
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
861
- var checker = arrayOfTypeCheckers[i];
862
- if (typeof checker !== 'function') {
863
- printWarning(
864
- 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
865
- 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
866
- );
867
- return emptyFunctionThatReturnsNull;
868
- }
869
- }
870
-
871
- function validate(props, propName, componentName, location, propFullName) {
872
- var expectedTypes = [];
873
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
874
- var checker = arrayOfTypeCheckers[i];
875
- var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
876
- if (checkerResult == null) {
877
- return null;
878
- }
879
- if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
880
- expectedTypes.push(checkerResult.data.expectedType);
881
- }
882
- }
883
- var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
884
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
885
- }
886
- return createChainableTypeChecker(validate);
887
- }
888
-
889
- function createNodeChecker() {
890
- function validate(props, propName, componentName, location, propFullName) {
891
- if (!isNode(props[propName])) {
892
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
893
- }
894
- return null;
895
- }
896
- return createChainableTypeChecker(validate);
897
- }
898
-
899
- function invalidValidatorError(componentName, location, propFullName, key, type) {
900
- return new PropTypeError(
901
- (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
902
- 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
903
- );
904
- }
905
-
906
- function createShapeTypeChecker(shapeTypes) {
907
- function validate(props, propName, componentName, location, propFullName) {
908
- var propValue = props[propName];
909
- var propType = getPropType(propValue);
910
- if (propType !== 'object') {
911
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
912
- }
913
- for (var key in shapeTypes) {
914
- var checker = shapeTypes[key];
915
- if (typeof checker !== 'function') {
916
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
917
- }
918
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
919
- if (error) {
920
- return error;
921
- }
922
- }
923
- return null;
924
- }
925
- return createChainableTypeChecker(validate);
926
- }
927
-
928
- function createStrictShapeTypeChecker(shapeTypes) {
929
- function validate(props, propName, componentName, location, propFullName) {
930
- var propValue = props[propName];
931
- var propType = getPropType(propValue);
932
- if (propType !== 'object') {
933
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
934
- }
935
- // We need to check all keys in case some are required but missing from props.
936
- var allKeys = assign({}, props[propName], shapeTypes);
937
- for (var key in allKeys) {
938
- var checker = shapeTypes[key];
939
- if (has(shapeTypes, key) && typeof checker !== 'function') {
940
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
941
- }
942
- if (!checker) {
943
- return new PropTypeError(
944
- 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
945
- '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
946
- '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
947
- );
948
- }
949
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
950
- if (error) {
951
- return error;
952
- }
953
- }
954
- return null;
955
- }
956
-
957
- return createChainableTypeChecker(validate);
958
- }
959
-
960
- function isNode(propValue) {
961
- switch (typeof propValue) {
962
- case 'number':
963
- case 'string':
964
- case 'undefined':
965
- return true;
966
- case 'boolean':
967
- return !propValue;
968
- case 'object':
969
- if (Array.isArray(propValue)) {
970
- return propValue.every(isNode);
971
- }
972
- if (propValue === null || isValidElement(propValue)) {
973
- return true;
974
- }
975
-
976
- var iteratorFn = getIteratorFn(propValue);
977
- if (iteratorFn) {
978
- var iterator = iteratorFn.call(propValue);
979
- var step;
980
- if (iteratorFn !== propValue.entries) {
981
- while (!(step = iterator.next()).done) {
982
- if (!isNode(step.value)) {
983
- return false;
984
- }
985
- }
986
- } else {
987
- // Iterator will provide entry [k,v] tuples rather than values.
988
- while (!(step = iterator.next()).done) {
989
- var entry = step.value;
990
- if (entry) {
991
- if (!isNode(entry[1])) {
992
- return false;
993
- }
994
- }
995
- }
996
- }
997
- } else {
998
- return false;
999
- }
1000
-
1001
- return true;
1002
- default:
1003
- return false;
1004
- }
1005
- }
1006
-
1007
- function isSymbol(propType, propValue) {
1008
- // Native Symbol.
1009
- if (propType === 'symbol') {
1010
- return true;
1011
- }
1012
-
1013
- // falsy value can't be a Symbol
1014
- if (!propValue) {
1015
- return false;
1016
- }
1017
-
1018
- // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
1019
- if (propValue['@@toStringTag'] === 'Symbol') {
1020
- return true;
1021
- }
1022
-
1023
- // Fallback for non-spec compliant Symbols which are polyfilled.
1024
- if (typeof Symbol === 'function' && propValue instanceof Symbol) {
1025
- return true;
1026
- }
1027
-
1028
- return false;
1029
- }
1030
-
1031
- // Equivalent of `typeof` but with special handling for array and regexp.
1032
- function getPropType(propValue) {
1033
- var propType = typeof propValue;
1034
- if (Array.isArray(propValue)) {
1035
- return 'array';
1036
- }
1037
- if (propValue instanceof RegExp) {
1038
- // Old webkits (at least until Android 4.0) return 'function' rather than
1039
- // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
1040
- // passes PropTypes.object.
1041
- return 'object';
1042
- }
1043
- if (isSymbol(propType, propValue)) {
1044
- return 'symbol';
1045
- }
1046
- return propType;
1047
- }
1048
-
1049
- // This handles more types than `getPropType`. Only used for error messages.
1050
- // See `createPrimitiveTypeChecker`.
1051
- function getPreciseType(propValue) {
1052
- if (typeof propValue === 'undefined' || propValue === null) {
1053
- return '' + propValue;
1054
- }
1055
- var propType = getPropType(propValue);
1056
- if (propType === 'object') {
1057
- if (propValue instanceof Date) {
1058
- return 'date';
1059
- } else if (propValue instanceof RegExp) {
1060
- return 'regexp';
1061
- }
1062
- }
1063
- return propType;
1064
- }
1065
-
1066
- // Returns a string that is postfixed to a warning about an invalid type.
1067
- // For example, "undefined" or "of type array"
1068
- function getPostfixForTypeWarning(value) {
1069
- var type = getPreciseType(value);
1070
- switch (type) {
1071
- case 'array':
1072
- case 'object':
1073
- return 'an ' + type;
1074
- case 'boolean':
1075
- case 'date':
1076
- case 'regexp':
1077
- return 'a ' + type;
1078
- default:
1079
- return type;
1080
- }
1081
- }
1082
-
1083
- // Returns class name of the object, if any.
1084
- function getClassName(propValue) {
1085
- if (!propValue.constructor || !propValue.constructor.name) {
1086
- return ANONYMOUS;
1087
- }
1088
- return propValue.constructor.name;
1089
- }
1090
-
1091
- ReactPropTypes.checkPropTypes = checkPropTypes;
1092
- ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
1093
- ReactPropTypes.PropTypes = ReactPropTypes;
1094
-
1095
- return ReactPropTypes;
1096
- };
1097
- return factoryWithTypeCheckers;
1098
- }
1099
-
1100
- /**
1101
- * Copyright (c) 2013-present, Facebook, Inc.
1102
- *
1103
- * This source code is licensed under the MIT license found in the
1104
- * LICENSE file in the root directory of this source tree.
1105
- */
1106
-
1107
- var factoryWithThrowingShims;
1108
- var hasRequiredFactoryWithThrowingShims;
1109
-
1110
- function requireFactoryWithThrowingShims () {
1111
- if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims;
1112
- hasRequiredFactoryWithThrowingShims = 1;
1113
-
1114
- var ReactPropTypesSecret = requireReactPropTypesSecret();
1115
-
1116
- function emptyFunction() {}
1117
- function emptyFunctionWithReset() {}
1118
- emptyFunctionWithReset.resetWarningCache = emptyFunction;
1119
-
1120
- factoryWithThrowingShims = function() {
1121
- function shim(props, propName, componentName, location, propFullName, secret) {
1122
- if (secret === ReactPropTypesSecret) {
1123
- // It is still safe when called from React.
1124
- return;
1125
- }
1126
- var err = new Error(
1127
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
1128
- 'Use PropTypes.checkPropTypes() to call them. ' +
1129
- 'Read more at http://fb.me/use-check-prop-types'
1130
- );
1131
- err.name = 'Invariant Violation';
1132
- throw err;
1133
- } shim.isRequired = shim;
1134
- function getShim() {
1135
- return shim;
1136
- } // Important!
1137
- // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
1138
- var ReactPropTypes = {
1139
- array: shim,
1140
- bigint: shim,
1141
- bool: shim,
1142
- func: shim,
1143
- number: shim,
1144
- object: shim,
1145
- string: shim,
1146
- symbol: shim,
1147
-
1148
- any: shim,
1149
- arrayOf: getShim,
1150
- element: shim,
1151
- elementType: shim,
1152
- instanceOf: getShim,
1153
- node: shim,
1154
- objectOf: getShim,
1155
- oneOf: getShim,
1156
- oneOfType: getShim,
1157
- shape: getShim,
1158
- exact: getShim,
1159
-
1160
- checkPropTypes: emptyFunctionWithReset,
1161
- resetWarningCache: emptyFunction
1162
- };
1163
-
1164
- ReactPropTypes.PropTypes = ReactPropTypes;
1165
-
1166
- return ReactPropTypes;
1167
- };
1168
- return factoryWithThrowingShims;
1169
- }
1170
-
1171
- /**
1172
- * Copyright (c) 2013-present, Facebook, Inc.
1173
- *
1174
- * This source code is licensed under the MIT license found in the
1175
- * LICENSE file in the root directory of this source tree.
1176
- */
1177
-
1178
- if (process.env.NODE_ENV !== 'production') {
1179
- var ReactIs = requireReactIs();
1180
-
1181
- // By explicitly using `prop-types` you are opting into new development behavior.
1182
- // http://fb.me/prop-types-in-prod
1183
- var throwOnDirectAccess = true;
1184
- propTypes.exports = requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
1185
- } else {
1186
- // By explicitly using `prop-types` you are opting into new production behavior.
1187
- // http://fb.me/prop-types-in-prod
1188
- propTypes.exports = requireFactoryWithThrowingShims()();
1189
- }
1190
-
1191
- var propTypesExports = propTypes.exports;
1192
- var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
1193
-
1194
- /**
1195
- * @tabler/icons-react v2.47.0 - MIT
10
+ * This source code is licensed under the MIT license.
11
+ * See the LICENSE file in the root directory of this source tree.
1196
12
  */
1197
13
 
1198
14
  var defaultAttributes = {
1199
- xmlns: "http://www.w3.org/2000/svg",
1200
- width: 24,
1201
- height: 24,
1202
- viewBox: "0 0 24 24",
1203
- fill: "none",
1204
- stroke: "currentColor",
1205
- strokeWidth: 2,
1206
- strokeLinecap: "round",
1207
- strokeLinejoin: "round"
15
+ outline: {
16
+ xmlns: "http://www.w3.org/2000/svg",
17
+ width: 24,
18
+ height: 24,
19
+ viewBox: "0 0 24 24",
20
+ fill: "none",
21
+ stroke: "currentColor",
22
+ strokeWidth: 2,
23
+ strokeLinecap: "round",
24
+ strokeLinejoin: "round"
25
+ },
26
+ filled: {
27
+ xmlns: "http://www.w3.org/2000/svg",
28
+ width: 24,
29
+ height: 24,
30
+ viewBox: "0 0 24 24",
31
+ fill: "currentColor",
32
+ stroke: "none"
33
+ }
1208
34
  };
1209
35
 
1210
36
  /**
1211
- * @tabler/icons-react v2.47.0 - MIT
37
+ * @license @tabler/icons-react v3.36.0 - MIT
38
+ *
39
+ * This source code is licensed under the MIT license.
40
+ * See the LICENSE file in the root directory of this source tree.
1212
41
  */
1213
42
 
1214
43
 
1215
- var __defProp = Object.defineProperty;
1216
- var __defProps = Object.defineProperties;
1217
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
1218
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
1219
- var __hasOwnProp = Object.prototype.hasOwnProperty;
1220
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
1221
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1222
- var __spreadValues = (a, b) => {
1223
- for (var prop in b || (b = {}))
1224
- if (__hasOwnProp.call(b, prop))
1225
- __defNormalProp(a, prop, b[prop]);
1226
- if (__getOwnPropSymbols)
1227
- for (var prop of __getOwnPropSymbols(b)) {
1228
- if (__propIsEnum.call(b, prop))
1229
- __defNormalProp(a, prop, b[prop]);
1230
- }
1231
- return a;
1232
- };
1233
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
1234
- var __objRest = (source, exclude) => {
1235
- var target = {};
1236
- for (var prop in source)
1237
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
1238
- target[prop] = source[prop];
1239
- if (source != null && __getOwnPropSymbols)
1240
- for (var prop of __getOwnPropSymbols(source)) {
1241
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
1242
- target[prop] = source[prop];
1243
- }
1244
- return target;
1245
- };
1246
- var createReactComponent = (iconName, iconNamePascal, iconNode) => {
44
+ const createReactComponent = (type, iconName, iconNamePascal, iconNode) => {
1247
45
  const Component = forwardRef(
1248
- (_a, ref) => {
1249
- var _b = _a, { color = "currentColor", size = 24, stroke = 2, children } = _b, rest = __objRest(_b, ["color", "size", "stroke", "children"]);
1250
- return createElement(
1251
- "svg",
1252
- __spreadValues(__spreadProps(__spreadValues({
1253
- ref
1254
- }, defaultAttributes), {
1255
- width: size,
1256
- height: size,
1257
- stroke: color,
46
+ ({ color = "currentColor", size = 24, stroke = 2, title, className, children, ...rest }, ref) => createElement(
47
+ "svg",
48
+ {
49
+ ref,
50
+ ...defaultAttributes[type],
51
+ width: size,
52
+ height: size,
53
+ className: [`tabler-icon`, `tabler-icon-${iconName}`, className].join(" "),
54
+ ...{
1258
55
  strokeWidth: stroke,
1259
- className: `tabler-icon tabler-icon-${iconName}`
1260
- }), rest),
1261
- [...iconNode.map(([tag, attrs]) => createElement(tag, attrs)), ...children || []]
1262
- );
1263
- }
56
+ stroke: color
57
+ },
58
+ ...rest
59
+ },
60
+ [
61
+ title && createElement("title", { key: "svg-title" }, title),
62
+ ...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),
63
+ ...Array.isArray(children) ? children : [children]
64
+ ]
65
+ )
1264
66
  );
1265
- Component.propTypes = {
1266
- color: PropTypes.string,
1267
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
1268
- stroke: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
1269
- };
1270
67
  Component.displayName = `${iconNamePascal}`;
1271
68
  return Component;
1272
69
  };
1273
70
 
1274
71
  /**
1275
- * @tabler/icons-react v2.47.0 - MIT
72
+ * @license @tabler/icons-react v3.36.0 - MIT
73
+ *
74
+ * This source code is licensed under the MIT license.
75
+ * See the LICENSE file in the root directory of this source tree.
1276
76
  */
1277
77
 
1278
78
 
1279
- var IconComponents = createReactComponent("components", "IconComponents", [
1280
- ["path", { d: "M3 12l3 3l3 -3l-3 -3z", key: "svg-0" }],
1281
- ["path", { d: "M15 12l3 3l3 -3l-3 -3z", key: "svg-1" }],
1282
- ["path", { d: "M9 6l3 3l3 -3l-3 -3z", key: "svg-2" }],
1283
- ["path", { d: "M9 18l3 3l3 -3l-3 -3z", key: "svg-3" }]
1284
- ]);
79
+ const __iconNode$3 = [["path", { "d": "M3 12l3 3l3 -3l-3 -3z", "key": "svg-0" }], ["path", { "d": "M15 12l3 3l3 -3l-3 -3z", "key": "svg-1" }], ["path", { "d": "M9 6l3 3l3 -3l-3 -3z", "key": "svg-2" }], ["path", { "d": "M9 18l3 3l3 -3l-3 -3z", "key": "svg-3" }]];
80
+ const IconComponents = createReactComponent("outline", "components", "Components", __iconNode$3);
1285
81
 
1286
82
  /**
1287
- * @tabler/icons-react v2.47.0 - MIT
83
+ * @license @tabler/icons-react v3.36.0 - MIT
84
+ *
85
+ * This source code is licensed under the MIT license.
86
+ * See the LICENSE file in the root directory of this source tree.
1288
87
  */
1289
88
 
1290
89
 
1291
- var IconDownload = createReactComponent("download", "IconDownload", [
1292
- ["path", { d: "M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2", key: "svg-0" }],
1293
- ["path", { d: "M7 11l5 5l5 -5", key: "svg-1" }],
1294
- ["path", { d: "M12 4l0 12", key: "svg-2" }]
1295
- ]);
90
+ const __iconNode$2 = [["path", { "d": "M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2", "key": "svg-0" }], ["path", { "d": "M7 11l5 5l5 -5", "key": "svg-1" }], ["path", { "d": "M12 4l0 12", "key": "svg-2" }]];
91
+ const IconDownload = createReactComponent("outline", "download", "Download", __iconNode$2);
1296
92
 
1297
93
  /**
1298
- * @tabler/icons-react v2.47.0 - MIT
94
+ * @license @tabler/icons-react v3.36.0 - MIT
95
+ *
96
+ * This source code is licensed under the MIT license.
97
+ * See the LICENSE file in the root directory of this source tree.
1299
98
  */
1300
99
 
1301
100
 
1302
- var IconList = createReactComponent("list", "IconList", [
1303
- ["path", { d: "M9 6l11 0", key: "svg-0" }],
1304
- ["path", { d: "M9 12l11 0", key: "svg-1" }],
1305
- ["path", { d: "M9 18l11 0", key: "svg-2" }],
1306
- ["path", { d: "M5 6l0 .01", key: "svg-3" }],
1307
- ["path", { d: "M5 12l0 .01", key: "svg-4" }],
1308
- ["path", { d: "M5 18l0 .01", key: "svg-5" }]
1309
- ]);
101
+ const __iconNode$1 = [["path", { "d": "M9 6l11 0", "key": "svg-0" }], ["path", { "d": "M9 12l11 0", "key": "svg-1" }], ["path", { "d": "M9 18l11 0", "key": "svg-2" }], ["path", { "d": "M5 6l0 .01", "key": "svg-3" }], ["path", { "d": "M5 12l0 .01", "key": "svg-4" }], ["path", { "d": "M5 18l0 .01", "key": "svg-5" }]];
102
+ const IconList = createReactComponent("outline", "list", "List", __iconNode$1);
1310
103
 
1311
104
  /**
1312
- * @tabler/icons-react v2.47.0 - MIT
105
+ * @license @tabler/icons-react v3.36.0 - MIT
106
+ *
107
+ * This source code is licensed under the MIT license.
108
+ * See the LICENSE file in the root directory of this source tree.
1313
109
  */
1314
110
 
1315
111
 
1316
- var IconSearch = createReactComponent("search", "IconSearch", [
1317
- ["path", { d: "M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0", key: "svg-0" }],
1318
- ["path", { d: "M21 21l-6 -6", key: "svg-1" }]
1319
- ]);
112
+ const __iconNode = [["path", { "d": "M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0", "key": "svg-0" }], ["path", { "d": "M21 21l-6 -6", "key": "svg-1" }]];
113
+ const IconSearch = createReactComponent("outline", "search", "Search", __iconNode);
1320
114
 
1321
115
  function AppCard() {
1322
116
  return jsx(Box, {