@pingux/astro 1.39.1 → 1.39.2-alpha.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/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.js +23 -2
- package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.stories.js +2 -1
- package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.test.js +31 -1
- package/lib/cjs/components/AccordionGridItem/AccordionGridItem.js +13 -4
- package/lib/cjs/components/AccordionGridItem/AccordionGridItemBody.js +10 -2
- package/lib/cjs/components/AccordionGridItem/AccordionGridItemHeader.js +19 -2
- package/lib/cjs/components/NavBar/NavBar.stories.js +7 -8
- package/lib/cjs/components/NavBarSection/NavBarItem.js +6 -5
- package/lib/cjs/components/NavBarSection/NavBarItemBody.js +7 -9
- package/lib/cjs/components/NavBarSection/NavBarItemButton.js +2 -1
- package/lib/cjs/components/NavBarSection/NavBarItemHeader.js +6 -5
- package/lib/cjs/components/NavBarSection/NavBarItemLink.js +2 -1
- package/lib/cjs/components/NavBarSection/NavBarSection.js +5 -12
- package/lib/cjs/styles/variants/buttons.js +5 -6
- package/lib/cjs/styles/variants/navBar.js +5 -6
- package/lib/cjs/styles/variants/separator.js +7 -8
- package/lib/cjs/styles/variants/text.js +9 -6
- package/lib/components/AccordionGridGroup/AccordionGridGroup.js +22 -2
- package/lib/components/AccordionGridGroup/AccordionGridGroup.stories.js +2 -1
- package/lib/components/AccordionGridGroup/AccordionGridGroup.test.js +19 -1
- package/lib/components/AccordionGridItem/AccordionGridItem.js +13 -4
- package/lib/components/AccordionGridItem/AccordionGridItemBody.js +10 -2
- package/lib/components/AccordionGridItem/AccordionGridItemHeader.js +19 -2
- package/lib/components/NavBar/NavBar.stories.js +7 -8
- package/lib/components/NavBarSection/NavBarItem.js +6 -5
- package/lib/components/NavBarSection/NavBarItemBody.js +7 -9
- package/lib/components/NavBarSection/NavBarItemButton.js +2 -1
- package/lib/components/NavBarSection/NavBarItemHeader.js +6 -5
- package/lib/components/NavBarSection/NavBarItemLink.js +2 -1
- package/lib/components/NavBarSection/NavBarSection.js +6 -13
- package/lib/styles/variants/buttons.js +5 -6
- package/lib/styles/variants/navBar.js +5 -6
- package/lib/styles/variants/separator.js +7 -8
- package/lib/styles/variants/text.js +9 -6
- package/package.json +1 -1
- package/NOTICE.html +0 -4707
@@ -289,7 +289,8 @@ export var Controlled = function Controlled() {
|
|
289
289
|
export var AccordionWithInputs = function AccordionWithInputs() {
|
290
290
|
return ___EmotionJSX(AccordionGridGroup, {
|
291
291
|
items: data,
|
292
|
-
defaultSelectedKeys: ['Organization']
|
292
|
+
defaultSelectedKeys: ['Organization'],
|
293
|
+
navigationMode: "native"
|
293
294
|
}, function (item) {
|
294
295
|
return ___EmotionJSX(Item, {
|
295
296
|
key: item.key
|
@@ -46,7 +46,9 @@ var getComponentInOverlayPanel = function getComponentInOverlayPanel() {
|
|
46
46
|
|
47
47
|
var getComponentWithTextFields = function getComponentWithTextFields() {
|
48
48
|
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
49
|
-
return render(___EmotionJSX(AccordionGridGroup, _extends({}, defaultProps, props
|
49
|
+
return render(___EmotionJSX(AccordionGridGroup, _extends({}, defaultProps, props, {
|
50
|
+
navigationMode: "native"
|
51
|
+
}), ___EmotionJSX(Item, {
|
50
52
|
key: "first",
|
51
53
|
textValue: "Duplicate"
|
52
54
|
}, ___EmotionJSX(Text, null, "Header"), ___EmotionJSX(Box, null, ___EmotionJSX(TextField, {
|
@@ -223,4 +225,20 @@ test('adds focus to input on a single click after onBlur', function () {
|
|
223
225
|
secondInput.blur();
|
224
226
|
userEvent.click(secondInput);
|
225
227
|
expect(secondInput).toHaveFocus();
|
228
|
+
});
|
229
|
+
test('native keyboard navigation mode toggle open/close item body', function () {
|
230
|
+
getComponentWithTextFields();
|
231
|
+
var firstItemHeader = screen.getAllByRole('gridcell')[0];
|
232
|
+
expect(firstItemHeader).not.toHaveFocus();
|
233
|
+
userEvent.tab();
|
234
|
+
expect(firstItemHeader).toHaveFocus();
|
235
|
+
expect(firstItemHeader).not.toHaveClass('is-selected');
|
236
|
+
userEvent.type(firstItemHeader, '{Enter}');
|
237
|
+
expect(firstItemHeader).toHaveClass('is-selected');
|
238
|
+
var firstInput = screen.getByLabelText('label 1');
|
239
|
+
expect(firstInput).not.toHaveFocus();
|
240
|
+
userEvent.tab();
|
241
|
+
expect(firstInput).toHaveFocus();
|
242
|
+
userEvent.type(firstInput, '{arrowup}');
|
243
|
+
expect(firstInput).toHaveFocus();
|
226
244
|
});
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
2
2
|
import _toArray from "@babel/runtime-corejs3/helpers/esm/toArray";
|
3
3
|
import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
|
4
|
-
var _excluded = ["item", "headerProps", "bodyProps", "children", "className"];
|
4
|
+
var _excluded = ["item", "headerProps", "bodyProps", "children", "className", "navigationMode"];
|
5
5
|
import _sliceInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/slice";
|
6
6
|
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
7
7
|
import React, { useEffect, useRef } from 'react';
|
@@ -23,6 +23,7 @@ var AccordionGridItem = function AccordionGridItem(props) {
|
|
23
23
|
bodyProps = props.bodyProps,
|
24
24
|
children = props.children,
|
25
25
|
className = props.className,
|
26
|
+
navigationMode = props.navigationMode,
|
26
27
|
others = _objectWithoutProperties(props, _excluded);
|
27
28
|
|
28
29
|
var _React$Children$toArr = React.Children.toArray(children),
|
@@ -63,6 +64,11 @@ var AccordionGridItem = function AccordionGridItem(props) {
|
|
63
64
|
delete rowProps.onMouseDown;
|
64
65
|
delete rowProps.onPointerDown;
|
65
66
|
delete rowProps.onClick;
|
67
|
+
|
68
|
+
if (navigationMode === 'native') {
|
69
|
+
delete rowProps.onKeyDown;
|
70
|
+
}
|
71
|
+
|
66
72
|
return ___EmotionJSX(Box, _extends({
|
67
73
|
as: "div",
|
68
74
|
tabindex: "0"
|
@@ -76,11 +82,13 @@ var AccordionGridItem = function AccordionGridItem(props) {
|
|
76
82
|
item: item,
|
77
83
|
ref: cellRef,
|
78
84
|
isDisabled: isDisabled,
|
79
|
-
isSelected: isSelected
|
85
|
+
isSelected: isSelected,
|
86
|
+
navigationMode: navigationMode
|
80
87
|
}, headerProps), header), ___EmotionJSX(AccordionGridItemBody, _extends({
|
81
88
|
item: item,
|
82
89
|
ref: cellBodyRef,
|
83
|
-
isSelected: isSelected
|
90
|
+
isSelected: isSelected,
|
91
|
+
navigationMode: navigationMode
|
84
92
|
}, bodyProps), body), otherChildren);
|
85
93
|
};
|
86
94
|
|
@@ -91,6 +99,7 @@ AccordionGridItem.propTypes = {
|
|
91
99
|
key: PropTypes.string,
|
92
100
|
rendered: PropTypes.node,
|
93
101
|
childNodes: PropTypes.arrayOf(PropTypes.shape({}))
|
94
|
-
})
|
102
|
+
}),
|
103
|
+
navigationMode: PropTypes.string
|
95
104
|
};
|
96
105
|
export default AccordionGridItem;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
2
2
|
import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
|
3
|
-
var _excluded = ["item", "className", "children", "isSelected"];
|
3
|
+
var _excluded = ["item", "className", "children", "isSelected", "navigationMode"];
|
4
4
|
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
5
5
|
import React, { forwardRef } from 'react';
|
6
6
|
import { mergeProps } from '@react-aria/utils';
|
@@ -18,6 +18,7 @@ var AccordionGridItemBody = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
18
18
|
className = props.className,
|
19
19
|
children = props.children,
|
20
20
|
isSelected = props.isSelected,
|
21
|
+
navigationMode = props.navigationMode,
|
21
22
|
others = _objectWithoutProperties(props, _excluded);
|
22
23
|
|
23
24
|
var _useAccordionGridCont = useAccordionGridContext(),
|
@@ -55,6 +56,12 @@ var AccordionGridItemBody = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
55
56
|
var ariaLabel = props['aria-label'];
|
56
57
|
delete mergedProps.onMouseDown;
|
57
58
|
delete mergedProps.onPointerDown;
|
59
|
+
|
60
|
+
if (navigationMode === 'native') {
|
61
|
+
delete mergedProps.onKeyDown;
|
62
|
+
delete mergedProps.onKeyDownCapture;
|
63
|
+
}
|
64
|
+
|
58
65
|
return ___EmotionJSX(Box, _extends({
|
59
66
|
as: "div",
|
60
67
|
variant: "accordion.accordionGridBody",
|
@@ -71,6 +78,7 @@ AccordionGridItemBody.propTypes = {
|
|
71
78
|
'aria-label': PropTypes.string,
|
72
79
|
item: PropTypes.shape({
|
73
80
|
childNodes: PropTypes.arrayOf(PropTypes.shape({}))
|
74
|
-
})
|
81
|
+
}),
|
82
|
+
navigationMode: PropTypes.string
|
75
83
|
};
|
76
84
|
export default AccordionGridItemBody;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
2
2
|
import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
|
3
|
-
var _excluded = ["item", "className", "children", "isSelected", "hasCaret"];
|
3
|
+
var _excluded = ["item", "className", "children", "isSelected", "hasCaret", "navigationMode"];
|
4
4
|
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
5
5
|
import React, { forwardRef, useRef, useImperativeHandle } from 'react';
|
6
6
|
import { mergeProps } from '@react-aria/utils';
|
@@ -23,6 +23,7 @@ var AccordionGridItemHeader = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
23
23
|
children = props.children,
|
24
24
|
isSelected = props.isSelected,
|
25
25
|
hasCaret = props.hasCaret,
|
26
|
+
navigationMode = props.navigationMode,
|
26
27
|
others = _objectWithoutProperties(props, _excluded);
|
27
28
|
|
28
29
|
var _useAccordionGridCont = useAccordionGridContext(),
|
@@ -74,6 +75,21 @@ var AccordionGridItemHeader = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
74
75
|
classNames = _useStatusClasses.classNames;
|
75
76
|
|
76
77
|
var ariaLabel = props['aria-label'];
|
78
|
+
|
79
|
+
var handleKeyPress = function handleKeyPress(e) {
|
80
|
+
if (e.key === 'Enter') {
|
81
|
+
state.selectionManager.toggleSelection(e.target.dataset.key);
|
82
|
+
}
|
83
|
+
};
|
84
|
+
|
85
|
+
if (navigationMode === 'native') {
|
86
|
+
delete mergedProps.onKeyDown;
|
87
|
+
delete mergedProps.onKeyDownCapture;
|
88
|
+
delete mergedProps.onKeyUp;
|
89
|
+
mergedProps.tabIndex = 0;
|
90
|
+
mergedProps.onKeyPress = handleKeyPress;
|
91
|
+
}
|
92
|
+
|
77
93
|
return ___EmotionJSX(Box, _extends({
|
78
94
|
as: "div",
|
79
95
|
ref: cellRef
|
@@ -110,6 +126,7 @@ AccordionGridItemHeader.propTypes = {
|
|
110
126
|
props: PropTypes.shape({
|
111
127
|
isPressed: PropTypes.bool
|
112
128
|
})
|
113
|
-
})
|
129
|
+
}),
|
130
|
+
navigationMode: PropTypes.string
|
114
131
|
};
|
115
132
|
export default AccordionGridItemHeader;
|
@@ -254,7 +254,10 @@ var data = [{
|
|
254
254
|
}, "Notifications"), ___EmotionJSX(NavBarItemLink, {
|
255
255
|
key: "Experiences Vanity Domains",
|
256
256
|
id: "Experiences Vanity Domains",
|
257
|
-
href: "https://pingidentity.com/"
|
257
|
+
href: "https://pingidentity.com/",
|
258
|
+
onClick: function onClick(e) {
|
259
|
+
return e.preventDefault();
|
260
|
+
}
|
258
261
|
}, "Vanity Domains"), ___EmotionJSX(NavBarItemButton, {
|
259
262
|
key: "Experiences Sender",
|
260
263
|
id: "Experiences Sender"
|
@@ -269,7 +272,6 @@ var secondData = [{
|
|
269
272
|
id: "MFA Button Users",
|
270
273
|
key: "MFA Button Users"
|
271
274
|
}, "Users"), {
|
272
|
-
hasSeparator: false,
|
273
275
|
subTitle: 'PingOne Services'
|
274
276
|
}, ___EmotionJSX(NavBarItemButton, {
|
275
277
|
key: "MFA Button Group",
|
@@ -342,8 +344,7 @@ export var Default = function Default() {
|
|
342
344
|
href: "https://pingidentity.com",
|
343
345
|
target: "_blank"
|
344
346
|
}, logo)), ___EmotionJSX(Separator, {
|
345
|
-
|
346
|
-
marginBottom: "0px",
|
347
|
+
m: 0,
|
347
348
|
backgroundColor: "neutral.60"
|
348
349
|
}), ___EmotionJSX(Box, {
|
349
350
|
variant: "navBar.sectionContainer",
|
@@ -356,7 +357,6 @@ export var Default = function Default() {
|
|
356
357
|
text: "Overview"
|
357
358
|
}), ___EmotionJSX(NavBarSection, {
|
358
359
|
items: data,
|
359
|
-
hasSeparator: true,
|
360
360
|
"data-id": "nav-bar-section"
|
361
361
|
}), ___EmotionJSX(NavBarSection, {
|
362
362
|
items: secondData,
|
@@ -365,6 +365,7 @@ export var Default = function Default() {
|
|
365
365
|
"data-id": "second-nav-bar-section"
|
366
366
|
}), ___EmotionJSX(NavBarSection, {
|
367
367
|
items: thirdData,
|
368
|
+
hasSeparator: true,
|
368
369
|
"data-id": "third-nav-bar-section"
|
369
370
|
})));
|
370
371
|
};
|
@@ -400,8 +401,7 @@ export var Controlled = function Controlled() {
|
|
400
401
|
href: "https://pingidentity.com",
|
401
402
|
target: "_blank"
|
402
403
|
}, logo)), ___EmotionJSX(Separator, {
|
403
|
-
|
404
|
-
marginBottom: "0px",
|
404
|
+
m: "0",
|
405
405
|
backgroundColor: "neutral.60",
|
406
406
|
key: "top-separator"
|
407
407
|
}), ___EmotionJSX(Box, {
|
@@ -416,7 +416,6 @@ export var Controlled = function Controlled() {
|
|
416
416
|
text: "Overview"
|
417
417
|
}), ___EmotionJSX(NavBarSection, {
|
418
418
|
items: data,
|
419
|
-
hasSeparator: true,
|
420
419
|
"data-id": "first-nav-bar-section"
|
421
420
|
}), ___EmotionJSX(NavBarSection, {
|
422
421
|
items: secondData,
|
@@ -64,6 +64,7 @@ var NavBarItem = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
64
64
|
}),
|
65
65
|
classNames = _useStatusClasses.classNames;
|
66
66
|
|
67
|
+
var color = isSelected ? 'white' : 'neutral.95';
|
67
68
|
return ___EmotionJSX(Box, _extends({
|
68
69
|
id: key,
|
69
70
|
variant: "navBar.navItem",
|
@@ -73,7 +74,7 @@ var NavBarItem = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
73
74
|
ref: navItemRef
|
74
75
|
}, mergedProps, {
|
75
76
|
sx: {
|
76
|
-
|
77
|
+
flexGrow: 0
|
77
78
|
}
|
78
79
|
}), ___EmotionJSX(Box, {
|
79
80
|
isRow: true,
|
@@ -83,11 +84,11 @@ var NavBarItem = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
83
84
|
}, icon && ___EmotionJSX(Icon, {
|
84
85
|
icon: icon,
|
85
86
|
"aria-label": text,
|
86
|
-
size:
|
87
|
+
size: "sm",
|
87
88
|
sx: {
|
88
|
-
mr: '
|
89
|
-
color:
|
90
|
-
fill:
|
89
|
+
mr: 'sm',
|
90
|
+
color: color,
|
91
|
+
fill: color
|
91
92
|
}
|
92
93
|
}), ___EmotionJSX(Text, {
|
93
94
|
variant: "navBarHeaderText"
|
@@ -13,19 +13,17 @@ var NavBarItemBody = function NavBarItemBody(_ref) {
|
|
13
13
|
onKeyDown = _ref.onKeyDown;
|
14
14
|
|
15
15
|
var renderSubTitle = function renderSubTitle(child) {
|
16
|
-
var hasSeparator = child.hasSeparator,
|
16
|
+
var _child$hasSeparator = child.hasSeparator,
|
17
|
+
hasSeparator = _child$hasSeparator === void 0 ? true : _child$hasSeparator,
|
17
18
|
subTitle = child.subTitle;
|
18
19
|
return ___EmotionJSX(Fragment, {
|
19
20
|
key: "fragment".concat(subTitle)
|
20
|
-
},
|
21
|
+
}, hasSeparator && ___EmotionJSX(Separator, {
|
21
22
|
variant: "separator.navBarSubtitleSeparator"
|
22
23
|
}), ___EmotionJSX(Text, {
|
23
24
|
key: "text".concat(subTitle),
|
24
|
-
|
25
|
-
|
26
|
-
ml: '45px',
|
27
|
-
mt: 'md'
|
28
|
-
},
|
25
|
+
ml: "45px",
|
26
|
+
mt: hasSeparator ? '0' : undefined,
|
29
27
|
variant: "text.navBarSubtitle"
|
30
28
|
}, subTitle));
|
31
29
|
};
|
@@ -39,8 +37,8 @@ var NavBarItemBody = function NavBarItemBody(_ref) {
|
|
39
37
|
|
40
38
|
return ___EmotionJSX(Box, {
|
41
39
|
sx: {
|
42
|
-
alignItems: '
|
43
|
-
mb: '
|
40
|
+
alignItems: 'stretch',
|
41
|
+
mb: 'md'
|
44
42
|
}
|
45
43
|
}, _mapInstanceProperty(_context = item.children).call(_context, renderChild));
|
46
44
|
};
|
@@ -47,7 +47,8 @@ var NavBarItemButton = function NavBarItemButton(props) {
|
|
47
47
|
id: key,
|
48
48
|
variant: "navItemButton",
|
49
49
|
onPress: onNavPress,
|
50
|
-
className: classNames
|
50
|
+
className: classNames,
|
51
|
+
color: isSelected ? 'white' : undefined
|
51
52
|
}, others, {
|
52
53
|
sx: _objectSpread({
|
53
54
|
paddingLeft: '45px',
|
@@ -44,6 +44,7 @@ var NavBarItemHeader = function NavBarItemHeader(props) {
|
|
44
44
|
}),
|
45
45
|
classNames = _useStatusClasses.classNames;
|
46
46
|
|
47
|
+
var color = childSelected && !isExpanded ? 'white' : 'neutral.95';
|
47
48
|
return ___EmotionJSX(Box, {
|
48
49
|
variant: "navBar.itemHeaderContainer",
|
49
50
|
className: classNames,
|
@@ -54,8 +55,8 @@ var NavBarItemHeader = function NavBarItemHeader(props) {
|
|
54
55
|
size: "sm",
|
55
56
|
sx: {
|
56
57
|
mr: '10px',
|
57
|
-
color:
|
58
|
-
fill:
|
58
|
+
color: color,
|
59
|
+
fill: color
|
59
60
|
},
|
60
61
|
"aria-hidden": "true"
|
61
62
|
}), ___EmotionJSX(Text, {
|
@@ -68,10 +69,10 @@ var NavBarItemHeader = function NavBarItemHeader(props) {
|
|
68
69
|
}
|
69
70
|
}, ___EmotionJSX(Icon, {
|
70
71
|
icon: isExpanded ? MenuUp : MenuDown,
|
71
|
-
size: "
|
72
|
+
size: "sm",
|
72
73
|
sx: {
|
73
|
-
color:
|
74
|
-
fill:
|
74
|
+
color: color,
|
75
|
+
fill: color
|
75
76
|
},
|
76
77
|
"aria-label": isExpanded ? 'Menu up' : 'Menu down'
|
77
78
|
})));
|
@@ -46,7 +46,8 @@ var NavBarItemLink = function NavBarItemLink(props) {
|
|
46
46
|
id: key,
|
47
47
|
variant: "buttons.navItemButton",
|
48
48
|
className: classNames,
|
49
|
-
onPress: onNavPress
|
49
|
+
onPress: onNavPress,
|
50
|
+
color: isSelected ? 'white' : undefined
|
50
51
|
}, others, {
|
51
52
|
sx: _objectSpread({
|
52
53
|
paddingLeft: '45px',
|
@@ -10,7 +10,7 @@ import React, { useRef } from 'react';
|
|
10
10
|
import { useFocusManager } from '@react-aria/focus';
|
11
11
|
import { useKeyboard } from '@react-aria/interactions';
|
12
12
|
import PropTypes from 'prop-types';
|
13
|
-
import {
|
13
|
+
import { Button, Separator, Text } from '../../';
|
14
14
|
import { useNavBarContext } from '../../context/NavBarContext';
|
15
15
|
import NavBarItemBody from './NavBarItemBody';
|
16
16
|
import NavBarItemHeader from './NavBarItemHeader';
|
@@ -34,8 +34,11 @@ var NavBarSection = function NavBarSection(_ref) {
|
|
34
34
|
return item.children;
|
35
35
|
});
|
36
36
|
|
37
|
-
return ___EmotionJSX(React.Fragment, null,
|
38
|
-
variant: "
|
37
|
+
return ___EmotionJSX(React.Fragment, null, hasSeparator && ___EmotionJSX(Separator, {
|
38
|
+
variant: "separator.navBarSeparator"
|
39
|
+
}), title && ___EmotionJSX(Text, {
|
40
|
+
variant: "text.navBarSubtitle",
|
41
|
+
mt: hasSeparator ? '0' : undefined
|
39
42
|
}, title), ___EmotionJSX("ul", _extends({
|
40
43
|
ref: ref,
|
41
44
|
style: {
|
@@ -50,16 +53,6 @@ var NavBarSection = function NavBarSection(_ref) {
|
|
50
53
|
key: item.key,
|
51
54
|
item: item
|
52
55
|
}));
|
53
|
-
})), hasSeparator && ___EmotionJSX(Box, {
|
54
|
-
sx: {
|
55
|
-
pl: '15px',
|
56
|
-
pr: '15px',
|
57
|
-
my: '10px',
|
58
|
-
mt: '15px',
|
59
|
-
mb: '15px'
|
60
|
-
}
|
61
|
-
}, ___EmotionJSX(Separator, {
|
62
|
-
variant: "separator.navBarSeparator"
|
63
56
|
})));
|
64
57
|
};
|
65
58
|
|
@@ -65,16 +65,15 @@ var navItemButton = {
|
|
65
65
|
cursor: 'pointer',
|
66
66
|
borderRadius: 0,
|
67
67
|
backgroundColor: 'transparent',
|
68
|
-
paddingTop: '
|
69
|
-
paddingBottom: '
|
68
|
+
paddingTop: 'sm',
|
69
|
+
paddingBottom: 'sm',
|
70
70
|
display: 'block',
|
71
|
-
color: 'neutral.
|
72
|
-
fontSize: '
|
73
|
-
fontWeight:
|
71
|
+
color: 'neutral.90',
|
72
|
+
fontSize: 'md',
|
73
|
+
fontWeight: 0,
|
74
74
|
flexGrow: '1',
|
75
75
|
width: '100%',
|
76
76
|
textAlign: 'left',
|
77
|
-
lineHeight: '16px',
|
78
77
|
whiteSpace: 'break-spaces',
|
79
78
|
overflowWrap: 'break-word',
|
80
79
|
maxWidth: '100%',
|
@@ -27,18 +27,17 @@ var itemHeaderContainer = {
|
|
27
27
|
flexGrow: 1,
|
28
28
|
alignItems: 'center',
|
29
29
|
maxWidth: '230px',
|
30
|
-
|
30
|
+
py: 'sm',
|
31
|
+
px: 'md',
|
31
32
|
cursor: 'pointer',
|
32
33
|
minHeight: '40px',
|
33
|
-
fontWeight: 0,
|
34
|
-
fontSize: '16px',
|
35
34
|
'&.is-selected': {
|
36
35
|
backgroundColor: 'accent.5',
|
37
36
|
boxShadow: 'inset 2px 0 0 0 white'
|
38
37
|
}
|
39
38
|
};
|
40
39
|
var sectionContainer = {
|
41
|
-
pt: '
|
40
|
+
pt: 'sm',
|
42
41
|
height: '100%',
|
43
42
|
maxHeight: '100%',
|
44
43
|
overflowY: 'auto'
|
@@ -52,7 +51,8 @@ var navItem = {
|
|
52
51
|
cursor: 'pointer',
|
53
52
|
minHeight: '40px',
|
54
53
|
lineHeight: '30px',
|
55
|
-
|
54
|
+
py: 'sm',
|
55
|
+
px: 'md',
|
56
56
|
outline: 'none',
|
57
57
|
display: 'flex',
|
58
58
|
justifyContent: 'flex-start',
|
@@ -62,7 +62,6 @@ var navItem = {
|
|
62
62
|
color: 'neutral.95',
|
63
63
|
flexGrow: 1,
|
64
64
|
fontWeight: 0,
|
65
|
-
fontSize: '16px',
|
66
65
|
'&.is-focused': {
|
67
66
|
outline: '1px solid',
|
68
67
|
outlineColor: 'focus'
|
@@ -17,6 +17,7 @@ var base = {
|
|
17
17
|
width: '100%',
|
18
18
|
height: '1px',
|
19
19
|
my: '5px',
|
20
|
+
flexShrink: 0,
|
20
21
|
'&.is-vertical': {
|
21
22
|
width: '1px',
|
22
23
|
height: '100%',
|
@@ -25,16 +26,14 @@ var base = {
|
|
25
26
|
};
|
26
27
|
|
27
28
|
var navBarSeparator = _objectSpread(_objectSpread({}, base), {}, {
|
28
|
-
width: '
|
29
|
-
|
30
|
-
|
29
|
+
width: 'auto',
|
30
|
+
my: 'md',
|
31
|
+
mx: 'md',
|
32
|
+
backgroundColor: 'neutral.60'
|
31
33
|
});
|
32
34
|
|
33
|
-
var navBarSubtitleSeparator = _objectSpread(_objectSpread({},
|
34
|
-
|
35
|
-
ml: '45px',
|
36
|
-
width: 'calc(100% - 60px)',
|
37
|
-
backgroundColor: 'neutral.60'
|
35
|
+
var navBarSubtitleSeparator = _objectSpread(_objectSpread({}, navBarSeparator), {}, {
|
36
|
+
ml: '45px'
|
38
37
|
});
|
39
38
|
|
40
39
|
export default {
|
@@ -159,20 +159,23 @@ var environmentBreadcrumb = _objectSpread(_objectSpread({}, base), {}, {
|
|
159
159
|
|
160
160
|
var navBarSubtitle = {
|
161
161
|
ml: 'md',
|
162
|
-
|
163
|
-
fontWeight:
|
164
|
-
fontSize: '
|
162
|
+
my: 'sm',
|
163
|
+
fontWeight: 1,
|
164
|
+
fontSize: 'sm',
|
165
165
|
color: 'accent.80',
|
166
166
|
zIndex: '100'
|
167
167
|
};
|
168
168
|
|
169
169
|
var navBarHeaderText = _objectSpread(_objectSpread({}, wordWrap), {}, {
|
170
170
|
whiteSpace: 'break-spaces',
|
171
|
-
lineHeight:
|
172
|
-
fontSize: '
|
171
|
+
lineHeight: 1,
|
172
|
+
fontSize: 'md',
|
173
173
|
fontWeight: 1,
|
174
174
|
maxWidth: '150px',
|
175
|
-
color: '
|
175
|
+
color: 'neutral.95',
|
176
|
+
'.is-selected &': {
|
177
|
+
color: 'white'
|
178
|
+
}
|
176
179
|
});
|
177
180
|
|
178
181
|
var collapsiblePanellItem = _objectSpread(_objectSpread({}, wordWrap), {}, {
|