@atlaskit/navigation-system 5.3.4 → 5.5.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 +28 -0
- package/dist/cjs/ui/menu-item/menu-item.compiled.css +2 -13
- package/dist/cjs/ui/menu-item/menu-item.js +29 -53
- package/dist/cjs/ui/page-layout/side-nav/use-side-nav-toggle-keyboard-shortcut.js +1 -3
- package/dist/es2019/ui/menu-item/menu-item.compiled.css +2 -13
- package/dist/es2019/ui/menu-item/menu-item.js +3 -26
- package/dist/es2019/ui/page-layout/side-nav/use-side-nav-toggle-keyboard-shortcut.js +1 -3
- package/dist/esm/ui/menu-item/menu-item.compiled.css +2 -13
- package/dist/esm/ui/menu-item/menu-item.js +30 -54
- package/dist/esm/ui/page-layout/side-nav/use-side-nav-toggle-keyboard-shortcut.js +1 -3
- package/dist/types/ui/page-layout/root.d.ts +1 -2
- package/dist/types-ts4.5/ui/page-layout/root.d.ts +1 -2
- package/package.json +5 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @atlassian/navigation-system
|
|
2
2
|
|
|
3
|
+
## 5.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`0fd231aa18bd4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0fd231aa18bd4) -
|
|
8
|
+
The tooltip for truncated side nav menu item has been updated:
|
|
9
|
+
- The tooltip now uses the standard tooltip styling and behavior, instead of using a custom
|
|
10
|
+
component.
|
|
11
|
+
- The tooltip position has been updated to `right-start` (previously it was `right`).
|
|
12
|
+
|
|
13
|
+
These changes were previously behind the feature gate
|
|
14
|
+
`platform_dst_side_nav_remove_custom_tooltip`, which has now been removed.
|
|
15
|
+
|
|
16
|
+
## 5.4.0
|
|
17
|
+
|
|
18
|
+
### Minor Changes
|
|
19
|
+
|
|
20
|
+
- [`05dd9b7db95b7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/05dd9b7db95b7) -
|
|
21
|
+
The built-in keyboard shortcut for toggling the side nav will check if there are any open modals
|
|
22
|
+
and ignore the shortcut if there are.
|
|
23
|
+
|
|
24
|
+
This check was previously behind the feature gate `platform-dst-open-layer-observer-layer-type`,
|
|
25
|
+
which has now been removed.
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- Updated dependencies
|
|
30
|
+
|
|
3
31
|
## 5.3.4
|
|
4
32
|
|
|
5
33
|
### Patch Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
._1r04ze3t{inset:var(--ds-space-0,0)}
|
|
3
3
|
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
4
4
|
._nd5l16dh{grid-area:elem-after}
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
._14iu13ro:active:not(:disabled){background-color:var(--ds-surface-pressed,#dddee1)}
|
|
13
13
|
._14iunozp:active:not(:disabled){background-color:var(--ds-background-selected-pressed,#8fb8f6)}
|
|
14
14
|
._152t1ssb{inset-block-start:50%}
|
|
15
|
-
._152tze3t{inset-block-start:var(--ds-space-0,0)}
|
|
16
15
|
._18m915vq{overflow-y:hidden}
|
|
17
16
|
._18ukglyw:not(:has(button,a)){pointer-events:none}
|
|
18
17
|
._1bah1h6o{justify-content:center}
|
|
@@ -25,17 +24,14 @@
|
|
|
25
24
|
._1e0c11p5{display:grid}
|
|
26
25
|
._1e0c13yo{display:var(--elem-after-display)}
|
|
27
26
|
._1e0c1txw{display:flex}
|
|
28
|
-
._1i4q1hna{overflow-wrap:break-word}
|
|
29
27
|
._1ifmglyw{-webkit-touch-callout:none}
|
|
30
28
|
._1lmcu4vt{grid-template-areas:"elem-before interactive elem-after actions"}
|
|
31
29
|
._1o9zidpf{flex-shrink:0}
|
|
32
30
|
._1q511b66{padding-block-start:var(--ds-space-050,4px)}
|
|
33
|
-
._1q51v77o{padding-block-start:var(--ds-space-025,2px)}
|
|
34
31
|
._1rbv1wug:has([aria-expanded=true][aria-haspopup=true]){--actions-on-hover-width:auto}
|
|
35
32
|
._1reo15vq{overflow-x:hidden}
|
|
36
33
|
._1swv19i6:has([aria-expanded=true][aria-haspopup=true]){background-color:var(--ds-surface-hovered,#f0f1f2)}
|
|
37
34
|
._1swvufnl:has([aria-expanded=true][aria-haspopup=true]){background-color:var(--ds-background-selected-hovered,#cfe1fd)}
|
|
38
|
-
._1tkezwfg{min-height:2pc}
|
|
39
35
|
._1ul91c9m{min-width:1ch}
|
|
40
36
|
._1ul9t9kd{min-width:72px}
|
|
41
37
|
._1yyu1j28{--notch-color:transparent}
|
|
@@ -49,12 +45,10 @@
|
|
|
49
45
|
._4t3i1wto{height:3rem}
|
|
50
46
|
._4t3iviql{height:2rem}
|
|
51
47
|
._85i51b66{padding-block-end:var(--ds-space-050,4px)}
|
|
52
|
-
._85i5v77o{padding-block-end:var(--ds-space-025,2px)}
|
|
53
48
|
._91ju1txw{--elem-after-display:flex}
|
|
54
49
|
._91juglyw{--elem-after-display:none}
|
|
55
50
|
._ae4v1h6o{align-content:center}
|
|
56
51
|
._bfhk15s3{background-color:var(--ds-background-selected,#e9f2fe)}
|
|
57
|
-
._bfhk1aqn{background-color:var(--ds-background-neutral-bold,#292a2e)}
|
|
58
52
|
._bfhk1j28{background-color:transparent}
|
|
59
53
|
._bfhk1o0g{background-color:var(--notch-color)}
|
|
60
54
|
._bfhkn7od{background-color:unset}
|
|
@@ -65,12 +59,9 @@
|
|
|
65
59
|
._kqswh2mm{position:relative}
|
|
66
60
|
._kqswstnw{position:absolute}
|
|
67
61
|
._kwq51b66:has([aria-expanded=true][aria-haspopup=true]){--actions-on-hover-padding:var(--ds-space-050,4px)}
|
|
68
|
-
._p12f1pna{max-width:420px}
|
|
69
62
|
._pmxp1wug{--actions-on-hover-width:auto}
|
|
70
63
|
._pmxpidpf{--actions-on-hover-width:0}
|
|
71
64
|
._qxq9kb7n:has([aria-expanded=true][aria-haspopup=true]){--actions-on-hover-opacity:1}
|
|
72
|
-
._slp31hna{word-wrap:break-word}
|
|
73
|
-
._syaz15cr{color:var(--ds-text-inverse,#fff)}
|
|
74
65
|
._syaz1gmx{color:var(--ds-text-disabled,#080f214a)}
|
|
75
66
|
._syaz6x5g{color:var(--ds-text-selected,#1868db)}
|
|
76
67
|
._syazazsu{color:var(--ds-text-subtle,#505258)}
|
|
@@ -83,7 +74,6 @@
|
|
|
83
74
|
._vchh1ntv{box-sizing:content-box}
|
|
84
75
|
._vchhusvi{box-sizing:border-box}
|
|
85
76
|
._y3gnv2br{text-align:start}
|
|
86
|
-
._y4ti12x7{padding-inline-end:var(--ds-space-075,6px)}
|
|
87
77
|
._y4ti1b66{padding-inline-end:var(--ds-space-050,4px)}
|
|
88
78
|
._y4tidria{padding-inline-end:var(--actions-on-hover-padding)}
|
|
89
79
|
._yv0e7dup{grid-template-columns:minmax(0,auto) 1fr minmax(0,auto) minmax(0,auto)}
|
|
@@ -93,8 +83,7 @@
|
|
|
93
83
|
._1mfcglyw:focus-within{--elem-after-display:none}
|
|
94
84
|
._91nl1wug:focus-within{--actions-on-hover-width:auto}
|
|
95
85
|
._iy5o1b66:focus-within{--actions-on-hover-padding:var(--ds-space-050,4px)}
|
|
96
|
-
._t7p8kb7n:focus-within{--actions-on-hover-opacity:1}
|
|
97
|
-
._11om6b4r:hover{animation-name:k1xyysw3}
|
|
86
|
+
._t7p8kb7n:focus-within{--actions-on-hover-opacity:1}._11om6b4r:hover{animation-name:k1xyysw3}
|
|
98
87
|
._1sjuglyw:hover{--elem-after-display:none}
|
|
99
88
|
._1uy01amc:hover{animation-delay:.8s}
|
|
100
89
|
._30l31gmx:hover{color:var(--ds-text-disabled,#080f214a)}
|
|
@@ -9,22 +9,19 @@ exports.nestedOpenPopupCSSSelector = exports.MenuItemBase = void 0;
|
|
|
9
9
|
require("./menu-item.compiled.css");
|
|
10
10
|
var _runtime = require("@compiled/react/runtime");
|
|
11
11
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
12
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
12
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
14
|
-
var
|
|
13
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
16
15
|
var _react2 = require("@compiled/react");
|
|
17
16
|
var _avatar = require("@atlaskit/avatar");
|
|
18
17
|
var _forwardRefWithGeneric = _interopRequireDefault(require("@atlaskit/ds-lib/forward-ref-with-generic"));
|
|
19
18
|
var _mergeRefs = _interopRequireDefault(require("@atlaskit/ds-lib/merge-refs"));
|
|
20
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
21
19
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
22
|
-
var _tooltip =
|
|
20
|
+
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
23
21
|
var _constants = require("./constants");
|
|
24
22
|
var _expandableMenuItemContext = require("./expandable-menu-item/expandable-menu-item-context");
|
|
25
23
|
var _flyoutMenuItemContext = require("./flyout-menu-item/flyout-menu-item-context");
|
|
26
24
|
var _menuItemSignals = require("./menu-item-signals");
|
|
27
|
-
var _excluded = ["children", "className"];
|
|
28
25
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
29
26
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
30
27
|
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" != (0, _typeof2.default)(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); }
|
|
@@ -36,24 +33,6 @@ var LazyDragHandle = /*#__PURE__*/(0, _react.lazy)(function () {
|
|
|
36
33
|
'./drag-handle'));
|
|
37
34
|
});
|
|
38
35
|
});
|
|
39
|
-
var tooltipStyles = {
|
|
40
|
-
root: "_2rko12b0 _11c8dcr7 _1e0c1txw _2lx21bp4 _1bah1h6o _1tkezwfg _p12f1pna _vchhusvi _1q51v77o _y4ti12x7 _85i5v77o _bozg12x7 _bfhk1aqn _syaz15cr _152tze3t _1e02ze3t _1i4q1hna _slp31hna"
|
|
41
|
-
};
|
|
42
|
-
var MenuItemTooltip = /*#__PURE__*/(0, _react.forwardRef)(function MenuItemTooltip(_ref, ref) {
|
|
43
|
-
var children = _ref.children,
|
|
44
|
-
className = _ref.className,
|
|
45
|
-
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
46
|
-
return /*#__PURE__*/_react.default.createElement(_tooltip.TooltipPrimitive, (0, _extends2.default)({}, rest, {
|
|
47
|
-
// Manually passing on `className` so it gets merged correctly in the build output.
|
|
48
|
-
// The passed classname is mostly used for integration testing (`.Tooltip`)
|
|
49
|
-
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides, @atlaskit/ui-styling-standard/no-classname-prop
|
|
50
|
-
className: (0, _runtime.ax)([tooltipStyles.root, className])
|
|
51
|
-
// "css" does not "exist" - it gets transformed into "className" by compiled
|
|
52
|
-
,
|
|
53
|
-
|
|
54
|
-
ref: ref
|
|
55
|
-
}), children);
|
|
56
|
-
});
|
|
57
36
|
function isTextClamped(element) {
|
|
58
37
|
// Checking for vertical height rather than horizontal height.
|
|
59
38
|
// When text is "clamped", it's technically being clamped vertically! 🤯
|
|
@@ -199,9 +178,9 @@ var elemAfterStyles = {
|
|
|
199
178
|
var interactiveContentStyles = {
|
|
200
179
|
root: "_nd5l19l3 _1e0c1txw _2lx21bp4 _ae4v1h6o"
|
|
201
180
|
};
|
|
202
|
-
function getTextColor(
|
|
203
|
-
var isDisabled =
|
|
204
|
-
isSelected =
|
|
181
|
+
function getTextColor(_ref) {
|
|
182
|
+
var isDisabled = _ref.isDisabled,
|
|
183
|
+
isSelected = _ref.isSelected;
|
|
205
184
|
if (isDisabled) {
|
|
206
185
|
return 'color.text.disabled';
|
|
207
186
|
}
|
|
@@ -224,29 +203,29 @@ function getTextColor(_ref2) {
|
|
|
224
203
|
* It contains a type argument `<T>`, to specify the type of the interactive element (`button` or `a`).
|
|
225
204
|
* This can be inferred from the type of the `onClick` prop.
|
|
226
205
|
*/
|
|
227
|
-
var MenuItemBaseNoRef = function MenuItemBaseNoRef(
|
|
228
|
-
var id =
|
|
229
|
-
testId =
|
|
230
|
-
actions =
|
|
231
|
-
actionsOnHover =
|
|
232
|
-
children =
|
|
233
|
-
description =
|
|
234
|
-
elemAfter =
|
|
235
|
-
elemBefore =
|
|
236
|
-
href =
|
|
237
|
-
target =
|
|
238
|
-
isDisabled =
|
|
239
|
-
isSelected =
|
|
240
|
-
onClick =
|
|
241
|
-
ariaControls =
|
|
242
|
-
ariaExpanded =
|
|
243
|
-
ariaHasPopup =
|
|
244
|
-
interactionName =
|
|
245
|
-
isContentTooltipDisabled =
|
|
246
|
-
visualContentRef =
|
|
247
|
-
isDragging =
|
|
248
|
-
hasDragIndicator =
|
|
249
|
-
dropIndicator =
|
|
206
|
+
var MenuItemBaseNoRef = function MenuItemBaseNoRef(_ref2, forwardedRef) {
|
|
207
|
+
var id = _ref2.id,
|
|
208
|
+
testId = _ref2.testId,
|
|
209
|
+
actions = _ref2.actions,
|
|
210
|
+
actionsOnHover = _ref2.actionsOnHover,
|
|
211
|
+
children = _ref2.children,
|
|
212
|
+
description = _ref2.description,
|
|
213
|
+
elemAfter = _ref2.elemAfter,
|
|
214
|
+
elemBefore = _ref2.elemBefore,
|
|
215
|
+
href = _ref2.href,
|
|
216
|
+
target = _ref2.target,
|
|
217
|
+
isDisabled = _ref2.isDisabled,
|
|
218
|
+
isSelected = _ref2.isSelected,
|
|
219
|
+
onClick = _ref2.onClick,
|
|
220
|
+
ariaControls = _ref2.ariaControls,
|
|
221
|
+
ariaExpanded = _ref2.ariaExpanded,
|
|
222
|
+
ariaHasPopup = _ref2.ariaHasPopup,
|
|
223
|
+
interactionName = _ref2.interactionName,
|
|
224
|
+
isContentTooltipDisabled = _ref2.isContentTooltipDisabled,
|
|
225
|
+
visualContentRef = _ref2.visualContentRef,
|
|
226
|
+
isDragging = _ref2.isDragging,
|
|
227
|
+
hasDragIndicator = _ref2.hasDragIndicator,
|
|
228
|
+
dropIndicator = _ref2.dropIndicator;
|
|
250
229
|
var level = (0, _expandableMenuItemContext.useLevel)();
|
|
251
230
|
var setFlyoutMenuOpen = (0, _flyoutMenuItemContext.useSetFlyoutMenuOpen)();
|
|
252
231
|
var isFlyoutMenuOpen = (0, _flyoutMenuItemContext.useFlyoutMenuOpen)();
|
|
@@ -331,10 +310,7 @@ var MenuItemBaseNoRef = function MenuItemBaseNoRef(_ref3, forwardedRef) {
|
|
|
331
310
|
content: function content() {
|
|
332
311
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", null, children), description ? /*#__PURE__*/_react.default.createElement("div", null, description) : null);
|
|
333
312
|
},
|
|
334
|
-
position:
|
|
335
|
-
// NOTE: Types in React 18 have changed and `forwardRef(() => <TooltipPrimitive>)` no longer appears to match 100%
|
|
336
|
-
,
|
|
337
|
-
component: (0, _platformFeatureFlags.fg)('platform_dst_side_nav_remove_custom_tooltip') ? undefined : MenuItemTooltip,
|
|
313
|
+
position: "right-start",
|
|
338
314
|
ignoreTooltipPointerEvents: true,
|
|
339
315
|
hideTooltipOnMouseDown: true
|
|
340
316
|
// We don't need a duplicate hidden element containing tooltip content
|
|
@@ -45,10 +45,8 @@ function useSideNavToggleKeyboardShortcut(_ref) {
|
|
|
45
45
|
}
|
|
46
46
|
if (openLayerObserver.getCount({
|
|
47
47
|
type: 'modal'
|
|
48
|
-
}) > 0
|
|
48
|
+
}) > 0) {
|
|
49
49
|
// Return early if there are any open modals
|
|
50
|
-
// This check is behind the layer type FG, as `getCount` will return the count of all layers when
|
|
51
|
-
// the FG is disabled - meaning we would ignore the shortcut if there is any open layer (not just modals).
|
|
52
50
|
return;
|
|
53
51
|
}
|
|
54
52
|
toggleVisibilityByShortcut();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
._1r04ze3t{inset:var(--ds-space-0,0)}
|
|
3
3
|
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
4
4
|
._nd5l16dh{grid-area:elem-after}
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
._14iu13ro:active:not(:disabled){background-color:var(--ds-surface-pressed,#dddee1)}
|
|
13
13
|
._14iunozp:active:not(:disabled){background-color:var(--ds-background-selected-pressed,#8fb8f6)}
|
|
14
14
|
._152t1ssb{inset-block-start:50%}
|
|
15
|
-
._152tze3t{inset-block-start:var(--ds-space-0,0)}
|
|
16
15
|
._18m915vq{overflow-y:hidden}
|
|
17
16
|
._18ukglyw:not(:has(button,a)){pointer-events:none}
|
|
18
17
|
._1bah1h6o{justify-content:center}
|
|
@@ -25,17 +24,14 @@
|
|
|
25
24
|
._1e0c11p5{display:grid}
|
|
26
25
|
._1e0c13yo{display:var(--elem-after-display)}
|
|
27
26
|
._1e0c1txw{display:flex}
|
|
28
|
-
._1i4q1hna{overflow-wrap:break-word}
|
|
29
27
|
._1ifmglyw{-webkit-touch-callout:none}
|
|
30
28
|
._1lmcu4vt{grid-template-areas:"elem-before interactive elem-after actions"}
|
|
31
29
|
._1o9zidpf{flex-shrink:0}
|
|
32
30
|
._1q511b66{padding-block-start:var(--ds-space-050,4px)}
|
|
33
|
-
._1q51v77o{padding-block-start:var(--ds-space-025,2px)}
|
|
34
31
|
._1rbv1wug:has([aria-expanded=true][aria-haspopup=true]){--actions-on-hover-width:auto}
|
|
35
32
|
._1reo15vq{overflow-x:hidden}
|
|
36
33
|
._1swv19i6:has([aria-expanded=true][aria-haspopup=true]){background-color:var(--ds-surface-hovered,#f0f1f2)}
|
|
37
34
|
._1swvufnl:has([aria-expanded=true][aria-haspopup=true]){background-color:var(--ds-background-selected-hovered,#cfe1fd)}
|
|
38
|
-
._1tkezwfg{min-height:2pc}
|
|
39
35
|
._1ul91c9m{min-width:1ch}
|
|
40
36
|
._1ul9t9kd{min-width:72px}
|
|
41
37
|
._1yyu1j28{--notch-color:transparent}
|
|
@@ -49,12 +45,10 @@
|
|
|
49
45
|
._4t3i1wto{height:3rem}
|
|
50
46
|
._4t3iviql{height:2rem}
|
|
51
47
|
._85i51b66{padding-block-end:var(--ds-space-050,4px)}
|
|
52
|
-
._85i5v77o{padding-block-end:var(--ds-space-025,2px)}
|
|
53
48
|
._91ju1txw{--elem-after-display:flex}
|
|
54
49
|
._91juglyw{--elem-after-display:none}
|
|
55
50
|
._ae4v1h6o{align-content:center}
|
|
56
51
|
._bfhk15s3{background-color:var(--ds-background-selected,#e9f2fe)}
|
|
57
|
-
._bfhk1aqn{background-color:var(--ds-background-neutral-bold,#292a2e)}
|
|
58
52
|
._bfhk1j28{background-color:transparent}
|
|
59
53
|
._bfhk1o0g{background-color:var(--notch-color)}
|
|
60
54
|
._bfhkn7od{background-color:unset}
|
|
@@ -65,12 +59,9 @@
|
|
|
65
59
|
._kqswh2mm{position:relative}
|
|
66
60
|
._kqswstnw{position:absolute}
|
|
67
61
|
._kwq51b66:has([aria-expanded=true][aria-haspopup=true]){--actions-on-hover-padding:var(--ds-space-050,4px)}
|
|
68
|
-
._p12f1pna{max-width:420px}
|
|
69
62
|
._pmxp1wug{--actions-on-hover-width:auto}
|
|
70
63
|
._pmxpidpf{--actions-on-hover-width:0}
|
|
71
64
|
._qxq9kb7n:has([aria-expanded=true][aria-haspopup=true]){--actions-on-hover-opacity:1}
|
|
72
|
-
._slp31hna{word-wrap:break-word}
|
|
73
|
-
._syaz15cr{color:var(--ds-text-inverse,#fff)}
|
|
74
65
|
._syaz1gmx{color:var(--ds-text-disabled,#080f214a)}
|
|
75
66
|
._syaz6x5g{color:var(--ds-text-selected,#1868db)}
|
|
76
67
|
._syazazsu{color:var(--ds-text-subtle,#505258)}
|
|
@@ -83,7 +74,6 @@
|
|
|
83
74
|
._vchh1ntv{box-sizing:content-box}
|
|
84
75
|
._vchhusvi{box-sizing:border-box}
|
|
85
76
|
._y3gnv2br{text-align:start}
|
|
86
|
-
._y4ti12x7{padding-inline-end:var(--ds-space-075,6px)}
|
|
87
77
|
._y4ti1b66{padding-inline-end:var(--ds-space-050,4px)}
|
|
88
78
|
._y4tidria{padding-inline-end:var(--actions-on-hover-padding)}
|
|
89
79
|
._yv0e7dup{grid-template-columns:minmax(0,auto) 1fr minmax(0,auto) minmax(0,auto)}
|
|
@@ -93,8 +83,7 @@
|
|
|
93
83
|
._1mfcglyw:focus-within{--elem-after-display:none}
|
|
94
84
|
._91nl1wug:focus-within{--actions-on-hover-width:auto}
|
|
95
85
|
._iy5o1b66:focus-within{--actions-on-hover-padding:var(--ds-space-050,4px)}
|
|
96
|
-
._t7p8kb7n:focus-within{--actions-on-hover-opacity:1}
|
|
97
|
-
._11om6b4r:hover{animation-name:k1xyysw3}
|
|
86
|
+
._t7p8kb7n:focus-within{--actions-on-hover-opacity:1}._11om6b4r:hover{animation-name:k1xyysw3}
|
|
98
87
|
._1sjuglyw:hover{--elem-after-display:none}
|
|
99
88
|
._1uy01amc:hover{animation-delay:.8s}
|
|
100
89
|
._30l31gmx:hover{color:var(--ds-text-disabled,#080f214a)}
|
|
@@ -2,14 +2,13 @@
|
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./menu-item.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import React, {
|
|
5
|
+
import React, { lazy, Suspense, useCallback, useRef } from 'react';
|
|
6
6
|
import { cx } from '@compiled/react';
|
|
7
7
|
import { AvatarContext } from '@atlaskit/avatar';
|
|
8
8
|
import forwardRefWithGeneric from '@atlaskit/ds-lib/forward-ref-with-generic';
|
|
9
9
|
import mergeRefs from '@atlaskit/ds-lib/merge-refs';
|
|
10
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
10
|
import { Anchor, Pressable, Text } from '@atlaskit/primitives/compiled';
|
|
12
|
-
import Tooltip
|
|
11
|
+
import Tooltip from '@atlaskit/tooltip';
|
|
13
12
|
import { expandableMenuItemIndentation } from './constants';
|
|
14
13
|
import { useLevel } from './expandable-menu-item/expandable-menu-item-context';
|
|
15
14
|
import { useFlyoutMenuOpen, useSetFlyoutMenuOpen } from './flyout-menu-item/flyout-menu-item-context';
|
|
@@ -18,25 +17,6 @@ import { COLLAPSE_ELEM_BEFORE } from './menu-item-signals';
|
|
|
18
17
|
// need to include code for the drag handle.
|
|
19
18
|
const LazyDragHandle = /*#__PURE__*/lazy(() => import( /* webpackChunkName: "@atlaskit-internal_nav4-menu-item-drag-handle" */
|
|
20
19
|
'./drag-handle'));
|
|
21
|
-
const tooltipStyles = {
|
|
22
|
-
root: "_2rko12b0 _11c8dcr7 _1e0c1txw _2lx21bp4 _1bah1h6o _1tkezwfg _p12f1pna _vchhusvi _1q51v77o _y4ti12x7 _85i5v77o _bozg12x7 _bfhk1aqn _syaz15cr _152tze3t _1e02ze3t _1i4q1hna _slp31hna"
|
|
23
|
-
};
|
|
24
|
-
const MenuItemTooltip = /*#__PURE__*/forwardRef(function MenuItemTooltip({
|
|
25
|
-
children,
|
|
26
|
-
className,
|
|
27
|
-
...rest
|
|
28
|
-
}, ref) {
|
|
29
|
-
return /*#__PURE__*/React.createElement(TooltipPrimitive, _extends({}, rest, {
|
|
30
|
-
// Manually passing on `className` so it gets merged correctly in the build output.
|
|
31
|
-
// The passed classname is mostly used for integration testing (`.Tooltip`)
|
|
32
|
-
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides, @atlaskit/ui-styling-standard/no-classname-prop
|
|
33
|
-
className: ax([tooltipStyles.root, className])
|
|
34
|
-
// "css" does not "exist" - it gets transformed into "className" by compiled
|
|
35
|
-
,
|
|
36
|
-
|
|
37
|
-
ref: ref
|
|
38
|
-
}), children);
|
|
39
|
-
});
|
|
40
20
|
function isTextClamped(element) {
|
|
41
21
|
// Checking for vertical height rather than horizontal height.
|
|
42
22
|
// When text is "clamped", it's technically being clamped vertically! 🤯
|
|
@@ -314,10 +294,7 @@ const MenuItemBaseNoRef = ({
|
|
|
314
294
|
className: ax([containerStyles.root, isSelected && containerStyles.selected, isDragging && containerStyles.dragging, description && containerStyles.hasDescription, showHoverActionsWhenNotHovered && containerStyles.showHoverActions, showHoverActionsWhenNotHovered && elemAfter && containerStyles.removeElemAfter, actionsOnHover && elemAfter && containerStyles.removeElemAfterOnHoverOrOpenNestedPopup, isDisabled && containerStyles.disabled])
|
|
315
295
|
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
316
296
|
content: () => /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, children), description ? /*#__PURE__*/React.createElement("div", null, description) : null),
|
|
317
|
-
position:
|
|
318
|
-
// NOTE: Types in React 18 have changed and `forwardRef(() => <TooltipPrimitive>)` no longer appears to match 100%
|
|
319
|
-
,
|
|
320
|
-
component: fg('platform_dst_side_nav_remove_custom_tooltip') ? undefined : MenuItemTooltip,
|
|
297
|
+
position: "right-start",
|
|
321
298
|
ignoreTooltipPointerEvents: true,
|
|
322
299
|
hideTooltipOnMouseDown: true
|
|
323
300
|
// We don't need a duplicate hidden element containing tooltip content
|
|
@@ -40,10 +40,8 @@ export function useSideNavToggleKeyboardShortcut({
|
|
|
40
40
|
}
|
|
41
41
|
if (openLayerObserver.getCount({
|
|
42
42
|
type: 'modal'
|
|
43
|
-
}) > 0
|
|
43
|
+
}) > 0) {
|
|
44
44
|
// Return early if there are any open modals
|
|
45
|
-
// This check is behind the layer type FG, as `getCount` will return the count of all layers when
|
|
46
|
-
// the FG is disabled - meaning we would ignore the shortcut if there is any open layer (not just modals).
|
|
47
45
|
return;
|
|
48
46
|
}
|
|
49
47
|
toggleVisibilityByShortcut();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
._1r04ze3t{inset:var(--ds-space-0,0)}
|
|
3
3
|
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
4
4
|
._nd5l16dh{grid-area:elem-after}
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
._14iu13ro:active:not(:disabled){background-color:var(--ds-surface-pressed,#dddee1)}
|
|
13
13
|
._14iunozp:active:not(:disabled){background-color:var(--ds-background-selected-pressed,#8fb8f6)}
|
|
14
14
|
._152t1ssb{inset-block-start:50%}
|
|
15
|
-
._152tze3t{inset-block-start:var(--ds-space-0,0)}
|
|
16
15
|
._18m915vq{overflow-y:hidden}
|
|
17
16
|
._18ukglyw:not(:has(button,a)){pointer-events:none}
|
|
18
17
|
._1bah1h6o{justify-content:center}
|
|
@@ -25,17 +24,14 @@
|
|
|
25
24
|
._1e0c11p5{display:grid}
|
|
26
25
|
._1e0c13yo{display:var(--elem-after-display)}
|
|
27
26
|
._1e0c1txw{display:flex}
|
|
28
|
-
._1i4q1hna{overflow-wrap:break-word}
|
|
29
27
|
._1ifmglyw{-webkit-touch-callout:none}
|
|
30
28
|
._1lmcu4vt{grid-template-areas:"elem-before interactive elem-after actions"}
|
|
31
29
|
._1o9zidpf{flex-shrink:0}
|
|
32
30
|
._1q511b66{padding-block-start:var(--ds-space-050,4px)}
|
|
33
|
-
._1q51v77o{padding-block-start:var(--ds-space-025,2px)}
|
|
34
31
|
._1rbv1wug:has([aria-expanded=true][aria-haspopup=true]){--actions-on-hover-width:auto}
|
|
35
32
|
._1reo15vq{overflow-x:hidden}
|
|
36
33
|
._1swv19i6:has([aria-expanded=true][aria-haspopup=true]){background-color:var(--ds-surface-hovered,#f0f1f2)}
|
|
37
34
|
._1swvufnl:has([aria-expanded=true][aria-haspopup=true]){background-color:var(--ds-background-selected-hovered,#cfe1fd)}
|
|
38
|
-
._1tkezwfg{min-height:2pc}
|
|
39
35
|
._1ul91c9m{min-width:1ch}
|
|
40
36
|
._1ul9t9kd{min-width:72px}
|
|
41
37
|
._1yyu1j28{--notch-color:transparent}
|
|
@@ -49,12 +45,10 @@
|
|
|
49
45
|
._4t3i1wto{height:3rem}
|
|
50
46
|
._4t3iviql{height:2rem}
|
|
51
47
|
._85i51b66{padding-block-end:var(--ds-space-050,4px)}
|
|
52
|
-
._85i5v77o{padding-block-end:var(--ds-space-025,2px)}
|
|
53
48
|
._91ju1txw{--elem-after-display:flex}
|
|
54
49
|
._91juglyw{--elem-after-display:none}
|
|
55
50
|
._ae4v1h6o{align-content:center}
|
|
56
51
|
._bfhk15s3{background-color:var(--ds-background-selected,#e9f2fe)}
|
|
57
|
-
._bfhk1aqn{background-color:var(--ds-background-neutral-bold,#292a2e)}
|
|
58
52
|
._bfhk1j28{background-color:transparent}
|
|
59
53
|
._bfhk1o0g{background-color:var(--notch-color)}
|
|
60
54
|
._bfhkn7od{background-color:unset}
|
|
@@ -65,12 +59,9 @@
|
|
|
65
59
|
._kqswh2mm{position:relative}
|
|
66
60
|
._kqswstnw{position:absolute}
|
|
67
61
|
._kwq51b66:has([aria-expanded=true][aria-haspopup=true]){--actions-on-hover-padding:var(--ds-space-050,4px)}
|
|
68
|
-
._p12f1pna{max-width:420px}
|
|
69
62
|
._pmxp1wug{--actions-on-hover-width:auto}
|
|
70
63
|
._pmxpidpf{--actions-on-hover-width:0}
|
|
71
64
|
._qxq9kb7n:has([aria-expanded=true][aria-haspopup=true]){--actions-on-hover-opacity:1}
|
|
72
|
-
._slp31hna{word-wrap:break-word}
|
|
73
|
-
._syaz15cr{color:var(--ds-text-inverse,#fff)}
|
|
74
65
|
._syaz1gmx{color:var(--ds-text-disabled,#080f214a)}
|
|
75
66
|
._syaz6x5g{color:var(--ds-text-selected,#1868db)}
|
|
76
67
|
._syazazsu{color:var(--ds-text-subtle,#505258)}
|
|
@@ -83,7 +74,6 @@
|
|
|
83
74
|
._vchh1ntv{box-sizing:content-box}
|
|
84
75
|
._vchhusvi{box-sizing:border-box}
|
|
85
76
|
._y3gnv2br{text-align:start}
|
|
86
|
-
._y4ti12x7{padding-inline-end:var(--ds-space-075,6px)}
|
|
87
77
|
._y4ti1b66{padding-inline-end:var(--ds-space-050,4px)}
|
|
88
78
|
._y4tidria{padding-inline-end:var(--actions-on-hover-padding)}
|
|
89
79
|
._yv0e7dup{grid-template-columns:minmax(0,auto) 1fr minmax(0,auto) minmax(0,auto)}
|
|
@@ -93,8 +83,7 @@
|
|
|
93
83
|
._1mfcglyw:focus-within{--elem-after-display:none}
|
|
94
84
|
._91nl1wug:focus-within{--actions-on-hover-width:auto}
|
|
95
85
|
._iy5o1b66:focus-within{--actions-on-hover-padding:var(--ds-space-050,4px)}
|
|
96
|
-
._t7p8kb7n:focus-within{--actions-on-hover-opacity:1}
|
|
97
|
-
._11om6b4r:hover{animation-name:k1xyysw3}
|
|
86
|
+
._t7p8kb7n:focus-within{--actions-on-hover-opacity:1}._11om6b4r:hover{animation-name:k1xyysw3}
|
|
98
87
|
._1sjuglyw:hover{--elem-after-display:none}
|
|
99
88
|
._1uy01amc:hover{animation-delay:.8s}
|
|
100
89
|
._30l31gmx:hover{color:var(--ds-text-disabled,#080f214a)}
|
|
@@ -1,20 +1,17 @@
|
|
|
1
1
|
/* menu-item.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
4
|
-
import
|
|
5
|
-
var _excluded = ["children", "className"];
|
|
3
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
6
4
|
import "./menu-item.compiled.css";
|
|
7
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
8
6
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9
7
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10
|
-
import React, {
|
|
8
|
+
import React, { lazy, Suspense, useCallback, useRef } from 'react';
|
|
11
9
|
import { cx } from '@compiled/react';
|
|
12
10
|
import { AvatarContext } from '@atlaskit/avatar';
|
|
13
11
|
import forwardRefWithGeneric from '@atlaskit/ds-lib/forward-ref-with-generic';
|
|
14
12
|
import mergeRefs from '@atlaskit/ds-lib/merge-refs';
|
|
15
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
13
|
import { Anchor, Pressable, Text } from '@atlaskit/primitives/compiled';
|
|
17
|
-
import Tooltip
|
|
14
|
+
import Tooltip from '@atlaskit/tooltip';
|
|
18
15
|
import { expandableMenuItemIndentation } from './constants';
|
|
19
16
|
import { useLevel } from './expandable-menu-item/expandable-menu-item-context';
|
|
20
17
|
import { useFlyoutMenuOpen, useSetFlyoutMenuOpen } from './flyout-menu-item/flyout-menu-item-context';
|
|
@@ -25,24 +22,6 @@ var LazyDragHandle = /*#__PURE__*/lazy(function () {
|
|
|
25
22
|
return import( /* webpackChunkName: "@atlaskit-internal_nav4-menu-item-drag-handle" */
|
|
26
23
|
'./drag-handle');
|
|
27
24
|
});
|
|
28
|
-
var tooltipStyles = {
|
|
29
|
-
root: "_2rko12b0 _11c8dcr7 _1e0c1txw _2lx21bp4 _1bah1h6o _1tkezwfg _p12f1pna _vchhusvi _1q51v77o _y4ti12x7 _85i5v77o _bozg12x7 _bfhk1aqn _syaz15cr _152tze3t _1e02ze3t _1i4q1hna _slp31hna"
|
|
30
|
-
};
|
|
31
|
-
var MenuItemTooltip = /*#__PURE__*/forwardRef(function MenuItemTooltip(_ref, ref) {
|
|
32
|
-
var children = _ref.children,
|
|
33
|
-
className = _ref.className,
|
|
34
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
35
|
-
return /*#__PURE__*/React.createElement(TooltipPrimitive, _extends({}, rest, {
|
|
36
|
-
// Manually passing on `className` so it gets merged correctly in the build output.
|
|
37
|
-
// The passed classname is mostly used for integration testing (`.Tooltip`)
|
|
38
|
-
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides, @atlaskit/ui-styling-standard/no-classname-prop
|
|
39
|
-
className: ax([tooltipStyles.root, className])
|
|
40
|
-
// "css" does not "exist" - it gets transformed into "className" by compiled
|
|
41
|
-
,
|
|
42
|
-
|
|
43
|
-
ref: ref
|
|
44
|
-
}), children);
|
|
45
|
-
});
|
|
46
25
|
function isTextClamped(element) {
|
|
47
26
|
// Checking for vertical height rather than horizontal height.
|
|
48
27
|
// When text is "clamped", it's technically being clamped vertically! 🤯
|
|
@@ -188,9 +167,9 @@ var elemAfterStyles = {
|
|
|
188
167
|
var interactiveContentStyles = {
|
|
189
168
|
root: "_nd5l19l3 _1e0c1txw _2lx21bp4 _ae4v1h6o"
|
|
190
169
|
};
|
|
191
|
-
function getTextColor(
|
|
192
|
-
var isDisabled =
|
|
193
|
-
isSelected =
|
|
170
|
+
function getTextColor(_ref) {
|
|
171
|
+
var isDisabled = _ref.isDisabled,
|
|
172
|
+
isSelected = _ref.isSelected;
|
|
194
173
|
if (isDisabled) {
|
|
195
174
|
return 'color.text.disabled';
|
|
196
175
|
}
|
|
@@ -213,29 +192,29 @@ function getTextColor(_ref2) {
|
|
|
213
192
|
* It contains a type argument `<T>`, to specify the type of the interactive element (`button` or `a`).
|
|
214
193
|
* This can be inferred from the type of the `onClick` prop.
|
|
215
194
|
*/
|
|
216
|
-
var MenuItemBaseNoRef = function MenuItemBaseNoRef(
|
|
217
|
-
var id =
|
|
218
|
-
testId =
|
|
219
|
-
actions =
|
|
220
|
-
actionsOnHover =
|
|
221
|
-
children =
|
|
222
|
-
description =
|
|
223
|
-
elemAfter =
|
|
224
|
-
elemBefore =
|
|
225
|
-
href =
|
|
226
|
-
target =
|
|
227
|
-
isDisabled =
|
|
228
|
-
isSelected =
|
|
229
|
-
onClick =
|
|
230
|
-
ariaControls =
|
|
231
|
-
ariaExpanded =
|
|
232
|
-
ariaHasPopup =
|
|
233
|
-
interactionName =
|
|
234
|
-
isContentTooltipDisabled =
|
|
235
|
-
visualContentRef =
|
|
236
|
-
isDragging =
|
|
237
|
-
hasDragIndicator =
|
|
238
|
-
dropIndicator =
|
|
195
|
+
var MenuItemBaseNoRef = function MenuItemBaseNoRef(_ref2, forwardedRef) {
|
|
196
|
+
var id = _ref2.id,
|
|
197
|
+
testId = _ref2.testId,
|
|
198
|
+
actions = _ref2.actions,
|
|
199
|
+
actionsOnHover = _ref2.actionsOnHover,
|
|
200
|
+
children = _ref2.children,
|
|
201
|
+
description = _ref2.description,
|
|
202
|
+
elemAfter = _ref2.elemAfter,
|
|
203
|
+
elemBefore = _ref2.elemBefore,
|
|
204
|
+
href = _ref2.href,
|
|
205
|
+
target = _ref2.target,
|
|
206
|
+
isDisabled = _ref2.isDisabled,
|
|
207
|
+
isSelected = _ref2.isSelected,
|
|
208
|
+
onClick = _ref2.onClick,
|
|
209
|
+
ariaControls = _ref2.ariaControls,
|
|
210
|
+
ariaExpanded = _ref2.ariaExpanded,
|
|
211
|
+
ariaHasPopup = _ref2.ariaHasPopup,
|
|
212
|
+
interactionName = _ref2.interactionName,
|
|
213
|
+
isContentTooltipDisabled = _ref2.isContentTooltipDisabled,
|
|
214
|
+
visualContentRef = _ref2.visualContentRef,
|
|
215
|
+
isDragging = _ref2.isDragging,
|
|
216
|
+
hasDragIndicator = _ref2.hasDragIndicator,
|
|
217
|
+
dropIndicator = _ref2.dropIndicator;
|
|
239
218
|
var level = useLevel();
|
|
240
219
|
var setFlyoutMenuOpen = useSetFlyoutMenuOpen();
|
|
241
220
|
var isFlyoutMenuOpen = useFlyoutMenuOpen();
|
|
@@ -320,10 +299,7 @@ var MenuItemBaseNoRef = function MenuItemBaseNoRef(_ref3, forwardedRef) {
|
|
|
320
299
|
content: function content() {
|
|
321
300
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, children), description ? /*#__PURE__*/React.createElement("div", null, description) : null);
|
|
322
301
|
},
|
|
323
|
-
position:
|
|
324
|
-
// NOTE: Types in React 18 have changed and `forwardRef(() => <TooltipPrimitive>)` no longer appears to match 100%
|
|
325
|
-
,
|
|
326
|
-
component: fg('platform_dst_side_nav_remove_custom_tooltip') ? undefined : MenuItemTooltip,
|
|
302
|
+
position: "right-start",
|
|
327
303
|
ignoreTooltipPointerEvents: true,
|
|
328
304
|
hideTooltipOnMouseDown: true
|
|
329
305
|
// We don't need a duplicate hidden element containing tooltip content
|
|
@@ -39,10 +39,8 @@ export function useSideNavToggleKeyboardShortcut(_ref) {
|
|
|
39
39
|
}
|
|
40
40
|
if (openLayerObserver.getCount({
|
|
41
41
|
type: 'modal'
|
|
42
|
-
}) > 0
|
|
42
|
+
}) > 0) {
|
|
43
43
|
// Return early if there are any open modals
|
|
44
|
-
// This check is behind the layer type FG, as `getCount` will return the count of all layers when
|
|
45
|
-
// the FG is disabled - meaning we would ignore the shortcut if there is any open layer (not just modals).
|
|
46
44
|
return;
|
|
47
45
|
}
|
|
48
46
|
toggleVisibilityByShortcut();
|
|
@@ -55,8 +55,7 @@ export declare function Root({ children, xcss, UNSAFE_dangerouslyHoistSlotSizes,
|
|
|
55
55
|
*
|
|
56
56
|
* The shortcut is not enabled by default.
|
|
57
57
|
*
|
|
58
|
-
* The shortcut will also be ignored if there are any open ADS modal dialogs (`@atlaskit/modal-dialog`).
|
|
59
|
-
* the `platform-dst-open-layer-observer-layer-type` feature flag.
|
|
58
|
+
* The shortcut will also be ignored if there are any open ADS modal dialogs (`@atlaskit/modal-dialog`).
|
|
60
59
|
*
|
|
61
60
|
* `SideNav` has another prop `canToggleWithShortcut()` that can be used to run additional checks after the shortcut
|
|
62
61
|
* is pressed, before the SideNav is toggled. You can use this to conditionally disable the shortcut based on your
|
|
@@ -55,8 +55,7 @@ export declare function Root({ children, xcss, UNSAFE_dangerouslyHoistSlotSizes,
|
|
|
55
55
|
*
|
|
56
56
|
* The shortcut is not enabled by default.
|
|
57
57
|
*
|
|
58
|
-
* The shortcut will also be ignored if there are any open ADS modal dialogs (`@atlaskit/modal-dialog`).
|
|
59
|
-
* the `platform-dst-open-layer-observer-layer-type` feature flag.
|
|
58
|
+
* The shortcut will also be ignored if there are any open ADS modal dialogs (`@atlaskit/modal-dialog`).
|
|
60
59
|
*
|
|
61
60
|
* `SideNav` has another prop `canToggleWithShortcut()` that can be used to run additional checks after the shortcut
|
|
62
61
|
* is pressed, before the SideNav is toggled. You can use this to conditionally disable the shortcut based on your
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/navigation-system",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.5.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",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@atlaskit/css": "^0.15.0",
|
|
73
73
|
"@atlaskit/ds-lib": "^5.2.0",
|
|
74
74
|
"@atlaskit/icon": "^29.0.0",
|
|
75
|
-
"@atlaskit/layering": "^3.
|
|
75
|
+
"@atlaskit/layering": "^3.3.0",
|
|
76
76
|
"@atlaskit/logo": "^19.9.0",
|
|
77
77
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
78
78
|
"@atlaskit/popup": "^4.6.0",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"@atlaskit/link": "^3.2.0",
|
|
108
108
|
"@atlaskit/lozenge": "^13.1.0",
|
|
109
109
|
"@atlaskit/menu": "^8.4.0",
|
|
110
|
-
"@atlaskit/modal-dialog": "^14.
|
|
110
|
+
"@atlaskit/modal-dialog": "^14.7.0",
|
|
111
111
|
"@atlaskit/onboarding": "^14.4.0",
|
|
112
112
|
"@atlaskit/page-header": "^12.1.0",
|
|
113
113
|
"@atlaskit/page-layout": "^4.2.0",
|
|
@@ -117,8 +117,9 @@
|
|
|
117
117
|
"@atlaskit/textfield": "^8.0.0",
|
|
118
118
|
"@atlassian/feature-flags-test-utils": "^1.0.0",
|
|
119
119
|
"@atlassian/gemini": "^1.20.0",
|
|
120
|
-
"@atlassian/search-dialog": "^9.
|
|
120
|
+
"@atlassian/search-dialog": "^9.9.0",
|
|
121
121
|
"@atlassian/ssr-tests": "workspace:^",
|
|
122
|
+
"@atlassian/test-utils": "^1.0.0",
|
|
122
123
|
"@atlassian/testing-library": "^0.4.0",
|
|
123
124
|
"@axe-core/playwright": "^4.8.0",
|
|
124
125
|
"@testing-library/react": "^13.4.0",
|
|
@@ -181,12 +182,6 @@
|
|
|
181
182
|
"platform_dst_flyout_menu_item_chevron_color": {
|
|
182
183
|
"type": "boolean"
|
|
183
184
|
},
|
|
184
|
-
"platform_dst_side_nav_remove_custom_tooltip": {
|
|
185
|
-
"type": "boolean"
|
|
186
|
-
},
|
|
187
|
-
"platform-dst-open-layer-observer-layer-type": {
|
|
188
|
-
"type": "boolean"
|
|
189
|
-
},
|
|
190
185
|
"platform_themed_button_use_icon_renderer": {
|
|
191
186
|
"type": "boolean"
|
|
192
187
|
},
|