@bolttech/atoms-segmented-control 0.1.2 → 0.1.3

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.js +98 -91
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -33,21 +33,21 @@ var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
33
33
  };
34
34
  };
35
35
 
36
- var uncurryThis$9 = functionUncurryThis;
36
+ var uncurryThis$a = functionUncurryThis;
37
37
 
38
- var toString$1 = uncurryThis$9({}.toString);
39
- var stringSlice = uncurryThis$9(''.slice);
38
+ var toString$1 = uncurryThis$a({}.toString);
39
+ var stringSlice$1 = uncurryThis$a(''.slice);
40
40
 
41
41
  var classofRaw = function (it) {
42
- return stringSlice(toString$1(it), 8, -1);
42
+ return stringSlice$1(toString$1(it), 8, -1);
43
43
  };
44
44
 
45
- var uncurryThis$8 = functionUncurryThis;
45
+ var uncurryThis$9 = functionUncurryThis;
46
46
  var fails$9 = fails$b;
47
47
  var classof = classofRaw;
48
48
 
49
49
  var $Object$3 = Object;
50
- var split = uncurryThis$8(''.split);
50
+ var split = uncurryThis$9(''.split);
51
51
 
52
52
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
53
53
  var indexedObject = fails$9(function () {
@@ -126,10 +126,10 @@ var store$2 = sharedStore;
126
126
  (shared$3.exports = function (key, value) {
127
127
  return store$2[key] || (store$2[key] = value !== undefined ? value : {});
128
128
  })('versions', []).push({
129
- version: '3.26.1',
129
+ version: '3.29.1',
130
130
  mode: 'global',
131
- copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
132
- license: 'https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE',
131
+ copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
132
+ license: 'https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE',
133
133
  source: 'https://github.com/zloirock/core-js'
134
134
  });
135
135
 
@@ -143,10 +143,10 @@ var toObject$3 = function (argument) {
143
143
  return $Object$2(requireObjectCoercible(argument));
144
144
  };
145
145
 
146
- var uncurryThis$7 = functionUncurryThis;
146
+ var uncurryThis$8 = functionUncurryThis;
147
147
  var toObject$2 = toObject$3;
148
148
 
149
- var hasOwnProperty = uncurryThis$7({}.hasOwnProperty);
149
+ var hasOwnProperty = uncurryThis$8({}.hasOwnProperty);
150
150
 
151
151
  // `HasOwnProperty` abstract operation
152
152
  // https://tc39.es/ecma262/#sec-hasownproperty
@@ -155,58 +155,23 @@ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
155
155
  return hasOwnProperty(toObject$2(it), key);
156
156
  };
157
157
 
158
- var uncurryThis$6 = functionUncurryThis;
158
+ var uncurryThis$7 = functionUncurryThis;
159
159
 
160
160
  var id = 0;
161
161
  var postfix = Math.random();
162
- var toString = uncurryThis$6(1.0.toString);
162
+ var toString = uncurryThis$7(1.0.toString);
163
163
 
164
164
  var uid$2 = function (key) {
165
165
  return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
166
166
  };
167
167
 
168
- var documentAll$2 = typeof document == 'object' && document.all;
169
-
170
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
171
- var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
172
-
173
- var documentAll_1 = {
174
- all: documentAll$2,
175
- IS_HTMLDDA: IS_HTMLDDA
176
- };
177
-
178
- var $documentAll$1 = documentAll_1;
179
-
180
- var documentAll$1 = $documentAll$1.all;
181
-
182
- // `IsCallable` abstract operation
183
- // https://tc39.es/ecma262/#sec-iscallable
184
- var isCallable$e = $documentAll$1.IS_HTMLDDA ? function (argument) {
185
- return typeof argument == 'function' || argument === documentAll$1;
186
- } : function (argument) {
187
- return typeof argument == 'function';
188
- };
168
+ var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
189
169
 
190
170
  var global$8 = global$b;
191
- var isCallable$d = isCallable$e;
192
-
193
- var aFunction = function (argument) {
194
- return isCallable$d(argument) ? argument : undefined;
195
- };
196
-
197
- var getBuiltIn$4 = function (namespace, method) {
198
- return arguments.length < 2 ? aFunction(global$8[namespace]) : global$8[namespace] && global$8[namespace][method];
199
- };
200
-
201
- var getBuiltIn$3 = getBuiltIn$4;
202
-
203
- var engineUserAgent = getBuiltIn$3('navigator', 'userAgent') || '';
204
-
205
- var global$7 = global$b;
206
171
  var userAgent = engineUserAgent;
207
172
 
208
- var process = global$7.process;
209
- var Deno = global$7.Deno;
173
+ var process = global$8.process;
174
+ var Deno = global$8.Deno;
210
175
  var versions = process && process.versions || Deno && Deno.version;
211
176
  var v8 = versions && versions.v8;
212
177
  var match, version;
@@ -253,51 +218,68 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
253
218
  && !Symbol.sham
254
219
  && typeof Symbol.iterator == 'symbol';
255
220
 
256
- var global$6 = global$b;
221
+ var global$7 = global$b;
257
222
  var shared$2 = shared$3.exports;
258
223
  var hasOwn$8 = hasOwnProperty_1;
259
224
  var uid$1 = uid$2;
260
225
  var NATIVE_SYMBOL = symbolConstructorDetection;
261
226
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
262
227
 
228
+ var Symbol$1 = global$7.Symbol;
263
229
  var WellKnownSymbolsStore = shared$2('wks');
264
- var Symbol$1 = global$6.Symbol;
265
- var symbolFor = Symbol$1 && Symbol$1['for'];
266
- var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
230
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
267
231
 
268
232
  var wellKnownSymbol$6 = function (name) {
269
- if (!hasOwn$8(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
270
- var description = 'Symbol.' + name;
271
- if (NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)) {
272
- WellKnownSymbolsStore[name] = Symbol$1[name];
273
- } else if (USE_SYMBOL_AS_UID$1 && symbolFor) {
274
- WellKnownSymbolsStore[name] = symbolFor(description);
275
- } else {
276
- WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
277
- }
233
+ if (!hasOwn$8(WellKnownSymbolsStore, name)) {
234
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)
235
+ ? Symbol$1[name]
236
+ : createWellKnownSymbol('Symbol.' + name);
278
237
  } return WellKnownSymbolsStore[name];
279
238
  };
280
239
 
281
- var isCallable$c = isCallable$e;
240
+ var documentAll$2 = typeof document == 'object' && document.all;
241
+
242
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
243
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
244
+ var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
245
+
246
+ var documentAll_1 = {
247
+ all: documentAll$2,
248
+ IS_HTMLDDA: IS_HTMLDDA
249
+ };
250
+
251
+ var $documentAll$1 = documentAll_1;
252
+
253
+ var documentAll$1 = $documentAll$1.all;
254
+
255
+ // `IsCallable` abstract operation
256
+ // https://tc39.es/ecma262/#sec-iscallable
257
+ var isCallable$e = $documentAll$1.IS_HTMLDDA ? function (argument) {
258
+ return typeof argument == 'function' || argument === documentAll$1;
259
+ } : function (argument) {
260
+ return typeof argument == 'function';
261
+ };
262
+
263
+ var isCallable$d = isCallable$e;
282
264
  var $documentAll = documentAll_1;
283
265
 
284
266
  var documentAll = $documentAll.all;
285
267
 
286
268
  var isObject$6 = $documentAll.IS_HTMLDDA ? function (it) {
287
- return typeof it == 'object' ? it !== null : isCallable$c(it) || it === documentAll;
269
+ return typeof it == 'object' ? it !== null : isCallable$d(it) || it === documentAll;
288
270
  } : function (it) {
289
- return typeof it == 'object' ? it !== null : isCallable$c(it);
271
+ return typeof it == 'object' ? it !== null : isCallable$d(it);
290
272
  };
291
273
 
292
274
  var isObject$5 = isObject$6;
293
275
 
294
- var $String$2 = String;
276
+ var $String$3 = String;
295
277
  var $TypeError$5 = TypeError;
296
278
 
297
279
  // `Assert: Type(argument) is Object`
298
280
  var anObject$5 = function (argument) {
299
281
  if (isObject$5(argument)) return argument;
300
- throw $TypeError$5($String$2(argument) + ' is not an object');
282
+ throw $TypeError$5($String$3(argument) + ' is not an object');
301
283
  };
302
284
 
303
285
  var objectDefineProperties = {};
@@ -325,10 +307,10 @@ var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$6(function () {
325
307
 
326
308
  var objectDefineProperty = {};
327
309
 
328
- var global$5 = global$b;
310
+ var global$6 = global$b;
329
311
  var isObject$4 = isObject$6;
330
312
 
331
- var document$1 = global$5.document;
313
+ var document$1 = global$6.document;
332
314
  // typeof document.createElement is 'object' in old IE
333
315
  var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement);
334
316
 
@@ -356,11 +338,22 @@ var functionCall = NATIVE_BIND ? call$5.bind(call$5) : function () {
356
338
  return call$5.apply(call$5, arguments);
357
339
  };
358
340
 
359
- var uncurryThis$5 = functionUncurryThis;
341
+ var global$5 = global$b;
342
+ var isCallable$c = isCallable$e;
360
343
 
361
- var objectIsPrototypeOf = uncurryThis$5({}.isPrototypeOf);
344
+ var aFunction = function (argument) {
345
+ return isCallable$c(argument) ? argument : undefined;
346
+ };
347
+
348
+ var getBuiltIn$3 = function (namespace, method) {
349
+ return arguments.length < 2 ? aFunction(global$5[namespace]) : global$5[namespace] && global$5[namespace][method];
350
+ };
351
+
352
+ var uncurryThis$6 = functionUncurryThis;
362
353
 
363
- var getBuiltIn$2 = getBuiltIn$4;
354
+ var objectIsPrototypeOf = uncurryThis$6({}.isPrototypeOf);
355
+
356
+ var getBuiltIn$2 = getBuiltIn$3;
364
357
  var isCallable$b = isCallable$e;
365
358
  var isPrototypeOf = objectIsPrototypeOf;
366
359
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
@@ -374,11 +367,11 @@ var isSymbol$2 = USE_SYMBOL_AS_UID ? function (it) {
374
367
  return isCallable$b($Symbol) && isPrototypeOf($Symbol.prototype, $Object$1(it));
375
368
  };
376
369
 
377
- var $String$1 = String;
370
+ var $String$2 = String;
378
371
 
379
372
  var tryToString$1 = function (argument) {
380
373
  try {
381
- return $String$1(argument);
374
+ return $String$2(argument);
382
375
  } catch (error) {
383
376
  return 'Object';
384
377
  }
@@ -390,19 +383,19 @@ var tryToString = tryToString$1;
390
383
  var $TypeError$4 = TypeError;
391
384
 
392
385
  // `Assert: IsCallable(argument) is true`
393
- var aCallable$1 = function (argument) {
386
+ var aCallable$2 = function (argument) {
394
387
  if (isCallable$a(argument)) return argument;
395
388
  throw $TypeError$4(tryToString(argument) + ' is not a function');
396
389
  };
397
390
 
398
- var aCallable = aCallable$1;
391
+ var aCallable$1 = aCallable$2;
399
392
  var isNullOrUndefined = isNullOrUndefined$2;
400
393
 
401
394
  // `GetMethod` abstract operation
402
395
  // https://tc39.es/ecma262/#sec-getmethod
403
396
  var getMethod$1 = function (V, P) {
404
397
  var func = V[P];
405
- return isNullOrUndefined(func) ? undefined : aCallable(func);
398
+ return isNullOrUndefined(func) ? undefined : aCallable$1(func);
406
399
  };
407
400
 
408
401
  var call$4 = functionCall;
@@ -588,13 +581,13 @@ var arrayIncludes = {
588
581
 
589
582
  var hiddenKeys$4 = {};
590
583
 
591
- var uncurryThis$4 = functionUncurryThis;
584
+ var uncurryThis$5 = functionUncurryThis;
592
585
  var hasOwn$7 = hasOwnProperty_1;
593
586
  var toIndexedObject$3 = toIndexedObject$5;
594
587
  var indexOf = arrayIncludes.indexOf;
595
588
  var hiddenKeys$3 = hiddenKeys$4;
596
589
 
597
- var push = uncurryThis$4([].push);
590
+ var push = uncurryThis$5([].push);
598
591
 
599
592
  var objectKeysInternal = function (object, names) {
600
593
  var O = toIndexedObject$3(object);
@@ -651,7 +644,7 @@ objectDefineProperties.f = DESCRIPTORS$6 && !V8_PROTOTYPE_DEFINE_BUG ? Object.de
651
644
  return O;
652
645
  };
653
646
 
654
- var getBuiltIn$1 = getBuiltIn$4;
647
+ var getBuiltIn$1 = getBuiltIn$3;
655
648
 
656
649
  var html$1 = getBuiltIn$1('document', 'documentElement');
657
650
 
@@ -931,11 +924,11 @@ var functionName = {
931
924
  CONFIGURABLE: CONFIGURABLE
932
925
  };
933
926
 
934
- var uncurryThis$3 = functionUncurryThis;
927
+ var uncurryThis$4 = functionUncurryThis;
935
928
  var isCallable$7 = isCallable$e;
936
929
  var store = sharedStore;
937
930
 
938
- var functionToString = uncurryThis$3(Function.toString);
931
+ var functionToString = uncurryThis$4(Function.toString);
939
932
 
940
933
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
941
934
  if (!isCallable$7(store.inspectSource)) {
@@ -946,6 +939,7 @@ if (!isCallable$7(store.inspectSource)) {
946
939
 
947
940
  var inspectSource$1 = store.inspectSource;
948
941
 
942
+ var uncurryThis$3 = functionUncurryThis;
949
943
  var fails$4 = fails$b;
950
944
  var isCallable$6 = isCallable$e;
951
945
  var hasOwn$3 = hasOwnProperty_1;
@@ -956,8 +950,12 @@ var InternalStateModule$1 = internalState;
956
950
 
957
951
  var enforceInternalState = InternalStateModule$1.enforce;
958
952
  var getInternalState$1 = InternalStateModule$1.get;
953
+ var $String$1 = String;
959
954
  // eslint-disable-next-line es/no-object-defineproperty -- safe
960
955
  var defineProperty$3 = Object.defineProperty;
956
+ var stringSlice = uncurryThis$3(''.slice);
957
+ var replace = uncurryThis$3(''.replace);
958
+ var join = uncurryThis$3([].join);
961
959
 
962
960
  var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$4(function () {
963
961
  return defineProperty$3(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
@@ -966,8 +964,8 @@ var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$4(function () {
966
964
  var TEMPLATE = String(String).split('String');
967
965
 
968
966
  var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
969
- if (String(name).slice(0, 7) === 'Symbol(') {
970
- name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
967
+ if (stringSlice($String$1(name), 0, 7) === 'Symbol(') {
968
+ name = '[' + replace($String$1(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
971
969
  }
972
970
  if (options && options.getter) name = 'get ' + name;
973
971
  if (options && options.setter) name = 'set ' + name;
@@ -986,7 +984,7 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
986
984
  } catch (error) { /* empty */ }
987
985
  var state = enforceInternalState(value);
988
986
  if (!hasOwn$3(state, 'source')) {
989
- state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
987
+ state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
990
988
  } return value;
991
989
  };
992
990
 
@@ -1043,7 +1041,7 @@ var objectGetOwnPropertySymbols = {};
1043
1041
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
1044
1042
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1045
1043
 
1046
- var getBuiltIn = getBuiltIn$4;
1044
+ var getBuiltIn = getBuiltIn$3;
1047
1045
  var uncurryThis$2 = functionUncurryThis;
1048
1046
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1049
1047
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
@@ -1259,6 +1257,16 @@ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUME
1259
1257
  return IteratorConstructor;
1260
1258
  };
1261
1259
 
1260
+ var uncurryThis$1 = functionUncurryThis;
1261
+ var aCallable = aCallable$2;
1262
+
1263
+ var functionUncurryThisAccessor = function (object, key, method) {
1264
+ try {
1265
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1266
+ return uncurryThis$1(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
1267
+ } catch (error) { /* empty */ }
1268
+ };
1269
+
1262
1270
  var isCallable$1 = isCallable$e;
1263
1271
 
1264
1272
  var $String = String;
@@ -1271,7 +1279,7 @@ var aPossiblePrototype$1 = function (argument) {
1271
1279
 
1272
1280
  /* eslint-disable no-proto -- safe */
1273
1281
 
1274
- var uncurryThis$1 = functionUncurryThis;
1282
+ var uncurryThisAccessor = functionUncurryThisAccessor;
1275
1283
  var anObject = anObject$5;
1276
1284
  var aPossiblePrototype = aPossiblePrototype$1;
1277
1285
 
@@ -1284,8 +1292,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1284
1292
  var test = {};
1285
1293
  var setter;
1286
1294
  try {
1287
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1288
- setter = uncurryThis$1(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
1295
+ setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
1289
1296
  setter(test, []);
1290
1297
  CORRECT_SETTER = test instanceof Array;
1291
1298
  } catch (error) { /* empty */ }
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@bolttech/atoms-segmented-control",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "module": "./index.js",
5
5
  "main": "./index.js",
6
6
  "type": "module",
7
7
  "types": "./src/index.d.ts",
8
8
  "dependencies": {},
9
9
  "peerDependencies": {
10
- "@edirect/frontend-foundations": "0.0.21",
10
+ "@edirect/frontend-foundations": "0.0.26",
11
11
  "react": "18.2.0",
12
12
  "styled-components": "5.3.6"
13
13
  }