@sproutsocial/seeds-react-menu 1.6.5 → 1.6.7

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
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { UseComboboxProps, UseSelectProps, UseMultipleSelectionProps, UseComboboxReturnValue, UseSelectReturnValue, UseMultipleSelectionReturnValue, UseComboboxGetInputPropsOptions, GetItemPropsOptions } from 'downshift';
2
+ import { UseComboboxReturnValue, UseComboboxProps, UseSelectReturnValue, UseSelectProps, UseMultipleSelectionReturnValue, UseMultipleSelectionProps, UseComboboxGetInputPropsOptions, GetItemPropsOptions } from 'downshift';
3
3
  import { TypeBorderSystemProps, TypeColorSystemProps, TypeFlexboxSystemProps, TypeGridSystemProps, TypeLayoutSystemProps, TypePositionSystemProps, TypeSpaceSystemProps, TypeTypographySystemProps, TypeStyledComponentsCommonProps } from '@sproutsocial/seeds-react-system-props';
4
4
  import * as styled_components from 'styled-components';
5
5
  import * as _sproutsocial_seeds_react_box from '@sproutsocial/seeds-react-box';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { UseComboboxProps, UseSelectProps, UseMultipleSelectionProps, UseComboboxReturnValue, UseSelectReturnValue, UseMultipleSelectionReturnValue, UseComboboxGetInputPropsOptions, GetItemPropsOptions } from 'downshift';
2
+ import { UseComboboxReturnValue, UseComboboxProps, UseSelectReturnValue, UseSelectProps, UseMultipleSelectionReturnValue, UseMultipleSelectionProps, UseComboboxGetInputPropsOptions, GetItemPropsOptions } from 'downshift';
3
3
  import { TypeBorderSystemProps, TypeColorSystemProps, TypeFlexboxSystemProps, TypeGridSystemProps, TypeLayoutSystemProps, TypePositionSystemProps, TypeSpaceSystemProps, TypeTypographySystemProps, TypeStyledComponentsCommonProps } from '@sproutsocial/seeds-react-system-props';
4
4
  import * as styled_components from 'styled-components';
5
5
  import * as _sproutsocial_seeds_react_box from '@sproutsocial/seeds-react-box';
package/dist/index.js CHANGED
@@ -4051,6 +4051,7 @@ var AutocompleteSelect = (props) => {
4051
4051
  var import_react32 = require("react");
4052
4052
  var import_react33 = require("motion/react");
4053
4053
  var import_downshift9 = require("downshift");
4054
+ var import_lodash = __toESM(require("lodash.uniqueid"));
4054
4055
 
4055
4056
  // src/reducers/nestedMenuStateReducer.tsx
4056
4057
  var import_downshift8 = require("downshift");
@@ -4292,6 +4293,14 @@ var NestedMenuPopout = ({
4292
4293
 
4293
4294
  // src/NestedMenu/NestedMenu.tsx
4294
4295
  var import_jsx_runtime34 = require("react/jsx-runtime");
4296
+ var useId = () => {
4297
+ const [id, setId] = (0, import_react32.useState)();
4298
+ (0, import_react32.useEffect)(() => {
4299
+ const uId = (0, import_lodash.default)();
4300
+ setId(uId);
4301
+ }, []);
4302
+ return id;
4303
+ };
4295
4304
  var NestedMenu = ({
4296
4305
  initialMenuId,
4297
4306
  menus,
@@ -4310,8 +4319,8 @@ var NestedMenu = ({
4310
4319
  const { defaultDownshiftProps, ...restDefaults } = useDownshiftDefaults({
4311
4320
  isCombobox: false
4312
4321
  });
4313
- const uniqueId = (0, import_react32.useId)();
4314
- const nestedMenuId = externalNestedMenuId ?? `nested-menu-${uniqueId}`;
4322
+ const uniqueId2 = useId();
4323
+ const nestedMenuId = externalNestedMenuId ?? `nested-menu-${uniqueId2}`;
4315
4324
  const [hasLoadedOnce, setHasLoadedOnce] = (0, import_react32.useState)(false);
4316
4325
  const useSelectReturnProps = (0, import_downshift9.useSelect)({
4317
4326
  ...defaultDownshiftProps.select,