@atlaskit/side-navigation 5.0.1 → 6.0.1

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 (75) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/afm-cc/tsconfig.json +3 -0
  3. package/afm-jira/tsconfig.json +3 -0
  4. package/afm-post-office/tsconfig.json +3 -0
  5. package/dist/cjs/components/Footer/index.compiled.css +3 -0
  6. package/dist/cjs/components/Footer/index.js +22 -19
  7. package/dist/cjs/components/Header/index.js +17 -19
  8. package/dist/cjs/components/LoadingItems/index.compiled.css +7 -0
  9. package/dist/cjs/components/LoadingItems/index.js +9 -24
  10. package/dist/cjs/components/NavigationContent/index.compiled.css +46 -0
  11. package/dist/cjs/components/NavigationContent/index.js +27 -26
  12. package/dist/cjs/components/NavigationFooter/index.compiled.css +1 -0
  13. package/dist/cjs/components/NavigationFooter/index.js +13 -9
  14. package/dist/cjs/components/NavigationHeader/index.compiled.css +5 -0
  15. package/dist/cjs/components/NavigationHeader/index.js +13 -18
  16. package/dist/cjs/components/NestableNavigationContent/index.compiled.css +9 -0
  17. package/dist/cjs/components/NestableNavigationContent/index.js +14 -29
  18. package/dist/cjs/components/NestableNavigationContent/nesting-motion.js +3 -6
  19. package/dist/cjs/components/NestingItem/index.compiled.css +1 -0
  20. package/dist/cjs/components/NestingItem/index.js +17 -20
  21. package/dist/cjs/components/SideNavigation/index.compiled.css +10 -0
  22. package/dist/cjs/components/SideNavigation/index.js +17 -23
  23. package/dist/es2019/components/Footer/index.compiled.css +3 -0
  24. package/dist/es2019/components/Footer/index.js +11 -9
  25. package/dist/es2019/components/Header/index.js +14 -19
  26. package/dist/es2019/components/LoadingItems/index.compiled.css +7 -0
  27. package/dist/es2019/components/LoadingItems/index.js +9 -23
  28. package/dist/es2019/components/NavigationContent/index.compiled.css +46 -0
  29. package/dist/es2019/components/NavigationContent/index.js +22 -26
  30. package/dist/es2019/components/NavigationFooter/index.compiled.css +1 -0
  31. package/dist/es2019/components/NavigationFooter/index.js +9 -7
  32. package/dist/es2019/components/NavigationHeader/index.compiled.css +5 -0
  33. package/dist/es2019/components/NavigationHeader/index.js +10 -17
  34. package/dist/es2019/components/NestableNavigationContent/index.compiled.css +9 -0
  35. package/dist/es2019/components/NestableNavigationContent/index.js +14 -28
  36. package/dist/es2019/components/NestableNavigationContent/nesting-motion.js +2 -8
  37. package/dist/es2019/components/NestingItem/index.compiled.css +1 -0
  38. package/dist/es2019/components/NestingItem/index.js +17 -21
  39. package/dist/es2019/components/SideNavigation/index.compiled.css +10 -0
  40. package/dist/es2019/components/SideNavigation/index.js +9 -21
  41. package/dist/esm/components/Footer/index.compiled.css +3 -0
  42. package/dist/esm/components/Footer/index.js +11 -9
  43. package/dist/esm/components/Header/index.js +14 -19
  44. package/dist/esm/components/LoadingItems/index.compiled.css +7 -0
  45. package/dist/esm/components/LoadingItems/index.js +9 -23
  46. package/dist/esm/components/NavigationContent/index.compiled.css +46 -0
  47. package/dist/esm/components/NavigationContent/index.js +25 -26
  48. package/dist/esm/components/NavigationFooter/index.compiled.css +1 -0
  49. package/dist/esm/components/NavigationFooter/index.js +9 -7
  50. package/dist/esm/components/NavigationHeader/index.compiled.css +5 -0
  51. package/dist/esm/components/NavigationHeader/index.js +10 -17
  52. package/dist/esm/components/NestableNavigationContent/index.compiled.css +9 -0
  53. package/dist/esm/components/NestableNavigationContent/index.js +14 -28
  54. package/dist/esm/components/NestableNavigationContent/nesting-motion.js +2 -8
  55. package/dist/esm/components/NestingItem/index.compiled.css +1 -0
  56. package/dist/esm/components/NestingItem/index.js +17 -21
  57. package/dist/esm/components/SideNavigation/index.compiled.css +10 -0
  58. package/dist/esm/components/SideNavigation/index.js +13 -21
  59. package/dist/types/components/Footer/index.d.ts +2 -2
  60. package/dist/types/components/Header/index.d.ts +3 -4
  61. package/dist/types/components/LoadingItems/index.d.ts +5 -1
  62. package/dist/types/components/NavigationContent/index.d.ts +2 -2
  63. package/dist/types/components/NavigationFooter/index.d.ts +6 -2
  64. package/dist/types/components/NavigationHeader/index.d.ts +1 -6
  65. package/dist/types/components/NestableNavigationContent/index.d.ts +1 -2
  66. package/dist/types/components/NestableNavigationContent/nesting-motion.d.ts +2 -7
  67. package/dist/types-ts4.5/components/Footer/index.d.ts +2 -2
  68. package/dist/types-ts4.5/components/Header/index.d.ts +3 -4
  69. package/dist/types-ts4.5/components/LoadingItems/index.d.ts +5 -1
  70. package/dist/types-ts4.5/components/NavigationContent/index.d.ts +2 -2
  71. package/dist/types-ts4.5/components/NavigationFooter/index.d.ts +6 -2
  72. package/dist/types-ts4.5/components/NavigationHeader/index.d.ts +1 -6
  73. package/dist/types-ts4.5/components/NestableNavigationContent/index.d.ts +1 -2
  74. package/dist/types-ts4.5/components/NestableNavigationContent/nesting-motion.d.ts +2 -7
  75. package/package.json +6 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @atlaskit/side-navigation
