@atlaskit/navigation-system 6.4.0 → 7.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 +11 -0
- package/constellation/layout/code.mdx +3 -3
- package/constellation/layout/examples.mdx +3 -3
- package/dist/cjs/entry-points/layout/side-nav.js +2 -2
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/ui/page-layout/constants.js +1 -1
- package/dist/cjs/ui/page-layout/side-nav/side-nav-content.js +2 -2
- package/dist/cjs/ui/page-layout/side-nav/side-nav-header.js +3 -3
- package/dist/cjs/ui/page-layout/side-nav/side-nav.js +1 -1
- package/dist/cjs/ui/page-layout/top-nav/top-nav-start.js +1 -1
- package/dist/es2019/entry-points/layout/side-nav.js +1 -1
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/ui/page-layout/constants.js +1 -1
- package/dist/es2019/ui/page-layout/side-nav/side-nav-content.js +1 -1
- package/dist/es2019/ui/page-layout/side-nav/side-nav-header.js +3 -3
- package/dist/es2019/ui/page-layout/side-nav/side-nav.js +1 -1
- package/dist/es2019/ui/page-layout/top-nav/top-nav-start.js +1 -1
- package/dist/esm/entry-points/layout/side-nav.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/ui/page-layout/constants.js +1 -1
- package/dist/esm/ui/page-layout/side-nav/side-nav-content.js +1 -1
- package/dist/esm/ui/page-layout/side-nav/side-nav-header.js +3 -3
- package/dist/esm/ui/page-layout/side-nav/side-nav.js +1 -1
- package/dist/esm/ui/page-layout/top-nav/top-nav-start.js +1 -1
- package/dist/types/entry-points/layout/side-nav.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/ui/page-layout/constants.d.ts +1 -1
- package/dist/types/ui/page-layout/side-nav/side-nav-content.d.ts +1 -1
- package/dist/types/ui/page-layout/side-nav/side-nav.d.ts +2 -2
- package/dist/types-ts4.5/entry-points/layout/side-nav.d.ts +1 -1
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/page-layout/constants.d.ts +1 -1
- package/dist/types-ts4.5/ui/page-layout/side-nav/side-nav-content.d.ts +1 -1
- package/dist/types-ts4.5/ui/page-layout/side-nav/side-nav.d.ts +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlassian/navigation-system
|
|
2
2
|
|
|
3
|
+
## 7.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`f48c03e011b92`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f48c03e011b92) -
|
|
8
|
+
Renamed `SideNavContent` to `SideNavBody` to align with other slot component naming.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 6.4.0
|
|
4
15
|
|
|
5
16
|
### Minor Changes
|
|
@@ -13,7 +13,7 @@ props:
|
|
|
13
13
|
- TopNavEnd
|
|
14
14
|
- SideNav
|
|
15
15
|
- SideNavHeader
|
|
16
|
-
-
|
|
16
|
+
- SideNavBody
|
|
17
17
|
- SideNavFooter
|
|
18
18
|
- Main
|
|
19
19
|
- MainStickyHeader
|
|
@@ -79,11 +79,11 @@ The top part of the side nav.
|
|
|
79
79
|
|
|
80
80
|
<TSMorphProps exportName="SideNavHeader" packageName="@atlaskit/navigation-system" />
|
|
81
81
|
|
|
82
|
-
###
|
|
82
|
+
### SideNavBody
|
|
83
83
|
|
|
84
84
|
The main content of the side nav, filling up the middle section. It acts as a scroll container.
|
|
85
85
|
|
|
86
|
-
<TSMorphProps exportName="
|
|
86
|
+
<TSMorphProps exportName="SideNavBody" packageName="@atlaskit/navigation-system" />
|
|
87
87
|
|
|
88
88
|
### SideNavFooter
|
|
89
89
|
|
|
@@ -72,12 +72,12 @@ The `SideNav` has three layout components that you can use to position component
|
|
|
72
72
|
nav flexbox.
|
|
73
73
|
|
|
74
74
|
- `SideNavHeader`. The top part of the side nav.
|
|
75
|
-
- `
|
|
75
|
+
- `SideNavBody`. The middle part of the side nav. It acts as a scroll container. It will grow to
|
|
76
76
|
take up the available space — this is used to push the footer to the bottom of the side nav.
|
|
77
77
|
- `SideNavFooter`. The bottom part of the side nav.
|
|
78
78
|
|
|
79
|
-
Note: make sure to render `
|
|
80
|
-
|
|
79
|
+
Note: make sure to render `SideNavBody` to ensure that the footer is positioned at the bottom of the
|
|
80
|
+
side nav, simulating a sticky footer.
|
|
81
81
|
|
|
82
82
|
#### Side nav collapse/expand
|
|
83
83
|
|
|
@@ -9,10 +9,10 @@ Object.defineProperty(exports, "SideNav", {
|
|
|
9
9
|
return _sideNav.SideNav;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
Object.defineProperty(exports, "
|
|
12
|
+
Object.defineProperty(exports, "SideNavBody", {
|
|
13
13
|
enumerable: true,
|
|
14
14
|
get: function get() {
|
|
15
|
-
return _sideNavContent.
|
|
15
|
+
return _sideNavContent.SideNavBody;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "SideNavFooter", {
|
package/dist/cjs/index.js
CHANGED
|
@@ -141,10 +141,10 @@ Object.defineProperty(exports, "SideNav", {
|
|
|
141
141
|
return _sideNav.SideNav;
|
|
142
142
|
}
|
|
143
143
|
});
|
|
144
|
-
Object.defineProperty(exports, "
|
|
144
|
+
Object.defineProperty(exports, "SideNavBody", {
|
|
145
145
|
enumerable: true,
|
|
146
146
|
get: function get() {
|
|
147
|
-
return _sideNavContent.
|
|
147
|
+
return _sideNavContent.SideNavBody;
|
|
148
148
|
}
|
|
149
149
|
});
|
|
150
150
|
Object.defineProperty(exports, "SideNavFooter", {
|
|
@@ -80,6 +80,6 @@ var openLayerObserverTopNavEndNamespace = exports.openLayerObserverTopNavEndName
|
|
|
80
80
|
|
|
81
81
|
/**
|
|
82
82
|
* CSS scroll timeline variable for the side nav content scroll indicator.
|
|
83
|
-
* The scroll timeline is created in
|
|
83
|
+
* The scroll timeline is created in SideNavBody, and then used by TopNavStart to apply the scroll indicator line.
|
|
84
84
|
*/
|
|
85
85
|
var sideNavContentScrollTimelineVar = exports.sideNavContentScrollTimelineVar = '--sNcst';
|
|
@@ -6,7 +6,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", {
|
|
7
7
|
value: true
|
|
8
8
|
});
|
|
9
|
-
exports.
|
|
9
|
+
exports.SideNavBody = void 0;
|
|
10
10
|
require("./side-nav-content.compiled.css");
|
|
11
11
|
var _runtime = require("@compiled/react/runtime");
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
@@ -22,7 +22,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
22
22
|
* It will grow to take up the available space in the side nav — this is used to push the footer to the
|
|
23
23
|
* bottom of the side nav.
|
|
24
24
|
*/
|
|
25
|
-
var
|
|
25
|
+
var SideNavBody = exports.SideNavBody = /*#__PURE__*/(0, _react.forwardRef)(_SideNavContent);
|
|
26
26
|
|
|
27
27
|
// Placing this const below the function breaks Compiled!
|
|
28
28
|
var styles = {
|
|
@@ -23,14 +23,14 @@ var SideNavHeader = exports.SideNavHeader = function SideNavHeader(_ref) {
|
|
|
23
23
|
return /*#__PURE__*/React.createElement("div", {
|
|
24
24
|
/**
|
|
25
25
|
* This attribute is used to identify whether the SideNavHeader is mounted, to determine where the
|
|
26
|
-
*
|
|
26
|
+
* SideNavBody's scroll indicator line should be applied. This is for layering reasons -
|
|
27
27
|
* if the scroll indicator line intersects with the top nav, it could incorrectly be hidden beneath
|
|
28
28
|
* the top nav (depending on if a layer is open, which raises the top nav'z z-index).
|
|
29
29
|
*
|
|
30
30
|
* We are using a data attribute and CSS for this logic to ensure it is SSR safe.
|
|
31
31
|
*
|
|
32
|
-
* - If SideNavHeader exists, the scroll indicator line is applied to the
|
|
33
|
-
* because the SideNavHeader is between the
|
|
32
|
+
* - If SideNavHeader exists, the scroll indicator line is applied to the SideNavBody. This is safe
|
|
33
|
+
* because the SideNavHeader is between the SideNavBody and TopNavStart, so the scroll indicator line
|
|
34
34
|
* will not intersect with the top nav.
|
|
35
35
|
*
|
|
36
36
|
* - If SideNavHeader does not exist, the scroll indicator line is applied to TopNavStart. This ensures
|
|
@@ -788,7 +788,7 @@ function SideNavInternal(_ref) {
|
|
|
788
788
|
/**
|
|
789
789
|
* The side navigation layout area. It will show on the left (inline start) of the screen.
|
|
790
790
|
*
|
|
791
|
-
* Use the side nav area components (`SideNavHeader`, `
|
|
791
|
+
* Use the side nav area components (`SideNavHeader`, `SideNavBody`, `SideNavFooter`) to position
|
|
792
792
|
* content within areas of the side nav.
|
|
793
793
|
*
|
|
794
794
|
* You can optionally render a `PanelSplitter` as a child to make the side navigation slot resizable.
|
|
@@ -45,7 +45,7 @@ var innerStyles = {
|
|
|
45
45
|
};
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
* The scroll indicator is usually applied in
|
|
48
|
+
* The scroll indicator is usually applied in SideNavBody, but if there is no SideNavHeader it is
|
|
49
49
|
* applied in TopNavStart instead for layering reasons. See the comment in SideNavHeader for more details.
|
|
50
50
|
*/
|
|
51
51
|
var scrolledShadow = null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { SideNav } from '../../ui/page-layout/side-nav/side-nav';
|
|
2
2
|
export { SideNavHeader } from '../../ui/page-layout/side-nav/side-nav-header';
|
|
3
|
-
export {
|
|
3
|
+
export { SideNavBody } from '../../ui/page-layout/side-nav/side-nav-content';
|
|
4
4
|
export { SideNavFooter } from '../../ui/page-layout/side-nav/side-nav-footer';
|
|
5
5
|
export { SideNavToggleButton } from '../../ui/page-layout/side-nav/toggle-button';
|
|
6
6
|
export { useToggleSideNav } from '../../ui/page-layout/side-nav/use-toggle-side-nav';
|
package/dist/es2019/index.js
CHANGED
|
@@ -12,7 +12,7 @@ export { MainStickyHeader } from './ui/page-layout/main/main-sticky-header';
|
|
|
12
12
|
export { SideNavToggleButton } from './ui/page-layout/side-nav/toggle-button';
|
|
13
13
|
export { useToggleSideNav } from './ui/page-layout/side-nav/use-toggle-side-nav';
|
|
14
14
|
export { SideNavHeader } from './ui/page-layout/side-nav/side-nav-header';
|
|
15
|
-
export {
|
|
15
|
+
export { SideNavBody } from './ui/page-layout/side-nav/side-nav-content';
|
|
16
16
|
export { SideNavFooter } from './ui/page-layout/side-nav/side-nav-footer';
|
|
17
17
|
export { PanelSplitter } from './ui/page-layout/panel-splitter/panel-splitter';
|
|
18
18
|
export { PanelSplitterProvider } from './ui/page-layout/panel-splitter/provider';
|
|
@@ -74,6 +74,6 @@ export const openLayerObserverTopNavEndNamespace = 'top-nav-end';
|
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
76
|
* CSS scroll timeline variable for the side nav content scroll indicator.
|
|
77
|
-
* The scroll timeline is created in
|
|
77
|
+
* The scroll timeline is created in SideNavBody, and then used by TopNavStart to apply the scroll indicator line.
|
|
78
78
|
*/
|
|
79
79
|
export const sideNavContentScrollTimelineVar = '--sNcst';
|
|
@@ -14,7 +14,7 @@ import { useSideNavVisibility } from './use-side-nav-visibility';
|
|
|
14
14
|
* It will grow to take up the available space in the side nav — this is used to push the footer to the
|
|
15
15
|
* bottom of the side nav.
|
|
16
16
|
*/
|
|
17
|
-
export const
|
|
17
|
+
export const SideNavBody = /*#__PURE__*/forwardRef(_SideNavContent);
|
|
18
18
|
|
|
19
19
|
// Placing this const below the function breaks Compiled!
|
|
20
20
|
const styles = {
|
|
@@ -16,14 +16,14 @@ export const SideNavHeader = ({
|
|
|
16
16
|
return /*#__PURE__*/React.createElement("div", {
|
|
17
17
|
/**
|
|
18
18
|
* This attribute is used to identify whether the SideNavHeader is mounted, to determine where the
|
|
19
|
-
*
|
|
19
|
+
* SideNavBody's scroll indicator line should be applied. This is for layering reasons -
|
|
20
20
|
* if the scroll indicator line intersects with the top nav, it could incorrectly be hidden beneath
|
|
21
21
|
* the top nav (depending on if a layer is open, which raises the top nav'z z-index).
|
|
22
22
|
*
|
|
23
23
|
* We are using a data attribute and CSS for this logic to ensure it is SSR safe.
|
|
24
24
|
*
|
|
25
|
-
* - If SideNavHeader exists, the scroll indicator line is applied to the
|
|
26
|
-
* because the SideNavHeader is between the
|
|
25
|
+
* - If SideNavHeader exists, the scroll indicator line is applied to the SideNavBody. This is safe
|
|
26
|
+
* because the SideNavHeader is between the SideNavBody and TopNavStart, so the scroll indicator line
|
|
27
27
|
* will not intersect with the top nav.
|
|
28
28
|
*
|
|
29
29
|
* - If SideNavHeader does not exist, the scroll indicator line is applied to TopNavStart. This ensures
|
|
@@ -784,7 +784,7 @@ function SideNavInternal({
|
|
|
784
784
|
/**
|
|
785
785
|
* The side navigation layout area. It will show on the left (inline start) of the screen.
|
|
786
786
|
*
|
|
787
|
-
* Use the side nav area components (`SideNavHeader`, `
|
|
787
|
+
* Use the side nav area components (`SideNavHeader`, `SideNavBody`, `SideNavFooter`) to position
|
|
788
788
|
* content within areas of the side nav.
|
|
789
789
|
*
|
|
790
790
|
* You can optionally render a `PanelSplitter` as a child to make the side navigation slot resizable.
|
|
@@ -36,7 +36,7 @@ const innerStyles = {
|
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
|
-
* The scroll indicator is usually applied in
|
|
39
|
+
* The scroll indicator is usually applied in SideNavBody, but if there is no SideNavHeader it is
|
|
40
40
|
* applied in TopNavStart instead for layering reasons. See the comment in SideNavHeader for more details.
|
|
41
41
|
*/
|
|
42
42
|
const scrolledShadow = null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { SideNav } from '../../ui/page-layout/side-nav/side-nav';
|
|
2
2
|
export { SideNavHeader } from '../../ui/page-layout/side-nav/side-nav-header';
|
|
3
|
-
export {
|
|
3
|
+
export { SideNavBody } from '../../ui/page-layout/side-nav/side-nav-content';
|
|
4
4
|
export { SideNavFooter } from '../../ui/page-layout/side-nav/side-nav-footer';
|
|
5
5
|
export { SideNavToggleButton } from '../../ui/page-layout/side-nav/toggle-button';
|
|
6
6
|
export { useToggleSideNav } from '../../ui/page-layout/side-nav/use-toggle-side-nav';
|
package/dist/esm/index.js
CHANGED
|
@@ -12,7 +12,7 @@ export { MainStickyHeader } from './ui/page-layout/main/main-sticky-header';
|
|
|
12
12
|
export { SideNavToggleButton } from './ui/page-layout/side-nav/toggle-button';
|
|
13
13
|
export { useToggleSideNav } from './ui/page-layout/side-nav/use-toggle-side-nav';
|
|
14
14
|
export { SideNavHeader } from './ui/page-layout/side-nav/side-nav-header';
|
|
15
|
-
export {
|
|
15
|
+
export { SideNavBody } from './ui/page-layout/side-nav/side-nav-content';
|
|
16
16
|
export { SideNavFooter } from './ui/page-layout/side-nav/side-nav-footer';
|
|
17
17
|
export { PanelSplitter } from './ui/page-layout/panel-splitter/panel-splitter';
|
|
18
18
|
export { PanelSplitterProvider } from './ui/page-layout/panel-splitter/provider';
|
|
@@ -74,6 +74,6 @@ export var openLayerObserverTopNavEndNamespace = 'top-nav-end';
|
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
76
|
* CSS scroll timeline variable for the side nav content scroll indicator.
|
|
77
|
-
* The scroll timeline is created in
|
|
77
|
+
* The scroll timeline is created in SideNavBody, and then used by TopNavStart to apply the scroll indicator line.
|
|
78
78
|
*/
|
|
79
79
|
export var sideNavContentScrollTimelineVar = '--sNcst';
|
|
@@ -14,7 +14,7 @@ import { useSideNavVisibility } from './use-side-nav-visibility';
|
|
|
14
14
|
* It will grow to take up the available space in the side nav — this is used to push the footer to the
|
|
15
15
|
* bottom of the side nav.
|
|
16
16
|
*/
|
|
17
|
-
export var
|
|
17
|
+
export var SideNavBody = /*#__PURE__*/forwardRef(_SideNavContent);
|
|
18
18
|
|
|
19
19
|
// Placing this const below the function breaks Compiled!
|
|
20
20
|
var styles = {
|
|
@@ -15,14 +15,14 @@ export var SideNavHeader = function SideNavHeader(_ref) {
|
|
|
15
15
|
return /*#__PURE__*/React.createElement("div", {
|
|
16
16
|
/**
|
|
17
17
|
* This attribute is used to identify whether the SideNavHeader is mounted, to determine where the
|
|
18
|
-
*
|
|
18
|
+
* SideNavBody's scroll indicator line should be applied. This is for layering reasons -
|
|
19
19
|
* if the scroll indicator line intersects with the top nav, it could incorrectly be hidden beneath
|
|
20
20
|
* the top nav (depending on if a layer is open, which raises the top nav'z z-index).
|
|
21
21
|
*
|
|
22
22
|
* We are using a data attribute and CSS for this logic to ensure it is SSR safe.
|
|
23
23
|
*
|
|
24
|
-
* - If SideNavHeader exists, the scroll indicator line is applied to the
|
|
25
|
-
* because the SideNavHeader is between the
|
|
24
|
+
* - If SideNavHeader exists, the scroll indicator line is applied to the SideNavBody. This is safe
|
|
25
|
+
* because the SideNavHeader is between the SideNavBody and TopNavStart, so the scroll indicator line
|
|
26
26
|
* will not intersect with the top nav.
|
|
27
27
|
*
|
|
28
28
|
* - If SideNavHeader does not exist, the scroll indicator line is applied to TopNavStart. This ensures
|
|
@@ -778,7 +778,7 @@ function SideNavInternal(_ref) {
|
|
|
778
778
|
/**
|
|
779
779
|
* The side navigation layout area. It will show on the left (inline start) of the screen.
|
|
780
780
|
*
|
|
781
|
-
* Use the side nav area components (`SideNavHeader`, `
|
|
781
|
+
* Use the side nav area components (`SideNavHeader`, `SideNavBody`, `SideNavFooter`) to position
|
|
782
782
|
* content within areas of the side nav.
|
|
783
783
|
*
|
|
784
784
|
* You can optionally render a `PanelSplitter` as a child to make the side navigation slot resizable.
|
|
@@ -37,7 +37,7 @@ var innerStyles = {
|
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
|
-
* The scroll indicator is usually applied in
|
|
40
|
+
* The scroll indicator is usually applied in SideNavBody, but if there is no SideNavHeader it is
|
|
41
41
|
* applied in TopNavStart instead for layering reasons. See the comment in SideNavHeader for more details.
|
|
42
42
|
*/
|
|
43
43
|
var scrolledShadow = null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { SideNav } from '../../ui/page-layout/side-nav/side-nav';
|
|
2
2
|
export { SideNavHeader } from '../../ui/page-layout/side-nav/side-nav-header';
|
|
3
|
-
export {
|
|
3
|
+
export { SideNavBody } from '../../ui/page-layout/side-nav/side-nav-content';
|
|
4
4
|
export { SideNavFooter } from '../../ui/page-layout/side-nav/side-nav-footer';
|
|
5
5
|
export { SideNavToggleButton } from '../../ui/page-layout/side-nav/toggle-button';
|
|
6
6
|
export { useToggleSideNav } from '../../ui/page-layout/side-nav/use-toggle-side-nav';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export { MainStickyHeader } from './ui/page-layout/main/main-sticky-header';
|
|
|
12
12
|
export { SideNavToggleButton, type SideNavVisibilityChangeAnalyticsAttributes, } from './ui/page-layout/side-nav/toggle-button';
|
|
13
13
|
export { useToggleSideNav } from './ui/page-layout/side-nav/use-toggle-side-nav';
|
|
14
14
|
export { SideNavHeader } from './ui/page-layout/side-nav/side-nav-header';
|
|
15
|
-
export {
|
|
15
|
+
export { SideNavBody } from './ui/page-layout/side-nav/side-nav-content';
|
|
16
16
|
export { SideNavFooter } from './ui/page-layout/side-nav/side-nav-footer';
|
|
17
17
|
export { PanelSplitter } from './ui/page-layout/panel-splitter/panel-splitter';
|
|
18
18
|
export { PanelSplitterProvider } from './ui/page-layout/panel-splitter/provider';
|
|
@@ -50,6 +50,6 @@ export declare const openLayerObserverTopNavMiddleNamespace = "top-nav-middle";
|
|
|
50
50
|
export declare const openLayerObserverTopNavEndNamespace = "top-nav-end";
|
|
51
51
|
/**
|
|
52
52
|
* CSS scroll timeline variable for the side nav content scroll indicator.
|
|
53
|
-
* The scroll timeline is created in
|
|
53
|
+
* The scroll timeline is created in SideNavBody, and then used by TopNavStart to apply the scroll indicator line.
|
|
54
54
|
*/
|
|
55
55
|
export declare const sideNavContentScrollTimelineVar = "--sNcst";
|
|
@@ -9,7 +9,7 @@ import React, { type ReactNode } from 'react';
|
|
|
9
9
|
* It will grow to take up the available space in the side nav — this is used to push the footer to the
|
|
10
10
|
* bottom of the side nav.
|
|
11
11
|
*/
|
|
12
|
-
export declare const
|
|
12
|
+
export declare const SideNavBody: React.ForwardRefExoticComponent<React.PropsWithoutRef<SideNavContentProps> & React.RefAttributes<HTMLDivElement>>;
|
|
13
13
|
type SideNavContentProps = {
|
|
14
14
|
/**
|
|
15
15
|
* The content of the layout area.
|
|
@@ -9,7 +9,7 @@ import { type VisibilityCallback } from './use-side-nav-visibility-callbacks';
|
|
|
9
9
|
type SideNavProps = CommonSlotProps & {
|
|
10
10
|
/**
|
|
11
11
|
* The content of the layout area.
|
|
12
|
-
* Should include side nav layout areas as required: `SideNavHeader`, `
|
|
12
|
+
* Should include side nav layout areas as required: `SideNavHeader`, `SideNavBody`, `SideNavFooter`.
|
|
13
13
|
* Within these, you can use side nav menu items.
|
|
14
14
|
*/
|
|
15
15
|
children: React.ReactNode;
|
|
@@ -82,7 +82,7 @@ export declare const onPeekStartDelayMs = 500;
|
|
|
82
82
|
/**
|
|
83
83
|
* The side navigation layout area. It will show on the left (inline start) of the screen.
|
|
84
84
|
*
|
|
85
|
-
* Use the side nav area components (`SideNavHeader`, `
|
|
85
|
+
* Use the side nav area components (`SideNavHeader`, `SideNavBody`, `SideNavFooter`) to position
|
|
86
86
|
* content within areas of the side nav.
|
|
87
87
|
*
|
|
88
88
|
* You can optionally render a `PanelSplitter` as a child to make the side navigation slot resizable.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { SideNav } from '../../ui/page-layout/side-nav/side-nav';
|
|
2
2
|
export { SideNavHeader } from '../../ui/page-layout/side-nav/side-nav-header';
|
|
3
|
-
export {
|
|
3
|
+
export { SideNavBody } from '../../ui/page-layout/side-nav/side-nav-content';
|
|
4
4
|
export { SideNavFooter } from '../../ui/page-layout/side-nav/side-nav-footer';
|
|
5
5
|
export { SideNavToggleButton } from '../../ui/page-layout/side-nav/toggle-button';
|
|
6
6
|
export { useToggleSideNav } from '../../ui/page-layout/side-nav/use-toggle-side-nav';
|
|
@@ -12,7 +12,7 @@ export { MainStickyHeader } from './ui/page-layout/main/main-sticky-header';
|
|
|
12
12
|
export { SideNavToggleButton, type SideNavVisibilityChangeAnalyticsAttributes, } from './ui/page-layout/side-nav/toggle-button';
|
|
13
13
|
export { useToggleSideNav } from './ui/page-layout/side-nav/use-toggle-side-nav';
|
|
14
14
|
export { SideNavHeader } from './ui/page-layout/side-nav/side-nav-header';
|
|
15
|
-
export {
|
|
15
|
+
export { SideNavBody } from './ui/page-layout/side-nav/side-nav-content';
|
|
16
16
|
export { SideNavFooter } from './ui/page-layout/side-nav/side-nav-footer';
|
|
17
17
|
export { PanelSplitter } from './ui/page-layout/panel-splitter/panel-splitter';
|
|
18
18
|
export { PanelSplitterProvider } from './ui/page-layout/panel-splitter/provider';
|
|
@@ -50,6 +50,6 @@ export declare const openLayerObserverTopNavMiddleNamespace = "top-nav-middle";
|
|
|
50
50
|
export declare const openLayerObserverTopNavEndNamespace = "top-nav-end";
|
|
51
51
|
/**
|
|
52
52
|
* CSS scroll timeline variable for the side nav content scroll indicator.
|
|
53
|
-
* The scroll timeline is created in
|
|
53
|
+
* The scroll timeline is created in SideNavBody, and then used by TopNavStart to apply the scroll indicator line.
|
|
54
54
|
*/
|
|
55
55
|
export declare const sideNavContentScrollTimelineVar = "--sNcst";
|
|
@@ -9,7 +9,7 @@ import React, { type ReactNode } from 'react';
|
|
|
9
9
|
* It will grow to take up the available space in the side nav — this is used to push the footer to the
|
|
10
10
|
* bottom of the side nav.
|
|
11
11
|
*/
|
|
12
|
-
export declare const
|
|
12
|
+
export declare const SideNavBody: React.ForwardRefExoticComponent<React.PropsWithoutRef<SideNavContentProps> & React.RefAttributes<HTMLDivElement>>;
|
|
13
13
|
type SideNavContentProps = {
|
|
14
14
|
/**
|
|
15
15
|
* The content of the layout area.
|
|
@@ -9,7 +9,7 @@ import { type VisibilityCallback } from './use-side-nav-visibility-callbacks';
|
|
|
9
9
|
type SideNavProps = CommonSlotProps & {
|
|
10
10
|
/**
|
|
11
11
|
* The content of the layout area.
|
|
12
|
-
* Should include side nav layout areas as required: `SideNavHeader`, `
|
|
12
|
+
* Should include side nav layout areas as required: `SideNavHeader`, `SideNavBody`, `SideNavFooter`.
|
|
13
13
|
* Within these, you can use side nav menu items.
|
|
14
14
|
*/
|
|
15
15
|
children: React.ReactNode;
|
|
@@ -82,7 +82,7 @@ export declare const onPeekStartDelayMs = 500;
|
|
|
82
82
|
/**
|
|
83
83
|
* The side navigation layout area. It will show on the left (inline start) of the screen.
|
|
84
84
|
*
|
|
85
|
-
* Use the side nav area components (`SideNavHeader`, `
|
|
85
|
+
* Use the side nav area components (`SideNavHeader`, `SideNavBody`, `SideNavFooter`) to position
|
|
86
86
|
* content within areas of the side nav.
|
|
87
87
|
*
|
|
88
88
|
* You can optionally render a `PanelSplitter` as a child to make the side navigation slot resizable.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/navigation-system",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "The latest navigation system for Atlassian apps.",
|
|
5
5
|
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
6
6
|
"author": "Atlassian Pty Ltd",
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
"@atlaskit/popup": "^4.14.0",
|
|
76
76
|
"@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
|
|
77
77
|
"@atlaskit/primitives": "^18.0.0",
|
|
78
|
-
"@atlaskit/side-nav-items": "^1.
|
|
79
|
-
"@atlaskit/tokens": "^11.
|
|
78
|
+
"@atlaskit/side-nav-items": "^1.12.0",
|
|
79
|
+
"@atlaskit/tokens": "^11.2.0",
|
|
80
80
|
"@atlaskit/tooltip": "^21.0.0",
|
|
81
81
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
82
82
|
"@babel/runtime": "^7.0.0",
|