@pingux/astro 1.39.1 → 1.39.2-alpha.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.
@@ -289,7 +289,10 @@ var data = [{
289
289
  }, "Notifications"), (0, _react2.jsx)(_index.NavBarItemLink, {
290
290
  key: "Experiences Vanity Domains",
291
291
  id: "Experiences Vanity Domains",
292
- href: "https://pingidentity.com/"
292
+ href: "https://pingidentity.com/",
293
+ onClick: function onClick(e) {
294
+ return e.preventDefault();
295
+ }
293
296
  }, "Vanity Domains"), (0, _react2.jsx)(_index.NavBarItemButton, {
294
297
  key: "Experiences Sender",
295
298
  id: "Experiences Sender"
@@ -304,7 +307,6 @@ var secondData = [{
304
307
  id: "MFA Button Users",
305
308
  key: "MFA Button Users"
306
309
  }, "Users"), {
307
- hasSeparator: false,
308
310
  subTitle: 'PingOne Services'
309
311
  }, (0, _react2.jsx)(_index.NavBarItemButton, {
310
312
  key: "MFA Button Group",
@@ -378,8 +380,7 @@ var Default = function Default() {
378
380
  href: "https://pingidentity.com",
379
381
  target: "_blank"
380
382
  }, logo)), (0, _react2.jsx)(_index.Separator, {
381
- marginTop: "lg",
382
- marginBottom: "0px",
383
+ m: 0,
383
384
  backgroundColor: "neutral.60"
384
385
  }), (0, _react2.jsx)(_index.Box, {
385
386
  variant: "navBar.sectionContainer",
@@ -392,7 +393,6 @@ var Default = function Default() {
392
393
  text: "Overview"
393
394
  }), (0, _react2.jsx)(_index.NavBarSection, {
394
395
  items: data,
395
- hasSeparator: true,
396
396
  "data-id": "nav-bar-section"
397
397
  }), (0, _react2.jsx)(_index.NavBarSection, {
398
398
  items: secondData,
@@ -401,6 +401,7 @@ var Default = function Default() {
401
401
  "data-id": "second-nav-bar-section"
402
402
  }), (0, _react2.jsx)(_index.NavBarSection, {
403
403
  items: thirdData,
404
+ hasSeparator: true,
404
405
  "data-id": "third-nav-bar-section"
405
406
  })));
406
407
  };
@@ -439,8 +440,7 @@ var Controlled = function Controlled() {
439
440
  href: "https://pingidentity.com",
440
441
  target: "_blank"
441
442
  }, logo)), (0, _react2.jsx)(_index.Separator, {
442
- marginTop: "lg",
443
- marginBottom: "0px",
443
+ m: "0",
444
444
  backgroundColor: "neutral.60",
445
445
  key: "top-separator"
446
446
  }), (0, _react2.jsx)(_index.Box, {
@@ -455,7 +455,6 @@ var Controlled = function Controlled() {
455
455
  text: "Overview"
456
456
  }), (0, _react2.jsx)(_index.NavBarSection, {
457
457
  items: data,
458
- hasSeparator: true,
459
458
  "data-id": "first-nav-bar-section"
460
459
  }), (0, _react2.jsx)(_index.NavBarSection, {
461
460
  items: secondData,
@@ -97,6 +97,7 @@ var NavBarItem = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
97
97
  }),
98
98
  classNames = _useStatusClasses.classNames;
99
99
 
100
+ var color = isSelected ? 'white' : 'neutral.95';
100
101
  return (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({
101
102
  id: key,
102
103
  variant: "navBar.navItem",
@@ -106,7 +107,7 @@ var NavBarItem = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
106
107
  ref: navItemRef
107
108
  }, mergedProps, {
108
109
  sx: {
109
- maxHeight: '30px'
110
+ flexGrow: 0
110
111
  }
111
112
  }), (0, _react2.jsx)(_index.Box, {
112
113
  isRow: true,
@@ -116,11 +117,11 @@ var NavBarItem = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
116
117
  }, icon && (0, _react2.jsx)(_index.Icon, {
117
118
  icon: icon,
118
119
  "aria-label": text,
119
- size: 20,
120
+ size: "sm",
120
121
  sx: {
121
- mr: '10px',
122
- color: 'white',
123
- fill: 'white'
122
+ mr: 'sm',
123
+ color: color,
124
+ fill: color
124
125
  }
125
126
  }), (0, _react2.jsx)(_index.Text, {
126
127
  variant: "navBarHeaderText"
@@ -41,19 +41,17 @@ var NavBarItemBody = function NavBarItemBody(_ref) {
41
41
  onKeyDown = _ref.onKeyDown;
42
42
 
43
43
  var renderSubTitle = function renderSubTitle(child) {
44
- var hasSeparator = child.hasSeparator,
44
+ var _child$hasSeparator = child.hasSeparator,
45
+ hasSeparator = _child$hasSeparator === void 0 ? true : _child$hasSeparator,
45
46
  subTitle = child.subTitle;
46
47
  return (0, _react2.jsx)(_react.Fragment, {
47
48
  key: "fragment".concat(subTitle)
48
- }, (hasSeparator || hasSeparator === undefined) && (0, _react2.jsx)(_index.Separator, {
49
+ }, hasSeparator && (0, _react2.jsx)(_index.Separator, {
49
50
  variant: "separator.navBarSubtitleSeparator"
50
51
  }), (0, _react2.jsx)(_index.Text, {
51
52
  key: "text".concat(subTitle),
52
- sx: {
53
- mb: 'sm',
54
- ml: '45px',
55
- mt: 'md'
56
- },
53
+ ml: "45px",
54
+ mt: hasSeparator ? '0' : undefined,
57
55
  variant: "text.navBarSubtitle"
58
56
  }, subTitle));
59
57
  };
@@ -67,8 +65,8 @@ var NavBarItemBody = function NavBarItemBody(_ref) {
67
65
 
68
66
  return (0, _react2.jsx)(_index.Box, {
69
67
  sx: {
70
- alignItems: 'flex-start',
71
- mb: '15px'
68
+ alignItems: 'stretch',
69
+ mb: 'md'
72
70
  }
73
71
  }, (0, _map["default"])(_context = item.children).call(_context, renderChild));
74
72
  };
@@ -72,7 +72,8 @@ var NavBarItemButton = function NavBarItemButton(props) {
72
72
  id: key,
73
73
  variant: "navItemButton",
74
74
  onPress: onNavPress,
75
- className: classNames
75
+ className: classNames,
76
+ color: isSelected ? 'white' : undefined
76
77
  }, others, {
77
78
  sx: _objectSpread({
78
79
  paddingLeft: '45px',
@@ -72,6 +72,7 @@ var NavBarItemHeader = function NavBarItemHeader(props) {
72
72
  }),
73
73
  classNames = _useStatusClasses.classNames;
74
74
 
75
+ var color = childSelected && !isExpanded ? 'white' : 'neutral.95';
75
76
  return (0, _react2.jsx)(_index.Box, {
76
77
  variant: "navBar.itemHeaderContainer",
77
78
  className: classNames,
@@ -82,8 +83,8 @@ var NavBarItemHeader = function NavBarItemHeader(props) {
82
83
  size: "sm",
83
84
  sx: {
84
85
  mr: '10px',
85
- color: 'white',
86
- fill: 'white'
86
+ color: color,
87
+ fill: color
87
88
  },
88
89
  "aria-hidden": "true"
89
90
  }), (0, _react2.jsx)(_index.Text, {
@@ -96,10 +97,10 @@ var NavBarItemHeader = function NavBarItemHeader(props) {
96
97
  }
97
98
  }, (0, _react2.jsx)(_index.Icon, {
98
99
  icon: isExpanded ? _MenuUpIcon["default"] : _MenuDownIcon["default"],
99
- size: "xs",
100
+ size: "sm",
100
101
  sx: {
101
- color: 'white',
102
- fill: 'white'
102
+ color: color,
103
+ fill: color
103
104
  },
104
105
  "aria-label": isExpanded ? 'Menu up' : 'Menu down'
105
106
  })));
@@ -71,7 +71,8 @@ var NavBarItemLink = function NavBarItemLink(props) {
71
71
  id: key,
72
72
  variant: "buttons.navItemButton",
73
73
  className: classNames,
74
- onPress: onNavPress
74
+ onPress: onNavPress,
75
+ color: isSelected ? 'white' : undefined
75
76
  }, others, {
76
77
  sx: _objectSpread({
77
78
  paddingLeft: '45px',
@@ -67,8 +67,11 @@ var NavBarSection = function NavBarSection(_ref) {
67
67
  var childrenItems = (0, _filter["default"])(items).call(items, function (item) {
68
68
  return item.children;
69
69
  });
70
- return (0, _react2.jsx)(_react["default"].Fragment, null, title && (0, _react2.jsx)(_.Text, {
71
- variant: "text.navBarSubtitle"
70
+ return (0, _react2.jsx)(_react["default"].Fragment, null, hasSeparator && (0, _react2.jsx)(_.Separator, {
71
+ variant: "separator.navBarSeparator"
72
+ }), title && (0, _react2.jsx)(_.Text, {
73
+ variant: "text.navBarSubtitle",
74
+ mt: hasSeparator ? '0' : undefined
72
75
  }, title), (0, _react2.jsx)("ul", (0, _extends2["default"])({
73
76
  ref: ref,
74
77
  style: {
@@ -83,16 +86,6 @@ var NavBarSection = function NavBarSection(_ref) {
83
86
  key: item.key,
84
87
  item: item
85
88
  }));
86
- })), hasSeparator && (0, _react2.jsx)(_.Box, {
87
- sx: {
88
- pl: '15px',
89
- pr: '15px',
90
- my: '10px',
91
- mt: '15px',
92
- mb: '15px'
93
- }
94
- }, (0, _react2.jsx)(_.Separator, {
95
- variant: "separator.navBarSeparator"
96
89
  })));
97
90
  };
98
91
 
@@ -87,16 +87,15 @@ var navItemButton = {
87
87
  cursor: 'pointer',
88
88
  borderRadius: 0,
89
89
  backgroundColor: 'transparent',
90
- paddingTop: '5px',
91
- paddingBottom: '5px',
90
+ paddingTop: 'sm',
91
+ paddingBottom: 'sm',
92
92
  display: 'block',
93
- color: 'neutral.95',
94
- fontSize: 'sm',
95
- fontWeight: 1,
93
+ color: 'neutral.90',
94
+ fontSize: 'md',
95
+ fontWeight: 0,
96
96
  flexGrow: '1',
97
97
  width: '100%',
98
98
  textAlign: 'left',
99
- lineHeight: '16px',
100
99
  whiteSpace: 'break-spaces',
101
100
  overflowWrap: 'break-word',
102
101
  maxWidth: '100%',
@@ -46,18 +46,17 @@ var itemHeaderContainer = {
46
46
  flexGrow: 1,
47
47
  alignItems: 'center',
48
48
  maxWidth: '230px',
49
- padding: '10px 15px 10px 15px',
49
+ py: 'sm',
50
+ px: 'md',
50
51
  cursor: 'pointer',
51
52
  minHeight: '40px',
52
- fontWeight: 0,
53
- fontSize: '16px',
54
53
  '&.is-selected': {
55
54
  backgroundColor: 'accent.5',
56
55
  boxShadow: 'inset 2px 0 0 0 white'
57
56
  }
58
57
  };
59
58
  var sectionContainer = {
60
- pt: '10px',
59
+ pt: 'sm',
61
60
  height: '100%',
62
61
  maxHeight: '100%',
63
62
  overflowY: 'auto'
@@ -71,7 +70,8 @@ var navItem = {
71
70
  cursor: 'pointer',
72
71
  minHeight: '40px',
73
72
  lineHeight: '30px',
74
- padding: '10px 15px 10px 15px',
73
+ py: 'sm',
74
+ px: 'md',
75
75
  outline: 'none',
76
76
  display: 'flex',
77
77
  justifyContent: 'flex-start',
@@ -81,7 +81,6 @@ var navItem = {
81
81
  color: 'neutral.95',
82
82
  flexGrow: 1,
83
83
  fontWeight: 0,
84
- fontSize: '16px',
85
84
  '&.is-focused': {
86
85
  outline: '1px solid',
87
86
  outlineColor: 'focus'
@@ -35,6 +35,7 @@ var base = {
35
35
  width: '100%',
36
36
  height: '1px',
37
37
  my: '5px',
38
+ flexShrink: 0,
38
39
  '&.is-vertical': {
39
40
  width: '1px',
40
41
  height: '100%',
@@ -43,16 +44,14 @@ var base = {
43
44
  };
44
45
 
45
46
  var navBarSeparator = _objectSpread(_objectSpread({}, base), {}, {
46
- width: '100%',
47
- backgroundColor: 'neutral.60',
48
- my: 0
47
+ width: 'auto',
48
+ my: 'md',
49
+ mx: 'md',
50
+ backgroundColor: 'neutral.60'
49
51
  });
50
52
 
51
- var navBarSubtitleSeparator = _objectSpread(_objectSpread({}, base), {}, {
52
- mt: '15px',
53
- ml: '45px',
54
- width: 'calc(100% - 60px)',
55
- backgroundColor: 'neutral.60'
53
+ var navBarSubtitleSeparator = _objectSpread(_objectSpread({}, navBarSeparator), {}, {
54
+ ml: '45px'
56
55
  });
57
56
 
58
57
  var _default = {
@@ -177,20 +177,23 @@ var environmentBreadcrumb = _objectSpread(_objectSpread({}, base), {}, {
177
177
 
178
178
  var navBarSubtitle = {
179
179
  ml: 'md',
180
- mb: '15px',
181
- fontWeight: 3,
182
- fontSize: '11px',
180
+ my: 'sm',
181
+ fontWeight: 1,
182
+ fontSize: 'sm',
183
183
  color: 'accent.80',
184
184
  zIndex: '100'
185
185
  };
186
186
 
187
187
  var navBarHeaderText = _objectSpread(_objectSpread({}, wordWrap), {}, {
188
188
  whiteSpace: 'break-spaces',
189
- lineHeight: '13px',
190
- fontSize: '13px',
189
+ lineHeight: 1,
190
+ fontSize: 'md',
191
191
  fontWeight: 1,
192
192
  maxWidth: '150px',
193
- color: 'white'
193
+ color: 'neutral.95',
194
+ '.is-selected &': {
195
+ color: 'white'
196
+ }
194
197
  });
195
198
 
196
199
  var collapsiblePanellItem = _objectSpread(_objectSpread({}, wordWrap), {}, {
@@ -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
- marginTop: "lg",
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
- marginTop: "lg",
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
- maxHeight: '30px'
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: 20,
87
+ size: "sm",
87
88
  sx: {
88
- mr: '10px',
89
- color: 'white',
90
- fill: 'white'
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
- }, (hasSeparator || hasSeparator === undefined) && ___EmotionJSX(Separator, {
21
+ }, hasSeparator && ___EmotionJSX(Separator, {
21
22
  variant: "separator.navBarSubtitleSeparator"
22
23
  }), ___EmotionJSX(Text, {
23
24
  key: "text".concat(subTitle),
24
- sx: {
25
- mb: 'sm',
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: 'flex-start',
43
- mb: '15px'
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: 'white',
58
- fill: 'white'
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: "xs",
72
+ size: "sm",
72
73
  sx: {
73
- color: 'white',
74
- fill: 'white'
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 { Box, Button, Separator, Text } from '../../';
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, title && ___EmotionJSX(Text, {
38
- variant: "text.navBarSubtitle"
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: '5px',
69
- paddingBottom: '5px',
68
+ paddingTop: 'sm',
69
+ paddingBottom: 'sm',
70
70
  display: 'block',
71
- color: 'neutral.95',
72
- fontSize: 'sm',
73
- fontWeight: 1,
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
- padding: '10px 15px 10px 15px',
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: '10px',
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
- padding: '10px 15px 10px 15px',
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: '100%',
29
- backgroundColor: 'neutral.60',
30
- my: 0
29
+ width: 'auto',
30
+ my: 'md',
31
+ mx: 'md',
32
+ backgroundColor: 'neutral.60'
31
33
  });
32
34
 
33
- var navBarSubtitleSeparator = _objectSpread(_objectSpread({}, base), {}, {
34
- mt: '15px',
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 {