@atlaskit/side-navigation 3.6.7 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/afm-cc/tsconfig.json +3 -0
- package/afm-jira/tsconfig.json +3 -0
- package/afm-post-office/tsconfig.json +3 -0
- package/dist/cjs/components/Footer/index.compiled.css +3 -0
- package/dist/cjs/components/Footer/index.js +21 -18
- package/dist/cjs/components/Header/index.js +17 -18
- package/dist/cjs/components/LoadingItems/index.compiled.css +7 -0
- package/dist/cjs/components/LoadingItems/index.js +9 -24
- package/dist/cjs/components/NavigationContent/index.compiled.css +46 -0
- package/dist/cjs/components/NavigationContent/index.js +27 -26
- package/dist/cjs/components/NavigationFooter/index.compiled.css +1 -0
- package/dist/cjs/components/NavigationFooter/index.js +13 -9
- package/dist/cjs/components/NavigationHeader/index.compiled.css +3 -0
- package/dist/cjs/components/NavigationHeader/index.js +13 -15
- package/dist/cjs/components/NestableNavigationContent/index.compiled.css +9 -0
- package/dist/cjs/components/NestableNavigationContent/index.js +14 -29
- package/dist/cjs/components/NestableNavigationContent/nesting-motion.js +3 -6
- package/dist/cjs/components/NestingItem/index.compiled.css +1 -0
- package/dist/cjs/components/NestingItem/index.js +17 -20
- package/dist/cjs/components/SideNavigation/index.compiled.css +10 -0
- package/dist/cjs/components/SideNavigation/index.js +17 -23
- package/dist/es2019/components/Footer/index.compiled.css +3 -0
- package/dist/es2019/components/Footer/index.js +10 -8
- package/dist/es2019/components/Header/index.js +14 -18
- package/dist/es2019/components/LoadingItems/index.compiled.css +7 -0
- package/dist/es2019/components/LoadingItems/index.js +9 -23
- package/dist/es2019/components/NavigationContent/index.compiled.css +46 -0
- package/dist/es2019/components/NavigationContent/index.js +22 -26
- package/dist/es2019/components/NavigationFooter/index.compiled.css +1 -0
- package/dist/es2019/components/NavigationFooter/index.js +9 -7
- package/dist/es2019/components/NavigationHeader/index.compiled.css +3 -0
- package/dist/es2019/components/NavigationHeader/index.js +10 -14
- package/dist/es2019/components/NestableNavigationContent/index.compiled.css +9 -0
- package/dist/es2019/components/NestableNavigationContent/index.js +14 -28
- package/dist/es2019/components/NestableNavigationContent/nesting-motion.js +2 -8
- package/dist/es2019/components/NestingItem/index.compiled.css +1 -0
- package/dist/es2019/components/NestingItem/index.js +17 -21
- package/dist/es2019/components/SideNavigation/index.compiled.css +10 -0
- package/dist/es2019/components/SideNavigation/index.js +9 -21
- package/dist/esm/components/Footer/index.compiled.css +3 -0
- package/dist/esm/components/Footer/index.js +10 -8
- package/dist/esm/components/Header/index.js +14 -18
- package/dist/esm/components/LoadingItems/index.compiled.css +7 -0
- package/dist/esm/components/LoadingItems/index.js +9 -23
- package/dist/esm/components/NavigationContent/index.compiled.css +46 -0
- package/dist/esm/components/NavigationContent/index.js +25 -26
- package/dist/esm/components/NavigationFooter/index.compiled.css +1 -0
- package/dist/esm/components/NavigationFooter/index.js +9 -7
- package/dist/esm/components/NavigationHeader/index.compiled.css +3 -0
- package/dist/esm/components/NavigationHeader/index.js +10 -14
- package/dist/esm/components/NestableNavigationContent/index.compiled.css +9 -0
- package/dist/esm/components/NestableNavigationContent/index.js +14 -28
- package/dist/esm/components/NestableNavigationContent/nesting-motion.js +2 -8
- package/dist/esm/components/NestingItem/index.compiled.css +1 -0
- package/dist/esm/components/NestingItem/index.js +17 -21
- package/dist/esm/components/SideNavigation/index.compiled.css +10 -0
- package/dist/esm/components/SideNavigation/index.js +13 -21
- package/dist/types/components/Header/index.d.ts +3 -4
- package/dist/types/components/LoadingItems/index.d.ts +5 -1
- package/dist/types/components/NavigationContent/index.d.ts +2 -2
- package/dist/types/components/NavigationFooter/index.d.ts +4 -0
- package/dist/types/components/NavigationHeader/index.d.ts +1 -6
- package/dist/types/components/NestableNavigationContent/index.d.ts +1 -2
- package/dist/types/components/NestableNavigationContent/nesting-motion.d.ts +2 -7
- package/dist/types-ts4.5/components/Header/index.d.ts +3 -4
- package/dist/types-ts4.5/components/LoadingItems/index.d.ts +5 -1
- package/dist/types-ts4.5/components/NavigationContent/index.d.ts +2 -2
- package/dist/types-ts4.5/components/NavigationFooter/index.d.ts +4 -0
- package/dist/types-ts4.5/components/NavigationHeader/index.d.ts +1 -6
- package/dist/types-ts4.5/components/NestableNavigationContent/index.d.ts +1 -2
- package/dist/types-ts4.5/components/NestableNavigationContent/nesting-motion.d.ts +2 -7
- package/package.json +5 -4
- package/tsconfig.json +0 -1
|
@@ -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 { easeOut, 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
|
|
13
|
+
return /*#__PURE__*/React.createElement(SlideIn, {
|
|
20
14
|
exitTo: exitTo,
|
|
21
15
|
enterFrom: enterFrom,
|
|
22
16
|
animationTimingFunction: _ => easeOut
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._1e0c1nu9{display:inline}
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
1
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
|
|
3
|
-
|
|
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
|
|
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
|
|
21
|
-
|
|
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
|
|
122
|
+
return /*#__PURE__*/React.createElement(NestedContext.Provider, {
|
|
127
123
|
value: context
|
|
128
|
-
}, stack.length >= 1 &&
|
|
124
|
+
}, stack.length >= 1 && /*#__PURE__*/React.createElement(Box, {
|
|
129
125
|
paddingBlock: "space.075",
|
|
130
126
|
paddingInline: "space.100"
|
|
131
|
-
}, backButton),
|
|
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:
|
|
141
|
-
xcss:
|
|
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,
|
|
140
|
+
}, iconAfter) : null, /*#__PURE__*/React.createElement(Box, {
|
|
145
141
|
"data-right-arrow": true,
|
|
146
|
-
xcss:
|
|
142
|
+
xcss: styles.iconContainer,
|
|
147
143
|
as: "span"
|
|
148
|
-
},
|
|
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
|
|
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
|
|
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.35.0 */
|
|
1
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
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 =
|
|
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
|
|
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
|
-
}
|
|
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
|
});
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
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
|
-
|
|
7
|
+
|
|
4
8
|
import warnOnce from '@atlaskit/ds-lib/warn-once';
|
|
5
|
-
import { Box, Stack, Text
|
|
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
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
height: '1.5rem'
|
|
14
|
-
});
|
|
14
|
+
var styles = {
|
|
15
|
+
iconContainer: "_1e0c1o8l _1bsb1k8s _4t3i1k8s"
|
|
16
|
+
};
|
|
15
17
|
/**
|
|
16
18
|
* __Footer__
|
|
17
19
|
*
|
|
@@ -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:
|
|
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
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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__
|
|
@@ -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
|
|
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
|
|
@@ -85,10 +80,11 @@ var Header = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
85
80
|
,
|
|
86
81
|
overrides: {
|
|
87
82
|
Title: {
|
|
83
|
+
// eslint-disable-next-line @atlaskit/design-system/use-heading
|
|
88
84
|
render: function render(_, _ref4) {
|
|
89
85
|
var children = _ref4.children,
|
|
90
86
|
props = _objectWithoutProperties(_ref4, _excluded2);
|
|
91
|
-
return
|
|
87
|
+
return /*#__PURE__*/React.createElement("h2", props, children);
|
|
92
88
|
}
|
|
93
89
|
}
|
|
94
90
|
}
|
|
@@ -1,26 +1,12 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
1
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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, mediumDurationMs } from '@atlaskit/motion';
|
|
9
7
|
import { useShouldNestedElementRender } from '../NestableNavigationContent/context';
|
|
10
|
-
var baseMotionStyles =
|
|
11
|
-
|
|
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
|
|
26
|
+
return /*#__PURE__*/React.createElement(ExitingPersistence, null, /*#__PURE__*/React.createElement(FadeIn, {
|
|
41
27
|
key: "loading-section-".concat(isLoading),
|
|
42
28
|
duration: mediumDurationMs
|
|
43
29
|
}, function (motion, state) {
|
|
44
|
-
return
|
|
30
|
+
return /*#__PURE__*/React.createElement("span", _extends({}, motion, {
|
|
45
31
|
"data-testid": testId && "".concat(testId, "--").concat(state),
|
|
46
|
-
|
|
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
|
-
|
|
3
|
-
|
|
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.35.0 */
|
|
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
|
-
|
|
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
|
|
32
|
-
ref: typedRef
|
|
33
|
-
|
|
34
|
-
,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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
|
-
|
|
43
|
-
|
|
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
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
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:
|
|
22
|
+
xcss: styles.navigationFooter
|
|
21
23
|
}, children);
|
|
22
24
|
};
|
|
23
25
|
export default NavigationFooter;
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
display: 'block',
|
|
10
|
-
padding: 'space.100',
|
|
11
|
-
paddingBlockStart: 'space.300'
|
|
12
|
-
});
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
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: "_1yt4u2gc _1e0c1ule _1q511ejb"
|
|
8
|
+
};
|
|
13
9
|
/**
|
|
14
10
|
* __Navigation header__
|
|
15
11
|
*
|
|
@@ -20,8 +16,8 @@ var navigationFooterStyles = xcss({
|
|
|
20
16
|
*/
|
|
21
17
|
var NavigationHeader = function NavigationHeader(props) {
|
|
22
18
|
var children = props.children;
|
|
23
|
-
return
|
|
24
|
-
xcss:
|
|
19
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
20
|
+
xcss: styles.navigationFooter,
|
|
25
21
|
"data-navheader": true
|
|
26
22
|
}, children);
|
|
27
23
|
};
|
|
@@ -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,13 +1,9 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
1
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* @jsx jsx
|
|
6
|
-
*/
|
|
4
|
+
import "./index.compiled.css";
|
|
5
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
7
6
|
import React, { 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
|
|
10
|
-
import { css, jsx } from '@emotion/react';
|
|
11
7
|
import { ExitingPersistence } from '@atlaskit/motion';
|
|
12
8
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
9
|
import { GoBackItem as GoBackButton } from '../Item';
|
|
@@ -18,18 +14,8 @@ import { NestingMotion } from './nesting-motion';
|
|
|
18
14
|
// Named so ERT doesn't pick up the override name as a type.
|
|
19
15
|
|
|
20
16
|
export var ROOT_ID = 'ATLASKIT_NESTED_ROOT';
|
|
21
|
-
var nestableNavigationContentStyles =
|
|
22
|
-
|
|
23
|
-
position: 'relative',
|
|
24
|
-
outline: 'none'
|
|
25
|
-
});
|
|
26
|
-
var nestingRootStyles = css({
|
|
27
|
-
display: 'flex',
|
|
28
|
-
width: '100%',
|
|
29
|
-
height: '100%',
|
|
30
|
-
position: 'absolute',
|
|
31
|
-
flexDirection: 'column'
|
|
32
|
-
});
|
|
17
|
+
var nestableNavigationContentStyles = null;
|
|
18
|
+
var nestingRootStyles = null;
|
|
33
19
|
|
|
34
20
|
/**
|
|
35
21
|
* __Nestable navigation content__
|
|
@@ -73,7 +59,7 @@ var NestableNavigationContent = function NestableNavigationContent(props) {
|
|
|
73
59
|
setFocusGoBackButton = _useState8[1];
|
|
74
60
|
var shouldFocus = isDefaultFocusControl && fg('platform-side-navigation-keyboard-focus');
|
|
75
61
|
var renderGoBackItem = overrides && overrides.GoBackItem && overrides.GoBackItem.render ? overrides.GoBackItem.render : function (props) {
|
|
76
|
-
return
|
|
62
|
+
return /*#__PURE__*/React.createElement(GoBackButton, props, "Go back");
|
|
77
63
|
};
|
|
78
64
|
var _useChildIds = useChildIds(currentStackId, committedStack, onUnknownNest),
|
|
79
65
|
childIdsRef = _useChildIds.childIdsRef;
|
|
@@ -164,13 +150,13 @@ var NestableNavigationContent = function NestableNavigationContent(props) {
|
|
|
164
150
|
containerRef.current && containerRef.current.focus();
|
|
165
151
|
}
|
|
166
152
|
};
|
|
167
|
-
return
|
|
153
|
+
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
168
154
|
"data-testid": testId,
|
|
169
|
-
css: nestableNavigationContentStyles,
|
|
170
155
|
ref: containerRef,
|
|
171
156
|
tabIndex: -1,
|
|
172
|
-
onClick: manageFocus
|
|
173
|
-
|
|
157
|
+
onClick: manageFocus,
|
|
158
|
+
className: ax(["_12ji1r31 _1qu2glyw _12y31o36 _4t3i1osq _kqswh2mm"])
|
|
159
|
+
}, /*#__PURE__*/React.createElement(ExitingPersistence, null, /*#__PURE__*/React.createElement(NestingMotion
|
|
174
160
|
// Key is needed to have a unique react instance per stack name.
|
|
175
161
|
// This enables us to easily animate it in & out with exiting persistence.
|
|
176
162
|
, {
|
|
@@ -179,13 +165,13 @@ var NestableNavigationContent = function NestableNavigationContent(props) {
|
|
|
179
165
|
exitTo: transition === 'nesting' ? 'left' : 'right',
|
|
180
166
|
testId: testId && "".concat(testId, "-anim")
|
|
181
167
|
}, function (motion) {
|
|
182
|
-
return
|
|
183
|
-
|
|
184
|
-
}
|
|
168
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, motion, {
|
|
169
|
+
className: ax(["_1e0c1txw _1bsb1osq _4t3i1osq _kqswstnw _2lx21bp4"])
|
|
170
|
+
}), /*#__PURE__*/React.createElement(NestedContext.Provider, {
|
|
185
171
|
// This provider is inside the NestingMotion to ensure it keeps a stale
|
|
186
172
|
// reference to the previous value.
|
|
187
173
|
value: context
|
|
188
|
-
},
|
|
174
|
+
}, /*#__PURE__*/React.createElement(NestingItem, {
|
|
189
175
|
title: "",
|
|
190
176
|
id: ROOT_ID
|
|
191
177
|
}, children)));
|
|
@@ -1,13 +1,7 @@
|
|
|
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
|
-
* @jsx jsx
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
|
-
import { jsx } from '@emotion/react';
|
|
4
|
+
import React from 'react';
|
|
11
5
|
import { easeOut, SlideIn } from '@atlaskit/motion';
|
|
12
6
|
/**
|
|
13
7
|
* @internal
|
|
@@ -17,7 +11,7 @@ export var NestingMotion = function NestingMotion(props) {
|
|
|
17
11
|
enterFrom = props.enterFrom,
|
|
18
12
|
exitTo = props.exitTo,
|
|
19
13
|
testId = props.testId;
|
|
20
|
-
return
|
|
14
|
+
return /*#__PURE__*/React.createElement(SlideIn, {
|
|
21
15
|
exitTo: exitTo,
|
|
22
16
|
enterFrom: enterFrom,
|
|
23
17
|
animationTimingFunction: function animationTimingFunction(_) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._1e0c1nu9{display:inline}
|