@thecb/components 7.7.6-beta.7 → 7.7.6

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/index.esm.js CHANGED
@@ -26056,7 +26056,9 @@ var SearchableSelect = function SearchableSelect(_ref) {
26056
26056
  fields = _ref.fields,
26057
26057
  actions = _ref.actions,
26058
26058
  disabled = _ref.disabled,
26059
- themeValues = _ref.themeValues;
26059
+ themeValues = _ref.themeValues,
26060
+ _ref$placeholder = _ref.placeholder,
26061
+ placeholder = _ref$placeholder === void 0 ? "Search agencies" : _ref$placeholder;
26060
26062
 
26061
26063
  var _useState = useState([]),
26062
26064
  _useState2 = _slicedToArray(_useState, 2),
@@ -26087,15 +26089,15 @@ var SearchableSelect = function SearchableSelect(_ref) {
26087
26089
  padding: "1rem",
26088
26090
  border: themeValues.border,
26089
26091
  extraStyles: disabled && "color: #6e727e; background-color: #f7f7f7; pointer-events: none;"
26090
- }, /*#__PURE__*/React.createElement(Stack, null, /*#__PURE__*/React.createElement(FormInput$1, {
26092
+ }, /*#__PURE__*/React.createElement(FormInput$1, {
26091
26093
  errorMessages: {},
26092
26094
  field: fields.searchTerm,
26093
26095
  fieldActions: actions.fields.searchTerm,
26094
- placeholder: "Search agencies",
26096
+ placeholder: placeholder,
26095
26097
  disabled: disabled
26096
26098
  }), /*#__PURE__*/React.createElement(Box, {
26097
- padding: "0.5rem 0",
26098
- extraStyles: "overflow-y: scroll; height: 250px;"
26099
+ padding: "0 0 0.5rem",
26100
+ extraStyles: "overflow-y: scroll; max-height: 250px;"
26099
26101
  }, /*#__PURE__*/React.createElement(Stack, null, itemList.map(function (value) {
26100
26102
  var _selectedItems$find;
26101
26103
 
@@ -26111,9 +26113,9 @@ var SearchableSelect = function SearchableSelect(_ref) {
26111
26113
  },
26112
26114
  textExtraStyles: "margin: 0;",
26113
26115
  disabled: disabled,
26114
- extraStyles: "margin: 0 0.5rem;"
26116
+ extraStyles: "margin: 0.5rem;"
26115
26117
  });
26116
- })))));
26118
+ }))));
26117
26119
  };
26118
26120
 
26119
26121
  var SearchableSelect$1 = themeComponent(SearchableSelect, "SearchableSelect", fallbackValues$u, "default");