@atlaskit/navigation-system 10.2.0 → 10.4.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 +18 -0
- package/constellation/top-nav-items/examples.mdx +4 -1
- package/dist/cjs/entry-points/layout/panel.js +20 -1
- package/dist/cjs/entry-points/layout/side-nav.js +7 -0
- package/dist/cjs/ui/page-layout/main/main.compiled.css +1 -0
- package/dist/cjs/ui/page-layout/main/main.js +3 -2
- package/dist/cjs/ui/top-nav-items/themed/themed-anchor.compiled.css +2 -0
- package/dist/cjs/ui/top-nav-items/themed/themed-anchor.js +2 -1
- package/dist/es2019/entry-points/layout/panel.js +2 -1
- package/dist/es2019/entry-points/layout/side-nav.js +1 -0
- package/dist/es2019/ui/page-layout/main/main.compiled.css +1 -0
- package/dist/es2019/ui/page-layout/main/main.js +3 -2
- package/dist/es2019/ui/top-nav-items/themed/themed-anchor.compiled.css +2 -0
- package/dist/es2019/ui/top-nav-items/themed/themed-anchor.js +2 -1
- package/dist/esm/entry-points/layout/panel.js +2 -1
- package/dist/esm/entry-points/layout/side-nav.js +1 -0
- package/dist/esm/ui/page-layout/main/main.compiled.css +1 -0
- package/dist/esm/ui/page-layout/main/main.js +3 -2
- package/dist/esm/ui/top-nav-items/themed/themed-anchor.compiled.css +2 -0
- package/dist/esm/ui/top-nav-items/themed/themed-anchor.js +2 -1
- package/dist/types/entry-points/layout/panel.d.ts +1 -0
- package/dist/types/entry-points/layout/side-nav.d.ts +1 -0
- package/package.json +18 -27
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlassian/navigation-system
|
|
2
2
|
|
|
3
|
+
## 10.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`5ad834eeed183`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5ad834eeed183) -
|
|
8
|
+
Main component now has a fixed height on smaller viewports behind a feature gate. This is to
|
|
9
|
+
enable in-app panels with correct scroll and overlay behaviour.
|
|
10
|
+
|
|
11
|
+
## 10.3.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [`a3b0e6c4eeab7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a3b0e6c4eeab7) -
|
|
16
|
+
Apply button motion tokens (motion.button.hovered / motion.button.pressed) to top-nav
|
|
17
|
+
ThemedAnchor, gated behind platform-dst-motion-uplift-button, for parity with ThemedPressable.
|
|
18
|
+
Also enables the gate by default in the top nav button constellation example so the motion is
|
|
19
|
+
previewed in the docs.
|
|
20
|
+
|
|
3
21
|
## 10.2.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
|
@@ -171,7 +171,10 @@ A button component that supports theming. The following variants are available:
|
|
|
171
171
|
Use this component when you need to add buttons to the top nav. Be aware that adding custom buttons
|
|
172
172
|
may negatively impact the consistency across apps.
|
|
173
173
|
|
|
174
|
-
<Example
|
|
174
|
+
<Example
|
|
175
|
+
Component={TopNavButtonExample}
|
|
176
|
+
featureFlagDefaults={{ 'platform-dst-motion-uplift-button': true }}
|
|
177
|
+
/>
|
|
175
178
|
|
|
176
179
|
## Responsive
|
|
177
180
|
|
|
@@ -9,4 +9,23 @@ Object.defineProperty(exports, "Panel", {
|
|
|
9
9
|
return _panel.Panel;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
|
|
12
|
+
Object.defineProperty(exports, "contentHeightWhenFixed", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _constants.contentHeightWhenFixed;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "contentInsetBlockStart", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _constants.contentInsetBlockStart;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "sideNavLiveWidthVar", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _constants.sideNavLiveWidthVar;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
var _panel = require("../../ui/page-layout/panel");
|
|
31
|
+
var _constants = require("../../ui/page-layout/constants");
|
|
@@ -45,6 +45,12 @@ Object.defineProperty(exports, "useExpandSideNav", {
|
|
|
45
45
|
return _useExpandSideNav.useExpandSideNav;
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
|
+
Object.defineProperty(exports, "useSideNavRef", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function get() {
|
|
51
|
+
return _useSideNavRef.useSideNavRef;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
48
54
|
Object.defineProperty(exports, "useToggleSideNav", {
|
|
49
55
|
enumerable: true,
|
|
50
56
|
get: function get() {
|
|
@@ -58,4 +64,5 @@ var _sideNavFooter = require("../../ui/page-layout/side-nav/side-nav-footer");
|
|
|
58
64
|
var _toggleButton = require("../../ui/page-layout/side-nav/toggle-button");
|
|
59
65
|
var _useToggleSideNav = require("../../ui/page-layout/side-nav/use-toggle-side-nav");
|
|
60
66
|
var _useExpandSideNav = require("../../ui/page-layout/side-nav/use-expand-side-nav");
|
|
67
|
+
var _useSideNavRef = require("../../ui/page-layout/side-nav/use-side-nav-ref");
|
|
61
68
|
var _sideNavPanelSplitter = require("../../ui/page-layout/panel-splitter/side-nav-panel-splitter");
|
|
@@ -3,4 +3,5 @@
|
|
|
3
3
|
._18m91wug{overflow-y:auto}
|
|
4
4
|
._19121cl4{isolation:isolate}
|
|
5
5
|
._1reo1wug{overflow-x:auto}
|
|
6
|
+
._4t3ieqxy{height:calc(100vh - var(--n_bnrM, 0px) - var(--n_tNvM, 0px))}
|
|
6
7
|
@media (min-width:64rem){._qwfh1wug{isolation:auto}._165teqxy{height:calc(100vh - var(--n_bnrM, 0px) - var(--n_tNvM, 0px))}._13wn1if8{position:sticky}}
|
|
@@ -16,7 +16,8 @@ var _constants = require("../constants");
|
|
|
16
16
|
var _useLayoutId = require("../use-layout-id");
|
|
17
17
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
18
18
|
var mainElementStyles = {
|
|
19
|
-
root: "_nd5l1gzg _1reo1wug _18m91wug _19121cl4 _152timx3 _qwfh1wug _165teqxy _13wn1if8"
|
|
19
|
+
root: "_nd5l1gzg _1reo1wug _18m91wug _19121cl4 _152timx3 _qwfh1wug _165teqxy _13wn1if8",
|
|
20
|
+
fixedHeight: "_4t3ieqxy"
|
|
20
21
|
};
|
|
21
22
|
|
|
22
23
|
/**
|
|
@@ -36,7 +37,7 @@ function Main(_ref) {
|
|
|
36
37
|
return /*#__PURE__*/React.createElement(_react.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
37
38
|
id: id,
|
|
38
39
|
"data-layout-slot": true,
|
|
39
|
-
className: (0, _runtime.ax)([mainElementStyles.root, xcss]),
|
|
40
|
+
className: (0, _runtime.ax)([mainElementStyles.root, (0, _platformFeatureFlags.fg)('platform-ads-nav-fixed-height') && mainElementStyles.fixedHeight, xcss]),
|
|
40
41
|
role: "main",
|
|
41
42
|
"data-testid": testId
|
|
42
43
|
}, children));
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
._2rkofajl{border-radius:var(--ds-radius-small,3px)}
|
|
10
10
|
._9v7aze3t:after{inset:var(--ds-space-0,0)}
|
|
11
11
|
._v5649dqc{transition:background .1s ease-out}
|
|
12
|
+
._v564o1g2{transition:var(--ds-button-hovered,background-color .15s cubic-bezier(.4,1,.6,1))}
|
|
12
13
|
._zulp12x7{gap:var(--ds-space-075,6px)}
|
|
13
14
|
._18zrutpp{padding-inline:var(--ds-space-150,9pt)}
|
|
14
15
|
._18zrze3t{padding-inline:var(--ds-space-0,0)}
|
|
@@ -55,6 +56,7 @@
|
|
|
55
56
|
._30l3w5ct:hover{color:var(--ds-top-bar-button-selected-text)}
|
|
56
57
|
._9oik1r31:hover{text-decoration-color:currentColor}
|
|
57
58
|
._jf4cnqa1:hover{text-decoration-style:solid}
|
|
59
|
+
._1gglat8s:active{transition:var(--ds-button-pressed,background-color .15s cubic-bezier(.4,1,.6,1))}
|
|
58
60
|
._j6xt1c9b:active{background:var(--ds-top-bar-button-disabled-background)}
|
|
59
61
|
._j6xt5sko:active{background:var(--ds-top-bar-button-primary-background-pressed)}
|
|
60
62
|
._j6xtnh62:active{background:var(--ds-top-bar-button-selected-background-pressed)}
|
|
@@ -20,6 +20,7 @@ var _excluded = ["appearance", "shape", "isSelected", "isDisabled"];
|
|
|
20
20
|
var styles = {
|
|
21
21
|
root: "_zulp12x7 _11c8fhey _2rkofajl _v5649dqc _4bfu1r31 _1hmsglyw _ajmmnqa1 _1rjcze3t _1e0c1txw _4cvr1h6o _1bah1h6o _4t3i5r7u _kqswh2mm _1nrm1r31 _1a3b1r31 _9oik1r31 _c2waglyw _4fprglyw _1bnxglyw _1iohnqa1 _5goinqa1 _jf4cnqa1",
|
|
22
22
|
rootT26Shape: "_2rko1qi0",
|
|
23
|
+
interactiveMotion: "_v564o1g2 _1gglat8s",
|
|
23
24
|
border: "_14mj1kw7 _9v7aze3t _1tv3nqa1 _39yqe4h9 _aetrb3bt _18postnw",
|
|
24
25
|
selected: "_11q71qds _syazw5ct _8l3m15jn _f8pjw5ct _1053w5ct _19lcjrv1 _30l3w5ct _j6xtnh62 _9h8hw5ct",
|
|
25
26
|
disabled: "_11q71c9b _syaz1i3i _8l3m1j28 _f8pj1i3i _10531i3i _19lc1c9b _30l31i3i _j6xt1c9b _9h8h1i3i"
|
|
@@ -60,7 +61,7 @@ function ThemedAnchorFn(_ref, ref) {
|
|
|
60
61
|
// @ts-expect-error
|
|
61
62
|
// eslint-disable-next-line @compiled/no-suppress-xcss
|
|
62
63
|
,
|
|
63
|
-
xcss: (0, _react2.cx)(styles.root, (0, _platformFeatureFlags.fg)('platform-dst-shape-theme-default') && styles.rootT26Shape, shapeStyles[shape], hasBorder && styles.border, appearanceStyles[appearance], isSelected && styles.selected, isDisabled && styles.disabled)
|
|
64
|
+
xcss: (0, _react2.cx)(styles.root, (0, _platformFeatureFlags.fg)('platform-dst-shape-theme-default') && styles.rootT26Shape, shapeStyles[shape], hasBorder && styles.border, appearanceStyles[appearance], isSelected && styles.selected, isDisabled && styles.disabled, (0, _platformFeatureFlags.fg)('platform-dst-motion-uplift-button') && styles.interactiveMotion)
|
|
64
65
|
}));
|
|
65
66
|
}
|
|
66
67
|
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { Panel } from '../../ui/page-layout/panel';
|
|
1
|
+
export { Panel } from '../../ui/page-layout/panel';
|
|
2
|
+
export { contentHeightWhenFixed, contentInsetBlockStart, sideNavLiveWidthVar } from '../../ui/page-layout/constants';
|
|
@@ -5,4 +5,5 @@ 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';
|
|
7
7
|
export { useExpandSideNav } from '../../ui/page-layout/side-nav/use-expand-side-nav';
|
|
8
|
+
export { useSideNavRef } from '../../ui/page-layout/side-nav/use-side-nav-ref';
|
|
8
9
|
export { SideNavPanelSplitter } from '../../ui/page-layout/panel-splitter/side-nav-panel-splitter';
|
|
@@ -3,4 +3,5 @@
|
|
|
3
3
|
._18m91wug{overflow-y:auto}
|
|
4
4
|
._19121cl4{isolation:isolate}
|
|
5
5
|
._1reo1wug{overflow-x:auto}
|
|
6
|
+
._4t3ieqxy{height:calc(100vh - var(--n_bnrM, 0px) - var(--n_tNvM, 0px))}
|
|
6
7
|
@media (min-width:64rem){._qwfh1wug{isolation:auto}._165teqxy{height:calc(100vh - var(--n_bnrM, 0px) - var(--n_tNvM, 0px))}._13wn1if8{position:sticky}}
|
|
@@ -8,7 +8,8 @@ import { useSkipLink } from '../../../context/skip-links/use-skip-link';
|
|
|
8
8
|
import { contentHeightWhenFixed, contentInsetBlockStart } from '../constants';
|
|
9
9
|
import { useLayoutId } from '../use-layout-id';
|
|
10
10
|
const mainElementStyles = {
|
|
11
|
-
root: "_nd5l1gzg _1reo1wug _18m91wug _19121cl4 _152timx3 _qwfh1wug _165teqxy _13wn1if8"
|
|
11
|
+
root: "_nd5l1gzg _1reo1wug _18m91wug _19121cl4 _152timx3 _qwfh1wug _165teqxy _13wn1if8",
|
|
12
|
+
fixedHeight: "_4t3ieqxy"
|
|
12
13
|
};
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -28,7 +29,7 @@ export function Main({
|
|
|
28
29
|
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
29
30
|
id: id,
|
|
30
31
|
"data-layout-slot": true,
|
|
31
|
-
className: ax([mainElementStyles.root, xcss]),
|
|
32
|
+
className: ax([mainElementStyles.root, fg('platform-ads-nav-fixed-height') && mainElementStyles.fixedHeight, xcss]),
|
|
32
33
|
role: "main",
|
|
33
34
|
"data-testid": testId
|
|
34
35
|
}, children));
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
._2rkofajl{border-radius:var(--ds-radius-small,3px)}
|
|
10
10
|
._9v7aze3t:after{inset:var(--ds-space-0,0)}
|
|
11
11
|
._v5649dqc{transition:background .1s ease-out}
|
|
12
|
+
._v564o1g2{transition:var(--ds-button-hovered,background-color .15s cubic-bezier(.4,1,.6,1))}
|
|
12
13
|
._zulp12x7{gap:var(--ds-space-075,6px)}
|
|
13
14
|
._18zrutpp{padding-inline:var(--ds-space-150,9pt)}
|
|
14
15
|
._18zrze3t{padding-inline:var(--ds-space-0,0)}
|
|
@@ -55,6 +56,7 @@
|
|
|
55
56
|
._30l3w5ct:hover{color:var(--ds-top-bar-button-selected-text)}
|
|
56
57
|
._9oik1r31:hover{text-decoration-color:currentColor}
|
|
57
58
|
._jf4cnqa1:hover{text-decoration-style:solid}
|
|
59
|
+
._1gglat8s:active{transition:var(--ds-button-pressed,background-color .15s cubic-bezier(.4,1,.6,1))}
|
|
58
60
|
._j6xt1c9b:active{background:var(--ds-top-bar-button-disabled-background)}
|
|
59
61
|
._j6xt5sko:active{background:var(--ds-top-bar-button-primary-background-pressed)}
|
|
60
62
|
._j6xtnh62:active{background:var(--ds-top-bar-button-selected-background-pressed)}
|
|
@@ -11,6 +11,7 @@ import { getPrimitiveSpreadProps } from './get-primitives-spread-props';
|
|
|
11
11
|
const styles = {
|
|
12
12
|
root: "_zulp12x7 _11c8fhey _2rkofajl _v5649dqc _4bfu1r31 _1hmsglyw _ajmmnqa1 _1rjcze3t _1e0c1txw _4cvr1h6o _1bah1h6o _4t3i5r7u _kqswh2mm _1nrm1r31 _1a3b1r31 _9oik1r31 _c2waglyw _4fprglyw _1bnxglyw _1iohnqa1 _5goinqa1 _jf4cnqa1",
|
|
13
13
|
rootT26Shape: "_2rko1qi0",
|
|
14
|
+
interactiveMotion: "_v564o1g2 _1gglat8s",
|
|
14
15
|
border: "_14mj1kw7 _9v7aze3t _1tv3nqa1 _39yqe4h9 _aetrb3bt _18postnw",
|
|
15
16
|
selected: "_11q71qds _syazw5ct _8l3m15jn _f8pjw5ct _1053w5ct _19lcjrv1 _30l3w5ct _j6xtnh62 _9h8hw5ct",
|
|
16
17
|
disabled: "_11q71c9b _syaz1i3i _8l3m1j28 _f8pj1i3i _10531i3i _19lc1c9b _30l31i3i _j6xt1c9b _9h8h1i3i"
|
|
@@ -50,7 +51,7 @@ function ThemedAnchorFn({
|
|
|
50
51
|
// @ts-expect-error
|
|
51
52
|
// eslint-disable-next-line @compiled/no-suppress-xcss
|
|
52
53
|
,
|
|
53
|
-
xcss: cx(styles.root, fg('platform-dst-shape-theme-default') && styles.rootT26Shape, shapeStyles[shape], hasBorder && styles.border, appearanceStyles[appearance], isSelected && styles.selected, isDisabled && styles.disabled)
|
|
54
|
+
xcss: cx(styles.root, fg('platform-dst-shape-theme-default') && styles.rootT26Shape, shapeStyles[shape], hasBorder && styles.border, appearanceStyles[appearance], isSelected && styles.selected, isDisabled && styles.disabled, fg('platform-dst-motion-uplift-button') && styles.interactiveMotion)
|
|
54
55
|
}));
|
|
55
56
|
}
|
|
56
57
|
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { Panel } from '../../ui/page-layout/panel';
|
|
1
|
+
export { Panel } from '../../ui/page-layout/panel';
|
|
2
|
+
export { contentHeightWhenFixed, contentInsetBlockStart, sideNavLiveWidthVar } from '../../ui/page-layout/constants';
|
|
@@ -5,4 +5,5 @@ 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';
|
|
7
7
|
export { useExpandSideNav } from '../../ui/page-layout/side-nav/use-expand-side-nav';
|
|
8
|
+
export { useSideNavRef } from '../../ui/page-layout/side-nav/use-side-nav-ref';
|
|
8
9
|
export { SideNavPanelSplitter } from '../../ui/page-layout/panel-splitter/side-nav-panel-splitter';
|
|
@@ -3,4 +3,5 @@
|
|
|
3
3
|
._18m91wug{overflow-y:auto}
|
|
4
4
|
._19121cl4{isolation:isolate}
|
|
5
5
|
._1reo1wug{overflow-x:auto}
|
|
6
|
+
._4t3ieqxy{height:calc(100vh - var(--n_bnrM, 0px) - var(--n_tNvM, 0px))}
|
|
6
7
|
@media (min-width:64rem){._qwfh1wug{isolation:auto}._165teqxy{height:calc(100vh - var(--n_bnrM, 0px) - var(--n_tNvM, 0px))}._13wn1if8{position:sticky}}
|
|
@@ -8,7 +8,8 @@ import { useSkipLink } from '../../../context/skip-links/use-skip-link';
|
|
|
8
8
|
import { contentHeightWhenFixed, contentInsetBlockStart } from '../constants';
|
|
9
9
|
import { useLayoutId } from '../use-layout-id';
|
|
10
10
|
var mainElementStyles = {
|
|
11
|
-
root: "_nd5l1gzg _1reo1wug _18m91wug _19121cl4 _152timx3 _qwfh1wug _165teqxy _13wn1if8"
|
|
11
|
+
root: "_nd5l1gzg _1reo1wug _18m91wug _19121cl4 _152timx3 _qwfh1wug _165teqxy _13wn1if8",
|
|
12
|
+
fixedHeight: "_4t3ieqxy"
|
|
12
13
|
};
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -28,7 +29,7 @@ export function Main(_ref) {
|
|
|
28
29
|
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
29
30
|
id: id,
|
|
30
31
|
"data-layout-slot": true,
|
|
31
|
-
className: ax([mainElementStyles.root, xcss]),
|
|
32
|
+
className: ax([mainElementStyles.root, fg('platform-ads-nav-fixed-height') && mainElementStyles.fixedHeight, xcss]),
|
|
32
33
|
role: "main",
|
|
33
34
|
"data-testid": testId
|
|
34
35
|
}, children));
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
._2rkofajl{border-radius:var(--ds-radius-small,3px)}
|
|
10
10
|
._9v7aze3t:after{inset:var(--ds-space-0,0)}
|
|
11
11
|
._v5649dqc{transition:background .1s ease-out}
|
|
12
|
+
._v564o1g2{transition:var(--ds-button-hovered,background-color .15s cubic-bezier(.4,1,.6,1))}
|
|
12
13
|
._zulp12x7{gap:var(--ds-space-075,6px)}
|
|
13
14
|
._18zrutpp{padding-inline:var(--ds-space-150,9pt)}
|
|
14
15
|
._18zrze3t{padding-inline:var(--ds-space-0,0)}
|
|
@@ -55,6 +56,7 @@
|
|
|
55
56
|
._30l3w5ct:hover{color:var(--ds-top-bar-button-selected-text)}
|
|
56
57
|
._9oik1r31:hover{text-decoration-color:currentColor}
|
|
57
58
|
._jf4cnqa1:hover{text-decoration-style:solid}
|
|
59
|
+
._1gglat8s:active{transition:var(--ds-button-pressed,background-color .15s cubic-bezier(.4,1,.6,1))}
|
|
58
60
|
._j6xt1c9b:active{background:var(--ds-top-bar-button-disabled-background)}
|
|
59
61
|
._j6xt5sko:active{background:var(--ds-top-bar-button-primary-background-pressed)}
|
|
60
62
|
._j6xtnh62:active{background:var(--ds-top-bar-button-selected-background-pressed)}
|
|
@@ -13,6 +13,7 @@ import { getPrimitiveSpreadProps } from './get-primitives-spread-props';
|
|
|
13
13
|
var styles = {
|
|
14
14
|
root: "_zulp12x7 _11c8fhey _2rkofajl _v5649dqc _4bfu1r31 _1hmsglyw _ajmmnqa1 _1rjcze3t _1e0c1txw _4cvr1h6o _1bah1h6o _4t3i5r7u _kqswh2mm _1nrm1r31 _1a3b1r31 _9oik1r31 _c2waglyw _4fprglyw _1bnxglyw _1iohnqa1 _5goinqa1 _jf4cnqa1",
|
|
15
15
|
rootT26Shape: "_2rko1qi0",
|
|
16
|
+
interactiveMotion: "_v564o1g2 _1gglat8s",
|
|
16
17
|
border: "_14mj1kw7 _9v7aze3t _1tv3nqa1 _39yqe4h9 _aetrb3bt _18postnw",
|
|
17
18
|
selected: "_11q71qds _syazw5ct _8l3m15jn _f8pjw5ct _1053w5ct _19lcjrv1 _30l3w5ct _j6xtnh62 _9h8hw5ct",
|
|
18
19
|
disabled: "_11q71c9b _syaz1i3i _8l3m1j28 _f8pj1i3i _10531i3i _19lc1c9b _30l31i3i _j6xt1c9b _9h8h1i3i"
|
|
@@ -53,7 +54,7 @@ function ThemedAnchorFn(_ref, ref) {
|
|
|
53
54
|
// @ts-expect-error
|
|
54
55
|
// eslint-disable-next-line @compiled/no-suppress-xcss
|
|
55
56
|
,
|
|
56
|
-
xcss: cx(styles.root, fg('platform-dst-shape-theme-default') && styles.rootT26Shape, shapeStyles[shape], hasBorder && styles.border, appearanceStyles[appearance], isSelected && styles.selected, isDisabled && styles.disabled)
|
|
57
|
+
xcss: cx(styles.root, fg('platform-dst-shape-theme-default') && styles.rootT26Shape, shapeStyles[shape], hasBorder && styles.border, appearanceStyles[appearance], isSelected && styles.selected, isDisabled && styles.disabled, fg('platform-dst-motion-uplift-button') && styles.interactiveMotion)
|
|
57
58
|
}));
|
|
58
59
|
}
|
|
59
60
|
|
|
@@ -5,4 +5,5 @@ 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';
|
|
7
7
|
export { useExpandSideNav } from '../../ui/page-layout/side-nav/use-expand-side-nav';
|
|
8
|
+
export { useSideNavRef } from '../../ui/page-layout/side-nav/use-side-nav-ref';
|
|
8
9
|
export { SideNavPanelSplitter } from '../../ui/page-layout/panel-splitter/side-nav-panel-splitter';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/navigation-system",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.4.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",
|
|
@@ -11,9 +11,7 @@
|
|
|
11
11
|
"module": "dist/esm/index.js",
|
|
12
12
|
"module:es2019": "dist/es2019/index.js",
|
|
13
13
|
"types": "dist/types/index.d.ts",
|
|
14
|
-
"sideEffects": [
|
|
15
|
-
"*.compiled.css"
|
|
16
|
-
],
|
|
14
|
+
"sideEffects": ["*.compiled.css"],
|
|
17
15
|
"atlaskit:src": "src/index.tsx",
|
|
18
16
|
"atlassian": {
|
|
19
17
|
"react-compiler": {
|
|
@@ -46,30 +44,27 @@
|
|
|
46
44
|
]
|
|
47
45
|
},
|
|
48
46
|
"integrationTests": {
|
|
49
|
-
"additionalBrowsers": [
|
|
50
|
-
"desktop-firefox",
|
|
51
|
-
"desktop-webkit"
|
|
52
|
-
]
|
|
47
|
+
"additionalBrowsers": ["desktop-firefox", "desktop-webkit"]
|
|
53
48
|
}
|
|
54
49
|
},
|
|
55
50
|
"dependencies": {
|
|
56
|
-
"@atlaskit/analytics-next": "^12.
|
|
51
|
+
"@atlaskit/analytics-next": "^12.2.0",
|
|
57
52
|
"@atlaskit/app-provider": "^5.1.0",
|
|
58
53
|
"@atlaskit/avatar": "^26.1.0",
|
|
59
54
|
"@atlaskit/button": "^24.3.0",
|
|
60
55
|
"@atlaskit/css": "^1.0.0",
|
|
61
56
|
"@atlaskit/ds-lib": "^8.0.0",
|
|
62
|
-
"@atlaskit/icon": "^36.
|
|
57
|
+
"@atlaskit/icon": "^36.2.0",
|
|
63
58
|
"@atlaskit/layering": "^4.1.0",
|
|
64
59
|
"@atlaskit/logo": "^21.3.0",
|
|
65
60
|
"@atlaskit/platform-feature-flags": "^2.0.0",
|
|
66
61
|
"@atlaskit/platform-feature-flags-react": "^1.1.0",
|
|
67
62
|
"@atlaskit/popup": "^5.1.0",
|
|
68
63
|
"@atlaskit/pragmatic-drag-and-drop": "^2.0.0",
|
|
69
|
-
"@atlaskit/primitives": "^20.
|
|
64
|
+
"@atlaskit/primitives": "^20.4.0",
|
|
70
65
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
71
66
|
"@atlaskit/side-nav-items": "^2.2.0",
|
|
72
|
-
"@atlaskit/tokens": "^15.
|
|
67
|
+
"@atlaskit/tokens": "^15.4.0",
|
|
73
68
|
"@atlaskit/tooltip": "^23.1.0",
|
|
74
69
|
"@atlaskit/visually-hidden": "^4.1.0",
|
|
75
70
|
"@babel/runtime": "^7.0.0",
|
|
@@ -103,17 +98,17 @@
|
|
|
103
98
|
"@atlaskit/page-layout": "^5.2.0",
|
|
104
99
|
"@atlaskit/popper": "^8.2.0",
|
|
105
100
|
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^3.0.0",
|
|
106
|
-
"@atlaskit/select": "^22.
|
|
107
|
-
"@atlaskit/skeleton": "^
|
|
101
|
+
"@atlaskit/select": "^22.4.0",
|
|
102
|
+
"@atlaskit/skeleton": "^4.0.0",
|
|
108
103
|
"@atlaskit/spotlight": "^2.1.0",
|
|
109
104
|
"@atlaskit/textfield": "^9.1.0",
|
|
110
|
-
"@atlaskit/top-layer": "^1.
|
|
105
|
+
"@atlaskit/top-layer": "^1.4.0",
|
|
111
106
|
"@atlassian/feature-flags-test-utils": "^1.1.0",
|
|
112
|
-
"@atlassian/gemini": "^1.
|
|
107
|
+
"@atlassian/gemini": "^1.48.0",
|
|
113
108
|
"@atlassian/search-dialog": "^10.5.0",
|
|
114
109
|
"@atlassian/ssr-tests": "workspace:^",
|
|
115
110
|
"@atlassian/test-utils": "^1.0.0",
|
|
116
|
-
"@atlassian/testing-library": "^0.
|
|
111
|
+
"@atlassian/testing-library": "^0.10.0",
|
|
117
112
|
"@axe-core/playwright": "^4.11.1",
|
|
118
113
|
"@testing-library/react": "^16.3.0",
|
|
119
114
|
"@testing-library/user-event": "^14.4.3",
|
|
@@ -127,17 +122,10 @@
|
|
|
127
122
|
},
|
|
128
123
|
"@repo/internal": {
|
|
129
124
|
"dom-events": "use-bind-event-listener",
|
|
130
|
-
"design-tokens": [
|
|
131
|
-
"color",
|
|
132
|
-
"spacing"
|
|
133
|
-
],
|
|
125
|
+
"design-tokens": ["color", "spacing"],
|
|
134
126
|
"deprecation": "no-deprecated-imports",
|
|
135
|
-
"imports": [
|
|
136
|
-
|
|
137
|
-
],
|
|
138
|
-
"styling": [
|
|
139
|
-
"emotion"
|
|
140
|
-
]
|
|
127
|
+
"imports": ["import-no-extraneous-disable-for-examples-and-docs"],
|
|
128
|
+
"styling": ["emotion"]
|
|
141
129
|
}
|
|
142
130
|
},
|
|
143
131
|
"platform-feature-flags": {
|
|
@@ -167,6 +155,9 @@
|
|
|
167
155
|
"platform-dst-motion-uplift-button": {
|
|
168
156
|
"type": "boolean",
|
|
169
157
|
"referenceOnly": true
|
|
158
|
+
},
|
|
159
|
+
"platform-ads-nav-fixed-height": {
|
|
160
|
+
"type": "boolean"
|
|
170
161
|
}
|
|
171
162
|
},
|
|
172
163
|
"homepage": "https://atlassian.design/components/navigation-system"
|