@thecb/components 10.8.0-beta.2 → 10.8.0-beta.3

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.d.ts CHANGED
@@ -1007,7 +1007,7 @@ interface SearchProps {
1007
1007
  disabled?: boolean;
1008
1008
  placeholder?: string;
1009
1009
  searchOnKeypress?: boolean;
1010
- formWidth?: string;
1010
+ width?: string;
1011
1011
  autocompleteValue?: string;
1012
1012
  themeValues?: object;
1013
1013
  }
package/dist/index.esm.js CHANGED
@@ -27098,7 +27098,6 @@ var FormInput = function FormInput(_ref15) {
27098
27098
  _ref15$isRequired = _ref15.isRequired,
27099
27099
  isRequired = _ref15$isRequired === void 0 ? false : _ref15$isRequired,
27100
27100
  props = _objectWithoutProperties(_ref15, _excluded2);
27101
- debugger;
27102
27101
  var _useState = useState(false),
27103
27102
  _useState2 = _slicedToArray(_useState, 2),
27104
27103
  showPassword = _useState2[0],
@@ -28608,12 +28607,10 @@ var Search = function Search(_ref) {
28608
28607
  placeholder = _ref$placeholder === void 0 ? "Search" : _ref$placeholder,
28609
28608
  _ref$searchOnKeypress = _ref.searchOnKeypress,
28610
28609
  searchOnKeypress = _ref$searchOnKeypress === void 0 ? false : _ref$searchOnKeypress,
28611
- _ref$searchContainerW = _ref.searchContainerWidth,
28612
- searchContainerWidth = _ref$searchContainerW === void 0 ? null : _ref$searchContainerW,
28610
+ _ref$width = _ref.width,
28611
+ width = _ref$width === void 0 ? "100%" : _ref$width,
28613
28612
  ariaControlsId = _ref.ariaControlsId,
28614
28613
  themeValues = _ref.themeValues;
28615
- console.log("🚀 ~ field:", field);
28616
- console.log("🚀 ~ fieldActions:", fieldActions);
28617
28614
  var searchTerm = field.rawValue;
28618
28615
  var getFilteredDataset = function getFilteredDataset() {
28619
28616
  if (!searchTerm) return dataset;
@@ -28628,10 +28625,10 @@ var Search = function Search(_ref) {
28628
28625
  return onSearchCallback(getFilteredDataset());
28629
28626
  };
28630
28627
  return /*#__PURE__*/React.createElement(Cluster, {
28631
- extraStyles: "overflow: visible;"
28628
+ extraStyles: "overflow: visible; width: ".concat(width, ";")
28632
28629
  }, /*#__PURE__*/React.createElement(Box, {
28633
28630
  padding: "0",
28634
- extraStyles: "\n flex-grow: ".concat(searchContainerWidth ? 0 : 1, "; \n width: ").concat(searchContainerWidth, " : auto;")
28631
+ extraStyles: "flex-grow: 1;"
28635
28632
  }, /*#__PURE__*/React.createElement(FormInput$1, {
28636
28633
  id: "searchInput",
28637
28634
  role: "search",