@bolttech/atoms-segmented-control 0.19.0 → 0.20.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.
- package/index.cjs +116 -140
- 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$
|
|
23
|
+
var global$d =
|
|
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; })() ||
|
|
32
|
+
(function () { return this; })() || Function('return this')();
|
|
32
33
|
|
|
33
34
|
var objectGetOwnPropertyDescriptor = {};
|
|
34
35
|
|
|
@@ -59,10 +60,10 @@ var functionBindNative = !fails$c(function () {
|
|
|
59
60
|
|
|
60
61
|
var NATIVE_BIND$2 = functionBindNative;
|
|
61
62
|
|
|
62
|
-
var call$
|
|
63
|
+
var call$a = Function.prototype.call;
|
|
63
64
|
|
|
64
|
-
var functionCall = NATIVE_BIND$2 ? call$
|
|
65
|
-
return call$
|
|
65
|
+
var functionCall = NATIVE_BIND$2 ? call$a.bind(call$a) : function () {
|
|
66
|
+
return call$a.apply(call$a, arguments);
|
|
66
67
|
};
|
|
67
68
|
|
|
68
69
|
var objectPropertyIsEnumerable = {};
|
|
@@ -93,30 +94,30 @@ var createPropertyDescriptor$2 = function (bitmap, value) {
|
|
|
93
94
|
var NATIVE_BIND$1 = functionBindNative;
|
|
94
95
|
|
|
95
96
|
var FunctionPrototype$2 = Function.prototype;
|
|
96
|
-
var call$
|
|
97
|
-
var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$2.bind.bind(call$
|
|
97
|
+
var call$9 = FunctionPrototype$2.call;
|
|
98
|
+
var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$2.bind.bind(call$9, call$9);
|
|
98
99
|
|
|
99
100
|
var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
|
|
100
101
|
return function () {
|
|
101
|
-
return call$
|
|
102
|
+
return call$9.apply(fn, arguments);
|
|
102
103
|
};
|
|
103
104
|
};
|
|
104
105
|
|
|
105
|
-
var uncurryThis$
|
|
106
|
+
var uncurryThis$d = functionUncurryThis;
|
|
106
107
|
|
|
107
|
-
var toString$5 = uncurryThis$
|
|
108
|
-
var stringSlice$5 = uncurryThis$
|
|
108
|
+
var toString$5 = uncurryThis$d({}.toString);
|
|
109
|
+
var stringSlice$5 = uncurryThis$d(''.slice);
|
|
109
110
|
|
|
110
|
-
var classofRaw$
|
|
111
|
+
var classofRaw$1 = function (it) {
|
|
111
112
|
return stringSlice$5(toString$5(it), 8, -1);
|
|
112
113
|
};
|
|
113
114
|
|
|
114
|
-
var uncurryThis$
|
|
115
|
+
var uncurryThis$c = functionUncurryThis;
|
|
115
116
|
var fails$b = fails$e;
|
|
116
|
-
var classof$3 = classofRaw$
|
|
117
|
+
var classof$3 = classofRaw$1;
|
|
117
118
|
|
|
118
119
|
var $Object$3 = Object;
|
|
119
|
-
var split = uncurryThis$
|
|
120
|
+
var split = uncurryThis$c(''.split);
|
|
120
121
|
|
|
121
122
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
122
123
|
var indexedObject = fails$b(function () {
|
|
@@ -152,41 +153,25 @@ var toIndexedObject$4 = function (it) {
|
|
|
152
153
|
return IndexedObject$1(requireObjectCoercible$3(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
|
-
|
|
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
|
-
|
|
173
|
-
|
|
161
|
+
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
162
|
+
var isCallable$d = 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$c = isCallable$d;
|
|
179
|
-
var $documentAll = documentAll_1;
|
|
180
|
-
|
|
181
|
-
var documentAll = $documentAll.all;
|
|
182
169
|
|
|
183
|
-
var isObject$5 =
|
|
184
|
-
return typeof it == 'object' ? it !== null : isCallable$c(it) || it === documentAll;
|
|
185
|
-
} : function (it) {
|
|
170
|
+
var isObject$5 = function (it) {
|
|
186
171
|
return typeof it == 'object' ? it !== null : isCallable$c(it);
|
|
187
172
|
};
|
|
188
173
|
|
|
189
|
-
var global$
|
|
174
|
+
var global$c = global$d;
|
|
190
175
|
var isCallable$b = isCallable$d;
|
|
191
176
|
|
|
192
177
|
var aFunction = function (argument) {
|
|
@@ -194,20 +179,20 @@ var aFunction = function (argument) {
|
|
|
194
179
|
};
|
|
195
180
|
|
|
196
181
|
var getBuiltIn$3 = function (namespace, method) {
|
|
197
|
-
return arguments.length < 2 ? aFunction(global$
|
|
182
|
+
return arguments.length < 2 ? aFunction(global$c[namespace]) : global$c[namespace] && global$c[namespace][method];
|
|
198
183
|
};
|
|
199
184
|
|
|
200
|
-
var uncurryThis$
|
|
185
|
+
var uncurryThis$b = functionUncurryThis;
|
|
201
186
|
|
|
202
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
187
|
+
var objectIsPrototypeOf = uncurryThis$b({}.isPrototypeOf);
|
|
203
188
|
|
|
204
189
|
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
205
190
|
|
|
206
|
-
var global$
|
|
191
|
+
var global$b = global$d;
|
|
207
192
|
var userAgent = engineUserAgent;
|
|
208
193
|
|
|
209
|
-
var process = global$
|
|
210
|
-
var Deno = global$
|
|
194
|
+
var process = global$b.process;
|
|
195
|
+
var Deno = global$b.Deno;
|
|
211
196
|
var versions = process && process.versions || Deno && Deno.version;
|
|
212
197
|
var v8 = versions && versions.v8;
|
|
213
198
|
var match, version;
|
|
@@ -234,9 +219,9 @@ var engineV8Version = version;
|
|
|
234
219
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
235
220
|
var V8_VERSION = engineV8Version;
|
|
236
221
|
var fails$a = fails$e;
|
|
237
|
-
var global$
|
|
222
|
+
var global$a = global$d;
|
|
238
223
|
|
|
239
|
-
var $String$4 = global$
|
|
224
|
+
var $String$4 = global$a.String;
|
|
240
225
|
|
|
241
226
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
242
227
|
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$a(function () {
|
|
@@ -302,7 +287,7 @@ var getMethod$2 = function (V, P) {
|
|
|
302
287
|
return isNullOrUndefined$1(func) ? undefined : aCallable(func);
|
|
303
288
|
};
|
|
304
289
|
|
|
305
|
-
var call$
|
|
290
|
+
var call$8 = functionCall;
|
|
306
291
|
var isCallable$8 = isCallable$d;
|
|
307
292
|
var isObject$4 = isObject$5;
|
|
308
293
|
|
|
@@ -312,47 +297,47 @@ var $TypeError$4 = TypeError;
|
|
|
312
297
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
313
298
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
314
299
|
var fn, val;
|
|
315
|
-
if (pref === 'string' && isCallable$8(fn = input.toString) && !isObject$4(val = call$
|
|
316
|
-
if (isCallable$8(fn = input.valueOf) && !isObject$4(val = call$
|
|
317
|
-
if (pref !== 'string' && isCallable$8(fn = input.toString) && !isObject$4(val = call$
|
|
300
|
+
if (pref === 'string' && isCallable$8(fn = input.toString) && !isObject$4(val = call$8(fn, input))) return val;
|
|
301
|
+
if (isCallable$8(fn = input.valueOf) && !isObject$4(val = call$8(fn, input))) return val;
|
|
302
|
+
if (pref !== 'string' && isCallable$8(fn = input.toString) && !isObject$4(val = call$8(fn, input))) return val;
|
|
318
303
|
throw new $TypeError$4("Can't convert object to primitive value");
|
|
319
304
|
};
|
|
320
305
|
|
|
321
|
-
var
|
|
306
|
+
var sharedStore = {exports: {}};
|
|
322
307
|
|
|
323
|
-
var global$
|
|
308
|
+
var global$9 = global$d;
|
|
324
309
|
|
|
325
310
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
326
311
|
var defineProperty$2 = Object.defineProperty;
|
|
327
312
|
|
|
328
313
|
var defineGlobalProperty$3 = function (key, value) {
|
|
329
314
|
try {
|
|
330
|
-
defineProperty$2(global$
|
|
315
|
+
defineProperty$2(global$9, key, { value: value, configurable: true, writable: true });
|
|
331
316
|
} catch (error) {
|
|
332
|
-
global$
|
|
317
|
+
global$9[key] = value;
|
|
333
318
|
} return value;
|
|
334
319
|
};
|
|
335
320
|
|
|
336
|
-
var
|
|
321
|
+
var globalThis$1 = global$d;
|
|
337
322
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
338
323
|
|
|
339
324
|
var SHARED = '__core-js_shared__';
|
|
340
|
-
var store$3 =
|
|
325
|
+
var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
341
326
|
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
var store$2 = sharedStore;
|
|
345
|
-
|
|
346
|
-
(shared$4.exports = function (key, value) {
|
|
347
|
-
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
348
|
-
})('versions', []).push({
|
|
349
|
-
version: '3.33.2',
|
|
327
|
+
(store$3.versions || (store$3.versions = [])).push({
|
|
328
|
+
version: '3.37.1',
|
|
350
329
|
mode: 'global',
|
|
351
|
-
copyright: '© 2014-
|
|
352
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
330
|
+
copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
|
|
331
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE',
|
|
353
332
|
source: 'https://github.com/zloirock/core-js'
|
|
354
333
|
});
|
|
355
334
|
|
|
335
|
+
var store$2 = sharedStore.exports;
|
|
336
|
+
|
|
337
|
+
var shared$4 = function (key, value) {
|
|
338
|
+
return store$2[key] || (store$2[key] = value || {});
|
|
339
|
+
};
|
|
340
|
+
|
|
356
341
|
var requireObjectCoercible$2 = requireObjectCoercible$4;
|
|
357
342
|
|
|
358
343
|
var $Object$1 = Object;
|
|
@@ -363,10 +348,10 @@ var toObject$3 = function (argument) {
|
|
|
363
348
|
return $Object$1(requireObjectCoercible$2(argument));
|
|
364
349
|
};
|
|
365
350
|
|
|
366
|
-
var uncurryThis$
|
|
351
|
+
var uncurryThis$a = functionUncurryThis;
|
|
367
352
|
var toObject$2 = toObject$3;
|
|
368
353
|
|
|
369
|
-
var hasOwnProperty = uncurryThis$
|
|
354
|
+
var hasOwnProperty = uncurryThis$a({}.hasOwnProperty);
|
|
370
355
|
|
|
371
356
|
// `HasOwnProperty` abstract operation
|
|
372
357
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
@@ -375,18 +360,18 @@ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
|
375
360
|
return hasOwnProperty(toObject$2(it), key);
|
|
376
361
|
};
|
|
377
362
|
|
|
378
|
-
var uncurryThis$
|
|
363
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
379
364
|
|
|
380
365
|
var id = 0;
|
|
381
366
|
var postfix = Math.random();
|
|
382
|
-
var toString$4 = uncurryThis$
|
|
367
|
+
var toString$4 = uncurryThis$9(1.0.toString);
|
|
383
368
|
|
|
384
369
|
var uid$2 = function (key) {
|
|
385
370
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$4(++id + postfix, 36);
|
|
386
371
|
};
|
|
387
372
|
|
|
388
|
-
var global$8 = global$
|
|
389
|
-
var shared$3 = shared$4
|
|
373
|
+
var global$8 = global$d;
|
|
374
|
+
var shared$3 = shared$4;
|
|
390
375
|
var hasOwn$6 = hasOwnProperty_1;
|
|
391
376
|
var uid$1 = uid$2;
|
|
392
377
|
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
@@ -404,7 +389,7 @@ var wellKnownSymbol$5 = function (name) {
|
|
|
404
389
|
} return WellKnownSymbolsStore[name];
|
|
405
390
|
};
|
|
406
391
|
|
|
407
|
-
var call$
|
|
392
|
+
var call$7 = functionCall;
|
|
408
393
|
var isObject$3 = isObject$5;
|
|
409
394
|
var isSymbol$1 = isSymbol$2;
|
|
410
395
|
var getMethod$1 = getMethod$2;
|
|
@@ -422,7 +407,7 @@ var toPrimitive$1 = function (input, pref) {
|
|
|
422
407
|
var result;
|
|
423
408
|
if (exoticToPrim) {
|
|
424
409
|
if (pref === undefined) pref = 'default';
|
|
425
|
-
result = call$
|
|
410
|
+
result = call$7(exoticToPrim, input, pref);
|
|
426
411
|
if (!isObject$3(result) || isSymbol$1(result)) return result;
|
|
427
412
|
throw new $TypeError$3("Can't convert object to primitive value");
|
|
428
413
|
}
|
|
@@ -440,7 +425,7 @@ var toPropertyKey$2 = function (argument) {
|
|
|
440
425
|
return isSymbol(key) ? key : key + '';
|
|
441
426
|
};
|
|
442
427
|
|
|
443
|
-
var global$7 = global$
|
|
428
|
+
var global$7 = global$d;
|
|
444
429
|
var isObject$2 = isObject$5;
|
|
445
430
|
|
|
446
431
|
var document$1 = global$7.document;
|
|
@@ -464,7 +449,7 @@ var ie8DomDefine = !DESCRIPTORS$8 && !fails$9(function () {
|
|
|
464
449
|
});
|
|
465
450
|
|
|
466
451
|
var DESCRIPTORS$7 = descriptors;
|
|
467
|
-
var call$
|
|
452
|
+
var call$6 = functionCall;
|
|
468
453
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
469
454
|
var createPropertyDescriptor$1 = createPropertyDescriptor$2;
|
|
470
455
|
var toIndexedObject$3 = toIndexedObject$4;
|
|
@@ -483,7 +468,7 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? $getOwnPropertyDescriptor$1 :
|
|
|
483
468
|
if (IE8_DOM_DEFINE$1) try {
|
|
484
469
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
485
470
|
} catch (error) { /* empty */ }
|
|
486
|
-
if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$
|
|
471
|
+
if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$6(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
487
472
|
};
|
|
488
473
|
|
|
489
474
|
var objectDefineProperty = {};
|
|
@@ -587,11 +572,11 @@ var functionName = {
|
|
|
587
572
|
CONFIGURABLE: CONFIGURABLE
|
|
588
573
|
};
|
|
589
574
|
|
|
590
|
-
var uncurryThis$
|
|
575
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
591
576
|
var isCallable$7 = isCallable$d;
|
|
592
|
-
var store$1 = sharedStore;
|
|
577
|
+
var store$1 = sharedStore.exports;
|
|
593
578
|
|
|
594
|
-
var functionToString = uncurryThis$
|
|
579
|
+
var functionToString = uncurryThis$8(Function.toString);
|
|
595
580
|
|
|
596
581
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
597
582
|
if (!isCallable$7(store$1.inspectSource)) {
|
|
@@ -602,14 +587,14 @@ if (!isCallable$7(store$1.inspectSource)) {
|
|
|
602
587
|
|
|
603
588
|
var inspectSource$1 = store$1.inspectSource;
|
|
604
589
|
|
|
605
|
-
var global$6 = global$
|
|
590
|
+
var global$6 = global$d;
|
|
606
591
|
var isCallable$6 = isCallable$d;
|
|
607
592
|
|
|
608
593
|
var WeakMap$1 = global$6.WeakMap;
|
|
609
594
|
|
|
610
595
|
var weakMapBasicDetection = isCallable$6(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
611
596
|
|
|
612
|
-
var shared$2 = shared$4
|
|
597
|
+
var shared$2 = shared$4;
|
|
613
598
|
var uid = uid$2;
|
|
614
599
|
|
|
615
600
|
var keys = shared$2('keys');
|
|
@@ -621,11 +606,11 @@ var sharedKey$2 = function (key) {
|
|
|
621
606
|
var hiddenKeys$4 = {};
|
|
622
607
|
|
|
623
608
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
624
|
-
var global$5 = global$
|
|
609
|
+
var global$5 = global$d;
|
|
625
610
|
var isObject = isObject$5;
|
|
626
611
|
var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
|
|
627
612
|
var hasOwn$3 = hasOwnProperty_1;
|
|
628
|
-
var shared$1 = sharedStore;
|
|
613
|
+
var shared$1 = sharedStore.exports;
|
|
629
614
|
var sharedKey$1 = sharedKey$2;
|
|
630
615
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
631
616
|
|
|
@@ -691,7 +676,7 @@ var internalState = {
|
|
|
691
676
|
getterFor: getterFor
|
|
692
677
|
};
|
|
693
678
|
|
|
694
|
-
var uncurryThis$
|
|
679
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
695
680
|
var fails$7 = fails$e;
|
|
696
681
|
var isCallable$5 = isCallable$d;
|
|
697
682
|
var hasOwn$2 = hasOwnProperty_1;
|
|
@@ -705,9 +690,9 @@ var getInternalState$1 = InternalStateModule.get;
|
|
|
705
690
|
var $String$1 = String;
|
|
706
691
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
707
692
|
var defineProperty$1 = Object.defineProperty;
|
|
708
|
-
var stringSlice$4 = uncurryThis$
|
|
709
|
-
var replace$2 = uncurryThis$
|
|
710
|
-
var join = uncurryThis$
|
|
693
|
+
var stringSlice$4 = uncurryThis$7(''.slice);
|
|
694
|
+
var replace$2 = uncurryThis$7(''.replace);
|
|
695
|
+
var join = uncurryThis$7([].join);
|
|
711
696
|
|
|
712
697
|
var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$7(function () {
|
|
713
698
|
return defineProperty$1(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
@@ -717,7 +702,7 @@ var TEMPLATE = String(String).split('String');
|
|
|
717
702
|
|
|
718
703
|
var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
719
704
|
if (stringSlice$4($String$1(name), 0, 7) === 'Symbol(') {
|
|
720
|
-
name = '[' + replace$2($String$1(name), /^Symbol\(([^)]*)\)
|
|
705
|
+
name = '[' + replace$2($String$1(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
|
|
721
706
|
}
|
|
722
707
|
if (options && options.getter) name = 'get ' + name;
|
|
723
708
|
if (options && options.setter) name = 'set ' + name;
|
|
@@ -817,7 +802,8 @@ var min$1 = Math.min;
|
|
|
817
802
|
// `ToLength` abstract operation
|
|
818
803
|
// https://tc39.es/ecma262/#sec-tolength
|
|
819
804
|
var toLength$2 = function (argument) {
|
|
820
|
-
|
|
805
|
+
var len = toIntegerOrInfinity$2(argument);
|
|
806
|
+
return len > 0 ? min$1(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
821
807
|
};
|
|
822
808
|
|
|
823
809
|
var toLength$1 = toLength$2;
|
|
@@ -837,6 +823,7 @@ var createMethod$1 = function (IS_INCLUDES) {
|
|
|
837
823
|
return function ($this, el, fromIndex) {
|
|
838
824
|
var O = toIndexedObject$2($this);
|
|
839
825
|
var length = lengthOfArrayLike(O);
|
|
826
|
+
if (length === 0) return !IS_INCLUDES && -1;
|
|
840
827
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
841
828
|
var value;
|
|
842
829
|
// Array#includes uses SameValueZero equality algorithm
|
|
@@ -861,13 +848,13 @@ var arrayIncludes = {
|
|
|
861
848
|
indexOf: createMethod$1(false)
|
|
862
849
|
};
|
|
863
850
|
|
|
864
|
-
var uncurryThis$
|
|
851
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
865
852
|
var hasOwn$1 = hasOwnProperty_1;
|
|
866
853
|
var toIndexedObject$1 = toIndexedObject$4;
|
|
867
854
|
var indexOf$1 = arrayIncludes.indexOf;
|
|
868
855
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
869
856
|
|
|
870
|
-
var push$1 = uncurryThis$
|
|
857
|
+
var push$1 = uncurryThis$6([].push);
|
|
871
858
|
|
|
872
859
|
var objectKeysInternal = function (object, names) {
|
|
873
860
|
var O = toIndexedObject$1(object);
|
|
@@ -911,12 +898,12 @@ var objectGetOwnPropertySymbols = {};
|
|
|
911
898
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
912
899
|
|
|
913
900
|
var getBuiltIn$1 = getBuiltIn$3;
|
|
914
|
-
var uncurryThis$
|
|
901
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
915
902
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
916
903
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
917
904
|
var anObject$5 = anObject$7;
|
|
918
905
|
|
|
919
|
-
var concat$2 = uncurryThis$
|
|
906
|
+
var concat$2 = uncurryThis$5([].concat);
|
|
920
907
|
|
|
921
908
|
// all object keys, includes non-enumerable and symbols
|
|
922
909
|
var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
@@ -965,7 +952,7 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
|
965
952
|
|
|
966
953
|
var isForced_1 = isForced$1;
|
|
967
954
|
|
|
968
|
-
var global$4 = global$
|
|
955
|
+
var global$4 = global$d;
|
|
969
956
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
970
957
|
var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
|
|
971
958
|
var defineBuiltIn$1 = defineBuiltIn$2;
|
|
@@ -998,7 +985,7 @@ var _export = function (options, source) {
|
|
|
998
985
|
} else if (STATIC) {
|
|
999
986
|
target = global$4[TARGET] || defineGlobalProperty(TARGET, {});
|
|
1000
987
|
} else {
|
|
1001
|
-
target =
|
|
988
|
+
target = global$4[TARGET] && global$4[TARGET].prototype;
|
|
1002
989
|
}
|
|
1003
990
|
if (target) for (key in source) {
|
|
1004
991
|
sourceProperty = source[key];
|
|
@@ -1031,8 +1018,8 @@ var objectKeys$2 = Object.keys || function keys(O) {
|
|
|
1031
1018
|
};
|
|
1032
1019
|
|
|
1033
1020
|
var DESCRIPTORS$1 = descriptors;
|
|
1034
|
-
var uncurryThis$
|
|
1035
|
-
var call$
|
|
1021
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
1022
|
+
var call$5 = functionCall;
|
|
1036
1023
|
var fails$5 = fails$e;
|
|
1037
1024
|
var objectKeys$1 = objectKeys$2;
|
|
1038
1025
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
@@ -1044,7 +1031,7 @@ var IndexedObject = indexedObject;
|
|
|
1044
1031
|
var $assign = Object.assign;
|
|
1045
1032
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1046
1033
|
var defineProperty = Object.defineProperty;
|
|
1047
|
-
var concat$1 = uncurryThis$
|
|
1034
|
+
var concat$1 = uncurryThis$4([].concat);
|
|
1048
1035
|
|
|
1049
1036
|
// `Object.assign` method
|
|
1050
1037
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
@@ -1082,7 +1069,7 @@ var objectAssign = !$assign || fails$5(function () {
|
|
|
1082
1069
|
var key;
|
|
1083
1070
|
while (length > j) {
|
|
1084
1071
|
key = keys[j++];
|
|
1085
|
-
if (!DESCRIPTORS$1 || call$
|
|
1072
|
+
if (!DESCRIPTORS$1 || call$5(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
1086
1073
|
}
|
|
1087
1074
|
} return T;
|
|
1088
1075
|
} : $assign;
|
|
@@ -1140,14 +1127,14 @@ var toStringTagSupport = String(test) === '[object z]';
|
|
|
1140
1127
|
|
|
1141
1128
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1142
1129
|
var isCallable$2 = isCallable$d;
|
|
1143
|
-
var classofRaw
|
|
1130
|
+
var classofRaw = classofRaw$1;
|
|
1144
1131
|
var wellKnownSymbol$2 = wellKnownSymbol$5;
|
|
1145
1132
|
|
|
1146
1133
|
var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
|
|
1147
1134
|
var $Object = Object;
|
|
1148
1135
|
|
|
1149
1136
|
// ES3 wrong here
|
|
1150
|
-
var CORRECT_ARGUMENTS = classofRaw
|
|
1137
|
+
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
|
|
1151
1138
|
|
|
1152
1139
|
// fallback for IE11 Script Access Denied error
|
|
1153
1140
|
var tryGet = function (it, key) {
|
|
@@ -1157,15 +1144,15 @@ var tryGet = function (it, key) {
|
|
|
1157
1144
|
};
|
|
1158
1145
|
|
|
1159
1146
|
// getting tag from ES6+ `Object.prototype.toString`
|
|
1160
|
-
var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw
|
|
1147
|
+
var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
1161
1148
|
var O, tag, result;
|
|
1162
1149
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1163
1150
|
// @@toStringTag case
|
|
1164
1151
|
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
|
|
1165
1152
|
// builtinTag case
|
|
1166
|
-
: CORRECT_ARGUMENTS ? classofRaw
|
|
1153
|
+
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
1167
1154
|
// ES3 arguments fallback
|
|
1168
|
-
: (result = classofRaw
|
|
1155
|
+
: (result = classofRaw(O)) === 'Object' && isCallable$2(O.callee) ? 'Arguments' : result;
|
|
1169
1156
|
};
|
|
1170
1157
|
|
|
1171
1158
|
var classof$1 = classof$2;
|
|
@@ -1196,7 +1183,7 @@ var regexpFlags$1 = function () {
|
|
|
1196
1183
|
};
|
|
1197
1184
|
|
|
1198
1185
|
var fails$4 = fails$e;
|
|
1199
|
-
var global$3 = global$
|
|
1186
|
+
var global$3 = global$d;
|
|
1200
1187
|
|
|
1201
1188
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
1202
1189
|
var $RegExp$2 = global$3.RegExp;
|
|
@@ -1338,7 +1325,7 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
1338
1325
|
};
|
|
1339
1326
|
|
|
1340
1327
|
var fails$3 = fails$e;
|
|
1341
|
-
var global$2 = global$
|
|
1328
|
+
var global$2 = global$d;
|
|
1342
1329
|
|
|
1343
1330
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
1344
1331
|
var $RegExp$1 = global$2.RegExp;
|
|
@@ -1349,7 +1336,7 @@ var regexpUnsupportedDotAll = fails$3(function () {
|
|
|
1349
1336
|
});
|
|
1350
1337
|
|
|
1351
1338
|
var fails$2 = fails$e;
|
|
1352
|
-
var global$1 = global$
|
|
1339
|
+
var global$1 = global$d;
|
|
1353
1340
|
|
|
1354
1341
|
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
1355
1342
|
var $RegExp = global$1.RegExp;
|
|
@@ -1362,12 +1349,12 @@ var regexpUnsupportedNcg = fails$2(function () {
|
|
|
1362
1349
|
|
|
1363
1350
|
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
1364
1351
|
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
1365
|
-
var call$
|
|
1366
|
-
var uncurryThis$
|
|
1352
|
+
var call$4 = functionCall;
|
|
1353
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
1367
1354
|
var toString$2 = toString$3;
|
|
1368
1355
|
var regexpFlags = regexpFlags$1;
|
|
1369
1356
|
var stickyHelpers = regexpStickyHelpers;
|
|
1370
|
-
var shared = shared$4
|
|
1357
|
+
var shared = shared$4;
|
|
1371
1358
|
var create = objectCreate;
|
|
1372
1359
|
var getInternalState = internalState.get;
|
|
1373
1360
|
var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
|
|
@@ -1376,16 +1363,16 @@ var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
|
|
1376
1363
|
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
1377
1364
|
var nativeExec = RegExp.prototype.exec;
|
|
1378
1365
|
var patchedExec = nativeExec;
|
|
1379
|
-
var charAt$3 = uncurryThis$
|
|
1380
|
-
var indexOf = uncurryThis$
|
|
1381
|
-
var replace$1 = uncurryThis$
|
|
1382
|
-
var stringSlice$3 = uncurryThis$
|
|
1366
|
+
var charAt$3 = uncurryThis$3(''.charAt);
|
|
1367
|
+
var indexOf = uncurryThis$3(''.indexOf);
|
|
1368
|
+
var replace$1 = uncurryThis$3(''.replace);
|
|
1369
|
+
var stringSlice$3 = uncurryThis$3(''.slice);
|
|
1383
1370
|
|
|
1384
1371
|
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
1385
1372
|
var re1 = /a/;
|
|
1386
1373
|
var re2 = /b*/g;
|
|
1387
|
-
call$
|
|
1388
|
-
call$
|
|
1374
|
+
call$4(nativeExec, re1, 'a');
|
|
1375
|
+
call$4(nativeExec, re2, 'a');
|
|
1389
1376
|
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
1390
1377
|
})();
|
|
1391
1378
|
|
|
@@ -1406,14 +1393,14 @@ if (PATCH) {
|
|
|
1406
1393
|
|
|
1407
1394
|
if (raw) {
|
|
1408
1395
|
raw.lastIndex = re.lastIndex;
|
|
1409
|
-
result = call$
|
|
1396
|
+
result = call$4(patchedExec, raw, str);
|
|
1410
1397
|
re.lastIndex = raw.lastIndex;
|
|
1411
1398
|
return result;
|
|
1412
1399
|
}
|
|
1413
1400
|
|
|
1414
1401
|
var groups = state.groups;
|
|
1415
1402
|
var sticky = UNSUPPORTED_Y && re.sticky;
|
|
1416
|
-
var flags = call$
|
|
1403
|
+
var flags = call$4(regexpFlags, re);
|
|
1417
1404
|
var source = re.source;
|
|
1418
1405
|
var charsAdded = 0;
|
|
1419
1406
|
var strCopy = str;
|
|
@@ -1441,7 +1428,7 @@ if (PATCH) {
|
|
|
1441
1428
|
}
|
|
1442
1429
|
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
1443
1430
|
|
|
1444
|
-
match = call$
|
|
1431
|
+
match = call$4(nativeExec, sticky ? reCopy : re, strCopy);
|
|
1445
1432
|
|
|
1446
1433
|
if (sticky) {
|
|
1447
1434
|
if (match) {
|
|
@@ -1456,7 +1443,7 @@ if (PATCH) {
|
|
|
1456
1443
|
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
1457
1444
|
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
1458
1445
|
// for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
|
|
1459
|
-
call$
|
|
1446
|
+
call$4(nativeReplace, match[0], reCopy, function () {
|
|
1460
1447
|
for (i = 1; i < arguments.length - 2; i++) {
|
|
1461
1448
|
if (arguments[i] === undefined) match[i] = undefined;
|
|
1462
1449
|
}
|
|
@@ -1490,26 +1477,16 @@ var NATIVE_BIND = functionBindNative;
|
|
|
1490
1477
|
|
|
1491
1478
|
var FunctionPrototype = Function.prototype;
|
|
1492
1479
|
var apply$1 = FunctionPrototype.apply;
|
|
1493
|
-
var call$
|
|
1480
|
+
var call$3 = FunctionPrototype.call;
|
|
1494
1481
|
|
|
1495
1482
|
// eslint-disable-next-line es/no-reflect -- safe
|
|
1496
|
-
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$
|
|
1497
|
-
return call$
|
|
1483
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$3.bind(apply$1) : function () {
|
|
1484
|
+
return call$3.apply(apply$1, arguments);
|
|
1498
1485
|
});
|
|
1499
1486
|
|
|
1500
|
-
var classofRaw = classofRaw$2;
|
|
1501
|
-
var uncurryThis$4 = functionUncurryThis;
|
|
1502
|
-
|
|
1503
|
-
var functionUncurryThisClause = function (fn) {
|
|
1504
|
-
// Nashorn bug:
|
|
1505
|
-
// https://github.com/zloirock/core-js/issues/1128
|
|
1506
|
-
// https://github.com/zloirock/core-js/issues/1130
|
|
1507
|
-
if (classofRaw(fn) === 'Function') return uncurryThis$4(fn);
|
|
1508
|
-
};
|
|
1509
|
-
|
|
1510
1487
|
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
1511
1488
|
|
|
1512
|
-
var
|
|
1489
|
+
var call$2 = functionCall;
|
|
1513
1490
|
var defineBuiltIn = defineBuiltIn$2;
|
|
1514
1491
|
var regexpExec$1 = regexpExec$2;
|
|
1515
1492
|
var fails$1 = fails$e;
|
|
@@ -1523,7 +1500,7 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
|
1523
1500
|
var SYMBOL = wellKnownSymbol$1(KEY);
|
|
1524
1501
|
|
|
1525
1502
|
var DELEGATES_TO_SYMBOL = !fails$1(function () {
|
|
1526
|
-
// String methods call symbol-named
|
|
1503
|
+
// String methods call symbol-named RegExp methods
|
|
1527
1504
|
var O = {};
|
|
1528
1505
|
O[SYMBOL] = function () { return 7; };
|
|
1529
1506
|
return ''[KEY](O) !== 7;
|
|
@@ -1561,18 +1538,17 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
|
1561
1538
|
!DELEGATES_TO_EXEC ||
|
|
1562
1539
|
FORCED
|
|
1563
1540
|
) {
|
|
1564
|
-
var
|
|
1541
|
+
var nativeRegExpMethod = /./[SYMBOL];
|
|
1565
1542
|
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
|
1566
|
-
var uncurriedNativeMethod = uncurryThis$3(nativeMethod);
|
|
1567
1543
|
var $exec = regexp.exec;
|
|
1568
1544
|
if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
|
|
1569
1545
|
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
|
1570
1546
|
// The native String method already delegates to @@method (this
|
|
1571
1547
|
// polyfilled function), leasing to infinite recursion.
|
|
1572
1548
|
// We avoid it by directly calling the native @@method method.
|
|
1573
|
-
return { done: true, value:
|
|
1549
|
+
return { done: true, value: call$2(nativeRegExpMethod, regexp, str, arg2) };
|
|
1574
1550
|
}
|
|
1575
|
-
return { done: true, value:
|
|
1551
|
+
return { done: true, value: call$2(nativeMethod, str, regexp, arg2) };
|
|
1576
1552
|
}
|
|
1577
1553
|
return { done: false };
|
|
1578
1554
|
});
|
|
@@ -1678,7 +1654,7 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
|
|
|
1678
1654
|
var call$1 = functionCall;
|
|
1679
1655
|
var anObject$1 = anObject$7;
|
|
1680
1656
|
var isCallable$1 = isCallable$d;
|
|
1681
|
-
var classof = classofRaw$
|
|
1657
|
+
var classof = classofRaw$1;
|
|
1682
1658
|
var regexpExec = regexpExec$2;
|
|
1683
1659
|
|
|
1684
1660
|
var $TypeError = TypeError;
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bolttech/atoms-segmented-control",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"main": "./index.cjs",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"types": "./src/index.d.ts",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@bolttech/default-theme": "0.
|
|
9
|
-
"@bolttech/form-engine": "0.
|
|
10
|
-
"@bolttech/frontend-foundations": "0.
|
|
11
|
-
"@bolttech/ui-utils": "0.
|
|
8
|
+
"@bolttech/default-theme": "0.7.0",
|
|
9
|
+
"@bolttech/form-engine": "3.0.1-beta.5",
|
|
10
|
+
"@bolttech/frontend-foundations": "0.8.2",
|
|
11
|
+
"@bolttech/ui-utils": "0.3.0",
|
|
12
12
|
"react": "18.2.0",
|
|
13
13
|
"styled-components": "6.1.1"
|
|
14
14
|
},
|