@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
@@ -1,18 +1,11 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
- import { jsx } from '@emotion/react';
7
- import { Box, xcss } from '@atlaskit/primitives';
8
- const navigationFooterStyles = xcss({
9
- display: 'block',
10
- paddingTop: 'space.100',
11
- paddingRight: 'space.100',
12
- paddingBottom: 'space.100',
13
- paddingLeft: 'space.100',
14
- paddingBlockStart: 'space.300'
15
- });
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./index.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
5
+ import { Box } from '@atlaskit/primitives/compiled';
6
+ const styles = {
7
+ navigationFooter: "_1e0c1ule _85i5u2gc _1q511ejb _y4tiu2gc _bozgu2gc"
8
+ };
16
9
  /**
17
10
  * __Navigation header__
18
11
  *
@@ -25,8 +18,8 @@ const NavigationHeader = props => {
25
18
  const {
26
19
  children
27
20
  } = props;
28
- return jsx(Box, {
29
- xcss: navigationFooterStyles,
21
+ return /*#__PURE__*/React.createElement(Box, {
22
+ xcss: styles.navigationFooter,
30
23
  "data-navheader": true
31
24
  }, children);
32
25
  };
@@ -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}
@@ -1,12 +1,8 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
1
2
  import _extends from "@babel/runtime/helpers/extends";
2
- /**
3
- * @jsxRuntime classic
4
- * @jsx jsx
5
- */
3
+ import "./index.compiled.css";
4
+ import { ax, ix } from "@compiled/react/runtime";
6
5
  import React, { 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
9
- import { css, jsx } from '@emotion/react';
10
6
  import { ExitingPersistence } from '@atlaskit/motion';
11
7
  import { fg } from '@atlaskit/platform-feature-flags';
12
8
  import { GoBackItem as GoBackButton } from '../Item';
@@ -17,18 +13,8 @@ import { NestingMotion } from './nesting-motion';
17
13
  // Named so ERT doesn't pick up the override name as a type.
18
14
 
19
15
  export const ROOT_ID = 'ATLASKIT_NESTED_ROOT';
20
- const nestableNavigationContentStyles = css({
21
- height: '100%',
22
- position: 'relative',
23
- outline: 'none'
24
- });
25
- const nestingRootStyles = css({
26
- display: 'flex',
27
- width: '100%',
28
- height: '100%',
29
- position: 'absolute',
30
- flexDirection: 'column'
31
- });
16
+ const nestableNavigationContentStyles = null;
17
+ const nestingRootStyles = null;
32
18
 
33
19
  /**
34
20
  * __Nestable navigation content__
@@ -60,7 +46,7 @@ const NestableNavigationContent = props => {
60
46
  const [activeParentId, setActiveParentId] = useState('');
61
47
  const [focusGoBackButton, setFocusGoBackButton] = useState(false);
62
48
  const shouldFocus = isDefaultFocusControl && fg('platform-side-navigation-keyboard-focus');
63
- const renderGoBackItem = overrides && overrides.GoBackItem && overrides.GoBackItem.render ? overrides.GoBackItem.render : props => jsx(GoBackButton, props, "Go back");
49
+ const renderGoBackItem = overrides && overrides.GoBackItem && overrides.GoBackItem.render ? overrides.GoBackItem.render : props => /*#__PURE__*/React.createElement(GoBackButton, props, "Go back");
64
50
  const {
65
51
  childIdsRef
66
52
  } = useChildIds(currentStackId, committedStack, onUnknownNest);
@@ -149,13 +135,13 @@ const NestableNavigationContent = props => {
149
135
  containerRef.current && containerRef.current.focus();
150
136
  }
151
137
  };
