@sproutsocial/seeds-react-menu 1.6.1 → 1.6.2

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.mts CHANGED
@@ -535,6 +535,7 @@ type TypeBaseAutocompleteProps = TypeHigherOrderComponentProps & TypeDownshiftCo
535
535
  /** Set multiSelect to true to allow multiple selections.
536
536
  * Default: false*/
537
537
  multiSelect?: boolean;
538
+ autoCloseOnEmpty?: boolean;
538
539
  };
539
540
  type TypeSingleAutocompleteProps<I extends TypeMenuItemProps = TypeMenuItemProps> = TypeBaseAutocompleteProps & {
540
541
  multiSelect?: false;
package/dist/index.d.ts CHANGED
@@ -535,6 +535,7 @@ type TypeBaseAutocompleteProps = TypeHigherOrderComponentProps & TypeDownshiftCo
535
535
  /** Set multiSelect to true to allow multiple selections.
536
536
  * Default: false*/
537
537
  multiSelect?: boolean;
538
+ autoCloseOnEmpty?: boolean;
538
539
  };
539
540
  type TypeSingleAutocompleteProps<I extends TypeMenuItemProps = TypeMenuItemProps> = TypeBaseAutocompleteProps & {
540
541
  multiSelect?: false;
package/dist/index.js CHANGED
@@ -3741,6 +3741,7 @@ var SingleAutocomplete = ({
3741
3741
  MenuItemComponent,
3742
3742
  itemToString: itemToString2 = itemToString,
3743
3743
  getIsItemVisible,
3744
+ autoCloseOnEmpty = true,
3744
3745
  ...useComboboxProps
3745
3746
  }) => {
3746
3747
  const { allMenuItems, children } = useMenuChildren({
@@ -3774,6 +3775,7 @@ var SingleAutocomplete = ({
3774
3775
  {
3775
3776
  ...{
3776
3777
  isListbox: true,
3778
+ autoCloseOnEmpty,
3777
3779
  items: allMenuItems,
3778
3780
  itemToString: itemToString2,
3779
3781
  ...useComboboxProps,
@@ -3784,7 +3786,6 @@ var SingleAutocomplete = ({
3784
3786
  focusOnContent: false,
3785
3787
  ...userPopoutProps
3786
3788
  },
3787
- autoCloseOnEmpty: true,
3788
3789
  children
3789
3790
  }
3790
3791
  );
@@ -3810,6 +3811,7 @@ var MultiAutocomplete = ({
3810
3811
  getA11yMultiStatusMessage,
3811
3812
  onMultiSelectStateChange,
3812
3813
  multiSelectStateReducer,
3814
+ autoCloseOnEmpty = true,
3813
3815
  ...useComboboxProps
3814
3816
  }) => {
3815
3817
  const { allMenuItems, children } = useMenuChildren({
@@ -3912,6 +3914,7 @@ var MultiAutocomplete = ({
3912
3914
  {
3913
3915
  ...{
3914
3916
  isListbox: true,
3917
+ autoCloseOnEmpty,
3915
3918
  items: allMenuItems,
3916
3919
  itemToString: itemToString2,
3917
3920
  initialSelectedItems,
@@ -3929,7 +3932,6 @@ var MultiAutocomplete = ({
3929
3932
  focusOnContent: false,
3930
3933
  ...userPopoutProps
3931
3934
  },
3932
- autoCloseOnEmpty: true,
3933
3935
  children
3934
3936
  }
3935
3937
  );