@sproutsocial/seeds-react-menu 1.0.0 → 1.0.1
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/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +6 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/Menu.tsx +50 -0
- package/src/NestedMenu/NestedMenuContent.tsx +1 -1
package/dist/index.js
CHANGED
|
@@ -3844,7 +3844,7 @@ var nestedMenuStateReducer = (_state, actionAndChanges) => {
|
|
|
3844
3844
|
|
|
3845
3845
|
// src/NestedMenu/NestedMenuContent.tsx
|
|
3846
3846
|
var import_react28 = require("react");
|
|
3847
|
-
var
|
|
3847
|
+
var import_seeds_react_utilities2 = require("@sproutsocial/seeds-react-utilities");
|
|
3848
3848
|
|
|
3849
3849
|
// src/NestedMenu/NestedMenuItem.tsx
|
|
3850
3850
|
var import_seeds_react_icon4 = require("@sproutsocial/seeds-react-icon");
|
|
@@ -3883,7 +3883,7 @@ var NestedMenuContent = ({
|
|
|
3883
3883
|
const { highlightedIndex, items } = useMenuContentContext();
|
|
3884
3884
|
const { setSelectedMenuId, selectedMenuPath, goBack } = useNestedMenuContext();
|
|
3885
3885
|
const internalRef = (0, import_react28.useRef)(null);
|
|
3886
|
-
const innerRef = (0,
|
|
3886
|
+
const innerRef = (0, import_seeds_react_utilities2.mergeRefs)(internalRef, innerRefProp);
|
|
3887
3887
|
const contentProps = children ? { children } : { menuItems, MenuItemComponent };
|
|
3888
3888
|
(0, import_react28.useEffect)(() => {
|
|
3889
3889
|
internalRef?.current?.focus();
|