152
- return jsx(Fragment, null, jsx("div", {
138
+ return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
153
139
  "data-testid": testId,
154
- css: nestableNavigationContentStyles,
155
140
  ref: containerRef,
156
141
  tabIndex: -1,
157
- onClick: manageFocus
158
- }, jsx(ExitingPersistence, null, jsx(NestingMotion
142
+ onClick: manageFocus,
143
+ className: ax(["_12ji1r31 _1qu2glyw _12y31o36 _4t3i1osq _kqswh2mm"])
144
+ }, /*#__PURE__*/React.createElement(ExitingPersistence, null, /*#__PURE__*/React.createElement(NestingMotion
159
145
  // Key is needed to have a unique react instance per stack name.
160
146
  // This enables us to easily animate it in & out with exiting persistence.
161
147
  , {
@@ -163,13 +149,13 @@ const NestableNavigationContent = props => {
163
149
  enterFrom: transition === 'nesting' ? 'right' : 'left',
164
150
  exitTo: transition === 'nesting' ? 'left' : 'right',
165
151
  testId: testId && `${testId}-anim`
166
- }, motion => jsx("div", _extends({
167
- css: nestingRootStyles
168
- }, motion), jsx(NestedContext.Provider, {
152
+ }, motion => /*#__PURE__*/React.createElement("div", _extends({}, motion, {
153
+ className: ax(["_1e0c1txw _1bsb1osq _4t3i1osq _kqswstnw _2lx21bp4", motion.className])
154
+ }), /*#__PURE__*/React.createElement(NestedContext.Provider, {
169
155
  // This provider is inside the NestingMotion to ensure it keeps a stale
170
156
  // reference to the previous value.
171
157
  value: context
172
- }, jsx(NestingItem, {
158
+ }, /*#__PURE__*/React.createElement(NestingItem, {
173
159
  title: "",
174
160
  id: ROOT_ID
175
161
  }, children)))))));
@@ -1,10 +1,4 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
-
6
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
- import { jsx } from '@emotion/react';
1
+ import React from 'react';
8
2
  import { SlideIn } from '@atlaskit/motion';
9
3
  /**
10
4
  * @internal
@@ -16,7 +10,7 @@ export const NestingMotion = props => {
16
10
  exitTo,
17
11
  testId
18
12
  } = props;
19
- return jsx(SlideIn, {
13
+ return /*#__PURE__*/React.createElement(SlideIn, {
20
14
  exitTo: exitTo,
21
15
  enterFrom: enterFrom,
22
16
  animationTimingFunction: "ease-out"
@@ -0,0 +1 @@
1
+ ._1e0c1nu9{display:inline}
@@ -1,15 +1,11 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
1
2
  import _extends from "@babel/runtime/helpers/extends";
2
- /**
3
- * @jsxRuntime classic
4
- * @jsx jsx
5
- */
3
+ import "./index.compiled.css";
4
+ import { ax, ix } from "@compiled/react/runtime";
6
5
  import React, { 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
9
- import { jsx } from '@emotion/react';
10
6
  import ArrowRightIcon from '@atlaskit/icon/core/migration/arrow-right--arrow-right-circle';
11
7
  import { fg } from '@atlaskit/platform-feature-flags';
12
- import { Box, xcss } from '@atlaskit/primitives';
8
+ import { Box } from '@atlaskit/primitives/compiled';
13
9
  import { N10 } from '@atlaskit/theme/colors';
14
10
  import { overrideStyleFunction } from '../../common/styles';
15
11
  import { ButtonItem, CustomItem, NavigationContent } from '../index';
@@ -17,9 +13,9 @@ import { ROOT_ID } from '../NestableNavigationContent';
17
13
  import { NestedContext, useNestedContext } from '../NestableNavigationContent/context';
18
14
  import { useChildIdsEffect } from '../utils/hooks';
19
15
  import { nestingItemStyle } from './styles';
20
- const iconContainerStyles = xcss({
21
- display: 'inline'
22
- });
16
+ const styles = {
17
+ iconContainer: "_1e0c1nu9"
18
+ };
23
19
 
24
20
  // Doesn't extend from ButtonItemProps because it blows ERT up.
25
21
 
@@ -123,12 +119,12 @@ const NestingItem = props => {
123
119
  onClick && onClick(e);
124
120
  }, [isInteracted, onClick, onNest, id]);
125
121
  if (currentStackId === id) {
126
- return jsx(NestedContext.Provider, {
122
+ return /*#__PURE__*/React.createElement(NestedContext.Provider, {
127
123
  value: context
128
- }, stack.length >= 1 && jsx(Box, {
124
+ }, stack.length >= 1 && /*#__PURE__*/React.createElement(Box, {
129
125
  paddingBlock: "space.075",
130
126
  paddingInline: "space.100"
131
- }, backButton), jsx(NavigationContent, {
127
+ }, backButton), /*#__PURE__*/React.createElement(NavigationContent, {
132
128
  testId: testId,
133
129
  showTopScrollIndicator: forceShowTopScrollIndicator || stack.length >= 1
134
130
  }, children));
@@ -137,15 +133,15 @@ const NestingItem = props => {
137
133
  return children;
138
134
  }
139
135
  const componentProps = {
140
- iconAfter: jsx(Fragment, null, iconAfter ? jsx(Box, {
141
- xcss: iconContainerStyles,
136
+ iconAfter: /*#__PURE__*/React.createElement(Fragment, null, iconAfter ? /*#__PURE__*/React.createElement(Box, {
137
+ xcss: styles.iconContainer,
142
138
  "data-custom-icon": true,
143
139
  as: "span"
144
- }, iconAfter) : null, jsx(Box, {
140
+ }, iconAfter) : null, /*#__PURE__*/React.createElement(Box, {
145
141
  "data-right-arrow": true,
146
- xcss: iconContainerStyles,
142
+ xcss: styles.iconContainer,
147
143
  as: "span"
148
- }, jsx(ArrowRightIcon, {
144
+ }, /*#__PURE__*/React.createElement(ArrowRightIcon, {
149
145
  testId: testId && `${testId}--item--right-arrow`,
150
146
  color: "currentColor",
151
147
  LEGACY_secondaryColor: `var(--ds-surface, ${N10})`,
@@ -159,14 +155,14 @@ const NestingItem = props => {
159
155
  cssFn: mergedStyles
160
156
  };
161
157
  if (component) {
162
- return jsx(CustomItem, _extends({
158
+ return /*#__PURE__*/React.createElement(CustomItem, _extends({
163
159
  ref: isForwardRefCheck(component) ? parentItemRef : null
164
160
  }, componentProps, {
165
161
  //@ts-expect-error TODO Fix legit TypeScript 3.9.6 improved inference error
166
162
  component: component
167
163
  }));
168
164
  }
169
- return jsx(ButtonItem, _extends({
165
+ return /*#__PURE__*/React.createElement(ButtonItem, _extends({
170
166
  ref: activeParentRef
171
167
  }, componentProps));
172
168
  };
@@ -0,0 +1,10 @@
1
+ ._18m915vq{overflow-y:hidden}
2
+ ._1bsb1osq{width:100%}
3
+ ._1e0c1txw{display:flex}
4
+ ._1reo15vq{overflow-x:hidden}
5
+ ._1ul9p3fh{min-width:15pc}
6
+ ._2lx21bp4{flex-direction:column}
7
+ ._4t3i1osq{height:100%}
8
+ ._bfhkw70a{background-color:var(--ds-surface,#fafbfc)}
9
+ ._kqswh2mm{position:relative}
10
+ ._syazjjyb{color:var(--ds-text-subtle,#42526e)}
@@ -1,26 +1,13 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
1
2
  import _extends from "@babel/runtime/helpers/extends";
2
- /**
3
- * @jsxRuntime classic
4
- * @jsx jsx
5
- */
3
+ import "./index.compiled.css";
4
+ import * as React from 'react';
5
+ import { ax, ix } from "@compiled/react/runtime";
6
6
  import { forwardRef } from 'react';
7
-
8
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
- import { css, jsx } from '@emotion/react';
10
7
  import { SELECTION_STYLE_CONTEXT_DO_NOT_USE } from '@atlaskit/menu';
11
8
  import { N10, N500 } from '@atlaskit/theme/colors';
12
9
  const sidebarMinWidth = '240px';
13
- const sideNavStyles = css({
14
- display: 'flex',
15
- width: '100%',
16
- minWidth: sidebarMinWidth,
17
- height: '100%',
18
- position: 'relative',
19
- flexDirection: 'column',
20
- backgroundColor: `var(--ds-surface, ${N10})`,
21
- color: `var(--ds-text-subtle, ${N500})`,
22
- overflow: 'hidden'
23
- });
10
+ const sideNavStyles = null;
24
11
 
25
12
  /**
26
13
  * __Side navigation__
@@ -39,17 +26,18 @@ const SideNavigation = /*#__PURE__*/forwardRef((props, ref) => {
39
26
  isServer = false,
40
27
  isSSRPlaceholderEnabled = false
41
28
  } = props;
42
- return jsx("nav", _extends({
29
+ return /*#__PURE__*/React.createElement("nav", _extends({
43
30
  ref: ref,
44
31
  "data-testid": testId,
45
32
  "aria-label": label,
46
- css: sideNavStyles,
47
33
  "data-vc": `side-navigation${isServer ? '-ssr' : ''}`
48
34
  }, isServer && isSSRPlaceholderEnabled && {
49
35
  'data-ssr-placeholder': 'side-navigation-placeholder'
50
36
  }, !isServer && isSSRPlaceholderEnabled && {
51
37
  'data-ssr-placeholder-replace': 'side-navigation-placeholder'
52
- }), jsx(SELECTION_STYLE_CONTEXT_DO_NOT_USE.Provider, {
38
+ }, {
39
+ className: ax(["_1reo15vq _18m915vq _1e0c1txw _1bsb1osq _1ul9p3fh _4t3i1osq _kqswh2mm _2lx21bp4 _bfhkw70a _syazjjyb"])
40
+ }), /*#__PURE__*/React.createElement(SELECTION_STYLE_CONTEXT_DO_NOT_USE.Provider, {
53
41
  value: "notch"
54
42
  }, children));
55
43
  });
@@ -0,0 +1,3 @@
1
+ ._1bsb1k8s{width:1.5rem}
2
+ ._1e0c1o8l{display:inline-block}
3
+ ._4t3i1k8s{height:1.5rem}
@@ -1,17 +1,19 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
1
2
  import _extends from "@babel/runtime/helpers/extends";
3
+ import "./index.compiled.css";
4
+ import * as React from 'react';
5
+ import { ax, ix } from "@compiled/react/runtime";
2
6
  /* eslint-disable @repo/internal/react/consistent-props-definitions */
3
- import React from 'react';
7
+
4
8
  import warnOnce from '@atlaskit/ds-lib/warn-once';
5
- import { Box, Stack, Text, xcss } from '@atlaskit/primitives';
9
+ import { Box, Stack, Text } from '@atlaskit/primitives/compiled';
6
10
  import { N500 } from '@atlaskit/theme/colors';
7
11
  import { overrideStyleFunction } from '../../common/styles';
8
12
  import { Container } from '../Header';
9
13
  import { CustomItem } from '../Item';
10
- var iconContainerStyles = xcss({
11
- display: 'inline-block',
12
- width: '1.5rem',
13
- height: '1.5rem'
14
- });
14
+ var styles = {
15
+ iconContainer: "_1e0c1o8l _1bsb1k8s _4t3i1k8s"
16
+ };
15
17
  /**
16
18
  * __Footer__
17
19
  *
@@ -34,7 +36,7 @@ var OldFooter = function OldFooter(props) {
34
36
  },
35
37
  '[data-item-title]': {
36
38
  textAlign: 'center',
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)"
39
+ font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"
38
40
  },
39
41
  '[data-item-description]': {
40
42
  textAlign: 'center',
@@ -94,7 +96,7 @@ var Footer = function Footer(_ref2) {
94
96
  space: "space.100",
95
97
  alignInline: "center"
96
98
  }, /*#__PURE__*/React.createElement(Box, {
97
- xcss: iconContainerStyles
99
+ xcss: styles.iconContainer
98
100
  }, iconBefore), /*#__PURE__*/React.createElement(Stack, {
99
101
  space: "space.075"
100
102
  }, /*#__PURE__*/React.createElement(Text, {
@@ -3,21 +3,10 @@ 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
- /**
7
- * @jsxRuntime classic
8
- * @jsx jsx
9
- */
10
- import { forwardRef } from 'react';
11
-
12
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
13
- import { css, jsx } from '@emotion/react';
6
+ import React, { forwardRef } from 'react';
14
7
  import { N500 } from '@atlaskit/theme/colors';
15
8
  import { overrideStyleFunction } from '../../common/styles';
16
9
  import { CustomItem } from '../Item';
17
- var containerStyles = css({
18
- display: 'block',
19
- position: 'relative'
20
- });
21
10
 
22
11
  /**
23
12
  * __Container__
@@ -49,10 +38,16 @@ export var Container = function Container(_ref) {
49
38
  disabled: disabled
50
39
  };
51
40
  }(props);
52
- return jsx("div", _extends({
53
- "data-testid": testId,
54
- css: containerStyles
55
- }, safeProps), children);
41
+ return (
42
+ /*#__PURE__*/
43
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
44
+ React.createElement("div", _extends({
45
+ "data-testid": testId,
46
+ style: {
47
+ position: 'relative'
48
+ }
49
+ }, safeProps), children)
50
+ );
56
51
  };
57
52
  /**
58
53
  * __Header__
@@ -65,7 +60,7 @@ var Header = /*#__PURE__*/forwardRef(function (props, ref) {
65
60
  return _defineProperty(_defineProperty(_defineProperty({
66
61
  userSelect: 'auto'
67
62
  }, '[data-item-title]', {
68
- 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)",
63
+ font: "var(--ds-font-heading-xsmall, normal 600 14px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
69
64
  color: "var(--ds-text, ".concat(N500, ")")
70
65
  }), 'div&:hover', {
71
66
  backgroundColor: "var(--ds-background-neutral-subtle, transparent)",
@@ -75,7 +70,7 @@ var Header = /*#__PURE__*/forwardRef(function (props, ref) {
75
70
  color: "var(--ds-text, ".concat(N500, ")")
76
71
  });
77
72
  }, props.cssFn);
78
- return jsx(CustomItem, _extends({}, props, {
73
+ return /*#__PURE__*/React.createElement(CustomItem, _extends({}, props, {
79
74
  ref: ref,
80
75
  component: props.component || Container
81
76
  // eslint-disable-next-line @repo/internal/react/no-unsafe-overrides
@@ -89,7 +84,7 @@ var Header = /*#__PURE__*/forwardRef(function (props, ref) {
89
84
  render: function render(_, _ref4) {
90
85
  var children = _ref4.children,
91
86
  props = _objectWithoutProperties(_ref4, _excluded2);
92
- return jsx("h2", props, children);
87
+ return /*#__PURE__*/React.createElement("h2", props, children);
93
88
  }
94
89
  }
95
90
  }
@@ -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,26 +1,12 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
1
2
  import _extends from "@babel/runtime/helpers/extends";
2
- /**
3
- * @jsxRuntime classic
4
- * @jsx jsx
5
- */
6
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
- import { css, jsx } from '@emotion/react';
3
+ import "./index.compiled.css";
4
+ import { ax, ix } from "@compiled/react/runtime";
5
+ import React from 'react';
8
6
  import { ExitingPersistence, FadeIn } from '@atlaskit/motion';
9
7
  import { useShouldNestedElementRender } from '../NestableNavigationContent/context';
10
- var baseMotionStyles = css({
11
- position: 'absolute',
12
- zIndex: 1,
13
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/no-physical-properties
14
- top: 0,
15
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/no-physical-properties
16
- right: 0,
17
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/no-physical-properties
18
- left: 0
19
- });
20
- var enteringStyles = css({
21
- position: 'static',
22
- zIndex: 2
23
- });
8
+ var baseMotionStyles = null;
9
+ var enteringStyles = null;
24
10
 
25
11
  /**
26
12
  * __Loading items__
@@ -37,13 +23,13 @@ var LoadingItems = function LoadingItems(_ref) {
37
23
  if (!shouldRender) {
38
24
  return children;
39
25
  }
40
- return jsx(ExitingPersistence, null, jsx(FadeIn, {
26
+ return /*#__PURE__*/React.createElement(ExitingPersistence, null, /*#__PURE__*/React.createElement(FadeIn, {
41
27
  key: "loading-section-".concat(isLoading),
42
28
  duration: "medium"
43
29
  }, function (motion, state) {
44
- return jsx("span", _extends({}, motion, {
30
+ return /*#__PURE__*/React.createElement("span", _extends({}, motion, {
45
31
  "data-testid": testId && "".concat(testId, "--").concat(state),
46
- css: [baseMotionStyles, state === 'entering' && enteringStyles]
32
+ className: ax(["_kqswstnw _1pbykb7n _154iidpf _1xi2idpf _1ltvidpf", state === 'entering' && "_kqswpfqs _1pbycs5v"])
47
33
  }), isLoading ? fallback : children);
48
34
  }));
49
35
  };
@@ -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,14 +1,19 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { forwardRef } from 'react';
6
-
7
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
- import { jsx } from '@emotion/react';
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./index.compiled.css";
3
+ import { ax, ix } from "@compiled/react/runtime";
4
+ import React, { forwardRef } from 'react';
9
5
  import useScrollbarWidth from '@atlaskit/ds-lib/use-scrollbar-width';
10
6
  import { useShouldNestedElementRender } from '../NestableNavigationContent/context';
11
- import { containerCSS, innerContainerCSS, outerContainerCSS } from './styles';
7
+ var outerContainerCSS = null;
8
+ var innerContainerCSS = {
9
+ basic: "_1reo1wug _18m91wug _1e0c1txw _vchhusvi _1bsb1osq _kqswh2mm _2lx21bp4 _14mjgqwt _1ywu1ule _1qdgyh40 _18poh2mm _1bqqcs5v _tua5idpf _1hfk1q2g _aetrb3bt _3mxo1wug",
10
+ topScrollIndicator: "_rfx3gqwt _cfu11ule _kfgtyh40 _1cs8stnw _1g0vcs5v _1rus1q2g _1kt9b3bt _1enwidpf _z5wtidpf"
11
+ };
12
+ var containerCSS = {
13
+ basic: "_kqswh2mm _12l2u2gc _ahbqu2gc _1pfhidpf _1p3h12x7 _1l6bpxbi _auo4rdoj _hp2110yn",
14
+ marginBlockStart: "_1pfhv77o"
15
+ };
16
+
12
17
  /**
13
18
  * __Navigation content__
14
19
  *
@@ -28,24 +33,18 @@ var NavigationContent = /*#__PURE__*/forwardRef(function (props, ref) {
28
33
  return children;
29
34
  }
30
35
  var typedRef = ref;
31
- return jsx("div", {
32
- ref: typedRef
33
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
34
- ,
35
- css: outerContainerCSS({
36
- showTopScrollIndicator: showTopScrollIndicator,
37
- scrollbarWidth: scrollbar.width
38
- }),
39
- "data-testid": testId
40
- }, jsx("div", {
36
+ return /*#__PURE__*/React.createElement("div", {
37
+ ref: typedRef,
38
+ "data-testid": testId,
39
+ className: 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"]),
40
+ style: {
41
+ "--_1uyno6z": ix("var(--ds-menu-seperator-color, ".concat("var(--ds-border, #091E4224)", ")"))
42
+ }
43
+ }, /*#__PURE__*/React.createElement("div", {
41
44
  ref: scrollbar.ref,
42
- css: innerContainerCSS({
43
- showTopScrollIndicator: showTopScrollIndicator
44
- })
45
- }, jsx("div", {
46
- css: containerCSS({
47
- showTopScrollIndicator: showTopScrollIndicator
48
- })
45
+ className: ax([innerContainerCSS.basic, !showTopScrollIndicator && innerContainerCSS.topScrollIndicator])
46
+ }, /*#__PURE__*/React.createElement("div", {
47
+ className: ax([containerCSS.basic, showTopScrollIndicator && containerCSS.marginBlockStart])
49
48
  }, children)));
50
49
  });
51
50
  export default NavigationContent;
@@ -0,0 +1 @@
1
+ ._kqswh2mm{position:relative}
@@ -1,9 +1,11 @@
1
- import React from 'react';
2
- import { Box, xcss } from '@atlaskit/primitives';
3
- var navigationFooterStyles = xcss({
4
- position: 'relative'
5
- });
6
-
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./index.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
5
+ import { Box } from '@atlaskit/primitives/compiled';
6
+ var styles = {
7
+ navigationFooter: "_kqswh2mm"
8
+ };
7
9
  /**
8
10
  * __Navigation footer__
9
11
  *
@@ -17,7 +19,7 @@ var NavigationFooter = function NavigationFooter(_ref) {
17
19
  return /*#__PURE__*/React.createElement(Box, {
18
20
  padding: "space.100",
19
21
  paddingBlockEnd: "space.200",
20
- xcss: navigationFooterStyles
22
+ xcss: styles.navigationFooter
21
23
  }, children);
22
24
  };
23
25
  export 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)}