2
2
 
3
+ ## 6.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 6.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - [#119150](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/119150)
14
+ [`5ae7ca716c848`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5ae7ca716c848) -
15
+ Migrated from `@emotion/react` to `@compiled/react` in order to improve performance, align with
16
+ the rest of the Atlaskit techstack, and support React 18 Streaming SSR.
17
+
18
+ Please note, in order to use this version of `@atlaskit/side-navigation`, you will need to ensure
19
+ that your bundler is configured to handle `.css` imports correctly. Most bundlers come with
20
+ built-in support for `.css` imports, so you may not need to do anything. If you are using a
21
+ different bundler, please refer to the documentation for that bundler to understand how to handle
22
+ `.css` imports.
23
+
24
+ For more information on the migration, please refer to
25
+ [RFC-73 Migrating our components to Compiled CSS-in-JS](https://community.developer.atlassian.com/t/rfc-73-migrating-our-components-to-compiled-css-in-js/85953).
26
+
3
27
  ## 5.0.1
4
28
 
5
29
  ### Patch Changes
@@ -17,6 +17,9 @@
17
17
  "../src/**/test.*"
18
18
  ],
19
19
  "references": [
20
+ {
21
+ "path": "../../css/afm-cc/tsconfig.json"
22
+ },
20
23
  {
21
24
  "path": "../../ds-lib/afm-cc/tsconfig.json"
22
25
  },
@@ -17,6 +17,9 @@
17
17
  "../src/**/test.*"
18
18
  ],
19
19
  "references": [
20
+ {
21
+ "path": "../../css/afm-jira/tsconfig.json"
22
+ },
20
23
  {
21
24
  "path": "../../ds-lib/afm-jira/tsconfig.json"
22
25
  },
@@ -17,6 +17,9 @@
17
17
  "../src/**/test.*"
18
18
  ],
