@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.
Files changed (55) hide show
  1. package/CHANGELOG.md +654 -640
  2. package/afm-cc/tsconfig.json +3 -0
  3. package/afm-jira/tsconfig.json +43 -0
  4. package/codemods/0.8.0-change-css-fn-prop.tsx +9 -8
  5. package/codemods/helpers/generic.tsx +12 -11
  6. package/constellation/index/props.mdx +17 -12
  7. package/dist/cjs/common/styles.js +2 -2
  8. package/dist/cjs/components/Footer/index.js +3 -3
  9. package/dist/cjs/components/Header/index.js +10 -5
  10. package/dist/cjs/components/Item/skeleton-item.js +2 -2
  11. package/dist/cjs/components/NavigationHeader/index.js +1 -1
  12. package/dist/es2019/common/styles.js +2 -2
  13. package/dist/es2019/components/Footer/index.js +3 -3
  14. package/dist/es2019/components/Header/index.js +8 -4
  15. package/dist/es2019/components/Item/skeleton-item.js +2 -2
  16. package/dist/es2019/components/NavigationHeader/index.js +1 -1
  17. package/dist/esm/common/styles.js +2 -2
  18. package/dist/esm/components/Footer/index.js +3 -3
  19. package/dist/esm/components/Header/index.js +10 -5
  20. package/dist/esm/components/Item/skeleton-item.js +2 -2
  21. package/dist/esm/components/NavigationHeader/index.js +1 -1
  22. package/dist/types/common/styles.d.ts +1 -1
  23. package/dist/types/components/Header/index.d.ts +1 -1
  24. package/dist/types/components/Item/button-item.d.ts +1 -1
  25. package/dist/types/components/Item/custom-item.d.ts +1 -1
  26. package/dist/types/components/Item/link-item.d.ts +1 -1
  27. package/dist/types/components/Item/skeleton-item.d.ts +1 -1
  28. package/dist/types/components/NavigationContent/index.d.ts +1 -1
  29. package/dist/types/components/NavigationFooter/index.d.ts +1 -1
  30. package/dist/types/components/NestableNavigationContent/context.d.ts +1 -1
  31. package/dist/types/components/NestableNavigationContent/nesting-motion.d.ts +2 -2
  32. package/dist/types/components/NestingItem/hack-for-ert.d.ts +1 -1
  33. package/dist/types/components/NestingItem/index.d.ts +1 -1
  34. package/dist/types/components/NestingItem/styles.d.ts +1 -1
  35. package/dist/types/components/Section/heading-item.d.ts +1 -1
  36. package/dist/types/components/Section/skeleton-heading-item.d.ts +1 -1
  37. package/dist/types/components/utils/hooks.d.ts +1 -1
  38. package/dist/types-ts4.5/common/styles.d.ts +1 -1
  39. package/dist/types-ts4.5/components/Header/index.d.ts +1 -1
  40. package/dist/types-ts4.5/components/Item/button-item.d.ts +1 -1
  41. package/dist/types-ts4.5/components/Item/custom-item.d.ts +1 -1
  42. package/dist/types-ts4.5/components/Item/link-item.d.ts +1 -1
  43. package/dist/types-ts4.5/components/Item/skeleton-item.d.ts +1 -1
  44. package/dist/types-ts4.5/components/NavigationContent/index.d.ts +1 -1
  45. package/dist/types-ts4.5/components/NavigationFooter/index.d.ts +1 -1
  46. package/dist/types-ts4.5/components/NestableNavigationContent/context.d.ts +1 -1
  47. package/dist/types-ts4.5/components/NestableNavigationContent/nesting-motion.d.ts +2 -2
  48. package/dist/types-ts4.5/components/NestingItem/hack-for-ert.d.ts +1 -1
  49. package/dist/types-ts4.5/components/NestingItem/index.d.ts +1 -1
  50. package/dist/types-ts4.5/components/NestingItem/styles.d.ts +1 -1
  51. package/dist/types-ts4.5/components/Section/heading-item.d.ts +1 -1
  52. package/dist/types-ts4.5/components/Section/skeleton-heading-item.d.ts +1 -1
  53. package/dist/types-ts4.5/components/utils/hooks.d.ts +1 -1
  54. package/docs/ert/footer.tsx +1 -1
  55. package/package.json +10 -6
@@ -30,6 +30,9 @@
30
30
  {
31
31
  "path": "../../motion/afm-cc/tsconfig.json"
32
32
  },
33
+ {
34
+ "path": "../../../platform/feature-flags/afm-cc/tsconfig.json"
35
+ },
33
36
  {
34
37
  "path": "../../primitives/afm-cc/tsconfig.json"
35
38
  },
