@bolttech/atoms-button 0.26.1 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.cjs +61 -69
  2. package/package.json +5 -5
package/index.cjs CHANGED
@@ -20,15 +20,16 @@ var check = function (it) {
20
20
  };
21
21
 
22
22
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
23
- var global$b =
23
+ var globalThis_1 =
24
24
  // eslint-disable-next-line es/no-global-this -- safe
25
25
  check(typeof globalThis == 'object' && globalThis) ||
26
26
  check(typeof window == 'object' && window) ||
27
27
  // eslint-disable-next-line no-restricted-globals -- safe
28
28
  check(typeof self == 'object' && self) ||
29
29
  check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
30
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
30
31
  // eslint-disable-next-line no-new-func -- fallback
31
- (function () { return this; })() || commonjsGlobal || Function('return this')();
32
+ (function () { return this; })() || Function('return this')();
32
33
 
33
34
  var objectGetOwnPropertyDescriptor = {};
34
35
 
@@ -152,41 +153,25 @@ var toIndexedObject$3 = function (it) {
152
153
  return IndexedObject$1(requireObjectCoercible$1(it));
153
154
  };
154
155
 
155
- var documentAll$2 = typeof document == 'object' && document.all;
156
-
157
156
  // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
158
- // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
159
- var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
160
-
161
- var documentAll_1 = {
162
- all: documentAll$2,
163
- IS_HTMLDDA: IS_HTMLDDA
164
- };
165
-
166
- var $documentAll$1 = documentAll_1;
167
-
168
- var documentAll$1 = $documentAll$1.all;
157
+ var documentAll = typeof document == 'object' && document.all;
169
158
 
170
159
  // `IsCallable` abstract operation
171
160
  // https://tc39.es/ecma262/#sec-iscallable
172
- var isCallable$a = $documentAll$1.IS_HTMLDDA ? function (argument) {
173
- return typeof argument == 'function' || argument === documentAll$1;
161
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
162
+ var isCallable$a = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
163
+ return typeof argument == 'function' || argument === documentAll;
174
164
  } : function (argument) {
175
165
  return typeof argument == 'function';
176
166
  };
177
167
 
178
168
  var isCallable$9 = isCallable$a;
179
- var $documentAll = documentAll_1;
180
-
181
- var documentAll = $documentAll.all;
182
169
 
