@entur/dropdown 5.0.0-RC.0 → 5.0.0-RC.1

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.
@@ -1775,7 +1775,8 @@ var SearchableDropdown = function SearchableDropdown(_ref) {
1775
1775
  });
1776
1776
  };
1777
1777
  return React.createElement("div", {
1778
- className: "eds-dropdown__wrapper"
1778
+ className: classNames('eds-dropdown__wrapper', className),
1779
+ style: style
1779
1780
  }, React.createElement(BaseFormControl, _extends({
1780
1781
  append: React.createElement(FieldAppend$1, {
1781
1782
  ariaLabelCloseList: ariaLabelCloseList,
@@ -1791,7 +1792,7 @@ var SearchableDropdown = function SearchableDropdown(_ref) {
1791
1792
  onClear: handleOnClear,
1792
1793
  selectedItems: [selectedItem]
1793
1794
  }),
1794
- className: classNames('eds-dropdown', className),
1795
+ className: "eds-dropdown",
1795
1796
  disabled: disabled,
1796
1797
  disableLabelAnimation: disableLabelAnimation,
1797
1798
  feedback: feedback,
@@ -1801,7 +1802,6 @@ var SearchableDropdown = function SearchableDropdown(_ref) {
1801
1802
  labelProps: getLabelProps(),
1802
1803
  prepend: prepend,
1803
1804
  readOnly: readOnly,
1804
- style: style,
1805
1805
  variant: variant
1806
1806
  }, rest), !hideSelectedItem && selectedItem && !inputValue && React.createElement("span", {
1807
1807
  className: "eds-dropdown__selected-item__wrapper",
@@ -2086,7 +2086,8 @@ var MultiSelect = function MultiSelect(_ref) {
2086
2086
  });
2087
2087
  };
2088
2088
  return React.createElement("div", {
2089
- className: "eds-dropdown__wrapper"
2089
+ className: classNames('eds-dropdown__wrapper', className),
2090
+ style: style
2090
2091
  }, React.createElement(BaseFormControl, _extends({
2091
2092
  append: React.createElement(FieldAppend$1, {
2092
2093
  ariaLabelCloseList: ariaLabelCloseList,
@@ -2102,7 +2103,7 @@ var MultiSelect = function MultiSelect(_ref) {
2102
2103
  onClear: handleOnClear,
2103
2104
  getToggleButtonProps: getToggleButtonProps
2104
2105
  }),
2105
- className: classNames('eds-dropdown', className),
2106
+ className: "eds-dropdown",
2106
2107
  disabled: disabled,
2107
2108
  feedback: feedback,
2108
2109
  isFilled: hasSelectedItems || inputValue !== EMPTY_INPUT,
@@ -2110,7 +2111,6 @@ var MultiSelect = function MultiSelect(_ref) {
2110
2111
  labelId: getLabelProps().id,
2111
2112
  labelProps: getLabelProps(),
2112
2113
  readOnly: readOnly,
2113
- style: style,
2114
2114
  variant: variant
2115
2115
  }, rest), React.createElement("div", {
2116
2116
  className: classNames('eds-dropdown__selected-items-and-input', {
@@ -2242,7 +2242,8 @@ var Dropdown = function Dropdown(_ref) {
2242
2242
  getToggleButtonProps = _useSelect.getToggleButtonProps,
2243
2243
  highlightedIndex = _useSelect.highlightedIndex;
2244
2244
  return React.createElement("div", {
2245
- className: "eds-dropdown__wrapper"
2245
+ className: classNames('eds-dropdown__wrapper', className),
2246
+ style: style
2246
2247
  }, React.createElement(BaseFormControl, _extends({
2247
2248
  append: React.createElement(FieldAppend$1, {
2248
2249
  ariaHiddenToggleButton: true,
@@ -2261,7 +2262,7 @@ var Dropdown = function Dropdown(_ref) {
2261
2262
  disabled: readOnly || disabled,
2262
2263
  selectedItems: [selectedItem]
2263
2264
  }),
2264
- className: classNames('eds-dropdown', className, {
2265
+ className: classNames('eds-dropdown', {
2265
2266
  'eds-dropdown--not-filled': !isFilled
2266
2267
  }),
2267
2268
  disabled: disabled,
@@ -2273,7 +2274,6 @@ var Dropdown = function Dropdown(_ref) {
2273
2274
  labelProps: getLabelProps(),
2274
2275
  prepend: prepend,
2275
2276
  readOnly: readOnly,
2276
- style: style,
2277
2277
  variant: variant
2278
2278
  }, rest), React.createElement("div", _extends({
2279
2279
  className: "eds-dropdown__selected-item-button"