@atlaskit/side-navigation 3.2.0 → 3.3.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 (56) hide show
  1. package/CHANGELOG.md +20 -1
  2. package/README.md +7 -3
  3. package/afm-jira/tsconfig.json +3 -0
  4. package/codemods/0.8.0-change-css-fn-prop.tsx +136 -164
  5. package/codemods/__tests__/0.8.0-change-css-fn-prop.tsx +77 -77
  6. package/codemods/helpers/generic.tsx +528 -564
  7. package/constellation/index/examples.mdx +20 -20
  8. package/constellation/index/props.mdx +8 -8
  9. package/constellation/index/usage.mdx +27 -11
  10. package/dist/cjs/components/Header/index.js +4 -0
  11. package/dist/cjs/components/Item/link-item.js +3 -1
  12. package/dist/cjs/components/LoadingItems/index.js +7 -3
  13. package/dist/cjs/components/NavigationContent/index.js +8 -1
  14. package/dist/cjs/components/NavigationHeader/index.js +4 -0
  15. package/dist/cjs/components/NestableNavigationContent/index.js +5 -0
  16. package/dist/cjs/components/NestableNavigationContent/nesting-motion.js +3 -1
  17. package/dist/cjs/components/NestingItem/index.js +4 -0
  18. package/dist/cjs/components/SideNavigation/index.js +5 -0
  19. package/dist/es2019/components/Header/index.js +5 -0
  20. package/dist/es2019/components/Item/link-item.js +3 -1
  21. package/dist/es2019/components/LoadingItems/index.js +7 -3
  22. package/dist/es2019/components/NavigationContent/index.js +8 -1
  23. package/dist/es2019/components/NavigationHeader/index.js +4 -0
  24. package/dist/es2019/components/NestableNavigationContent/index.js +5 -0
  25. package/dist/es2019/components/NestableNavigationContent/nesting-motion.js +4 -0
  26. package/dist/es2019/components/NestingItem/index.js +5 -0
  27. package/dist/es2019/components/SideNavigation/index.js +5 -0
  28. package/dist/esm/components/Header/index.js +5 -0
  29. package/dist/esm/components/Item/link-item.js +3 -1
  30. package/dist/esm/components/LoadingItems/index.js +7 -3
  31. package/dist/esm/components/NavigationContent/index.js +8 -1
  32. package/dist/esm/components/NavigationHeader/index.js +4 -0
  33. package/dist/esm/components/NestableNavigationContent/index.js +5 -0
  34. package/dist/esm/components/NestableNavigationContent/nesting-motion.js +4 -0
  35. package/dist/esm/components/NestingItem/index.js +5 -0
  36. package/dist/esm/components/SideNavigation/index.js +5 -0
  37. package/dist/types/components/LoadingItems/index.d.ts +1 -1
  38. package/dist/types/components/NavigationContent/index.d.ts +3 -0
  39. package/dist/types/components/NavigationHeader/index.d.ts +3 -0
  40. package/dist/types/components/NestableNavigationContent/index.d.ts +0 -1
  41. package/dist/types/components/NestableNavigationContent/nesting-motion.d.ts +3 -0
  42. package/dist/types/components/NestingItem/index.d.ts +3 -0
  43. package/dist/types/components/index.d.ts +2 -2
  44. package/dist/types/index.d.ts +1 -1
  45. package/dist/types-ts4.5/components/LoadingItems/index.d.ts +1 -1
  46. package/dist/types-ts4.5/components/NavigationContent/index.d.ts +3 -0
  47. package/dist/types-ts4.5/components/NavigationHeader/index.d.ts +3 -0
  48. package/dist/types-ts4.5/components/NestableNavigationContent/index.d.ts +0 -1
  49. package/dist/types-ts4.5/components/NestableNavigationContent/nesting-motion.d.ts +3 -0
  50. package/dist/types-ts4.5/components/NestingItem/index.d.ts +3 -0
  51. package/dist/types-ts4.5/components/index.d.ts +2 -2
  52. package/dist/types-ts4.5/index.d.ts +1 -1
  53. package/docs/00-intro.tsx +4 -6
  54. package/docs/ert/footer.tsx +6 -6
  55. package/package.json +97 -97
  56. package/report.api.md +102 -123
