@bolttech/molecules-dropdown 0.37.1 → 0.37.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.
- package/index.cjs.js +49 -33
- package/package.json +6 -6
package/index.cjs.js
CHANGED
|
@@ -28,7 +28,7 @@ var fails$i = fails$j;
|
|
|
28
28
|
|
|
29
29
|
var functionBindNative = !fails$i(function () {
|
|
30
30
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
31
|
-
var test =
|
|
31
|
+
var test = function () { /* empty */ }.bind();
|
|
32
32
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
33
33
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
34
34
|
});
|
|
@@ -134,10 +134,10 @@ var SHARED = '__core-js_shared__';
|
|
|
134
134
|
var store$3 = sharedStore.exports = globalThis$h[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
135
135
|
|
|
136
136
|
(store$3.versions || (store$3.versions = [])).push({
|
|
137
|
-
version: '3.
|
|
137
|
+
version: '3.49.0',
|
|
138
138
|
mode: 'global',
|
|
139
139
|
copyright: '© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.',
|
|
140
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
140
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE',
|
|
141
141
|
source: 'https://github.com/zloirock/core-js'
|
|
142
142
|
});
|
|
143
143
|
|
|
@@ -922,7 +922,7 @@ var getDescriptor = DESCRIPTORS$5 && Object.getOwnPropertyDescriptor;
|
|
|
922
922
|
|
|
923
923
|
var EXISTS = hasOwn$6(FunctionPrototype$1, 'name');
|
|
924
924
|
// additional protection from minified / mangled / dropped function names
|
|
925
|
-
var PROPER = EXISTS &&
|
|
925
|
+
var PROPER = EXISTS && function something() { /* empty */ }.name === 'something';
|
|
926
926
|
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$5 || (DESCRIPTORS$5 && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
|
927
927
|
|
|
928
928
|
var functionName = {
|
|
@@ -1733,7 +1733,9 @@ var iterate$3 = function (iterable, unboundFunction, options) {
|
|
|
1733
1733
|
var iterator, iterFn, index, length, result, next, step;
|
|
1734
1734
|
|
|
1735
1735
|
var stop = function (condition) {
|
|
1736
|
-
|
|
1736
|
+
var $iterator = iterator;
|
|
1737
|
+
iterator = undefined;
|
|
1738
|
+
if ($iterator) iteratorClose$8($iterator, 'normal');
|
|
1737
1739
|
return new Result(true, condition);
|
|
1738
1740
|
};
|
|
1739
1741
|
|
|
@@ -1763,10 +1765,13 @@ var iterate$3 = function (iterable, unboundFunction, options) {
|
|
|
1763
1765
|
|
|
1764
1766
|
next = IS_RECORD ? iterable.next : iterator.next;
|
|
1765
1767
|
while (!(step = call$e(next, iterator)).done) {
|
|
1768
|
+
// `IteratorValue` errors should propagate without closing the iterator
|
|
1769
|
+
var value = step.value;
|
|
1766
1770
|
try {
|
|
1767
|
-
result = callFn(
|
|
1771
|
+
result = callFn(value);
|
|
1768
1772
|
} catch (error) {
|
|
1769
|
-
iteratorClose$8(iterator, 'throw', error);
|
|
1773
|
+
if (iterator) iteratorClose$8(iterator, 'throw', error);
|
|
1774
|
+
else throw error;
|
|
1770
1775
|
}
|
|
1771
1776
|
if (typeof result == 'object' && result && isPrototypeOf$1(ResultPrototype, result)) return result;
|
|
1772
1777
|
} return new Result(false);
|
|
@@ -2176,18 +2181,29 @@ var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
|
|
2176
2181
|
|
|
2177
2182
|
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
|
|
2178
2183
|
|
|
2184
|
+
var setGroups = function (re, groups) {
|
|
2185
|
+
var object = re.groups = create$1(null);
|
|
2186
|
+
for (var i = 0; i < groups.length; i++) {
|
|
2187
|
+
var group = groups[i];
|
|
2188
|
+
object[group[0]] = re[group[1]];
|
|
2189
|
+
}
|
|
2190
|
+
};
|
|
2191
|
+
|
|
2179
2192
|
if (PATCH) {
|
|
2180
2193
|
patchedExec = function exec(string) {
|
|
2181
2194
|
var re = this;
|
|
2182
2195
|
var state = getInternalState(re);
|
|
2183
2196
|
var str = toString$4(string);
|
|
2184
2197
|
var raw = state.raw;
|
|
2185
|
-
var result, reCopy, lastIndex
|
|
2198
|
+
var result, reCopy, lastIndex;
|
|
2186
2199
|
|
|
2187
2200
|
if (raw) {
|
|
2188
2201
|
raw.lastIndex = re.lastIndex;
|
|
2189
2202
|
result = call$a(patchedExec, raw, str);
|
|
2190
2203
|
re.lastIndex = raw.lastIndex;
|
|
2204
|
+
|
|
2205
|
+
if (result && state.groups) setGroups(result, state.groups);
|
|
2206
|
+
|
|
2191
2207
|
return result;
|
|
2192
2208
|
}
|
|
2193
2209
|
|
|
@@ -2206,8 +2222,10 @@ if (PATCH) {
|
|
|
2206
2222
|
|
|
2207
2223
|
strCopy = stringSlice$3(str, re.lastIndex);
|
|
2208
2224
|
// Support anchored sticky behavior.
|
|
2209
|
-
|
|
2210
|
-
|
|
2225
|
+
var prevChar = re.lastIndex > 0 && charAt$3(str, re.lastIndex - 1);
|
|
2226
|
+
if (re.lastIndex > 0 &&
|
|
2227
|
+
(!re.multiline || re.multiline && prevChar !== '\n' && prevChar !== '\r' && prevChar !== '\u2028' && prevChar !== '\u2029')) {
|
|
2228
|
+
source = '(?: (?:' + source + '))';
|
|
2211
2229
|
strCopy = ' ' + strCopy;
|
|
2212
2230
|
charsAdded++;
|
|
2213
2231
|
}
|
|
@@ -2221,11 +2239,11 @@ if (PATCH) {
|
|
|
2221
2239
|
}
|
|
2222
2240
|
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
2223
2241
|
|
|
2224
|
-
match = call$a(nativeExec, sticky ? reCopy : re, strCopy);
|
|
2242
|
+
var match = call$a(nativeExec, sticky ? reCopy : re, strCopy);
|
|
2225
2243
|
|
|
2226
2244
|
if (sticky) {
|
|
2227
2245
|
if (match) {
|
|
2228
|
-
match.input =
|
|
2246
|
+
match.input = str;
|
|
2229
2247
|
match[0] = stringSlice$3(match[0], charsAdded);
|
|
2230
2248
|
match.index = re.lastIndex;
|
|
2231
2249
|
re.lastIndex += match[0].length;
|
|
@@ -2237,19 +2255,13 @@ if (PATCH) {
|
|
|
2237
2255
|
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
2238
2256
|
// for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
|
|
2239
2257
|
call$a(nativeReplace, match[0], reCopy, function () {
|
|
2240
|
-
for (i = 1; i < arguments.length - 2; i++) {
|
|
2258
|
+
for (var i = 1; i < arguments.length - 2; i++) {
|
|
2241
2259
|
if (arguments[i] === undefined) match[i] = undefined;
|
|
2242
2260
|
}
|
|
2243
2261
|
});
|
|
2244
2262
|
}
|
|
2245
2263
|
|
|
2246
|
-
if (match && groups)
|
|
2247
|
-
match.groups = object = create$1(null);
|
|
2248
|
-
for (i = 0; i < groups.length; i++) {
|
|
2249
|
-
group = groups[i];
|
|
2250
|
-
object[group[0]] = match[group[1]];
|
|
2251
|
-
}
|
|
2252
|
-
}
|
|
2264
|
+
if (match && groups) setGroups(match, groups);
|
|
2253
2265
|
|
|
2254
2266
|
return match;
|
|
2255
2267
|
};
|
|
@@ -2394,7 +2406,7 @@ var charAt$1 = stringMultibyte.charAt;
|
|
|
2394
2406
|
// `AdvanceStringIndex` abstract operation
|
|
2395
2407
|
// https://tc39.es/ecma262/#sec-advancestringindex
|
|
2396
2408
|
var advanceStringIndex$1 = function (S, index, unicode) {
|
|
2397
|
-
return index + (unicode ? charAt$1(S, index).length : 1);
|
|
2409
|
+
return index + (unicode ? charAt$1(S, index).length || 1 : 1);
|
|
2398
2410
|
};
|
|
2399
2411
|
|
|
2400
2412
|
var uncurryThis$2 = functionUncurryThis;
|
|
@@ -2604,23 +2616,24 @@ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCall
|
|
|
2604
2616
|
var rx = anObject$5(this);
|
|
2605
2617
|
var S = toString$2(string);
|
|
2606
2618
|
|
|
2619
|
+
var functionalReplace = isCallable(replaceValue);
|
|
2620
|
+
if (!functionalReplace) replaceValue = toString$2(replaceValue);
|
|
2621
|
+
var flags = toString$2(getRegExpFlags(rx));
|
|
2622
|
+
|
|
2607
2623
|
if (
|
|
2608
2624
|
typeof replaceValue == 'string' &&
|
|
2609
|
-
stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE)
|
|
2610
|
-
stringIndexOf(replaceValue, '$<')
|
|
2625
|
+
!~stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) &&
|
|
2626
|
+
!~stringIndexOf(replaceValue, '$<') &&
|
|
2627
|
+
!~stringIndexOf(flags, 'y')
|
|
2611
2628
|
) {
|
|
2612
2629
|
var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
|
|
2613
2630
|
if (res.done) return res.value;
|
|
2614
2631
|
}
|
|
2615
2632
|
|
|
2616
|
-
var
|
|
2617
|
-
if (!functionalReplace) replaceValue = toString$2(replaceValue);
|
|
2618
|
-
|
|
2619
|
-
var flags = toString$2(getRegExpFlags(rx));
|
|
2620
|
-
var global = stringIndexOf(flags, 'g') !== -1;
|
|
2633
|
+
var global = !!~stringIndexOf(flags, 'g');
|
|
2621
2634
|
var fullUnicode;
|
|
2622
2635
|
if (global) {
|
|
2623
|
-
fullUnicode = stringIndexOf(flags, 'u')
|
|
2636
|
+
fullUnicode = !!~stringIndexOf(flags, 'u') || !!~stringIndexOf(flags, 'v');
|
|
2624
2637
|
rx.lastIndex = 0;
|
|
2625
2638
|
}
|
|
2626
2639
|
|
|
@@ -2861,11 +2874,11 @@ const PortalContainer = /*#__PURE__*/styled__default.default.div.withConfig({
|
|
|
2861
2874
|
componentId: "sc-3wugi4-6"
|
|
2862
2875
|
})(["position:fixed;top:", ";left:", ";width:", ";z-index:10;"], ({
|
|
2863
2876
|
portalPosition
|
|
2864
|
-
}) => portalPosition.top
|
|
2877
|
+
}) => `${portalPosition.top}px`, ({
|
|
2865
2878
|
portalPosition
|
|
2866
|
-
}) => portalPosition.left
|
|
2879
|
+
}) => `${portalPosition.left}px`, ({
|
|
2867
2880
|
portalPosition
|
|
2868
|
-
}) => portalPosition.width);
|
|
2881
|
+
}) => `${portalPosition.width}px`);
|
|
2869
2882
|
|
|
2870
2883
|
const ReusableDropdownComponent = _a => {
|
|
2871
2884
|
var {
|
|
@@ -3063,11 +3076,13 @@ var createIteratorProxyPrototype = function (IS_ITERATOR) {
|
|
|
3063
3076
|
'return': function () {
|
|
3064
3077
|
var state = getInternalState(this);
|
|
3065
3078
|
var iterator = state.iterator;
|
|
3079
|
+
var done = state.done;
|
|
3066
3080
|
state.done = true;
|
|
3067
3081
|
if (IS_ITERATOR) {
|
|
3068
3082
|
var returnMethod = getMethod$1(iterator, 'return');
|
|
3069
3083
|
return returnMethod ? call$4(returnMethod, iterator) : createIterResultObject(undefined, true);
|
|
3070
3084
|
}
|
|
3085
|
+
if (done) return createIterResultObject(undefined, true);
|
|
3071
3086
|
if (state.inner) try {
|
|
3072
3087
|
iteratorClose$4(state.inner.iterator, NORMAL);
|
|
3073
3088
|
} catch (error) {
|
|
@@ -3076,7 +3091,8 @@ var createIteratorProxyPrototype = function (IS_ITERATOR) {
|
|
|
3076
3091
|
if (state.openIters) try {
|
|
3077
3092
|
iteratorCloseAll(state.openIters, NORMAL);
|
|
3078
3093
|
} catch (error) {
|
|
3079
|
-
return iteratorClose$4(iterator, THROW, error);
|
|
3094
|
+
if (iterator) return iteratorClose$4(iterator, THROW, error);
|
|
3095
|
+
throw error;
|
|
3080
3096
|
}
|
|
3081
3097
|
if (iterator) iteratorClose$4(iterator, NORMAL);
|
|
3082
3098
|
return createIterResultObject(undefined, true);
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bolttech/molecules-dropdown",
|
|
3
|
-
"version": "0.37.
|
|
3
|
+
"version": "0.37.3",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"react": "19.1.2",
|
|
6
|
-
"@bolttech/atoms-select": "0.27.
|
|
6
|
+
"@bolttech/atoms-select": "0.27.3",
|
|
7
7
|
"react-dom": "19.1.2",
|
|
8
|
-
"@bolttech/ui-utils": "0.6.
|
|
8
|
+
"@bolttech/ui-utils": "0.6.7",
|
|
9
9
|
"styled-components": "6.1.1",
|
|
10
|
-
"@bolttech/atoms-icon": "0.24.
|
|
11
|
-
"@bolttech/atoms-input": "0.30.
|
|
12
|
-
"@bolttech/default-theme": "0.18.
|
|
10
|
+
"@bolttech/atoms-icon": "0.24.9",
|
|
11
|
+
"@bolttech/atoms-input": "0.30.4",
|
|
12
|
+
"@bolttech/default-theme": "0.18.2"
|
|
13
13
|
},
|
|
14
14
|
"main": "./index.cjs.js",
|
|
15
15
|
"type": "commonjs",
|