183
- var isObject$5 = $documentAll.IS_HTMLDDA ? function (it) {
184
- return typeof it == 'object' ? it !== null : isCallable$9(it) || it === documentAll;
185
- } : function (it) {
170
+ var isObject$5 = function (it) {
186
171
  return typeof it == 'object' ? it !== null : isCallable$9(it);
187
172
  };
188
173
 
189
- var global$a = global$b;
174
+ var globalThis$b = globalThis_1;
190
175
  var isCallable$8 = isCallable$a;
191
176
 
192
177
  var aFunction = function (argument) {
@@ -194,20 +179,25 @@ var aFunction = function (argument) {
194
179
  };
195
180
 
196
181
  var getBuiltIn$2 = function (namespace, method) {
197
- return arguments.length < 2 ? aFunction(global$a[namespace]) : global$a[namespace] && global$a[namespace][method];
182
+ return arguments.length < 2 ? aFunction(globalThis$b[namespace]) : globalThis$b[namespace] && globalThis$b[namespace][method];
198
183
  };
199
184
 
200
185
  var uncurryThis$7 = functionUncurryThis;
201
186
 
202
187
  var objectIsPrototypeOf = uncurryThis$7({}.isPrototypeOf);
203
188
 
204
- var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
189
+ var globalThis$a = globalThis_1;
190
+
191
+ var navigator = globalThis$a.navigator;
192
+ var userAgent$1 = navigator && navigator.userAgent;
205
193
 
206
- var global$9 = global$b;
207
- var userAgent = engineUserAgent;
194
+ var environmentUserAgent = userAgent$1 ? String(userAgent$1) : '';
208
195
 
209
- var process = global$9.process;
210
- var Deno = global$9.Deno;
196
+ var globalThis$9 = globalThis_1;
197
+ var userAgent = environmentUserAgent;
198
+
199
+ var process = globalThis$9.process;
200
+ var Deno = globalThis$9.Deno;
211
201
  var versions = process && process.versions || Deno && Deno.version;
212
202
  var v8 = versions && versions.v8;
213
203
  var match, version;
@@ -229,14 +219,14 @@ if (!version && userAgent) {
229
219
  }
230
220
  }
231
221
 
232
- var engineV8Version = version;
222
+ var environmentV8Version = version;
233
223
 
234
224
  /* eslint-disable es/no-symbol -- required for testing */
235
- var V8_VERSION = engineV8Version;
225
+ var V8_VERSION = environmentV8Version;
236
226
  var fails$5 = fails$9;
237
- var global$8 = global$b;
227
+ var globalThis$8 = globalThis_1;
238
228
 
239
- var $String$3 = global$8.String;
229
+ var $String$3 = globalThis$8.String;
240
230
 
241
231
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
242
232
  var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$5(function () {
@@ -318,41 +308,41 @@ var ordinaryToPrimitive$1 = function (input, pref) {
318
308
  throw new $TypeError$3("Can't convert object to primitive value");
319
309
  };
320
310
 
321
- var shared$3 = {exports: {}};
311
+ var sharedStore = {exports: {}};
322
312
 
323
- var global$7 = global$b;
313
+ var globalThis$7 = globalThis_1;
324
314
 
325
315
  // eslint-disable-next-line es/no-object-defineproperty -- safe
326
316
  var defineProperty$2 = Object.defineProperty;
327
317
 
328
318
  var defineGlobalProperty$3 = function (key, value) {
329
319
  try {
330
- defineProperty$2(global$7, key, { value: value, configurable: true, writable: true });
320
+ defineProperty$2(globalThis$7, key, { value: value, configurable: true, writable: true });
331
321
  } catch (error) {
332
- global$7[key] = value;
322
+ globalThis$7[key] = value;
333
323
  } return value;
334
324
  };
335
325
 
336
- var global$6 = global$b;
326
+ var globalThis$6 = globalThis_1;
337
327
  var defineGlobalProperty$2 = defineGlobalProperty$3;
338
328
 
339
329
  var SHARED = '__core-js_shared__';
340
- var store$3 = global$6[SHARED] || defineGlobalProperty$2(SHARED, {});
341
-
342
- var sharedStore = store$3;
330
+ var store$3 = sharedStore.exports = globalThis$6[SHARED] || defineGlobalProperty$2(SHARED, {});
343
331
 
344
- var store$2 = sharedStore;
345
-
346
- (shared$3.exports = function (key, value) {
347
- return store$2[key] || (store$2[key] = value !== undefined ? value : {});
348
- })('versions', []).push({
349
- version: '3.33.2',
332
+ (store$3.versions || (store$3.versions = [])).push({
333
+ version: '3.38.1',
350
334
  mode: 'global',
351
- copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
352
- license: 'https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE',
335
+ copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
336
+ license: 'https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE',
353
337
  source: 'https://github.com/zloirock/core-js'
354
338
  });
355
339
 
340
+ var store$2 = sharedStore.exports;
341
+
342
+ var shared$3 = function (key, value) {
343
+ return store$2[key] || (store$2[key] = value || {});
344
+ };
345
+
356
346
  var requireObjectCoercible = requireObjectCoercible$2;
357
347
 
358
348
  var $Object = Object;
@@ -385,14 +375,14 @@ var uid$2 = function (key) {
385
375
  return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
386
376
  };
387
377
 
388
- var global$5 = global$b;
389
- var shared$2 = shared$3.exports;
378
+ var globalThis$5 = globalThis_1;
379
+ var shared$2 = shared$3;
390
380
  var hasOwn$6 = hasOwnProperty_1;
391
381
  var uid$1 = uid$2;
392
382
  var NATIVE_SYMBOL = symbolConstructorDetection;
393
383
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
394
384
 
395
- var Symbol$1 = global$5.Symbol;
385
+ var Symbol$1 = globalThis$5.Symbol;
396
386
  var WellKnownSymbolsStore = shared$2('wks');
397
387
  var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
398
388
 
@@ -440,10 +430,10 @@ var toPropertyKey$2 = function (argument) {
440
430
  return isSymbol(key) ? key : key + '';
441
431
  };
442
432
 
443
- var global$4 = global$b;
433
+ var globalThis$4 = globalThis_1;
444
434
  var isObject$2 = isObject$5;
445
435
 
446
- var document$1 = global$4.document;
436
+ var document$1 = globalThis$4.document;
447
437
  // typeof document.createElement is 'object' in old IE
448
438
  var EXISTS$1 = isObject$2(document$1) && isObject$2(document$1.createElement);
449
439
 
@@ -589,7 +579,7 @@ var functionName = {
589
579
 
590
580
  var uncurryThis$4 = functionUncurryThis;
591
581
  var isCallable$4 = isCallable$a;
592
- var store$1 = sharedStore;
582
+ var store$1 = sharedStore.exports;
593
583
 
594
584
  var functionToString = uncurryThis$4(Function.toString);
595
585
 
@@ -602,14 +592,14 @@ if (!isCallable$4(store$1.inspectSource)) {
602
592
 
603
593
  var inspectSource$1 = store$1.inspectSource;
604
594
 
605
- var global$3 = global$b;
595
+ var globalThis$3 = globalThis_1;
606
596
  var isCallable$3 = isCallable$a;
607
597
 
608
- var WeakMap$1 = global$3.WeakMap;
598
+ var WeakMap$1 = globalThis$3.WeakMap;
609
599
 
610
600
  var weakMapBasicDetection = isCallable$3(WeakMap$1) && /native code/.test(String(WeakMap$1));
611
601
 
612
- var shared$1 = shared$3.exports;
602
+ var shared$1 = shared$3;
613
603
  var uid = uid$2;
614
604
 
615
605
  var keys = shared$1('keys');
@@ -621,17 +611,17 @@ var sharedKey$1 = function (key) {
621
611
  var hiddenKeys$3 = {};
622
612
 
623
613
  var NATIVE_WEAK_MAP = weakMapBasicDetection;
624
- var global$2 = global$b;
614
+ var globalThis$2 = globalThis_1;
625
615
  var isObject = isObject$5;
626
616
  var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
627
617
  var hasOwn$3 = hasOwnProperty_1;
628
- var shared = sharedStore;
618
+ var shared = sharedStore.exports;
629
619
  var sharedKey = sharedKey$1;
630
620
  var hiddenKeys$2 = hiddenKeys$3;
631
621
 
632
622
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
633
- var TypeError$1 = global$2.TypeError;
634
- var WeakMap = global$2.WeakMap;
623
+ var TypeError$1 = globalThis$2.TypeError;
624
+ var WeakMap = globalThis$2.WeakMap;
635
625
  var set, get, has;
636
626
 
637
627
  var enforce = function (it) {
@@ -717,7 +707,7 @@ var TEMPLATE = String(String).split('String');
717
707
 
718
708
  var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
719
709
  if (stringSlice($String(name), 0, 7) === 'Symbol(') {
720
- name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
710
+ name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
721
711
  }
722
712
  if (options && options.getter) name = 'get ' + name;
723
713
  if (options && options.setter) name = 'set ' + name;
@@ -817,7 +807,8 @@ var min = Math.min;
817
807
  // `ToLength` abstract operation
818
808
  // https://tc39.es/ecma262/#sec-tolength
819
809
  var toLength$1 = function (argument) {
820
- return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
810
+ var len = toIntegerOrInfinity(argument);
811
+ return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
821
812
  };
822
813
 
823
814
  var toLength = toLength$1;
@@ -837,6 +828,7 @@ var createMethod = function (IS_INCLUDES) {
837
828
  return function ($this, el, fromIndex) {
838
829
  var O = toIndexedObject$1($this);
839
830
  var length = lengthOfArrayLike(O);
831
+ if (length === 0) return !IS_INCLUDES && -1;
840
832
  var index = toAbsoluteIndex(fromIndex, length);
841
833
  var value;
842
834
  // Array#includes uses SameValueZero equality algorithm
@@ -965,7 +957,7 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
965
957
 
966
958
  var isForced_1 = isForced$1;
967
959
 
968
- var global$1 = global$b;
960
+ var globalThis$1 = globalThis_1;
969
961
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
970
962
  var createNonEnumerableProperty = createNonEnumerableProperty$2;
971
963
  var defineBuiltIn = defineBuiltIn$1;
@@ -994,11 +986,11 @@ var _export = function (options, source) {
994
986
  var STATIC = options.stat;
995
987
  var FORCED, target, key, targetProperty, sourceProperty, descriptor;
996
988
  if (GLOBAL) {
997
- target = global$1;
989
+ target = globalThis$1;
998
990
  } else if (STATIC) {
999
- target = global$1[TARGET] || defineGlobalProperty(TARGET, {});
991
+ target = globalThis$1[TARGET] || defineGlobalProperty(TARGET, {});
1000
992
  } else {
1001
- target = (global$1[TARGET] || {}).prototype;
993
+ target = globalThis$1[TARGET] && globalThis$1[TARGET].prototype;
1002
994
  }
1003
995
  if (target) for (key in source) {
1004
996
  sourceProperty = source[key];
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@bolttech/atoms-button",
3
- "version": "0.26.1",
3
+ "version": "0.27.0",
4
4
  "main": "./index.cjs",
5
5
  "type": "commonjs",
6
6
  "types": "./src/index.d.ts",
7
7
  "dependencies": {
8
- "@bolttech/atoms-icon": "0.22.1",
9
- "@bolttech/default-theme": "0.5.0",
10
- "@bolttech/frontend-foundations": "0.7.0",
11
- "@bolttech/ui-utils": "0.2.4",
8
+ "@bolttech/atoms-icon": "0.23.0",
9
+ "@bolttech/default-theme": "0.8.0",
10
+ "@bolttech/frontend-foundations": "0.9.0",
11
+ "@bolttech/ui-utils": "0.4.0",
12
12
  "react": "18.2.0",
13
13
  "styled-components": "6.1.1"
14
14
  },