@atlaskit/navigation-system 10.16.1 → 10.16.3
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 +16 -0
- package/dist/cjs/components/skip-links/skip-links-popup.js +2 -2
- package/dist/cjs/ui/page-layout/panel.compiled.css +2 -1
- package/dist/cjs/ui/page-layout/panel.js +6 -6
- package/dist/cjs/ui/page-layout/side-nav/side-nav.compiled.css +2 -2
- package/dist/cjs/ui/page-layout/side-nav/side-nav.js +1 -1
- package/dist/cjs/ui/top-nav-items/themed/button.js +2 -2
- package/dist/cjs/ui/top-nav-items/themed/icon-button.js +2 -2
- package/dist/cjs/ui/top-nav-items/themed/link-button.js +2 -2
- package/dist/cjs/ui/top-nav-items/themed/link-icon-button.js +2 -2
- package/dist/es2019/components/skip-links/skip-links-popup.js +1 -1
- package/dist/es2019/ui/page-layout/panel.compiled.css +2 -1
- package/dist/es2019/ui/page-layout/panel.js +4 -4
- package/dist/es2019/ui/page-layout/side-nav/side-nav.compiled.css +2 -2
- package/dist/es2019/ui/page-layout/side-nav/side-nav.js +1 -1
- package/dist/es2019/ui/top-nav-items/themed/button.js +1 -1
- package/dist/es2019/ui/top-nav-items/themed/icon-button.js +1 -1
- package/dist/es2019/ui/top-nav-items/themed/link-button.js +1 -1
- package/dist/es2019/ui/top-nav-items/themed/link-icon-button.js +1 -1
- package/dist/esm/components/skip-links/skip-links-popup.js +1 -1
- package/dist/esm/ui/page-layout/panel.compiled.css +2 -1
- package/dist/esm/ui/page-layout/panel.js +4 -4
- package/dist/esm/ui/page-layout/side-nav/side-nav.compiled.css +2 -2
- package/dist/esm/ui/page-layout/side-nav/side-nav.js +1 -1
- package/dist/esm/ui/top-nav-items/themed/button.js +1 -1
- package/dist/esm/ui/top-nav-items/themed/icon-button.js +1 -1
- package/dist/esm/ui/top-nav-items/themed/link-button.js +1 -1
- package/dist/esm/ui/top-nav-items/themed/link-icon-button.js +1 -1
- package/dist/types/ui/top-nav-items/app-switcher.d.ts +1 -1
- package/dist/types/ui/top-nav-items/end-item.d.ts +1 -1
- package/dist/types/ui/top-nav-items/icon-renderer.d.ts +1 -1
- package/dist/types/ui/top-nav-items/themed/types.d.ts +1 -1
- package/package.json +9 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlassian/navigation-system
|
|
2
2
|
|
|
3
|
+
## 10.16.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`24a22ba9f2d72`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/24a22ba9f2d72) -
|
|
8
|
+
[ux] Panel on open snaps main content when animation ends. On close the main content snaps on
|
|
9
|
+
animation start. Changes are behind the `platform-dst-motion-uplift-panel` feature gate.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 10.16.2
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Use `@atlassian/testing-library` exclusively in unit tests.
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 10.16.1
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -14,7 +14,7 @@ var _runtime = require("@compiled/react/runtime");
|
|
|
14
14
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
15
15
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
16
16
|
var _reactDom = require("react-dom");
|
|
17
|
-
var
|
|
17
|
+
var _button = _interopRequireDefault(require("@atlaskit/button/default/button"));
|
|
18
18
|
var _mergeRefs = _interopRequireDefault(require("@atlaskit/ds-lib/merge-refs"));
|
|
19
19
|
var _popup = require("@atlaskit/popup/popup");
|
|
20
20
|
var _focusElement = require("./focus-element");
|
|
@@ -134,7 +134,7 @@ function SkipLinksPopup(_ref) {
|
|
|
134
134
|
trigger: function trigger(triggerProps) {
|
|
135
135
|
return /*#__PURE__*/React.createElement("div", {
|
|
136
136
|
className: (0, _runtime.ax)([triggerStyles.root, isOpen && triggerStyles.isOpen])
|
|
137
|
-
}, /*#__PURE__*/React.createElement(
|
|
137
|
+
}, /*#__PURE__*/React.createElement(_button.default, (0, _extends2.default)({}, triggerProps, {
|
|
138
138
|
ref: (0, _mergeRefs.default)([triggerProps.ref, triggerRef]),
|
|
139
139
|
appearance: "primary",
|
|
140
140
|
isSelected: isOpen,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
._y44v11az{animation:var(--ds-panel-content-enter,.15s cubic-bezier(.4,1,.6,1) FadeIn0to100 .1s)}
|
|
3
3
|
._y44v14vv{animation:var(--ds-panel-exit-right,.2s cubic-bezier(0,.4,0,1) SlideOut100PercentRight)}
|
|
4
4
|
._y44v1nn1{animation:var(--ds-panel-enter-right,.25s cubic-bezier(0,.4,0,1) SlideIn100PercentRight)}
|
|
5
|
-
.
|
|
5
|
+
._y44vf1qi{animation:var(--ds-panel-content-exit,50ms cubic-bezier(.6,0,.8,.6) FadeOut100to0)}
|
|
6
6
|
[dir=rtl] ._158obamb{animation:var(--ds-panel-enter-left,.25s cubic-bezier(0,.4,0,1) SlideIn100PercentLeft)}
|
|
7
7
|
[dir=rtl] ._158oeydr{animation:var(--ds-panel-exit-left,.2s cubic-bezier(0,.4,0,1) SlideOut100PercentLeft)}
|
|
8
8
|
._191wglyw{border-inline-start:none}._10fph9n0{justify-self:end}
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
._4t3ieqxy{height:calc(100vh - var(--n_bnrM, 0px) - var(--n_tNvM, 0px))}
|
|
18
18
|
._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
|
|
19
19
|
._kqsw1if8{position:sticky}
|
|
20
|
+
._kqsw1n9t{position:fixed}
|
|
20
21
|
._vchhusvi{box-sizing:border-box}
|
|
21
22
|
@media (min-width:48rem){._14b54rrg{width:var(--n_pnlRsz,var(--n_pnlW))}}
|
|
22
23
|
@media (min-width:64rem){._1w6eia51{border-inline-start:var(--ds-border-width,1px) solid var(--ds-border,#0b120e24)}._scbpglyw{box-shadow:none}._4ap3vuon{background-color:var(--ds-surface,#fff)}}
|
|
@@ -16,7 +16,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
16
16
|
var _react2 = require("@compiled/react");
|
|
17
17
|
var _mergeRefs = _interopRequireDefault(require("@atlaskit/ds-lib/merge-refs"));
|
|
18
18
|
var _useMotion2 = require("@atlaskit/motion/use-motion");
|
|
19
|
-
var
|
|
19
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
20
20
|
var _responsive = require("@atlaskit/primitives/responsive");
|
|
21
21
|
var _useSkipLinkInternal = require("../../context/skip-links/use-skip-link-internal");
|
|
22
22
|
var _constants = require("./constants");
|
|
@@ -44,10 +44,10 @@ var styles = {
|
|
|
44
44
|
border: "_191wglyw _16qs130s _1w6eia51 _scbpglyw",
|
|
45
45
|
scrollContainer: "_1reo1wug _18m91wug _4t3i1osq",
|
|
46
46
|
hidden: "_1e0cglyw",
|
|
47
|
-
entering: "_y44v1nn1 _158obamb",
|
|
48
|
-
exiting: "_y44v14vv _158oeydr",
|
|
47
|
+
entering: "_y44v1nn1 _kqsw1n9t _158obamb",
|
|
48
|
+
exiting: "_y44v14vv _kqsw1n9t _158oeydr",
|
|
49
49
|
contentEntering: "_y44v11az",
|
|
50
|
-
contentExiting: "
|
|
50
|
+
contentExiting: "_y44vf1qi"
|
|
51
51
|
};
|
|
52
52
|
|
|
53
53
|
/**
|
|
@@ -75,7 +75,7 @@ function Panel(_ref) {
|
|
|
75
75
|
var id = (0, _useLayoutId.useLayoutId)({
|
|
76
76
|
providedId: providedId
|
|
77
77
|
});
|
|
78
|
-
var isMotionUpliftEnabled = (0,
|
|
78
|
+
var isMotionUpliftEnabled = (0, _fg.fg)('platform-dst-motion-uplift-panel');
|
|
79
79
|
var defaultWidth = (0, _useSafeDefaultWidth.useSafeDefaultWidth)({
|
|
80
80
|
defaultWidthProp: defaultWidthProp,
|
|
81
81
|
fallbackDefaultWidth: fallbackDefaultWidth,
|
|
@@ -106,7 +106,7 @@ function Panel(_ref) {
|
|
|
106
106
|
(0, _useSkipLinkInternal.useSkipLinkInternal)({
|
|
107
107
|
id: id,
|
|
108
108
|
label: skipLinkLabel,
|
|
109
|
-
isHidden: defaultWidth === 0 || (0,
|
|
109
|
+
isHidden: defaultWidth === 0 || (0, _fg.fg)('platform_dst_nav4_skip_link_a11y_1')
|
|
110
110
|
});
|
|
111
111
|
var ref = (0, _react.useRef)(null);
|
|
112
112
|
var _useState = (0, _react.useState)(defaultWidth),
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
._1bsb1ego{width:min(90%,20pc)}
|
|
7
7
|
._1e0c1txw{display:flex}
|
|
8
8
|
._1e0cglyw{display:none}
|
|
9
|
-
.
|
|
9
|
+
._1p2s1vfh{--exit-animation:var(--ds-sidenav-exit-left,200ms cubic-bezier(0,0.4,0,1) SlideOut100PercentLeft)}
|
|
10
10
|
._1pbycs5v{z-index:2}
|
|
11
11
|
._1pbyegat{z-index:4}
|
|
12
12
|
._2lx21bp4{flex-direction:column}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
._u7coidpf{inset-block-end:0}
|
|
21
21
|
._vchhusvi{box-sizing:border-box}
|
|
22
22
|
[dir=rtl] ._1jq41dy6{--enter-animation:var(--ds-sidenav-enter-right,250ms cubic-bezier(0,0.4,0,1) SlideIn100PercentRight)}
|
|
23
|
-
[dir=rtl] .
|
|
23
|
+
[dir=rtl] ._2qe0jwwr{--exit-animation:var(--ds-sidenav-exit-right,200ms cubic-bezier(0,0.4,0,1) SlideOut100PercentRight)}
|
|
24
24
|
[dir=rtl] ._65m41mrw{--animation-direction:-1}
|
|
25
25
|
@media (prefers-reduced-motion:no-preference){._10t81t0s{transition-property:display}._1vrh1a5r{transition-behavior:allow-discrete}._xrrpi9qs{transition-duration:var(--ds-duration-medium,.2s)}._10t88iot{transition-property:transform,display}._xrrpfnf5{transition-duration:.2s}._1lh81gzg{grid-area:main}._1xq51mm8{transition-timing-function:cubic-bezier(0,.4,0,1)}._k1affm5y{animation:var(--exit-animation)}@starting-style{._1nu51p9u{transform:translateX(calc(-100%*var(--animation-direction)))}}._1xq51ku9{transition-timing-function:cubic-bezier(.6,0,0,1)}._k1af10ed{animation:var(--enter-animation)}}
|
|
26
26
|
@media (min-width:48rem){._14b5hc79{width:var(--n_snvRsz,var(--n_sNvw))}}
|
|
@@ -102,7 +102,7 @@ var styles = {
|
|
|
102
102
|
* never runs.
|
|
103
103
|
*/
|
|
104
104
|
var motionUpliftStyles = {
|
|
105
|
-
animationRTLSupport: "_cjprp6j8
|
|
105
|
+
animationRTLSupport: "_cjprp6j8 _1p2s1vfh _1jq41dy6 _2qe0jwwr",
|
|
106
106
|
animationBaseStyles: "_10t81t0s _1vrh1a5r _xrrpi9qs",
|
|
107
107
|
expandAnimationMobile: "_k1af10ed",
|
|
108
108
|
collapseAnimationMobile: "_1lh81gzg _k1affm5y",
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.Button = void 0;
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
var
|
|
11
|
+
var _button = _interopRequireDefault(require("@atlaskit/button/default/button"));
|
|
12
12
|
var _hasCustomThemeContext = require("./has-custom-theme-context");
|
|
13
13
|
var _themedButton = require("./themed-button");
|
|
14
14
|
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); }
|
|
@@ -16,7 +16,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
16
16
|
// which is a subset of the normal button API
|
|
17
17
|
var Button = exports.Button = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
18
18
|
var hasCustomTheme = (0, _hasCustomThemeContext.useHasCustomTheme)();
|
|
19
|
-
var Component = hasCustomTheme ? _themedButton.ThemedButton :
|
|
19
|
+
var Component = hasCustomTheme ? _themedButton.ThemedButton : _button.default;
|
|
20
20
|
return /*#__PURE__*/_react.default.createElement(Component, (0, _extends2.default)({
|
|
21
21
|
ref: ref
|
|
22
22
|
}, props));
|
|
@@ -8,13 +8,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.IconButton = void 0;
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
var
|
|
11
|
+
var _button = _interopRequireDefault(require("@atlaskit/button/icon/button"));
|
|
12
12
|
var _hasCustomThemeContext = require("./has-custom-theme-context");
|
|
13
13
|
var _themedIconButton = require("./themed-icon-button");
|
|
14
14
|
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); }
|
|
15
15
|
var IconButton = exports.IconButton = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
16
16
|
var hasCustomTheme = (0, _hasCustomThemeContext.useHasCustomTheme)();
|
|
17
|
-
var Component = hasCustomTheme ? _themedIconButton.ThemedIconButton :
|
|
17
|
+
var Component = hasCustomTheme ? _themedIconButton.ThemedIconButton : _button.default;
|
|
18
18
|
return /*#__PURE__*/_react.default.createElement(Component, (0, _extends2.default)({
|
|
19
19
|
ref: ref
|
|
20
20
|
}, props));
|
|
@@ -8,13 +8,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.LinkButton = void 0;
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
var
|
|
11
|
+
var _link = _interopRequireDefault(require("@atlaskit/button/link"));
|
|
12
12
|
var _hasCustomThemeContext = require("./has-custom-theme-context");
|
|
13
13
|
var _themedLinkButton = require("./themed-link-button");
|
|
14
14
|
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); }
|
|
15
15
|
var LinkButton = exports.LinkButton = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
16
16
|
var hasCustomTheme = (0, _hasCustomThemeContext.useHasCustomTheme)();
|
|
17
|
-
var Component = hasCustomTheme ? _themedLinkButton.ThemedLinkButton :
|
|
17
|
+
var Component = hasCustomTheme ? _themedLinkButton.ThemedLinkButton : _link.default;
|
|
18
18
|
return /*#__PURE__*/_react.default.createElement(Component, (0, _extends2.default)({
|
|
19
19
|
ref: ref
|
|
20
20
|
}, props));
|
|
@@ -8,13 +8,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.LinkIconButton = void 0;
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
var
|
|
11
|
+
var _link = _interopRequireDefault(require("@atlaskit/button/icon/link"));
|
|
12
12
|
var _hasCustomThemeContext = require("./has-custom-theme-context");
|
|
13
13
|
var _themedLinkIconButton = require("./themed-link-icon-button");
|
|
14
14
|
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); }
|
|
15
15
|
var LinkIconButton = exports.LinkIconButton = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
16
16
|
var hasCustomTheme = (0, _hasCustomThemeContext.useHasCustomTheme)();
|
|
17
|
-
var Component = hasCustomTheme ? _themedLinkIconButton.ThemedLinkIconButton :
|
|
17
|
+
var Component = hasCustomTheme ? _themedLinkIconButton.ThemedLinkIconButton : _link.default;
|
|
18
18
|
return /*#__PURE__*/_react.default.createElement(Component, (0, _extends2.default)({
|
|
19
19
|
ref: ref
|
|
20
20
|
}, props));
|
|
@@ -5,7 +5,7 @@ import * as React from 'react';
|
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { useCallback, useId, useRef, useState } from 'react';
|
|
7
7
|
import { flushSync } from 'react-dom';
|
|
8
|
-
import Button from '@atlaskit/button/
|
|
8
|
+
import Button from '@atlaskit/button/default/button';
|
|
9
9
|
import mergeRefs from '@atlaskit/ds-lib/merge-refs';
|
|
10
10
|
import { Popup } from '@atlaskit/popup/popup';
|
|
11
11
|
import { focusElement } from './focus-element';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
._y44v11az{animation:var(--ds-panel-content-enter,.15s cubic-bezier(.4,1,.6,1) FadeIn0to100 .1s)}
|
|
3
3
|
._y44v14vv{animation:var(--ds-panel-exit-right,.2s cubic-bezier(0,.4,0,1) SlideOut100PercentRight)}
|
|
4
4
|
._y44v1nn1{animation:var(--ds-panel-enter-right,.25s cubic-bezier(0,.4,0,1) SlideIn100PercentRight)}
|
|
5
|
-
.
|
|
5
|
+
._y44vf1qi{animation:var(--ds-panel-content-exit,50ms cubic-bezier(.6,0,.8,.6) FadeOut100to0)}
|
|
6
6
|
[dir=rtl] ._158obamb{animation:var(--ds-panel-enter-left,.25s cubic-bezier(0,.4,0,1) SlideIn100PercentLeft)}
|
|
7
7
|
[dir=rtl] ._158oeydr{animation:var(--ds-panel-exit-left,.2s cubic-bezier(0,.4,0,1) SlideOut100PercentLeft)}
|
|
8
8
|
._191wglyw{border-inline-start:none}._10fph9n0{justify-self:end}
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
._4t3ieqxy{height:calc(100vh - var(--n_bnrM, 0px) - var(--n_tNvM, 0px))}
|
|
18
18
|
._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
|
|
19
19
|
._kqsw1if8{position:sticky}
|
|
20
|
+
._kqsw1n9t{position:fixed}
|
|
20
21
|
._vchhusvi{box-sizing:border-box}
|
|
21
22
|
@media (min-width:48rem){._14b54rrg{width:var(--n_pnlRsz,var(--n_pnlW))}}
|
|
22
23
|
@media (min-width:64rem){._1w6eia51{border-inline-start:var(--ds-border-width,1px) solid var(--ds-border,#0b120e24)}._scbpglyw{box-shadow:none}._4ap3vuon{background-color:var(--ds-surface,#fff)}}
|
|
@@ -6,7 +6,7 @@ import { useCallback, useContext, useEffect, useMemo, useRef, useState } from 'r
|
|
|
6
6
|
import { cx } from '@compiled/react';
|
|
7
7
|
import mergeRefs from '@atlaskit/ds-lib/merge-refs';
|
|
8
8
|
import { useMotion, Reanimate } from '@atlaskit/motion/use-motion';
|
|
9
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
10
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
11
11
|
import { media } from '@atlaskit/primitives/responsive';
|
|
12
12
|
import { useSkipLinkInternal } from '../../context/skip-links/use-skip-link-internal';
|
|
@@ -33,10 +33,10 @@ const styles = {
|
|
|
33
33
|
border: "_191wglyw _16qs130s _1w6eia51 _scbpglyw",
|
|
34
34
|
scrollContainer: "_1reo1wug _18m91wug _4t3i1osq",
|
|
35
35
|
hidden: "_1e0cglyw",
|
|
36
|
-
entering: "_y44v1nn1 _158obamb",
|
|
37
|
-
exiting: "_y44v14vv _158oeydr",
|
|
36
|
+
entering: "_y44v1nn1 _kqsw1n9t _158obamb",
|
|
37
|
+
exiting: "_y44v14vv _kqsw1n9t _158oeydr",
|
|
38
38
|
contentEntering: "_y44v11az",
|
|
39
|
-
contentExiting: "
|
|
39
|
+
contentExiting: "_y44vf1qi"
|
|
40
40
|
};
|
|
41
41
|
|
|
42
42
|
/**
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
._1bsb1ego{width:min(90%,20pc)}
|
|
7
7
|
._1e0c1txw{display:flex}
|
|
8
8
|
._1e0cglyw{display:none}
|
|
9
|
-
.
|
|
9
|
+
._1p2s1vfh{--exit-animation:var(--ds-sidenav-exit-left,200ms cubic-bezier(0,0.4,0,1) SlideOut100PercentLeft)}
|
|
10
10
|
._1pbycs5v{z-index:2}
|
|
11
11
|
._1pbyegat{z-index:4}
|
|
12
12
|
._2lx21bp4{flex-direction:column}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
._u7coidpf{inset-block-end:0}
|
|
21
21
|
._vchhusvi{box-sizing:border-box}
|
|
22
22
|
[dir=rtl] ._1jq41dy6{--enter-animation:var(--ds-sidenav-enter-right,250ms cubic-bezier(0,0.4,0,1) SlideIn100PercentRight)}
|
|
23
|
-
[dir=rtl] .
|
|
23
|
+
[dir=rtl] ._2qe0jwwr{--exit-animation:var(--ds-sidenav-exit-right,200ms cubic-bezier(0,0.4,0,1) SlideOut100PercentRight)}
|
|
24
24
|
[dir=rtl] ._65m41mrw{--animation-direction:-1}
|
|
25
25
|
@media (prefers-reduced-motion:no-preference){._10t81t0s{transition-property:display}._1vrh1a5r{transition-behavior:allow-discrete}._xrrpi9qs{transition-duration:var(--ds-duration-medium,.2s)}._10t88iot{transition-property:transform,display}._xrrpfnf5{transition-duration:.2s}._1lh81gzg{grid-area:main}._1xq51mm8{transition-timing-function:cubic-bezier(0,.4,0,1)}._k1affm5y{animation:var(--exit-animation)}@starting-style{._1nu51p9u{transform:translateX(calc(-100%*var(--animation-direction)))}}._1xq51ku9{transition-timing-function:cubic-bezier(.6,0,0,1)}._k1af10ed{animation:var(--enter-animation)}}
|
|
26
26
|
@media (min-width:48rem){._14b5hc79{width:var(--n_snvRsz,var(--n_sNvw))}}
|
|
@@ -89,7 +89,7 @@ const styles = {
|
|
|
89
89
|
* never runs.
|
|
90
90
|
*/
|
|
91
91
|
const motionUpliftStyles = {
|
|
92
|
-
animationRTLSupport: "_cjprp6j8
|
|
92
|
+
animationRTLSupport: "_cjprp6j8 _1p2s1vfh _1jq41dy6 _2qe0jwwr",
|
|
93
93
|
animationBaseStyles: "_10t81t0s _1vrh1a5r _xrrpi9qs",
|
|
94
94
|
expandAnimationMobile: "_k1af10ed",
|
|
95
95
|
collapseAnimationMobile: "_1lh81gzg _k1affm5y",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
|
-
import AkButton from '@atlaskit/button/
|
|
3
|
+
import AkButton from '@atlaskit/button/default/button';
|
|
4
4
|
import { useHasCustomTheme } from './has-custom-theme-context';
|
|
5
5
|
import { ThemedButton } from './themed-button';
|
|
6
6
|
// Explicitly typed to use only the themed button API,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
|
-
import
|
|
3
|
+
import AkIconButton from '@atlaskit/button/icon/button';
|
|
4
4
|
import { useHasCustomTheme } from './has-custom-theme-context';
|
|
5
5
|
import { ThemedIconButton } from './themed-icon-button';
|
|
6
6
|
export const IconButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
|
-
import
|
|
3
|
+
import AkLinkButton from '@atlaskit/button/link';
|
|
4
4
|
import { useHasCustomTheme } from './has-custom-theme-context';
|
|
5
5
|
import { ThemedLinkButton } from './themed-link-button';
|
|
6
6
|
export const LinkButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
|
-
import
|
|
3
|
+
import AkLinkIconButton from '@atlaskit/button/icon/link';
|
|
4
4
|
import { useHasCustomTheme } from './has-custom-theme-context';
|
|
5
5
|
import { ThemedLinkIconButton } from './themed-link-icon-button';
|
|
6
6
|
export const LinkIconButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
@@ -6,7 +6,7 @@ import * as React from 'react';
|
|
|
6
6
|
import { ax, ix } from "@compiled/react/runtime";
|
|
7
7
|
import { useCallback, useId, useRef, useState } from 'react';
|
|
8
8
|
import { flushSync } from 'react-dom';
|
|
9
|
-
import Button from '@atlaskit/button/
|
|
9
|
+
import Button from '@atlaskit/button/default/button';
|
|
10
10
|
import mergeRefs from '@atlaskit/ds-lib/merge-refs';
|
|
11
11
|
import { Popup } from '@atlaskit/popup/popup';
|
|
12
12
|
import { focusElement } from './focus-element';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
._y44v11az{animation:var(--ds-panel-content-enter,.15s cubic-bezier(.4,1,.6,1) FadeIn0to100 .1s)}
|
|
3
3
|
._y44v14vv{animation:var(--ds-panel-exit-right,.2s cubic-bezier(0,.4,0,1) SlideOut100PercentRight)}
|
|
4
4
|
._y44v1nn1{animation:var(--ds-panel-enter-right,.25s cubic-bezier(0,.4,0,1) SlideIn100PercentRight)}
|
|
5
|
-
.
|
|
5
|
+
._y44vf1qi{animation:var(--ds-panel-content-exit,50ms cubic-bezier(.6,0,.8,.6) FadeOut100to0)}
|
|
6
6
|
[dir=rtl] ._158obamb{animation:var(--ds-panel-enter-left,.25s cubic-bezier(0,.4,0,1) SlideIn100PercentLeft)}
|
|
7
7
|
[dir=rtl] ._158oeydr{animation:var(--ds-panel-exit-left,.2s cubic-bezier(0,.4,0,1) SlideOut100PercentLeft)}
|
|
8
8
|
._191wglyw{border-inline-start:none}._10fph9n0{justify-self:end}
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
._4t3ieqxy{height:calc(100vh - var(--n_bnrM, 0px) - var(--n_tNvM, 0px))}
|
|
18
18
|
._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
|
|
19
19
|
._kqsw1if8{position:sticky}
|
|
20
|
+
._kqsw1n9t{position:fixed}
|
|
20
21
|
._vchhusvi{box-sizing:border-box}
|
|
21
22
|
@media (min-width:48rem){._14b54rrg{width:var(--n_pnlRsz,var(--n_pnlW))}}
|
|
22
23
|
@media (min-width:64rem){._1w6eia51{border-inline-start:var(--ds-border-width,1px) solid var(--ds-border,#0b120e24)}._scbpglyw{box-shadow:none}._4ap3vuon{background-color:var(--ds-surface,#fff)}}
|
|
@@ -8,7 +8,7 @@ import { useCallback, useContext, useEffect, useMemo, useRef, useState } from 'r
|
|
|
8
8
|
import { cx } from '@compiled/react';
|
|
9
9
|
import mergeRefs from '@atlaskit/ds-lib/merge-refs';
|
|
10
10
|
import { useMotion, Reanimate } from '@atlaskit/motion/use-motion';
|
|
11
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
12
12
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
13
13
|
import { media } from '@atlaskit/primitives/responsive';
|
|
14
14
|
import { useSkipLinkInternal } from '../../context/skip-links/use-skip-link-internal';
|
|
@@ -35,10 +35,10 @@ var styles = {
|
|
|
35
35
|
border: "_191wglyw _16qs130s _1w6eia51 _scbpglyw",
|
|
36
36
|
scrollContainer: "_1reo1wug _18m91wug _4t3i1osq",
|
|
37
37
|
hidden: "_1e0cglyw",
|
|
38
|
-
entering: "_y44v1nn1 _158obamb",
|
|
39
|
-
exiting: "_y44v14vv _158oeydr",
|
|
38
|
+
entering: "_y44v1nn1 _kqsw1n9t _158obamb",
|
|
39
|
+
exiting: "_y44v14vv _kqsw1n9t _158oeydr",
|
|
40
40
|
contentEntering: "_y44v11az",
|
|
41
|
-
contentExiting: "
|
|
41
|
+
contentExiting: "_y44vf1qi"
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
/**
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
._1bsb1ego{width:min(90%,20pc)}
|
|
7
7
|
._1e0c1txw{display:flex}
|
|
8
8
|
._1e0cglyw{display:none}
|
|
9
|
-
.
|
|
9
|
+
._1p2s1vfh{--exit-animation:var(--ds-sidenav-exit-left,200ms cubic-bezier(0,0.4,0,1) SlideOut100PercentLeft)}
|
|
10
10
|
._1pbycs5v{z-index:2}
|
|
11
11
|
._1pbyegat{z-index:4}
|
|
12
12
|
._2lx21bp4{flex-direction:column}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
._u7coidpf{inset-block-end:0}
|
|
21
21
|
._vchhusvi{box-sizing:border-box}
|
|
22
22
|
[dir=rtl] ._1jq41dy6{--enter-animation:var(--ds-sidenav-enter-right,250ms cubic-bezier(0,0.4,0,1) SlideIn100PercentRight)}
|
|
23
|
-
[dir=rtl] .
|
|
23
|
+
[dir=rtl] ._2qe0jwwr{--exit-animation:var(--ds-sidenav-exit-right,200ms cubic-bezier(0,0.4,0,1) SlideOut100PercentRight)}
|
|
24
24
|
[dir=rtl] ._65m41mrw{--animation-direction:-1}
|
|
25
25
|
@media (prefers-reduced-motion:no-preference){._10t81t0s{transition-property:display}._1vrh1a5r{transition-behavior:allow-discrete}._xrrpi9qs{transition-duration:var(--ds-duration-medium,.2s)}._10t88iot{transition-property:transform,display}._xrrpfnf5{transition-duration:.2s}._1lh81gzg{grid-area:main}._1xq51mm8{transition-timing-function:cubic-bezier(0,.4,0,1)}._k1affm5y{animation:var(--exit-animation)}@starting-style{._1nu51p9u{transform:translateX(calc(-100%*var(--animation-direction)))}}._1xq51ku9{transition-timing-function:cubic-bezier(.6,0,0,1)}._k1af10ed{animation:var(--enter-animation)}}
|
|
26
26
|
@media (min-width:48rem){._14b5hc79{width:var(--n_snvRsz,var(--n_sNvw))}}
|
|
@@ -93,7 +93,7 @@ var styles = {
|
|
|
93
93
|
* never runs.
|
|
94
94
|
*/
|
|
95
95
|
var motionUpliftStyles = {
|
|
96
|
-
animationRTLSupport: "_cjprp6j8
|
|
96
|
+
animationRTLSupport: "_cjprp6j8 _1p2s1vfh _1jq41dy6 _2qe0jwwr",
|
|
97
97
|
animationBaseStyles: "_10t81t0s _1vrh1a5r _xrrpi9qs",
|
|
98
98
|
expandAnimationMobile: "_k1af10ed",
|
|
99
99
|
collapseAnimationMobile: "_1lh81gzg _k1affm5y",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
|
-
import AkButton from '@atlaskit/button/
|
|
3
|
+
import AkButton from '@atlaskit/button/default/button';
|
|
4
4
|
import { useHasCustomTheme } from './has-custom-theme-context';
|
|
5
5
|
import { ThemedButton } from './themed-button';
|
|
6
6
|
// Explicitly typed to use only the themed button API,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
|
-
import
|
|
3
|
+
import AkIconButton from '@atlaskit/button/icon/button';
|
|
4
4
|
import { useHasCustomTheme } from './has-custom-theme-context';
|
|
5
5
|
import { ThemedIconButton } from './themed-icon-button';
|
|
6
6
|
export var IconButton = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
|
-
import
|
|
3
|
+
import AkLinkButton from '@atlaskit/button/link';
|
|
4
4
|
import { useHasCustomTheme } from './has-custom-theme-context';
|
|
5
5
|
import { ThemedLinkButton } from './themed-link-button';
|
|
6
6
|
export var LinkButton = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
|
-
import
|
|
3
|
+
import AkLinkIconButton from '@atlaskit/button/icon/link';
|
|
4
4
|
import { useHasCustomTheme } from './has-custom-theme-context';
|
|
5
5
|
import { ThemedLinkIconButton } from './themed-link-icon-button';
|
|
6
6
|
export var LinkIconButton = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { IconButtonProps } from '@atlaskit/button/icon/button';
|
|
3
3
|
import type { TriggerProps } from '@atlaskit/popup/types';
|
|
4
4
|
interface AppSwitcherProps extends Partial<Omit<TriggerProps, 'ref' | 'data-ds--level'>> {
|
|
5
5
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type UIAnalyticsEvent from '@atlaskit/analytics-next/UIAnalyticsEvent';
|
|
3
|
-
import {
|
|
3
|
+
import type { IconButtonProps } from '@atlaskit/button/icon/button';
|
|
4
4
|
import type { TriggerProps } from '@atlaskit/popup/types';
|
|
5
5
|
import type { TooltipProps } from '@atlaskit/tooltip/types';
|
|
6
6
|
export interface EndItemProps extends Partial<Pick<TriggerProps, 'aria-controls' | 'aria-expanded' | 'aria-haspopup'>> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import type { IconButtonProps } from '@atlaskit/button/
|
|
2
|
+
import type { IconButtonProps } from '@atlaskit/button/icon/button';
|
|
3
3
|
import type { IgnoredPrimitiveProps } from './get-primitives-spread-props';
|
|
4
4
|
/**
|
|
5
5
|
* Props present in underlying primitives but we want to override,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/navigation-system",
|
|
3
|
-
"version": "10.16.
|
|
3
|
+
"version": "10.16.3",
|
|
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",
|
|
@@ -53,16 +53,16 @@
|
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@atlaskit/analytics-next": "^12.
|
|
56
|
+
"@atlaskit/analytics-next": "^12.4.0",
|
|
57
57
|
"@atlaskit/app-provider": "^5.4.0",
|
|
58
58
|
"@atlaskit/avatar": "^27.2.0",
|
|
59
59
|
"@atlaskit/button": "^25.2.0",
|
|
60
|
-
"@atlaskit/css": "^1.
|
|
60
|
+
"@atlaskit/css": "^1.1.0",
|
|
61
61
|
"@atlaskit/ds-lib": "^8.0.0",
|
|
62
62
|
"@atlaskit/icon": "^37.5.0",
|
|
63
63
|
"@atlaskit/layering": "^5.1.0",
|
|
64
64
|
"@atlaskit/logo": "^21.5.0",
|
|
65
|
-
"@atlaskit/motion": "^8.
|
|
65
|
+
"@atlaskit/motion": "^8.5.0",
|
|
66
66
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
67
67
|
"@atlaskit/platform-feature-flags-react": "^1.1.0",
|
|
68
68
|
"@atlaskit/popup": "^6.2.0",
|
|
@@ -94,6 +94,7 @@
|
|
|
94
94
|
"@atlaskit/flag": "^18.4.0",
|
|
95
95
|
"@atlaskit/form": "^17.1.0",
|
|
96
96
|
"@atlaskit/heading": "^7.1.0",
|
|
97
|
+
"@atlaskit/image": "^5.1.0",
|
|
97
98
|
"@atlaskit/inline-dialog": "^20.2.0",
|
|
98
99
|
"@atlaskit/link": "^5.1.0",
|
|
99
100
|
"@atlaskit/lozenge": "^15.3.0",
|
|
@@ -104,9 +105,12 @@
|
|
|
104
105
|
"@atlaskit/page-layout": "^5.4.0",
|
|
105
106
|
"@atlaskit/popper": "^9.3.0",
|
|
106
107
|
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^3.1.0",
|
|
107
|
-
"@atlaskit/
|
|
108
|
+
"@atlaskit/section-message": "^10.1.0",
|
|
109
|
+
"@atlaskit/select": "^22.10.0",
|
|
108
110
|
"@atlaskit/skeleton": "^4.3.0",
|
|
109
111
|
"@atlaskit/spotlight": "^4.2.0",
|
|
112
|
+
"@atlaskit/tabs": "^21.1.0",
|
|
113
|
+
"@atlaskit/tag": "^15.7.0",
|
|
110
114
|
"@atlaskit/textfield": "^10.1.0",
|
|
111
115
|
"@atlaskit/top-layer": "^4.4.0",
|
|
112
116
|
"@atlassian/feature-flags-test-utils": "^1.2.0",
|
|
@@ -116,8 +120,6 @@
|
|
|
116
120
|
"@atlassian/test-utils": "^1.1.0",
|
|
117
121
|
"@atlassian/testing-library": "^0.11.0",
|
|
118
122
|
"@axe-core/playwright": "^4.11.1",
|
|
119
|
-
"@testing-library/react": "^16.3.0",
|
|
120
|
-
"@testing-library/user-event": "^14.4.3",
|
|
121
123
|
"raf-stub": "^2.0.1",
|
|
122
124
|
"react": "^18.2.0",
|
|
123
125
|
"react-dom": "^18.2.0"
|