@televet/kibble-ui 0.1.0-beta.13 → 0.1.0-beta.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.js CHANGED
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var react = require('@chakra-ui/react');
6
+ var themeTools = require('@chakra-ui/theme-tools');
6
7
  var React = require('react');
7
8
  var styledComponents = require('styled-components');
8
9
 
@@ -241,2162 +242,7 @@ var blur = {
241
242
  '3xl': '64px',
242
243
  };
243
244
 
244
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
245
-
246
- function createCommonjsModule(fn, module) {
247
- return module = { exports: {} }, fn(module, module.exports), module.exports;
248
- }
249
-
250
- createCommonjsModule(function (module, exports) {
251
- /**
252
- * Lodash (Custom Build) <https://lodash.com/>
253
- * Build: `lodash modularize exports="npm" -o ./`
254
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
255
- * Released under MIT license <https://lodash.com/license>
256
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
257
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
258
- */
259
-
260
- /** Used as the size to enable large array optimizations. */
261
- var LARGE_ARRAY_SIZE = 200;
262
-
263
- /** Used to stand-in for `undefined` hash values. */
264
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
265
-
266
- /** Used to detect hot functions by number of calls within a span of milliseconds. */
267
- var HOT_COUNT = 800,
268
- HOT_SPAN = 16;
269
-
270
- /** Used as references for various `Number` constants. */
271
- var MAX_SAFE_INTEGER = 9007199254740991;
272
-
273
- /** `Object#toString` result references. */
274
- var argsTag = '[object Arguments]',
275
- arrayTag = '[object Array]',
276
- asyncTag = '[object AsyncFunction]',
277
- boolTag = '[object Boolean]',
278
- dateTag = '[object Date]',
279
- errorTag = '[object Error]',
280
- funcTag = '[object Function]',
281
- genTag = '[object GeneratorFunction]',
282
- mapTag = '[object Map]',
283
- numberTag = '[object Number]',
284
- nullTag = '[object Null]',
285
- objectTag = '[object Object]',
286
- proxyTag = '[object Proxy]',
287
- regexpTag = '[object RegExp]',
288
- setTag = '[object Set]',
289
- stringTag = '[object String]',
290
- undefinedTag = '[object Undefined]',
291
- weakMapTag = '[object WeakMap]';
292
-
293
- var arrayBufferTag = '[object ArrayBuffer]',
294
- dataViewTag = '[object DataView]',
295
- float32Tag = '[object Float32Array]',
296
- float64Tag = '[object Float64Array]',
297
- int8Tag = '[object Int8Array]',
298
- int16Tag = '[object Int16Array]',
299
- int32Tag = '[object Int32Array]',
300
- uint8Tag = '[object Uint8Array]',
301
- uint8ClampedTag = '[object Uint8ClampedArray]',
302
- uint16Tag = '[object Uint16Array]',
303
- uint32Tag = '[object Uint32Array]';
304
-
305
- /**
306
- * Used to match `RegExp`
307
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
308
- */
309
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
310
-
311
- /** Used to detect host constructors (Safari). */
312
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
313
-
314
- /** Used to detect unsigned integer values. */
315
- var reIsUint = /^(?:0|[1-9]\d*)$/;
316
-
317
- /** Used to identify `toStringTag` values of typed arrays. */
318
- var typedArrayTags = {};
319
- typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
320
- typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
321
- typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
322
- typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
323
- typedArrayTags[uint32Tag] = true;
324
- typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
325
- typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
326
- typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
327
- typedArrayTags[errorTag] = typedArrayTags[funcTag] =
328
- typedArrayTags[mapTag] = typedArrayTags[numberTag] =
329
- typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
330
- typedArrayTags[setTag] = typedArrayTags[stringTag] =
331
- typedArrayTags[weakMapTag] = false;
332
-
333
- /** Detect free variable `global` from Node.js. */
334
- var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
335
-
336
- /** Detect free variable `self`. */
337
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
338
-
339
- /** Used as a reference to the global object. */
340
- var root = freeGlobal || freeSelf || Function('return this')();
341
-
342
- /** Detect free variable `exports`. */
343
- var freeExports = exports && !exports.nodeType && exports;
344
-
345
- /** Detect free variable `module`. */
346
- var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
347
-
348
- /** Detect the popular CommonJS extension `module.exports`. */
349
- var moduleExports = freeModule && freeModule.exports === freeExports;
350
-
351
- /** Detect free variable `process` from Node.js. */
352
- var freeProcess = moduleExports && freeGlobal.process;
353
-
354
- /** Used to access faster Node.js helpers. */
355
- var nodeUtil = (function() {
356
- try {
357
- // Use `util.types` for Node.js 10+.
358
- var types = freeModule && freeModule.require && freeModule.require('util').types;
359
-
360
- if (types) {
361
- return types;
362
- }
363
-
364
- // Legacy `process.binding('util')` for Node.js < 10.
365
- return freeProcess && freeProcess.binding && freeProcess.binding('util');
366
- } catch (e) {}
367
- }());
368
-
369
- /* Node.js helper references. */
370
- var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
371
-
372
- /**
373
- * A faster alternative to `Function#apply`, this function invokes `func`
374
- * with the `this` binding of `thisArg` and the arguments of `args`.
375
- *
376
- * @private
377
- * @param {Function} func The function to invoke.
378
- * @param {*} thisArg The `this` binding of `func`.
379
- * @param {Array} args The arguments to invoke `func` with.
380
- * @returns {*} Returns the result of `func`.
381
- */
382
- function apply(func, thisArg, args) {
383
- switch (args.length) {
384
- case 0: return func.call(thisArg);
385
- case 1: return func.call(thisArg, args[0]);
386
- case 2: return func.call(thisArg, args[0], args[1]);
387
- case 3: return func.call(thisArg, args[0], args[1], args[2]);
388
- }
389
- return func.apply(thisArg, args);
390
- }
391
-
392
- /**
393
- * The base implementation of `_.times` without support for iteratee shorthands
394
- * or max array length checks.
395
- *
396
- * @private
397
- * @param {number} n The number of times to invoke `iteratee`.
398
- * @param {Function} iteratee The function invoked per iteration.
399
- * @returns {Array} Returns the array of results.
400
- */
401
- function baseTimes(n, iteratee) {
402
- var index = -1,
403
- result = Array(n);
404
-
405
- while (++index < n) {
406
- result[index] = iteratee(index);
407
- }
408
- return result;
409
- }
410
-
411
- /**
412
- * The base implementation of `_.unary` without support for storing metadata.
413
- *
414
- * @private
415
- * @param {Function} func The function to cap arguments for.
416
- * @returns {Function} Returns the new capped function.
417
- */
418
- function baseUnary(func) {
419
- return function(value) {
420
- return func(value);
421
- };
422
- }
423
-
424
- /**
425
- * Gets the value at `key` of `object`.
426
- *
427
- * @private
428
- * @param {Object} [object] The object to query.
429
- * @param {string} key The key of the property to get.
430
- * @returns {*} Returns the property value.
431
- */
432
- function getValue(object, key) {
433
- return object == null ? undefined : object[key];
434
- }
435
-
436
- /**
437
- * Creates a unary function that invokes `func` with its argument transformed.
438
- *
439
- * @private
440
- * @param {Function} func The function to wrap.
441
- * @param {Function} transform The argument transform.
442
- * @returns {Function} Returns the new function.
443
- */
444
- function overArg(func, transform) {
445
- return function(arg) {
446
- return func(transform(arg));
447
- };
448
- }
449
-
450
- /** Used for built-in method references. */
451
- var arrayProto = Array.prototype,
452
- funcProto = Function.prototype,
453
- objectProto = Object.prototype;
454
-
455
- /** Used to detect overreaching core-js shims. */
456
- var coreJsData = root['__core-js_shared__'];
457
-
458
- /** Used to resolve the decompiled source of functions. */
459
- var funcToString = funcProto.toString;
460
-
461
- /** Used to check objects for own properties. */
462
- var hasOwnProperty = objectProto.hasOwnProperty;
463
-
464
- /** Used to detect methods masquerading as native. */
465
- var maskSrcKey = (function() {
466
- var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
467
- return uid ? ('Symbol(src)_1.' + uid) : '';
468
- }());
469
-
470
- /**
471
- * Used to resolve the
472
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
473
- * of values.
474
- */
475
- var nativeObjectToString = objectProto.toString;
476
-
477
- /** Used to infer the `Object` constructor. */
478
- var objectCtorString = funcToString.call(Object);
479
-
480
- /** Used to detect if a method is native. */
481
- var reIsNative = RegExp('^' +
482
- funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
483
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
484
- );
485
-
486
- /** Built-in value references. */
487
- var Buffer = moduleExports ? root.Buffer : undefined,
488
- Symbol = root.Symbol,
489
- Uint8Array = root.Uint8Array,
490
- allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,
491
- getPrototype = overArg(Object.getPrototypeOf, Object),
492
- objectCreate = Object.create,
493
- propertyIsEnumerable = objectProto.propertyIsEnumerable,
494
- splice = arrayProto.splice,
495
- symToStringTag = Symbol ? Symbol.toStringTag : undefined;
496
-
497
- var defineProperty = (function() {
498
- try {
499
- var func = getNative(Object, 'defineProperty');
500
- func({}, '', {});
501
- return func;
502
- } catch (e) {}
503
- }());
504
-
505
- /* Built-in method references for those with the same name as other `lodash` methods. */
506
- var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,
507
- nativeMax = Math.max,
508
- nativeNow = Date.now;
509
-
510
- /* Built-in method references that are verified to be native. */
511
- var Map = getNative(root, 'Map'),
512
- nativeCreate = getNative(Object, 'create');
513
-
514
- /**
515
- * The base implementation of `_.create` without support for assigning
516
- * properties to the created object.
517
- *
518
- * @private
519
- * @param {Object} proto The object to inherit from.
520
- * @returns {Object} Returns the new object.
521
- */
522
- var baseCreate = (function() {
523
- function object() {}
524
- return function(proto) {
525
- if (!isObject(proto)) {
526
- return {};
527
- }
528
- if (objectCreate) {
529
- return objectCreate(proto);
530
- }
531
- object.prototype = proto;
532
- var result = new object;
533
- object.prototype = undefined;
534
- return result;
535
- };
536
- }());
537
-
538
- /**
539
- * Creates a hash object.
540
- *
541
- * @private
542
- * @constructor
543
- * @param {Array} [entries] The key-value pairs to cache.
544
- */
545
- function Hash(entries) {
546
- var index = -1,
547
- length = entries == null ? 0 : entries.length;
548
-
549
- this.clear();
550
- while (++index < length) {
551
- var entry = entries[index];
552
- this.set(entry[0], entry[1]);
553
- }
554
- }
555
-
556
- /**
557
- * Removes all key-value entries from the hash.
558
- *
559
- * @private
560
- * @name clear
561
- * @memberOf Hash
562
- */
563
- function hashClear() {
564
- this.__data__ = nativeCreate ? nativeCreate(null) : {};
565
- this.size = 0;
566
- }
567
-
568
- /**
569
- * Removes `key` and its value from the hash.
570
- *
571
- * @private
572
- * @name delete
573
- * @memberOf Hash
574
- * @param {Object} hash The hash to modify.
575
- * @param {string} key The key of the value to remove.
576
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
577
- */
578
- function hashDelete(key) {
579
- var result = this.has(key) && delete this.__data__[key];
580
- this.size -= result ? 1 : 0;
581
- return result;
582
- }
583
-
584
- /**
585
- * Gets the hash value for `key`.
586
- *
587
- * @private
588
- * @name get
589
- * @memberOf Hash
590
- * @param {string} key The key of the value to get.
591
- * @returns {*} Returns the entry value.
592
- */
593
- function hashGet(key) {
594
- var data = this.__data__;
595
- if (nativeCreate) {
596
- var result = data[key];
597
- return result === HASH_UNDEFINED ? undefined : result;
598
- }
599
- return hasOwnProperty.call(data, key) ? data[key] : undefined;
600
- }
601
-
602
- /**
603
- * Checks if a hash value for `key` exists.
604
- *
605
- * @private
606
- * @name has
607
- * @memberOf Hash
608
- * @param {string} key The key of the entry to check.
609
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
610
- */
611
- function hashHas(key) {
612
- var data = this.__data__;
613
- return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
614
- }
615
-
616
- /**
617
- * Sets the hash `key` to `value`.
618
- *
619
- * @private
620
- * @name set
621
- * @memberOf Hash
622
- * @param {string} key The key of the value to set.
623
- * @param {*} value The value to set.
624
- * @returns {Object} Returns the hash instance.
625
- */
626
- function hashSet(key, value) {
627
- var data = this.__data__;
628
- this.size += this.has(key) ? 0 : 1;
629
- data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
630
- return this;
631
- }
632
-
633
- // Add methods to `Hash`.
634
- Hash.prototype.clear = hashClear;
635
- Hash.prototype['delete'] = hashDelete;
636
- Hash.prototype.get = hashGet;
637
- Hash.prototype.has = hashHas;
638
- Hash.prototype.set = hashSet;
639
-
640
- /**
641
- * Creates an list cache object.
642
- *
643
- * @private
644
- * @constructor
645
- * @param {Array} [entries] The key-value pairs to cache.
646
- */
647
- function ListCache(entries) {
648
- var index = -1,
649
- length = entries == null ? 0 : entries.length;
650
-
651
- this.clear();
652
- while (++index < length) {
653
- var entry = entries[index];
654
- this.set(entry[0], entry[1]);
655
- }
656
- }
657
-
658
- /**
659
- * Removes all key-value entries from the list cache.
660
- *
661
- * @private
662
- * @name clear
663
- * @memberOf ListCache
664
- */
665
- function listCacheClear() {
666
- this.__data__ = [];
667
- this.size = 0;
668
- }
669
-
670
- /**
671
- * Removes `key` and its value from the list cache.
672
- *
673
- * @private
674
- * @name delete
675
- * @memberOf ListCache
676
- * @param {string} key The key of the value to remove.
677
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
678
- */
679
- function listCacheDelete(key) {
680
- var data = this.__data__,
681
- index = assocIndexOf(data, key);
682
-
683
- if (index < 0) {
684
- return false;
685
- }
686
- var lastIndex = data.length - 1;
687
- if (index == lastIndex) {
688
- data.pop();
689
- } else {
690
- splice.call(data, index, 1);
691
- }
692
- --this.size;
693
- return true;
694
- }
695
-
696
- /**
697
- * Gets the list cache value for `key`.
698
- *
699
- * @private
700
- * @name get
701
- * @memberOf ListCache
702
- * @param {string} key The key of the value to get.
703
- * @returns {*} Returns the entry value.
704
- */
705
- function listCacheGet(key) {
706
- var data = this.__data__,
707
- index = assocIndexOf(data, key);
708
-
709
- return index < 0 ? undefined : data[index][1];
710
- }
711
-
712
- /**
713
- * Checks if a list cache value for `key` exists.
714
- *
715
- * @private
716
- * @name has
717
- * @memberOf ListCache
718
- * @param {string} key The key of the entry to check.
719
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
720
- */
721
- function listCacheHas(key) {
722
- return assocIndexOf(this.__data__, key) > -1;
723
- }
724
-
725
- /**
726
- * Sets the list cache `key` to `value`.
727
- *
728
- * @private
729
- * @name set
730
- * @memberOf ListCache
731
- * @param {string} key The key of the value to set.
732
- * @param {*} value The value to set.
733
- * @returns {Object} Returns the list cache instance.
734
- */
735
- function listCacheSet(key, value) {
736
- var data = this.__data__,
737
- index = assocIndexOf(data, key);
738
-
739
- if (index < 0) {
740
- ++this.size;
741
- data.push([key, value]);
742
- } else {
743
- data[index][1] = value;
744
- }
745
- return this;
746
- }
747
-
748
- // Add methods to `ListCache`.
749
- ListCache.prototype.clear = listCacheClear;
750
- ListCache.prototype['delete'] = listCacheDelete;
751
- ListCache.prototype.get = listCacheGet;
752
- ListCache.prototype.has = listCacheHas;
753
- ListCache.prototype.set = listCacheSet;
754
-
755
- /**
756
- * Creates a map cache object to store key-value pairs.
757
- *
758
- * @private
759
- * @constructor
760
- * @param {Array} [entries] The key-value pairs to cache.
761
- */
762
- function MapCache(entries) {
763
- var index = -1,
764
- length = entries == null ? 0 : entries.length;
765
-
766
- this.clear();
767
- while (++index < length) {
768
- var entry = entries[index];
769
- this.set(entry[0], entry[1]);
770
- }
771
- }
772
-
773
- /**
774
- * Removes all key-value entries from the map.
775
- *
776
- * @private
777
- * @name clear
778
- * @memberOf MapCache
779
- */
780
- function mapCacheClear() {
781
- this.size = 0;
782
- this.__data__ = {
783
- 'hash': new Hash,
784
- 'map': new (Map || ListCache),
785
- 'string': new Hash
786
- };
787
- }
788
-
789
- /**
790
- * Removes `key` and its value from the map.
791
- *
792
- * @private
793
- * @name delete
794
- * @memberOf MapCache
795
- * @param {string} key The key of the value to remove.
796
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
797
- */
798
- function mapCacheDelete(key) {
799
- var result = getMapData(this, key)['delete'](key);
800
- this.size -= result ? 1 : 0;
801
- return result;
802
- }
803
-
804
- /**
805
- * Gets the map value for `key`.
806
- *
807
- * @private
808
- * @name get
809
- * @memberOf MapCache
810
- * @param {string} key The key of the value to get.
811
- * @returns {*} Returns the entry value.
812
- */
813
- function mapCacheGet(key) {
814
- return getMapData(this, key).get(key);
815
- }
816
-
817
- /**
818
- * Checks if a map value for `key` exists.
819
- *
820
- * @private
821
- * @name has
822
- * @memberOf MapCache
823
- * @param {string} key The key of the entry to check.
824
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
825
- */
826
- function mapCacheHas(key) {
827
- return getMapData(this, key).has(key);
828
- }
829
-
830
- /**
831
- * Sets the map `key` to `value`.
832
- *
833
- * @private
834
- * @name set
835
- * @memberOf MapCache
836
- * @param {string} key The key of the value to set.
837
- * @param {*} value The value to set.
838
- * @returns {Object} Returns the map cache instance.
839
- */
840
- function mapCacheSet(key, value) {
841
- var data = getMapData(this, key),
842
- size = data.size;
843
-
844
- data.set(key, value);
845
- this.size += data.size == size ? 0 : 1;
846
- return this;
847
- }
848
-
849
- // Add methods to `MapCache`.
850
- MapCache.prototype.clear = mapCacheClear;
851
- MapCache.prototype['delete'] = mapCacheDelete;
852
- MapCache.prototype.get = mapCacheGet;
853
- MapCache.prototype.has = mapCacheHas;
854
- MapCache.prototype.set = mapCacheSet;
855
-
856
- /**
857
- * Creates a stack cache object to store key-value pairs.
858
- *
859
- * @private
860
- * @constructor
861
- * @param {Array} [entries] The key-value pairs to cache.
862
- */
863
- function Stack(entries) {
864
- var data = this.__data__ = new ListCache(entries);
865
- this.size = data.size;
866
- }
867
-
868
- /**
869
- * Removes all key-value entries from the stack.
870
- *
871
- * @private
872
- * @name clear
873
- * @memberOf Stack
874
- */
875
- function stackClear() {
876
- this.__data__ = new ListCache;
877
- this.size = 0;
878
- }
879
-
880
- /**
881
- * Removes `key` and its value from the stack.
882
- *
883
- * @private
884
- * @name delete
885
- * @memberOf Stack
886
- * @param {string} key The key of the value to remove.
887
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
888
- */
889
- function stackDelete(key) {
890
- var data = this.__data__,
891
- result = data['delete'](key);
892
-
893
- this.size = data.size;
894
- return result;
895
- }
896
-
897
- /**
898
- * Gets the stack value for `key`.
899
- *
900
- * @private
901
- * @name get
902
- * @memberOf Stack
903
- * @param {string} key The key of the value to get.
904
- * @returns {*} Returns the entry value.
905
- */
906
- function stackGet(key) {
907
- return this.__data__.get(key);
908
- }
909
-
910
- /**
911
- * Checks if a stack value for `key` exists.
912
- *
913
- * @private
914
- * @name has
915
- * @memberOf Stack
916
- * @param {string} key The key of the entry to check.
917
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
918
- */
919
- function stackHas(key) {
920
- return this.__data__.has(key);
921
- }
922
-
923
- /**
924
- * Sets the stack `key` to `value`.
925
- *
926
- * @private
927
- * @name set
928
- * @memberOf Stack
929
- * @param {string} key The key of the value to set.
930
- * @param {*} value The value to set.
931
- * @returns {Object} Returns the stack cache instance.
932
- */
933
- function stackSet(key, value) {
934
- var data = this.__data__;
935
- if (data instanceof ListCache) {
936
- var pairs = data.__data__;
937
- if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
938
- pairs.push([key, value]);
939
- this.size = ++data.size;
940
- return this;
941
- }
942
- data = this.__data__ = new MapCache(pairs);
943
- }
944
- data.set(key, value);
945
- this.size = data.size;
946
- return this;
947
- }
948
-
949
- // Add methods to `Stack`.
950
- Stack.prototype.clear = stackClear;
951
- Stack.prototype['delete'] = stackDelete;
952
- Stack.prototype.get = stackGet;
953
- Stack.prototype.has = stackHas;
954
- Stack.prototype.set = stackSet;
955
-
956
- /**
957
- * Creates an array of the enumerable property names of the array-like `value`.
958
- *
959
- * @private
960
- * @param {*} value The value to query.
961
- * @param {boolean} inherited Specify returning inherited property names.
962
- * @returns {Array} Returns the array of property names.
963
- */
964
- function arrayLikeKeys(value, inherited) {
965
- var isArr = isArray(value),
966
- isArg = !isArr && isArguments(value),
967
- isBuff = !isArr && !isArg && isBuffer(value),
968
- isType = !isArr && !isArg && !isBuff && isTypedArray(value),
969
- skipIndexes = isArr || isArg || isBuff || isType,
970
- result = skipIndexes ? baseTimes(value.length, String) : [],
971
- length = result.length;
972
-
973
- for (var key in value) {
974
- if ((inherited || hasOwnProperty.call(value, key)) &&
975
- !(skipIndexes && (
976
- // Safari 9 has enumerable `arguments.length` in strict mode.
977
- key == 'length' ||
978
- // Node.js 0.10 has enumerable non-index properties on buffers.
979
- (isBuff && (key == 'offset' || key == 'parent')) ||
980
- // PhantomJS 2 has enumerable non-index properties on typed arrays.
981
- (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
982
- // Skip index properties.
983
- isIndex(key, length)
984
- ))) {
985
- result.push(key);
986
- }
987
- }
988
- return result;
989
- }
990
-
991
- /**
992
- * This function is like `assignValue` except that it doesn't assign
993
- * `undefined` values.
994
- *
995
- * @private
996
- * @param {Object} object The object to modify.
997
- * @param {string} key The key of the property to assign.
998
- * @param {*} value The value to assign.
999
- */
1000
- function assignMergeValue(object, key, value) {
1001
- if ((value !== undefined && !eq(object[key], value)) ||
1002
- (value === undefined && !(key in object))) {
1003
- baseAssignValue(object, key, value);
1004
- }
1005
- }
1006
-
1007
- /**
1008
- * Assigns `value` to `key` of `object` if the existing value is not equivalent
1009
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
1010
- * for equality comparisons.
1011
- *
1012
- * @private
1013
- * @param {Object} object The object to modify.
1014
- * @param {string} key The key of the property to assign.
1015
- * @param {*} value The value to assign.
1016
- */
1017
- function assignValue(object, key, value) {
1018
- var objValue = object[key];
1019
- if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
1020
- (value === undefined && !(key in object))) {
1021
- baseAssignValue(object, key, value);
1022
- }
1023
- }
1024
-
1025
- /**
1026
- * Gets the index at which the `key` is found in `array` of key-value pairs.
1027
- *
1028
- * @private
1029
- * @param {Array} array The array to inspect.
1030
- * @param {*} key The key to search for.
1031
- * @returns {number} Returns the index of the matched value, else `-1`.
1032
- */
1033
- function assocIndexOf(array, key) {
1034
- var length = array.length;
1035
- while (length--) {
1036
- if (eq(array[length][0], key)) {
1037
- return length;
1038
- }
1039
- }
1040
- return -1;
1041
- }
1042
-
1043
- /**
1044
- * The base implementation of `assignValue` and `assignMergeValue` without
1045
- * value checks.
1046
- *
1047
- * @private
1048
- * @param {Object} object The object to modify.
1049
- * @param {string} key The key of the property to assign.
1050
- * @param {*} value The value to assign.
1051
- */
1052
- function baseAssignValue(object, key, value) {
1053
- if (key == '__proto__' && defineProperty) {
1054
- defineProperty(object, key, {
1055
- 'configurable': true,
1056
- 'enumerable': true,
1057
- 'value': value,
1058
- 'writable': true
1059
- });
1060
- } else {
1061
- object[key] = value;
1062
- }
1063
- }
1064
-
1065
- /**
1066
- * The base implementation of `baseForOwn` which iterates over `object`
1067
- * properties returned by `keysFunc` and invokes `iteratee` for each property.
1068
- * Iteratee functions may exit iteration early by explicitly returning `false`.
1069
- *
1070
- * @private
1071
- * @param {Object} object The object to iterate over.
1072
- * @param {Function} iteratee The function invoked per iteration.
1073
- * @param {Function} keysFunc The function to get the keys of `object`.
1074
- * @returns {Object} Returns `object`.
1075
- */
1076
- var baseFor = createBaseFor();
1077
-
1078
- /**
1079
- * The base implementation of `getTag` without fallbacks for buggy environments.
1080
- *
1081
- * @private
1082
- * @param {*} value The value to query.
1083
- * @returns {string} Returns the `toStringTag`.
1084
- */
1085
- function baseGetTag(value) {
1086
- if (value == null) {
1087
- return value === undefined ? undefinedTag : nullTag;
1088
- }
1089
- return (symToStringTag && symToStringTag in Object(value))
1090
- ? getRawTag(value)
1091
- : objectToString(value);
1092
- }
1093
-
1094
- /**
1095
- * The base implementation of `_.isArguments`.
1096
- *
1097
- * @private
1098
- * @param {*} value The value to check.
1099
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
1100
- */
1101
- function baseIsArguments(value) {
1102
- return isObjectLike(value) && baseGetTag(value) == argsTag;
1103
- }
1104
-
1105
- /**
1106
- * The base implementation of `_.isNative` without bad shim checks.
1107
- *
1108
- * @private
1109
- * @param {*} value The value to check.
1110
- * @returns {boolean} Returns `true` if `value` is a native function,
1111
- * else `false`.
1112
- */
1113
- function baseIsNative(value) {
1114
- if (!isObject(value) || isMasked(value)) {
1115
- return false;
1116
- }
1117
- var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
1118
- return pattern.test(toSource(value));
1119
- }
1120
-
1121
- /**
1122
- * The base implementation of `_.isTypedArray` without Node.js optimizations.
1123
- *
1124
- * @private
1125
- * @param {*} value The value to check.
1126
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
1127
- */
1128
- function baseIsTypedArray(value) {
1129
- return isObjectLike(value) &&
1130
- isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
1131
- }
1132
-
1133
- /**
1134
- * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
1135
- *
1136
- * @private
1137
- * @param {Object} object The object to query.
1138
- * @returns {Array} Returns the array of property names.
1139
- */
1140
- function baseKeysIn(object) {
1141
- if (!isObject(object)) {
1142
- return nativeKeysIn(object);
1143
- }
1144
- var isProto = isPrototype(object),
1145
- result = [];
1146
-
1147
- for (var key in object) {
1148
- if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
1149
- result.push(key);
1150
- }
1151
- }
1152
- return result;
1153
- }
1154
-
1155
- /**
1156
- * The base implementation of `_.merge` without support for multiple sources.
1157
- *
1158
- * @private
1159
- * @param {Object} object The destination object.
1160
- * @param {Object} source The source object.
1161
- * @param {number} srcIndex The index of `source`.
1162
- * @param {Function} [customizer] The function to customize merged values.
1163
- * @param {Object} [stack] Tracks traversed source values and their merged
1164
- * counterparts.
1165
- */
1166
- function baseMerge(object, source, srcIndex, customizer, stack) {
1167
- if (object === source) {
1168
- return;
1169
- }
1170
- baseFor(source, function(srcValue, key) {
1171
- stack || (stack = new Stack);
1172
- if (isObject(srcValue)) {
1173
- baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
1174
- }
1175
- else {
1176
- var newValue = customizer
1177
- ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
1178
- : undefined;
1179
-
1180
- if (newValue === undefined) {
1181
- newValue = srcValue;
1182
- }
1183
- assignMergeValue(object, key, newValue);
1184
- }
1185
- }, keysIn);
1186
- }
1187
-
1188
- /**
1189
- * A specialized version of `baseMerge` for arrays and objects which performs
1190
- * deep merges and tracks traversed objects enabling objects with circular
1191
- * references to be merged.
1192
- *
1193
- * @private
1194
- * @param {Object} object The destination object.
1195
- * @param {Object} source The source object.
1196
- * @param {string} key The key of the value to merge.
1197
- * @param {number} srcIndex The index of `source`.
1198
- * @param {Function} mergeFunc The function to merge values.
1199
- * @param {Function} [customizer] The function to customize assigned values.
1200
- * @param {Object} [stack] Tracks traversed source values and their merged
1201
- * counterparts.
1202
- */
1203
- function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
1204
- var objValue = safeGet(object, key),
1205
- srcValue = safeGet(source, key),
1206
- stacked = stack.get(srcValue);
1207
-
1208
- if (stacked) {
1209
- assignMergeValue(object, key, stacked);
1210
- return;
1211
- }
1212
- var newValue = customizer
1213
- ? customizer(objValue, srcValue, (key + ''), object, source, stack)
1214
- : undefined;
1215
-
1216
- var isCommon = newValue === undefined;
1217
-
1218
- if (isCommon) {
1219
- var isArr = isArray(srcValue),
1220
- isBuff = !isArr && isBuffer(srcValue),
1221
- isTyped = !isArr && !isBuff && isTypedArray(srcValue);
1222
-
1223
- newValue = srcValue;
1224
- if (isArr || isBuff || isTyped) {
1225
- if (isArray(objValue)) {
1226
- newValue = objValue;
1227
- }
1228
- else if (isArrayLikeObject(objValue)) {
1229
- newValue = copyArray(objValue);
1230
- }
1231
- else if (isBuff) {
1232
- isCommon = false;
1233
- newValue = cloneBuffer(srcValue, true);
1234
- }
1235
- else if (isTyped) {
1236
- isCommon = false;
1237
- newValue = cloneTypedArray(srcValue, true);
1238
- }
1239
- else {
1240
- newValue = [];
1241
- }
1242
- }
1243
- else if (isPlainObject(srcValue) || isArguments(srcValue)) {
1244
- newValue = objValue;
1245
- if (isArguments(objValue)) {
1246
- newValue = toPlainObject(objValue);
1247
- }
1248
- else if (!isObject(objValue) || isFunction(objValue)) {
1249
- newValue = initCloneObject(srcValue);
1250
- }
1251
- }
1252
- else {
1253
- isCommon = false;
1254
- }
1255
- }
1256
- if (isCommon) {
1257
- // Recursively merge objects and arrays (susceptible to call stack limits).
1258
- stack.set(srcValue, newValue);
1259
- mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
1260
- stack['delete'](srcValue);
1261
- }
1262
- assignMergeValue(object, key, newValue);
1263
- }
1264
-
1265
- /**
1266
- * The base implementation of `_.rest` which doesn't validate or coerce arguments.
1267
- *
1268
- * @private
1269
- * @param {Function} func The function to apply a rest parameter to.
1270
- * @param {number} [start=func.length-1] The start position of the rest parameter.
1271
- * @returns {Function} Returns the new function.
1272
- */
1273
- function baseRest(func, start) {
1274
- return setToString(overRest(func, start, identity), func + '');
1275
- }
1276
-
1277
- /**
1278
- * The base implementation of `setToString` without support for hot loop shorting.
1279
- *
1280
- * @private
1281
- * @param {Function} func The function to modify.
1282
- * @param {Function} string The `toString` result.
1283
- * @returns {Function} Returns `func`.
1284
- */
1285
- var baseSetToString = !defineProperty ? identity : function(func, string) {
1286
- return defineProperty(func, 'toString', {
1287
- 'configurable': true,
1288
- 'enumerable': false,
1289
- 'value': constant(string),
1290
- 'writable': true
1291
- });
1292
- };
1293
-
1294
- /**
1295
- * Creates a clone of `buffer`.
1296
- *
1297
- * @private
1298
- * @param {Buffer} buffer The buffer to clone.
1299
- * @param {boolean} [isDeep] Specify a deep clone.
1300
- * @returns {Buffer} Returns the cloned buffer.
1301
- */
1302
- function cloneBuffer(buffer, isDeep) {
1303
- if (isDeep) {
1304
- return buffer.slice();
1305
- }
1306
- var length = buffer.length,
1307
- result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
1308
-
1309
- buffer.copy(result);
1310
- return result;
1311
- }
1312
-
1313
- /**
1314
- * Creates a clone of `arrayBuffer`.
1315
- *
1316
- * @private
1317
- * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
1318
- * @returns {ArrayBuffer} Returns the cloned array buffer.
1319
- */
1320
- function cloneArrayBuffer(arrayBuffer) {
1321
- var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
1322
- new Uint8Array(result).set(new Uint8Array(arrayBuffer));
1323
- return result;
1324
- }
1325
-
1326
- /**
1327
- * Creates a clone of `typedArray`.
1328
- *
1329
- * @private
1330
- * @param {Object} typedArray The typed array to clone.
1331
- * @param {boolean} [isDeep] Specify a deep clone.
1332
- * @returns {Object} Returns the cloned typed array.
1333
- */
1334
- function cloneTypedArray(typedArray, isDeep) {
1335
- var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
1336
- return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
1337
- }
1338
-
1339
- /**
1340
- * Copies the values of `source` to `array`.
1341
- *
1342
- * @private
1343
- * @param {Array} source The array to copy values from.
1344
- * @param {Array} [array=[]] The array to copy values to.
1345
- * @returns {Array} Returns `array`.
1346
- */
1347
- function copyArray(source, array) {
1348
- var index = -1,
1349
- length = source.length;
1350
-
1351
- array || (array = Array(length));
1352
- while (++index < length) {
1353
- array[index] = source[index];
1354
- }
1355
- return array;
1356
- }
1357
-
1358
- /**
1359
- * Copies properties of `source` to `object`.
1360
- *
1361
- * @private
1362
- * @param {Object} source The object to copy properties from.
1363
- * @param {Array} props The property identifiers to copy.
1364
- * @param {Object} [object={}] The object to copy properties to.
1365
- * @param {Function} [customizer] The function to customize copied values.
1366
- * @returns {Object} Returns `object`.
1367
- */
1368
- function copyObject(source, props, object, customizer) {
1369
- var isNew = !object;
1370
- object || (object = {});
1371
-
1372
- var index = -1,
1373
- length = props.length;
1374
-
1375
- while (++index < length) {
1376
- var key = props[index];
1377
-
1378
- var newValue = customizer
1379
- ? customizer(object[key], source[key], key, object, source)
1380
- : undefined;
1381
-
1382
- if (newValue === undefined) {
1383
- newValue = source[key];
1384
- }
1385
- if (isNew) {
1386
- baseAssignValue(object, key, newValue);
1387
- } else {
1388
- assignValue(object, key, newValue);
1389
- }
1390
- }
1391
- return object;
1392
- }
1393
-
1394
- /**
1395
- * Creates a function like `_.assign`.
1396
- *
1397
- * @private
1398
- * @param {Function} assigner The function to assign values.
1399
- * @returns {Function} Returns the new assigner function.
1400
- */
1401
- function createAssigner(assigner) {
1402
- return baseRest(function(object, sources) {
1403
- var index = -1,
1404
- length = sources.length,
1405
- customizer = length > 1 ? sources[length - 1] : undefined,
1406
- guard = length > 2 ? sources[2] : undefined;
1407
-
1408
- customizer = (assigner.length > 3 && typeof customizer == 'function')
1409
- ? (length--, customizer)
1410
- : undefined;
1411
-
1412
- if (guard && isIterateeCall(sources[0], sources[1], guard)) {
1413
- customizer = length < 3 ? undefined : customizer;
1414
- length = 1;
1415
- }
1416
- object = Object(object);
1417
- while (++index < length) {
1418
- var source = sources[index];
1419
- if (source) {
1420
- assigner(object, source, index, customizer);
1421
- }
1422
- }
1423
- return object;
1424
- });
1425
- }
1426
-
1427
- /**
1428
- * Creates a base function for methods like `_.forIn` and `_.forOwn`.
1429
- *
1430
- * @private
1431
- * @param {boolean} [fromRight] Specify iterating from right to left.
1432
- * @returns {Function} Returns the new base function.
1433
- */
1434
- function createBaseFor(fromRight) {
1435
- return function(object, iteratee, keysFunc) {
1436
- var index = -1,
1437
- iterable = Object(object),
1438
- props = keysFunc(object),
1439
- length = props.length;
1440
-
1441
- while (length--) {
1442
- var key = props[fromRight ? length : ++index];
1443
- if (iteratee(iterable[key], key, iterable) === false) {
1444
- break;
1445
- }
1446
- }
1447
- return object;
1448
- };
1449
- }
1450
-
1451
- /**
1452
- * Gets the data for `map`.
1453
- *
1454
- * @private
1455
- * @param {Object} map The map to query.
1456
- * @param {string} key The reference key.
1457
- * @returns {*} Returns the map data.
1458
- */
1459
- function getMapData(map, key) {
1460
- var data = map.__data__;
1461
- return isKeyable(key)
1462
- ? data[typeof key == 'string' ? 'string' : 'hash']
1463
- : data.map;
1464
- }
1465
-
1466
- /**
1467
- * Gets the native function at `key` of `object`.
1468
- *
1469
- * @private
1470
- * @param {Object} object The object to query.
1471
- * @param {string} key The key of the method to get.
1472
- * @returns {*} Returns the function if it's native, else `undefined`.
1473
- */
1474
- function getNative(object, key) {
1475
- var value = getValue(object, key);
1476
- return baseIsNative(value) ? value : undefined;
1477
- }
1478
-
1479
- /**
1480
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
1481
- *
1482
- * @private
1483
- * @param {*} value The value to query.
1484
- * @returns {string} Returns the raw `toStringTag`.
1485
- */
1486
- function getRawTag(value) {
1487
- var isOwn = hasOwnProperty.call(value, symToStringTag),
1488
- tag = value[symToStringTag];
1489
-
1490
- try {
1491
- value[symToStringTag] = undefined;
1492
- var unmasked = true;
1493
- } catch (e) {}
1494
-
1495
- var result = nativeObjectToString.call(value);
1496
- if (unmasked) {
1497
- if (isOwn) {
1498
- value[symToStringTag] = tag;
1499
- } else {
1500
- delete value[symToStringTag];
1501
- }
1502
- }
1503
- return result;
1504
- }
1505
-
1506
- /**
1507
- * Initializes an object clone.
1508
- *
1509
- * @private
1510
- * @param {Object} object The object to clone.
1511
- * @returns {Object} Returns the initialized clone.
1512
- */
1513
- function initCloneObject(object) {
1514
- return (typeof object.constructor == 'function' && !isPrototype(object))
1515
- ? baseCreate(getPrototype(object))
1516
- : {};
1517
- }
1518
-
1519
- /**
1520
- * Checks if `value` is a valid array-like index.
1521
- *
1522
- * @private
1523
- * @param {*} value The value to check.
1524
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
1525
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
1526
- */
1527
- function isIndex(value, length) {
1528
- var type = typeof value;
1529
- length = length == null ? MAX_SAFE_INTEGER : length;
1530
-
1531
- return !!length &&
1532
- (type == 'number' ||
1533
- (type != 'symbol' && reIsUint.test(value))) &&
1534
- (value > -1 && value % 1 == 0 && value < length);
1535
- }
1536
-
1537
- /**
1538
- * Checks if the given arguments are from an iteratee call.
1539
- *
1540
- * @private
1541
- * @param {*} value The potential iteratee value argument.
1542
- * @param {*} index The potential iteratee index or key argument.
1543
- * @param {*} object The potential iteratee object argument.
1544
- * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
1545
- * else `false`.
1546
- */
1547
- function isIterateeCall(value, index, object) {
1548
- if (!isObject(object)) {
1549
- return false;
1550
- }
1551
- var type = typeof index;
1552
- if (type == 'number'
1553
- ? (isArrayLike(object) && isIndex(index, object.length))
1554
- : (type == 'string' && index in object)
1555
- ) {
1556
- return eq(object[index], value);
1557
- }
1558
- return false;
1559
- }
1560
-
1561
- /**
1562
- * Checks if `value` is suitable for use as unique object key.
1563
- *
1564
- * @private
1565
- * @param {*} value The value to check.
1566
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
1567
- */
1568
- function isKeyable(value) {
1569
- var type = typeof value;
1570
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
1571
- ? (value !== '__proto__')
1572
- : (value === null);
1573
- }
1574
-
1575
- /**
1576
- * Checks if `func` has its source masked.
1577
- *
1578
- * @private
1579
- * @param {Function} func The function to check.
1580
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
1581
- */
1582
- function isMasked(func) {
1583
- return !!maskSrcKey && (maskSrcKey in func);
1584
- }
1585
-
1586
- /**
1587
- * Checks if `value` is likely a prototype object.
1588
- *
1589
- * @private
1590
- * @param {*} value The value to check.
1591
- * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
1592
- */
1593
- function isPrototype(value) {
1594
- var Ctor = value && value.constructor,
1595
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
1596
-
1597
- return value === proto;
1598
- }
1599
-
1600
- /**
1601
- * This function is like
1602
- * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
1603
- * except that it includes inherited enumerable properties.
1604
- *
1605
- * @private
1606
- * @param {Object} object The object to query.
1607
- * @returns {Array} Returns the array of property names.
1608
- */
1609
- function nativeKeysIn(object) {
1610
- var result = [];
1611
- if (object != null) {
1612
- for (var key in Object(object)) {
1613
- result.push(key);
1614
- }
1615
- }
1616
- return result;
1617
- }
1618
-
1619
- /**
1620
- * Converts `value` to a string using `Object.prototype.toString`.
1621
- *
1622
- * @private
1623
- * @param {*} value The value to convert.
1624
- * @returns {string} Returns the converted string.
1625
- */
1626
- function objectToString(value) {
1627
- return nativeObjectToString.call(value);
1628
- }
1629
-
1630
- /**
1631
- * A specialized version of `baseRest` which transforms the rest array.
1632
- *
1633
- * @private
1634
- * @param {Function} func The function to apply a rest parameter to.
1635
- * @param {number} [start=func.length-1] The start position of the rest parameter.
1636
- * @param {Function} transform The rest array transform.
1637
- * @returns {Function} Returns the new function.
1638
- */
1639
- function overRest(func, start, transform) {
1640
- start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
1641
- return function() {
1642
- var args = arguments,
1643
- index = -1,
1644
- length = nativeMax(args.length - start, 0),
1645
- array = Array(length);
1646
-
1647
- while (++index < length) {
1648
- array[index] = args[start + index];
1649
- }
1650
- index = -1;
1651
- var otherArgs = Array(start + 1);
1652
- while (++index < start) {
1653
- otherArgs[index] = args[index];
1654
- }
1655
- otherArgs[start] = transform(array);
1656
- return apply(func, this, otherArgs);
1657
- };
1658
- }
1659
-
1660
- /**
1661
- * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
1662
- *
1663
- * @private
1664
- * @param {Object} object The object to query.
1665
- * @param {string} key The key of the property to get.
1666
- * @returns {*} Returns the property value.
1667
- */
1668
- function safeGet(object, key) {
1669
- if (key === 'constructor' && typeof object[key] === 'function') {
1670
- return;
1671
- }
1672
-
1673
- if (key == '__proto__') {
1674
- return;
1675
- }
1676
-
1677
- return object[key];
1678
- }
1679
-
1680
- /**
1681
- * Sets the `toString` method of `func` to return `string`.
1682
- *
1683
- * @private
1684
- * @param {Function} func The function to modify.
1685
- * @param {Function} string The `toString` result.
1686
- * @returns {Function} Returns `func`.
1687
- */
1688
- var setToString = shortOut(baseSetToString);
1689
-
1690
- /**
1691
- * Creates a function that'll short out and invoke `identity` instead
1692
- * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
1693
- * milliseconds.
1694
- *
1695
- * @private
1696
- * @param {Function} func The function to restrict.
1697
- * @returns {Function} Returns the new shortable function.
1698
- */
1699
- function shortOut(func) {
1700
- var count = 0,
1701
- lastCalled = 0;
1702
-
1703
- return function() {
1704
- var stamp = nativeNow(),
1705
- remaining = HOT_SPAN - (stamp - lastCalled);
1706
-
1707
- lastCalled = stamp;
1708
- if (remaining > 0) {
1709
- if (++count >= HOT_COUNT) {
1710
- return arguments[0];
1711
- }
1712
- } else {
1713
- count = 0;
1714
- }
1715
- return func.apply(undefined, arguments);
1716
- };
1717
- }
1718
-
1719
- /**
1720
- * Converts `func` to its source code.
1721
- *
1722
- * @private
1723
- * @param {Function} func The function to convert.
1724
- * @returns {string} Returns the source code.
1725
- */
1726
- function toSource(func) {
1727
- if (func != null) {
1728
- try {
1729
- return funcToString.call(func);
1730
- } catch (e) {}
1731
- try {
1732
- return (func + '');
1733
- } catch (e) {}
1734
- }
1735
- return '';
1736
- }
1737
-
1738
- /**
1739
- * Performs a
1740
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
1741
- * comparison between two values to determine if they are equivalent.
1742
- *
1743
- * @static
1744
- * @memberOf _
1745
- * @since 4.0.0
1746
- * @category Lang
1747
- * @param {*} value The value to compare.
1748
- * @param {*} other The other value to compare.
1749
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
1750
- * @example
1751
- *
1752
- * var object = { 'a': 1 };
1753
- * var other = { 'a': 1 };
1754
- *
1755
- * _.eq(object, object);
1756
- * // => true
1757
- *
1758
- * _.eq(object, other);
1759
- * // => false
1760
- *
1761
- * _.eq('a', 'a');
1762
- * // => true
1763
- *
1764
- * _.eq('a', Object('a'));
1765
- * // => false
1766
- *
1767
- * _.eq(NaN, NaN);
1768
- * // => true
1769
- */
1770
- function eq(value, other) {
1771
- return value === other || (value !== value && other !== other);
1772
- }
1773
-
1774
- /**
1775
- * Checks if `value` is likely an `arguments` object.
1776
- *
1777
- * @static
1778
- * @memberOf _
1779
- * @since 0.1.0
1780
- * @category Lang
1781
- * @param {*} value The value to check.
1782
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
1783
- * else `false`.
1784
- * @example
1785
- *
1786
- * _.isArguments(function() { return arguments; }());
1787
- * // => true
1788
- *
1789
- * _.isArguments([1, 2, 3]);
1790
- * // => false
1791
- */
1792
- var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
1793
- return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
1794
- !propertyIsEnumerable.call(value, 'callee');
1795
- };
1796
-
1797
- /**
1798
- * Checks if `value` is classified as an `Array` object.
1799
- *
1800
- * @static
1801
- * @memberOf _
1802
- * @since 0.1.0
1803
- * @category Lang
1804
- * @param {*} value The value to check.
1805
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
1806
- * @example
1807
- *
1808
- * _.isArray([1, 2, 3]);
1809
- * // => true
1810
- *
1811
- * _.isArray(document.body.children);
1812
- * // => false
1813
- *
1814
- * _.isArray('abc');
1815
- * // => false
1816
- *
1817
- * _.isArray(_.noop);
1818
- * // => false
1819
- */
1820
- var isArray = Array.isArray;
1821
-
1822
- /**
1823
- * Checks if `value` is array-like. A value is considered array-like if it's
1824
- * not a function and has a `value.length` that's an integer greater than or
1825
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
1826
- *
1827
- * @static
1828
- * @memberOf _
1829
- * @since 4.0.0
1830
- * @category Lang
1831
- * @param {*} value The value to check.
1832
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
1833
- * @example
1834
- *
1835
- * _.isArrayLike([1, 2, 3]);
1836
- * // => true
1837
- *
1838
- * _.isArrayLike(document.body.children);
1839
- * // => true
1840
- *
1841
- * _.isArrayLike('abc');
1842
- * // => true
1843
- *
1844
- * _.isArrayLike(_.noop);
1845
- * // => false
1846
- */
1847
- function isArrayLike(value) {
1848
- return value != null && isLength(value.length) && !isFunction(value);
1849
- }
1850
-
1851
- /**
1852
- * This method is like `_.isArrayLike` except that it also checks if `value`
1853
- * is an object.
1854
- *
1855
- * @static
1856
- * @memberOf _
1857
- * @since 4.0.0
1858
- * @category Lang
1859
- * @param {*} value The value to check.
1860
- * @returns {boolean} Returns `true` if `value` is an array-like object,
1861
- * else `false`.
1862
- * @example
1863
- *
1864
- * _.isArrayLikeObject([1, 2, 3]);
1865
- * // => true
1866
- *
1867
- * _.isArrayLikeObject(document.body.children);
1868
- * // => true
1869
- *
1870
- * _.isArrayLikeObject('abc');
1871
- * // => false
1872
- *
1873
- * _.isArrayLikeObject(_.noop);
1874
- * // => false
1875
- */
1876
- function isArrayLikeObject(value) {
1877
- return isObjectLike(value) && isArrayLike(value);
1878
- }
1879
-
1880
- /**
1881
- * Checks if `value` is a buffer.
1882
- *
1883
- * @static
1884
- * @memberOf _
1885
- * @since 4.3.0
1886
- * @category Lang
1887
- * @param {*} value The value to check.
1888
- * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
1889
- * @example
1890
- *
1891
- * _.isBuffer(new Buffer(2));
1892
- * // => true
1893
- *
1894
- * _.isBuffer(new Uint8Array(2));
1895
- * // => false
1896
- */
1897
- var isBuffer = nativeIsBuffer || stubFalse;
1898
-
1899
- /**
1900
- * Checks if `value` is classified as a `Function` object.
1901
- *
1902
- * @static
1903
- * @memberOf _
1904
- * @since 0.1.0
1905
- * @category Lang
1906
- * @param {*} value The value to check.
1907
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
1908
- * @example
1909
- *
1910
- * _.isFunction(_);
1911
- * // => true
1912
- *
1913
- * _.isFunction(/abc/);
1914
- * // => false
1915
- */
1916
- function isFunction(value) {
1917
- if (!isObject(value)) {
1918
- return false;
1919
- }
1920
- // The use of `Object#toString` avoids issues with the `typeof` operator
1921
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
1922
- var tag = baseGetTag(value);
1923
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
1924
- }
1925
-
1926
- /**
1927
- * Checks if `value` is a valid array-like length.
1928
- *
1929
- * **Note:** This method is loosely based on
1930
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
1931
- *
1932
- * @static
1933
- * @memberOf _
1934
- * @since 4.0.0
1935
- * @category Lang
1936
- * @param {*} value The value to check.
1937
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
1938
- * @example
1939
- *
1940
- * _.isLength(3);
1941
- * // => true
1942
- *
1943
- * _.isLength(Number.MIN_VALUE);
1944
- * // => false
1945
- *
1946
- * _.isLength(Infinity);
1947
- * // => false
1948
- *
1949
- * _.isLength('3');
1950
- * // => false
1951
- */
1952
- function isLength(value) {
1953
- return typeof value == 'number' &&
1954
- value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
1955
- }
1956
-
1957
- /**
1958
- * Checks if `value` is the
1959
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
1960
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
1961
- *
1962
- * @static
1963
- * @memberOf _
1964
- * @since 0.1.0
1965
- * @category Lang
1966
- * @param {*} value The value to check.
1967
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
1968
- * @example
1969
- *
1970
- * _.isObject({});
1971
- * // => true
1972
- *
1973
- * _.isObject([1, 2, 3]);
1974
- * // => true
1975
- *
1976
- * _.isObject(_.noop);
1977
- * // => true
1978
- *
1979
- * _.isObject(null);
1980
- * // => false
1981
- */
1982
- function isObject(value) {
1983
- var type = typeof value;
1984
- return value != null && (type == 'object' || type == 'function');
1985
- }
1986
-
1987
- /**
1988
- * Checks if `value` is object-like. A value is object-like if it's not `null`
1989
- * and has a `typeof` result of "object".
1990
- *
1991
- * @static
1992
- * @memberOf _
1993
- * @since 4.0.0
1994
- * @category Lang
1995
- * @param {*} value The value to check.
1996
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
1997
- * @example
1998
- *
1999
- * _.isObjectLike({});
2000
- * // => true
2001
- *
2002
- * _.isObjectLike([1, 2, 3]);
2003
- * // => true
2004
- *
2005
- * _.isObjectLike(_.noop);
2006
- * // => false
2007
- *
2008
- * _.isObjectLike(null);
2009
- * // => false
2010
- */
2011
- function isObjectLike(value) {
2012
- return value != null && typeof value == 'object';
2013
- }
2014
-
2015
- /**
2016
- * Checks if `value` is a plain object, that is, an object created by the
2017
- * `Object` constructor or one with a `[[Prototype]]` of `null`.
2018
- *
2019
- * @static
2020
- * @memberOf _
2021
- * @since 0.8.0
2022
- * @category Lang
2023
- * @param {*} value The value to check.
2024
- * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
2025
- * @example
2026
- *
2027
- * function Foo() {
2028
- * this.a = 1;
2029
- * }
2030
- *
2031
- * _.isPlainObject(new Foo);
2032
- * // => false
2033
- *
2034
- * _.isPlainObject([1, 2, 3]);
2035
- * // => false
2036
- *
2037
- * _.isPlainObject({ 'x': 0, 'y': 0 });
2038
- * // => true
2039
- *
2040
- * _.isPlainObject(Object.create(null));
2041
- * // => true
2042
- */
2043
- function isPlainObject(value) {
2044
- if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
2045
- return false;
2046
- }
2047
- var proto = getPrototype(value);
2048
- if (proto === null) {
2049
- return true;
2050
- }
2051
- var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
2052
- return typeof Ctor == 'function' && Ctor instanceof Ctor &&
2053
- funcToString.call(Ctor) == objectCtorString;
2054
- }
2055
-
2056
- /**
2057
- * Checks if `value` is classified as a typed array.
2058
- *
2059
- * @static
2060
- * @memberOf _
2061
- * @since 3.0.0
2062
- * @category Lang
2063
- * @param {*} value The value to check.
2064
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
2065
- * @example
2066
- *
2067
- * _.isTypedArray(new Uint8Array);
2068
- * // => true
2069
- *
2070
- * _.isTypedArray([]);
2071
- * // => false
2072
- */
2073
- var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
2074
-
2075
- /**
2076
- * Converts `value` to a plain object flattening inherited enumerable string
2077
- * keyed properties of `value` to own properties of the plain object.
2078
- *
2079
- * @static
2080
- * @memberOf _
2081
- * @since 3.0.0
2082
- * @category Lang
2083
- * @param {*} value The value to convert.
2084
- * @returns {Object} Returns the converted plain object.
2085
- * @example
2086
- *
2087
- * function Foo() {
2088
- * this.b = 2;
2089
- * }
2090
- *
2091
- * Foo.prototype.c = 3;
2092
- *
2093
- * _.assign({ 'a': 1 }, new Foo);
2094
- * // => { 'a': 1, 'b': 2 }
2095
- *
2096
- * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
2097
- * // => { 'a': 1, 'b': 2, 'c': 3 }
2098
- */
2099
- function toPlainObject(value) {
2100
- return copyObject(value, keysIn(value));
2101
- }
2102
-
2103
- /**
2104
- * Creates an array of the own and inherited enumerable property names of `object`.
2105
- *
2106
- * **Note:** Non-object values are coerced to objects.
2107
- *
2108
- * @static
2109
- * @memberOf _
2110
- * @since 3.0.0
2111
- * @category Object
2112
- * @param {Object} object The object to query.
2113
- * @returns {Array} Returns the array of property names.
2114
- * @example
2115
- *
2116
- * function Foo() {
2117
- * this.a = 1;
2118
- * this.b = 2;
2119
- * }
2120
- *
2121
- * Foo.prototype.c = 3;
2122
- *
2123
- * _.keysIn(new Foo);
2124
- * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
2125
- */
2126
- function keysIn(object) {
2127
- return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
2128
- }
2129
-
2130
- /**
2131
- * This method is like `_.merge` except that it accepts `customizer` which
2132
- * is invoked to produce the merged values of the destination and source
2133
- * properties. If `customizer` returns `undefined`, merging is handled by the
2134
- * method instead. The `customizer` is invoked with six arguments:
2135
- * (objValue, srcValue, key, object, source, stack).
2136
- *
2137
- * **Note:** This method mutates `object`.
2138
- *
2139
- * @static
2140
- * @memberOf _
2141
- * @since 4.0.0
2142
- * @category Object
2143
- * @param {Object} object The destination object.
2144
- * @param {...Object} sources The source objects.
2145
- * @param {Function} customizer The function to customize assigned values.
2146
- * @returns {Object} Returns `object`.
2147
- * @example
2148
- *
2149
- * function customizer(objValue, srcValue) {
2150
- * if (_.isArray(objValue)) {
2151
- * return objValue.concat(srcValue);
2152
- * }
2153
- * }
2154
- *
2155
- * var object = { 'a': [1], 'b': [2] };
2156
- * var other = { 'a': [3], 'b': [4] };
2157
- *
2158
- * _.mergeWith(object, other, customizer);
2159
- * // => { 'a': [1, 3], 'b': [2, 4] }
2160
- */
2161
- var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {
2162
- baseMerge(object, source, srcIndex, customizer);
2163
- });
2164
-
2165
- /**
2166
- * Creates a function that returns `value`.
2167
- *
2168
- * @static
2169
- * @memberOf _
2170
- * @since 2.4.0
2171
- * @category Util
2172
- * @param {*} value The value to return from the new function.
2173
- * @returns {Function} Returns the new constant function.
2174
- * @example
2175
- *
2176
- * var objects = _.times(2, _.constant({ 'a': 1 }));
2177
- *
2178
- * console.log(objects);
2179
- * // => [{ 'a': 1 }, { 'a': 1 }]
2180
- *
2181
- * console.log(objects[0] === objects[1]);
2182
- * // => true
2183
- */
2184
- function constant(value) {
2185
- return function() {
2186
- return value;
2187
- };
2188
- }
2189
-
2190
- /**
2191
- * This method returns the first argument it receives.
2192
- *
2193
- * @static
2194
- * @since 0.1.0
2195
- * @memberOf _
2196
- * @category Util
2197
- * @param {*} value Any value.
2198
- * @returns {*} Returns `value`.
2199
- * @example
2200
- *
2201
- * var object = { 'a': 1 };
2202
- *
2203
- * console.log(_.identity(object) === object);
2204
- * // => true
2205
- */
2206
- function identity(value) {
2207
- return value;
2208
- }
2209
-
2210
- /**
2211
- * This method returns `false`.
2212
- *
2213
- * @static
2214
- * @memberOf _
2215
- * @since 4.13.0
2216
- * @category Util
2217
- * @returns {boolean} Returns `false`.
2218
- * @example
2219
- *
2220
- * _.times(2, _.stubFalse);
2221
- * // => [false, false]
2222
- */
2223
- function stubFalse() {
2224
- return false;
2225
- }
2226
-
2227
- module.exports = mergeWith;
2228
- });
2229
-
2230
- function isArray(value) {
2231
- return Array.isArray(value);
2232
- }
2233
-
2234
- function isObject(value) {
2235
- var type = typeof value;
2236
- return value != null && (type === "object" || type === "function") && !isArray(value);
2237
- }
2238
- var __DEV__ = process.env.NODE_ENV !== "production";
2239
- process.env.NODE_ENV === "test";
2240
- function once(fn) {
2241
- var result;
2242
- return function func() {
2243
- if (fn) {
2244
- for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
2245
- args[_key5] = arguments[_key5];
2246
- }
2247
-
2248
- result = fn.apply(this, args);
2249
- fn = null;
2250
- }
2251
-
2252
- return result;
2253
- };
2254
- }
2255
- var warn = once(function (options) {
2256
- return function () {
2257
- var condition = options.condition,
2258
- message = options.message;
2259
-
2260
- if (condition && __DEV__) {
2261
- console.warn(message);
2262
- }
2263
- };
2264
- });
2265
-
2266
- Object.freeze(["base", "sm", "md", "lg", "xl", "2xl"]);
2267
-
2268
- function _extends() {
2269
- _extends = Object.assign || function (target) {
2270
- for (var i = 1; i < arguments.length; i++) {
2271
- var source = arguments[i];
2272
-
2273
- for (var key in source) {
2274
- if (Object.prototype.hasOwnProperty.call(source, key)) {
2275
- target[key] = source[key];
2276
- }
2277
- }
2278
- }
2279
-
2280
- return target;
2281
- };
2282
-
2283
- return _extends.apply(this, arguments);
2284
- }
2285
-
2286
- var createBreakpoints = function createBreakpoints(config) {
2287
- warn({
2288
- condition: true,
2289
- message: ["[chakra-ui]: createBreakpoints(...) will be deprecated pretty soon", "simply pass the breakpoints as an object. Remove the createBreakpoint(..) call"].join("")
2290
- });
2291
- return _extends({
2292
- base: "0em"
2293
- }, config);
2294
- };
2295
-
2296
- function toRef(operand) {
2297
- if (isObject(operand) && operand.reference) {
2298
- return operand.reference;
2299
- }
2300
-
2301
- return String(operand);
2302
- }
2303
-
2304
- var toExpr = function toExpr(operator) {
2305
- for (var _len = arguments.length, operands = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
2306
- operands[_key - 1] = arguments[_key];
2307
- }
2308
-
2309
- return operands.map(toRef).join(" " + operator + " ").replace(/calc/g, "");
2310
- };
2311
-
2312
- var _add = function add() {
2313
- for (var _len2 = arguments.length, operands = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
2314
- operands[_key2] = arguments[_key2];
2315
- }
2316
-
2317
- return "calc(" + toExpr.apply(void 0, ["+"].concat(operands)) + ")";
2318
- };
2319
-
2320
- var _subtract = function subtract() {
2321
- for (var _len3 = arguments.length, operands = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
2322
- operands[_key3] = arguments[_key3];
2323
- }
2324
-
2325
- return "calc(" + toExpr.apply(void 0, ["-"].concat(operands)) + ")";
2326
- };
2327
-
2328
- var _multiply = function multiply() {
2329
- for (var _len4 = arguments.length, operands = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
2330
- operands[_key4] = arguments[_key4];
2331
- }
2332
-
2333
- return "calc(" + toExpr.apply(void 0, ["*"].concat(operands)) + ")";
2334
- };
2335
-
2336
- var _divide = function divide() {
2337
- for (var _len5 = arguments.length, operands = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
2338
- operands[_key5] = arguments[_key5];
2339
- }
2340
-
2341
- return "calc(" + toExpr.apply(void 0, ["/"].concat(operands)) + ")";
2342
- };
2343
-
2344
- var _negate = function negate(x) {
2345
- var value = toRef(x);
2346
-
2347
- if (value != null && !Number.isNaN(parseFloat(value))) {
2348
- return String(value).startsWith("-") ? String(value).slice(1) : "-" + value;
2349
- }
2350
-
2351
- return _multiply(value, -1);
2352
- };
2353
-
2354
- var calc = Object.assign(function (x) {
2355
- return {
2356
- add: function add() {
2357
- for (var _len6 = arguments.length, operands = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
2358
- operands[_key6] = arguments[_key6];
2359
- }
2360
-
2361
- return calc(_add.apply(void 0, [x].concat(operands)));
2362
- },
2363
- subtract: function subtract() {
2364
- for (var _len7 = arguments.length, operands = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
2365
- operands[_key7] = arguments[_key7];
2366
- }
2367
-
2368
- return calc(_subtract.apply(void 0, [x].concat(operands)));
2369
- },
2370
- multiply: function multiply() {
2371
- for (var _len8 = arguments.length, operands = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
2372
- operands[_key8] = arguments[_key8];
2373
- }
2374
-
2375
- return calc(_multiply.apply(void 0, [x].concat(operands)));
2376
- },
2377
- divide: function divide() {
2378
- for (var _len9 = arguments.length, operands = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {
2379
- operands[_key9] = arguments[_key9];
2380
- }
2381
-
2382
- return calc(_divide.apply(void 0, [x].concat(operands)));
2383
- },
2384
- negate: function negate() {
2385
- return calc(_negate(x));
2386
- },
2387
- toString: function toString() {
2388
- return x.toString();
2389
- }
2390
- };
2391
- }, {
2392
- add: _add,
2393
- subtract: _subtract,
2394
- multiply: _multiply,
2395
- divide: _divide,
2396
- negate: _negate
2397
- });
2398
-
2399
- var breakpoints = createBreakpoints({
245
+ var breakpoints = themeTools.createBreakpoints({
2400
246
  sm: '30em',
2401
247
  md: '48em',
2402
248
  lg: '62em',
@@ -2634,7 +480,32 @@ var globalStyles = {
2634
480
  },
2635
481
  };
2636
482
 
2637
- var config = {
483
+ var Input = {
484
+ variants: {
485
+ outline: {
486
+ borderColor: colors.gray[200],
487
+ },
488
+ },
489
+ defaultProps: {
490
+ focusBorderColor: colors.teal[600],
491
+ },
492
+ };
493
+
494
+ var Popover = {
495
+ baseStyle: {
496
+ content: {
497
+ borderColor: colors.gray[200],
498
+ },
499
+ },
500
+ };
501
+
502
+ var components = {
503
+ Input: Input,
504
+ Popover: Popover,
505
+ };
506
+
507
+ // @ts-ignore
508
+ var theme = react.extendTheme({
2638
509
  blur: blur,
2639
510
  borders: borders,
2640
511
  breakpoints: breakpoints,
@@ -2654,11 +525,12 @@ var config = {
2654
525
  styles: globalStyles,
2655
526
  initialColorMode: 'light',
2656
527
  useSystemColorMode: false,
2657
- };
2658
- var theme = react.extendTheme({ config: config });
528
+ components: components,
529
+ });
2659
530
 
2660
531
  var KibbleThemeProvider = function (_a) {
2661
532
  var children = _a.children;
533
+ console.log(theme);
2662
534
  return (React__default["default"].createElement(react.ThemeProvider, { theme: theme },
2663
535
  React__default["default"].createElement(styledComponents.ThemeProvider, { theme: theme }, children)));
2664
536
  };