@entur/dropdown 5.3.4 → 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.
@@ -1382,6 +1382,7 @@ var SelectedItemTag = function SelectedItemTag(_ref) {
1382
1382
  })) != null ? _getSelectedItemProps : {},
1383
1383
  selectedItemProps = _objectWithoutPropertiesLoose(_ref2, _excluded$4);
1384
1384
  return React.createElement(TagChip, _extends({
1385
+ size: "small",
1385
1386
  className: classNames('eds-dropdown__selected-item-tag', {
1386
1387
  'eds-dropdown__selected-item-tag--readonly': readOnly,
1387
1388
  'eds-dropdown__selected-item-tag--disabled': disabled
@@ -1940,7 +1941,7 @@ var MultiSelect = function MultiSelect(_ref) {
1940
1941
  selectOnTab = _ref$selectOnTab === void 0 ? false : _ref$selectOnTab,
1941
1942
  style = _ref.style,
1942
1943
  _ref$variant = _ref.variant,
1943
- variant = _ref$variant === void 0 ? 'info' : _ref$variant,
1944
+ variant = _ref$variant === void 0 ? 'information' : _ref$variant,
1944
1945
  ariaLabelChosenSingular = _ref.ariaLabelChosenSingular,
1945
1946
  _ref$ariaLabelChosenP = _ref.ariaLabelChosenPlural,
1946
1947
  ariaLabelChosenPlural = _ref$ariaLabelChosenP === void 0 ? 'valgte' : _ref$ariaLabelChosenP,
@@ -2313,7 +2314,7 @@ var Dropdown = function Dropdown(_ref) {
2313
2314
  selectOnTab = _ref$selectOnTab === void 0 ? false : _ref$selectOnTab,
2314
2315
  style = _ref.style,
2315
2316
  _ref$variant = _ref.variant,
2316
- variant = _ref$variant === void 0 ? 'info' : _ref$variant,
2317
+ variant = _ref$variant === void 0 ? 'information' : _ref$variant,
2317
2318
  rest = _objectWithoutPropertiesLoose(_ref, _excluded$1);
2318
2319
  var _useResolvedItems = useResolvedItems(initialItems),
2319
2320
  normalizedItems = _useResolvedItems.items,
@@ -2421,6 +2422,8 @@ var Dropdown = function Dropdown(_ref) {
2421
2422
  };
2422
2423
 
2423
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';
2424
2427
  var NativeDropdown = function NativeDropdown(_ref) {
2425
2428
  var _ref2;
2426
2429
  var className = _ref.className,
@@ -2462,7 +2465,7 @@ var NativeDropdown = function NativeDropdown(_ref) {
2462
2465
  disableLabelAnimation: disableLabelAnimation,
2463
2466
  isFilled: true
2464
2467
  }, React.createElement("select", _extends({
2465
- "aria-invalid": variant === 'error',
2468
+ "aria-invalid": variant === 'negative' || variant === error,
2466
2469
  "aria-labelledby": nativeDropdownId,
2467
2470
  "aria-busy": loading,
2468
2471
  className: "eds-form-control eds-dropdown--native",