@@ -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 core, {
3
- API,
4
- ASTPath,
5
- FileInfo,
6
- ImportDeclaration,
7
- ImportSpecifier,
8
- Options,
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 core, {
3
- ASTPath,
4
- ImportDeclaration,
5
- ImportDefaultSpecifier,
6
- ImportSpecifier,
7
- JSXAttribute,
8
- JSXElement,
9
- Node,
10
- Program,
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
- import SideNavigationProps from '!!extract-react-types-loader!../../src/components/SideNavigation';
2
- import HeaderProps from '!!extract-react-types-loader!../../src/components/Header';
3
- import FooterProps from '!!extract-react-types-loader!../../docs/ert/footer';
4
- import NavigationContentProps from '!!extract-react-types-loader!../../src/components/NavigationContent';
5
- import NestableNavigationContentProps from '!!extract-react-types-loader!../../src/components/NestableNavigationContent';
6
- import SectionProps from '!!extract-react-types-loader!../../src/components/Section';
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
- <PropsTable heading="" props={SideNavigationProps} />
15
+ <TSMorphProps exportName="SideNavigation" packageName="@atlaskit/side-navigation" />
11
16
 
12
17
  ### Header props
13
18
 
14
- <PropsTable heading="" props={HeaderProps} />
19
+ <TSMorphProps exportName="Header" packageName="@atlaskit/side-navigation" />
15
20
 
16
21
  ### Footer props
17
22
 
18
- <PropsTable heading="" props={FooterProps} />
23
+ <TSMorphProps exportName="Footer" packageName="@atlaskit/side-navigation" />
19
24
 
20
25
  ### Content props
21
26
 
22
- <PropsTable heading="" props={NavigationContentProps} />
27
+ <TSMorphProps exportName="NavigationContent" packageName="@atlaskit/side-navigation" />
23
28
 
24
29
  ### Nestable content props
25
30
 
26
- <PropsTable heading="" props={NestableNavigationContentProps} />
31
+ <TSMorphProps exportName="NestableNavigationContent" packageName="@atlaskit/side-navigation" />
27
32
 
28
33
  ### Section props
29
34
 
30
- <PropsTable heading="" props={SectionProps} />
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: "var(--ds-space-300, 24px)",
67
- width: "var(--ds-space-300, 24px)"
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: 'size.200',
21
- height: 'size.200'
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
- fontSize: 12
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
- fontSize: _typography.headingSizes.h400.size,
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: "var(--ds-space-300, 24px)",
37
+ height: '1.5rem',
38
38
  marginRight: "var(--ds-space-200, 16px)",
39
- width: "var(--ds-space-300, 24px)"
39
+ width: '1.5rem'
40
40
  }
41
41
  });
42
42
  }
@@ -11,7 +11,7 @@ var _primitives = require("@atlaskit/primitives");
11
11
  var navigationFooterStyles = (0, _primitives.xcss)({
12
12
  display: 'block',
13
13
  padding: 'space.100',
14
- paddingTop: 'space.300'
14
+ paddingBlockStart: 'space.300'
15
15
  });
