trotl-filter 1.0.10 → 1.0.12

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
@@ -7013,7 +7013,9 @@ const MultiSelectDropdown = ({
7013
7013
  closeMenuOnSelect = false,
7014
7014
  pushUrlParamObj = false,
7015
7015
  // pushUrlParamObj={"ids"}
7016
- addItem = undefined
7016
+ addItem = undefined,
7017
+ style = {},
7018
+ allowClear = false
7017
7019
  }) => {
7018
7020
  const containerRef = React.useRef(null);
7019
7021
  const [maxVisible, setMaxVisible] = React.useState(1);
@@ -7280,12 +7282,14 @@ const MultiSelectDropdown = ({
7280
7282
  const showRequiredError = required && (!selected || selected.length === 0);
7281
7283
  return /*#__PURE__*/React.createElement("div", {
7282
7284
  style: {
7283
- width: "100%"
7285
+ width: "100%",
7286
+ ...style
7284
7287
  },
7285
7288
  ref: containerRef,
7286
7289
  className: showRequiredError ? "select-required-error" : ""
7287
7290
  }, /*#__PURE__*/React.createElement(StateManagedSelect$1, {
7288
7291
  isMulti: isMulti,
7292
+ isClearable: allowClear,
7289
7293
  options: menuOptions,
7290
7294
  value: selectedOptions,
7291
7295
  onChange: (val, action) => {