@pingux/astro 2.174.2-alpha.0 → 2.175.0
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/Link/Link.styles.js +11 -1
- package/lib/cjs/components/NavBar/NavBar.styles.js +22 -5
- package/lib/cjs/components/NavBar/stories/NavBarNextGenComponent.js +7 -5
- package/lib/cjs/components/NavBarSection/NavBarItem.js +3 -3
- package/lib/cjs/components/NavBarSection/NavBarItemHeader.js +9 -3
- package/lib/cjs/components/NavSideBar/NavSideBarItem.js +5 -4
- package/lib/cjs/libs/astro/src/components/Link/Link.styles.d.ts +8 -0
- package/lib/cjs/libs/astro/src/components/NavBar/NavBar.styles.d.ts +55 -6
- package/lib/cjs/libs/astro/src/styles/themeOverrides/onyxSideNav.d.ts +33 -0
- package/lib/cjs/libs/astro/src/styles/themes/next-gen/next-gen.d.ts +38 -0
- package/lib/cjs/libs/astro/src/styles/themes/next-gen/variants/links.d.ts +9 -0
- package/lib/cjs/libs/astro/src/styles/themes/next-gen/variants/navbar.d.ts +29 -0
- package/lib/cjs/libs/astro/src/styles/themes/next-gen/variants/variants.d.ts +29 -0
- package/lib/cjs/libs/astro/src/types/icon.d.ts +3 -2
- package/lib/cjs/libs/astro/tsconfig.lib.tsbuildinfo +1 -1
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/navbar.js +2 -2
- package/lib/cjs/styles/themeOverrides/onyxSideNav.js +34 -0
- package/lib/cjs/styles/themeOverrides/uiLibraryOverride.js +9 -1
- package/lib/cjs/styles/themes/next-gen/variants/links.js +8 -0
- package/lib/cjs/styles/themes/next-gen/variants/navbar.js +31 -1
- package/lib/components/Link/Link.styles.js +11 -1
- package/lib/components/NavBar/NavBar.styles.js +22 -5
- package/lib/components/NavBar/stories/NavBarNextGenComponent.js +8 -6
- package/lib/components/NavBarSection/NavBarItem.js +3 -3
- package/lib/components/NavBarSection/NavBarItemHeader.js +9 -3
- package/lib/components/NavSideBar/NavSideBarItem.js +5 -4
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/navbar.js +2 -2
- package/lib/styles/themeOverrides/onyxSideNav.js +34 -0
- package/lib/styles/themeOverrides/uiLibraryOverride.js +9 -1
- package/lib/styles/themes/next-gen/variants/links.js +8 -0
- package/lib/styles/themes/next-gen/variants/navbar.js +31 -1
- package/package.json +1 -1
|
@@ -98,13 +98,13 @@ var navBar = exports.navBar = {
|
|
|
98
98
|
item: {
|
|
99
99
|
px: '1rem',
|
|
100
100
|
py: '.75rem',
|
|
101
|
-
color: '
|
|
101
|
+
color: 'textPrimary',
|
|
102
102
|
fontFamily: 'standard',
|
|
103
103
|
'&.is-hovered': {
|
|
104
104
|
backgroundColor: 'background.hover'
|
|
105
105
|
},
|
|
106
106
|
'> div > svg': {
|
|
107
|
-
fill: '
|
|
107
|
+
fill: 'textPrimary'
|
|
108
108
|
},
|
|
109
109
|
'&.is-selected': _objectSpread(_objectSpread({}, navBarSelected), {}, {
|
|
110
110
|
'> div > svg': {
|
|
@@ -170,6 +170,10 @@ var navBar = {
|
|
|
170
170
|
'> div > svg': {
|
|
171
171
|
fill: '#455469'
|
|
172
172
|
},
|
|
173
|
+
'> div > span': {
|
|
174
|
+
color: '#455469',
|
|
175
|
+
fill: '#455469'
|
|
176
|
+
},
|
|
173
177
|
'> svg': {
|
|
174
178
|
fill: '#455469'
|
|
175
179
|
},
|
|
@@ -180,8 +184,18 @@ var navBar = {
|
|
|
180
184
|
'> div > svg': {
|
|
181
185
|
fill: 'accent.40'
|
|
182
186
|
},
|
|
187
|
+
'> div > span': {
|
|
188
|
+
color: 'accent.40'
|
|
189
|
+
},
|
|
190
|
+
'> span': {
|
|
191
|
+
color: 'accent.40',
|
|
192
|
+
fill: 'accent.40'
|
|
193
|
+
},
|
|
183
194
|
'> svg': {
|
|
184
195
|
fill: 'accent.40'
|
|
196
|
+
},
|
|
197
|
+
'&.is-hovered': {
|
|
198
|
+
backgroundColor: '#f6f8fa'
|
|
185
199
|
}
|
|
186
200
|
}),
|
|
187
201
|
'&.is-focused': {
|
|
@@ -199,12 +213,18 @@ var navBar = {
|
|
|
199
213
|
px: '1rem',
|
|
200
214
|
borderRadius: '4px',
|
|
201
215
|
py: '.75rem',
|
|
216
|
+
'&.is-hovered': {
|
|
217
|
+
backgroundColor: '#f6f8fa'
|
|
218
|
+
},
|
|
202
219
|
'&.is-selected': _objectSpread(_objectSpread({}, navBarSelected), {}, {
|
|
203
220
|
'> svg': {
|
|
204
221
|
fill: 'accent.40'
|
|
205
222
|
},
|
|
206
223
|
'> div > svg': {
|
|
207
224
|
fill: '#4462ED !important'
|
|
225
|
+
},
|
|
226
|
+
'&.is-hovered': {
|
|
227
|
+
backgroundColor: '#f6f8fa'
|
|
208
228
|
}
|
|
209
229
|
}),
|
|
210
230
|
backgroundColor: 'transparent',
|
|
@@ -235,11 +255,25 @@ var separator = {
|
|
|
235
255
|
my: '10px'
|
|
236
256
|
}
|
|
237
257
|
};
|
|
258
|
+
var navItemLink = {
|
|
259
|
+
borderRadius: '4px',
|
|
260
|
+
'&.is-focused': {
|
|
261
|
+
outline: '2px solid',
|
|
262
|
+
outlineColor: 'active',
|
|
263
|
+
outlineOffset: '-2px',
|
|
264
|
+
boxShadow: 'none',
|
|
265
|
+
WebkitBoxShadow: 'none',
|
|
266
|
+
MozBoxShadow: 'none'
|
|
267
|
+
}
|
|
268
|
+
};
|
|
238
269
|
var _default = exports["default"] = {
|
|
239
270
|
variants: {
|
|
240
271
|
navBar: navBar,
|
|
241
272
|
separator: separator
|
|
242
273
|
},
|
|
274
|
+
links: {
|
|
275
|
+
navItem: _objectSpread({}, navItemLink)
|
|
276
|
+
},
|
|
243
277
|
icons: _objectSpread(_objectSpread({}, _icons["default"]), {}, {
|
|
244
278
|
test: 'test',
|
|
245
279
|
MenuDown: _ChevronDownIcon["default"],
|
|
@@ -183,6 +183,7 @@ var variants = {
|
|
|
183
183
|
navBar: {
|
|
184
184
|
sectionButton: _objectSpread(_objectSpread({}, _theme["default"].variants.navBar.sectionButton), {}, {
|
|
185
185
|
height: 'unset',
|
|
186
|
+
fontWeight: '500',
|
|
186
187
|
minHeight: '36px',
|
|
187
188
|
'&:not(.disabled):hover': _objectSpread({}, _theme["default"].variants.navBar.sectionButton),
|
|
188
189
|
':focus': {
|
|
@@ -192,9 +193,16 @@ var variants = {
|
|
|
192
193
|
itemButton: _objectSpread(_objectSpread({
|
|
193
194
|
height: 'unset'
|
|
194
195
|
}, _theme["default"].variants.navBar.itemButton), {}, {
|
|
195
|
-
|
|
196
|
+
fontWeight: '500',
|
|
197
|
+
'&:not(.disabled):hover': _objectSpread(_objectSpread({}, _theme["default"].variants.navBar.itemButton), {}, {
|
|
198
|
+
fontWeight: '500'
|
|
199
|
+
}),
|
|
196
200
|
':focus': {
|
|
197
201
|
border: 'none'
|
|
202
|
+
},
|
|
203
|
+
':hover': {
|
|
204
|
+
color: 'neutral.90',
|
|
205
|
+
fontWeight: '500'
|
|
198
206
|
}
|
|
199
207
|
})
|
|
200
208
|
}
|
|
@@ -116,10 +116,18 @@ var skip = {
|
|
|
116
116
|
height: '40px',
|
|
117
117
|
lineHeight: '24px'
|
|
118
118
|
};
|
|
119
|
+
var navItem = {
|
|
120
|
+
boxShadow: 'none !important',
|
|
121
|
+
'&.is-focused': _objectSpread(_objectSpread({}, navBarFocus), {}, {
|
|
122
|
+
borderRadius: '4px',
|
|
123
|
+
outlineOffset: '-2px'
|
|
124
|
+
})
|
|
125
|
+
};
|
|
119
126
|
var _default = exports["default"] = {
|
|
120
127
|
app: app,
|
|
121
128
|
skip: skip,
|
|
122
129
|
nextGen: nextGen,
|
|
130
|
+
navItem: navItem,
|
|
123
131
|
onyx: onyx,
|
|
124
132
|
sideNav: sideNav,
|
|
125
133
|
footerLinks: footerLinks,
|
|
@@ -29,6 +29,14 @@ var navBarFocus = exports.navBarFocus = {
|
|
|
29
29
|
outlineOffset: '-2px'
|
|
30
30
|
};
|
|
31
31
|
var navBar = exports.navBar = {
|
|
32
|
+
itemIcon: {
|
|
33
|
+
color: 'blue',
|
|
34
|
+
fill: 'blue'
|
|
35
|
+
},
|
|
36
|
+
itemIconSelected: {
|
|
37
|
+
color: 'darkblue',
|
|
38
|
+
fill: 'darkblue'
|
|
39
|
+
},
|
|
32
40
|
container: {
|
|
33
41
|
fontFamily: 'standard',
|
|
34
42
|
width: '252px',
|
|
@@ -107,12 +115,21 @@ var navBar = exports.navBar = {
|
|
|
107
115
|
'> div > svg': {
|
|
108
116
|
fill: _onyxTokens.astroTokens.color.gray[700]
|
|
109
117
|
},
|
|
118
|
+
'> div > span': {
|
|
119
|
+
color: 'gray-700'
|
|
120
|
+
},
|
|
110
121
|
'&.is-pressed': {
|
|
111
122
|
backgroundColor: _onyxTokens.astroTokens.color.gray[200]
|
|
112
123
|
},
|
|
113
124
|
'&.is-selected': _objectSpread(_objectSpread({}, navBarSelected), {}, {
|
|
114
125
|
'> div > svg': {
|
|
115
126
|
fill: 'darkblue'
|
|
127
|
+
},
|
|
128
|
+
'> div > span': {
|
|
129
|
+
color: 'darkblue'
|
|
130
|
+
},
|
|
131
|
+
'&.is-hovered': {
|
|
132
|
+
backgroundColor: 'light'
|
|
116
133
|
}
|
|
117
134
|
}),
|
|
118
135
|
'&.is-focused': {
|
|
@@ -129,7 +146,20 @@ var navBar = exports.navBar = {
|
|
|
129
146
|
maxWidth: '236px',
|
|
130
147
|
px: '1rem',
|
|
131
148
|
py: '.75rem',
|
|
132
|
-
'&.is-selected': _objectSpread({}, navBarSelected),
|
|
149
|
+
'&.is-selected': _objectSpread(_objectSpread({}, navBarSelected), {}, {
|
|
150
|
+
'> svg': {
|
|
151
|
+
fill: 'darkblue'
|
|
152
|
+
},
|
|
153
|
+
'> div > svg': {
|
|
154
|
+
fill: 'darkblue'
|
|
155
|
+
},
|
|
156
|
+
'> div > span': {
|
|
157
|
+
color: 'darkblue'
|
|
158
|
+
}
|
|
159
|
+
}),
|
|
160
|
+
'&.is-hovered': {
|
|
161
|
+
backgroundColor: 'light'
|
|
162
|
+
},
|
|
133
163
|
backgroundColor: 'transparent',
|
|
134
164
|
'> svg': {
|
|
135
165
|
fill: _onyxTokens.astroTokens.color.gray[700]
|
|
@@ -9,6 +9,7 @@ import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object
|
|
|
9
9
|
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
10
10
|
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11
11
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12
|
+
import { focus } from '../../styles/colors';
|
|
12
13
|
import { focusWithCroppedOutline } from '../Button/Buttons.styles';
|
|
13
14
|
var app = {
|
|
14
15
|
color: 'active',
|
|
@@ -28,6 +29,14 @@ var app = {
|
|
|
28
29
|
pointerEvents: 'none'
|
|
29
30
|
}
|
|
30
31
|
};
|
|
32
|
+
var navItem = {
|
|
33
|
+
'&.is-focused': {
|
|
34
|
+
outline: 'none',
|
|
35
|
+
boxShadow: "0 0 0 1px ".concat(focus),
|
|
36
|
+
WebkitBoxShadow: "0 0 0 1px ".concat(focus),
|
|
37
|
+
MozBoxShadow: "0 0 0 1px ".concat(focus)
|
|
38
|
+
}
|
|
39
|
+
};
|
|
31
40
|
var web = _objectSpread(_objectSpread({}, app), {}, {
|
|
32
41
|
textDecoration: 'underline',
|
|
33
42
|
'&:visited': {
|
|
@@ -97,5 +106,6 @@ export default {
|
|
|
97
106
|
web: web,
|
|
98
107
|
copyRightLink: copyRightLink,
|
|
99
108
|
footerLink: footerLink,
|
|
100
|
-
footerEALink: footerEALink
|
|
109
|
+
footerEALink: footerEALink,
|
|
110
|
+
navItem: navItem
|
|
101
111
|
};
|
|
@@ -42,6 +42,9 @@ var itemHeaderContainer = {
|
|
|
42
42
|
'&.is-selected': {
|
|
43
43
|
backgroundColor: 'accent.5',
|
|
44
44
|
boxShadow: 'inset 2px 0 0 0 white'
|
|
45
|
+
},
|
|
46
|
+
'&.is-hovered': {
|
|
47
|
+
bg: 'accent.10'
|
|
45
48
|
}
|
|
46
49
|
};
|
|
47
50
|
var popUpItemHeaderContainer = _objectSpread(_objectSpread({}, itemHeaderContainer), {}, {
|
|
@@ -153,13 +156,13 @@ var itemButton = _objectSpread(_objectSpread({
|
|
|
153
156
|
outline: '1px solid',
|
|
154
157
|
outlineColor: 'focus'
|
|
155
158
|
},
|
|
156
|
-
'&.is-hovered': {
|
|
157
|
-
bg: 'accent.10'
|
|
158
|
-
},
|
|
159
159
|
'&.is-selected': {
|
|
160
160
|
bg: 'accent.5',
|
|
161
161
|
boxShadow: 'inset 2px 0 0 0 white'
|
|
162
162
|
},
|
|
163
|
+
'&.is-hovered': {
|
|
164
|
+
bg: 'accent.10'
|
|
165
|
+
},
|
|
163
166
|
'&.is-pressed': {
|
|
164
167
|
bg: 'accent.5'
|
|
165
168
|
}
|
|
@@ -215,6 +218,9 @@ var popUpHeaderText = _objectSpread(_objectSpread({}, headerText), {}, {
|
|
|
215
218
|
color: 'white'
|
|
216
219
|
}
|
|
217
220
|
});
|
|
221
|
+
var logoParent = {
|
|
222
|
+
p: 'md'
|
|
223
|
+
};
|
|
218
224
|
var headerNav = {
|
|
219
225
|
cursor: 'pointer',
|
|
220
226
|
minHeight: '40px',
|
|
@@ -247,7 +253,13 @@ var item = _objectSpread(_objectSpread({}, headerNav), {}, {
|
|
|
247
253
|
px: 'md',
|
|
248
254
|
'&.is-selected': {
|
|
249
255
|
backgroundColor: 'accent.5',
|
|
250
|
-
boxShadow: 'inset 2px 0 0 0 white'
|
|
256
|
+
boxShadow: 'inset 2px 0 0 0 white',
|
|
257
|
+
'&.is-hovered': {
|
|
258
|
+
backgroundColor: 'accent.10'
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
'&.is-hovered': {
|
|
262
|
+
backgroundColor: 'accent.10'
|
|
251
263
|
}
|
|
252
264
|
});
|
|
253
265
|
var popUpItem = _objectSpread(_objectSpread({}, headerNav), {}, {
|
|
@@ -264,7 +276,7 @@ var sectionButton = _objectSpread(_objectSpread({}, quiet), {}, {
|
|
|
264
276
|
outlineColor: 'focus'
|
|
265
277
|
},
|
|
266
278
|
'&.is-hovered': {
|
|
267
|
-
backgroundColor: 'accent.10'
|
|
279
|
+
backgroundColor: 'accent.10 '
|
|
268
280
|
},
|
|
269
281
|
'&.is-pressed': {
|
|
270
282
|
backgroundColor: 'accent.5'
|
|
@@ -323,6 +335,9 @@ var itemCustomIconSelected = _objectSpread(_objectSpread({}, itemCustomIcon), {}
|
|
|
323
335
|
color: 'white',
|
|
324
336
|
fill: 'white'
|
|
325
337
|
});
|
|
338
|
+
var sideNavItem = _objectSpread(_objectSpread({}, item), {}, {
|
|
339
|
+
p: 0
|
|
340
|
+
});
|
|
326
341
|
export default {
|
|
327
342
|
container: container,
|
|
328
343
|
popUpContainer: popUpContainer,
|
|
@@ -346,6 +361,8 @@ export default {
|
|
|
346
361
|
popUpNavBarItemBody: popUpNavBarItemBody,
|
|
347
362
|
itemLinkButtonColor: itemLinkButtonColor,
|
|
348
363
|
sectionList: sectionList,
|
|
364
|
+
sideNavItem: sideNavItem,
|
|
365
|
+
logoParent: logoParent,
|
|
349
366
|
itemIcon: itemIcon,
|
|
350
367
|
itemIconSelected: itemIconSelected,
|
|
351
368
|
itemCustomIcon: itemCustomIcon,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Box, NavBar, NavBarItem, NavBarItemButton, NavBarSection, Separator } from '../../..';
|
|
2
|
+
import { Box, NavBar, NavBarItem, NavBarItemButton, NavBarSection, NavSideBarItem, Separator } from '../../..';
|
|
3
3
|
import { useGetTheme } from '../../../hooks';
|
|
4
4
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
5
5
|
export var NavBarNextGenComponent = function NavBarNextGenComponent() {
|
|
@@ -157,13 +157,15 @@ export var NavBarNextGenComponent = function NavBarNextGenComponent() {
|
|
|
157
157
|
id: "GettingStarted",
|
|
158
158
|
key: "GettingStarted",
|
|
159
159
|
text: "Getting Started"
|
|
160
|
-
}), ___EmotionJSX(
|
|
161
|
-
|
|
160
|
+
}), ___EmotionJSX(NavSideBarItem, {
|
|
161
|
+
key: "Overview",
|
|
162
162
|
icon: icons.overviewIcon,
|
|
163
163
|
id: "Overview",
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
164
|
+
linkProps: {
|
|
165
|
+
href: 'https://www.pingidentity.com',
|
|
166
|
+
target: '_blank'
|
|
167
|
+
}
|
|
168
|
+
}, "Overview"), ___EmotionJSX(NavBarSection, {
|
|
167
169
|
items: firstSectionData,
|
|
168
170
|
"data-id": "nav-bar-section"
|
|
169
171
|
}), ___EmotionJSX(Separator, {
|
|
@@ -47,10 +47,10 @@ var NavBarItem = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
47
47
|
isPressed = _usePress.isPressed;
|
|
48
48
|
var mergedProps = mergeProps(pressProps, hoverProps, focusWithinProps, focusProps, others);
|
|
49
49
|
var _useStatusClasses = useStatusClasses(className, {
|
|
50
|
-
isPressed: isPressed,
|
|
51
|
-
isHovered: isHovered,
|
|
52
50
|
isSelected: isSelected,
|
|
53
|
-
|
|
51
|
+
isHovered: isHovered,
|
|
52
|
+
isFocused: isFocusVisible,
|
|
53
|
+
isPressed: isPressed
|
|
54
54
|
}),
|
|
55
55
|
classNames = _useStatusClasses.classNames;
|
|
56
56
|
var color = isSelected ? 'white' : 'neutral.95';
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
|
1
2
|
import _includesInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/includes";
|
|
2
3
|
import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
|
|
3
4
|
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
|
4
5
|
import React, { useEffect } from 'react';
|
|
6
|
+
import { useHover } from '@react-aria/interactions';
|
|
5
7
|
import { useNavBarContext } from '../../context/NavBarContext';
|
|
6
8
|
import { useStatusClasses } from '../../hooks';
|
|
7
9
|
import useGetTheme from '../../hooks/useGetTheme';
|
|
@@ -39,6 +41,9 @@ var NavBarSectionItemHeader = function NavBarSectionItemHeader(_ref2) {
|
|
|
39
41
|
return i.key;
|
|
40
42
|
});
|
|
41
43
|
var isChildSelected = array && _includesInstanceProperty(array).call(array, navBarState.selectedKey);
|
|
44
|
+
var _useHover = useHover({}),
|
|
45
|
+
hoverProps = _useHover.hoverProps,
|
|
46
|
+
isHovered = _useHover.isHovered;
|
|
42
47
|
useEffect(function () {
|
|
43
48
|
if (isChildSelected && isExpanded === false) {
|
|
44
49
|
var _context2;
|
|
@@ -46,7 +51,8 @@ var NavBarSectionItemHeader = function NavBarSectionItemHeader(_ref2) {
|
|
|
46
51
|
}
|
|
47
52
|
}, [selectedKey]);
|
|
48
53
|
var _useStatusClasses = useStatusClasses(className, {
|
|
49
|
-
isSelected: isChildSelected && !isExpanded
|
|
54
|
+
isSelected: isChildSelected && !isExpanded,
|
|
55
|
+
isHovered: isHovered
|
|
50
56
|
}),
|
|
51
57
|
classNames = _useStatusClasses.classNames;
|
|
52
58
|
var getIconColor = function getIconColor() {
|
|
@@ -55,12 +61,12 @@ var NavBarSectionItemHeader = function NavBarSectionItemHeader(_ref2) {
|
|
|
55
61
|
}
|
|
56
62
|
return isChildSelected && !isExpanded ? 'white' : 'neutral.95';
|
|
57
63
|
};
|
|
58
|
-
return ___EmotionJSX(Box, {
|
|
64
|
+
return ___EmotionJSX(Box, _extends({}, hoverProps, {
|
|
59
65
|
variant: navStyles.navBarItemHeader,
|
|
60
66
|
className: classNames,
|
|
61
67
|
isRow: true,
|
|
62
68
|
"data-testid": heading
|
|
63
|
-
}, icon && ___EmotionJSX(Icon, {
|
|
69
|
+
}), icon && ___EmotionJSX(Icon, {
|
|
64
70
|
icon: icon,
|
|
65
71
|
size: navBarIconSize || 18,
|
|
66
72
|
sx: {
|
|
@@ -11,12 +11,13 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
|
11
11
|
var NavSideBarItem = function NavSideBarItem(props) {
|
|
12
12
|
var children = props.children,
|
|
13
13
|
linkProps = props.linkProps;
|
|
14
|
-
console.log(props);
|
|
15
14
|
if (linkProps && linkProps !== null && linkProps !== void 0 && linkProps.href) {
|
|
16
15
|
return ___EmotionJSX(Link, _extends({}, linkProps, {
|
|
17
16
|
sx: {
|
|
18
|
-
textDecoration: 'none !important'
|
|
19
|
-
|
|
17
|
+
textDecoration: 'none !important',
|
|
18
|
+
outlineOffset: 'unset'
|
|
19
|
+
},
|
|
20
|
+
variant: "navItem"
|
|
20
21
|
}), ___EmotionJSX(ChildWrapper, props, children));
|
|
21
22
|
}
|
|
22
23
|
return ___EmotionJSX(Button, {
|
|
@@ -71,10 +72,10 @@ var ChildWrapper = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
71
72
|
isFocused: isFocusVisible
|
|
72
73
|
}),
|
|
73
74
|
classNames = _useStatusClasses.classNames;
|
|
74
|
-
console.log(state.navStyles.navBarItem);
|
|
75
75
|
return ___EmotionJSX(Box, _extends({
|
|
76
76
|
id: key,
|
|
77
77
|
variant: state.navStyles.navBarItem,
|
|
78
|
+
mb: "0px",
|
|
78
79
|
isRow: true,
|
|
79
80
|
alignItems: "center",
|
|
80
81
|
className: classNames,
|
|
@@ -91,13 +91,13 @@ export var navBar = {
|
|
|
91
91
|
item: {
|
|
92
92
|
px: '1rem',
|
|
93
93
|
py: '.75rem',
|
|
94
|
-
color: '
|
|
94
|
+
color: 'textPrimary',
|
|
95
95
|
fontFamily: 'standard',
|
|
96
96
|
'&.is-hovered': {
|
|
97
97
|
backgroundColor: 'background.hover'
|
|
98
98
|
},
|
|
99
99
|
'> div > svg': {
|
|
100
|
-
fill: '
|
|
100
|
+
fill: 'textPrimary'
|
|
101
101
|
},
|
|
102
102
|
'&.is-selected': _objectSpread(_objectSpread({}, navBarSelected), {}, {
|
|
103
103
|
'> div > svg': {
|
|
@@ -163,6 +163,10 @@ var navBar = {
|
|
|
163
163
|
'> div > svg': {
|
|
164
164
|
fill: '#455469'
|
|
165
165
|
},
|
|
166
|
+
'> div > span': {
|
|
167
|
+
color: '#455469',
|
|
168
|
+
fill: '#455469'
|
|
169
|
+
},
|
|
166
170
|
'> svg': {
|
|
167
171
|
fill: '#455469'
|
|
168
172
|
},
|
|
@@ -173,8 +177,18 @@ var navBar = {
|
|
|
173
177
|
'> div > svg': {
|
|
174
178
|
fill: 'accent.40'
|
|
175
179
|
},
|
|
180
|
+
'> div > span': {
|
|
181
|
+
color: 'accent.40'
|
|
182
|
+
},
|
|
183
|
+
'> span': {
|
|
184
|
+
color: 'accent.40',
|
|
185
|
+
fill: 'accent.40'
|
|
186
|
+
},
|
|
176
187
|
'> svg': {
|
|
177
188
|
fill: 'accent.40'
|
|
189
|
+
},
|
|
190
|
+
'&.is-hovered': {
|
|
191
|
+
backgroundColor: '#f6f8fa'
|
|
178
192
|
}
|
|
179
193
|
}),
|
|
180
194
|
'&.is-focused': {
|
|
@@ -192,12 +206,18 @@ var navBar = {
|
|
|
192
206
|
px: '1rem',
|
|
193
207
|
borderRadius: '4px',
|
|
194
208
|
py: '.75rem',
|
|
209
|
+
'&.is-hovered': {
|
|
210
|
+
backgroundColor: '#f6f8fa'
|
|
211
|
+
},
|
|
195
212
|
'&.is-selected': _objectSpread(_objectSpread({}, navBarSelected), {}, {
|
|
196
213
|
'> svg': {
|
|
197
214
|
fill: 'accent.40'
|
|
198
215
|
},
|
|
199
216
|
'> div > svg': {
|
|
200
217
|
fill: '#4462ED !important'
|
|
218
|
+
},
|
|
219
|
+
'&.is-hovered': {
|
|
220
|
+
backgroundColor: '#f6f8fa'
|
|
201
221
|
}
|
|
202
222
|
}),
|
|
203
223
|
backgroundColor: 'transparent',
|
|
@@ -228,11 +248,25 @@ var separator = {
|
|
|
228
248
|
my: '10px'
|
|
229
249
|
}
|
|
230
250
|
};
|
|
251
|
+
var navItemLink = {
|
|
252
|
+
borderRadius: '4px',
|
|
253
|
+
'&.is-focused': {
|
|
254
|
+
outline: '2px solid',
|
|
255
|
+
outlineColor: 'active',
|
|
256
|
+
outlineOffset: '-2px',
|
|
257
|
+
boxShadow: 'none',
|
|
258
|
+
WebkitBoxShadow: 'none',
|
|
259
|
+
MozBoxShadow: 'none'
|
|
260
|
+
}
|
|
261
|
+
};
|
|
231
262
|
export default {
|
|
232
263
|
variants: {
|
|
233
264
|
navBar: navBar,
|
|
234
265
|
separator: separator
|
|
235
266
|
},
|
|
267
|
+
links: {
|
|
268
|
+
navItem: _objectSpread({}, navItemLink)
|
|
269
|
+
},
|
|
236
270
|
icons: _objectSpread(_objectSpread({}, icons), {}, {
|
|
237
271
|
test: 'test',
|
|
238
272
|
MenuDown: ChevronDownIcon,
|
|
@@ -176,6 +176,7 @@ var variants = {
|
|
|
176
176
|
navBar: {
|
|
177
177
|
sectionButton: _objectSpread(_objectSpread({}, theme.variants.navBar.sectionButton), {}, {
|
|
178
178
|
height: 'unset',
|
|
179
|
+
fontWeight: '500',
|
|
179
180
|
minHeight: '36px',
|
|
180
181
|
'&:not(.disabled):hover': _objectSpread({}, theme.variants.navBar.sectionButton),
|
|
181
182
|
':focus': {
|
|
@@ -185,9 +186,16 @@ var variants = {
|
|
|
185
186
|
itemButton: _objectSpread(_objectSpread({
|
|
186
187
|
height: 'unset'
|
|
187
188
|
}, theme.variants.navBar.itemButton), {}, {
|
|
188
|
-
|
|
189
|
+
fontWeight: '500',
|
|
190
|
+
'&:not(.disabled):hover': _objectSpread(_objectSpread({}, theme.variants.navBar.itemButton), {}, {
|
|
191
|
+
fontWeight: '500'
|
|
192
|
+
}),
|
|
189
193
|
':focus': {
|
|
190
194
|
border: 'none'
|
|
195
|
+
},
|
|
196
|
+
':hover': {
|
|
197
|
+
color: 'neutral.90',
|
|
198
|
+
fontWeight: '500'
|
|
191
199
|
}
|
|
192
200
|
})
|
|
193
201
|
}
|
|
@@ -106,10 +106,18 @@ var skip = {
|
|
|
106
106
|
height: '40px',
|
|
107
107
|
lineHeight: '24px'
|
|
108
108
|
};
|
|
109
|
+
var navItem = {
|
|
110
|
+
boxShadow: 'none !important',
|
|
111
|
+
'&.is-focused': _objectSpread(_objectSpread({}, navBarFocus), {}, {
|
|
112
|
+
borderRadius: '4px',
|
|
113
|
+
outlineOffset: '-2px'
|
|
114
|
+
})
|
|
115
|
+
};
|
|
109
116
|
export default {
|
|
110
117
|
app: app,
|
|
111
118
|
skip: skip,
|
|
112
119
|
nextGen: nextGen,
|
|
120
|
+
navItem: navItem,
|
|
113
121
|
onyx: onyx,
|
|
114
122
|
sideNav: sideNav,
|
|
115
123
|
footerLinks: footerLinks,
|
|
@@ -23,6 +23,14 @@ export var navBarFocus = {
|
|
|
23
23
|
outlineOffset: '-2px'
|
|
24
24
|
};
|
|
25
25
|
export var navBar = {
|
|
26
|
+
itemIcon: {
|
|
27
|
+
color: 'blue',
|
|
28
|
+
fill: 'blue'
|
|
29
|
+
},
|
|
30
|
+
itemIconSelected: {
|
|
31
|
+
color: 'darkblue',
|
|
32
|
+
fill: 'darkblue'
|
|
33
|
+
},
|
|
26
34
|
container: {
|
|
27
35
|
fontFamily: 'standard',
|
|
28
36
|
width: '252px',
|
|
@@ -101,12 +109,21 @@ export var navBar = {
|
|
|
101
109
|
'> div > svg': {
|
|
102
110
|
fill: astroTokens.color.gray[700]
|
|
103
111
|
},
|
|
112
|
+
'> div > span': {
|
|
113
|
+
color: 'gray-700'
|
|
114
|
+
},
|
|
104
115
|
'&.is-pressed': {
|
|
105
116
|
backgroundColor: astroTokens.color.gray[200]
|
|
106
117
|
},
|
|
107
118
|
'&.is-selected': _objectSpread(_objectSpread({}, navBarSelected), {}, {
|
|
108
119
|
'> div > svg': {
|
|
109
120
|
fill: 'darkblue'
|
|
121
|
+
},
|
|
122
|
+
'> div > span': {
|
|
123
|
+
color: 'darkblue'
|
|
124
|
+
},
|
|
125
|
+
'&.is-hovered': {
|
|
126
|
+
backgroundColor: 'light'
|
|
110
127
|
}
|
|
111
128
|
}),
|
|
112
129
|
'&.is-focused': {
|
|
@@ -123,7 +140,20 @@ export var navBar = {
|
|
|
123
140
|
maxWidth: '236px',
|
|
124
141
|
px: '1rem',
|
|
125
142
|
py: '.75rem',
|
|
126
|
-
'&.is-selected': _objectSpread({}, navBarSelected),
|
|
143
|
+
'&.is-selected': _objectSpread(_objectSpread({}, navBarSelected), {}, {
|
|
144
|
+
'> svg': {
|
|
145
|
+
fill: 'darkblue'
|
|
146
|
+
},
|
|
147
|
+
'> div > svg': {
|
|
148
|
+
fill: 'darkblue'
|
|
149
|
+
},
|
|
150
|
+
'> div > span': {
|
|
151
|
+
color: 'darkblue'
|
|
152
|
+
}
|
|
153
|
+
}),
|
|
154
|
+
'&.is-hovered': {
|
|
155
|
+
backgroundColor: 'light'
|
|
156
|
+
},
|
|
127
157
|
backgroundColor: 'transparent',
|
|
128
158
|
'> svg': {
|
|
129
159
|
fill: astroTokens.color.gray[700]
|