@atlaskit/side-navigation 1.0.1 → 1.2.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/CHANGELOG.md +60 -0
- package/build/tsconfig.json +6 -2
- package/dist/cjs/common/constants.js +1 -16
- package/dist/cjs/common/styles.js +36 -34
- package/dist/cjs/components/Footer/index.js +31 -29
- package/dist/cjs/components/Header/index.js +5 -3
- package/dist/cjs/components/Item/go-back-item.js +4 -5
- package/dist/cjs/components/NavigationContent/styles.js +8 -4
- package/dist/cjs/components/NestingItem/index.js +4 -2
- package/dist/cjs/components/SideNavigation/index.js +5 -2
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/common/constants.js +0 -7
- package/dist/es2019/common/styles.js +35 -31
- package/dist/es2019/components/Footer/index.js +11 -12
- package/dist/es2019/components/Header/index.js +4 -3
- package/dist/es2019/components/Item/go-back-item.js +4 -5
- package/dist/es2019/components/NavigationContent/styles.js +7 -5
- package/dist/es2019/components/NestingItem/index.js +3 -2
- package/dist/es2019/components/SideNavigation/index.js +4 -2
- package/dist/es2019/version.json +1 -1
- package/dist/esm/common/constants.js +0 -7
- package/dist/esm/common/styles.js +34 -30
- package/dist/esm/components/Footer/index.js +30 -28
- package/dist/esm/components/Header/index.js +4 -3
- package/dist/esm/components/Item/go-back-item.js +4 -5
- package/dist/esm/components/NavigationContent/styles.js +7 -5
- package/dist/esm/components/NestingItem/index.js +3 -2
- package/dist/esm/components/SideNavigation/index.js +4 -2
- package/dist/esm/version.json +1 -1
- package/dist/types/common/constants.d.ts +0 -6
- package/dist/types/common/styles.d.ts +0 -1
- package/dist/types/components/Item/go-back-item.d.ts +1 -1
- package/package.json +15 -22
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,65 @@
|
|
|
1
1
|
# @atlaskit/side-navigation
|
|
2
2
|
|
|
3
|
+
## 1.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`213bfd77e61`](https://bitbucket.org/atlassian/atlassian-frontend/commits/213bfd77e61) - The DOM structure of menu item components has been flattened.
|
|
8
|
+
If you used CSS hacks (via className or cssFn) that targetted specific DOM nodes you may be broken.
|
|
9
|
+
|
|
10
|
+
Previously the structure looked like:
|
|
11
|
+
|
|
12
|
+
```jsx
|
|
13
|
+
<button>
|
|
14
|
+
<div> // <-- this intermediate div has been removed
|
|
15
|
+
<span>
|
|
16
|
+
<span />
|
|
17
|
+
</span>
|
|
18
|
+
</div>
|
|
19
|
+
</button>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Now it looks like:
|
|
23
|
+
|
|
24
|
+
```jsx
|
|
25
|
+
<button>
|
|
26
|
+
<span>
|
|
27
|
+
<span />
|
|
28
|
+
</span>
|
|
29
|
+
</button>
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
- [`e4f332d8697`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e4f332d8697) - Internal refactor to update style declarations to match menu changes.
|
|
33
|
+
|
|
34
|
+
### Patch Changes
|
|
35
|
+
|
|
36
|
+
- Updated dependencies
|
|
37
|
+
|
|
38
|
+
## 1.1.2
|
|
39
|
+
|
|
40
|
+
### Patch Changes
|
|
41
|
+
|
|
42
|
+
- Updated dependencies
|
|
43
|
+
|
|
44
|
+
## 1.1.1
|
|
45
|
+
|
|
46
|
+
### Patch Changes
|
|
47
|
+
|
|
48
|
+
- Updated dependencies
|
|
49
|
+
|
|
50
|
+
## 1.1.0
|
|
51
|
+
|
|
52
|
+
### Minor Changes
|
|
53
|
+
|
|
54
|
+
- [`0e1894c8eb0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0e1894c8eb0) - Instrumented side navigation with the new theming package, `@atlaskit/tokens`.
|
|
55
|
+
|
|
56
|
+
New tokens will be visible only in applications configured to use the new Tokens API (currently in alpha).
|
|
57
|
+
These changes are intended to be interoperable with the legacy theme implementation. Legacy dark mode users should expect no visual or breaking changes.
|
|
58
|
+
|
|
59
|
+
### Patch Changes
|
|
60
|
+
|
|
61
|
+
- Updated dependencies
|
|
62
|
+
|
|
3
63
|
## 1.0.1
|
|
4
64
|
|
|
5
65
|
### Patch Changes
|
package/build/tsconfig.json
CHANGED
|
@@ -3,22 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.VAR_SCROLL_INDICATOR_COLOR = exports.VAR_SEPARATOR_COLOR =
|
|
7
|
-
|
|
8
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
9
|
-
|
|
10
|
-
var navigationBackgroundColor = _colors.N10;
|
|
11
|
-
exports.navigationBackgroundColor = navigationBackgroundColor;
|
|
12
|
-
var itemHoverBackgroundColor = _colors.N30;
|
|
13
|
-
exports.itemHoverBackgroundColor = itemHoverBackgroundColor;
|
|
14
|
-
var itemActiveBackgroundColor = _colors.B50;
|
|
15
|
-
exports.itemActiveBackgroundColor = itemActiveBackgroundColor;
|
|
16
|
-
var itemTextColor = _colors.N500;
|
|
17
|
-
exports.itemTextColor = itemTextColor;
|
|
18
|
-
var itemTextSelectedColor = _colors.B400;
|
|
19
|
-
exports.itemTextSelectedColor = itemTextSelectedColor;
|
|
20
|
-
var separatorColor = _colors.N30;
|
|
21
|
-
exports.separatorColor = separatorColor;
|
|
6
|
+
exports.VAR_SCROLL_INDICATOR_COLOR = exports.VAR_SEPARATOR_COLOR = void 0;
|
|
22
7
|
var VAR_SEPARATOR_COLOR = '--ds-menu-seperator-color';
|
|
23
8
|
exports.VAR_SEPARATOR_COLOR = VAR_SEPARATOR_COLOR;
|
|
24
9
|
var VAR_SCROLL_INDICATOR_COLOR = '--ds-menu-scroll-indicator-color';
|
|
@@ -5,13 +5,15 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.sectionHeaderStyle = exports.
|
|
8
|
+
exports.sectionHeaderStyle = exports.baseSideNavItemStyle = exports.overrideStyleFunction = exports.ITEM_SIDE_PADDING = void 0;
|
|
9
9
|
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
|
|
12
|
+
var _colors = require("@atlaskit/theme/colors");
|
|
13
|
+
|
|
12
14
|
var _constants = require("@atlaskit/theme/constants");
|
|
13
15
|
|
|
14
|
-
var
|
|
16
|
+
var _tokens = require("@atlaskit/tokens");
|
|
15
17
|
|
|
16
18
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
17
19
|
|
|
@@ -40,36 +42,46 @@ var overrideStyleFunction = function overrideStyleFunction(baseStyle) {
|
|
|
40
42
|
};
|
|
41
43
|
|
|
42
44
|
exports.overrideStyleFunction = overrideStyleFunction;
|
|
45
|
+
var defaultStyles = {
|
|
46
|
+
'&:hover': {
|
|
47
|
+
color: (0, _tokens.token)('color.text.mediumEmphasis', _colors.N500),
|
|
48
|
+
backgroundColor: (0, _tokens.token)('color.background.transparentNeutral.hover', _colors.N30)
|
|
49
|
+
},
|
|
50
|
+
'&:active': {
|
|
51
|
+
color: (0, _tokens.token)('color.text.mediumEmphasis', _colors.B400),
|
|
52
|
+
backgroundColor: (0, _tokens.token)('color.background.transparentNeutral.pressed', _colors.B50)
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
var selectedStyles = {
|
|
56
|
+
backgroundColor: (0, _tokens.token)('color.background.selected.resting', _colors.N30),
|
|
57
|
+
color: (0, _tokens.token)('color.text.selected', _colors.B400),
|
|
58
|
+
':visited': {
|
|
59
|
+
color: (0, _tokens.token)('color.text.selected', _colors.B400)
|
|
60
|
+
},
|
|
61
|
+
'&:hover': {
|
|
62
|
+
backgroundColor: (0, _tokens.token)('color.background.selected.hover', _colors.N30),
|
|
63
|
+
color: (0, _tokens.token)('color.text.selected', _colors.N500)
|
|
64
|
+
},
|
|
65
|
+
'&:active': {
|
|
66
|
+
backgroundColor: (0, _tokens.token)('color.background.selected.pressed', _colors.B50),
|
|
67
|
+
color: (0, _tokens.token)('color.text.selected', _colors.B400)
|
|
68
|
+
}
|
|
69
|
+
};
|
|
43
70
|
|
|
44
71
|
var baseSideNavItemStyle = function baseSideNavItemStyle(_ref) {
|
|
45
72
|
var isSelected = _ref.isSelected,
|
|
46
73
|
isDisabled = _ref.isDisabled;
|
|
47
|
-
return _objectSpread(_objectSpread(_objectSpread(
|
|
74
|
+
return _objectSpread(_objectSpread(_objectSpread({
|
|
48
75
|
// This padding is set to ensure that the center of the left icon
|
|
49
76
|
// is approximately center aligned with the horizontal app switcher.
|
|
50
77
|
padding: "".concat(gridSize, "px ").concat(ITEM_SIDE_PADDING, "px"),
|
|
51
78
|
borderRadius: borderRadius,
|
|
52
|
-
|
|
53
|
-
color
|
|
54
|
-
|
|
55
|
-
'
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
color: _constants2.itemTextColor
|
|
59
|
-
},
|
|
60
|
-
'&:active': {
|
|
61
|
-
color: _constants2.itemTextSelectedColor,
|
|
62
|
-
backgroundColor: _constants2.itemActiveBackgroundColor,
|
|
63
|
-
boxShadow: 'none'
|
|
64
|
-
}
|
|
65
|
-
}), isDisabled && {
|
|
66
|
-
backgroundColor: "".concat(_constants2.navigationBackgroundColor, " !important")
|
|
67
|
-
}), isSelected && {
|
|
68
|
-
backgroundColor: _constants2.itemHoverBackgroundColor,
|
|
69
|
-
'&, &:visited': {
|
|
70
|
-
color: _constants2.itemTextSelectedColor
|
|
71
|
-
}
|
|
72
|
-
}), {}, (0, _defineProperty2.default)({}, '& [data-item-elem-before]', {
|
|
79
|
+
// -- TODO: DELETE THESE COLOR OVERRIDES WHEN CLEANING UP FALLBACK THEMING --
|
|
80
|
+
// Menu and side navigation are now color aligned so they do not need this!
|
|
81
|
+
// See: https://product-fabric.atlassian.net/browse/DSP-1684
|
|
82
|
+
backgroundColor: (0, _tokens.token)('color.background.default', _colors.N10)
|
|
83
|
+
}, !isDisabled && !isSelected && defaultStyles), !isDisabled && isSelected && selectedStyles), {}, (0, _defineProperty2.default)({}, '& [data-item-elem-before]', {
|
|
84
|
+
// TODO: Can this be moved into menu?
|
|
73
85
|
// center align icons with app-switcher regardless of size
|
|
74
86
|
display: 'flex',
|
|
75
87
|
height: itemIconSize,
|
|
@@ -82,16 +94,6 @@ var baseSideNavItemStyle = function baseSideNavItemStyle(_ref) {
|
|
|
82
94
|
|
|
83
95
|
exports.baseSideNavItemStyle = baseSideNavItemStyle;
|
|
84
96
|
|
|
85
|
-
var backItemStyle = function backItemStyle() {
|
|
86
|
-
return {
|
|
87
|
-
'&:hover': {
|
|
88
|
-
backgroundColor: _constants2.itemHoverBackgroundColor
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
exports.backItemStyle = backItemStyle;
|
|
94
|
-
|
|
95
97
|
var sectionHeaderStyle = function sectionHeaderStyle() {
|
|
96
98
|
return {
|
|
97
99
|
paddingLeft: "".concat(ITEM_SIDE_PADDING, "px"),
|
|
@@ -9,11 +9,11 @@ exports.default = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
11
|
|
|
12
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
|
-
|
|
14
12
|
var _react = _interopRequireDefault(require("react"));
|
|
15
13
|
|
|
16
|
-
var
|
|
14
|
+
var _colors = require("@atlaskit/theme/colors");
|
|
15
|
+
|
|
16
|
+
var _tokens = require("@atlaskit/tokens");
|
|
17
17
|
|
|
18
18
|
var _styles = require("../../common/styles");
|
|
19
19
|
|
|
@@ -25,35 +25,37 @@ var Container = function Container(props) {
|
|
|
25
25
|
|
|
26
26
|
var Footer = function Footer(props) {
|
|
27
27
|
var cssFn = (0, _styles.overrideStyleFunction)(function () {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
return _ref = {
|
|
28
|
+
return {
|
|
31
29
|
userSelect: 'auto',
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
display: 'block',
|
|
31
|
+
textAlign: 'center',
|
|
32
|
+
minHeight: '24px',
|
|
33
|
+
alignItems: 'center',
|
|
34
|
+
width: '100%',
|
|
35
|
+
'[data-item-elem-before]': {
|
|
36
|
+
marginRight: 0,
|
|
37
|
+
marginBottom: '8px',
|
|
38
|
+
display: 'inline-block'
|
|
39
|
+
},
|
|
40
|
+
'[data-item-title]': {
|
|
34
41
|
textAlign: 'center',
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
42
|
+
fontSize: 12
|
|
43
|
+
},
|
|
44
|
+
'[data-item-description]': {
|
|
45
|
+
textAlign: 'center',
|
|
46
|
+
display: 'inline-block',
|
|
47
|
+
margin: '6px'
|
|
48
|
+
},
|
|
49
|
+
// Will look interactive if the `component` is anything other than a div.
|
|
50
|
+
'div&:hover': {
|
|
51
|
+
backgroundColor: 'transparent',
|
|
52
|
+
cursor: 'default'
|
|
53
|
+
},
|
|
54
|
+
'div&:active': {
|
|
55
|
+
backgroundColor: 'transparent',
|
|
56
|
+
color: (0, _tokens.token)('color.text.mediumEmphasis', _colors.N500)
|
|
38
57
|
}
|
|
39
|
-
}
|
|
40
|
-
marginRight: 0,
|
|
41
|
-
marginBottom: '8px',
|
|
42
|
-
display: 'inline-block'
|
|
43
|
-
}), (0, _defineProperty2.default)(_ref, '[data-item-title]', {
|
|
44
|
-
textAlign: 'center',
|
|
45
|
-
fontSize: 12
|
|
46
|
-
}), (0, _defineProperty2.default)(_ref, '[data-item-description]', {
|
|
47
|
-
textAlign: 'center',
|
|
48
|
-
display: 'inline-block',
|
|
49
|
-
margin: '6px'
|
|
50
|
-
}), (0, _defineProperty2.default)(_ref, 'div&:hover', {
|
|
51
|
-
backgroundColor: 'transparent',
|
|
52
|
-
cursor: 'default'
|
|
53
|
-
}), (0, _defineProperty2.default)(_ref, 'div&:active', {
|
|
54
|
-
backgroundColor: 'transparent',
|
|
55
|
-
color: _constants.itemTextColor
|
|
56
|
-
}), _ref;
|
|
58
|
+
};
|
|
57
59
|
}, props.cssFn);
|
|
58
60
|
return /*#__PURE__*/_react.default.createElement(_Item.CustomItem, (0, _extends2.default)({}, props, {
|
|
59
61
|
component: props.component || Container,
|
|
@@ -17,9 +17,11 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
17
17
|
|
|
18
18
|
var _react = _interopRequireWildcard(require("react"));
|
|
19
19
|
|
|
20
|
+
var _colors = require("@atlaskit/theme/colors");
|
|
21
|
+
|
|
20
22
|
var _typography = require("@atlaskit/theme/typography");
|
|
21
23
|
|
|
22
|
-
var
|
|
24
|
+
var _tokens = require("@atlaskit/tokens");
|
|
23
25
|
|
|
24
26
|
var _styles = require("../../common/styles");
|
|
25
27
|
|
|
@@ -43,13 +45,13 @@ var Header = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
43
45
|
fontSize: _typography.headingSizes.h400.size,
|
|
44
46
|
letterSpacing: '-0.003em',
|
|
45
47
|
fontWeight: 600,
|
|
46
|
-
color:
|
|
48
|
+
color: (0, _tokens.token)('color.text.highEmphasis', _colors.N500)
|
|
47
49
|
}), (0, _defineProperty2.default)(_ref, 'div&:hover', {
|
|
48
50
|
backgroundColor: 'transparent',
|
|
49
51
|
cursor: 'default'
|
|
50
52
|
}), (0, _defineProperty2.default)(_ref, 'div&:active', {
|
|
51
53
|
backgroundColor: 'transparent',
|
|
52
|
-
color:
|
|
54
|
+
color: (0, _tokens.token)('color.text.highEmphasis', _colors.N500)
|
|
53
55
|
}), _ref;
|
|
54
56
|
}, props.cssFn);
|
|
55
57
|
return /*#__PURE__*/_react.default.createElement(_Item.CustomItem, (0, _extends2.default)({}, props, {
|
|
@@ -19,9 +19,9 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
19
19
|
|
|
20
20
|
var _arrowLeftCircle = _interopRequireDefault(require("@atlaskit/icon/glyph/arrow-left-circle"));
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _colors = require("@atlaskit/theme/colors");
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _tokens = require("@atlaskit/tokens");
|
|
25
25
|
|
|
26
26
|
var _buttonItem = _interopRequireDefault(require("./button-item"));
|
|
27
27
|
|
|
@@ -33,7 +33,7 @@ var GoBackItem = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
33
33
|
var cssFn = _ref.cssFn,
|
|
34
34
|
_ref$iconBefore = _ref.iconBefore,
|
|
35
35
|
iconBefore = _ref$iconBefore === void 0 ? /*#__PURE__*/_react.default.createElement(_arrowLeftCircle.default, {
|
|
36
|
-
secondaryColor:
|
|
36
|
+
secondaryColor: (0, _tokens.token)('color.background.default', _colors.N10),
|
|
37
37
|
label: ""
|
|
38
38
|
}) : _ref$iconBefore,
|
|
39
39
|
onClick = _ref.onClick,
|
|
@@ -45,7 +45,6 @@ var GoBackItem = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
45
45
|
isInteracted = _useState2[0],
|
|
46
46
|
setIsInteracted = _useState2[1];
|
|
47
47
|
|
|
48
|
-
var cssOverride = (0, _styles.overrideStyleFunction)(_styles.backItemStyle, cssFn);
|
|
49
48
|
var onClickHandler = (0, _react.useCallback)(function (e) {
|
|
50
49
|
if (isInteracted) {
|
|
51
50
|
return;
|
|
@@ -56,7 +55,7 @@ var GoBackItem = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
56
55
|
}, [onClick, isInteracted]);
|
|
57
56
|
return /*#__PURE__*/_react.default.createElement(_buttonItem.default, (0, _extends2.default)({
|
|
58
57
|
isSelected: isSelected || isInteracted,
|
|
59
|
-
cssFn:
|
|
58
|
+
cssFn: cssFn,
|
|
60
59
|
iconBefore: iconBefore,
|
|
61
60
|
onClick: onClickHandler,
|
|
62
61
|
ref: ref
|
|
@@ -9,10 +9,14 @@ exports.containerCSS = exports.innerContainerCSS = exports.outerContainerCSS = v
|
|
|
9
9
|
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
|
|
12
|
+
var _colors = require("@atlaskit/theme/colors");
|
|
13
|
+
|
|
12
14
|
var _constants = require("@atlaskit/theme/constants");
|
|
13
15
|
|
|
14
16
|
var _typography = require("@atlaskit/theme/typography");
|
|
15
17
|
|
|
18
|
+
var _tokens = require("@atlaskit/tokens");
|
|
19
|
+
|
|
16
20
|
var _constants2 = require("../../common/constants");
|
|
17
21
|
|
|
18
22
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -56,7 +60,7 @@ var outerContainerCSS = function outerContainerCSS(opts) {
|
|
|
56
60
|
right: containerPadding + opts.scrollbarWidth,
|
|
57
61
|
height: scrollIndicatorHeight,
|
|
58
62
|
borderRadius: scrollIndicatorBorderRadius,
|
|
59
|
-
backgroundColor: "var(".concat(_constants2.VAR_SEPARATOR_COLOR, ", ").concat(
|
|
63
|
+
backgroundColor: "var(".concat(_constants2.VAR_SEPARATOR_COLOR, ", ").concat((0, _tokens.token)('color.border.neutral', _colors.N30), ")"),
|
|
60
64
|
position: 'absolute',
|
|
61
65
|
zIndex: scrollIndicatorZIndex
|
|
62
66
|
},
|
|
@@ -71,7 +75,7 @@ var outerContainerCSS = function outerContainerCSS(opts) {
|
|
|
71
75
|
right: containerPadding + opts.scrollbarWidth,
|
|
72
76
|
bottom: 0,
|
|
73
77
|
zIndex: scrollIndicatorZIndex,
|
|
74
|
-
backgroundColor: "var(".concat(_constants2.VAR_SEPARATOR_COLOR, ", ").concat(
|
|
78
|
+
backgroundColor: "var(".concat(_constants2.VAR_SEPARATOR_COLOR, ", ").concat((0, _tokens.token)('color.border.neutral', _colors.N30), ")")
|
|
75
79
|
}
|
|
76
80
|
};
|
|
77
81
|
};
|
|
@@ -99,7 +103,7 @@ var innerContainerCSS = function innerContainerCSS(opts) {
|
|
|
99
103
|
left: 0,
|
|
100
104
|
right: 0,
|
|
101
105
|
height: scrollIndicatorHeight,
|
|
102
|
-
backgroundColor: "var(".concat(_constants2.VAR_SCROLL_INDICATOR_COLOR, ", ").concat(
|
|
106
|
+
backgroundColor: "var(".concat(_constants2.VAR_SCROLL_INDICATOR_COLOR, ", ").concat((0, _tokens.token)('color.background.default', _colors.N10), ")"),
|
|
103
107
|
position: 'absolute',
|
|
104
108
|
display: 'block',
|
|
105
109
|
zIndex: scrollIndicatorMaskZIndex
|
|
@@ -117,7 +121,7 @@ var innerContainerCSS = function innerContainerCSS(opts) {
|
|
|
117
121
|
marginTop: 'auto',
|
|
118
122
|
position: 'relative',
|
|
119
123
|
zIndex: scrollIndicatorMaskZIndex,
|
|
120
|
-
backgroundColor: "var(".concat(_constants2.VAR_SCROLL_INDICATOR_COLOR, ", ").concat(
|
|
124
|
+
backgroundColor: "var(".concat(_constants2.VAR_SCROLL_INDICATOR_COLOR, ", ").concat((0, _tokens.token)('color.background.default', _colors.N10), ")")
|
|
121
125
|
}
|
|
122
126
|
});
|
|
123
127
|
};
|
|
@@ -25,9 +25,11 @@ var _core = require("@emotion/core");
|
|
|
25
25
|
|
|
26
26
|
var _arrowRightCircle = _interopRequireDefault(require("@atlaskit/icon/glyph/arrow-right-circle"));
|
|
27
27
|
|
|
28
|
+
var _colors = require("@atlaskit/theme/colors");
|
|
29
|
+
|
|
28
30
|
var _constants = require("@atlaskit/theme/constants");
|
|
29
31
|
|
|
30
|
-
var
|
|
32
|
+
var _tokens = require("@atlaskit/tokens");
|
|
31
33
|
|
|
32
34
|
var _styles = require("../../common/styles");
|
|
33
35
|
|
|
@@ -146,7 +148,7 @@ var NestingItem = function NestingItem(props) {
|
|
|
146
148
|
"data-right-arrow": true
|
|
147
149
|
}, (0, _core.jsx)(_arrowRightCircle.default, {
|
|
148
150
|
testId: testId && "".concat(testId, "--item--right-arrow"),
|
|
149
|
-
secondaryColor:
|
|
151
|
+
secondaryColor: (0, _tokens.token)('color.background.default', _colors.N10),
|
|
150
152
|
label: ""
|
|
151
153
|
}))),
|
|
152
154
|
onClick: onClickHandler,
|
|
@@ -9,9 +9,11 @@ var _react = require("react");
|
|
|
9
9
|
|
|
10
10
|
var _core = require("@emotion/core");
|
|
11
11
|
|
|
12
|
+
var _colors = require("@atlaskit/theme/colors");
|
|
13
|
+
|
|
12
14
|
var _constants = require("@atlaskit/theme/constants");
|
|
13
15
|
|
|
14
|
-
var
|
|
16
|
+
var _tokens = require("@atlaskit/tokens");
|
|
15
17
|
|
|
16
18
|
/** @jsx jsx */
|
|
17
19
|
var SideNavigation = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
@@ -25,8 +27,9 @@ var SideNavigation = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
25
27
|
css: {
|
|
26
28
|
width: '100%',
|
|
27
29
|
height: '100%',
|
|
30
|
+
color: (0, _tokens.token)('color.text.mediumEmphasis', _colors.N500),
|
|
28
31
|
minWidth: (0, _constants.gridSize)() * 30,
|
|
29
|
-
backgroundColor:
|
|
32
|
+
backgroundColor: (0, _tokens.token)('color.background.default', _colors.N10),
|
|
30
33
|
position: 'relative',
|
|
31
34
|
display: 'flex',
|
|
32
35
|
flexDirection: 'column',
|
package/dist/cjs/version.json
CHANGED
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
import { B400, B50, N10, N30, N500 } from '@atlaskit/theme/colors';
|
|
2
|
-
export const navigationBackgroundColor = N10;
|
|
3
|
-
export const itemHoverBackgroundColor = N30;
|
|
4
|
-
export const itemActiveBackgroundColor = B50;
|
|
5
|
-
export const itemTextColor = N500;
|
|
6
|
-
export const itemTextSelectedColor = B400;
|
|
7
|
-
export const separatorColor = N30;
|
|
8
1
|
export const VAR_SEPARATOR_COLOR = '--ds-menu-seperator-color';
|
|
9
2
|
export const VAR_SCROLL_INDICATOR_COLOR = '--ds-menu-scroll-indicator-color';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { B400, B50, N10, N30, N500 } from '@atlaskit/theme/colors';
|
|
1
2
|
import { borderRadius as borderRadiusFn, gridSize as gridSizeFn } from '@atlaskit/theme/constants';
|
|
2
|
-
import {
|
|
3
|
+
import { token } from '@atlaskit/tokens';
|
|
3
4
|
const gridSize = gridSizeFn();
|
|
4
5
|
const borderRadius = borderRadiusFn();
|
|
5
6
|
const itemIconSize = gridSize * 3;
|
|
@@ -16,6 +17,31 @@ export const overrideStyleFunction = (baseStyle, newStyle = () => ({})) => {
|
|
|
16
17
|
return [baseStyle(state), newStyle(state)];
|
|
17
18
|
};
|
|
18
19
|
};
|
|
20
|
+
const defaultStyles = {
|
|
21
|
+
'&:hover': {
|
|
22
|
+
color: token('color.text.mediumEmphasis', N500),
|
|
23
|
+
backgroundColor: token('color.background.transparentNeutral.hover', N30)
|
|
24
|
+
},
|
|
25
|
+
'&:active': {
|
|
26
|
+
color: token('color.text.mediumEmphasis', B400),
|
|
27
|
+
backgroundColor: token('color.background.transparentNeutral.pressed', B50)
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
const selectedStyles = {
|
|
31
|
+
backgroundColor: token('color.background.selected.resting', N30),
|
|
32
|
+
color: token('color.text.selected', B400),
|
|
33
|
+
':visited': {
|
|
34
|
+
color: token('color.text.selected', B400)
|
|
35
|
+
},
|
|
36
|
+
'&:hover': {
|
|
37
|
+
backgroundColor: token('color.background.selected.hover', N30),
|
|
38
|
+
color: token('color.text.selected', N500)
|
|
39
|
+
},
|
|
40
|
+
'&:active': {
|
|
41
|
+
backgroundColor: token('color.background.selected.pressed', B50),
|
|
42
|
+
color: token('color.text.selected', B400)
|
|
43
|
+
}
|
|
44
|
+
};
|
|
19
45
|
export const baseSideNavItemStyle = ({
|
|
20
46
|
isSelected,
|
|
21
47
|
isDisabled
|
|
@@ -25,30 +51,15 @@ export const baseSideNavItemStyle = ({
|
|
|
25
51
|
// is approximately center aligned with the horizontal app switcher.
|
|
26
52
|
padding: `${gridSize}px ${ITEM_SIDE_PADDING}px`,
|
|
27
53
|
borderRadius,
|
|
28
|
-
|
|
29
|
-
color
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
},
|
|
36
|
-
'&:active': {
|
|
37
|
-
color: itemTextSelectedColor,
|
|
38
|
-
backgroundColor: itemActiveBackgroundColor,
|
|
39
|
-
boxShadow: 'none'
|
|
40
|
-
}
|
|
41
|
-
}),
|
|
42
|
-
...(isDisabled && {
|
|
43
|
-
backgroundColor: `${navigationBackgroundColor} !important`
|
|
44
|
-
}),
|
|
45
|
-
...(isSelected && {
|
|
46
|
-
backgroundColor: itemHoverBackgroundColor,
|
|
47
|
-
'&, &:visited': {
|
|
48
|
-
color: itemTextSelectedColor
|
|
49
|
-
}
|
|
50
|
-
}),
|
|
54
|
+
// -- TODO: DELETE THESE COLOR OVERRIDES WHEN CLEANING UP FALLBACK THEMING --
|
|
55
|
+
// Menu and side navigation are now color aligned so they do not need this!
|
|
56
|
+
// See: https://product-fabric.atlassian.net/browse/DSP-1684
|
|
57
|
+
backgroundColor: token('color.background.default', N10),
|
|
58
|
+
...(!isDisabled && !isSelected && defaultStyles),
|
|
59
|
+
...(!isDisabled && isSelected && selectedStyles),
|
|
60
|
+
// -- END TODO --------------------------------------------------------------
|
|
51
61
|
['& [data-item-elem-before]']: {
|
|
62
|
+
// TODO: Can this be moved into menu?
|
|
52
63
|
// center align icons with app-switcher regardless of size
|
|
53
64
|
display: 'flex',
|
|
54
65
|
height: itemIconSize,
|
|
@@ -59,13 +70,6 @@ export const baseSideNavItemStyle = ({
|
|
|
59
70
|
}
|
|
60
71
|
};
|
|
61
72
|
};
|
|
62
|
-
export const backItemStyle = () => {
|
|
63
|
-
return {
|
|
64
|
-
'&:hover': {
|
|
65
|
-
backgroundColor: itemHoverBackgroundColor
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
73
|
export const sectionHeaderStyle = () => {
|
|
70
74
|
return {
|
|
71
75
|
paddingLeft: `${ITEM_SIDE_PADDING}px`,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { N500 } from '@atlaskit/theme/colors';
|
|
4
|
+
import { token } from '@atlaskit/tokens';
|
|
4
5
|
import { overrideStyleFunction } from '../../common/styles';
|
|
5
6
|
import { CustomItem } from '../Item';
|
|
6
7
|
|
|
@@ -11,23 +12,21 @@ const Container = props => {
|
|
|
11
12
|
const Footer = props => {
|
|
12
13
|
const cssFn = overrideStyleFunction(() => ({
|
|
13
14
|
userSelect: 'auto',
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
},
|
|
21
|
-
['[data-item-elem-before]']: {
|
|
15
|
+
display: 'block',
|
|
16
|
+
textAlign: 'center',
|
|
17
|
+
minHeight: '24px',
|
|
18
|
+
alignItems: 'center',
|
|
19
|
+
width: '100%',
|
|
20
|
+
'[data-item-elem-before]': {
|
|
22
21
|
marginRight: 0,
|
|
23
22
|
marginBottom: '8px',
|
|
24
23
|
display: 'inline-block'
|
|
25
24
|
},
|
|
26
|
-
|
|
25
|
+
'[data-item-title]': {
|
|
27
26
|
textAlign: 'center',
|
|
28
27
|
fontSize: 12
|
|
29
28
|
},
|
|
30
|
-
|
|
29
|
+
'[data-item-description]': {
|
|
31
30
|
textAlign: 'center',
|
|
32
31
|
display: 'inline-block',
|
|
33
32
|
margin: '6px'
|
|
@@ -39,7 +38,7 @@ const Footer = props => {
|
|
|
39
38
|
},
|
|
40
39
|
'div&:active': {
|
|
41
40
|
backgroundColor: 'transparent',
|
|
42
|
-
color:
|
|
41
|
+
color: token('color.text.mediumEmphasis', N500)
|
|
43
42
|
}
|
|
44
43
|
}), props.cssFn);
|
|
45
44
|
return /*#__PURE__*/React.createElement(CustomItem, _extends({}, props, {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
|
+
import { N500 } from '@atlaskit/theme/colors';
|
|
3
4
|
import { headingSizes } from '@atlaskit/theme/typography';
|
|
4
|
-
import {
|
|
5
|
+
import { token } from '@atlaskit/tokens';
|
|
5
6
|
import { overrideStyleFunction } from '../../common/styles';
|
|
6
7
|
import { CustomItem } from '../Item';
|
|
7
8
|
|
|
@@ -16,7 +17,7 @@ const Header = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
16
17
|
fontSize: headingSizes.h400.size,
|
|
17
18
|
letterSpacing: '-0.003em',
|
|
18
19
|
fontWeight: 600,
|
|
19
|
-
color:
|
|
20
|
+
color: token('color.text.highEmphasis', N500)
|
|
20
21
|
},
|
|
21
22
|
// Will look interactive if the `component` is anything other than a div.
|
|
22
23
|
'div&:hover': {
|
|
@@ -25,7 +26,7 @@ const Header = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
25
26
|
},
|
|
26
27
|
'div&:active': {
|
|
27
28
|
backgroundColor: 'transparent',
|
|
28
|
-
color:
|
|
29
|
+
color: token('color.text.highEmphasis', N500)
|
|
29
30
|
}
|
|
30
31
|
}), props.cssFn);
|
|
31
32
|
return /*#__PURE__*/React.createElement(CustomItem, _extends({}, props, {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { forwardRef, useCallback, useState } from 'react';
|
|
3
3
|
import LeftArrow from '@atlaskit/icon/glyph/arrow-left-circle';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { N10 } from '@atlaskit/theme/colors';
|
|
5
|
+
import { token } from '@atlaskit/tokens';
|
|
6
6
|
import ButtonItem from './button-item';
|
|
7
7
|
const GoBackItem = /*#__PURE__*/forwardRef(({
|
|
8
8
|
cssFn,
|
|
9
9
|
iconBefore = /*#__PURE__*/React.createElement(LeftArrow, {
|
|
10
|
-
secondaryColor:
|
|
10
|
+
secondaryColor: token('color.background.default', N10),
|
|
11
11
|
label: ""
|
|
12
12
|
}),
|
|
13
13
|
onClick,
|
|
@@ -15,7 +15,6 @@ const GoBackItem = /*#__PURE__*/forwardRef(({
|
|
|
15
15
|
...rest
|
|
16
16
|
}, ref) => {
|
|
17
17
|
const [isInteracted, setIsInteracted] = useState(false);
|
|
18
|
-
const cssOverride = overrideStyleFunction(backItemStyle, cssFn);
|
|
19
18
|
const onClickHandler = useCallback(e => {
|
|
20
19
|
if (isInteracted) {
|
|
21
20
|
return;
|
|
@@ -26,7 +25,7 @@ const GoBackItem = /*#__PURE__*/forwardRef(({
|
|
|
26
25
|
}, [onClick, isInteracted]);
|
|
27
26
|
return /*#__PURE__*/React.createElement(ButtonItem, _extends({
|
|
28
27
|
isSelected: isSelected || isInteracted,
|
|
29
|
-
cssFn:
|
|
28
|
+
cssFn: cssFn,
|
|
30
29
|
iconBefore: iconBefore,
|
|
31
30
|
onClick: onClickHandler,
|
|
32
31
|
ref: ref
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { N10, N30 } from '@atlaskit/theme/colors';
|
|
1
2
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
2
3
|
import { headingSizes } from '@atlaskit/theme/typography';
|
|
3
|
-
import {
|
|
4
|
+
import { token } from '@atlaskit/tokens';
|
|
5
|
+
import { VAR_SCROLL_INDICATOR_COLOR, VAR_SEPARATOR_COLOR } from '../../common/constants';
|
|
4
6
|
const scrollIndicatorMaskZIndex = 2;
|
|
5
7
|
const scrollIndicatorZIndex = 1;
|
|
6
8
|
const scrollIndicatorHeight = 2;
|
|
@@ -37,7 +39,7 @@ export const outerContainerCSS = opts => ({
|
|
|
37
39
|
right: containerPadding + opts.scrollbarWidth,
|
|
38
40
|
height: scrollIndicatorHeight,
|
|
39
41
|
borderRadius: scrollIndicatorBorderRadius,
|
|
40
|
-
backgroundColor: `var(${VAR_SEPARATOR_COLOR}, ${
|
|
42
|
+
backgroundColor: `var(${VAR_SEPARATOR_COLOR}, ${token('color.border.neutral', N30)})`,
|
|
41
43
|
position: 'absolute',
|
|
42
44
|
zIndex: scrollIndicatorZIndex
|
|
43
45
|
},
|
|
@@ -52,7 +54,7 @@ export const outerContainerCSS = opts => ({
|
|
|
52
54
|
right: containerPadding + opts.scrollbarWidth,
|
|
53
55
|
bottom: 0,
|
|
54
56
|
zIndex: scrollIndicatorZIndex,
|
|
55
|
-
backgroundColor: `var(${VAR_SEPARATOR_COLOR}, ${
|
|
57
|
+
backgroundColor: `var(${VAR_SEPARATOR_COLOR}, ${token('color.border.neutral', N30)})`
|
|
56
58
|
}
|
|
57
59
|
});
|
|
58
60
|
/**
|
|
@@ -77,7 +79,7 @@ export const innerContainerCSS = opts => ({
|
|
|
77
79
|
left: 0,
|
|
78
80
|
right: 0,
|
|
79
81
|
height: scrollIndicatorHeight,
|
|
80
|
-
backgroundColor: `var(${VAR_SCROLL_INDICATOR_COLOR}, ${
|
|
82
|
+
backgroundColor: `var(${VAR_SCROLL_INDICATOR_COLOR}, ${token('color.background.default', N10)})`,
|
|
81
83
|
position: 'absolute',
|
|
82
84
|
display: 'block',
|
|
83
85
|
zIndex: scrollIndicatorMaskZIndex
|
|
@@ -95,7 +97,7 @@ export const innerContainerCSS = opts => ({
|
|
|
95
97
|
marginTop: 'auto',
|
|
96
98
|
position: 'relative',
|
|
97
99
|
zIndex: scrollIndicatorMaskZIndex,
|
|
98
|
-
backgroundColor: `var(${VAR_SCROLL_INDICATOR_COLOR}, ${
|
|
100
|
+
backgroundColor: `var(${VAR_SCROLL_INDICATOR_COLOR}, ${token('color.background.default', N10)})`
|
|
99
101
|
}
|
|
100
102
|
});
|
|
101
103
|
export const containerCSS = opts => ({
|
|
@@ -4,8 +4,9 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
4
4
|
import React, { Fragment, useCallback, useMemo, useState } from 'react';
|
|
5
5
|
import { jsx } from '@emotion/core';
|
|
6
6
|
import RightArrow from '@atlaskit/icon/glyph/arrow-right-circle';
|
|
7
|
+
import { N10 } from '@atlaskit/theme/colors';
|
|
7
8
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
8
|
-
import {
|
|
9
|
+
import { token } from '@atlaskit/tokens';
|
|
9
10
|
import { overrideStyleFunction } from '../../common/styles';
|
|
10
11
|
import { ButtonItem, CustomItem, NavigationContent } from '../index';
|
|
11
12
|
import { ROOT_ID } from '../NestableNavigationContent';
|
|
@@ -103,7 +104,7 @@ const NestingItem = props => {
|
|
|
103
104
|
"data-right-arrow": true
|
|
104
105
|
}, jsx(RightArrow, {
|
|
105
106
|
testId: testId && `${testId}--item--right-arrow`,
|
|
106
|
-
secondaryColor:
|
|
107
|
+
secondaryColor: token('color.background.default', N10),
|
|
107
108
|
label: ""
|
|
108
109
|
}))),
|
|
109
110
|
onClick: onClickHandler,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
3
|
import { jsx } from '@emotion/core';
|
|
4
|
+
import { N10, N500 } from '@atlaskit/theme/colors';
|
|
4
5
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
5
|
-
import {
|
|
6
|
+
import { token } from '@atlaskit/tokens';
|
|
6
7
|
const SideNavigation = /*#__PURE__*/forwardRef((props, ref) => {
|
|
7
8
|
const {
|
|
8
9
|
children,
|
|
@@ -16,8 +17,9 @@ const SideNavigation = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
16
17
|
css: {
|
|
17
18
|
width: '100%',
|
|
18
19
|
height: '100%',
|
|
20
|
+
color: token('color.text.mediumEmphasis', N500),
|
|
19
21
|
minWidth: gridSize() * 30,
|
|
20
|
-
backgroundColor:
|
|
22
|
+
backgroundColor: token('color.background.default', N10),
|
|
21
23
|
position: 'relative',
|
|
22
24
|
display: 'flex',
|
|
23
25
|
flexDirection: 'column',
|
package/dist/es2019/version.json
CHANGED
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
import { B400, B50, N10, N30, N500 } from '@atlaskit/theme/colors';
|
|
2
|
-
export var navigationBackgroundColor = N10;
|
|
3
|
-
export var itemHoverBackgroundColor = N30;
|
|
4
|
-
export var itemActiveBackgroundColor = B50;
|
|
5
|
-
export var itemTextColor = N500;
|
|
6
|
-
export var itemTextSelectedColor = B400;
|
|
7
|
-
export var separatorColor = N30;
|
|
8
1
|
export var VAR_SEPARATOR_COLOR = '--ds-menu-seperator-color';
|
|
9
2
|
export var VAR_SCROLL_INDICATOR_COLOR = '--ds-menu-scroll-indicator-color';
|
|
@@ -4,8 +4,9 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
4
4
|
|
|
5
5
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
6
6
|
|
|
7
|
+
import { B400, B50, N10, N30, N500 } from '@atlaskit/theme/colors';
|
|
7
8
|
import { borderRadius as borderRadiusFn, gridSize as gridSizeFn } from '@atlaskit/theme/constants';
|
|
8
|
-
import {
|
|
9
|
+
import { token } from '@atlaskit/tokens';
|
|
9
10
|
var gridSize = gridSizeFn();
|
|
10
11
|
var borderRadius = borderRadiusFn();
|
|
11
12
|
var itemIconSize = gridSize * 3;
|
|
@@ -25,35 +26,45 @@ export var overrideStyleFunction = function overrideStyleFunction(baseStyle) {
|
|
|
25
26
|
return [baseStyle(state), newStyle(state)];
|
|
26
27
|
};
|
|
27
28
|
};
|
|
29
|
+
var defaultStyles = {
|
|
30
|
+
'&:hover': {
|
|
31
|
+
color: token('color.text.mediumEmphasis', N500),
|
|
32
|
+
backgroundColor: token('color.background.transparentNeutral.hover', N30)
|
|
33
|
+
},
|
|
34
|
+
'&:active': {
|
|
35
|
+
color: token('color.text.mediumEmphasis', B400),
|
|
36
|
+
backgroundColor: token('color.background.transparentNeutral.pressed', B50)
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
var selectedStyles = {
|
|
40
|
+
backgroundColor: token('color.background.selected.resting', N30),
|
|
41
|
+
color: token('color.text.selected', B400),
|
|
42
|
+
':visited': {
|
|
43
|
+
color: token('color.text.selected', B400)
|
|
44
|
+
},
|
|
45
|
+
'&:hover': {
|
|
46
|
+
backgroundColor: token('color.background.selected.hover', N30),
|
|
47
|
+
color: token('color.text.selected', N500)
|
|
48
|
+
},
|
|
49
|
+
'&:active': {
|
|
50
|
+
backgroundColor: token('color.background.selected.pressed', B50),
|
|
51
|
+
color: token('color.text.selected', B400)
|
|
52
|
+
}
|
|
53
|
+
};
|
|
28
54
|
export var baseSideNavItemStyle = function baseSideNavItemStyle(_ref) {
|
|
29
55
|
var isSelected = _ref.isSelected,
|
|
30
56
|
isDisabled = _ref.isDisabled;
|
|
31
|
-
return _objectSpread(_objectSpread(_objectSpread(
|
|
57
|
+
return _objectSpread(_objectSpread(_objectSpread({
|
|
32
58
|
// This padding is set to ensure that the center of the left icon
|
|
33
59
|
// is approximately center aligned with the horizontal app switcher.
|
|
34
60
|
padding: "".concat(gridSize, "px ").concat(ITEM_SIDE_PADDING, "px"),
|
|
35
61
|
borderRadius: borderRadius,
|
|
36
|
-
|
|
37
|
-
color
|
|
38
|
-
|
|
39
|
-
'
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
color: itemTextColor
|
|
43
|
-
},
|
|
44
|
-
'&:active': {
|
|
45
|
-
color: itemTextSelectedColor,
|
|
46
|
-
backgroundColor: itemActiveBackgroundColor,
|
|
47
|
-
boxShadow: 'none'
|
|
48
|
-
}
|
|
49
|
-
}), isDisabled && {
|
|
50
|
-
backgroundColor: "".concat(navigationBackgroundColor, " !important")
|
|
51
|
-
}), isSelected && {
|
|
52
|
-
backgroundColor: itemHoverBackgroundColor,
|
|
53
|
-
'&, &:visited': {
|
|
54
|
-
color: itemTextSelectedColor
|
|
55
|
-
}
|
|
56
|
-
}), {}, _defineProperty({}, '& [data-item-elem-before]', {
|
|
62
|
+
// -- TODO: DELETE THESE COLOR OVERRIDES WHEN CLEANING UP FALLBACK THEMING --
|
|
63
|
+
// Menu and side navigation are now color aligned so they do not need this!
|
|
64
|
+
// See: https://product-fabric.atlassian.net/browse/DSP-1684
|
|
65
|
+
backgroundColor: token('color.background.default', N10)
|
|
66
|
+
}, !isDisabled && !isSelected && defaultStyles), !isDisabled && isSelected && selectedStyles), {}, _defineProperty({}, '& [data-item-elem-before]', {
|
|
67
|
+
// TODO: Can this be moved into menu?
|
|
57
68
|
// center align icons with app-switcher regardless of size
|
|
58
69
|
display: 'flex',
|
|
59
70
|
height: itemIconSize,
|
|
@@ -63,13 +74,6 @@ export var baseSideNavItemStyle = function baseSideNavItemStyle(_ref) {
|
|
|
63
74
|
marginRight: leftIconRightSpacing
|
|
64
75
|
}));
|
|
65
76
|
};
|
|
66
|
-
export var backItemStyle = function backItemStyle() {
|
|
67
|
-
return {
|
|
68
|
-
'&:hover': {
|
|
69
|
-
backgroundColor: itemHoverBackgroundColor
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
77
|
export var sectionHeaderStyle = function sectionHeaderStyle() {
|
|
74
78
|
return {
|
|
75
79
|
paddingLeft: "".concat(ITEM_SIDE_PADDING, "px"),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
2
|
import React from 'react';
|
|
4
|
-
import {
|
|
3
|
+
import { N500 } from '@atlaskit/theme/colors';
|
|
4
|
+
import { token } from '@atlaskit/tokens';
|
|
5
5
|
import { overrideStyleFunction } from '../../common/styles';
|
|
6
6
|
import { CustomItem } from '../Item';
|
|
7
7
|
|
|
@@ -11,35 +11,37 @@ var Container = function Container(props) {
|
|
|
11
11
|
|
|
12
12
|
var Footer = function Footer(props) {
|
|
13
13
|
var cssFn = overrideStyleFunction(function () {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return _ref = {
|
|
14
|
+
return {
|
|
17
15
|
userSelect: 'auto',
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
display: 'block',
|
|
17
|
+
textAlign: 'center',
|
|
18
|
+
minHeight: '24px',
|
|
19
|
+
alignItems: 'center',
|
|
20
|
+
width: '100%',
|
|
21
|
+
'[data-item-elem-before]': {
|
|
22
|
+
marginRight: 0,
|
|
23
|
+
marginBottom: '8px',
|
|
24
|
+
display: 'inline-block'
|
|
25
|
+
},
|
|
26
|
+
'[data-item-title]': {
|
|
27
|
+
textAlign: 'center',
|
|
28
|
+
fontSize: 12
|
|
29
|
+
},
|
|
30
|
+
'[data-item-description]': {
|
|
20
31
|
textAlign: 'center',
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
32
|
+
display: 'inline-block',
|
|
33
|
+
margin: '6px'
|
|
34
|
+
},
|
|
35
|
+
// Will look interactive if the `component` is anything other than a div.
|
|
36
|
+
'div&:hover': {
|
|
37
|
+
backgroundColor: 'transparent',
|
|
38
|
+
cursor: 'default'
|
|
39
|
+
},
|
|
40
|
+
'div&:active': {
|
|
41
|
+
backgroundColor: 'transparent',
|
|
42
|
+
color: token('color.text.mediumEmphasis', N500)
|
|
24
43
|
}
|
|
25
|
-
}
|
|
26
|
-
marginRight: 0,
|
|
27
|
-
marginBottom: '8px',
|
|
28
|
-
display: 'inline-block'
|
|
29
|
-
}), _defineProperty(_ref, '[data-item-title]', {
|
|
30
|
-
textAlign: 'center',
|
|
31
|
-
fontSize: 12
|
|
32
|
-
}), _defineProperty(_ref, '[data-item-description]', {
|
|
33
|
-
textAlign: 'center',
|
|
34
|
-
display: 'inline-block',
|
|
35
|
-
margin: '6px'
|
|
36
|
-
}), _defineProperty(_ref, 'div&:hover', {
|
|
37
|
-
backgroundColor: 'transparent',
|
|
38
|
-
cursor: 'default'
|
|
39
|
-
}), _defineProperty(_ref, 'div&:active', {
|
|
40
|
-
backgroundColor: 'transparent',
|
|
41
|
-
color: itemTextColor
|
|
42
|
-
}), _ref;
|
|
44
|
+
};
|
|
43
45
|
}, props.cssFn);
|
|
44
46
|
return /*#__PURE__*/React.createElement(CustomItem, _extends({}, props, {
|
|
45
47
|
component: props.component || Container,
|
|
@@ -2,8 +2,9 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
import React, { forwardRef } from 'react';
|
|
5
|
+
import { N500 } from '@atlaskit/theme/colors';
|
|
5
6
|
import { headingSizes } from '@atlaskit/theme/typography';
|
|
6
|
-
import {
|
|
7
|
+
import { token } from '@atlaskit/tokens';
|
|
7
8
|
import { overrideStyleFunction } from '../../common/styles';
|
|
8
9
|
import { CustomItem } from '../Item';
|
|
9
10
|
|
|
@@ -21,13 +22,13 @@ var Header = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
21
22
|
fontSize: headingSizes.h400.size,
|
|
22
23
|
letterSpacing: '-0.003em',
|
|
23
24
|
fontWeight: 600,
|
|
24
|
-
color:
|
|
25
|
+
color: token('color.text.highEmphasis', N500)
|
|
25
26
|
}), _defineProperty(_ref, 'div&:hover', {
|
|
26
27
|
backgroundColor: 'transparent',
|
|
27
28
|
cursor: 'default'
|
|
28
29
|
}), _defineProperty(_ref, 'div&:active', {
|
|
29
30
|
backgroundColor: 'transparent',
|
|
30
|
-
color:
|
|
31
|
+
color: token('color.text.highEmphasis', N500)
|
|
31
32
|
}), _ref;
|
|
32
33
|
}, props.cssFn);
|
|
33
34
|
return /*#__PURE__*/React.createElement(CustomItem, _extends({}, props, {
|
|
@@ -3,14 +3,14 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
import React, { forwardRef, useCallback, useState } from 'react';
|
|
5
5
|
import LeftArrow from '@atlaskit/icon/glyph/arrow-left-circle';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { N10 } from '@atlaskit/theme/colors';
|
|
7
|
+
import { token } from '@atlaskit/tokens';
|
|
8
8
|
import ButtonItem from './button-item';
|
|
9
9
|
var GoBackItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
10
10
|
var cssFn = _ref.cssFn,
|
|
11
11
|
_ref$iconBefore = _ref.iconBefore,
|
|
12
12
|
iconBefore = _ref$iconBefore === void 0 ? /*#__PURE__*/React.createElement(LeftArrow, {
|
|
13
|
-
secondaryColor:
|
|
13
|
+
secondaryColor: token('color.background.default', N10),
|
|
14
14
|
label: ""
|
|
15
15
|
}) : _ref$iconBefore,
|
|
16
16
|
onClick = _ref.onClick,
|
|
@@ -22,7 +22,6 @@ var GoBackItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
22
22
|
isInteracted = _useState2[0],
|
|
23
23
|
setIsInteracted = _useState2[1];
|
|
24
24
|
|
|
25
|
-
var cssOverride = overrideStyleFunction(backItemStyle, cssFn);
|
|
26
25
|
var onClickHandler = useCallback(function (e) {
|
|
27
26
|
if (isInteracted) {
|
|
28
27
|
return;
|
|
@@ -33,7 +32,7 @@ var GoBackItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
33
32
|
}, [onClick, isInteracted]);
|
|
34
33
|
return /*#__PURE__*/React.createElement(ButtonItem, _extends({
|
|
35
34
|
isSelected: isSelected || isInteracted,
|
|
36
|
-
cssFn:
|
|
35
|
+
cssFn: cssFn,
|
|
37
36
|
iconBefore: iconBefore,
|
|
38
37
|
onClick: onClickHandler,
|
|
39
38
|
ref: ref
|
|
@@ -4,9 +4,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
4
4
|
|
|
5
5
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
6
6
|
|
|
7
|
+
import { N10, N30 } from '@atlaskit/theme/colors';
|
|
7
8
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
8
9
|
import { headingSizes } from '@atlaskit/theme/typography';
|
|
9
|
-
import {
|
|
10
|
+
import { token } from '@atlaskit/tokens';
|
|
11
|
+
import { VAR_SCROLL_INDICATOR_COLOR, VAR_SEPARATOR_COLOR } from '../../common/constants';
|
|
10
12
|
var scrollIndicatorMaskZIndex = 2;
|
|
11
13
|
var scrollIndicatorZIndex = 1;
|
|
12
14
|
var scrollIndicatorHeight = 2;
|
|
@@ -44,7 +46,7 @@ export var outerContainerCSS = function outerContainerCSS(opts) {
|
|
|
44
46
|
right: containerPadding + opts.scrollbarWidth,
|
|
45
47
|
height: scrollIndicatorHeight,
|
|
46
48
|
borderRadius: scrollIndicatorBorderRadius,
|
|
47
|
-
backgroundColor: "var(".concat(VAR_SEPARATOR_COLOR, ", ").concat(
|
|
49
|
+
backgroundColor: "var(".concat(VAR_SEPARATOR_COLOR, ", ").concat(token('color.border.neutral', N30), ")"),
|
|
48
50
|
position: 'absolute',
|
|
49
51
|
zIndex: scrollIndicatorZIndex
|
|
50
52
|
},
|
|
@@ -59,7 +61,7 @@ export var outerContainerCSS = function outerContainerCSS(opts) {
|
|
|
59
61
|
right: containerPadding + opts.scrollbarWidth,
|
|
60
62
|
bottom: 0,
|
|
61
63
|
zIndex: scrollIndicatorZIndex,
|
|
62
|
-
backgroundColor: "var(".concat(VAR_SEPARATOR_COLOR, ", ").concat(
|
|
64
|
+
backgroundColor: "var(".concat(VAR_SEPARATOR_COLOR, ", ").concat(token('color.border.neutral', N30), ")")
|
|
63
65
|
}
|
|
64
66
|
};
|
|
65
67
|
};
|
|
@@ -84,7 +86,7 @@ export var innerContainerCSS = function innerContainerCSS(opts) {
|
|
|
84
86
|
left: 0,
|
|
85
87
|
right: 0,
|
|
86
88
|
height: scrollIndicatorHeight,
|
|
87
|
-
backgroundColor: "var(".concat(VAR_SCROLL_INDICATOR_COLOR, ", ").concat(
|
|
89
|
+
backgroundColor: "var(".concat(VAR_SCROLL_INDICATOR_COLOR, ", ").concat(token('color.background.default', N10), ")"),
|
|
88
90
|
position: 'absolute',
|
|
89
91
|
display: 'block',
|
|
90
92
|
zIndex: scrollIndicatorMaskZIndex
|
|
@@ -102,7 +104,7 @@ export var innerContainerCSS = function innerContainerCSS(opts) {
|
|
|
102
104
|
marginTop: 'auto',
|
|
103
105
|
position: 'relative',
|
|
104
106
|
zIndex: scrollIndicatorMaskZIndex,
|
|
105
|
-
backgroundColor: "var(".concat(VAR_SCROLL_INDICATOR_COLOR, ", ").concat(
|
|
107
|
+
backgroundColor: "var(".concat(VAR_SCROLL_INDICATOR_COLOR, ", ").concat(token('color.background.default', N10), ")")
|
|
106
108
|
}
|
|
107
109
|
});
|
|
108
110
|
};
|
|
@@ -12,8 +12,9 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
12
12
|
import React, { Fragment, useCallback, useMemo, useState } from 'react';
|
|
13
13
|
import { jsx } from '@emotion/core';
|
|
14
14
|
import RightArrow from '@atlaskit/icon/glyph/arrow-right-circle';
|
|
15
|
+
import { N10 } from '@atlaskit/theme/colors';
|
|
15
16
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
16
|
-
import {
|
|
17
|
+
import { token } from '@atlaskit/tokens';
|
|
17
18
|
import { overrideStyleFunction } from '../../common/styles';
|
|
18
19
|
import { ButtonItem, CustomItem, NavigationContent } from '../index';
|
|
19
20
|
import { ROOT_ID } from '../NestableNavigationContent';
|
|
@@ -119,7 +120,7 @@ var NestingItem = function NestingItem(props) {
|
|
|
119
120
|
"data-right-arrow": true
|
|
120
121
|
}, jsx(RightArrow, {
|
|
121
122
|
testId: testId && "".concat(testId, "--item--right-arrow"),
|
|
122
|
-
secondaryColor:
|
|
123
|
+
secondaryColor: token('color.background.default', N10),
|
|
123
124
|
label: ""
|
|
124
125
|
}))),
|
|
125
126
|
onClick: onClickHandler,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
3
|
import { jsx } from '@emotion/core';
|
|
4
|
+
import { N10, N500 } from '@atlaskit/theme/colors';
|
|
4
5
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
5
|
-
import {
|
|
6
|
+
import { token } from '@atlaskit/tokens';
|
|
6
7
|
var SideNavigation = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
7
8
|
var children = props.children,
|
|
8
9
|
testId = props.testId,
|
|
@@ -14,8 +15,9 @@ var SideNavigation = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
14
15
|
css: {
|
|
15
16
|
width: '100%',
|
|
16
17
|
height: '100%',
|
|
18
|
+
color: token('color.text.mediumEmphasis', N500),
|
|
17
19
|
minWidth: gridSize() * 30,
|
|
18
|
-
backgroundColor:
|
|
20
|
+
backgroundColor: token('color.background.default', N10),
|
|
19
21
|
position: 'relative',
|
|
20
22
|
display: 'flex',
|
|
21
23
|
flexDirection: 'column',
|
package/dist/esm/version.json
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
export declare const navigationBackgroundColor = "#FAFBFC";
|
|
2
|
-
export declare const itemHoverBackgroundColor = "#EBECF0";
|
|
3
|
-
export declare const itemActiveBackgroundColor = "#DEEBFF";
|
|
4
|
-
export declare const itemTextColor = "#42526E";
|
|
5
|
-
export declare const itemTextSelectedColor = "#0052CC";
|
|
6
|
-
export declare const separatorColor = "#EBECF0";
|
|
7
1
|
export declare const VAR_SEPARATOR_COLOR = "--ds-menu-seperator-color";
|
|
8
2
|
export declare const VAR_SCROLL_INDICATOR_COLOR = "--ds-menu-scroll-indicator-color";
|
|
@@ -7,5 +7,4 @@ export declare const ITEM_SIDE_PADDING: number;
|
|
|
7
7
|
*/
|
|
8
8
|
export declare const overrideStyleFunction: <TState>(baseStyle: CSSFn<TState>, newStyle?: CSSFn<TState> | undefined) => CSSFn<TState>;
|
|
9
9
|
export declare const baseSideNavItemStyle: CSSFn;
|
|
10
|
-
export declare const backItemStyle: CSSFn;
|
|
11
10
|
export declare const sectionHeaderStyle: StatelessCSSFn;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ButtonItemProps } from '@atlaskit/menu';
|
|
2
|
+
import type { ButtonItemProps } from '@atlaskit/menu';
|
|
3
3
|
export type { ButtonItemProps as GoBackItemProps } from '@atlaskit/menu';
|
|
4
4
|
declare const GoBackItem: React.ForwardRefExoticComponent<ButtonItemProps & React.RefAttributes<HTMLElement>>;
|
|
5
5
|
export default GoBackItem;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/side-navigation",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "A highly composable side navigation component that supports nested views.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -24,10 +24,11 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@atlaskit/ds-lib": "^1.1.0",
|
|
27
|
-
"@atlaskit/icon": "^21.
|
|
28
|
-
"@atlaskit/menu": "^1.
|
|
27
|
+
"@atlaskit/icon": "^21.9.0",
|
|
28
|
+
"@atlaskit/menu": "^1.2.0",
|
|
29
29
|
"@atlaskit/motion": "^1.0.0",
|
|
30
|
-
"@atlaskit/theme": "^
|
|
30
|
+
"@atlaskit/theme": "^12.0.0",
|
|
31
|
+
"@atlaskit/tokens": "^0.3.0",
|
|
31
32
|
"@babel/runtime": "^7.0.0",
|
|
32
33
|
"@emotion/core": "^10.0.9"
|
|
33
34
|
},
|
|
@@ -35,13 +36,13 @@
|
|
|
35
36
|
"react": "^16.8.0"
|
|
36
37
|
},
|
|
37
38
|
"devDependencies": {
|
|
38
|
-
"@atlaskit/atlassian-navigation": "^1.
|
|
39
|
-
"@atlaskit/button": "^
|
|
39
|
+
"@atlaskit/atlassian-navigation": "^1.2.0",
|
|
40
|
+
"@atlaskit/button": "^16.0.0",
|
|
40
41
|
"@atlaskit/docs": "*",
|
|
41
|
-
"@atlaskit/logo": "^13.
|
|
42
|
-
"@atlaskit/onboarding": "^10.
|
|
42
|
+
"@atlaskit/logo": "^13.5.0",
|
|
43
|
+
"@atlaskit/onboarding": "^10.3.0",
|
|
43
44
|
"@atlaskit/section-message": "^6.0.0",
|
|
44
|
-
"@atlaskit/select": "^
|
|
45
|
+
"@atlaskit/select": "^15.2.0",
|
|
45
46
|
"@atlaskit/visual-regression": "*",
|
|
46
47
|
"@atlaskit/webdriver-runner": "*",
|
|
47
48
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
@@ -50,7 +51,7 @@
|
|
|
50
51
|
"ast-types": "^0.13.3",
|
|
51
52
|
"jest-axe": "^4.0.0",
|
|
52
53
|
"jest-emotion": "^10.0.32",
|
|
53
|
-
"jscodeshift": "^0.
|
|
54
|
+
"jscodeshift": "^0.13.0",
|
|
54
55
|
"raf-stub": "^2.0.1",
|
|
55
56
|
"react-beautiful-dnd": "^12.1.1",
|
|
56
57
|
"typescript": "3.9.6"
|
|
@@ -60,18 +61,10 @@
|
|
|
60
61
|
"import-structure": "atlassian-conventions"
|
|
61
62
|
},
|
|
62
63
|
"@repo/internal": {
|
|
63
|
-
"ui-components":
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
"
|
|
67
|
-
"analytics-next"
|
|
68
|
-
],
|
|
69
|
-
"theming": [
|
|
70
|
-
"new-theming-api"
|
|
71
|
-
],
|
|
72
|
-
"deprecation": [
|
|
73
|
-
"no-deprecated-imports"
|
|
74
|
-
]
|
|
64
|
+
"ui-components": "lite-mode",
|
|
65
|
+
"analytics": "analytics-next",
|
|
66
|
+
"theming": "tokens",
|
|
67
|
+
"deprecation": "no-deprecated-imports"
|
|
75
68
|
}
|
|
76
69
|
},
|
|
77
70
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|