@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.
@@ -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};
@@ -81,7 +81,6 @@ const Container = styled_components_1.default.div `
81
81
  align-items: center;
82
82
  cursor: pointer;
83
83
  padding: 8px 16px 8px 4px;
84
-
85
84
  ${(props) => props.isOpen && 'background: #f2fbfc;'}
86
85
 
87
86
  &:hover {
@@ -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 limit = position.length < 4 ? position.length : 4;
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;
@@ -26,7 +26,6 @@ const MenuHeading = styled.div `
26
26
  `;
27
27
  const MenuContainer = styled.div `
28
28
  position: relative;
29
- background: pink;
30
29
 
31
30
  & ${MenuHeading} {
32
31
  background-color: ${(props) => props.theme.colors.background.secondary};
@@ -75,7 +75,6 @@ const Container = styled.div `
75
75
  align-items: center;
76
76
  cursor: pointer;
77
77
  padding: 8px 16px 8px 4px;
78
-
79
78
  ${(props) => props.isOpen && 'background: #f2fbfc;'}
80
79
 
81
80
  &:hover {
@@ -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 limit = position.length < 4 ? position.length : 4;
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.1",
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",