16
16
  /**
17
17
  * __Navigation header__
@@ -55,8 +55,8 @@ export const baseSideNavItemStyle = ({
55
55
  // -- END TODO --------------------------------------------------------------
56
56
 
57
57
  ['& [data-item-elem-before]']: {
58
- height: "var(--ds-space-300, 24px)",
59
- width: "var(--ds-space-300, 24px)"
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: 'size.200',
13
- height: 'size.200'
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
- fontSize: 12
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
- fontSize: headingSizes.h400.size,
60
- letterSpacing: '-0.003em',
61
- fontWeight: 600,
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: "var(--ds-space-300, 24px)",
28
+ height: '1.5rem',
29
29
  marginRight: "var(--ds-space-200, 16px)",
30
- width: "var(--ds-space-300, 24px)"
30
+ width: '1.5rem'
31
31
  }
32
32
  })
33
33
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
@@ -4,7 +4,7 @@ import { Box, xcss } from '@atlaskit/primitives';
4
4
  const navigationFooterStyles = xcss({
5
5
  display: 'block',
6
6
  padding: 'space.100',
7
- paddingTop: 'space.300'
7
+ paddingBlockStart: 'space.300'
8
8
  });
9
9
  /**
10
10
  * __Navigation header__
@@ -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: "var(--ds-space-300, 24px)",
60
- width: "var(--ds-space-300, 24px)"
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: 'size.200',
13
- height: 'size.200'
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
- fontSize: 12
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
- fontSize: headingSizes.h400.size,
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: "var(--ds-space-300, 24px)",
30
+ height: '1.5rem',
31
31
  marginRight: "var(--ds-space-200, 16px)",
32
- width: "var(--ds-space-300, 24px)"
32
+ width: '1.5rem'
33
33
  }
34
34
  });
35
35
  }
@@ -4,7 +4,7 @@ import { Box, xcss } from '@atlaskit/primitives';
4
4
  var navigationFooterStyles = xcss({
5
5
  display: 'block',
6
6
  padding: 'space.100',
7
- paddingTop: 'space.300'
7
+ paddingBlockStart: 'space.300'
8
8
  });
9
9
  /**
10
10
  * __Navigation header__
@@ -1,4 +1,4 @@
1
- import { CSSFn, StatelessCSSFn } from '@atlaskit/menu';
1
+ import { type CSSFn, type StatelessCSSFn } from '@atlaskit/menu';
2
2
  /**
3
3
  * Allows chaining of style functions on top of base style functions
4
4
  * @param baseStyle the base custom cssFn
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { jsx } from '@emotion/react';
3
- import { CSSFn, CustomItemComponentProps } from '@atlaskit/menu';
3
+ import { type CSSFn, type CustomItemComponentProps } from '@atlaskit/menu';
4
4
  /**
5
5
  * __Container__
6
6
  *
@@ -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 } from '@atlaskit/menu';
4
4
  /**
5
5
  * __Button item__
@@ -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,5 +1,5 @@
1
1
  import React from 'react';
2
- import { LinkItemProps } from '@atlaskit/menu';
2
+ import { type LinkItemProps } from '@atlaskit/menu';
3
3
  export type { LinkItemProps } from '@atlaskit/menu';
4
4
  /**
5
5
  * __Link item__
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { SkeletonItemProps } from '@atlaskit/menu';
2
+ import { type SkeletonItemProps } from '@atlaskit/menu';
3
3
  export type { SkeletonItemProps } from '@atlaskit/menu';
4
4
  /**
5
5
  * __Skeleton item__
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { HTMLAttributes } from 'react';
2
+ import { type HTMLAttributes } from 'react';
3
3
  export interface NavigationContentProps {
4
4
  children: React.ReactNode;
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { type ReactNode } from 'react';
2
2
  export interface NavigationFooterProps {
3
3
  children: ReactNode;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { MutableRefObject } from 'react';
1
+ import { type MutableRefObject } from 'react';
2
2
  /**
3
3
  * @internal
4
4
  */
@@ -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 { CSSFn } from '@atlaskit/menu';
1
+ import { type CSSFn } from '@atlaskit/menu';
2
2
  export declare const enabledCSS: {
3
3
  "&:hover [data-custom-icon]": {
4
4
  display: string;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { HeadingItemProps } from '@atlaskit/menu';
2
+ import { type HeadingItemProps } from '@atlaskit/menu';
3
3
  export type { HeadingItemProps } from '@atlaskit/menu';
4
4
  /**
5
5
  * __Heading item__
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { SkeletonHeadingItemProps } from '@atlaskit/menu';
2
+ import { type SkeletonHeadingItemProps } from '@atlaskit/menu';
3
3
  export type { SkeletonHeadingItemProps } from '@atlaskit/menu';
4
4
  /**
5
5
  * __Skeleton heading item__
@@ -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,4 +1,4 @@
1
- import { CSSFn, StatelessCSSFn } from '@atlaskit/menu';
1
+ import { type CSSFn, type StatelessCSSFn } from '@atlaskit/menu';
2
2
  /**
3
3
  * Allows chaining of style functions on top of base style functions
4
4
  * @param baseStyle the base custom cssFn
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { jsx } from '@emotion/react';
3
- import { CSSFn, CustomItemComponentProps } from '@atlaskit/menu';
3
+ import { type CSSFn, type CustomItemComponentProps } from '@atlaskit/menu';
4
4
  /**
5
5
  * __Container__
6
6
  *
@@ -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 } from '@atlaskit/menu';
4
4
  /**
5
5
  * __Button item__
@@ -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,5 +1,5 @@
1
1
  import React from 'react';
2
- import { LinkItemProps } from '@atlaskit/menu';
2
+ import { type LinkItemProps } from '@atlaskit/menu';
3
3
  export type { LinkItemProps } from '@atlaskit/menu';
4
4
  /**
5
5
  * __Link item__
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { SkeletonItemProps } from '@atlaskit/menu';
2
+ import { type SkeletonItemProps } from '@atlaskit/menu';
3
3
  export type { SkeletonItemProps } from '@atlaskit/menu';
4
4
  /**
5
5
  * __Skeleton item__
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { HTMLAttributes } from 'react';
2
+ import { type HTMLAttributes } from 'react';
3
3
  export interface NavigationContentProps {
4
4
  children: React.ReactNode;
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { type ReactNode } from 'react';
2
2
  export interface NavigationFooterProps {
3
3
  children: ReactNode;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { MutableRefObject } from 'react';
1
+ import { type MutableRefObject } from 'react';
2
2
  /**
3
3
  * @internal
4
4
  */