@entur/dropdown 3.0.13 → 3.0.14
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/CHANGELOG.md +4 -0
- package/dist/dropdown.cjs.development.js +1 -55
- package/dist/dropdown.cjs.development.js.map +1 -1
- package/dist/dropdown.cjs.production.min.js +1 -1
- package/dist/dropdown.cjs.production.min.js.map +1 -1
- package/dist/dropdown.esm.js +1 -55
- package/dist/dropdown.esm.js.map +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.0.14](https://bitbucket.org/enturas/design-system/compare/@entur/dropdown@3.0.13...@entur/dropdown@3.0.14) (2022-08-31)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @entur/dropdown
|
|
9
|
+
|
|
6
10
|
## [3.0.13](https://bitbucket.org/enturas/design-system/compare/@entur/dropdown@3.0.12...@entur/dropdown@3.0.13) (2022-08-24)
|
|
7
11
|
|
|
8
12
|
### Bug Fixes
|
|
@@ -87,44 +87,6 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
87
87
|
return target;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
91
|
-
if (!o) return;
|
|
92
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
93
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
94
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
95
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
96
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
function _arrayLikeToArray(arr, len) {
|
|
100
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
101
|
-
|
|
102
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
103
|
-
|
|
104
|
-
return arr2;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
108
|
-
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
109
|
-
if (it) return (it = it.call(o)).next.bind(it);
|
|
110
|
-
|
|
111
|
-
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
112
|
-
if (it) o = it;
|
|
113
|
-
var i = 0;
|
|
114
|
-
return function () {
|
|
115
|
-
if (i >= o.length) return {
|
|
116
|
-
done: true
|
|
117
|
-
};
|
|
118
|
-
return {
|
|
119
|
-
done: false,
|
|
120
|
-
value: o[i++]
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
126
|
-
}
|
|
127
|
-
|
|
128
90
|
var _excluded$8 = ["children", "onChange", "onInputValueChange", "highlightFirstItemOnOpen", "className", "style", "searchable"];
|
|
129
91
|
var DownshiftContext = /*#__PURE__*/React__default["default"].createContext(null);
|
|
130
92
|
var DownshiftProvider = function DownshiftProvider(_ref) {
|
|
@@ -535,26 +497,10 @@ var SearchableDropdown = /*#__PURE__*/React__default["default"].forwardRef(funct
|
|
|
535
497
|
setHideSelectedItem(false);
|
|
536
498
|
closeMenu();
|
|
537
499
|
},
|
|
538
|
-
ref: mergeRefs(ref, inputRef)
|
|
500
|
+
ref: utils.mergeRefs(ref, inputRef)
|
|
539
501
|
})));
|
|
540
502
|
});
|
|
541
503
|
|
|
542
|
-
var mergeRefs = function mergeRefs() {
|
|
543
|
-
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
544
|
-
refs[_key] = arguments[_key];
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
return function (node) {
|
|
548
|
-
for (var _iterator = _createForOfIteratorHelperLoose(refs), _step; !(_step = _iterator()).done;) {
|
|
549
|
-
var ref = _step.value;
|
|
550
|
-
|
|
551
|
-
if (typeof ref === 'function') {
|
|
552
|
-
ref(node);
|
|
553
|
-
} else if (ref) ref.current = node;
|
|
554
|
-
}
|
|
555
|
-
};
|
|
556
|
-
};
|
|
557
|
-
|
|
558
504
|
var DropdownInputGroup = function DropdownInputGroup(_ref) {
|
|
559
505
|
var children = _ref.children,
|
|
560
506
|
feedback = _ref.feedback,
|