@atlaskit/side-navigation 3.6.5 → 3.6.6
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
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/side-navigation
|
|
2
2
|
|
|
3
|
+
## 3.6.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#178053](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/178053)
|
|
8
|
+
[`cb318c8c28c26`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cb318c8c28c26) -
|
|
9
|
+
Internal changes to typography.
|
|
10
|
+
|
|
3
11
|
## 3.6.5
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -68,19 +68,18 @@ var Container = exports.Container = function Container(_ref) {
|
|
|
68
68
|
*/
|
|
69
69
|
var Header = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
70
70
|
var cssFn = (0, _styles.overrideStyleFunction)(function () {
|
|
71
|
-
|
|
72
|
-
return _ref3 = {
|
|
71
|
+
return (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({
|
|
73
72
|
userSelect: 'auto'
|
|
74
|
-
},
|
|
73
|
+
}, '[data-item-title]', {
|
|
75
74
|
font: "var(--ds-font-heading-xsmall, normal 600 14px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
76
75
|
color: "var(--ds-text, ".concat(_colors.N500, ")")
|
|
77
|
-
}),
|
|
76
|
+
}), 'div&:hover', {
|
|
78
77
|
backgroundColor: "var(--ds-background-neutral-subtle, transparent)",
|
|
79
78
|
cursor: 'default'
|
|
80
|
-
}),
|
|
79
|
+
}), 'div&:active', {
|
|
81
80
|
backgroundColor: "var(--ds-background-neutral-subtle, transparent)",
|
|
82
81
|
color: "var(--ds-text, ".concat(_colors.N500, ")")
|
|
83
|
-
})
|
|
82
|
+
});
|
|
84
83
|
}, props.cssFn);
|
|
85
84
|
return (0, _react2.jsx)(_Item.CustomItem, (0, _extends2.default)({}, props, {
|
|
86
85
|
ref: ref,
|
|
@@ -6,32 +6,31 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.nestingItemStyle = exports.enabledCSS = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var _enabledCSS, _disabledCSS;
|
|
10
9
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11
10
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12
11
|
// exposed for testing purposes
|
|
13
|
-
var enabledCSS = exports.enabledCSS = (
|
|
12
|
+
var enabledCSS = exports.enabledCSS = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, '&:hover [data-custom-icon]', {
|
|
14
13
|
display: 'none'
|
|
15
|
-
}),
|
|
14
|
+
}), '&:active [data-custom-icon]', {
|
|
16
15
|
display: 'none'
|
|
17
|
-
}),
|
|
16
|
+
}), '&:focus [data-custom-icon]', {
|
|
18
17
|
display: 'none'
|
|
19
|
-
}),
|
|
18
|
+
}), '& [data-custom-icon]', {
|
|
20
19
|
display: 'inherit'
|
|
21
|
-
}),
|
|
20
|
+
}), '&:hover [data-right-arrow]', {
|
|
22
21
|
display: 'inherit'
|
|
23
|
-
}),
|
|
22
|
+
}), '&:active [data-right-arrow]', {
|
|
24
23
|
display: 'inherit'
|
|
25
|
-
}),
|
|
24
|
+
}), '&:focus [data-right-arrow]', {
|
|
26
25
|
display: 'inherit'
|
|
27
|
-
}),
|
|
26
|
+
}), '& [data-right-arrow]', {
|
|
28
27
|
display: 'none'
|
|
29
|
-
})
|
|
30
|
-
var disabledCSS = (
|
|
28
|
+
});
|
|
29
|
+
var disabledCSS = (0, _defineProperty2.default)((0, _defineProperty2.default)({}, '[data-item-elem-after]', {
|
|
31
30
|
opacity: 0
|
|
32
|
-
}),
|
|
31
|
+
}), '& [data-right-arrow]', {
|
|
33
32
|
display: 'none'
|
|
34
|
-
})
|
|
33
|
+
});
|
|
35
34
|
var nestingItemStyle = exports.nestingItemStyle = function nestingItemStyle(state) {
|
|
36
35
|
return _objectSpread({}, state.isDisabled ? disabledCSS : enabledCSS);
|
|
37
36
|
};
|
|
@@ -62,19 +62,18 @@ export var Container = function Container(_ref) {
|
|
|
62
62
|
*/
|
|
63
63
|
var Header = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
64
64
|
var cssFn = overrideStyleFunction(function () {
|
|
65
|
-
|
|
66
|
-
return _ref3 = {
|
|
65
|
+
return _defineProperty(_defineProperty(_defineProperty({
|
|
67
66
|
userSelect: 'auto'
|
|
68
|
-
},
|
|
67
|
+
}, '[data-item-title]', {
|
|
69
68
|
font: "var(--ds-font-heading-xsmall, normal 600 14px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
70
69
|
color: "var(--ds-text, ".concat(N500, ")")
|
|
71
|
-
}),
|
|
70
|
+
}), 'div&:hover', {
|
|
72
71
|
backgroundColor: "var(--ds-background-neutral-subtle, transparent)",
|
|
73
72
|
cursor: 'default'
|
|
74
|
-
}),
|
|
73
|
+
}), 'div&:active', {
|
|
75
74
|
backgroundColor: "var(--ds-background-neutral-subtle, transparent)",
|
|
76
75
|
color: "var(--ds-text, ".concat(N500, ")")
|
|
77
|
-
})
|
|
76
|
+
});
|
|
78
77
|
}, props.cssFn);
|
|
79
78
|
return jsx(CustomItem, _extends({}, props, {
|
|
80
79
|
ref: ref,
|
|
@@ -1,30 +1,29 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
var _enabledCSS, _disabledCSS;
|
|
3
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
4
|
// exposed for testing purposes
|
|
6
|
-
export var enabledCSS = (
|
|
5
|
+
export var enabledCSS = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, '&:hover [data-custom-icon]', {
|
|
7
6
|
display: 'none'
|
|
8
|
-
}),
|
|
7
|
+
}), '&:active [data-custom-icon]', {
|
|
9
8
|
display: 'none'
|
|
10
|
-
}),
|
|
9
|
+
}), '&:focus [data-custom-icon]', {
|
|
11
10
|
display: 'none'
|
|
12
|
-
}),
|
|
11
|
+
}), '& [data-custom-icon]', {
|
|
13
12
|
display: 'inherit'
|
|
14
|
-
}),
|
|
13
|
+
}), '&:hover [data-right-arrow]', {
|
|
15
14
|
display: 'inherit'
|
|
16
|
-
}),
|
|
15
|
+
}), '&:active [data-right-arrow]', {
|
|
17
16
|
display: 'inherit'
|
|
18
|
-
}),
|
|
17
|
+
}), '&:focus [data-right-arrow]', {
|
|
19
18
|
display: 'inherit'
|
|
20
|
-
}),
|
|
19
|
+
}), '& [data-right-arrow]', {
|
|
21
20
|
display: 'none'
|
|
22
|
-
})
|
|
23
|
-
var disabledCSS = (
|
|
21
|
+
});
|
|
22
|
+
var disabledCSS = _defineProperty(_defineProperty({}, '[data-item-elem-after]', {
|
|
24
23
|
opacity: 0
|
|
25
|
-
}),
|
|
24
|
+
}), '& [data-right-arrow]', {
|
|
26
25
|
display: 'none'
|
|
27
|
-
})
|
|
26
|
+
});
|
|
28
27
|
export var nestingItemStyle = function nestingItemStyle(state) {
|
|
29
28
|
return _objectSpread({}, state.isDisabled ? disabledCSS : enabledCSS);
|
|
30
29
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/side-navigation",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.6",
|
|
4
4
|
"description": "A highly composable side navigation component that supports nested views.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@atlaskit/ds-lib": "^3.3.0",
|
|
36
|
-
"@atlaskit/icon": "^23.
|
|
36
|
+
"@atlaskit/icon": "^23.1.0",
|
|
37
37
|
"@atlaskit/menu": "^2.13.0",
|
|
38
38
|
"@atlaskit/motion": "^1.9.0",
|
|
39
39
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|