@manuscripts/style-guide 2.0.36-LEAN-4311.1 → 2.0.36-LEAN-4311.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/cjs/components/Menus/Menus.js +0 -1
- package/dist/cjs/components/Menus/Submenu.js +0 -1
- package/dist/cjs/hooks/use-menus.js +2 -1
- package/dist/es/components/Menus/Menus.js +0 -1
- package/dist/es/components/Menus/Submenu.js +0 -1
- package/dist/es/hooks/use-menus.js +2 -1
- package/package.json +1 -1
|
@@ -32,7 +32,6 @@ const MenuHeading = styled_components_1.default.div `
|
|
|
32
32
|
`;
|
|
33
33
|
const MenuContainer = styled_components_1.default.div `
|
|
34
34
|
position: relative;
|
|
35
|
-
background: pink;
|
|
36
35
|
|
|
37
36
|
& ${MenuHeading} {
|
|
38
37
|
background-color: ${(props) => props.theme.colors.background.secondary};
|
|
@@ -14,7 +14,8 @@ const transformPointer = (depth, index) => (pointer) => pointer.map((pointerPart
|
|
|
14
14
|
return pointerPart;
|
|
15
15
|
});
|
|
16
16
|
const isPart = (pointer, position) => {
|
|
17
|
-
const
|
|
17
|
+
const max = initialPointer.length;
|
|
18
|
+
const limit = position.length < max ? position.length : max;
|
|
18
19
|
for (let i = 0; i < limit; i++) {
|
|
19
20
|
if (position[i] !== pointer[i]) {
|
|
20
21
|
return false;
|
|
@@ -11,7 +11,8 @@ const transformPointer = (depth, index) => (pointer) => pointer.map((pointerPart
|
|
|
11
11
|
return pointerPart;
|
|
12
12
|
});
|
|
13
13
|
const isPart = (pointer, position) => {
|
|
14
|
-
const
|
|
14
|
+
const max = initialPointer.length;
|
|
15
|
+
const limit = position.length < max ? position.length : max;
|
|
15
16
|
for (let i = 0; i < limit; i++) {
|
|
16
17
|
if (position[i] !== pointer[i]) {
|
|
17
18
|
return false;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manuscripts/style-guide",
|
|
3
3
|
"description": "Shared components for Manuscripts applications",
|
|
4
|
-
"version": "2.0.36-LEAN-4311.
|
|
4
|
+
"version": "2.0.36-LEAN-4311.2",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-style-guide",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|