@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.cjs.js CHANGED
@@ -26064,7 +26064,9 @@ var SearchableSelect = function SearchableSelect(_ref) {
26064
26064
  fields = _ref.fields,
26065
26065
  actions = _ref.actions,
26066
26066
  disabled = _ref.disabled,
26067
- themeValues = _ref.themeValues;
26067
+ themeValues = _ref.themeValues,
26068
+ _ref$placeholder = _ref.placeholder,
26069
+ placeholder = _ref$placeholder === void 0 ? "Search agencies" : _ref$placeholder;
26068
26070
 
26069
26071
  var _useState = React.useState([]),
26070
26072
  _useState2 = _slicedToArray(_useState, 2),
@@ -26095,15 +26097,15 @@ var SearchableSelect = function SearchableSelect(_ref) {
26095
26097
  padding: "1rem",
26096
26098
  border: themeValues.border,
26097
26099
  extraStyles: disabled && "color: #6e727e; background-color: #f7f7f7; pointer-events: none;"
26098
- }, /*#__PURE__*/React__default.createElement(Stack, null, /*#__PURE__*/React__default.createElement(FormInput$1, {
26100
+ }, /*#__PURE__*/React__default.createElement(FormInput$1, {
26099
26101
  errorMessages: {},
26100
26102
  field: fields.searchTerm,
26101
26103
  fieldActions: actions.fields.searchTerm,
26102
- placeholder: "Search agencies",
26104
+ placeholder: placeholder,
26103
26105
  disabled: disabled
26104
26106
  }), /*#__PURE__*/React__default.createElement(Box, {
26105
- padding: "0.5rem 0",
26106
- extraStyles: "overflow-y: scroll; height: 250px;"
26107
+ padding: "0 0 0.5rem",
26108
+ extraStyles: "overflow-y: scroll; max-height: 250px;"
26107
26109
  }, /*#__PURE__*/React__default.createElement(Stack, null, itemList.map(function (value) {
26108
26110
  var _selectedItems$find;
26109
26111
 
@@ -26119,9 +26121,9 @@ var SearchableSelect = function SearchableSelect(_ref) {
26119
26121
  },
26120
26122
  textExtraStyles: "margin: 0;",
26121
26123
  disabled: disabled,
26122
- extraStyles: "margin: 0 0.5rem;"
26124
+ extraStyles: "margin: 0.5rem;"
26123
26125
  });
26124
- })))));
26126
+ }))));
26125
26127
  };
26126
26128
 
26127
26129
  var SearchableSelect$1 = themeComponent(SearchableSelect, "SearchableSelect", fallbackValues$u, "default");