@atlaskit/navigation-system 5.4.0 → 5.5.1
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 +20 -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/top-nav/top-nav-end.compiled.css +1 -0
- package/dist/cjs/ui/page-layout/top-nav/top-nav-end.js +1 -1
- package/dist/cjs/ui/page-layout/top-nav/top-nav.compiled.css +1 -1
- package/dist/cjs/ui/page-layout/top-nav/top-nav.js +1 -1
- 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/top-nav/top-nav-end.compiled.css +1 -0
- package/dist/es2019/ui/page-layout/top-nav/top-nav-end.js +1 -1
- package/dist/es2019/ui/page-layout/top-nav/top-nav.compiled.css +1 -1
- package/dist/es2019/ui/page-layout/top-nav/top-nav.js +1 -1
- 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/top-nav/top-nav-end.compiled.css +1 -0
- package/dist/esm/ui/page-layout/top-nav/top-nav-end.js +1 -1
- package/dist/esm/ui/page-layout/top-nav/top-nav.compiled.css +1 -1
- package/dist/esm/ui/page-layout/top-nav/top-nav.js +1 -1
- package/package.json +3 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlassian/navigation-system
|
|
2
2
|
|
|
3
|
+
## 5.5.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`31921a1c13971`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/31921a1c13971) -
|
|
8
|
+
Fixes centering of top nav middle items when the `navx-full-height-sidebar` flag is enabled.
|
|
9
|
+
|
|
10
|
+
## 5.5.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- [`0fd231aa18bd4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0fd231aa18bd4) -
|
|
15
|
+
The tooltip for truncated side nav menu item has been updated:
|
|
16
|
+
- The tooltip now uses the standard tooltip styling and behavior, instead of using a custom
|
|
17
|
+
component.
|
|
18
|
+
- The tooltip position has been updated to `right-start` (previously it was `right`).
|
|
19
|
+
|
|
20
|
+
These changes were previously behind the feature gate
|
|
21
|
+
`platform_dst_side_nav_remove_custom_tooltip`, which has now been removed.
|
|
22
|
+
|
|
3
23
|
## 5.4.0
|
|
4
24
|
|
|
5
25
|
### Minor 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
|
|
@@ -7,5 +7,6 @@
|
|
|
7
7
|
._1ul9zwfg{min-width:2pc}
|
|
8
8
|
._4cvr1h6o{align-items:center}
|
|
9
9
|
._lcxv1wug{pointer-events:auto}
|
|
10
|
+
._y4tiutpp{padding-inline-end:var(--ds-space-150,9pt)}
|
|
10
11
|
@media (min-width:48rem){._181n1txw{display:flex}._1d2y1ris{min-width:max-content}}
|
|
11
12
|
@media (min-width:64rem){._15rip2n4{min-width:330px}._glte1ris{width:max-content}._15ri1mjv{min-width:300px}._1gs5usvi{box-sizing:border-box}._ndwch9n0{justify-self:end}}
|
|
@@ -25,7 +25,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
25
25
|
var containerStyles = {
|
|
26
26
|
root: "_yyhy11wp _1e0c1txw _1bahh9n0 _1ul9zwfg _1d2y1ris _glte1ris _15ri1mjv _1gs5usvi _ndwch9n0",
|
|
27
27
|
jiraProductLogoUpdate: "_15rip2n4",
|
|
28
|
-
fullHeightSidebar: "_lcxv1wug"
|
|
28
|
+
fullHeightSidebar: "_lcxv1wug _y4tiutpp"
|
|
29
29
|
};
|
|
30
30
|
var listStyles = {
|
|
31
31
|
root: "_zulp1b66 _4cvr1h6o _1e0c1txw",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
._kqsw1if8{position:sticky}
|
|
18
18
|
._lcxvglyw{pointer-events:none}
|
|
19
19
|
._vchhusvi{box-sizing:border-box}
|
|
20
|
-
.
|
|
20
|
+
._y4tize3t{padding-inline-end:var(--ds-space-0,0)}
|
|
21
21
|
._yv0e1mfv{grid-template-columns:auto 1fr auto}
|
|
22
22
|
@media (min-width:48rem){._1j8b18ax{grid-template-columns:1fr minmax(min-content,max-content) 1fr}}
|
|
23
23
|
@media (min-width:64rem){._1rqt16a9{grid-template-columns:0fr minmax(min-content,max-content) 1fr}._hyzqcs5v{z-index:2}._pdlmutpp{gap:var(--ds-space-150,9pt)}}
|
|
@@ -33,7 +33,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
33
33
|
*/
|
|
34
34
|
var styles = {
|
|
35
35
|
root: "_nd5l8cbt _zulpu2gc _18zrutpp _179ria51 _1e0c11p5 _yv0e1mfv _4cvr1h6o _bfhkvuon _vchhusvi _4t3i1dgc _152t1nws _kqsw1if8 _1pbyegat _d6vu1bgi _1j8b18ax",
|
|
36
|
-
fullHeightSidebar: "_179rglyw _bozgze3t
|
|
36
|
+
fullHeightSidebar: "_179rglyw _bozgze3t _y4tize3t _bfhkglyw _lcxvglyw _pdlmutpp",
|
|
37
37
|
fullHeightSidebarExpanded: "_1rqt16a9 _jh1g18ax"
|
|
38
38
|
};
|
|
39
39
|
|
|
@@ -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
|
|
@@ -7,5 +7,6 @@
|
|
|
7
7
|
._1ul9zwfg{min-width:2pc}
|
|
8
8
|
._4cvr1h6o{align-items:center}
|
|
9
9
|
._lcxv1wug{pointer-events:auto}
|
|
10
|
+
._y4tiutpp{padding-inline-end:var(--ds-space-150,9pt)}
|
|
10
11
|
@media (min-width:48rem){._181n1txw{display:flex}._1d2y1ris{min-width:max-content}}
|
|
11
12
|
@media (min-width:64rem){._15rip2n4{min-width:330px}._glte1ris{width:max-content}._15ri1mjv{min-width:300px}._1gs5usvi{box-sizing:border-box}._ndwch9n0{justify-self:end}}
|
|
@@ -15,7 +15,7 @@ import { IconButton } from '../../top-nav-items/themed/migration';
|
|
|
15
15
|
const containerStyles = {
|
|
16
16
|
root: "_yyhy11wp _1e0c1txw _1bahh9n0 _1ul9zwfg _1d2y1ris _glte1ris _15ri1mjv _1gs5usvi _ndwch9n0",
|
|
17
17
|
jiraProductLogoUpdate: "_15rip2n4",
|
|
18
|
-
fullHeightSidebar: "_lcxv1wug"
|
|
18
|
+
fullHeightSidebar: "_lcxv1wug _y4tiutpp"
|
|
19
19
|
};
|
|
20
20
|
const listStyles = {
|
|
21
21
|
root: "_zulp1b66 _4cvr1h6o _1e0c1txw",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
._kqsw1if8{position:sticky}
|
|
18
18
|
._lcxvglyw{pointer-events:none}
|
|
19
19
|
._vchhusvi{box-sizing:border-box}
|
|
20
|
-
.
|
|
20
|
+
._y4tize3t{padding-inline-end:var(--ds-space-0,0)}
|
|
21
21
|
._yv0e1mfv{grid-template-columns:auto 1fr auto}
|
|
22
22
|
@media (min-width:48rem){._1j8b18ax{grid-template-columns:1fr minmax(min-content,max-content) 1fr}}
|
|
23
23
|
@media (min-width:64rem){._1rqt16a9{grid-template-columns:0fr minmax(min-content,max-content) 1fr}._hyzqcs5v{z-index:2}._pdlmutpp{gap:var(--ds-space-150,9pt)}}
|
|
@@ -22,7 +22,7 @@ import { useSideNavVisibility } from '../side-nav/use-side-nav-visibility';
|
|
|
22
22
|
*/
|
|
23
23
|
const styles = {
|
|
24
24
|
root: "_nd5l8cbt _zulpu2gc _18zrutpp _179ria51 _1e0c11p5 _yv0e1mfv _4cvr1h6o _bfhkvuon _vchhusvi _4t3i1dgc _152t1nws _kqsw1if8 _1pbyegat _d6vu1bgi _1j8b18ax",
|
|
25
|
-
fullHeightSidebar: "_179rglyw _bozgze3t
|
|
25
|
+
fullHeightSidebar: "_179rglyw _bozgze3t _y4tize3t _bfhkglyw _lcxvglyw _pdlmutpp",
|
|
26
26
|
fullHeightSidebarExpanded: "_1rqt16a9 _jh1g18ax"
|
|
27
27
|
};
|
|
28
28
|
|
|
@@ -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
|
|
@@ -7,5 +7,6 @@
|
|
|
7
7
|
._1ul9zwfg{min-width:2pc}
|
|
8
8
|
._4cvr1h6o{align-items:center}
|
|
9
9
|
._lcxv1wug{pointer-events:auto}
|
|
10
|
+
._y4tiutpp{padding-inline-end:var(--ds-space-150,9pt)}
|
|
10
11
|
@media (min-width:48rem){._181n1txw{display:flex}._1d2y1ris{min-width:max-content}}
|
|
11
12
|
@media (min-width:64rem){._15rip2n4{min-width:330px}._glte1ris{width:max-content}._15ri1mjv{min-width:300px}._1gs5usvi{box-sizing:border-box}._ndwch9n0{justify-self:end}}
|
|
@@ -16,7 +16,7 @@ import { IconButton } from '../../top-nav-items/themed/migration';
|
|
|
16
16
|
var containerStyles = {
|
|
17
17
|
root: "_yyhy11wp _1e0c1txw _1bahh9n0 _1ul9zwfg _1d2y1ris _glte1ris _15ri1mjv _1gs5usvi _ndwch9n0",
|
|
18
18
|
jiraProductLogoUpdate: "_15rip2n4",
|
|
19
|
-
fullHeightSidebar: "_lcxv1wug"
|
|
19
|
+
fullHeightSidebar: "_lcxv1wug _y4tiutpp"
|
|
20
20
|
};
|
|
21
21
|
var listStyles = {
|
|
22
22
|
root: "_zulp1b66 _4cvr1h6o _1e0c1txw",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
._kqsw1if8{position:sticky}
|
|
18
18
|
._lcxvglyw{pointer-events:none}
|
|
19
19
|
._vchhusvi{box-sizing:border-box}
|
|
20
|
-
.
|
|
20
|
+
._y4tize3t{padding-inline-end:var(--ds-space-0,0)}
|
|
21
21
|
._yv0e1mfv{grid-template-columns:auto 1fr auto}
|
|
22
22
|
@media (min-width:48rem){._1j8b18ax{grid-template-columns:1fr minmax(min-content,max-content) 1fr}}
|
|
23
23
|
@media (min-width:64rem){._1rqt16a9{grid-template-columns:0fr minmax(min-content,max-content) 1fr}._hyzqcs5v{z-index:2}._pdlmutpp{gap:var(--ds-space-150,9pt)}}
|
|
@@ -24,7 +24,7 @@ import { useSideNavVisibility } from '../side-nav/use-side-nav-visibility';
|
|
|
24
24
|
*/
|
|
25
25
|
var styles = {
|
|
26
26
|
root: "_nd5l8cbt _zulpu2gc _18zrutpp _179ria51 _1e0c11p5 _yv0e1mfv _4cvr1h6o _bfhkvuon _vchhusvi _4t3i1dgc _152t1nws _kqsw1if8 _1pbyegat _d6vu1bgi _1j8b18ax",
|
|
27
|
-
fullHeightSidebar: "_179rglyw _bozgze3t
|
|
27
|
+
fullHeightSidebar: "_179rglyw _bozgze3t _y4tize3t _bfhkglyw _lcxvglyw _pdlmutpp",
|
|
28
28
|
fullHeightSidebarExpanded: "_1rqt16a9 _jh1g18ax"
|
|
29
29
|
};
|
|
30
30
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/navigation-system",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.5.1",
|
|
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",
|
|
@@ -112,9 +112,9 @@
|
|
|
112
112
|
"@atlaskit/page-header": "^12.1.0",
|
|
113
113
|
"@atlaskit/page-layout": "^4.2.0",
|
|
114
114
|
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^2.1.0",
|
|
115
|
-
"@atlaskit/select": "^21.
|
|
115
|
+
"@atlaskit/select": "^21.4.0",
|
|
116
116
|
"@atlaskit/skeleton": "^2.1.0",
|
|
117
|
-
"@atlaskit/textfield": "^8.
|
|
117
|
+
"@atlaskit/textfield": "^8.1.0",
|
|
118
118
|
"@atlassian/feature-flags-test-utils": "^1.0.0",
|
|
119
119
|
"@atlassian/gemini": "^1.20.0",
|
|
120
120
|
"@atlassian/search-dialog": "^9.9.0",
|
|
@@ -182,9 +182,6 @@
|
|
|
182
182
|
"platform_dst_flyout_menu_item_chevron_color": {
|
|
183
183
|
"type": "boolean"
|
|
184
184
|
},
|
|
185
|
-
"platform_dst_side_nav_remove_custom_tooltip": {
|
|
186
|
-
"type": "boolean"
|
|
187
|
-
},
|
|
188
185
|
"platform_themed_button_use_icon_renderer": {
|
|
189
186
|
"type": "boolean"
|
|
190
187
|
},
|