@atlaskit/side-navigation 3.1.2 → 3.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 +654 -640
- package/afm-cc/tsconfig.json +3 -0
- package/afm-jira/tsconfig.json +43 -0
- package/codemods/0.8.0-change-css-fn-prop.tsx +9 -8
- package/codemods/helpers/generic.tsx +12 -11
- package/constellation/index/props.mdx +17 -12
- package/dist/cjs/common/styles.js +2 -2
- package/dist/cjs/components/Footer/index.js +3 -3
- package/dist/cjs/components/Header/index.js +10 -5
- package/dist/cjs/components/Item/skeleton-item.js +2 -2
- package/dist/cjs/components/NavigationHeader/index.js +1 -1
- package/dist/es2019/common/styles.js +2 -2
- package/dist/es2019/components/Footer/index.js +3 -3
- package/dist/es2019/components/Header/index.js +8 -4
- package/dist/es2019/components/Item/skeleton-item.js +2 -2
- package/dist/es2019/components/NavigationHeader/index.js +1 -1
- package/dist/esm/common/styles.js +2 -2
- package/dist/esm/components/Footer/index.js +3 -3
- package/dist/esm/components/Header/index.js +10 -5
- package/dist/esm/components/Item/skeleton-item.js +2 -2
- package/dist/esm/components/NavigationHeader/index.js +1 -1
- package/dist/types/common/styles.d.ts +1 -1
- package/dist/types/components/Header/index.d.ts +1 -1
- package/dist/types/components/Item/button-item.d.ts +1 -1
- package/dist/types/components/Item/custom-item.d.ts +1 -1
- package/dist/types/components/Item/link-item.d.ts +1 -1
- package/dist/types/components/Item/skeleton-item.d.ts +1 -1
- package/dist/types/components/NavigationContent/index.d.ts +1 -1
- package/dist/types/components/NavigationFooter/index.d.ts +1 -1
- package/dist/types/components/NestableNavigationContent/context.d.ts +1 -1
- package/dist/types/components/NestableNavigationContent/nesting-motion.d.ts +2 -2
- package/dist/types/components/NestingItem/hack-for-ert.d.ts +1 -1
- package/dist/types/components/NestingItem/index.d.ts +1 -1
- package/dist/types/components/NestingItem/styles.d.ts +1 -1
- package/dist/types/components/Section/heading-item.d.ts +1 -1
- package/dist/types/components/Section/skeleton-heading-item.d.ts +1 -1
- package/dist/types/components/utils/hooks.d.ts +1 -1
- package/dist/types-ts4.5/common/styles.d.ts +1 -1
- package/dist/types-ts4.5/components/Header/index.d.ts +1 -1
- package/dist/types-ts4.5/components/Item/button-item.d.ts +1 -1
- package/dist/types-ts4.5/components/Item/custom-item.d.ts +1 -1
- package/dist/types-ts4.5/components/Item/link-item.d.ts +1 -1
- package/dist/types-ts4.5/components/Item/skeleton-item.d.ts +1 -1
- package/dist/types-ts4.5/components/NavigationContent/index.d.ts +1 -1
- package/dist/types-ts4.5/components/NavigationFooter/index.d.ts +1 -1
- package/dist/types-ts4.5/components/NestableNavigationContent/context.d.ts +1 -1
- package/dist/types-ts4.5/components/NestableNavigationContent/nesting-motion.d.ts +2 -2
- package/dist/types-ts4.5/components/NestingItem/hack-for-ert.d.ts +1 -1
- package/dist/types-ts4.5/components/NestingItem/index.d.ts +1 -1
- package/dist/types-ts4.5/components/NestingItem/styles.d.ts +1 -1
- package/dist/types-ts4.5/components/Section/heading-item.d.ts +1 -1
- package/dist/types-ts4.5/components/Section/skeleton-heading-item.d.ts +1 -1
- package/dist/types-ts4.5/components/utils/hooks.d.ts +1 -1
- package/docs/ert/footer.tsx +1 -1
- package/package.json +10 -6
package/afm-cc/tsconfig.json
CHANGED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.products.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"target": "es5",
|
|
6
|
+
"outDir": "../../../../../tsDist/@atlaskit__side-navigation/app",
|
|
7
|
+
"composite": true,
|
|
8
|
+
"rootDir": "../",
|
|
9
|
+
"baseUrl": "../"
|
|
10
|
+
},
|
|
11
|
+
"include": [
|
|
12
|
+
"../src/**/*.ts",
|
|
13
|
+
"../src/**/*.tsx"
|
|
14
|
+
],
|
|
15
|
+
"exclude": [
|
|
16
|
+
"../src/**/__tests__/*",
|
|
17
|
+
"../src/**/*.test.*",
|
|
18
|
+
"../src/**/test.*"
|
|
19
|
+
],
|
|
20
|
+
"references": [
|
|
21
|
+
{
|
|
22
|
+
"path": "../../ds-lib/afm-jira/tsconfig.json"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"path": "../../icon/afm-jira/tsconfig.json"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"path": "../../menu/afm-jira/tsconfig.json"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"path": "../../motion/afm-jira/tsconfig.json"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"path": "../../primitives/afm-jira/tsconfig.json"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"path": "../../theme/afm-jira/tsconfig.json"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"path": "../../tokens/afm-jira/tsconfig.json"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { NodePath } from 'ast-types/lib/node-path';
|
|
2
|
-
import
|
|
3
|
-
API,
|
|
4
|
-
ASTPath,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { type NodePath } from 'ast-types/lib/node-path';
|
|
2
|
+
import {
|
|
3
|
+
type API,
|
|
4
|
+
type ASTPath,
|
|
5
|
+
type default as core,
|
|
6
|
+
type FileInfo,
|
|
7
|
+
type ImportDeclaration,
|
|
8
|
+
type ImportSpecifier,
|
|
9
|
+
type Options,
|
|
9
10
|
} from 'jscodeshift';
|
|
10
11
|
|
|
11
12
|
import {
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { NodePath } from 'ast-types/lib/node-path';
|
|
2
|
-
import
|
|
3
|
-
ASTPath,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { type NodePath } from 'ast-types/lib/node-path';
|
|
2
|
+
import {
|
|
3
|
+
type ASTPath,
|
|
4
|
+
type default as core,
|
|
5
|
+
type ImportDeclaration,
|
|
6
|
+
type ImportDefaultSpecifier,
|
|
7
|
+
type ImportSpecifier,
|
|
8
|
+
type JSXAttribute,
|
|
9
|
+
type JSXElement,
|
|
10
|
+
type Node,
|
|
11
|
+
type Program,
|
|
11
12
|
} from 'jscodeshift';
|
|
12
|
-
import { Collection } from 'jscodeshift/src/Collection';
|
|
13
|
+
import { type Collection } from 'jscodeshift/src/Collection';
|
|
13
14
|
|
|
14
15
|
export type Nullable<T> = T | null;
|
|
15
16
|
|
|
@@ -1,30 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
---
|
|
2
|
+
props:
|
|
3
|
+
packageName: '@atlaskit/side-navigation'
|
|
4
|
+
exports:
|
|
5
|
+
- SideNavigation
|
|
6
|
+
- Header
|
|
7
|
+
- Footer
|
|
8
|
+
- NavigationContent
|
|
9
|
+
- NestableNavigationContent
|
|
10
|
+
- Section
|
|
11
|
+
---
|
|
7
12
|
|
|
8
13
|
### Navigation props
|
|
9
14
|
|
|
10
|
-
<
|
|
15
|
+
<TSMorphProps exportName="SideNavigation" packageName="@atlaskit/side-navigation" />
|
|
11
16
|
|
|
12
17
|
### Header props
|
|
13
18
|
|
|
14
|
-
<
|
|
19
|
+
<TSMorphProps exportName="Header" packageName="@atlaskit/side-navigation" />
|
|
15
20
|
|
|
16
21
|
### Footer props
|
|
17
22
|
|
|
18
|
-
<
|
|
23
|
+
<TSMorphProps exportName="Footer" packageName="@atlaskit/side-navigation" />
|
|
19
24
|
|
|
20
25
|
### Content props
|
|
21
26
|
|
|
22
|
-
<
|
|
27
|
+
<TSMorphProps exportName="NavigationContent" packageName="@atlaskit/side-navigation" />
|
|
23
28
|
|
|
24
29
|
### Nestable content props
|
|
25
30
|
|
|
26
|
-
<
|
|
31
|
+
<TSMorphProps exportName="NestableNavigationContent" packageName="@atlaskit/side-navigation" />
|
|
27
32
|
|
|
28
33
|
### Section props
|
|
29
34
|
|
|
30
|
-
<
|
|
35
|
+
<TSMorphProps exportName="Section" packageName="@atlaskit/side-navigation" />
|
|
@@ -63,8 +63,8 @@ var baseSideNavItemStyle = exports.baseSideNavItemStyle = function baseSideNavIt
|
|
|
63
63
|
// See: https://product-fabric.atlassian.net/browse/DSP-1684
|
|
64
64
|
backgroundColor: "var(--ds-background-neutral-subtle, transparent)"
|
|
65
65
|
}, !isDisabled && !isSelected && defaultStyles), !isDisabled && isSelected && selectedStyles), {}, (0, _defineProperty2.default)({}, '& [data-item-elem-before]', {
|
|
66
|
-
height:
|
|
67
|
-
width:
|
|
66
|
+
height: '1.5rem',
|
|
67
|
+
width: '1.5rem'
|
|
68
68
|
}));
|
|
69
69
|
};
|
|
70
70
|
var sectionHeaderSpacingStyles = exports.sectionHeaderSpacingStyles = function sectionHeaderSpacingStyles() {
|
|
@@ -17,8 +17,8 @@ var _Item = require("../Item");
|
|
|
17
17
|
|
|
18
18
|
var iconContainerStyles = (0, _primitives.xcss)({
|
|
19
19
|
display: 'inline-block',
|
|
20
|
-
width: '
|
|
21
|
-
height: '
|
|
20
|
+
width: '1.5rem',
|
|
21
|
+
height: '1.5rem'
|
|
22
22
|
});
|
|
23
23
|
/**
|
|
24
24
|
* __Footer__
|
|
@@ -42,7 +42,7 @@ var OldFooter = function OldFooter(props) {
|
|
|
42
42
|
},
|
|
43
43
|
'[data-item-title]': {
|
|
44
44
|
textAlign: 'center',
|
|
45
|
-
|
|
45
|
+
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
|
|
46
46
|
},
|
|
47
47
|
'[data-item-description]': {
|
|
48
48
|
textAlign: 'center',
|
|
@@ -10,13 +10,15 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
10
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
11
|
var _react = require("react");
|
|
12
12
|
var _react2 = require("@emotion/react");
|
|
13
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
14
|
var _colors = require("@atlaskit/theme/colors");
|
|
14
|
-
var _typography = require("@atlaskit/theme/typography");
|
|
15
15
|
var _styles = require("../../common/styles");
|
|
16
16
|
var _Item = require("../Item");
|
|
17
17
|
var _excluded = ["children", "data-testid"],
|
|
18
18
|
_excluded2 = ["children"];
|
|
19
19
|
/** @jsx jsx */
|
|
20
|
+
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; }
|
|
21
|
+
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; }
|
|
20
22
|
var containerStyles = (0, _react2.css)({
|
|
21
23
|
display: 'block',
|
|
22
24
|
position: 'relative'
|
|
@@ -68,12 +70,15 @@ var Header = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
68
70
|
var _ref3;
|
|
69
71
|
return _ref3 = {
|
|
70
72
|
userSelect: 'auto'
|
|
71
|
-
}, (0, _defineProperty2.default)(_ref3, '[data-item-title]', {
|
|
72
|
-
|
|
73
|
+
}, (0, _defineProperty2.default)(_ref3, '[data-item-title]', _objectSpread(_objectSpread({}, (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.side-navigation-tokenised-typography-styles') ? {
|
|
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)"
|
|
75
|
+
} : {
|
|
76
|
+
fontSize: '0.875rem',
|
|
73
77
|
letterSpacing: '-0.003em',
|
|
74
|
-
fontWeight: 600
|
|
78
|
+
fontWeight: "var(--ds-font-weight-semibold, 600)"
|
|
79
|
+
}), {}, {
|
|
75
80
|
color: "var(--ds-text, ".concat(_colors.N500, ")")
|
|
76
|
-
}), (0, _defineProperty2.default)(_ref3, 'div&:hover', {
|
|
81
|
+
})), (0, _defineProperty2.default)(_ref3, 'div&:hover', {
|
|
77
82
|
backgroundColor: "var(--ds-background-neutral-subtle, transparent)",
|
|
78
83
|
cursor: 'default'
|
|
79
84
|
}), (0, _defineProperty2.default)(_ref3, 'div&:active', {
|
|
@@ -34,9 +34,9 @@ var SkeletonItem = function SkeletonItem(props) {
|
|
|
34
34
|
return _objectSpread(_objectSpread({}, (0, _styles.sectionHeaderSpacingStyles)()), {}, {
|
|
35
35
|
// This doubles up & to get a higher specificity as well as to not overwite the base styles.
|
|
36
36
|
'&&::before': {
|
|
37
|
-
height:
|
|
37
|
+
height: '1.5rem',
|
|
38
38
|
marginRight: "var(--ds-space-200, 16px)",
|
|
39
|
-
width:
|
|
39
|
+
width: '1.5rem'
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
}
|
|
@@ -55,8 +55,8 @@ export const baseSideNavItemStyle = ({
|
|
|
55
55
|
// -- END TODO --------------------------------------------------------------
|
|
56
56
|
|
|
57
57
|
['& [data-item-elem-before]']: {
|
|
58
|
-
height:
|
|
59
|
-
width:
|
|
58
|
+
height: '1.5rem',
|
|
59
|
+
width: '1.5rem'
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
62
|
};
|
|
@@ -9,8 +9,8 @@ import { Container } from '../Header';
|
|
|
9
9
|
import { CustomItem } from '../Item';
|
|
10
10
|
const iconContainerStyles = xcss({
|
|
11
11
|
display: 'inline-block',
|
|
12
|
-
width: '
|
|
13
|
-
height: '
|
|
12
|
+
width: '1.5rem',
|
|
13
|
+
height: '1.5rem'
|
|
14
14
|
});
|
|
15
15
|
/**
|
|
16
16
|
* __Footer__
|
|
@@ -33,7 +33,7 @@ const OldFooter = props => {
|
|
|
33
33
|
},
|
|
34
34
|
'[data-item-title]': {
|
|
35
35
|
textAlign: 'center',
|
|
36
|
-
|
|
36
|
+
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
|
|
37
37
|
},
|
|
38
38
|
'[data-item-description]': {
|
|
39
39
|
textAlign: 'center',
|
|
@@ -2,8 +2,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import { css, jsx } from '@emotion/react';
|
|
5
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
5
6
|
import { N500 } from '@atlaskit/theme/colors';
|
|
6
|
-
import { headingSizes } from '@atlaskit/theme/typography';
|
|
7
7
|
import { overrideStyleFunction } from '../../common/styles';
|
|
8
8
|
import { CustomItem } from '../Item';
|
|
9
9
|
const containerStyles = css({
|
|
@@ -56,9 +56,13 @@ const Header = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
56
56
|
const cssFn = overrideStyleFunction(() => ({
|
|
57
57
|
userSelect: 'auto',
|
|
58
58
|
['[data-item-title]']: {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
...(getBooleanFF('platform.design-system-team.side-navigation-tokenised-typography-styles') ? {
|
|
60
|
+
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)"
|
|
61
|
+
} : {
|
|
62
|
+
fontSize: '0.875rem',
|
|
63
|
+
letterSpacing: '-0.003em',
|
|
64
|
+
fontWeight: "var(--ds-font-weight-semibold, 600)"
|
|
65
|
+
}),
|
|
62
66
|
color: `var(--ds-text, ${N500})`
|
|
63
67
|
},
|
|
64
68
|
// Will look interactive if the `component` is anything other than a div.
|
|
@@ -25,9 +25,9 @@ const SkeletonItem = props => {
|
|
|
25
25
|
...sectionHeaderSpacingStyles(),
|
|
26
26
|
// This doubles up & to get a higher specificity as well as to not overwite the base styles.
|
|
27
27
|
'&&::before': {
|
|
28
|
-
height:
|
|
28
|
+
height: '1.5rem',
|
|
29
29
|
marginRight: "var(--ds-space-200, 16px)",
|
|
30
|
-
width:
|
|
30
|
+
width: '1.5rem'
|
|
31
31
|
}
|
|
32
32
|
})
|
|
33
33
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
@@ -56,8 +56,8 @@ export var baseSideNavItemStyle = function baseSideNavItemStyle(_ref) {
|
|
|
56
56
|
// See: https://product-fabric.atlassian.net/browse/DSP-1684
|
|
57
57
|
backgroundColor: "var(--ds-background-neutral-subtle, transparent)"
|
|
58
58
|
}, !isDisabled && !isSelected && defaultStyles), !isDisabled && isSelected && selectedStyles), {}, _defineProperty({}, '& [data-item-elem-before]', {
|
|
59
|
-
height:
|
|
60
|
-
width:
|
|
59
|
+
height: '1.5rem',
|
|
60
|
+
width: '1.5rem'
|
|
61
61
|
}));
|
|
62
62
|
};
|
|
63
63
|
export var sectionHeaderSpacingStyles = function sectionHeaderSpacingStyles() {
|
|
@@ -9,8 +9,8 @@ import { Container } from '../Header';
|
|
|
9
9
|
import { CustomItem } from '../Item';
|
|
10
10
|
var iconContainerStyles = xcss({
|
|
11
11
|
display: 'inline-block',
|
|
12
|
-
width: '
|
|
13
|
-
height: '
|
|
12
|
+
width: '1.5rem',
|
|
13
|
+
height: '1.5rem'
|
|
14
14
|
});
|
|
15
15
|
/**
|
|
16
16
|
* __Footer__
|
|
@@ -34,7 +34,7 @@ var OldFooter = function OldFooter(props) {
|
|
|
34
34
|
},
|
|
35
35
|
'[data-item-title]': {
|
|
36
36
|
textAlign: 'center',
|
|
37
|
-
|
|
37
|
+
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
|
|
38
38
|
},
|
|
39
39
|
'[data-item-description]': {
|
|
40
40
|
textAlign: 'center',
|
|
@@ -3,11 +3,13 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["children", "data-testid"],
|
|
5
5
|
_excluded2 = ["children"];
|
|
6
|
+
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; }
|
|
7
|
+
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; }
|
|
6
8
|
/** @jsx jsx */
|
|
7
9
|
import { forwardRef } from 'react';
|
|
8
10
|
import { css, jsx } from '@emotion/react';
|
|
11
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
9
12
|
import { N500 } from '@atlaskit/theme/colors';
|
|
10
|
-
import { headingSizes } from '@atlaskit/theme/typography';
|
|
11
13
|
import { overrideStyleFunction } from '../../common/styles';
|
|
12
14
|
import { CustomItem } from '../Item';
|
|
13
15
|
var containerStyles = css({
|
|
@@ -61,12 +63,15 @@ var Header = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
61
63
|
var _ref3;
|
|
62
64
|
return _ref3 = {
|
|
63
65
|
userSelect: 'auto'
|
|
64
|
-
}, _defineProperty(_ref3, '[data-item-title]', {
|
|
65
|
-
|
|
66
|
+
}, _defineProperty(_ref3, '[data-item-title]', _objectSpread(_objectSpread({}, getBooleanFF('platform.design-system-team.side-navigation-tokenised-typography-styles') ? {
|
|
67
|
+
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)"
|
|
68
|
+
} : {
|
|
69
|
+
fontSize: '0.875rem',
|
|
66
70
|
letterSpacing: '-0.003em',
|
|
67
|
-
fontWeight: 600
|
|
71
|
+
fontWeight: "var(--ds-font-weight-semibold, 600)"
|
|
72
|
+
}), {}, {
|
|
68
73
|
color: "var(--ds-text, ".concat(N500, ")")
|
|
69
|
-
}), _defineProperty(_ref3, 'div&:hover', {
|
|
74
|
+
})), _defineProperty(_ref3, 'div&:hover', {
|
|
70
75
|
backgroundColor: "var(--ds-background-neutral-subtle, transparent)",
|
|
71
76
|
cursor: 'default'
|
|
72
77
|
}), _defineProperty(_ref3, 'div&:active', {
|
|
@@ -27,9 +27,9 @@ var SkeletonItem = function SkeletonItem(props) {
|
|
|
27
27
|
return _objectSpread(_objectSpread({}, sectionHeaderSpacingStyles()), {}, {
|
|
28
28
|
// This doubles up & to get a higher specificity as well as to not overwite the base styles.
|
|
29
29
|
'&&::before': {
|
|
30
|
-
height:
|
|
30
|
+
height: '1.5rem',
|
|
31
31
|
marginRight: "var(--ds-space-200, 16px)",
|
|
32
|
-
width:
|
|
32
|
+
width: '1.5rem'
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
35
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { CustomItemComponentProps, CustomItemProps } from '@atlaskit/menu';
|
|
2
|
+
import { type CustomItemComponentProps, type CustomItemProps } from '@atlaskit/menu';
|
|
3
3
|
export type { CustomItemComponentProps, CustomItemProps } from '@atlaskit/menu';
|
|
4
4
|
interface CustomItemPropsHack {
|
|
5
5
|
<TComponentProps extends {}>(props: CustomItemProps<TComponentProps> & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { Ref } from 'react';
|
|
2
|
+
import { type Ref } from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { Direction } from '@atlaskit/motion';
|
|
4
|
+
import { type Direction } from '@atlaskit/motion';
|
|
5
5
|
interface ChildrenAsFunctionProps {
|
|
6
6
|
'data-enter-from': string;
|
|
7
7
|
'data-exit-to': string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { NestingItemProps } from './index';
|
|
1
|
+
import { type NestingItemProps } from './index';
|
|
2
2
|
export default function (_: NestingItemProps): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { CSSFn, CustomItemComponentProps, Overrides } from '@atlaskit/menu';
|
|
3
|
+
import { type CSSFn, type CustomItemComponentProps, type Overrides } from '@atlaskit/menu';
|
|
4
4
|
interface NestingItemOverrides extends Overrides {
|
|
5
5
|
/**
|
|
6
6
|
* Use this to override the back button displayed when navigation is nested.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MutableRefObject } from 'react';
|
|
1
|
+
import { type MutableRefObject } from 'react';
|
|
2
2
|
export declare const useChildIds: (currentStackId: string, committedStack: string[], onUnknownNest?: ((stack: string[]) => void) | undefined) => {
|
|
3
3
|
childIdsRef: MutableRefObject<Set<string>>;
|
|
4
4
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { CustomItemComponentProps, CustomItemProps } from '@atlaskit/menu';
|
|
2
|
+
import { type CustomItemComponentProps, type CustomItemProps } from '@atlaskit/menu';
|
|
3
3
|
export type { CustomItemComponentProps, CustomItemProps } from '@atlaskit/menu';
|
|
4
4
|
interface CustomItemPropsHack {
|
|
5
5
|
<TComponentProps extends {}>(props: CustomItemProps<TComponentProps> & {
|