@atlaskit/side-navigation 1.1.2 → 1.2.3
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 +55 -0
- package/dist/cjs/common/constants.js +1 -1
- package/dist/cjs/common/styles.js +15 -17
- package/dist/cjs/components/Footer/index.js +28 -30
- package/dist/cjs/components/Header/index.js +5 -5
- package/dist/cjs/components/Item/button-item.js +3 -1
- package/dist/cjs/components/Item/custom-item.js +3 -1
- package/dist/cjs/components/Item/go-back-item.js +4 -4
- package/dist/cjs/components/Item/link-item.js +3 -1
- package/dist/cjs/components/NavigationContent/styles.js +7 -9
- package/dist/cjs/components/NestableNavigationContent/nesting-motion.js +2 -2
- package/dist/cjs/components/NestingItem/index.js +6 -6
- package/dist/cjs/components/NestingItem/styles.js +2 -2
- package/dist/cjs/components/SideNavigation/index.js +2 -4
- package/dist/cjs/components/index.js +34 -34
- package/dist/cjs/index.js +38 -38
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/common/styles.js +12 -13
- package/dist/es2019/components/Footer/index.js +9 -12
- package/dist/es2019/components/Header/index.js +2 -3
- package/dist/es2019/components/Item/go-back-item.js +1 -2
- package/dist/es2019/components/NavigationContent/styles.js +4 -5
- package/dist/es2019/components/NestingItem/index.js +1 -2
- package/dist/es2019/components/SideNavigation/index.js +2 -3
- package/dist/es2019/version.json +1 -1
- package/dist/esm/common/styles.js +14 -15
- package/dist/esm/components/Footer/index.js +28 -28
- package/dist/esm/components/Header/index.js +4 -4
- package/dist/esm/components/Item/button-item.js +2 -1
- package/dist/esm/components/Item/custom-item.js +2 -1
- package/dist/esm/components/Item/go-back-item.js +3 -3
- package/dist/esm/components/Item/link-item.js +2 -1
- package/dist/esm/components/NavigationContent/styles.js +6 -7
- package/dist/esm/components/NestableNavigationContent/nesting-motion.js +2 -2
- package/dist/esm/components/NestingItem/index.js +5 -5
- package/dist/esm/components/NestingItem/styles.js +2 -2
- package/dist/esm/components/SideNavigation/index.js +2 -3
- package/dist/esm/version.json +1 -1
- package/dist/types/components/Footer/index.d.ts +1 -0
- package/dist/types/components/Item/custom-item.d.ts +1 -0
- package/dist/types/components/Item/skeleton-item.d.ts +1 -0
- package/dist/types/components/NavigationHeader/index.d.ts +1 -0
- package/dist/types/components/Section/heading-item.d.ts +1 -0
- package/dist/types/components/Section/skeleton-heading-item.d.ts +1 -0
- package/package.json +7 -7
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
2
|
import React from 'react';
|
|
4
3
|
import { N500 } from '@atlaskit/theme/colors';
|
|
5
|
-
import { token } from '@atlaskit/tokens';
|
|
6
4
|
import { overrideStyleFunction } from '../../common/styles';
|
|
7
5
|
import { CustomItem } from '../Item';
|
|
8
6
|
|
|
@@ -12,35 +10,37 @@ var Container = function Container(props) {
|
|
|
12
10
|
|
|
13
11
|
var Footer = function Footer(props) {
|
|
14
12
|
var cssFn = overrideStyleFunction(function () {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return _ref = {
|
|
13
|
+
return {
|
|
18
14
|
userSelect: 'auto',
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
display: 'block',
|
|
16
|
+
textAlign: 'center',
|
|
17
|
+
minHeight: '24px',
|
|
18
|
+
alignItems: 'center',
|
|
19
|
+
width: '100%',
|
|
20
|
+
'[data-item-elem-before]': {
|
|
21
|
+
marginRight: 0,
|
|
22
|
+
marginBottom: '8px',
|
|
23
|
+
display: 'inline-block'
|
|
24
|
+
},
|
|
25
|
+
'[data-item-title]': {
|
|
26
|
+
textAlign: 'center',
|
|
27
|
+
fontSize: 12
|
|
28
|
+
},
|
|
29
|
+
'[data-item-description]': {
|
|
21
30
|
textAlign: 'center',
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
31
|
+
display: 'inline-block',
|
|
32
|
+
margin: '6px'
|
|
33
|
+
},
|
|
34
|
+
// Will look interactive if the `component` is anything other than a div.
|
|
35
|
+
'div&:hover': {
|
|
36
|
+
backgroundColor: 'transparent',
|
|
37
|
+
cursor: 'default'
|
|
38
|
+
},
|
|
39
|
+
'div&:active': {
|
|
40
|
+
backgroundColor: 'transparent',
|
|
41
|
+
color: "var(--ds-text-subtle, ".concat(N500, ")")
|
|
25
42
|
}
|
|
26
|
-
}
|
|
27
|
-
marginRight: 0,
|
|
28
|
-
marginBottom: '8px',
|
|
29
|
-
display: 'inline-block'
|
|
30
|
-
}), _defineProperty(_ref, '[data-item-title]', {
|
|
31
|
-
textAlign: 'center',
|
|
32
|
-
fontSize: 12
|
|
33
|
-
}), _defineProperty(_ref, '[data-item-description]', {
|
|
34
|
-
textAlign: 'center',
|
|
35
|
-
display: 'inline-block',
|
|
36
|
-
margin: '6px'
|
|
37
|
-
}), _defineProperty(_ref, 'div&:hover', {
|
|
38
|
-
backgroundColor: 'transparent',
|
|
39
|
-
cursor: 'default'
|
|
40
|
-
}), _defineProperty(_ref, 'div&:active', {
|
|
41
|
-
backgroundColor: 'transparent',
|
|
42
|
-
color: token('color.text.mediumEmphasis', N500)
|
|
43
|
-
}), _ref;
|
|
43
|
+
};
|
|
44
44
|
}, props.cssFn);
|
|
45
45
|
return /*#__PURE__*/React.createElement(CustomItem, _extends({}, props, {
|
|
46
46
|
component: props.component || Container,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
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
|
+
var _excluded = ["children"];
|
|
4
5
|
import React, { forwardRef } from 'react';
|
|
5
6
|
import { N500 } from '@atlaskit/theme/colors';
|
|
6
7
|
import { headingSizes } from '@atlaskit/theme/typography';
|
|
7
|
-
import { token } from '@atlaskit/tokens';
|
|
8
8
|
import { overrideStyleFunction } from '../../common/styles';
|
|
9
9
|
import { CustomItem } from '../Item';
|
|
10
10
|
|
|
@@ -22,13 +22,13 @@ var Header = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
22
22
|
fontSize: headingSizes.h400.size,
|
|
23
23
|
letterSpacing: '-0.003em',
|
|
24
24
|
fontWeight: 600,
|
|
25
|
-
color:
|
|
25
|
+
color: "var(--ds-text, ".concat(N500, ")")
|
|
26
26
|
}), _defineProperty(_ref, 'div&:hover', {
|
|
27
27
|
backgroundColor: 'transparent',
|
|
28
28
|
cursor: 'default'
|
|
29
29
|
}), _defineProperty(_ref, 'div&:active', {
|
|
30
30
|
backgroundColor: 'transparent',
|
|
31
|
-
color:
|
|
31
|
+
color: "var(--ds-text, ".concat(N500, ")")
|
|
32
32
|
}), _ref;
|
|
33
33
|
}, props.cssFn);
|
|
34
34
|
return /*#__PURE__*/React.createElement(CustomItem, _extends({}, props, {
|
|
@@ -39,7 +39,7 @@ var Header = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
39
39
|
Title: {
|
|
40
40
|
render: function render(_, _ref2) {
|
|
41
41
|
var children = _ref2.children,
|
|
42
|
-
props = _objectWithoutProperties(_ref2,
|
|
42
|
+
props = _objectWithoutProperties(_ref2, _excluded);
|
|
43
43
|
|
|
44
44
|
return /*#__PURE__*/React.createElement("h2", props, children);
|
|
45
45
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["cssFn"];
|
|
3
4
|
import React, { forwardRef } from 'react';
|
|
4
5
|
import { ButtonItem as Button } from '@atlaskit/menu';
|
|
5
6
|
import { baseSideNavItemStyle, overrideStyleFunction } from '../../common/styles';
|
|
@@ -7,7 +8,7 @@ import { useShouldNestedElementRender } from '../NestableNavigationContent/conte
|
|
|
7
8
|
var ButtonItem = /*#__PURE__*/forwardRef( // Type needed on props to extract types with extract react types.
|
|
8
9
|
function (_ref, ref) {
|
|
9
10
|
var cssFn = _ref.cssFn,
|
|
10
|
-
rest = _objectWithoutProperties(_ref,
|
|
11
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
11
12
|
|
|
12
13
|
var _useShouldNestedEleme = useShouldNestedElementRender(),
|
|
13
14
|
shouldRender = _useShouldNestedEleme.shouldRender;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["cssFn"];
|
|
3
4
|
import React, { forwardRef } from 'react';
|
|
4
5
|
import { CustomItem as Custom } from '@atlaskit/menu';
|
|
5
6
|
import { baseSideNavItemStyle, overrideStyleFunction } from '../../common/styles';
|
|
@@ -12,7 +13,7 @@ import { useShouldNestedElementRender } from '../NestableNavigationContent/conte
|
|
|
12
13
|
var CustomItem = /*#__PURE__*/forwardRef( // Type needed on props to extract types with extract react types.
|
|
13
14
|
function (_ref, ref) {
|
|
14
15
|
var cssFn = _ref.cssFn,
|
|
15
|
-
rest = _objectWithoutProperties(_ref,
|
|
16
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
16
17
|
|
|
17
18
|
var _useShouldNestedEleme = useShouldNestedElementRender(),
|
|
18
19
|
shouldRender = _useShouldNestedEleme.shouldRender;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
+
var _excluded = ["cssFn", "iconBefore", "onClick", "isSelected"];
|
|
4
5
|
import React, { forwardRef, useCallback, useState } from 'react';
|
|
5
6
|
import LeftArrow from '@atlaskit/icon/glyph/arrow-left-circle';
|
|
6
7
|
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: "var(--ds-surface, ".concat(N10, ")"),
|
|
14
14
|
label: ""
|
|
15
15
|
}) : _ref$iconBefore,
|
|
16
16
|
onClick = _ref.onClick,
|
|
17
17
|
isSelected = _ref.isSelected,
|
|
18
|
-
rest = _objectWithoutProperties(_ref,
|
|
18
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
19
19
|
|
|
20
20
|
var _useState = useState(false),
|
|
21
21
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["cssFn"];
|
|
3
4
|
import React, { forwardRef } from 'react';
|
|
4
5
|
import { LinkItem as Link } from '@atlaskit/menu';
|
|
5
6
|
import { baseSideNavItemStyle, overrideStyleFunction } from '../../common/styles';
|
|
@@ -7,7 +8,7 @@ import { useShouldNestedElementRender } from '../NestableNavigationContent/conte
|
|
|
7
8
|
var LinkItem = /*#__PURE__*/forwardRef( // Type needed on props to extract types with extract react types.
|
|
8
9
|
function (_ref, ref) {
|
|
9
10
|
var cssFn = _ref.cssFn,
|
|
10
|
-
rest = _objectWithoutProperties(_ref,
|
|
11
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
11
12
|
|
|
12
13
|
var _useShouldNestedEleme = useShouldNestedElementRender(),
|
|
13
14
|
shouldRender = _useShouldNestedEleme.shouldRender;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
|
|
3
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
4
|
|
|
5
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
5
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
|
|
7
7
|
import { N10, N30 } from '@atlaskit/theme/colors';
|
|
8
8
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
9
9
|
import { headingSizes } from '@atlaskit/theme/typography';
|
|
10
|
-
import { token } from '@atlaskit/tokens';
|
|
11
10
|
import { VAR_SCROLL_INDICATOR_COLOR, VAR_SEPARATOR_COLOR } from '../../common/constants';
|
|
12
11
|
var scrollIndicatorMaskZIndex = 2;
|
|
13
12
|
var scrollIndicatorZIndex = 1;
|
|
@@ -46,7 +45,7 @@ export var outerContainerCSS = function outerContainerCSS(opts) {
|
|
|
46
45
|
right: containerPadding + opts.scrollbarWidth,
|
|
47
46
|
height: scrollIndicatorHeight,
|
|
48
47
|
borderRadius: scrollIndicatorBorderRadius,
|
|
49
|
-
backgroundColor: "var(".concat(VAR_SEPARATOR_COLOR, ", ").concat(
|
|
48
|
+
backgroundColor: "var(".concat(VAR_SEPARATOR_COLOR, ", ").concat("var(--ds-border, ".concat(N30, ")"), ")"),
|
|
50
49
|
position: 'absolute',
|
|
51
50
|
zIndex: scrollIndicatorZIndex
|
|
52
51
|
},
|
|
@@ -61,7 +60,7 @@ export var outerContainerCSS = function outerContainerCSS(opts) {
|
|
|
61
60
|
right: containerPadding + opts.scrollbarWidth,
|
|
62
61
|
bottom: 0,
|
|
63
62
|
zIndex: scrollIndicatorZIndex,
|
|
64
|
-
backgroundColor: "var(".concat(VAR_SEPARATOR_COLOR, ", ").concat(
|
|
63
|
+
backgroundColor: "var(".concat(VAR_SEPARATOR_COLOR, ", ").concat("var(--ds-border, ".concat(N30, ")"), ")")
|
|
65
64
|
}
|
|
66
65
|
};
|
|
67
66
|
};
|
|
@@ -86,7 +85,7 @@ export var innerContainerCSS = function innerContainerCSS(opts) {
|
|
|
86
85
|
left: 0,
|
|
87
86
|
right: 0,
|
|
88
87
|
height: scrollIndicatorHeight,
|
|
89
|
-
backgroundColor: "var(".concat(VAR_SCROLL_INDICATOR_COLOR, ", ").concat(
|
|
88
|
+
backgroundColor: "var(".concat(VAR_SCROLL_INDICATOR_COLOR, ", ").concat("var(--ds-surface, ".concat(N10, ")"), ")"),
|
|
90
89
|
position: 'absolute',
|
|
91
90
|
display: 'block',
|
|
92
91
|
zIndex: scrollIndicatorMaskZIndex
|
|
@@ -104,7 +103,7 @@ export var innerContainerCSS = function innerContainerCSS(opts) {
|
|
|
104
103
|
marginTop: 'auto',
|
|
105
104
|
position: 'relative',
|
|
106
105
|
zIndex: scrollIndicatorMaskZIndex,
|
|
107
|
-
backgroundColor: "var(".concat(VAR_SCROLL_INDICATOR_COLOR, ", ").concat(
|
|
106
|
+
backgroundColor: "var(".concat(VAR_SCROLL_INDICATOR_COLOR, ", ").concat("var(--ds-surface, ".concat(N10, ")"), ")")
|
|
108
107
|
}
|
|
109
108
|
});
|
|
110
109
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
|
|
3
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
4
|
|
|
5
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
5
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
|
|
7
7
|
/** @jsx jsx */
|
|
8
8
|
import { jsx } from '@emotion/core';
|
|
@@ -3,10 +3,11 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
4
4
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
5
5
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
6
|
+
var _excluded = ["children", "iconAfter", "title", "onClick", "cssFn", "isSelected", "id", "component", "testId"];
|
|
6
7
|
|
|
7
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
8
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
8
9
|
|
|
9
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
10
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
10
11
|
|
|
11
12
|
/** @jsx jsx */
|
|
12
13
|
import React, { Fragment, useCallback, useMemo, useState } from 'react';
|
|
@@ -14,7 +15,6 @@ import { jsx } from '@emotion/core';
|
|
|
14
15
|
import RightArrow from '@atlaskit/icon/glyph/arrow-right-circle';
|
|
15
16
|
import { N10 } from '@atlaskit/theme/colors';
|
|
16
17
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
17
|
-
import { token } from '@atlaskit/tokens';
|
|
18
18
|
import { overrideStyleFunction } from '../../common/styles';
|
|
19
19
|
import { ButtonItem, CustomItem, NavigationContent } from '../index';
|
|
20
20
|
import { ROOT_ID } from '../NestableNavigationContent';
|
|
@@ -36,7 +36,7 @@ var NestingItem = function NestingItem(props) {
|
|
|
36
36
|
id = props.id,
|
|
37
37
|
component = props.component,
|
|
38
38
|
testId = props.testId,
|
|
39
|
-
rest = _objectWithoutProperties(props,
|
|
39
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
40
40
|
|
|
41
41
|
var _useNestedContext = useNestedContext(),
|
|
42
42
|
currentStackId = _useNestedContext.currentStackId,
|
|
@@ -120,7 +120,7 @@ var NestingItem = function NestingItem(props) {
|
|
|
120
120
|
"data-right-arrow": true
|
|
121
121
|
}, jsx(RightArrow, {
|
|
122
122
|
testId: testId && "".concat(testId, "--item--right-arrow"),
|
|
123
|
-
secondaryColor:
|
|
123
|
+
secondaryColor: "var(--ds-surface, ".concat(N10, ")"),
|
|
124
124
|
label: ""
|
|
125
125
|
}))),
|
|
126
126
|
onClick: onClickHandler,
|
|
@@ -2,9 +2,9 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
|
|
3
3
|
var _enabledCSS, _disabledCSS;
|
|
4
4
|
|
|
5
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
5
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6
6
|
|
|
7
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
7
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8
8
|
|
|
9
9
|
// exposed for testing purposes
|
|
10
10
|
export var enabledCSS = (_enabledCSS = {}, _defineProperty(_enabledCSS, '&:hover [data-custom-icon]', {
|
|
@@ -3,7 +3,6 @@ import { forwardRef } from 'react';
|
|
|
3
3
|
import { jsx } from '@emotion/core';
|
|
4
4
|
import { N10, N500 } from '@atlaskit/theme/colors';
|
|
5
5
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
6
|
-
import { token } from '@atlaskit/tokens';
|
|
7
6
|
var SideNavigation = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
8
7
|
var children = props.children,
|
|
9
8
|
testId = props.testId,
|
|
@@ -15,9 +14,9 @@ var SideNavigation = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
15
14
|
css: {
|
|
16
15
|
width: '100%',
|
|
17
16
|
height: '100%',
|
|
18
|
-
color:
|
|
17
|
+
color: "var(--ds-text-subtle, ".concat(N500, ")"),
|
|
19
18
|
minWidth: gridSize() * 30,
|
|
20
|
-
backgroundColor:
|
|
19
|
+
backgroundColor: "var(--ds-surface, ".concat(N10, ")"),
|
|
21
20
|
position: 'relative',
|
|
22
21
|
display: 'flex',
|
|
23
22
|
flexDirection: 'column',
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/side-navigation",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "A highly composable side navigation component that supports nested views.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -24,11 +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.10.0",
|
|
28
|
+
"@atlaskit/menu": "^1.2.0",
|
|
29
29
|
"@atlaskit/motion": "^1.0.0",
|
|
30
|
-
"@atlaskit/theme": "^12.
|
|
31
|
-
"@atlaskit/tokens": "^0.
|
|
30
|
+
"@atlaskit/theme": "^12.1.0",
|
|
31
|
+
"@atlaskit/tokens": "^0.6.0",
|
|
32
32
|
"@babel/runtime": "^7.0.0",
|
|
33
33
|
"@emotion/core": "^10.0.9"
|
|
34
34
|
},
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"react": "^16.8.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@atlaskit/atlassian-navigation": "^
|
|
39
|
+
"@atlaskit/atlassian-navigation": "^2.0.0",
|
|
40
40
|
"@atlaskit/button": "^16.0.0",
|
|
41
41
|
"@atlaskit/docs": "*",
|
|
42
42
|
"@atlaskit/logo": "^13.5.0",
|
|
43
|
-
"@atlaskit/onboarding": "^10.
|
|
43
|
+
"@atlaskit/onboarding": "^10.3.0",
|
|
44
44
|
"@atlaskit/section-message": "^6.0.0",
|
|
45
45
|
"@atlaskit/select": "^15.2.0",
|
|
46
46
|
"@atlaskit/visual-regression": "*",
|