@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.
- 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 +22 -19
- package/dist/cjs/components/Header/index.js +17 -19
- 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 +5 -0
- package/dist/cjs/components/NavigationHeader/index.js +13 -18
- 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 +11 -9
- package/dist/es2019/components/Header/index.js +14 -19
- 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 +5 -0
- package/dist/es2019/components/NavigationHeader/index.js +10 -17
- 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 +11 -9
- package/dist/esm/components/Header/index.js +14 -19
- 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 +5 -0
- package/dist/esm/components/NavigationHeader/index.js +10 -17
- 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/Footer/index.d.ts +2 -2
- 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 +6 -2
- 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/Footer/index.d.ts +2 -2
- 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 +6 -2
- 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 +6 -5
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
|
29
|
-
xcss:
|
|
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
|
-
|
|
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 =
|
|
21
|
-
|
|
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 =>
|
|
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
|
|
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
|
-
|
|
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 =>
|
|
167
|
-
|
|
168
|
-
}
|
|
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
|
-
},
|
|
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
|
|
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
|
-
|
|
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.36.1 */
|
|
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.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
|
-
|
|
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
|
*
|
|
@@ -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,
|
|
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:
|
|
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__
|
|
@@ -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,
|
|
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
|
|
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
|
|
87
|
+
return /*#__PURE__*/React.createElement("h2", props, children);
|
|
93
88
|
}
|
|
94
89
|
}
|
|
95
90
|
}
|
|
@@ -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
|
-
|
|
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 } 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: "medium"
|
|
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.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
|
-
|
|
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.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:
|
|
22
|
+
xcss: styles.navigationFooter
|
|
21
23
|
}, children);
|
|
22
24
|
};
|
|
23
25
|
export default NavigationFooter;
|