fis-component 0.1.28 → 0.1.30

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/cjs/index.js CHANGED
@@ -75748,7 +75748,7 @@ function isMenuSize(value) {
75748
75748
  return value === "sm" || value === "md";
75749
75749
  }
75750
75750
 
75751
- const FISSelect = React.forwardRef(({ className, style, size = "md", options, value, disabled = false, textLabel = "", iconLabel, required, negative, message, positive, multi, placeholder, placeholderSearch, loading, onChange, renderOption, onClickIconLabel, displayValue, multiDisplayText, searchValue, onSearchChange, portal = true, maxHeight, onPopupScroll, onOpen, hideChip, tooltipTitle, tooltipVariant = "primary", noData, noResult, noDataText, noResultText, footer, searchDebounce, showSearch, onSearchInput, virtualized, virtualItemHeight, ...restProps }, ref) => {
75751
+ const FISSelect = React.forwardRef(({ className, style, size = "md", options, value, disabled = false, textLabel = "", iconLabel, required, negative, message, positive, multi, placeholder, placeholderSearch, loading, onChange, renderOption, onClickIconLabel, displayValue, multiDisplayText, searchValue, onSearchChange, portal = true, maxHeight, onPopupScroll, onOpen, hideChip, tooltipTitle, tooltipVariant = "primary", noData, noResult, noDataText, noResultText, footer, searchDebounce, showSearch, onSearchInput, virtualized, virtualItemHeight, removeSelectedText, ...restProps }, ref) => {
75752
75752
  const [isOpen, setIsOpen] = React.useState(false);
75753
75753
  const [referenceElement, setReferenceElement] = React.useState(null);
75754
75754
  const [popperElement, setPopperElement] = React.useState(null);
@@ -75902,6 +75902,7 @@ const FISSelect = React.forwardRef(({ className, style, size = "md", options, va
75902
75902
  onSearchInput,
75903
75903
  virtualized,
75904
75904
  virtualItemHeight,
75905
+ removeSelectedText,
75905
75906
  ...restProps,
75906
75907
  }), [
75907
75908
  options,
@@ -75927,6 +75928,7 @@ const FISSelect = React.forwardRef(({ className, style, size = "md", options, va
75927
75928
  onSearchInput,
75928
75929
  virtualized,
75929
75930
  virtualItemHeight,
75931
+ removeSelectedText,
75930
75932
  restProps,
75931
75933
  ]);
75932
75934
  React.useEffect(() => {
@@ -75956,7 +75958,7 @@ const FISSelect = React.forwardRef(({ className, style, size = "md", options, va
75956
75958
  }
75957
75959
  }, [isOpen, multi]);
75958
75960
  const renderSelectInput = () => {
75959
- const selectInput = (jsxRuntime.jsx(DivInputWrapperSC, { ref: setReferenceElement, onClick: handleToggle, "$hasValue": !!value, children: jsxRuntime.jsx(FISSelectItem, { ...restProps, onBlur: handleBlur, ref: inputRef, size: size, placeholder: placeholder, iconSuffix: isOpen ? jsxRuntime.jsx(ArrowUpIcon, {}) : jsxRuntime.jsx(ArrowDownIcon, {}), value: computedDisplayValue, readOnly: true, disabled: disabled, activeDropdown: isOpen, negative: negative }) }));
75961
+ const selectInput = (jsxRuntime.jsx(DivInputWrapperSC, { ref: setReferenceElement, onClick: handleToggle, "$hasValue": !!value, children: jsxRuntime.jsx(FISSelectItem, { ...restProps, onBlur: handleBlur, ref: inputRef, size: size, placeholder: placeholder, iconSuffix: isOpen ? jsxRuntime.jsx(ArrowUpIcon, {}) : jsxRuntime.jsx(ArrowDownIcon, {}), value: computedDisplayValue, onChange: () => undefined, disabled: disabled, activeDropdown: isOpen, negative: negative }) }));
75960
75962
  if (tooltipTitle) {
75961
75963
  return (jsxRuntime.jsx(FISTooltip, { title: tooltipTitle, variant: tooltipVariant, smartPlacement: true, children: selectInput }));
75962
75964
  }