@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,22 +1,18 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
1
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
4
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
4
5
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
5
6
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
6
7
|
var _excluded = ["children", "iconAfter", "title", "onClick", "cssFn", "isSelected", "id", "component", "testId"];
|
|
8
|
+
import "./index.compiled.css";
|
|
9
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
7
10
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8
11
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9
|
-
/**
|
|
10
|
-
* @jsxRuntime classic
|
|
11
|
-
* @jsx jsx
|
|
12
|
-
*/
|
|
13
12
|
import React, { Fragment, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
14
|
-
|
|
15
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
|
-
import { jsx } from '@emotion/react';
|
|
17
13
|
import ArrowRightIcon from '@atlaskit/icon/core/migration/arrow-right--arrow-right-circle';
|
|
18
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
19
|
-
import { Box
|
|
15
|
+
import { Box } from '@atlaskit/primitives/compiled';
|
|
20
16
|
import { N10 } from '@atlaskit/theme/colors';
|
|
21
17
|
import { overrideStyleFunction } from '../../common/styles';
|
|
22
18
|
import { ButtonItem, CustomItem, NavigationContent } from '../index';
|
|
@@ -24,9 +20,9 @@ import { ROOT_ID } from '../NestableNavigationContent';
|
|
|
24
20
|
import { NestedContext, useNestedContext } from '../NestableNavigationContent/context';
|
|
25
21
|
import { useChildIdsEffect } from '../utils/hooks';
|
|
26
22
|
import { nestingItemStyle } from './styles';
|
|
27
|
-
var
|
|
28
|
-
|
|
29
|
-
}
|
|
23
|
+
var styles = {
|
|
24
|
+
iconContainer: "_1e0c1nu9"
|
|
25
|
+
};
|
|
30
26
|
|
|
31
27
|
// Doesn't extend from ButtonItemProps because it blows ERT up.
|
|
32
28
|
|
|
@@ -134,12 +130,12 @@ var NestingItem = function NestingItem(props) {
|
|
|
134
130
|
onClick && onClick(e);
|
|
135
131
|
}, [isInteracted, onClick, onNest, id]);
|
|
136
132
|
if (currentStackId === id) {
|
|
137
|
-
return
|
|
133
|
+
return /*#__PURE__*/React.createElement(NestedContext.Provider, {
|
|
138
134
|
value: context
|
|
139
|
-
}, stack.length >= 1 &&
|
|
135
|
+
}, stack.length >= 1 && /*#__PURE__*/React.createElement(Box, {
|
|
140
136
|
paddingBlock: "space.075",
|
|
141
137
|
paddingInline: "space.100"
|
|
142
|
-
}, backButton),
|
|
138
|
+
}, backButton), /*#__PURE__*/React.createElement(NavigationContent, {
|
|
143
139
|
testId: testId,
|
|
144
140
|
showTopScrollIndicator: forceShowTopScrollIndicator || stack.length >= 1
|
|
145
141
|
}, children));
|
|
@@ -148,15 +144,15 @@ var NestingItem = function NestingItem(props) {
|
|
|
148
144
|
return children;
|
|
149
145
|
}
|
|
150
146
|
var componentProps = _objectSpread(_objectSpread({
|
|
151
|
-
iconAfter:
|
|
152
|
-
xcss:
|
|
147
|
+
iconAfter: /*#__PURE__*/React.createElement(Fragment, null, iconAfter ? /*#__PURE__*/React.createElement(Box, {
|
|
148
|
+
xcss: styles.iconContainer,
|
|
153
149
|
"data-custom-icon": true,
|
|
154
150
|
as: "span"
|
|
155
|
-
}, iconAfter) : null,
|
|
151
|
+
}, iconAfter) : null, /*#__PURE__*/React.createElement(Box, {
|
|
156
152
|
"data-right-arrow": true,
|
|
157
|
-
xcss:
|
|
153
|
+
xcss: styles.iconContainer,
|
|
158
154
|
as: "span"
|
|
159
|
-
},
|
|
155
|
+
}, /*#__PURE__*/React.createElement(ArrowRightIcon, {
|
|
160
156
|
testId: testId && "".concat(testId, "--item--right-arrow"),
|
|
161
157
|
color: "currentColor",
|
|
162
158
|
LEGACY_secondaryColor: "var(--ds-surface, ".concat(N10, ")"),
|
|
@@ -170,14 +166,14 @@ var NestingItem = function NestingItem(props) {
|
|
|
170
166
|
cssFn: mergedStyles
|
|
171
167
|
});
|
|
172
168
|
if (component) {
|
|
173
|
-
return
|
|
169
|
+
return /*#__PURE__*/React.createElement(CustomItem, _extends({
|
|
174
170
|
ref: isForwardRefCheck(component) ? parentItemRef : null
|
|
175
171
|
}, componentProps, {
|
|
176
172
|
//@ts-expect-error TODO Fix legit TypeScript 3.9.6 improved inference error
|
|
177
173
|
component: component
|
|
178
174
|
}));
|
|
179
175
|
}
|
|
180
|
-
return
|
|
176
|
+
return /*#__PURE__*/React.createElement(ButtonItem, _extends({
|
|
181
177
|
ref: activeParentRef
|
|
182
178
|
}, componentProps));
|
|
183
179
|
};
|
|
@@ -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
|
+
._bfhkxkvu{background-color:var(--_4p0s90)}
|
|
9
|
+
._kqswh2mm{position:relative}
|
|
10
|
+
._syaz1425{color:var(--_13a5t4u)}
|
|
@@ -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
|
var sidebarMinWidth = '240px';
|
|
13
|
-
var sideNavStyles =
|
|
14
|
-
display: 'flex',
|
|
15
|
-
width: '100%',
|
|
16
|
-
minWidth: sidebarMinWidth,
|
|
17
|
-
height: '100%',
|
|
18
|
-
position: 'relative',
|
|
19
|
-
flexDirection: 'column',
|
|
20
|
-
backgroundColor: "var(--ds-surface, ".concat(N10, ")"),
|
|
21
|
-
color: "var(--ds-text-subtle, ".concat(N500, ")"),
|
|
22
|
-
overflow: 'hidden'
|
|
23
|
-
});
|
|
10
|
+
var sideNavStyles = null;
|
|
24
11
|
|
|
25
12
|
/**
|
|
26
13
|
* __Side navigation__
|
|
@@ -39,17 +26,22 @@ var SideNavigation = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
39
26
|
isServer = _props$isServer === void 0 ? false : _props$isServer,
|
|
40
27
|
_props$isSSRPlacehold = props.isSSRPlaceholderEnabled,
|
|
41
28
|
isSSRPlaceholderEnabled = _props$isSSRPlacehold === void 0 ? false : _props$isSSRPlacehold;
|
|
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".concat(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 _bfhkxkvu _syaz1425"]),
|
|
40
|
+
style: {
|
|
41
|
+
"--_4p0s90": ix("var(--ds-surface, ".concat(N10, ")")),
|
|
42
|
+
"--_13a5t4u": ix("var(--ds-text-subtle, ".concat(N500, ")"))
|
|
43
|
+
}
|
|
44
|
+
}), /*#__PURE__*/React.createElement(SELECTION_STYLE_CONTEXT_DO_NOT_USE.Provider, {
|
|
53
45
|
value: "notch"
|
|
54
46
|
}, children));
|
|
55
47
|
});
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
1
|
+
import React from 'react';
|
|
3
2
|
import { type CSSFn, type CustomItemComponentProps } from '@atlaskit/menu';
|
|
4
3
|
/**
|
|
5
4
|
* __Container__
|
|
6
5
|
*
|
|
7
6
|
* A container for Header and Footer that safely handles props to the child component
|
|
8
7
|
*/
|
|
9
|
-
export declare const Container: ({ children, "data-testid": testId, ...props }: CustomItemComponentProps) =>
|
|
8
|
+
export declare const Container: ({ children, "data-testid": testId, ...props }: CustomItemComponentProps) => JSX.Element;
|
|
10
9
|
export type HeaderProps = {
|
|
11
10
|
/**
|
|
12
11
|
* A function that can be used to override the styles of the component.
|
|
@@ -52,5 +51,5 @@ export type HeaderProps = {
|
|
|
52
51
|
* - [Examples](https://atlassian.design/components/side-navigation/examples#header-and-footer)
|
|
53
52
|
* - [Code](https://atlassian.design/components/side-navigation/code)
|
|
54
53
|
*/
|
|
55
|
-
declare const Header:
|
|
54
|
+
declare const Header: React.ForwardRefExoticComponent<HeaderProps & React.RefAttributes<HTMLElement>>;
|
|
56
55
|
export default Header;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
import
|
|
5
|
+
import React from 'react';
|
|
6
6
|
export interface NavigationContentProps {
|
|
7
7
|
children: React.ReactNode;
|
|
8
8
|
/**
|
|
@@ -24,5 +24,5 @@ export interface NavigationContentProps {
|
|
|
24
24
|
* - [Examples](https://atlassian.design/components/side-navigation/examples#content)
|
|
25
25
|
* - [Code](https://atlassian.design/components/side-navigation/code)
|
|
26
26
|
*/
|
|
27
|
-
declare const NavigationContent:
|
|
27
|
+
declare const NavigationContent: React.ForwardRefExoticComponent<NavigationContentProps & React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
28
28
|
export default NavigationContent;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/**
|
|
3
|
-
* @jsxRuntime classic
|
|
4
|
-
* @jsx jsx
|
|
5
|
-
*/
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
2
|
export interface NavigationHeaderProps {
|
|
8
3
|
children: JSX.Element | JSX.Element[];
|
|
9
4
|
}
|
|
@@ -15,5 +10,5 @@ export interface NavigationHeaderProps {
|
|
|
15
10
|
* - [Examples](https://atlassian.design/components/side-navigation/examples#header-and-footer)
|
|
16
11
|
* - [Code](https://atlassian.design/components/side-navigation/code)
|
|
17
12
|
*/
|
|
18
|
-
declare const NavigationHeader: (props: NavigationHeaderProps) =>
|
|
13
|
+
declare const NavigationHeader: (props: NavigationHeaderProps) => JSX.Element;
|
|
19
14
|
export default NavigationHeader;
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
6
|
export declare const ROOT_ID = "ATLASKIT_NESTED_ROOT";
|
|
8
7
|
export interface NestableNavigationContentProps {
|
|
9
8
|
/**
|
|
@@ -86,5 +85,5 @@ export interface NestableNavigationContentProps {
|
|
|
86
85
|
* - [Examples](https://atlassian.design/components/side-navigation/examples#nested-navigation)
|
|
87
86
|
* - [Code](https://atlassian.design/components/side-navigation/code)
|
|
88
87
|
*/
|
|
89
|
-
declare const NestableNavigationContent: (props: NestableNavigationContentProps) =>
|
|
88
|
+
declare const NestableNavigationContent: (props: NestableNavigationContentProps) => JSX.Element;
|
|
90
89
|
export default NestableNavigationContent;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type Ref } from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
1
|
+
import React, { type Ref } from 'react';
|
|
7
2
|
import { type Direction } from '@atlaskit/motion';
|
|
8
3
|
interface ChildrenAsFunctionProps {
|
|
9
4
|
'data-enter-from': string;
|
|
@@ -21,5 +16,5 @@ interface NestingMotionProps {
|
|
|
21
16
|
/**
|
|
22
17
|
* @internal
|
|
23
18
|
*/
|
|
24
|
-
export declare const NestingMotion: (props: NestingMotionProps) =>
|
|
19
|
+
export declare const NestingMotion: (props: NestingMotionProps) => JSX.Element;
|
|
25
20
|
export {};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
1
|
+
import React from 'react';
|
|
3
2
|
import { type CSSFn, type CustomItemComponentProps } from '@atlaskit/menu';
|
|
4
3
|
/**
|
|
5
4
|
* __Container__
|
|
6
5
|
*
|
|
7
6
|
* A container for Header and Footer that safely handles props to the child component
|
|
8
7
|
*/
|
|
9
|
-
export declare const Container: ({ children, "data-testid": testId, ...props }: CustomItemComponentProps) =>
|
|
8
|
+
export declare const Container: ({ children, "data-testid": testId, ...props }: CustomItemComponentProps) => JSX.Element;
|
|
10
9
|
export type HeaderProps = {
|
|
11
10
|
/**
|
|
12
11
|
* A function that can be used to override the styles of the component.
|
|
@@ -52,5 +51,5 @@ export type HeaderProps = {
|
|
|
52
51
|
* - [Examples](https://atlassian.design/components/side-navigation/examples#header-and-footer)
|
|
53
52
|
* - [Code](https://atlassian.design/components/side-navigation/code)
|
|
54
53
|
*/
|
|
55
|
-
declare const Header:
|
|
54
|
+
declare const Header: React.ForwardRefExoticComponent<HeaderProps & React.RefAttributes<HTMLElement>>;
|
|
56
55
|
export default Header;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
import
|
|
5
|
+
import React from 'react';
|
|
6
6
|
export interface NavigationContentProps {
|
|
7
7
|
children: React.ReactNode;
|
|
8
8
|
/**
|
|
@@ -24,5 +24,5 @@ export interface NavigationContentProps {
|
|
|
24
24
|
* - [Examples](https://atlassian.design/components/side-navigation/examples#content)
|
|
25
25
|
* - [Code](https://atlassian.design/components/side-navigation/code)
|
|
26
26
|
*/
|
|
27
|
-
declare const NavigationContent:
|
|
27
|
+
declare const NavigationContent: React.ForwardRefExoticComponent<NavigationContentProps & React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
28
28
|
export default NavigationContent;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/**
|
|
3
|
-
* @jsxRuntime classic
|
|
4
|
-
* @jsx jsx
|
|
5
|
-
*/
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
2
|
export interface NavigationHeaderProps {
|
|
8
3
|
children: JSX.Element | JSX.Element[];
|
|
9
4
|
}
|
|
@@ -15,5 +10,5 @@ export interface NavigationHeaderProps {
|
|
|
15
10
|
* - [Examples](https://atlassian.design/components/side-navigation/examples#header-and-footer)
|
|
16
11
|
* - [Code](https://atlassian.design/components/side-navigation/code)
|
|
17
12
|
*/
|
|
18
|
-
declare const NavigationHeader: (props: NavigationHeaderProps) =>
|
|
13
|
+
declare const NavigationHeader: (props: NavigationHeaderProps) => JSX.Element;
|
|
19
14
|
export default NavigationHeader;
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
6
|
export declare const ROOT_ID = "ATLASKIT_NESTED_ROOT";
|
|
8
7
|
export interface NestableNavigationContentProps {
|
|
9
8
|
/**
|
|
@@ -86,5 +85,5 @@ export interface NestableNavigationContentProps {
|
|
|
86
85
|
* - [Examples](https://atlassian.design/components/side-navigation/examples#nested-navigation)
|
|
87
86
|
* - [Code](https://atlassian.design/components/side-navigation/code)
|
|
88
87
|
*/
|
|
89
|
-
declare const NestableNavigationContent: (props: NestableNavigationContentProps) =>
|
|
88
|
+
declare const NestableNavigationContent: (props: NestableNavigationContentProps) => JSX.Element;
|
|
90
89
|
export default NestableNavigationContent;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type Ref } from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
1
|
+
import React, { type Ref } from 'react';
|
|
7
2
|
import { type Direction } from '@atlaskit/motion';
|
|
8
3
|
interface ChildrenAsFunctionProps {
|
|
9
4
|
'data-enter-from': string;
|
|
@@ -21,5 +16,5 @@ interface NestingMotionProps {
|
|
|
21
16
|
/**
|
|
22
17
|
* @internal
|
|
23
18
|
*/
|
|
24
|
-
export declare const NestingMotion: (props: NestingMotionProps) =>
|
|
19
|
+
export declare const NestingMotion: (props: NestingMotionProps) => JSX.Element;
|
|
25
20
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/side-navigation",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "A highly composable side navigation component that supports nested views.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -32,16 +32,17 @@
|
|
|
32
32
|
"runReact18": true
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
+
"@atlaskit/css": "^0.7.0",
|
|
35
36
|
"@atlaskit/ds-lib": "^3.3.0",
|
|
36
|
-
"@atlaskit/icon": "^23.
|
|
37
|
+
"@atlaskit/icon": "^23.4.0",
|
|
37
38
|
"@atlaskit/menu": "^2.13.0",
|
|
38
39
|
"@atlaskit/motion": "^1.9.0",
|
|
39
40
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
40
41
|
"@atlaskit/primitives": "^13.3.0",
|
|
41
42
|
"@atlaskit/theme": "^14.0.0",
|
|
42
|
-
"@atlaskit/tokens": "^2.
|
|
43
|
+
"@atlaskit/tokens": "^3.2.0",
|
|
43
44
|
"@babel/runtime": "^7.0.0",
|
|
44
|
-
"@
|
|
45
|
+
"@compiled/react": "^0.18.1"
|
|
45
46
|
},
|
|
46
47
|
"peerDependencies": {
|
|
47
48
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
|