@atlaskit/side-navigation 11.0.20 → 11.0.22
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
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/side-navigation
|
|
2
2
|
|
|
3
|
+
## 11.0.22
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 11.0.21
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 11.0.20
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -1050,7 +1062,6 @@
|
|
|
1050
1062
|
- [#28090](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28090)
|
|
1051
1063
|
[`caa68aad0fd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/caa68aad0fd) - Internal
|
|
1052
1064
|
changes around styles:
|
|
1053
|
-
|
|
1054
1065
|
- Application of primitives for more declarative code
|
|
1055
1066
|
- Application of spacing tokens to internal styles
|
|
1056
1067
|
|
|
@@ -1323,7 +1334,6 @@
|
|
|
1323
1334
|
- [#10255](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10255)
|
|
1324
1335
|
[`4e72825fa89`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4e72825fa89) -
|
|
1325
1336
|
JET-1156:
|
|
1326
|
-
|
|
1327
1337
|
- Export `VAR_SEPARATOR_COLOR` to override separator color when using custom backrounds in side
|
|
1328
1338
|
navigation.
|
|
1329
1339
|
- Export `VAR_SCROLL_INDICATOR_COLOR` to override menu scroll indicator color when using custom
|
|
@@ -1655,11 +1665,9 @@
|
|
|
1655
1665
|
- [minor][7ecbf8d0bd](https://bitbucket.org/atlassian/atlassian-frontend/commits/7ecbf8d0bd):
|
|
1656
1666
|
|
|
1657
1667
|
**Breaking:**
|
|
1658
|
-
|
|
1659
1668
|
- SideNavigation now has a required `label` prop.
|
|
1660
1669
|
|
|
1661
1670
|
**Accessibility Changes**
|
|
1662
|
-
|
|
1663
1671
|
- SideNavigation now has a `navigation` landmark for use with screen readers; this landmark is
|
|
1664
1672
|
further described by the `label` prop to differentiate it from AtlassianNavigation-
|
|
1665
1673
|
[minor][1fea6757c4](https://bitbucket.org/atlassian/atlassian-frontend/commits/1fea6757c4):
|
|
@@ -1798,7 +1806,6 @@
|
|
|
1798
1806
|
- [minor][e1416630ed](https://bitbucket.org/atlassian/atlassian-frontend/commits/e1416630ed):
|
|
1799
1807
|
|
|
1800
1808
|
**BREAKING**: Renamed exported components
|
|
1801
|
-
|
|
1802
1809
|
- Renamed `MainSection` to `NavigationContent`
|
|
1803
1810
|
- Renamed `NestingTransitionProvider` to `NestableNavigationContent`
|
|
1804
1811
|
- `NestableNavigationContent` does not need to be wrapped by a `MainSection`
|
|
@@ -1806,7 +1813,6 @@
|
|
|
1806
1813
|
- Renamed `Footer` to `NavigationFooter`
|
|
1807
1814
|
|
|
1808
1815
|
Improve behaviour of scrollabe sections:
|
|
1809
|
-
|
|
1810
1816
|
- Fixes a bug where different views shared the same scrollable section causing unexpected jumps on
|
|
1811
1817
|
some unnesting interactions
|
|
1812
1818
|
- `ScrollableSection` now shows an overflow indicator when items are scrolled off the top border
|
|
@@ -1814,7 +1820,6 @@
|
|
|
1814
1820
|
[minor][d752f27427](https://bitbucket.org/atlassian/atlassian-frontend/commits/d752f27427):
|
|
1815
1821
|
|
|
1816
1822
|
API changes and design changes for side-navigation
|
|
1817
|
-
|
|
1818
1823
|
- **BREAKING**: `SectionHeader` has been renamed to `SectionHeading`
|
|
1819
1824
|
- `SIDEBAR_DEFAULT_WIDTH` has been exported
|
|
1820
1825
|
- `Item` has been removed and replaced with `CustomItem`, `ButtonItem`, `LinkItem` which are thin
|
|
@@ -1832,21 +1837,18 @@
|
|
|
1832
1837
|
**BREAKING**: `id` prop is now required on NestingItems
|
|
1833
1838
|
|
|
1834
1839
|
The back button in nested views can now be customised
|
|
1835
|
-
|
|
1836
1840
|
- By default an English `Go Back` button will be shown
|
|
1837
1841
|
- Use `renderDefaultBackButton` on the `NestableNavigationContent` to set a new default
|
|
1838
1842
|
- Use `renderBackButton` on each `NestingItem` to specifically set a back trigger for exiting the
|
|
1839
1843
|
view it controls
|
|
1840
1844
|
|
|
1841
1845
|
The link form of nested views can now be customised
|
|
1842
|
-
|
|
1843
1846
|
- Use `customItemComponent` to pass in a functional/class component that adds extra behaviour
|
|
1844
1847
|
around the link (see @atlaskit/menu for examples on how to configure CustomItems)
|
|
1845
1848
|
|
|
1846
1849
|
### Patch Changes
|
|
1847
1850
|
|
|
1848
1851
|
- [patch][babae63a7b](https://bitbucket.org/atlassian/atlassian-frontend/commits/babae63a7b):
|
|
1849
|
-
|
|
1850
1852
|
- Refactors nested navigation implementation
|
|
1851
1853
|
- Now selects `NestingItem` & `GoBackItem` when it is exiting
|
|
1852
1854
|
- Fixes double clicking a `NestingItem` and `GoBackItem` resulting in an unwanted double
|
|
@@ -1875,7 +1877,6 @@
|
|
|
1875
1877
|
|
|
1876
1878
|
Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
|
|
1877
1879
|
[6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
|
|
1878
|
-
|
|
1879
1880
|
- @atlaskit/docs@8.3.2
|
|
1880
1881
|
- @atlaskit/icon@20.0.1
|
|
1881
1882
|
- @atlaskit/menu@0.2.6
|
|
@@ -1890,13 +1891,11 @@
|
|
|
1890
1891
|
|
|
1891
1892
|
`NestingItem` now has an extra prop `isInitiallyOpen` that allows the side-navigation to initially
|
|
1892
1893
|
render a particular nested view
|
|
1893
|
-
|
|
1894
1894
|
- To select a particular sidebar view to be rendered initially the `isInitiallyOpen` prop must be
|
|
1895
1895
|
set on all parent `NestingItem`s in the navigation tree-
|
|
1896
1896
|
[patch][a806cde423](https://bitbucket.org/atlassian/atlassian-frontend/commits/a806cde423):
|
|
1897
1897
|
|
|
1898
1898
|
Iterative updates to side-navigation:
|
|
1899
|
-
|
|
1900
1899
|
- Go Back link in nested views now sticks to the top of the scrollable area
|
|
1901
1900
|
- Removed broken css styles
|
|
1902
1901
|
- Implemented sliding transitions rather than fades- Updated dependencies
|
|
@@ -14,7 +14,7 @@ export declare const outerContainerCSS: (opts: StyleOpts & {
|
|
|
14
14
|
readonly height: "100%";
|
|
15
15
|
readonly overflow: "hidden";
|
|
16
16
|
readonly position: "relative";
|
|
17
|
-
readonly
|
|
17
|
+
readonly "&::before": {
|
|
18
18
|
readonly content: "''";
|
|
19
19
|
readonly display: "block";
|
|
20
20
|
readonly left: "var(--ds-space-100)";
|
|
@@ -25,7 +25,7 @@ export declare const outerContainerCSS: (opts: StyleOpts & {
|
|
|
25
25
|
readonly position: "absolute";
|
|
26
26
|
readonly zIndex: 1;
|
|
27
27
|
};
|
|
28
|
-
readonly
|
|
28
|
+
readonly "&::after": {
|
|
29
29
|
readonly content: "''";
|
|
30
30
|
readonly position: "absolute";
|
|
31
31
|
readonly display: "block";
|
|
@@ -45,7 +45,7 @@ export declare const outerContainerCSS: (opts: StyleOpts & {
|
|
|
45
45
|
* to the top or bottom of the container.
|
|
46
46
|
*/
|
|
47
47
|
export declare const innerContainerCSS: (opts: StyleOpts) => {
|
|
48
|
-
readonly
|
|
48
|
+
readonly "&::after": {
|
|
49
49
|
readonly borderRadius: "var(--ds-radius-xsmall)";
|
|
50
50
|
readonly content: "''";
|
|
51
51
|
readonly display: "block";
|
|
@@ -56,7 +56,7 @@ export declare const innerContainerCSS: (opts: StyleOpts) => {
|
|
|
56
56
|
readonly zIndex: 2;
|
|
57
57
|
readonly backgroundColor: "var(--ds-menu-scroll-indicator-color, var(--ds-surface))";
|
|
58
58
|
};
|
|
59
|
-
readonly
|
|
59
|
+
readonly "&::before"?: {
|
|
60
60
|
readonly borderRadius: "var(--ds-radius-xsmall)";
|
|
61
61
|
readonly content: "''";
|
|
62
62
|
readonly left: 0;
|
|
@@ -79,11 +79,11 @@ export declare const containerCSS: (opts: StyleOpts) => {
|
|
|
79
79
|
readonly marginLeft: "var(--ds-space-100)";
|
|
80
80
|
readonly marginRight: "var(--ds-space-100)";
|
|
81
81
|
readonly position: "relative";
|
|
82
|
-
readonly
|
|
82
|
+
readonly "& [data-ds--menu--heading-item]": {
|
|
83
83
|
readonly marginBottom: "var(--ds-space-075)";
|
|
84
84
|
readonly marginTop: "var(--ds-space-200)";
|
|
85
85
|
};
|
|
86
|
-
readonly
|
|
86
|
+
readonly "& [data-ds--menu--skeleton-heading-item]": {
|
|
87
87
|
readonly marginTop: number;
|
|
88
88
|
readonly marginBottom: number;
|
|
89
89
|
};
|
|
@@ -14,7 +14,7 @@ export declare const outerContainerCSS: (opts: StyleOpts & {
|
|
|
14
14
|
readonly height: "100%";
|
|
15
15
|
readonly overflow: "hidden";
|
|
16
16
|
readonly position: "relative";
|
|
17
|
-
readonly
|
|
17
|
+
readonly "&::before": {
|
|
18
18
|
readonly content: "''";
|
|
19
19
|
readonly display: "block";
|
|
20
20
|
readonly left: "var(--ds-space-100)";
|
|
@@ -25,7 +25,7 @@ export declare const outerContainerCSS: (opts: StyleOpts & {
|
|
|
25
25
|
readonly position: "absolute";
|
|
26
26
|
readonly zIndex: 1;
|
|
27
27
|
};
|
|
28
|
-
readonly
|
|
28
|
+
readonly "&::after": {
|
|
29
29
|
readonly content: "''";
|
|
30
30
|
readonly position: "absolute";
|
|
31
31
|
readonly display: "block";
|
|
@@ -45,7 +45,7 @@ export declare const outerContainerCSS: (opts: StyleOpts & {
|
|
|
45
45
|
* to the top or bottom of the container.
|
|
46
46
|
*/
|
|
47
47
|
export declare const innerContainerCSS: (opts: StyleOpts) => {
|
|
48
|
-
readonly
|
|
48
|
+
readonly "&::after": {
|
|
49
49
|
readonly borderRadius: "var(--ds-radius-xsmall)";
|
|
50
50
|
readonly content: "''";
|
|
51
51
|
readonly display: "block";
|
|
@@ -56,7 +56,7 @@ export declare const innerContainerCSS: (opts: StyleOpts) => {
|
|
|
56
56
|
readonly zIndex: 2;
|
|
57
57
|
readonly backgroundColor: "var(--ds-menu-scroll-indicator-color, var(--ds-surface))";
|
|
58
58
|
};
|
|
59
|
-
readonly
|
|
59
|
+
readonly "&::before"?: {
|
|
60
60
|
readonly borderRadius: "var(--ds-radius-xsmall)";
|
|
61
61
|
readonly content: "''";
|
|
62
62
|
readonly left: 0;
|
|
@@ -79,11 +79,11 @@ export declare const containerCSS: (opts: StyleOpts) => {
|
|
|
79
79
|
readonly marginLeft: "var(--ds-space-100)";
|
|
80
80
|
readonly marginRight: "var(--ds-space-100)";
|
|
81
81
|
readonly position: "relative";
|
|
82
|
-
readonly
|
|
82
|
+
readonly "& [data-ds--menu--heading-item]": {
|
|
83
83
|
readonly marginBottom: "var(--ds-space-075)";
|
|
84
84
|
readonly marginTop: "var(--ds-space-200)";
|
|
85
85
|
};
|
|
86
|
-
readonly
|
|
86
|
+
readonly "& [data-ds--menu--skeleton-heading-item]": {
|
|
87
87
|
readonly marginTop: number;
|
|
88
88
|
readonly marginBottom: number;
|
|
89
89
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/side-navigation",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.22",
|
|
4
4
|
"description": "A highly composable side navigation component that supports nested views.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -28,17 +28,17 @@
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@atlaskit/css": "^0.
|
|
31
|
+
"@atlaskit/css": "^0.15.0",
|
|
32
32
|
"@atlaskit/ds-lib": "^5.1.0",
|
|
33
|
-
"@atlaskit/icon": "^28.
|
|
33
|
+
"@atlaskit/icon": "^28.5.0",
|
|
34
34
|
"@atlaskit/menu": "^8.4.0",
|
|
35
35
|
"@atlaskit/motion": "^5.3.0",
|
|
36
36
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
37
|
-
"@atlaskit/primitives": "^
|
|
37
|
+
"@atlaskit/primitives": "^15.0.0",
|
|
38
38
|
"@atlaskit/theme": "^21.0.0",
|
|
39
|
-
"@atlaskit/tokens": "^
|
|
39
|
+
"@atlaskit/tokens": "^7.0.0",
|
|
40
40
|
"@babel/runtime": "^7.0.0",
|
|
41
|
-
"@compiled/react": "^0.18.
|
|
41
|
+
"@compiled/react": "^0.18.6"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"react": "^18.2.0"
|
|
@@ -48,13 +48,13 @@
|
|
|
48
48
|
"@af/integration-testing": "workspace:^",
|
|
49
49
|
"@af/visual-regression": "workspace:^",
|
|
50
50
|
"@atlaskit/atlassian-navigation": "^5.3.0",
|
|
51
|
-
"@atlaskit/button": "^23.
|
|
52
|
-
"@atlaskit/docs": "^11.
|
|
51
|
+
"@atlaskit/button": "^23.5.0",
|
|
52
|
+
"@atlaskit/docs": "^11.2.0",
|
|
53
53
|
"@atlaskit/dropdown-menu": "^16.3.0",
|
|
54
54
|
"@atlaskit/form": "^14.2.0",
|
|
55
55
|
"@atlaskit/image": "^3.0.0",
|
|
56
56
|
"@atlaskit/link": "^3.2.0",
|
|
57
|
-
"@atlaskit/logo": "^19.
|
|
57
|
+
"@atlaskit/logo": "^19.9.0",
|
|
58
58
|
"@atlaskit/onboarding": "^14.4.0",
|
|
59
59
|
"@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
|
|
60
60
|
"@atlaskit/pragmatic-drag-and-drop-live-region": "^1.3.0",
|