@pingux/astro 1.30.0-alpha.3 → 1.30.0-alpha.5
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/lib/cjs/components/NavBar/NavBar.js +65 -6
- package/lib/cjs/components/NavBar/NavBar.test.js +206 -3
- package/lib/cjs/components/NavBarSection/NavBarItem.js +3 -1
- package/lib/cjs/components/NavBarSection/NavBarItemBody.js +35 -4
- package/lib/cjs/components/NavBarSection/NavBarItemHeader.js +16 -25
- package/lib/cjs/components/NavBarSection/NavBarSection.js +144 -20
- package/lib/cjs/styles/variants/accordion.js +0 -61
- package/lib/cjs/styles/variants/buttons.js +19 -1
- package/lib/cjs/styles/variants/navBar.js +33 -2
- package/lib/cjs/styles/variants/text.js +2 -1
- package/lib/components/NavBar/NavBar.js +60 -7
- package/lib/components/NavBar/NavBar.test.js +164 -5
- package/lib/components/NavBarSection/NavBarItem.js +3 -1
- package/lib/components/NavBarSection/NavBarItemBody.js +33 -4
- package/lib/components/NavBarSection/NavBarItemHeader.js +17 -15
- package/lib/components/NavBarSection/NavBarSection.js +131 -21
- package/lib/styles/variants/accordion.js +0 -52
- package/lib/styles/variants/buttons.js +19 -1
- package/lib/styles/variants/navBar.js +33 -2
- package/lib/styles/variants/text.js +2 -1
- package/package.json +1 -1
@@ -41,16 +41,47 @@ var sectionContainer = {
|
|
41
41
|
pt: '10px',
|
42
42
|
height: '100%',
|
43
43
|
maxHeight: '100%',
|
44
|
-
overflowY: '
|
44
|
+
overflowY: 'auto'
|
45
45
|
};
|
46
46
|
|
47
47
|
var sectionBody = _objectSpread(_objectSpread({}, accordion.accordionGridBody), {}, {
|
48
48
|
pl: '0'
|
49
49
|
});
|
50
50
|
|
51
|
+
var navItem = {
|
52
|
+
cursor: 'pointer',
|
53
|
+
minHeight: '40px',
|
54
|
+
lineHeight: '30px',
|
55
|
+
padding: '10px 15px 10px 15px',
|
56
|
+
outline: 'none',
|
57
|
+
display: 'flex',
|
58
|
+
justifyContent: 'flex-start',
|
59
|
+
flexShrink: 0,
|
60
|
+
wordBreak: 'inherit',
|
61
|
+
whiteSpace: 'nowrap',
|
62
|
+
color: 'neutral.95',
|
63
|
+
flexGrow: 1,
|
64
|
+
fontWeight: 0,
|
65
|
+
fontSize: '16px',
|
66
|
+
'&.is-focused': {
|
67
|
+
outline: '1px solid',
|
68
|
+
outlineColor: '#D033FF'
|
69
|
+
},
|
70
|
+
'&.is-hovered': {
|
71
|
+
backgroundColor: 'accent.10'
|
72
|
+
},
|
73
|
+
'&.is-pressed': {
|
74
|
+
backgroundColor: 'accent.5'
|
75
|
+
},
|
76
|
+
'&.is-selected': {
|
77
|
+
backgroundColor: 'accent.5',
|
78
|
+
boxShadow: 'inset 2px 0 0 0 white'
|
79
|
+
}
|
80
|
+
};
|
51
81
|
export default {
|
52
82
|
container: container,
|
53
83
|
itemHeaderContainer: itemHeaderContainer,
|
54
84
|
sectionContainer: sectionContainer,
|
55
|
-
sectionBody: sectionBody
|
85
|
+
sectionBody: sectionBody,
|
86
|
+
navItem: navItem
|
56
87
|
};
|
@@ -171,7 +171,8 @@ var navBarHeaderText = _objectSpread(_objectSpread({}, wordWrap), {}, {
|
|
171
171
|
lineHeight: '13px',
|
172
172
|
fontSize: '13px',
|
173
173
|
fontWeight: 1,
|
174
|
-
maxWidth: '150px'
|
174
|
+
maxWidth: '150px',
|
175
|
+
color: 'white'
|
175
176
|
});
|
176
177
|
|
177
178
|
var collapsiblePanellItem = _objectSpread(_objectSpread({}, wordWrap), {}, {
|