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