@@ -16,7 +16,8 @@ import SectionExample from '../../examples/constellation/section';
16
16
 
17
17
  ## Default
18
18
 
19
- This side navigation example shows all of the [components](#side-navigation-components) and [items](#side-navigation-items) composed together.
19
+ This side navigation example shows all of the [components](#side-navigation-components) and
20
+ [items](#side-navigation-items) composed together.
20
21
 
21
22
  <Example Component={DefaultExample} packageName="@atlaskit/side-navigation" />
22
23
 
@@ -24,7 +25,8 @@ This side navigation example shows all of the [components](#side-navigation-comp
24
25
 
25
26
  ### Container
26
27
 
27
- Uses 100% of its parent's height and width, so make sure to place it into an element with explicit values set.
28
+ Uses 100% of its parent's height and width, so make sure to place it into an element with explicit
29
+ values set.
28
30
 
29
31
  The minimum width of the container is `240px`.
30
32
 
@@ -34,20 +36,19 @@ The minimum width of the container is `240px`.
34
36
 
35
37
  Use `NavigationHeader` and `NavigationFooter` to customise the header and footer.
36
38
 
37
- <Example
38
- Component={HeaderAndFooterExample}
39
- packageName="@atlaskit/side-navigation"
40
- />
39
+ <Example Component={HeaderAndFooterExample} packageName="@atlaskit/side-navigation" />
41
40
 
42
41
  ### Content
43
42
 
44
- This is used as the container for [navigation items](#side-navigation-items). For nested views see the [nested navigation example](#nested-navigation).
43
+ This is used as the container for [navigation items](#side-navigation-items). For nested views see
44
+ the [nested navigation example](#nested-navigation).
45
45
 
46
46
  <Example Component={ContentExample} packageName="@atlaskit/side-navigation" />
47
47
 
48
48
  ### Section
49
49
 
50
- This is used to separate items into sections. Using the `title` prop makes a section implicitly group the items for assistive technology such as screen readers with no extra work required.
50
+ This is used to separate items into sections. Using the `title` prop makes a section implicitly
51
+ group the items for assistive technology such as screen readers with no extra work required.
51
52
 
52
53
  <Example Component={SectionExample} packageName="@atlaskit/side-navigation" />
53
54
 
@@ -71,9 +72,11 @@ Use the go back item to provide a customized "go back" button in nested navigati
71
72
 
72
73
  ### Link item
73
74
 
74
- This renders an item wrapped in an anchor tag, useful when you have an item that should navigate to another page using native browser navigation.
75
+ This renders an item wrapped in an anchor tag, useful when you have an item that should navigate to
76
+ another page using native browser navigation.
75
77
 
76
- For custom SPA transitions use a custom item with the respective router logic, following the [custom item example](#custom-item).
78
+ For custom SPA transitions use a custom item with the respective router logic, following the
79
+ [custom item example](#custom-item).
77
80
 
78
81
  <Example Component={LinkItemExample} packageName="@atlaskit/side-navigation" />
79
82
 
@@ -81,21 +84,18 @@ For custom SPA transitions use a custom item with the respective router logic, f
81
84
 
82
85
  This handles use cases where a custom router link component is needed.
83
86
 
84
- The custom component receives all overflow props passed to the custom item component. When using TypeScript this will add the custom component props to the root component props type for type safety.
87
+ The custom component receives all overflow props passed to the custom item component. When using
88
+ TypeScript this will add the custom component props to the root component props type for type
89
+ safety.
85
90
 
86
- <Example
87
- Component={CustomItemExample}
88
- packageName="@atlaskit/side-navigation"
89
- />
91
+ <Example Component={CustomItemExample} packageName="@atlaskit/side-navigation" />
90
92
 
91
93
  ### Button item
92
94
 
93
- This renders an item wrapped in a button tag. Use this when an action does something other than navigating to another page.
95
+ This renders an item wrapped in a button tag. Use this when an action does something other than
96
+ navigating to another page.
94
97
 
95
- <Example
96
- Component={ButtonItemExample}
97
- packageName="@atlaskit/side-navigation"
98
- />
98
+ <Example Component={ButtonItemExample} packageName="@atlaskit/side-navigation" />
99
99
 
100
100
  ## Loading
101
101
 
@@ -1,13 +1,13 @@
1
1
  ---
2
2
  props:
3
- packageName: '@atlaskit/side-navigation'
4
- exports:
5
- - SideNavigation
6
- - Header
7
- - Footer
8
- - NavigationContent
9
- - NestableNavigationContent
10
- - Section
3
+ packageName: '@atlaskit/side-navigation'
4
+ exports:
5
+ - SideNavigation
6
+ - Header
7
+ - Footer
8
+ - NavigationContent
9
+ - NestableNavigationContent
10
+ - Section
11
11
  ---
12
12
 
13
13
  ### Navigation props
@@ -4,26 +4,42 @@ order: 2
4
4
 
5
5
  ## Usage
6
6
 
7
- The side navigation helps people move around within a subsection of a product. For example, navigating through the topics in a Confluence space, or to specific tasks within their Jira project.
7
+ The side navigation helps people move around within a subsection of a product. For example,
8
+ navigating through the topics in a Confluence space, or to specific tasks within their Jira project.
8
9
 
9
- Use the side navigation with the [page layout component](/components/page-layout/examples) to compose your navigation experience. This ensures that you get access to useful accessibility and customization features by default.
10
+ Use the side navigation with the [page layout component](/components/page-layout/examples) to
11
+ compose your navigation experience. This ensures that you get access to useful accessibility and
12
+ customization features by default.
10
13
 
11
14
  ## Accessibility
12
15
 
13
- - Keep nested navigation levels to a minimum. If you need to use a nested navigation, always provide a "go back" button to help people get out of the menu.
14
- - Provide a unique `label` for every different navigation in the page layout. Make sure that the navigation label is meaningful and not direction-based. For example, "Current project" not "Left navigation". If it's the same navigation repeated in another place on the page layout, use the same `label`.
15
- - Don't include the word "navigation" in your `label`. The `<nav>` semantics mean assistive technology will already tell people that they are using a navigation.
16
+ - Keep nested navigation levels to a minimum. If you need to use a nested navigation, always provide
17
+ a "go back" button to help people get out of the menu.
18
+ - Provide a unique `label` for every different navigation in the page layout. Make sure that the
19
+ navigation label is meaningful and not direction-based. For example, "Current project" not "Left
20
+ navigation". If it's the same navigation repeated in another place on the page layout, use the
21
+ same `label`.
22
+ - Don't include the word "navigation" in your `label`. The `<nav>` semantics mean assistive
23
+ technology will already tell people that they are using a navigation.
16
24
 
17
25
  ## Best practices
18
26
 
19
27
  ### Loading states
20
28
 
21
- Sometimes you'll need to load some of the side navigation content asynchronously. There are a few things to keep in mind:
22
-
23
- - Only use skeletons when you're certain of what the loaded state will look like. Most items that appear in side navigation are probably fine to use with skeletons, for example, `@atlaskit/tree`.
24
- - When transitioning from loading skeleton to loaded items, try to ensure the jump doesn't look janky - use the equivalent skeleton item that is appropriate and be careful of things changing size by a few pixels. We should be striving for UI that feels **stable**, which means it doesn't jump around when content loads.
25
- - Ensure loading does not take too long - try to anticipate if people will look at your menu via hover events and pre-load the data as soon as possible.
26
- - When the content is loading in, make sure it all loads in at the same time - our minds aren't fast enough to distinguish each item loading individually, for example, and it appears slower to most people.
29
+ Sometimes you'll need to load some of the side navigation content asynchronously. There are a few
30
+ things to keep in mind:
31
+
32
+ - Only use skeletons when you're certain of what the loaded state will look like. Most items that
33
+ appear in side navigation are probably fine to use with skeletons, for example, `@atlaskit/tree`.
34
+ - When transitioning from loading skeleton to loaded items, try to ensure the jump doesn't look
35
+ janky - use the equivalent skeleton item that is appropriate and be careful of things changing
36
+ size by a few pixels. We should be striving for UI that feels **stable**, which means it doesn't
37
+ jump around when content loads.
38
+ - Ensure loading does not take too long - try to anticipate if people will look at your menu via
39
+ hover events and pre-load the data as soon as possible.
40
+ - When the content is loading in, make sure it all loads in at the same time - our minds aren't fast
41
+ enough to distinguish each item loading individually, for example, and it appears slower to most
42
+ people.
27
43
 
28
44
  ## Related
29
45
 
@@ -16,7 +16,11 @@ var _styles = require("../../common/styles");
16
16
  var _Item = require("../Item");
17
17
  var _excluded = ["children", "data-testid"],
18
18
  _excluded2 = ["children"];
19
+ /**
20
+ * @jsxRuntime classic
21
+ */
19
22
  /** @jsx jsx */
23
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
20
24
  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
25
  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; }
22
26
  var containerStyles = (0, _react2.css)({
@@ -38,7 +38,9 @@ function (_ref, ref) {
38
38
  return null;
39
39
  }
40
40
  var cssOverride = (0, _styles.overrideStyleFunction)(_styles.baseSideNavItemStyle, cssFn);
41
- // eslint-disable-next-line @atlaskit/design-system/no-deprecated-apis, @repo/internal/react/no-unsafe-overrides
41
+
42
+ // Anchor content will be handled by LinkItem
43
+ // eslint-disable-next-line @atlaskit/design-system/no-deprecated-apis, @repo/internal/react/no-unsafe-overrides, jsx-a11y/anchor-has-content
42
44
  return /*#__PURE__*/_react.default.createElement(_menu.LinkItem, (0, _extends2.default)({
43
45
  ref: ref,
44
46
  cssFn: cssOverride,
@@ -9,16 +9,20 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
9
9
  var _react = require("@emotion/react");
10
10
  var _motion = require("@atlaskit/motion");
11
11
  var _context = require("../NestableNavigationContent/context");
12
+ /**
13
+ * @jsxRuntime classic
14
+ */
12
15
  /** @jsx jsx */
16
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
13
17
 
14
18
  var baseMotionStyles = (0, _react.css)({
15
19
  position: 'absolute',
16
20
  zIndex: 1,
17
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
21
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/no-physical-properties
18
22
  top: 0,
19
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
23
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/no-physical-properties
20
24
  right: 0,
21
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
25
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/no-physical-properties
22
26
  left: 0
23
27
  });
24
28
  var enteringStyles = (0, _react.css)({
@@ -10,8 +10,13 @@ var _react2 = require("@emotion/react");
10
10
  var _useScrollbarWidth = _interopRequireDefault(require("@atlaskit/ds-lib/use-scrollbar-width"));
11
11
  var _context = require("../NestableNavigationContent/context");
12
12
  var _styles = require("./styles");
13
+ /**
14
+ * @jsxRuntime classic
15
+ */
13
16
  /** @jsx jsx */
14
17
 
18
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
19
+
15
20
  /**
16
21
  * __Navigation content__
17
22
  *
@@ -32,7 +37,9 @@ var NavigationContent = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref
32
37
  }
33
38
  var typedRef = ref;
34
39
  return (0, _react2.jsx)("div", {
35
- ref: typedRef,
40
+ ref: typedRef
41
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
42
+ ,
36
43
  css: (0, _styles.outerContainerCSS)({
37
44
  showTopScrollIndicator: showTopScrollIndicator,
38
45
  scrollbarWidth: scrollbar.width
@@ -6,7 +6,11 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  var _primitives = require("@atlaskit/primitives");
9
+ /**
10
+ * @jsxRuntime classic
11
+ */
9
12
  /** @jsx jsx */
13
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
10
14
 
11
15
  var navigationFooterStyles = (0, _primitives.xcss)({
12
16
  display: 'block',
@@ -15,8 +15,13 @@ var _NestingItem = _interopRequireDefault(require("../NestingItem"));
15
15
  var _hooks = require("../utils/hooks");
16
16
  var _context = require("./context");
17
17
  var _nestingMotion = require("./nesting-motion");
18
+ /**
19
+ * @jsxRuntime classic
20
+ */
18
21
  /** @jsx jsx */
19
22
 
23
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
24
+
20
25
  // Named so ERT doesn't pick up the override name as a type.
21
26
 
22
27
  var ROOT_ID = exports.ROOT_ID = 'ATLASKIT_NESTED_ROOT';
@@ -9,7 +9,9 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
9
9
  var _react = require("@emotion/react");
10
10
  var _motion = require("@atlaskit/motion");
11
11
  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; }
12
- 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; } /** @jsx jsx */
12
+ 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; } /**
13
+ * @jsxRuntime classic
14
+ */ /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
13
15
  /**
14
16
  * @internal
15
17
  */
@@ -23,7 +23,11 @@ var _context = require("../NestableNavigationContent/context");
23
23
  var _hooks = require("../utils/hooks");
24
24
  var _styles2 = require("./styles");
25
25
  var _excluded = ["children", "iconAfter", "title", "onClick", "cssFn", "isSelected", "id", "component", "testId"];
26
+ /**
27
+ * @jsxRuntime classic
28
+ */
26
29
  /** @jsx jsx */
30
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
27
31
  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); }
28
32
  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 && Object.prototype.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; }
29
33
  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; }
@@ -8,8 +8,13 @@ var _react = require("react");
8
8
  var _react2 = require("@emotion/react");
9
9
  var _menu = require("@atlaskit/menu");
10
10
  var _colors = require("@atlaskit/theme/colors");
11
+ /**
12
+ * @jsxRuntime classic
13
+ */
11
14
  /** @jsx jsx */
12
15
 
16
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
17
+
13
18
  var sidebarMinWidth = '240px';
14
19
  var sideNavStyles = (0, _react2.css)({
15
20
  display: 'flex',
@@ -1,6 +1,11 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
+ /**
3
+ * @jsxRuntime classic
4
+ */
2
5
  /** @jsx jsx */
3
6
  import { forwardRef } from 'react';
7
+
8
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
9
  import { css, jsx } from '@emotion/react';
5
10
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
6
11
  import { N500 } from '@atlaskit/theme/colors';
@@ -28,7 +28,9 @@ const LinkItem = /*#__PURE__*/forwardRef(
28
28
  return null;
29
29
  }
30
30
  const cssOverride = overrideStyleFunction(baseSideNavItemStyle, cssFn);
31
- // eslint-disable-next-line @atlaskit/design-system/no-deprecated-apis, @repo/internal/react/no-unsafe-overrides
31
+
32
+ // Anchor content will be handled by LinkItem
33
+ // eslint-disable-next-line @atlaskit/design-system/no-deprecated-apis, @repo/internal/react/no-unsafe-overrides, jsx-a11y/anchor-has-content
32
34
  return /*#__PURE__*/React.createElement(Link, _extends({
33
35
  ref: ref,
34
36
  cssFn: cssOverride,
@@ -1,16 +1,20 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
+ /**
3
+ * @jsxRuntime classic
4
+ */
2
5
  /** @jsx jsx */
6
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
7
  import { css, jsx } from '@emotion/react';
4
8
  import { ExitingPersistence, FadeIn, mediumDurationMs } from '@atlaskit/motion';
5
9
  import { useShouldNestedElementRender } from '../NestableNavigationContent/context';
6
10
  const baseMotionStyles = css({
7
11
  position: 'absolute',
8
12
  zIndex: 1,
9
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
13
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/no-physical-properties
10
14
  top: 0,
11
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
15
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/no-physical-properties
12
16
  right: 0,
13
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
17
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/no-physical-properties
14
18
  left: 0
15
19
  });
16
20
  const enteringStyles = css({
@@ -1,5 +1,10 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { forwardRef } from 'react';
6
+
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
8
  import { jsx } from '@emotion/react';
4
9
  import useScrollbarWidth from '@atlaskit/ds-lib/use-scrollbar-width';
5
10
  import { useShouldNestedElementRender } from '../NestableNavigationContent/context';
@@ -27,7 +32,9 @@ const NavigationContent = /*#__PURE__*/forwardRef((props, ref) => {
27
32
  }
28
33
  const typedRef = ref;
29
34
  return jsx("div", {
30
- ref: typedRef,
35
+ ref: typedRef
36
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
37
+ ,
31
38
  css: outerContainerCSS({
32
39
  showTopScrollIndicator,
33
40
  scrollbarWidth: scrollbar.width
@@ -1,4 +1,8 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
5
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
6
  import { jsx } from '@emotion/react';
3
7
  import { Box, xcss } from '@atlaskit/primitives';
4
8
  const navigationFooterStyles = xcss({
@@ -1,6 +1,11 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
+ /**
3
+ * @jsxRuntime classic
4
+ */
2
5
  /** @jsx jsx */
3
6
  import { Fragment, useCallback, useEffect, useMemo, useRef, useState } from 'react';
7
+
8
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
9
  import { css, jsx } from '@emotion/react';
5
10
  import { ExitingPersistence } from '@atlaskit/motion';
6
11
  import { GoBackItem as GoBackButton } from '../Item';
@@ -1,5 +1,9 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
 
6
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
7
  import { jsx } from '@emotion/react';
4
8
  import { easeOut, SlideIn } from '@atlaskit/motion';
5
9
  /**
@@ -1,6 +1,11 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
+ /**
3
+ * @jsxRuntime classic
4
+ */
2
5
  /** @jsx jsx */
3
6
  import React, { Fragment, useCallback, useMemo, useState } from 'react';
7
+
8
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
9
  import { jsx } from '@emotion/react';
5
10
  import RightArrow from '@atlaskit/icon/glyph/arrow-right-circle';
6
11
  import { Box, xcss } from '@atlaskit/primitives';
@@ -1,5 +1,10 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { forwardRef } from 'react';
6
+
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
8
  import { css, jsx } from '@emotion/react';
4
9
  import { SELECTION_STYLE_CONTEXT_DO_NOT_USE } from '@atlaskit/menu';
5
10
  import { N10, N500 } from '@atlaskit/theme/colors';
@@ -5,8 +5,13 @@ var _excluded = ["children", "data-testid"],
5
5
  _excluded2 = ["children"];
6
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
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; }
8
+ /**
9
+ * @jsxRuntime classic
10
+ */
8
11
  /** @jsx jsx */
9
12
  import { forwardRef } from 'react';
13
+
14
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
10
15
  import { css, jsx } from '@emotion/react';
11
16
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
12
17
  import { N500 } from '@atlaskit/theme/colors';
@@ -28,7 +28,9 @@ function (_ref, ref) {
28
28
  return null;
29
29
  }
30
30
  var cssOverride = overrideStyleFunction(baseSideNavItemStyle, cssFn);
31
- // eslint-disable-next-line @atlaskit/design-system/no-deprecated-apis, @repo/internal/react/no-unsafe-overrides
31
+
32
+ // Anchor content will be handled by LinkItem
33
+ // eslint-disable-next-line @atlaskit/design-system/no-deprecated-apis, @repo/internal/react/no-unsafe-overrides, jsx-a11y/anchor-has-content
32
34
  return /*#__PURE__*/React.createElement(Link, _extends({
33
35
  ref: ref,
34
36
  cssFn: cssOverride,
@@ -1,16 +1,20 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
+ /**
3
+ * @jsxRuntime classic
4
+ */
2
5
  /** @jsx jsx */
6
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
7
  import { css, jsx } from '@emotion/react';
4
8
  import { ExitingPersistence, FadeIn, mediumDurationMs } from '@atlaskit/motion';
5
9
  import { useShouldNestedElementRender } from '../NestableNavigationContent/context';
6
10
  var baseMotionStyles = css({
7
11
  position: 'absolute',
8
12
  zIndex: 1,
9
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
13
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/no-physical-properties
10
14
  top: 0,
11
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
15
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/no-physical-properties
12
16
  right: 0,
13
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
17
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/no-physical-properties
14
18
  left: 0
15
19
  });
16
20
  var enteringStyles = css({
@@ -1,5 +1,10 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { forwardRef } from 'react';
6
+
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
8
  import { jsx } from '@emotion/react';
4
9
  import useScrollbarWidth from '@atlaskit/ds-lib/use-scrollbar-width';
5
10
  import { useShouldNestedElementRender } from '../NestableNavigationContent/context';
@@ -24,7 +29,9 @@ var NavigationContent = /*#__PURE__*/forwardRef(function (props, ref) {
24
29
  }
25
30
  var typedRef = ref;
26
31
  return jsx("div", {
27
- ref: typedRef,
32
+ ref: typedRef
33
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
34
+ ,
28
35
  css: outerContainerCSS({
29
36
  showTopScrollIndicator: showTopScrollIndicator,
30
37
  scrollbarWidth: scrollbar.width
@@ -1,4 +1,8 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
5
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
6
  import { jsx } from '@emotion/react';
3
7
  import { Box, xcss } from '@atlaskit/primitives';
4
8
  var navigationFooterStyles = xcss({
@@ -1,7 +1,12 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
+ /**
4
+ * @jsxRuntime classic
5
+ */
3
6
  /** @jsx jsx */
4
7
  import { Fragment, useCallback, useEffect, useMemo, useRef, useState } from 'react';
8
+
9
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
10
  import { css, jsx } from '@emotion/react';
6
11
  import { ExitingPersistence } from '@atlaskit/motion';
7
12
  import { GoBackItem as GoBackButton } from '../Item';
@@ -1,8 +1,12 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
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; }
3
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; }
4
+ /**
5
+ * @jsxRuntime classic
6
+ */
4
7
  /** @jsx jsx */
5
8
 
9
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
10
  import { jsx } from '@emotion/react';
7
11
  import { easeOut, SlideIn } from '@atlaskit/motion';
8
12
  /**
@@ -6,8 +6,13 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
6
6
  var _excluded = ["children", "iconAfter", "title", "onClick", "cssFn", "isSelected", "id", "component", "testId"];
7
7
  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; }
8
8
  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; }
9
+ /**
10
+ * @jsxRuntime classic
11
+ */
9
12
  /** @jsx jsx */
10
13
  import React, { Fragment, useCallback, useMemo, useState } from 'react';
14
+
15
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
16
  import { jsx } from '@emotion/react';
12
17
  import RightArrow from '@atlaskit/icon/glyph/arrow-right-circle';
13
18
  import { Box, xcss } from '@atlaskit/primitives';
@@ -1,5 +1,10 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { forwardRef } from 'react';
6
+
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
8
  import { css, jsx } from '@emotion/react';
4
9
  import { SELECTION_STYLE_CONTEXT_DO_NOT_USE } from '@atlaskit/menu';
5
10
  import { N10, N500 } from '@atlaskit/theme/colors';
@@ -31,5 +31,5 @@ export interface LoadingItemsProps {
31
31
  *
32
32
  * Loading items conditionally render based on the useShouldNestedElementRender() hook.
33
33
  */
34
- declare const LoadingItems: ({ children, isLoading, fallback, testId, }: LoadingItemsProps) => JSX.Element;
34
+ declare const LoadingItems: ({ children, isLoading, fallback, testId }: LoadingItemsProps) => JSX.Element;
35
35
  export default LoadingItems;
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { type HTMLAttributes } from 'react';
3
6
  export interface NavigationContentProps {
@@ -1,4 +1,7 @@
1
1
  /// <reference types="react" />
2
+ /**
3
+ * @jsxRuntime classic
4
+ */
2
5
  /** @jsx jsx */
3
6
  import { jsx } from '@emotion/react';
4
7
  export interface NavigationHeaderProps {
@@ -12,7 +12,6 @@ export interface NestableNavigationContentProps {
12
12
  * A `testId` prop is provided for specified elements,
13
13
  * which is a unique string that appears as a data attribute `data-testid` in the rendered code,
14
14
  * serving as a hook for automated tests.
15
- *
16
15
  * Will set these elements when defined:
17
16
  * - This wrapper - `{testId}`
18
17
  * - The back item (displayed when inside a nested view) - `{testId}--go-back-item`
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { type Ref } from 'react';
3
6
  import { jsx } from '@emotion/react';