@entur/dropdown 5.3.5 → 5.4.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/dist/Dropdown.d.ts +7 -2
- package/dist/MultiSelect.d.ts +7 -2
- package/dist/NativeDropdown.d.ts +8 -3
- package/dist/SearchableDropdown.d.ts +8 -3
- package/dist/dropdown.cjs.development.js +5 -3
- 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 +5 -3
- package/dist/dropdown.esm.js.map +1 -1
- package/dist/styles.css +274 -274
- package/package.json +10 -10
package/dist/dropdown.esm.js
CHANGED
|
@@ -1941,7 +1941,7 @@ var MultiSelect = function MultiSelect(_ref) {
|
|
|
1941
1941
|
selectOnTab = _ref$selectOnTab === void 0 ? false : _ref$selectOnTab,
|
|
1942
1942
|
style = _ref.style,
|
|
1943
1943
|
_ref$variant = _ref.variant,
|
|
1944
|
-
variant = _ref$variant === void 0 ? '
|
|
1944
|
+
variant = _ref$variant === void 0 ? 'information' : _ref$variant,
|
|
1945
1945
|
ariaLabelChosenSingular = _ref.ariaLabelChosenSingular,
|
|
1946
1946
|
_ref$ariaLabelChosenP = _ref.ariaLabelChosenPlural,
|
|
1947
1947
|
ariaLabelChosenPlural = _ref$ariaLabelChosenP === void 0 ? 'valgte' : _ref$ariaLabelChosenP,
|
|
@@ -2314,7 +2314,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
2314
2314
|
selectOnTab = _ref$selectOnTab === void 0 ? false : _ref$selectOnTab,
|
|
2315
2315
|
style = _ref.style,
|
|
2316
2316
|
_ref$variant = _ref.variant,
|
|
2317
|
-
variant = _ref$variant === void 0 ? '
|
|
2317
|
+
variant = _ref$variant === void 0 ? 'information' : _ref$variant,
|
|
2318
2318
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
2319
2319
|
var _useResolvedItems = useResolvedItems(initialItems),
|
|
2320
2320
|
normalizedItems = _useResolvedItems.items,
|
|
@@ -2422,6 +2422,8 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
2422
2422
|
};
|
|
2423
2423
|
|
|
2424
2424
|
var _excluded = ["className", "disabled", "disableLabelAnimation", "feedback", "items", "label", "loadingText", "onChange", "prepend", "readOnly", "selectedItem", "style", "value", "variant"];
|
|
2425
|
+
/** @deprecated use variant="negative" instead */
|
|
2426
|
+
var error = 'error';
|
|
2425
2427
|
var NativeDropdown = function NativeDropdown(_ref) {
|
|
2426
2428
|
var _ref2;
|
|
2427
2429
|
var className = _ref.className,
|
|
@@ -2463,7 +2465,7 @@ var NativeDropdown = function NativeDropdown(_ref) {
|
|
|
2463
2465
|
disableLabelAnimation: disableLabelAnimation,
|
|
2464
2466
|
isFilled: true
|
|
2465
2467
|
}, React.createElement("select", _extends({
|
|
2466
|
-
"aria-invalid": variant === 'error
|
|
2468
|
+
"aria-invalid": variant === 'negative' || variant === error,
|
|
2467
2469
|
"aria-labelledby": nativeDropdownId,
|
|
2468
2470
|
"aria-busy": loading,
|
|
2469
2471
|
className: "eds-form-control eds-dropdown--native",
|