19
19
  "references": [
20
+ {
21
+ "path": "../../css/afm-post-office/tsconfig.json"
22
+ },
20
23
  {
21
24
  "path": "../../ds-lib/afm-post-office/tsconfig.json"
22
25
  },
@@ -0,0 +1,3 @@
1
+ ._1bsb1k8s{width:1.5rem}
2
+ ._1e0c1o8l{display:inline-block}
3
+ ._4t3i1k8s{height:1.5rem}
@@ -1,25 +1,28 @@
1
+ /* index.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
+ var _typeof = require("@babel/runtime/helpers/typeof");
4
6
  Object.defineProperty(exports, "__esModule", {
5
7
  value: true
6
8
  });
7
9
  exports.default = void 0;
10
+ require("./index.compiled.css");
11
+ var React = _interopRequireWildcard(require("react"));
12
+ var _runtime = require("@compiled/react/runtime");
8
13
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
- var _react = _interopRequireDefault(require("react"));
10
14
  var _warnOnce = _interopRequireDefault(require("@atlaskit/ds-lib/warn-once"));
11
- var _primitives = require("@atlaskit/primitives");
15
+ var _compiled = require("@atlaskit/primitives/compiled");
12
16
  var _colors = require("@atlaskit/theme/colors");
13
17
  var _styles = require("../../common/styles");
14
18
  var _Header = require("../Header");
15
19
  var _Item = require("../Item");
20
+ 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); }
21
+ 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; }
16
22
  /* eslint-disable @repo/internal/react/consistent-props-definitions */
17
-
18
- var iconContainerStyles = (0, _primitives.xcss)({
19
- display: 'inline-block',
20
- width: '1.5rem',
21
- height: '1.5rem'
22
- });
23
+ var styles = {
24
+ iconContainer: "_1e0c1o8l _1bsb1k8s _4t3i1k8s"
25
+ };
23
26
  /**
24
27
  * __Footer__
25
28
  *
@@ -42,7 +45,7 @@ var OldFooter = function OldFooter(props) {
42
45
  },
43
46
  '[data-item-title]': {
44
47
  textAlign: 'center',
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)"
48
+ font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"
46
49
  },
47
50
  '[data-item-description]': {
48
51
  textAlign: 'center',
@@ -76,7 +79,7 @@ var OldFooter = function OldFooter(props) {
76
79
  testId: testId
77
80
  };
78
81
  }(props);
79
- return /*#__PURE__*/_react.default.createElement(_Item.CustomItem, (0, _extends2.default)({}, safeProps, {
82
+ return /*#__PURE__*/React.createElement(_Item.CustomItem, (0, _extends2.default)({}, safeProps, {
80
83
  component: props.component || _Header.Container
81
84
  // eslint-disable-next-line @repo/internal/react/no-unsafe-overrides
82
85
  ,
@@ -95,21 +98,21 @@ var Footer = function Footer(_ref2) {
95
98
  children = _ref2.children,
96
99
  iconBefore = _ref2.iconBefore,
97
100
  testId = _ref2.testId;
98
- return /*#__PURE__*/_react.default.createElement(_primitives.Box, {
101
+ return /*#__PURE__*/React.createElement(_compiled.Box, {
99
102
  padding: "space.100",
100
103
  testId: testId
101
- }, /*#__PURE__*/_react.default.createElement(_primitives.Stack, {
104
+ }, /*#__PURE__*/React.createElement(_compiled.Stack, {
102
105
  space: "space.100",
103
106
  alignInline: "center"
104
- }, /*#__PURE__*/_react.default.createElement(_primitives.Box, {
105
- xcss: iconContainerStyles
106
- }, iconBefore), /*#__PURE__*/_react.default.createElement(_primitives.Stack, {
107
+ }, /*#__PURE__*/React.createElement(_compiled.Box, {
108
+ xcss: styles.iconContainer
109
+ }, iconBefore), /*#__PURE__*/React.createElement(_compiled.Stack, {
107
110
  space: "space.075"
108
- }, /*#__PURE__*/_react.default.createElement(_primitives.Text, {
111
+ }, /*#__PURE__*/React.createElement(_compiled.Text, {
109
112
  size: "UNSAFE_small",
110
113
  align: "center",
111
114
  color: "inherit"
112
- }, children), description && /*#__PURE__*/_react.default.createElement(_primitives.Text, {
115
+ }, children), description && /*#__PURE__*/React.createElement(_compiled.Text, {
113
116
  size: "UNSAFE_small",
114
117
  as: "p",
115
118
  align: "center",
@@ -134,7 +137,7 @@ var FooterFacade = function FooterFacade(_ref3) {
134
137
  cssFn = _ref3.cssFn,
135
138
  onClick = _ref3.onClick;
136
139
  if (!useDeprecatedApi) {
137
- return /*#__PURE__*/_react.default.createElement(Footer, {
140
+ return /*#__PURE__*/React.createElement(Footer, {
138
141
  iconBefore: iconBefore,
139
142
  description: description,
140
143
  testId: testId
@@ -143,7 +146,7 @@ var FooterFacade = function FooterFacade(_ref3) {
143
146
  if (typeof process !== 'undefined' && process.env.NODE_ENV !== 'production' && process.env.NODE_ENV !== 'CI') {
144
147
  (0, _warnOnce.default)('The `@atlaskit/side-navigation` Footer has simplified its API, removing support for the `component`, `cssFn` and `onClick` props.\n\nThese props will stop working in a future major release. Reach out to #help-design-system on slack for help.');
145
148
  }
146
- return /*#__PURE__*/_react.default.createElement(OldFooter, {
149
+ return /*#__PURE__*/React.createElement(OldFooter, {
147
150
  onClick: onClick,
148
151
  component: component
149
152
  // eslint-disable-next-line @repo/internal/react/no-unsafe-overrides
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ var _typeof = require("@babel/runtime/helpers/typeof");
4
5
  Object.defineProperty(exports, "__esModule", {
5
6
  value: true
6
7
  });
@@ -8,23 +9,14 @@ exports.default = exports.Container = void 0;
8
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
11
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
11
- var _react = require("react");
12
- var _react2 = require("@emotion/react");
12
+ var _react = _interopRequireWildcard(require("react"));
13
13
  var _colors = require("@atlaskit/theme/colors");
14
14
  var _styles = require("../../common/styles");
15
15
  var _Item = require("../Item");
16
16
  var _excluded = ["children", "data-testid"],
17
17
  _excluded2 = ["children"];
18
- /**
19
- * @jsxRuntime classic
20
- * @jsx jsx
21
- */
22
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
23
- var containerStyles = (0, _react2.css)({
24
- display: 'block',
25
- position: 'relative'
26
- });
27
-
18
+ 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
+ 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; }
28
20
  /**
29
21
  * __Container__
30
22
  *
@@ -55,10 +47,16 @@ var Container = exports.Container = function Container(_ref) {
55
47
  disabled: disabled
56
48
  };
57
49
  }(props);
58
- return (0, _react2.jsx)("div", (0, _extends2.default)({
59
- "data-testid": testId,
60
- css: containerStyles
61
- }, safeProps), children);
50
+ return (
51
+ /*#__PURE__*/
52
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
53
+ _react.default.createElement("div", (0, _extends2.default)({
54
+ "data-testid": testId,
55
+ style: {
56
+ position: 'relative'
57
+ }
58
+ }, safeProps), children)
59
+ );
62
60
  };
63
61
  /**
64
62
  * __Header__
@@ -71,7 +69,7 @@ var Header = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
71
69
  return (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({
72
70
  userSelect: 'auto'
73
71
  }, '[data-item-title]', {
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)",
72
+ font: "var(--ds-font-heading-xsmall, normal 600 14px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
75
73
  color: "var(--ds-text, ".concat(_colors.N500, ")")
76
74
  }), 'div&:hover', {
77
75
  backgroundColor: "var(--ds-background-neutral-subtle, transparent)",
@@ -81,7 +79,7 @@ var Header = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
81
79
  color: "var(--ds-text, ".concat(_colors.N500, ")")
82
80
  });
83
81
  }, props.cssFn);
84
- return (0, _react2.jsx)(_Item.CustomItem, (0, _extends2.default)({}, props, {
82
+ return /*#__PURE__*/_react.default.createElement(_Item.CustomItem, (0, _extends2.default)({}, props, {
85
83
  ref: ref,
86
84
  component: props.component || Container
87
85
  // eslint-disable-next-line @repo/internal/react/no-unsafe-overrides
@@ -95,7 +93,7 @@ var Header = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
95
93
  render: function render(_, _ref4) {
96
94
  var children = _ref4.children,
97
95
  props = (0, _objectWithoutProperties2.default)(_ref4, _excluded2);
98
- return (0, _react2.jsx)("h2", props, children);
96
+ return /*#__PURE__*/_react.default.createElement("h2", props, children);
99
97
  }
100
98
  }
101
99
  }
@@ -0,0 +1,7 @@
1
+ ._154iidpf{top:0}
2
+ ._1ltvidpf{left:0}
3
+ ._1pbycs5v{z-index:2}
4
+ ._1pbykb7n{z-index:1}
5
+ ._1xi2idpf{right:0}
6
+ ._kqswpfqs{position:static}
7
+ ._kqswstnw{position:absolute}
@@ -1,3 +1,4 @@
1
+ /* index.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,30 +6,14 @@ Object.defineProperty(exports, "__esModule", {
5
6
  value: true
6
7
  });
7
8
  exports.default = void 0;
9
+ require("./index.compiled.css");
10
+ var _runtime = require("@compiled/react/runtime");
8
11
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
- var _react = require("@emotion/react");
12
+ var _react = _interopRequireDefault(require("react"));
10
13
  var _motion = require("@atlaskit/motion");
11
14
  var _context = require("../NestableNavigationContent/context");
12
- /**
13
- * @jsxRuntime classic
14
- * @jsx jsx
15
- */
16
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
17
-
18
- var baseMotionStyles = (0, _react.css)({
19
- position: 'absolute',
20
- zIndex: 1,
21
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/no-physical-properties
22
- top: 0,
23
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/no-physical-properties
24
- right: 0,
25
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/no-physical-properties
26
- left: 0
27
- });
28
- var enteringStyles = (0, _react.css)({
29
- position: 'static',
30
- zIndex: 2
31
- });
15
+ var baseMotionStyles = null;
16
+ var enteringStyles = null;
32
17
 
33
18
  /**
34
19
  * __Loading items__
@@ -45,13 +30,13 @@ var LoadingItems = function LoadingItems(_ref) {
45
30
  if (!shouldRender) {
46
31
  return children;
47
32
  }
48
- return (0, _react.jsx)(_motion.ExitingPersistence, null, (0, _react.jsx)(_motion.FadeIn, {
33
+ return /*#__PURE__*/_react.default.createElement(_motion.ExitingPersistence, null, /*#__PURE__*/_react.default.createElement(_motion.FadeIn, {
49
34
  key: "loading-section-".concat(isLoading),
50
35
  duration: "medium"
51
36
  }, function (motion, state) {
52
- return (0, _react.jsx)("span", (0, _extends2.default)({}, motion, {
37
+ return /*#__PURE__*/_react.default.createElement("span", (0, _extends2.default)({}, motion, {
53
38
  "data-testid": testId && "".concat(testId, "--").concat(state),
54
- css: [baseMotionStyles, state === 'entering' && enteringStyles]
39
+ className: (0, _runtime.ax)(["_kqswstnw _1pbykb7n _154iidpf _1xi2idpf _1ltvidpf", state === 'entering' && "_kqswpfqs _1pbycs5v"])
55
40
  }), isLoading ? fallback : children);
56
41
  }));
57
42
  };
@@ -0,0 +1,46 @@
1
+
2
+ ._14mjgqwt:after{border-radius:var(--ds-border-radius-050,2px)}
3
+ ._rfx3gqwt:before{border-radius:var(--ds-border-radius-050,2px)}._12l2u2gc{margin-inline-end:var(--ds-space-100,8px)}
4
+ ._18m915vq{overflow-y:hidden}
5
+ ._18m91wug{overflow-y:auto}
6
+ ._18poh2mm:after{position:relative}
7
+ ._18postnw:after{position:absolute}
8
+ ._1bqqcs5v:after{z-index:2}
9
+ ._1bqqkb7n:after{z-index:1}
10
+ ._1bsb1osq{width:100%}
11
+ ._1cs8stnw:before{position:absolute}
12
+ ._1czdftgi:after{inset-inline-end:8px}
13
+ ._1e0c1txw{display:flex}
14
+ ._1enwftgi:before{inset-inline-end:8px}
15
+ ._1enwidpf:before{inset-inline-end:0}
16
+ ._1g0vcs5v:before{z-index:2}
17
+ ._1g0vkb7n:before{z-index:1}
18
+ ._1gufidpf:after{inset-block-end:0}
19
+ ._1hfk1q2g:after{background-color:var(--ds-menu-scroll-indicator-color,var(--ds-surface,#fff))}
20
+ ._1hfk1x3l:after{background-color:var(--_1uyno6z)}
21
+ ._1kt9b3bt:before{content:""}
22
+ ._1l6bpxbi [data-ds--menu--heading-item]{margin-block-start:var(--ds-space-200,1pc)}
23
+ ._1p3h12x7 [data-ds--menu--heading-item]{margin-block-end:var(--ds-space-075,6px)}
24
+ ._1pfhidpf{margin-block-start:0}
25
+ ._1pfhv77o{margin-block-start:var(--ds-space-025,2px)}
26
+ ._1qdgyh40:after{height:2px}
27
+ ._1reo15vq{overflow-x:hidden}
28
+ ._1reo1wug{overflow-x:auto}
29
+ ._1rus1q2g:before{background-color:var(--ds-menu-scroll-indicator-color,var(--ds-surface,#fff))}
30
+ ._1rus1x3l:before{background-color:var(--_1uyno6z)}
31
+ ._1ywu1ule:after{display:block}
32
+ ._2lx21bp4{flex-direction:column}
33
+ ._3mxo1wug:after{margin-block-start:auto}
34
+ ._4t3i1osq{height:100%}
35
+ ._aetrb3bt:after{content:""}
36
+ ._ahbqu2gc{margin-inline-start:var(--ds-space-100,8px)}
37
+ ._auo4rdoj [data-ds--menu--skeleton-heading-item]{margin-block-end:9px}
38
+ ._cfu11ule:before{display:block}
39
+ ._g0nfu2gc:after{inset-inline-start:var(--ds-space-100,8px)}
40
+ ._hp2110yn [data-ds--menu--skeleton-heading-item]{margin-block-start:25px}
41
+ ._kfgtyh40:before{height:2px}
42
+ ._kqswh2mm{position:relative}
43
+ ._tua5idpf:after{flex-shrink:0}
44
+ ._vchhusvi{box-sizing:border-box}
45
+ ._z5wtidpf:before{inset-inline-start:0}
46
+ ._z5wtu2gc:before{inset-inline-start:var(--ds-space-100,8px)}
@@ -1,21 +1,28 @@
1
+ /* index.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
+ var _typeof = require("@babel/runtime/helpers/typeof");
4
6
  Object.defineProperty(exports, "__esModule", {
5
7
  value: true
6
8
  });
7
9
  exports.default = void 0;
8
- var _react = require("react");
9
- var _react2 = require("@emotion/react");
10
+ require("./index.compiled.css");
11
+ var _runtime = require("@compiled/react/runtime");
12
+ var _react = _interopRequireWildcard(require("react"));
10
13
  var _useScrollbarWidth = _interopRequireDefault(require("@atlaskit/ds-lib/use-scrollbar-width"));
11
14
  var _context = require("../NestableNavigationContent/context");
12
- var _styles = require("./styles");
13
- /**
14
- * @jsxRuntime classic
15
- * @jsx jsx
16
- */
17
-
18
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
15
+ 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); }
16
+ 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; }
17
+ var outerContainerCSS = null;
18
+ var innerContainerCSS = {
19
+ basic: "_1reo1wug _18m91wug _1e0c1txw _vchhusvi _1bsb1osq _kqswh2mm _2lx21bp4 _14mjgqwt _1ywu1ule _1qdgyh40 _18poh2mm _1bqqcs5v _tua5idpf _1hfk1q2g _aetrb3bt _3mxo1wug",
20
+ topScrollIndicator: "_rfx3gqwt _cfu11ule _kfgtyh40 _1cs8stnw _1g0vcs5v _1rus1q2g _1kt9b3bt _1enwidpf _z5wtidpf"
21
+ };
22
+ var containerCSS = {
23
+ basic: "_kqswh2mm _12l2u2gc _ahbqu2gc _1pfhidpf _1p3h12x7 _1l6bpxbi _auo4rdoj _hp2110yn",
24
+ marginBlockStart: "_1pfhv77o"
25
+ };
19
26
 
20
27
  /**
21
28
  * __Navigation content__
@@ -36,24 +43,18 @@ var NavigationContent = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref
36
43
  return children;
37
44
  }
38
45
  var typedRef = ref;
39
- return (0, _react2.jsx)("div", {
40
- ref: typedRef
41
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
42
- ,
43
- css: (0, _styles.outerContainerCSS)({
44
- showTopScrollIndicator: showTopScrollIndicator,
45
- scrollbarWidth: scrollbar.width
46
- }),
47
- "data-testid": testId
48
- }, (0, _react2.jsx)("div", {
46
+ return /*#__PURE__*/_react.default.createElement("div", {
47
+ ref: typedRef,
48
+ "data-testid": testId,
49
+ className: (0, _runtime.ax)(["_1reo15vq _18m915vq _1e0c1txw _4t3i1osq _kqswh2mm _rfx3gqwt _cfu11ule _kfgtyh40 _1cs8stnw _1g0vkb7n _1rus1x3l _1kt9b3bt _1enwftgi _z5wtu2gc _14mjgqwt _1ywu1ule _1qdgyh40 _18postnw _1bqqkb7n _tua5idpf _1hfk1x3l _aetrb3bt _1gufidpf _1czdftgi _g0nfu2gc"]),
50
+ style: {
51
+ "--_1uyno6z": (0, _runtime.ix)("var(--ds-menu-seperator-color, ".concat("var(--ds-border, #091E4224)", ")"))
52
+ }
53
+ }, /*#__PURE__*/_react.default.createElement("div", {
49
54
  ref: scrollbar.ref,
50
- css: (0, _styles.innerContainerCSS)({
51
- showTopScrollIndicator: showTopScrollIndicator
52
- })
53
- }, (0, _react2.jsx)("div", {
54
- css: (0, _styles.containerCSS)({
55
- showTopScrollIndicator: showTopScrollIndicator
56
- })
55
+ className: (0, _runtime.ax)([innerContainerCSS.basic, !showTopScrollIndicator && innerContainerCSS.topScrollIndicator])
56
+ }, /*#__PURE__*/_react.default.createElement("div", {
57
+ className: (0, _runtime.ax)([containerCSS.basic, showTopScrollIndicator && containerCSS.marginBlockStart])
57
58
  }, children)));
58
59
  });
59
60
  var _default = exports.default = NavigationContent;
@@ -0,0 +1 @@
1
+ ._kqswh2mm{position:relative}
@@ -1,16 +1,20 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
1
2
  "use strict";
2
3
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ var _typeof = require("@babel/runtime/helpers/typeof");
4
5
  Object.defineProperty(exports, "__esModule", {
5
6
  value: true
6
7
  });
7
8
  exports.default = void 0;
8
- var _react = _interopRequireDefault(require("react"));
9
- var _primitives = require("@atlaskit/primitives");
10
- var navigationFooterStyles = (0, _primitives.xcss)({
11
- position: 'relative'
12
- });
13
-
9
+ require("./index.compiled.css");
10
+ var React = _interopRequireWildcard(require("react"));
11
+ var _runtime = require("@compiled/react/runtime");
12
+ var _compiled = require("@atlaskit/primitives/compiled");
13
+ 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); }
14
+ 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; }
15
+ var styles = {
16
+ navigationFooter: "_kqswh2mm"
17
+ };
14
18
  /**
15
19
  * __Navigation footer__
16
20
  *
@@ -21,10 +25,10 @@ var navigationFooterStyles = (0, _primitives.xcss)({
21
25
  */
22
26
  var NavigationFooter = function NavigationFooter(_ref) {
23
27
  var children = _ref.children;
24
- return /*#__PURE__*/_react.default.createElement(_primitives.Box, {
28
+ return /*#__PURE__*/React.createElement(_compiled.Box, {
25
29
  padding: "space.100",
26
30
  paddingBlockEnd: "space.200",
27
- xcss: navigationFooterStyles
31
+ xcss: styles.navigationFooter
28
32
  }, children);
29
33
  };
30
34
  var _default = exports.default = NavigationFooter;
@@ -0,0 +1,5 @@
1
+ ._1e0c1ule{display:block}
2
+ ._1q511ejb{padding-block-start:var(--ds-space-300,24px)}
3
+ ._85i5u2gc{padding-block-end:var(--ds-space-100,8px)}
4
+ ._bozgu2gc{padding-inline-start:var(--ds-space-100,8px)}
5
+ ._y4tiu2gc{padding-inline-end:var(--ds-space-100,8px)}
@@ -1,25 +1,20 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
1
2
  "use strict";
2
3
 
4
+ var _typeof = require("@babel/runtime/helpers/typeof");
3
5
  Object.defineProperty(exports, "__esModule", {
4
6
  value: true
5
7
  });
6
8
  exports.default = void 0;
7
- var _react = require("@emotion/react");
8
- var _primitives = require("@atlaskit/primitives");
9
- /**
10
- * @jsxRuntime classic
11
- * @jsx jsx
12
- */
13
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
14
-
15
- var navigationFooterStyles = (0, _primitives.xcss)({
16
- display: 'block',
17
- paddingTop: 'space.100',
18
- paddingRight: 'space.100',
19
- paddingBottom: 'space.100',
20
- paddingLeft: 'space.100',
21
- paddingBlockStart: 'space.300'
22
- });
9
+ require("./index.compiled.css");
10
+ var React = _interopRequireWildcard(require("react"));
11
+ var _runtime = require("@compiled/react/runtime");
12
+ var _compiled = require("@atlaskit/primitives/compiled");
13
+ 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); }
14
+ 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; }
15
+ var styles = {
16
+ navigationFooter: "_1e0c1ule _85i5u2gc _1q511ejb _y4tiu2gc _bozgu2gc"
17
+ };
23
18
  /**
24
19
  * __Navigation header__
25
20
  *
@@ -30,8 +25,8 @@ var navigationFooterStyles = (0, _primitives.xcss)({
30
25
  */
31
26
  var NavigationHeader = function NavigationHeader(props) {
32
27
  var children = props.children;
33
- return (0, _react.jsx)(_primitives.Box, {
34
- xcss: navigationFooterStyles,
28
+ return /*#__PURE__*/React.createElement(_compiled.Box, {
29
+ xcss: styles.navigationFooter,
35
30
  "data-navheader": true
36
31
  }, children);
37
32
  };
@@ -0,0 +1,9 @@
1
+ ._12ji1r31{outline-color:currentColor}
2
+ ._12y31o36{outline-width:medium}
3
+ ._1bsb1osq{width:100%}
4
+ ._1e0c1txw{display:flex}
5
+ ._1qu2glyw{outline-style:none}
6
+ ._2lx21bp4{flex-direction:column}
7
+ ._4t3i1osq{height:100%}
8
+ ._kqswh2mm{position:relative}
9
+ ._kqswstnw{position:absolute}