@bolttech/molecules-dropdown 0.17.2 → 0.18.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 +135 -121
- package/package.json +8 -8
- package/src/lib/molecules-dropdown.styles.d.ts +1367 -10
package/index.cjs
CHANGED
|
@@ -69,7 +69,7 @@ var indexedObject = fails$f(function () {
|
|
|
69
69
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
70
70
|
return !$Object$4('z').propertyIsEnumerable(0);
|
|
71
71
|
}) ? function (it) {
|
|
72
|
-
return classof$3(it)
|
|
72
|
+
return classof$3(it) === 'String' ? split(it, '') : $Object$4(it);
|
|
73
73
|
} : $Object$4;
|
|
74
74
|
|
|
75
75
|
// we can't use just `it == null` since of `document.all` special case
|
|
@@ -85,7 +85,7 @@ var $TypeError$7 = TypeError;
|
|
|
85
85
|
// `RequireObjectCoercible` abstract operation
|
|
86
86
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
87
87
|
var requireObjectCoercible$6 = function (it) {
|
|
88
|
-
if (isNullOrUndefined$3(it)) throw $TypeError$7("Can't call method on " + it);
|
|
88
|
+
if (isNullOrUndefined$3(it)) throw new $TypeError$7("Can't call method on " + it);
|
|
89
89
|
return it;
|
|
90
90
|
};
|
|
91
91
|
|
|
@@ -98,7 +98,7 @@ var toIndexedObject$5 = function (it) {
|
|
|
98
98
|
};
|
|
99
99
|
|
|
100
100
|
var check = function (it) {
|
|
101
|
-
return it && it.Math
|
|
101
|
+
return it && it.Math === Math && it;
|
|
102
102
|
};
|
|
103
103
|
|
|
104
104
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
@@ -140,10 +140,10 @@ var store$2 = sharedStore;
|
|
|
140
140
|
(shared$4.exports = function (key, value) {
|
|
141
141
|
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
142
142
|
})('versions', []).push({
|
|
143
|
-
version: '3.
|
|
143
|
+
version: '3.33.2',
|
|
144
144
|
mode: 'global',
|
|
145
145
|
copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
|
|
146
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
146
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE',
|
|
147
147
|
source: 'https://github.com/zloirock/core-js'
|
|
148
148
|
});
|
|
149
149
|
|
|
@@ -210,7 +210,6 @@ if (!version && userAgent) {
|
|
|
210
210
|
var engineV8Version = version;
|
|
211
211
|
|
|
212
212
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
213
|
-
|
|
214
213
|
var V8_VERSION = engineV8Version;
|
|
215
214
|
var fails$e = fails$h;
|
|
216
215
|
var global$b = global$f;
|
|
@@ -219,7 +218,7 @@ var $String$5 = global$b.String;
|
|
|
219
218
|
|
|
220
219
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
221
220
|
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$e(function () {
|
|
222
|
-
var symbol = Symbol();
|
|
221
|
+
var symbol = Symbol('symbol detection');
|
|
223
222
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
224
223
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
225
224
|
// nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
|
|
@@ -230,7 +229,6 @@ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$e(func
|
|
|
230
229
|
});
|
|
231
230
|
|
|
232
231
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
233
|
-
|
|
234
232
|
var NATIVE_SYMBOL$1 = symbolConstructorDetection;
|
|
235
233
|
|
|
236
234
|
var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
@@ -298,7 +296,7 @@ var $TypeError$6 = TypeError;
|
|
|
298
296
|
// `Assert: Type(argument) is Object`
|
|
299
297
|
var anObject$9 = function (argument) {
|
|
300
298
|
if (isObject$5(argument)) return argument;
|
|
301
|
-
throw $TypeError$6($String$4(argument) + ' is not an object');
|
|
299
|
+
throw new $TypeError$6($String$4(argument) + ' is not an object');
|
|
302
300
|
};
|
|
303
301
|
|
|
304
302
|
var objectDefineProperties = {};
|
|
@@ -308,7 +306,7 @@ var fails$d = fails$h;
|
|
|
308
306
|
// Detect IE8's incomplete defineProperty implementation
|
|
309
307
|
var descriptors = !fails$d(function () {
|
|
310
308
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
311
|
-
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1]
|
|
309
|
+
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
312
310
|
});
|
|
313
311
|
|
|
314
312
|
var DESCRIPTORS$9 = descriptors;
|
|
@@ -321,7 +319,7 @@ var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$c(function () {
|
|
|
321
319
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
322
320
|
value: 42,
|
|
323
321
|
writable: false
|
|
324
|
-
}).prototype
|
|
322
|
+
}).prototype !== 42;
|
|
325
323
|
});
|
|
326
324
|
|
|
327
325
|
var objectDefineProperty = {};
|
|
@@ -346,7 +344,7 @@ var ie8DomDefine = !DESCRIPTORS$8 && !fails$b(function () {
|
|
|
346
344
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
347
345
|
return Object.defineProperty(createElement('div'), 'a', {
|
|
348
346
|
get: function () { return 7; }
|
|
349
|
-
}).a
|
|
347
|
+
}).a !== 7;
|
|
350
348
|
});
|
|
351
349
|
|
|
352
350
|
var NATIVE_BIND$1 = functionBindNative;
|
|
@@ -404,7 +402,7 @@ var $TypeError$5 = TypeError;
|
|
|
404
402
|
// `Assert: IsCallable(argument) is true`
|
|
405
403
|
var aCallable$2 = function (argument) {
|
|
406
404
|
if (isCallable$d(argument)) return argument;
|
|
407
|
-
throw $TypeError$5(tryToString(argument) + ' is not a function');
|
|
405
|
+
throw new $TypeError$5(tryToString(argument) + ' is not a function');
|
|
408
406
|
};
|
|
409
407
|
|
|
410
408
|
var aCallable$1 = aCallable$2;
|
|
@@ -430,7 +428,7 @@ var ordinaryToPrimitive$1 = function (input, pref) {
|
|
|
430
428
|
if (pref === 'string' && isCallable$c(fn = input.toString) && !isObject$3(val = call$9(fn, input))) return val;
|
|
431
429
|
if (isCallable$c(fn = input.valueOf) && !isObject$3(val = call$9(fn, input))) return val;
|
|
432
430
|
if (pref !== 'string' && isCallable$c(fn = input.toString) && !isObject$3(val = call$9(fn, input))) return val;
|
|
433
|
-
throw $TypeError$4("Can't convert object to primitive value");
|
|
431
|
+
throw new $TypeError$4("Can't convert object to primitive value");
|
|
434
432
|
};
|
|
435
433
|
|
|
436
434
|
var call$8 = functionCall;
|
|
@@ -453,7 +451,7 @@ var toPrimitive$1 = function (input, pref) {
|
|
|
453
451
|
if (pref === undefined) pref = 'default';
|
|
454
452
|
result = call$8(exoticToPrim, input, pref);
|
|
455
453
|
if (!isObject$2(result) || isSymbol$1(result)) return result;
|
|
456
|
-
throw $TypeError$3("Can't convert object to primitive value");
|
|
454
|
+
throw new $TypeError$3("Can't convert object to primitive value");
|
|
457
455
|
}
|
|
458
456
|
if (pref === undefined) pref = 'number';
|
|
459
457
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -508,7 +506,7 @@ objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
508
506
|
if (IE8_DOM_DEFINE$1) try {
|
|
509
507
|
return $defineProperty(O, P, Attributes);
|
|
510
508
|
} catch (error) { /* empty */ }
|
|
511
|
-
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$2('Accessors not supported');
|
|
509
|
+
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$2('Accessors not supported');
|
|
512
510
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
513
511
|
return O;
|
|
514
512
|
};
|
|
@@ -578,10 +576,10 @@ var createMethod$2 = function (IS_INCLUDES) {
|
|
|
578
576
|
var value;
|
|
579
577
|
// Array#includes uses SameValueZero equality algorithm
|
|
580
578
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
581
|
-
if (IS_INCLUDES && el
|
|
579
|
+
if (IS_INCLUDES && el !== el) while (length > index) {
|
|
582
580
|
value = O[index++];
|
|
583
581
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
584
|
-
if (value
|
|
582
|
+
if (value !== value) return true;
|
|
585
583
|
// Array#indexOf ignores holes, Array#includes - not
|
|
586
584
|
} else for (;length > index; index++) {
|
|
587
585
|
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
@@ -677,7 +675,6 @@ var sharedKey$3 = function (key) {
|
|
|
677
675
|
};
|
|
678
676
|
|
|
679
677
|
/* global ActiveXObject -- old IE, WSH */
|
|
680
|
-
|
|
681
678
|
var anObject$6 = anObject$9;
|
|
682
679
|
var definePropertiesModule = objectDefineProperties;
|
|
683
680
|
var enumBugKeys$1 = enumBugKeys$3;
|
|
@@ -770,7 +767,7 @@ var ArrayPrototype = Array.prototype;
|
|
|
770
767
|
|
|
771
768
|
// Array.prototype[@@unscopables]
|
|
772
769
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
773
|
-
if (ArrayPrototype[UNSCOPABLES]
|
|
770
|
+
if (ArrayPrototype[UNSCOPABLES] === undefined) {
|
|
774
771
|
defineProperty$4(ArrayPrototype, UNSCOPABLES, {
|
|
775
772
|
configurable: true,
|
|
776
773
|
value: create$2(null)
|
|
@@ -833,7 +830,7 @@ var getterFor = function (TYPE) {
|
|
|
833
830
|
return function (it) {
|
|
834
831
|
var state;
|
|
835
832
|
if (!isObject$1(it) || (state = get(it)).type !== TYPE) {
|
|
836
|
-
throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
|
|
833
|
+
throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
|
|
837
834
|
} return state;
|
|
838
835
|
};
|
|
839
836
|
};
|
|
@@ -846,7 +843,7 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
|
846
843
|
store$1.set = store$1.set;
|
|
847
844
|
/* eslint-enable no-self-assign -- prototype methods protection */
|
|
848
845
|
set = function (it, metadata) {
|
|
849
|
-
if (store$1.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
846
|
+
if (store$1.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
850
847
|
metadata.facade = it;
|
|
851
848
|
store$1.set(it, metadata);
|
|
852
849
|
return metadata;
|
|
@@ -861,7 +858,7 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
|
861
858
|
var STATE = sharedKey$1('state');
|
|
862
859
|
hiddenKeys$1[STATE] = true;
|
|
863
860
|
set = function (it, metadata) {
|
|
864
|
-
if (hasOwn$6(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
861
|
+
if (hasOwn$6(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
865
862
|
metadata.facade = it;
|
|
866
863
|
createNonEnumerableProperty$4(it, STATE, metadata);
|
|
867
864
|
return metadata;
|
|
@@ -1099,8 +1096,8 @@ var replacement = /#|\.prototype\./;
|
|
|
1099
1096
|
|
|
1100
1097
|
var isForced$1 = function (feature, detection) {
|
|
1101
1098
|
var value = data[normalize(feature)];
|
|
1102
|
-
return value
|
|
1103
|
-
: value
|
|
1099
|
+
return value === POLYFILL ? true
|
|
1100
|
+
: value === NATIVE ? false
|
|
1104
1101
|
: isCallable$7(detection) ? fails$9(detection)
|
|
1105
1102
|
: !!detection;
|
|
1106
1103
|
};
|
|
@@ -1293,11 +1290,10 @@ var $TypeError$1 = TypeError;
|
|
|
1293
1290
|
|
|
1294
1291
|
var aPossiblePrototype$1 = function (argument) {
|
|
1295
1292
|
if (typeof argument == 'object' || isCallable$4(argument)) return argument;
|
|
1296
|
-
throw $TypeError$1("Can't set " + $String$1(argument) + ' as a prototype');
|
|
1293
|
+
throw new $TypeError$1("Can't set " + $String$1(argument) + ' as a prototype');
|
|
1297
1294
|
};
|
|
1298
1295
|
|
|
1299
1296
|
/* eslint-disable no-proto -- safe */
|
|
1300
|
-
|
|
1301
1297
|
var uncurryThisAccessor = functionUncurryThisAccessor;
|
|
1302
1298
|
var anObject$4 = anObject$9;
|
|
1303
1299
|
var aPossiblePrototype = aPossiblePrototype$1;
|
|
@@ -1354,12 +1350,15 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1354
1350
|
|
|
1355
1351
|
var getIterationMethod = function (KIND) {
|
|
1356
1352
|
if (KIND === DEFAULT && defaultIterator) return defaultIterator;
|
|
1357
|
-
if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
|
|
1353
|
+
if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];
|
|
1354
|
+
|
|
1358
1355
|
switch (KIND) {
|
|
1359
1356
|
case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
|
|
1360
1357
|
case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
|
|
1361
1358
|
case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
|
|
1362
|
-
}
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
return function () { return new IteratorConstructor(this); };
|
|
1363
1362
|
};
|
|
1364
1363
|
|
|
1365
1364
|
var TO_STRING_TAG = NAME + ' Iterator';
|
|
@@ -1369,7 +1368,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1369
1368
|
|| IterablePrototype['@@iterator']
|
|
1370
1369
|
|| DEFAULT && IterablePrototype[DEFAULT];
|
|
1371
1370
|
var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
|
|
1372
|
-
var anyNativeIterator = NAME
|
|
1371
|
+
var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
|
|
1373
1372
|
var CurrentIteratorPrototype, methods, KEY;
|
|
1374
1373
|
|
|
1375
1374
|
// fix native
|
|
@@ -1389,7 +1388,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1389
1388
|
}
|
|
1390
1389
|
|
|
1391
1390
|
// fix Array.prototype.{ values, @@iterator }.name in V8 / FF
|
|
1392
|
-
if (PROPER_FUNCTION_NAME$1 && DEFAULT
|
|
1391
|
+
if (PROPER_FUNCTION_NAME$1 && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
1393
1392
|
if (CONFIGURABLE_FUNCTION_NAME) {
|
|
1394
1393
|
createNonEnumerableProperty$2(IterablePrototype, 'name', VALUES);
|
|
1395
1394
|
} else {
|
|
@@ -1462,15 +1461,15 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
|
|
|
1462
1461
|
}, function () {
|
|
1463
1462
|
var state = getInternalState$1(this);
|
|
1464
1463
|
var target = state.target;
|
|
1465
|
-
var kind = state.kind;
|
|
1466
1464
|
var index = state.index++;
|
|
1467
1465
|
if (!target || index >= target.length) {
|
|
1468
1466
|
state.target = undefined;
|
|
1469
1467
|
return createIterResultObject(undefined, true);
|
|
1470
1468
|
}
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1469
|
+
switch (state.kind) {
|
|
1470
|
+
case 'keys': return createIterResultObject(index, false);
|
|
1471
|
+
case 'values': return createIterResultObject(target[index], false);
|
|
1472
|
+
} return createIterResultObject([index, target[index]], false);
|
|
1474
1473
|
}, 'values');
|
|
1475
1474
|
|
|
1476
1475
|
// argumentsList[@@iterator] is %ArrayProto_values%
|
|
@@ -1604,11 +1603,11 @@ var objectAssign = !$assign || fails$6(function () {
|
|
|
1604
1603
|
var A = {};
|
|
1605
1604
|
var B = {};
|
|
1606
1605
|
// eslint-disable-next-line es/no-symbol -- safe
|
|
1607
|
-
var symbol = Symbol();
|
|
1606
|
+
var symbol = Symbol('assign detection');
|
|
1608
1607
|
var alphabet = 'abcdefghijklmnopqrst';
|
|
1609
1608
|
A[symbol] = 7;
|
|
1610
1609
|
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
1611
|
-
return $assign({}, A)[symbol]
|
|
1610
|
+
return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
|
|
1612
1611
|
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
1613
1612
|
var T = toObject$1(target);
|
|
1614
1613
|
var argumentsLength = arguments.length;
|
|
@@ -1673,7 +1672,12 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
1673
1672
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
1674
1673
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
1675
1674
|
});
|
|
1676
|
-
}
|
|
1675
|
+
}
|
|
1676
|
+
|
|
1677
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
1678
|
+
var e = new Error(message);
|
|
1679
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
1680
|
+
};
|
|
1677
1681
|
|
|
1678
1682
|
var wellKnownSymbol$3 = wellKnownSymbol$a;
|
|
1679
1683
|
|
|
@@ -1693,7 +1697,7 @@ var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
|
|
|
1693
1697
|
var $Object = Object;
|
|
1694
1698
|
|
|
1695
1699
|
// ES3 wrong here
|
|
1696
|
-
var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }())
|
|
1700
|
+
var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
|
|
1697
1701
|
|
|
1698
1702
|
// fallback for IE11 Script Access Denied error
|
|
1699
1703
|
var tryGet = function (it, key) {
|
|
@@ -1711,7 +1715,7 @@ var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
|
1711
1715
|
// builtinTag case
|
|
1712
1716
|
: CORRECT_ARGUMENTS ? classofRaw$1(O)
|
|
1713
1717
|
// ES3 arguments fallback
|
|
1714
|
-
: (result = classofRaw$1(O))
|
|
1718
|
+
: (result = classofRaw$1(O)) === 'Object' && isCallable$2(O.callee) ? 'Arguments' : result;
|
|
1715
1719
|
};
|
|
1716
1720
|
|
|
1717
1721
|
var classof$1 = classof$2;
|
|
@@ -1719,7 +1723,7 @@ var classof$1 = classof$2;
|
|
|
1719
1723
|
var $String = String;
|
|
1720
1724
|
|
|
1721
1725
|
var toString$5 = function (argument) {
|
|
1722
|
-
if (classof$1(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
1726
|
+
if (classof$1(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
|
|
1723
1727
|
return $String(argument);
|
|
1724
1728
|
};
|
|
1725
1729
|
|
|
@@ -1750,7 +1754,7 @@ var $RegExp$2 = global$3.RegExp;
|
|
|
1750
1754
|
var UNSUPPORTED_Y$1 = fails$5(function () {
|
|
1751
1755
|
var re = $RegExp$2('a', 'y');
|
|
1752
1756
|
re.lastIndex = 2;
|
|
1753
|
-
return re.exec('abcd')
|
|
1757
|
+
return re.exec('abcd') !== null;
|
|
1754
1758
|
});
|
|
1755
1759
|
|
|
1756
1760
|
// UC Browser bug
|
|
@@ -1763,7 +1767,7 @@ var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$5(function () {
|
|
|
1763
1767
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
1764
1768
|
var re = $RegExp$2('^r', 'gy');
|
|
1765
1769
|
re.lastIndex = 2;
|
|
1766
|
-
return re.exec('str')
|
|
1770
|
+
return re.exec('str') !== null;
|
|
1767
1771
|
});
|
|
1768
1772
|
|
|
1769
1773
|
var regexpStickyHelpers = {
|
|
@@ -1780,7 +1784,7 @@ var $RegExp$1 = global$2.RegExp;
|
|
|
1780
1784
|
|
|
1781
1785
|
var regexpUnsupportedDotAll = fails$4(function () {
|
|
1782
1786
|
var re = $RegExp$1('.', 's');
|
|
1783
|
-
return !(re.dotAll && re.
|
|
1787
|
+
return !(re.dotAll && re.test('\n') && re.flags === 's');
|
|
1784
1788
|
});
|
|
1785
1789
|
|
|
1786
1790
|
var fails$3 = fails$h;
|
|
@@ -1961,7 +1965,7 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
|
1961
1965
|
// String methods call symbol-named RegEp methods
|
|
1962
1966
|
var O = {};
|
|
1963
1967
|
O[SYMBOL] = function () { return 7; };
|
|
1964
|
-
return ''[KEY](O)
|
|
1968
|
+
return ''[KEY](O) !== 7;
|
|
1965
1969
|
});
|
|
1966
1970
|
|
|
1967
1971
|
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$2(function () {
|
|
@@ -1982,7 +1986,10 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
|
1982
1986
|
re[SYMBOL] = /./[SYMBOL];
|
|
1983
1987
|
}
|
|
1984
1988
|
|
|
1985
|
-
re.exec = function () {
|
|
1989
|
+
re.exec = function () {
|
|
1990
|
+
execCalled = true;
|
|
1991
|
+
return null;
|
|
1992
|
+
};
|
|
1986
1993
|
|
|
1987
1994
|
re[SYMBOL]('');
|
|
1988
1995
|
return !execCalled;
|
|
@@ -2125,7 +2132,7 @@ var regexpExecAbstract = function (R, S) {
|
|
|
2125
2132
|
return result;
|
|
2126
2133
|
}
|
|
2127
2134
|
if (classof(R) === 'RegExp') return call$2(regexpExec, R, S);
|
|
2128
|
-
throw $TypeError('RegExp#exec called on incompatible receiver');
|
|
2135
|
+
throw new $TypeError('RegExp#exec called on incompatible receiver');
|
|
2129
2136
|
};
|
|
2130
2137
|
|
|
2131
2138
|
var apply = functionApply;
|
|
@@ -2217,13 +2224,16 @@ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCall
|
|
|
2217
2224
|
if (!functionalReplace) replaceValue = toString$2(replaceValue);
|
|
2218
2225
|
|
|
2219
2226
|
var global = rx.global;
|
|
2227
|
+
var fullUnicode;
|
|
2220
2228
|
if (global) {
|
|
2221
|
-
|
|
2229
|
+
fullUnicode = rx.unicode;
|
|
2222
2230
|
rx.lastIndex = 0;
|
|
2223
2231
|
}
|
|
2232
|
+
|
|
2224
2233
|
var results = [];
|
|
2234
|
+
var result;
|
|
2225
2235
|
while (true) {
|
|
2226
|
-
|
|
2236
|
+
result = regExpExec$1(rx, S);
|
|
2227
2237
|
if (result === null) break;
|
|
2228
2238
|
|
|
2229
2239
|
push(results, result);
|
|
@@ -2241,6 +2251,7 @@ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCall
|
|
|
2241
2251
|
var matched = toString$2(result[0]);
|
|
2242
2252
|
var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
|
|
2243
2253
|
var captures = [];
|
|
2254
|
+
var replacement;
|
|
2244
2255
|
// NOTE: This is equivalent to
|
|
2245
2256
|
// captures = result.slice(1).map(maybeToString)
|
|
2246
2257
|
// but for some reason `nativeSlice.call(result, 1, result.length)` (called in
|
|
@@ -2251,7 +2262,7 @@ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCall
|
|
|
2251
2262
|
if (functionalReplace) {
|
|
2252
2263
|
var replacerArgs = concat([matched], captures, position, S);
|
|
2253
2264
|
if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
|
|
2254
|
-
|
|
2265
|
+
replacement = toString$2(apply(replaceValue, undefined, replacerArgs));
|
|
2255
2266
|
} else {
|
|
2256
2267
|
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
|
2257
2268
|
}
|
|
@@ -2260,6 +2271,7 @@ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCall
|
|
|
2260
2271
|
nextSourcePosition = position + matched.length;
|
|
2261
2272
|
}
|
|
2262
2273
|
}
|
|
2274
|
+
|
|
2263
2275
|
return accumulatedResult + stringSlice(S, nextSourcePosition);
|
|
2264
2276
|
}
|
|
2265
2277
|
];
|
|
@@ -2272,7 +2284,7 @@ const ClickableElement = /*#__PURE__*/styled__default["default"].div.withConfig(
|
|
|
2272
2284
|
const ContainerDropdown = /*#__PURE__*/styled__default["default"].section.withConfig({
|
|
2273
2285
|
displayName: "molecules-dropdownstyles__ContainerDropdown",
|
|
2274
2286
|
componentId: "sc-3wugi4-1"
|
|
2275
|
-
})(["display:flex;padding-top:", ";padding-bottom:", ";padding-right:", ";padding-left:", ";gap:", ";background-color:", ";
|
|
2287
|
+
})(["display:flex;padding-top:", ";padding-bottom:", ";padding-right:", ";padding-left:", ";gap:", ";background-color:", ";outline:", ";border-radius:", ";box-shadow:", ";input{display:inline-block;text-overflow:ellipsis;white-space:nowrap;width:100%;overflow-x:hidden;}.fieldLabel{color:", ";font-weight:", ";line-height:", ";font-size:", ";letter-spacing:", ";}.requiredLabel{color:", ";font-weight:", ";line-height:", ";font-size:", ";letter-spacing:", ";}label.material-symbols-sharp{color:", ";}&:focus-within{background-color:", ";outline:", ";", "}", " ", ""], ({
|
|
2276
2288
|
theme
|
|
2277
2289
|
}) => theme.components.dropdown.paddingVertical, ({
|
|
2278
2290
|
theme
|
|
@@ -2284,11 +2296,11 @@ const ContainerDropdown = /*#__PURE__*/styled__default["default"].section.withCo
|
|
|
2284
2296
|
theme
|
|
2285
2297
|
}) => theme.components.dropdown.gap, ({
|
|
2286
2298
|
theme,
|
|
2287
|
-
variant
|
|
2288
|
-
}) => theme.components.dropdown[variant].container.color.default, ({
|
|
2299
|
+
$variant
|
|
2300
|
+
}) => theme.components.dropdown[$variant].container.color.default, ({
|
|
2289
2301
|
theme,
|
|
2290
|
-
variant
|
|
2291
|
-
}) => `1px solid ${theme.components.dropdown[variant].container.border.default}`, ({
|
|
2302
|
+
$variant
|
|
2303
|
+
}) => `1px solid ${theme.components.dropdown[$variant].container.border.default}`, ({
|
|
2292
2304
|
theme
|
|
2293
2305
|
}) => theme.components.dropdown.borderRadius, ({
|
|
2294
2306
|
theme: {
|
|
@@ -2298,9 +2310,9 @@ const ContainerDropdown = /*#__PURE__*/styled__default["default"].section.withCo
|
|
|
2298
2310
|
}
|
|
2299
2311
|
}) => shadow.lvl0, ({
|
|
2300
2312
|
theme,
|
|
2301
|
-
variant,
|
|
2302
|
-
hasValue
|
|
2303
|
-
}) => theme.components.dropdown[variant].text.color.fieldLabel[hasValue ? 'filled' : 'default'], ({
|
|
2313
|
+
$variant,
|
|
2314
|
+
$hasValue
|
|
2315
|
+
}) => theme.components.dropdown[$variant].text.color.fieldLabel[$hasValue ? 'filled' : 'default'], ({
|
|
2304
2316
|
theme
|
|
2305
2317
|
}) => theme.components.dropdown.fieldLabel.fontWeight, ({
|
|
2306
2318
|
theme
|
|
@@ -2310,9 +2322,9 @@ const ContainerDropdown = /*#__PURE__*/styled__default["default"].section.withCo
|
|
|
2310
2322
|
theme
|
|
2311
2323
|
}) => theme.components.dropdown.fieldLabel.letterSpacing, ({
|
|
2312
2324
|
theme,
|
|
2313
|
-
variant,
|
|
2314
|
-
hasValue
|
|
2315
|
-
}) => theme.components.dropdown[variant].text.color.required[hasValue ? 'filled' : 'default'], ({
|
|
2325
|
+
$variant,
|
|
2326
|
+
$hasValue
|
|
2327
|
+
}) => theme.components.dropdown[$variant].text.color.required[$hasValue ? 'filled' : 'default'], ({
|
|
2316
2328
|
theme
|
|
2317
2329
|
}) => theme.components.dropdown.required.fontWeight, ({
|
|
2318
2330
|
theme
|
|
@@ -2322,71 +2334,71 @@ const ContainerDropdown = /*#__PURE__*/styled__default["default"].section.withCo
|
|
|
2322
2334
|
theme
|
|
2323
2335
|
}) => theme.components.dropdown.required.letterSpacing, ({
|
|
2324
2336
|
theme,
|
|
2325
|
-
variant,
|
|
2326
|
-
hasValue
|
|
2327
|
-
}) => theme.components.dropdown[variant].icon.color[hasValue ? 'filled' : 'default'], ({
|
|
2337
|
+
$variant,
|
|
2338
|
+
$hasValue
|
|
2339
|
+
}) => theme.components.dropdown[$variant].icon.color[$hasValue ? 'filled' : 'default'], ({
|
|
2328
2340
|
theme,
|
|
2329
|
-
variant,
|
|
2330
|
-
hasError
|
|
2331
|
-
}) => theme.components.dropdown[variant].container.color[hasError ? 'error' : 'focus'], ({
|
|
2341
|
+
$variant,
|
|
2342
|
+
$hasError
|
|
2343
|
+
}) => theme.components.dropdown[$variant].container.color[$hasError ? 'error' : 'focus'], ({
|
|
2332
2344
|
theme,
|
|
2333
|
-
variant,
|
|
2334
|
-
hasError
|
|
2335
|
-
}) => `1px solid ${theme.components.dropdown[variant].container.border[hasError ? 'error' : 'focus']}`, ({
|
|
2336
|
-
hasError
|
|
2337
|
-
}) =>
|
|
2345
|
+
$variant,
|
|
2346
|
+
$hasError
|
|
2347
|
+
}) => `1px solid ${theme.components.dropdown[$variant].container.border[$hasError ? 'error' : 'focus']}`, ({
|
|
2348
|
+
$hasError
|
|
2349
|
+
}) => !$hasError && styled.css([".fieldLabel{color:", ";}.requiredLabel{color:", ";}label.material-symbols-sharp{color:", ";}"], ({
|
|
2338
2350
|
theme,
|
|
2339
|
-
variant
|
|
2340
|
-
}) => theme.components.dropdown[variant].text.color.fieldLabel.focus, ({
|
|
2351
|
+
$variant
|
|
2352
|
+
}) => theme.components.dropdown[$variant].text.color.fieldLabel.focus, ({
|
|
2341
2353
|
theme,
|
|
2342
|
-
variant
|
|
2343
|
-
}) => theme.components.dropdown[variant].text.color.required.focus, ({
|
|
2354
|
+
$variant
|
|
2355
|
+
}) => theme.components.dropdown[$variant].text.color.required.focus, ({
|
|
2344
2356
|
theme,
|
|
2345
|
-
variant
|
|
2346
|
-
}) => theme.components.dropdown[variant].icon.color.focus), ({
|
|
2347
|
-
hasError,
|
|
2348
|
-
hasValue
|
|
2349
|
-
}) => hasError && styled.css(["
|
|
2357
|
+
$variant
|
|
2358
|
+
}) => theme.components.dropdown[$variant].icon.color.focus), ({
|
|
2359
|
+
$hasError,
|
|
2360
|
+
$hasValue
|
|
2361
|
+
}) => $hasError && styled.css(["outline:", ";background-color:", ";.fieldLabel{color:", ";}.requiredLabel{color:", ";}label.material-symbols-sharp{color:", ";}"], ({
|
|
2350
2362
|
theme,
|
|
2351
|
-
variant
|
|
2352
|
-
}) => `1px solid ${theme.components.dropdown[variant].container.border[hasValue ? 'errorFilled' : 'error']}`, ({
|
|
2363
|
+
$variant
|
|
2364
|
+
}) => `1px solid ${theme.components.dropdown[$variant].container.border[$hasValue ? 'errorFilled' : 'error']}`, ({
|
|
2353
2365
|
theme,
|
|
2354
|
-
variant
|
|
2355
|
-
}) => theme.components.dropdown[variant].container.color[hasValue ? 'errorFilled' : 'error'], ({
|
|
2366
|
+
$variant
|
|
2367
|
+
}) => theme.components.dropdown[$variant].container.color[$hasValue ? 'errorFilled' : 'error'], ({
|
|
2356
2368
|
theme,
|
|
2357
|
-
variant,
|
|
2358
|
-
hasValue
|
|
2359
|
-
}) => theme.components.dropdown[variant].text.color.fieldLabel[hasValue ? 'errorFilled' : 'error'], ({
|
|
2369
|
+
$variant,
|
|
2370
|
+
$hasValue
|
|
2371
|
+
}) => theme.components.dropdown[$variant].text.color.fieldLabel[$hasValue ? 'errorFilled' : 'error'], ({
|
|
2360
2372
|
theme,
|
|
2361
|
-
variant,
|
|
2362
|
-
hasValue
|
|
2363
|
-
}) => theme.components.dropdown[variant].text.color.required[hasValue ? 'errorFilled' : 'error'], ({
|
|
2373
|
+
$variant,
|
|
2374
|
+
$hasValue
|
|
2375
|
+
}) => theme.components.dropdown[$variant].text.color.required[$hasValue ? 'errorFilled' : 'error'], ({
|
|
2364
2376
|
theme,
|
|
2365
|
-
variant
|
|
2366
|
-
}) => theme.components.dropdown[variant].icon.color[hasValue ? 'errorFilled' : 'error']), ({
|
|
2377
|
+
$variant
|
|
2378
|
+
}) => theme.components.dropdown[$variant].icon.color[$hasValue ? 'errorFilled' : 'error']), ({
|
|
2367
2379
|
disabled
|
|
2368
|
-
}) => disabled && styled.css(["cursor:not-allowed;
|
|
2380
|
+
}) => disabled && styled.css(["cursor:not-allowed;outline:", ";background-color:", ";*{cursor:not-allowed;}.fieldLabel{color:", ";}.requiredLabel{color:", ";}label.material-symbols-sharp{color:", ";}input{color:", ";&::placeholder{color:", ";}}"], ({
|
|
2369
2381
|
theme,
|
|
2370
|
-
variant
|
|
2371
|
-
}) => `1px solid ${theme.components.dropdown[variant].container.border.disable}`, ({
|
|
2382
|
+
$variant
|
|
2383
|
+
}) => `1px solid ${theme.components.dropdown[$variant].container.border.disable}`, ({
|
|
2372
2384
|
theme,
|
|
2373
|
-
variant
|
|
2374
|
-
}) => theme.components.dropdown[variant].container.color.disable, ({
|
|
2385
|
+
$variant
|
|
2386
|
+
}) => theme.components.dropdown[$variant].container.color.disable, ({
|
|
2375
2387
|
theme,
|
|
2376
|
-
variant
|
|
2377
|
-
}) => theme.components.dropdown[variant].text.color.fieldLabel.disable, ({
|
|
2388
|
+
$variant
|
|
2389
|
+
}) => theme.components.dropdown[$variant].text.color.fieldLabel.disable, ({
|
|
2378
2390
|
theme,
|
|
2379
|
-
variant
|
|
2380
|
-
}) => theme.components.dropdown[variant].text.color.required.disable, ({
|
|
2391
|
+
$variant
|
|
2392
|
+
}) => theme.components.dropdown[$variant].text.color.required.disable, ({
|
|
2381
2393
|
theme,
|
|
2382
|
-
variant
|
|
2383
|
-
}) => theme.components.dropdown[variant].icon.color.disable, ({
|
|
2394
|
+
$variant
|
|
2395
|
+
}) => theme.components.dropdown[$variant].icon.color.disable, ({
|
|
2384
2396
|
theme,
|
|
2385
|
-
variant
|
|
2386
|
-
}) => theme.components.dropdown[variant].text.color.fieldLabel.disable, ({
|
|
2397
|
+
$variant
|
|
2398
|
+
}) => theme.components.dropdown[$variant].text.color.fieldLabel.disable, ({
|
|
2387
2399
|
theme,
|
|
2388
|
-
variant
|
|
2389
|
-
}) => theme.components.dropdown[variant].text.color.fieldLabel.disable));
|
|
2400
|
+
$variant
|
|
2401
|
+
}) => theme.components.dropdown[$variant].text.color.fieldLabel.disable));
|
|
2390
2402
|
const SectionContainer = /*#__PURE__*/styled__default["default"].section.withConfig({
|
|
2391
2403
|
displayName: "molecules-dropdownstyles__SectionContainer",
|
|
2392
2404
|
componentId: "sc-3wugi4-2"
|
|
@@ -2396,8 +2408,8 @@ const SectionContainer = /*#__PURE__*/styled__default["default"].section.withCon
|
|
|
2396
2408
|
theme
|
|
2397
2409
|
}) => theme.components.dropdown.paddingHorizontal, ({
|
|
2398
2410
|
theme,
|
|
2399
|
-
variant
|
|
2400
|
-
}) => theme.components.dropdown[variant].text.color.errorMessage.error, ({
|
|
2411
|
+
$variant
|
|
2412
|
+
}) => theme.components.dropdown[$variant].text.color.errorMessage.error, ({
|
|
2401
2413
|
theme
|
|
2402
2414
|
}) => theme.components.dropdown.error.fontWeight, ({
|
|
2403
2415
|
theme
|
|
@@ -2425,7 +2437,7 @@ const FieldLabelAndRequiredLabelDropdown = /*#__PURE__*/styled__default["default
|
|
|
2425
2437
|
const DropdownOptionsContainer = /*#__PURE__*/styled__default["default"].div.withConfig({
|
|
2426
2438
|
displayName: "molecules-dropdownstyles__DropdownOptionsContainer",
|
|
2427
2439
|
componentId: "sc-3wugi4-6"
|
|
2428
|
-
})(["position:absolute;inset:0;top:100
|
|
2440
|
+
})(["position:absolute;inset:0;top:calc(100% + 1px);"]);
|
|
2429
2441
|
|
|
2430
2442
|
const ReusableDropdownComponent = _a => {
|
|
2431
2443
|
var {
|
|
@@ -2455,9 +2467,9 @@ const ReusableDropdownComponent = _a => {
|
|
|
2455
2467
|
const sizeIcon = Number(theme.components.dropdown.icon.size.replace(/[^\d.-]+/g, ''));
|
|
2456
2468
|
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
2457
2469
|
children: [jsxRuntime.jsxs(ContainerDropdown, {
|
|
2458
|
-
variant: variant,
|
|
2459
|
-
hasValue: inputValue,
|
|
2460
|
-
hasError: hasError,
|
|
2470
|
+
"$variant": variant,
|
|
2471
|
+
"$hasValue": inputValue,
|
|
2472
|
+
"$hasError": hasError,
|
|
2461
2473
|
disabled: disabled,
|
|
2462
2474
|
"data-testid": `${dataTestId}-dropdown-container`,
|
|
2463
2475
|
children: [jsxRuntime.jsxs(ContentDropdown, {
|
|
@@ -2482,7 +2494,7 @@ const ReusableDropdownComponent = _a => {
|
|
|
2482
2494
|
ref: inputRef,
|
|
2483
2495
|
disabled: disabled,
|
|
2484
2496
|
value: inputLabel,
|
|
2485
|
-
variant: variant,
|
|
2497
|
+
"$variant": variant,
|
|
2486
2498
|
placeholder: placeholder,
|
|
2487
2499
|
autoComplete: "off",
|
|
2488
2500
|
onChange: e => {
|
|
@@ -2529,7 +2541,7 @@ const ReusableDropdownComponent = _a => {
|
|
|
2529
2541
|
// eslint-disable-next-line es/no-object-is -- safe
|
|
2530
2542
|
var sameValue$1 = Object.is || function is(x, y) {
|
|
2531
2543
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
2532
|
-
return x === y ? x !== 0 || 1 / x === 1 / y : x
|
|
2544
|
+
return x === y ? x !== 0 || 1 / x === 1 / y : x !== x && y !== y;
|
|
2533
2545
|
};
|
|
2534
2546
|
|
|
2535
2547
|
var call = functionCall;
|
|
@@ -2701,19 +2713,21 @@ const Dropdown = /*#__PURE__*/react.forwardRef((_a, ref) => {
|
|
|
2701
2713
|
}, [internalSelectedOption]);
|
|
2702
2714
|
react.useEffect(() => {
|
|
2703
2715
|
if (value !== (internalSelectedOption === null || internalSelectedOption === void 0 ? void 0 : internalSelectedOption.id)) {
|
|
2704
|
-
|
|
2705
|
-
|
|
2716
|
+
const foundOption = optionList === null || optionList === void 0 ? void 0 : optionList.find(option => option.id === value);
|
|
2717
|
+
setInternalSelectedOption(foundOption);
|
|
2718
|
+
setInputValue((foundOption === null || foundOption === void 0 ? void 0 : foundOption.value) || '');
|
|
2719
|
+
setInputLabel((foundOption === null || foundOption === void 0 ? void 0 : foundOption.label) || '');
|
|
2706
2720
|
}
|
|
2707
2721
|
if (!isFirstRender || currentOptionList.length === 0) return;
|
|
2708
2722
|
setInternalSelectedOption(currentOptionList.find(option => option.id === value));
|
|
2709
2723
|
setIsFirstRender(false);
|
|
2710
|
-
}, [currentOptionList, setSelectedOptionOnInputValue, value, internalSelectedOption
|
|
2724
|
+
}, [currentOptionList, setSelectedOptionOnInputValue, value, internalSelectedOption, optionList, isFirstRender]);
|
|
2711
2725
|
return jsxRuntime.jsxs(SectionContainer, Object.assign({
|
|
2712
2726
|
onClick: () => {
|
|
2713
2727
|
var _a;
|
|
2714
2728
|
return (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
2715
2729
|
},
|
|
2716
|
-
variant: variant,
|
|
2730
|
+
"$variant": variant,
|
|
2717
2731
|
id: `${id}-container`,
|
|
2718
2732
|
"data-testid": `${dataTestId}-container`,
|
|
2719
2733
|
style: {
|
|
@@ -2835,7 +2849,7 @@ const DropdownWithHeaders = /*#__PURE__*/react.forwardRef((_a, ref) => {
|
|
|
2835
2849
|
var _a;
|
|
2836
2850
|
return (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
2837
2851
|
},
|
|
2838
|
-
variant: variant,
|
|
2852
|
+
"$variant": variant,
|
|
2839
2853
|
"data-testid": `${dataTestId}-container`,
|
|
2840
2854
|
ref: ref
|
|
2841
2855
|
}, uiUtils.applyDataAttributes(props), {
|