@atlaskit/side-navigation 10.0.0 → 11.0.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 +33 -0
- package/dist/cjs/components/Item/skeleton-item.js +2 -17
- package/dist/cjs/components/Section/heading-item.js +5 -5
- package/dist/cjs/components/Section/skeleton-heading-item.compiled.css +1 -0
- package/dist/cjs/components/Section/skeleton-heading-item.js +9 -10
- package/dist/es2019/components/Item/skeleton-item.js +2 -13
- package/dist/es2019/components/Section/heading-item.js +5 -7
- package/dist/es2019/components/Section/skeleton-heading-item.compiled.css +1 -0
- package/dist/es2019/components/Section/skeleton-heading-item.js +9 -7
- package/dist/esm/components/Item/skeleton-item.js +2 -17
- package/dist/esm/components/Section/heading-item.js +5 -5
- package/dist/esm/components/Section/skeleton-heading-item.compiled.css +1 -0
- package/dist/esm/components/Section/skeleton-heading-item.js +9 -10
- package/dist/types/components/Section/heading-item.d.ts +1 -1
- package/dist/types-ts4.5/components/Section/heading-item.d.ts +1 -1
- package/package.json +11 -11
- package/dist/cjs/common/styles.js +0 -26
- package/dist/es2019/common/styles.js +0 -17
- package/dist/esm/common/styles.js +0 -20
- package/dist/types/common/styles.d.ts +0 -10
- package/dist/types-ts4.5/common/styles.d.ts +0 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# @atlaskit/side-navigation
|
|
2
2
|
|
|
3
|
+
## 11.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#157531](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/157531)
|
|
8
|
+
[`dd1068010784d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/dd1068010784d) -
|
|
9
|
+
Migrated `SkeletonItem` and `SkeletonHeadingItem` components from @emotion/react to
|
|
10
|
+
@compiled/react in order toimprove performance, align with the rest of the Atlaskit techstack, and
|
|
11
|
+
support React 18 StreamingSSR.
|
|
12
|
+
|
|
13
|
+
Removed the `cssFn` prop from the `SkeletonItem` and `SkeletonHeadingItem` components.
|
|
14
|
+
Customization can now be applied via the new `xcss` prop. This allows for safe/bounded style
|
|
15
|
+
overrides.
|
|
16
|
+
|
|
17
|
+
Removed the following types related to the `cssFn` prop: `CSSFn`, `StatelessCSSFn`, `ItemState`.
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
23
|
+
## 10.1.0
|
|
24
|
+
|
|
25
|
+
### Minor Changes
|
|
26
|
+
|
|
27
|
+
- [#157071](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/157071)
|
|
28
|
+
[`a149a0b1559ec`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a149a0b1559ec) -
|
|
29
|
+
We are testing the migration to the ADS Link component behind a feature flag. If this fix is
|
|
30
|
+
successful it will be available in a later release.
|
|
31
|
+
|
|
32
|
+
### Patch Changes
|
|
33
|
+
|
|
34
|
+
- Updated dependencies
|
|
35
|
+
|
|
3
36
|
## 10.0.0
|
|
4
37
|
|
|
5
38
|
### Major Changes
|
|
@@ -6,13 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
9
|
var _react = _interopRequireDefault(require("react"));
|
|
11
10
|
var _menu = require("@atlaskit/menu");
|
|
12
|
-
var _styles = require("../../common/styles");
|
|
13
11
|
var _context = require("../NestableNavigationContent/context");
|
|
14
|
-
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; }
|
|
15
|
-
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; }
|
|
16
12
|
/**
|
|
17
13
|
* __Skeleton item__
|
|
18
14
|
*
|
|
@@ -27,19 +23,8 @@ var SkeletonItem = function SkeletonItem(props) {
|
|
|
27
23
|
if (!shouldRender) {
|
|
28
24
|
return null;
|
|
29
25
|
}
|
|
30
|
-
return /*#__PURE__*/_react.default.createElement(_menu.SkeletonItem
|
|
31
|
-
|
|
32
|
-
, (0, _extends2.default)({
|
|
33
|
-
cssFn: function cssFn() {
|
|
34
|
-
return _objectSpread(_objectSpread({}, (0, _styles.sectionHeaderSpacingStyles)()), {}, {
|
|
35
|
-
// This doubles up & to get a higher specificity as well as to not overwite the base styles.
|
|
36
|
-
'&&::before': {
|
|
37
|
-
height: '1.5rem',
|
|
38
|
-
marginRight: "var(--ds-space-200, 16px)",
|
|
39
|
-
width: '1.5rem'
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
}
|
|
26
|
+
return /*#__PURE__*/_react.default.createElement(_menu.SkeletonItem, (0, _extends2.default)({
|
|
27
|
+
isSideNavSkeleton: true
|
|
43
28
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
44
29
|
}, props));
|
|
45
30
|
};
|
|
@@ -11,10 +11,8 @@ require("./heading-item.compiled.css");
|
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _runtime = require("@compiled/react/runtime");
|
|
13
13
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
14
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
15
14
|
var _menu = require("@atlaskit/menu");
|
|
16
15
|
var _context = require("../NestableNavigationContent/context");
|
|
17
|
-
var _excluded = ["className"];
|
|
18
16
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
19
17
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
20
18
|
var styles = {
|
|
@@ -27,14 +25,16 @@ var styles = {
|
|
|
27
25
|
* Available for advanced use cases, for most situations providing a `title` to `section` should be enough.
|
|
28
26
|
*
|
|
29
27
|
*/
|
|
30
|
-
var HeadingItem = function HeadingItem(
|
|
31
|
-
var UNSAFE_className = _ref.className,
|
|
32
|
-
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
28
|
+
var HeadingItem = function HeadingItem(props) {
|
|
33
29
|
var _useShouldNestedEleme = (0, _context.useShouldNestedElementRender)(),
|
|
34
30
|
shouldRender = _useShouldNestedEleme.shouldRender;
|
|
35
31
|
if (!shouldRender) {
|
|
36
32
|
return null;
|
|
37
33
|
}
|
|
34
|
+
|
|
35
|
+
// @ts-expect-error - Although this isn't defined on props it is available because we've used
|
|
36
|
+
// spread props below and on the jsx element in MenuHeadingItem.
|
|
37
|
+
var UNSAFE_className = props.className;
|
|
38
38
|
return /*#__PURE__*/React.createElement(_menu.HeadingItem
|
|
39
39
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props, @repo/internal/react/no-unsafe-overrides
|
|
40
40
|
, (0, _extends2.default)({}, props, {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._18zru2gc{padding-inline:var(--ds-space-100,8px)}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* skeleton-heading-item.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -5,14 +6,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.default = void 0;
|
|
9
|
+
require("./skeleton-heading-item.compiled.css");
|
|
10
|
+
var _runtime = require("@compiled/react/runtime");
|
|
8
11
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
12
|
var _react = _interopRequireDefault(require("react"));
|
|
11
13
|
var _menu = require("@atlaskit/menu");
|
|
12
|
-
var _styles = require("../../common/styles");
|
|
13
14
|
var _context = require("../NestableNavigationContent/context");
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
var styles = {
|
|
16
|
+
root: "_18zru2gc"
|
|
17
|
+
};
|
|
18
|
+
|
|
16
19
|
/**
|
|
17
20
|
* __Skeleton heading item__
|
|
18
21
|
*
|
|
@@ -26,12 +29,8 @@ var SkeletonHeadingItem = function SkeletonHeadingItem(props) {
|
|
|
26
29
|
if (!shouldRender) {
|
|
27
30
|
return null;
|
|
28
31
|
}
|
|
29
|
-
return /*#__PURE__*/_react.default.createElement(_menu.SkeletonHeadingItem
|
|
30
|
-
|
|
31
|
-
, (0, _extends2.default)({
|
|
32
|
-
cssFn: function cssFn() {
|
|
33
|
-
return _objectSpread({}, (0, _styles.sectionHeaderSpacingStyles)());
|
|
34
|
-
}
|
|
32
|
+
return /*#__PURE__*/_react.default.createElement(_menu.SkeletonHeadingItem, (0, _extends2.default)({
|
|
33
|
+
xcss: styles.root
|
|
35
34
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
36
35
|
}, props));
|
|
37
36
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { SkeletonItem as SkelItem } from '@atlaskit/menu';
|
|
4
|
-
import { sectionHeaderSpacingStyles } from '../../common/styles';
|
|
5
4
|
import { useShouldNestedElementRender } from '../NestableNavigationContent/context';
|
|
6
5
|
/**
|
|
7
6
|
* __Skeleton item__
|
|
@@ -18,18 +17,8 @@ const SkeletonItem = props => {
|
|
|
18
17
|
if (!shouldRender) {
|
|
19
18
|
return null;
|
|
20
19
|
}
|
|
21
|
-
return /*#__PURE__*/React.createElement(SkelItem
|
|
22
|
-
|
|
23
|
-
, _extends({
|
|
24
|
-
cssFn: () => ({
|
|
25
|
-
...sectionHeaderSpacingStyles(),
|
|
26
|
-
// This doubles up & to get a higher specificity as well as to not overwite the base styles.
|
|
27
|
-
'&&::before': {
|
|
28
|
-
height: '1.5rem',
|
|
29
|
-
marginRight: "var(--ds-space-200, 16px)",
|
|
30
|
-
width: '1.5rem'
|
|
31
|
-
}
|
|
32
|
-
})
|
|
20
|
+
return /*#__PURE__*/React.createElement(SkelItem, _extends({
|
|
21
|
+
isSideNavSkeleton: true
|
|
33
22
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
34
23
|
}, props));
|
|
35
24
|
};
|
|
@@ -15,19 +15,17 @@ const styles = {
|
|
|
15
15
|
* Available for advanced use cases, for most situations providing a `title` to `section` should be enough.
|
|
16
16
|
*
|
|
17
17
|
*/
|
|
18
|
-
const HeadingItem =
|
|
19
|
-
// @ts-expect-error
|
|
20
|
-
// Although this isn't defined on props it is available because we've used
|
|
21
|
-
// Spread props below and on the jsx element in MenuHeadingItem.
|
|
22
|
-
className: UNSAFE_className,
|
|
23
|
-
...props
|
|
24
|
-
}) => {
|
|
18
|
+
const HeadingItem = props => {
|
|
25
19
|
const {
|
|
26
20
|
shouldRender
|
|
27
21
|
} = useShouldNestedElementRender();
|
|
28
22
|
if (!shouldRender) {
|
|
29
23
|
return null;
|
|
30
24
|
}
|
|
25
|
+
|
|
26
|
+
// @ts-expect-error - Although this isn't defined on props it is available because we've used
|
|
27
|
+
// spread props below and on the jsx element in MenuHeadingItem.
|
|
28
|
+
const UNSAFE_className = props.className;
|
|
31
29
|
return /*#__PURE__*/React.createElement(MenuHeadingItem
|
|
32
30
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props, @repo/internal/react/no-unsafe-overrides
|
|
33
31
|
, _extends({}, props, {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._18zru2gc{padding-inline:var(--ds-space-100,8px)}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
+
/* skeleton-heading-item.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
1
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import "./skeleton-heading-item.compiled.css";
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
2
5
|
import React from 'react';
|
|
3
6
|
import { SkeletonHeadingItem as MenuSkeletonHeadingItem } from '@atlaskit/menu';
|
|
4
|
-
import { sectionHeaderSpacingStyles } from '../../common/styles';
|
|
5
7
|
import { useShouldNestedElementRender } from '../NestableNavigationContent/context';
|
|
8
|
+
const styles = {
|
|
9
|
+
root: "_18zru2gc"
|
|
10
|
+
};
|
|
11
|
+
|
|
6
12
|
/**
|
|
7
13
|
* __Skeleton heading item__
|
|
8
14
|
*
|
|
@@ -17,12 +23,8 @@ const SkeletonHeadingItem = props => {
|
|
|
17
23
|
if (!shouldRender) {
|
|
18
24
|
return null;
|
|
19
25
|
}
|
|
20
|
-
return /*#__PURE__*/React.createElement(MenuSkeletonHeadingItem
|
|
21
|
-
|
|
22
|
-
, _extends({
|
|
23
|
-
cssFn: () => ({
|
|
24
|
-
...sectionHeaderSpacingStyles()
|
|
25
|
-
})
|
|
26
|
+
return /*#__PURE__*/React.createElement(MenuSkeletonHeadingItem, _extends({
|
|
27
|
+
xcss: styles.root
|
|
26
28
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
27
29
|
}, props));
|
|
28
30
|
};
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
-
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
|
-
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
2
|
import React from 'react';
|
|
6
3
|
import { SkeletonItem as SkelItem } from '@atlaskit/menu';
|
|
7
|
-
import { sectionHeaderSpacingStyles } from '../../common/styles';
|
|
8
4
|
import { useShouldNestedElementRender } from '../NestableNavigationContent/context';
|
|
9
5
|
/**
|
|
10
6
|
* __Skeleton item__
|
|
@@ -20,19 +16,8 @@ var SkeletonItem = function SkeletonItem(props) {
|
|
|
20
16
|
if (!shouldRender) {
|
|
21
17
|
return null;
|
|
22
18
|
}
|
|
23
|
-
return /*#__PURE__*/React.createElement(SkelItem
|
|
24
|
-
|
|
25
|
-
, _extends({
|
|
26
|
-
cssFn: function cssFn() {
|
|
27
|
-
return _objectSpread(_objectSpread({}, sectionHeaderSpacingStyles()), {}, {
|
|
28
|
-
// This doubles up & to get a higher specificity as well as to not overwite the base styles.
|
|
29
|
-
'&&::before': {
|
|
30
|
-
height: '1.5rem',
|
|
31
|
-
marginRight: "var(--ds-space-200, 16px)",
|
|
32
|
-
width: '1.5rem'
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
}
|
|
19
|
+
return /*#__PURE__*/React.createElement(SkelItem, _extends({
|
|
20
|
+
isSideNavSkeleton: true
|
|
36
21
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
37
22
|
}, props));
|
|
38
23
|
};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/* heading-item.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
-
var _excluded = ["className"];
|
|
5
3
|
import "./heading-item.compiled.css";
|
|
6
4
|
import * as React from 'react';
|
|
7
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -17,14 +15,16 @@ var styles = {
|
|
|
17
15
|
* Available for advanced use cases, for most situations providing a `title` to `section` should be enough.
|
|
18
16
|
*
|
|
19
17
|
*/
|
|
20
|
-
var HeadingItem = function HeadingItem(
|
|
21
|
-
var UNSAFE_className = _ref.className,
|
|
22
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
18
|
+
var HeadingItem = function HeadingItem(props) {
|
|
23
19
|
var _useShouldNestedEleme = useShouldNestedElementRender(),
|
|
24
20
|
shouldRender = _useShouldNestedEleme.shouldRender;
|
|
25
21
|
if (!shouldRender) {
|
|
26
22
|
return null;
|
|
27
23
|
}
|
|
24
|
+
|
|
25
|
+
// @ts-expect-error - Although this isn't defined on props it is available because we've used
|
|
26
|
+
// spread props below and on the jsx element in MenuHeadingItem.
|
|
27
|
+
var UNSAFE_className = props.className;
|
|
28
28
|
return /*#__PURE__*/React.createElement(MenuHeadingItem
|
|
29
29
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props, @repo/internal/react/no-unsafe-overrides
|
|
30
30
|
, _extends({}, props, {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._18zru2gc{padding-inline:var(--ds-space-100,8px)}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
/* skeleton-heading-item.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
1
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
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; }
|
|
3
|
+
import "./skeleton-heading-item.compiled.css";
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { SkeletonHeadingItem as MenuSkeletonHeadingItem } from '@atlaskit/menu';
|
|
7
|
-
import { sectionHeaderSpacingStyles } from '../../common/styles';
|
|
8
7
|
import { useShouldNestedElementRender } from '../NestableNavigationContent/context';
|
|
8
|
+
var styles = {
|
|
9
|
+
root: "_18zru2gc"
|
|
10
|
+
};
|
|
11
|
+
|
|
9
12
|
/**
|
|
10
13
|
* __Skeleton heading item__
|
|
11
14
|
*
|
|
@@ -19,12 +22,8 @@ var SkeletonHeadingItem = function SkeletonHeadingItem(props) {
|
|
|
19
22
|
if (!shouldRender) {
|
|
20
23
|
return null;
|
|
21
24
|
}
|
|
22
|
-
return /*#__PURE__*/React.createElement(MenuSkeletonHeadingItem
|
|
23
|
-
|
|
24
|
-
, _extends({
|
|
25
|
-
cssFn: function cssFn() {
|
|
26
|
-
return _objectSpread({}, sectionHeaderSpacingStyles());
|
|
27
|
-
}
|
|
25
|
+
return /*#__PURE__*/React.createElement(MenuSkeletonHeadingItem, _extends({
|
|
26
|
+
xcss: styles.root
|
|
28
27
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
29
28
|
}, props));
|
|
30
29
|
};
|
|
@@ -11,5 +11,5 @@ export type { HeadingItemProps } from '@atlaskit/menu';
|
|
|
11
11
|
* Available for advanced use cases, for most situations providing a `title` to `section` should be enough.
|
|
12
12
|
*
|
|
13
13
|
*/
|
|
14
|
-
declare const HeadingItem: (
|
|
14
|
+
declare const HeadingItem: (props: HeadingItemProps) => JSX.Element | null;
|
|
15
15
|
export default HeadingItem;
|
|
@@ -11,5 +11,5 @@ export type { HeadingItemProps } from '@atlaskit/menu';
|
|
|
11
11
|
* Available for advanced use cases, for most situations providing a `title` to `section` should be enough.
|
|
12
12
|
*
|
|
13
13
|
*/
|
|
14
|
-
declare const HeadingItem: (
|
|
14
|
+
declare const HeadingItem: (props: HeadingItemProps) => JSX.Element | null;
|
|
15
15
|
export default HeadingItem;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/side-navigation",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0",
|
|
4
4
|
"description": "A highly composable side navigation component that supports nested views.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@atlaskit/css": "^0.10.0",
|
|
36
36
|
"@atlaskit/ds-lib": "^4.0.0",
|
|
37
|
-
"@atlaskit/icon": "^26.
|
|
38
|
-
"@atlaskit/menu": "^
|
|
37
|
+
"@atlaskit/icon": "^26.1.0",
|
|
38
|
+
"@atlaskit/menu": "^8.0.0",
|
|
39
39
|
"@atlaskit/motion": "^5.1.0",
|
|
40
40
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
41
|
-
"@atlaskit/primitives": "^14.
|
|
41
|
+
"@atlaskit/primitives": "^14.8.0",
|
|
42
42
|
"@atlaskit/theme": "^18.0.0",
|
|
43
|
-
"@atlaskit/tokens": "^4.
|
|
43
|
+
"@atlaskit/tokens": "^4.9.0",
|
|
44
44
|
"@babel/runtime": "^7.0.0",
|
|
45
45
|
"@compiled/react": "^0.18.3"
|
|
46
46
|
},
|
|
@@ -51,21 +51,21 @@
|
|
|
51
51
|
"@af/accessibility-testing": "workspace:^",
|
|
52
52
|
"@af/integration-testing": "workspace:^",
|
|
53
53
|
"@af/visual-regression": "workspace:^",
|
|
54
|
-
"@atlaskit/atlassian-navigation": "^5.
|
|
55
|
-
"@atlaskit/button": "^23.
|
|
54
|
+
"@atlaskit/atlassian-navigation": "^5.3.0",
|
|
55
|
+
"@atlaskit/button": "^23.2.0",
|
|
56
56
|
"@atlaskit/docs": "^10.0.0",
|
|
57
|
-
"@atlaskit/dropdown-menu": "^15.
|
|
57
|
+
"@atlaskit/dropdown-menu": "^15.2.0",
|
|
58
58
|
"@atlaskit/form": "^12.0.0",
|
|
59
59
|
"@atlaskit/image": "^3.0.0",
|
|
60
|
-
"@atlaskit/link": "^3.
|
|
60
|
+
"@atlaskit/link": "^3.2.0",
|
|
61
61
|
"@atlaskit/logo": "^18.0.0",
|
|
62
62
|
"@atlaskit/onboarding": "^14.1.0",
|
|
63
|
-
"@atlaskit/pragmatic-drag-and-drop": "^1.
|
|
63
|
+
"@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
|
|
64
64
|
"@atlaskit/pragmatic-drag-and-drop-live-region": "^1.3.0",
|
|
65
65
|
"@atlaskit/pragmatic-drag-and-drop-react-accessibility": "^2.0.0",
|
|
66
66
|
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^3.2.0",
|
|
67
67
|
"@atlaskit/section-message": "^8.2.0",
|
|
68
|
-
"@atlaskit/select": "^20.
|
|
68
|
+
"@atlaskit/select": "^20.6.0",
|
|
69
69
|
"@atlaskit/visual-regression": "workspace:^",
|
|
70
70
|
"@testing-library/react": "^13.4.0",
|
|
71
71
|
"raf-stub": "^2.0.1",
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.sectionHeaderSpacingStyles = exports.overrideStyleFunction = void 0;
|
|
7
|
-
/**
|
|
8
|
-
* Allows chaining of style functions on top of base style functions
|
|
9
|
-
* @param baseStyle the base custom cssFn
|
|
10
|
-
* @param newStyle a new cssFn to be applied after the base style
|
|
11
|
-
*
|
|
12
|
-
* @deprecated Please avoid using this prop as we intend to remove the prop completely in a future release. See DSP-2682 for more information.
|
|
13
|
-
*/
|
|
14
|
-
var overrideStyleFunction = exports.overrideStyleFunction = function overrideStyleFunction(baseStyle) {
|
|
15
|
-
var newStyle = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {
|
|
16
|
-
return {};
|
|
17
|
-
};
|
|
18
|
-
return function (state) {
|
|
19
|
-
return [baseStyle(state), newStyle(state)];
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
var sectionHeaderSpacingStyles = exports.sectionHeaderSpacingStyles = function sectionHeaderSpacingStyles() {
|
|
23
|
-
return {
|
|
24
|
-
paddingInline: "var(--ds-space-100, 8px)"
|
|
25
|
-
};
|
|
26
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Allows chaining of style functions on top of base style functions
|
|
3
|
-
* @param baseStyle the base custom cssFn
|
|
4
|
-
* @param newStyle a new cssFn to be applied after the base style
|
|
5
|
-
*
|
|
6
|
-
* @deprecated Please avoid using this prop as we intend to remove the prop completely in a future release. See DSP-2682 for more information.
|
|
7
|
-
*/
|
|
8
|
-
export const overrideStyleFunction = (baseStyle, newStyle = () => ({})) => {
|
|
9
|
-
return state => {
|
|
10
|
-
return [baseStyle(state), newStyle(state)];
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
export const sectionHeaderSpacingStyles = () => {
|
|
14
|
-
return {
|
|
15
|
-
paddingInline: "var(--ds-space-100, 8px)"
|
|
16
|
-
};
|
|
17
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Allows chaining of style functions on top of base style functions
|
|
3
|
-
* @param baseStyle the base custom cssFn
|
|
4
|
-
* @param newStyle a new cssFn to be applied after the base style
|
|
5
|
-
*
|
|
6
|
-
* @deprecated Please avoid using this prop as we intend to remove the prop completely in a future release. See DSP-2682 for more information.
|
|
7
|
-
*/
|
|
8
|
-
export var overrideStyleFunction = function overrideStyleFunction(baseStyle) {
|
|
9
|
-
var newStyle = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {
|
|
10
|
-
return {};
|
|
11
|
-
};
|
|
12
|
-
return function (state) {
|
|
13
|
-
return [baseStyle(state), newStyle(state)];
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export var sectionHeaderSpacingStyles = function sectionHeaderSpacingStyles() {
|
|
17
|
-
return {
|
|
18
|
-
paddingInline: "var(--ds-space-100, 8px)"
|
|
19
|
-
};
|
|
20
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type CSSFn, type StatelessCSSFn } from '@atlaskit/menu';
|
|
2
|
-
/**
|
|
3
|
-
* Allows chaining of style functions on top of base style functions
|
|
4
|
-
* @param baseStyle the base custom cssFn
|
|
5
|
-
* @param newStyle a new cssFn to be applied after the base style
|
|
6
|
-
*
|
|
7
|
-
* @deprecated Please avoid using this prop as we intend to remove the prop completely in a future release. See DSP-2682 for more information.
|
|
8
|
-
*/
|
|
9
|
-
export declare const overrideStyleFunction: <TState>(baseStyle: CSSFn<TState>, newStyle?: CSSFn<TState> | undefined) => CSSFn<TState>;
|
|
10
|
-
export declare const sectionHeaderSpacingStyles: StatelessCSSFn;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type CSSFn, type StatelessCSSFn } from '@atlaskit/menu';
|
|
2
|
-
/**
|
|
3
|
-
* Allows chaining of style functions on top of base style functions
|
|
4
|
-
* @param baseStyle the base custom cssFn
|
|
5
|
-
* @param newStyle a new cssFn to be applied after the base style
|
|
6
|
-
*
|
|
7
|
-
* @deprecated Please avoid using this prop as we intend to remove the prop completely in a future release. See DSP-2682 for more information.
|
|
8
|
-
*/
|
|
9
|
-
export declare const overrideStyleFunction: <TState>(baseStyle: CSSFn<TState>, newStyle?: CSSFn<TState> | undefined) => CSSFn<TState>;
|
|
10
|
-
export declare const sectionHeaderSpacingStyles: StatelessCSSFn;
|