@atlaskit/navigation-system 11.4.2 → 11.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 +22 -0
- package/constellation/layout/code.mdx +28 -0
- package/dist/cjs/ui/page-layout/panel-splitter/get-panel-growth-side.js +19 -0
- package/dist/cjs/ui/page-layout/panel-splitter/panel-splitter.compiled.css +2 -0
- package/dist/cjs/ui/page-layout/panel-splitter/panel-splitter.js +25 -7
- package/dist/cjs/ui/page-layout/top-nav/top-nav-element-context.js +9 -0
- package/dist/cjs/ui/page-layout/top-nav/top-nav-end.compiled.css +10 -3
- package/dist/cjs/ui/page-layout/top-nav/top-nav-end.js +52 -15
- package/dist/cjs/ui/page-layout/top-nav/top-nav-middle.compiled.css +6 -1
- package/dist/cjs/ui/page-layout/top-nav/top-nav-middle.js +4 -2
- package/dist/cjs/ui/page-layout/top-nav/top-nav-start.compiled.css +5 -2
- package/dist/cjs/ui/page-layout/top-nav/top-nav-start.js +6 -2
- package/dist/cjs/ui/page-layout/top-nav/top-nav.compiled.css +26 -1
- package/dist/cjs/ui/page-layout/top-nav/top-nav.js +75 -7
- package/dist/cjs/ui/page-layout/top-nav/use-measured-top-nav-breakpoints.js +75 -0
- package/dist/cjs/ui/page-layout/top-nav/use-top-nav-breakpoints.js +19 -0
- package/dist/cjs/ui/page-layout/top-nav/use-top-nav-end-focus.js +102 -0
- package/dist/cjs/ui/top-nav-items/custom-title.compiled.css +2 -1
- package/dist/cjs/ui/top-nav-items/custom-title.js +6 -3
- package/dist/cjs/ui/top-nav-items/nav-logo/app-logo.compiled.css +2 -1
- package/dist/cjs/ui/top-nav-items/nav-logo/app-logo.js +4 -2
- package/dist/cjs/ui/top-nav-items/nav-logo/custom-logo.compiled.css +3 -1
- package/dist/cjs/ui/top-nav-items/nav-logo/custom-logo.js +9 -4
- package/dist/cjs/ui/top-nav-items/search.compiled.css +34 -2
- package/dist/cjs/ui/top-nav-items/search.js +106 -11
- package/dist/es2019/ui/page-layout/panel-splitter/get-panel-growth-side.js +14 -0
- package/dist/es2019/ui/page-layout/panel-splitter/panel-splitter.compiled.css +2 -0
- package/dist/es2019/ui/page-layout/panel-splitter/panel-splitter.js +22 -6
- package/dist/es2019/ui/page-layout/top-nav/top-nav-element-context.js +3 -0
- package/dist/es2019/ui/page-layout/top-nav/top-nav-end.compiled.css +10 -3
- package/dist/es2019/ui/page-layout/top-nav/top-nav-end.js +53 -14
- package/dist/es2019/ui/page-layout/top-nav/top-nav-middle.compiled.css +6 -1
- package/dist/es2019/ui/page-layout/top-nav/top-nav-middle.js +4 -2
- package/dist/es2019/ui/page-layout/top-nav/top-nav-start.compiled.css +5 -2
- package/dist/es2019/ui/page-layout/top-nav/top-nav-start.js +6 -2
- package/dist/es2019/ui/page-layout/top-nav/top-nav.compiled.css +26 -1
- package/dist/es2019/ui/page-layout/top-nav/top-nav.js +54 -8
- package/dist/es2019/ui/page-layout/top-nav/use-measured-top-nav-breakpoints.js +48 -0
- package/dist/es2019/ui/page-layout/top-nav/use-top-nav-breakpoints.js +14 -0
- package/dist/es2019/ui/page-layout/top-nav/use-top-nav-end-focus.js +97 -0
- package/dist/es2019/ui/top-nav-items/custom-title.compiled.css +2 -1
- package/dist/es2019/ui/top-nav-items/custom-title.js +6 -3
- package/dist/es2019/ui/top-nav-items/nav-logo/app-logo.compiled.css +2 -1
- package/dist/es2019/ui/top-nav-items/nav-logo/app-logo.js +4 -2
- package/dist/es2019/ui/top-nav-items/nav-logo/custom-logo.compiled.css +3 -1
- package/dist/es2019/ui/top-nav-items/nav-logo/custom-logo.js +9 -4
- package/dist/es2019/ui/top-nav-items/search.compiled.css +34 -2
- package/dist/es2019/ui/top-nav-items/search.js +105 -10
- package/dist/esm/ui/page-layout/panel-splitter/get-panel-growth-side.js +13 -0
- package/dist/esm/ui/page-layout/panel-splitter/panel-splitter.compiled.css +2 -0
- package/dist/esm/ui/page-layout/panel-splitter/panel-splitter.js +25 -7
- package/dist/esm/ui/page-layout/top-nav/top-nav-element-context.js +3 -0
- package/dist/esm/ui/page-layout/top-nav/top-nav-end.compiled.css +10 -3
- package/dist/esm/ui/page-layout/top-nav/top-nav-end.js +53 -15
- package/dist/esm/ui/page-layout/top-nav/top-nav-middle.compiled.css +6 -1
- package/dist/esm/ui/page-layout/top-nav/top-nav-middle.js +4 -2
- package/dist/esm/ui/page-layout/top-nav/top-nav-start.compiled.css +5 -2
- package/dist/esm/ui/page-layout/top-nav/top-nav-start.js +6 -2
- package/dist/esm/ui/page-layout/top-nav/top-nav.compiled.css +26 -1
- package/dist/esm/ui/page-layout/top-nav/top-nav.js +75 -8
- package/dist/esm/ui/page-layout/top-nav/use-measured-top-nav-breakpoints.js +68 -0
- package/dist/esm/ui/page-layout/top-nav/use-top-nav-breakpoints.js +14 -0
- package/dist/esm/ui/page-layout/top-nav/use-top-nav-end-focus.js +96 -0
- package/dist/esm/ui/top-nav-items/custom-title.compiled.css +2 -1
- package/dist/esm/ui/top-nav-items/custom-title.js +6 -3
- package/dist/esm/ui/top-nav-items/nav-logo/app-logo.compiled.css +2 -1
- package/dist/esm/ui/top-nav-items/nav-logo/app-logo.js +4 -2
- package/dist/esm/ui/top-nav-items/nav-logo/custom-logo.compiled.css +3 -1
- package/dist/esm/ui/top-nav-items/nav-logo/custom-logo.js +9 -4
- package/dist/esm/ui/top-nav-items/search.compiled.css +34 -2
- package/dist/esm/ui/top-nav-items/search.js +107 -11
- package/dist/types/ui/page-layout/panel-splitter/get-panel-growth-side.d.ts +10 -0
- package/dist/types/ui/page-layout/top-nav/top-nav-element-context.d.ts +5 -0
- package/dist/types/ui/page-layout/top-nav/top-nav-end.d.ts +1 -0
- package/dist/types/ui/page-layout/top-nav/use-measured-top-nav-breakpoints.d.ts +2 -0
- package/dist/types/ui/page-layout/top-nav/use-top-nav-breakpoints.d.ts +10 -0
- package/dist/types/ui/page-layout/top-nav/use-top-nav-end-focus.d.ts +12 -0
- package/package.json +10 -10
|
@@ -10,32 +10,111 @@ exports.Search = void 0;
|
|
|
10
10
|
require("./search.compiled.css");
|
|
11
11
|
var _runtime = require("@compiled/react/runtime");
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
|
+
var _react2 = require("@compiled/react");
|
|
13
14
|
var _search = _interopRequireDefault(require("@atlaskit/icon/core/search"));
|
|
14
15
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
15
16
|
var _pressable = require("@atlaskit/primitives/compiled/pressable");
|
|
16
17
|
var _show = require("@atlaskit/primitives/compiled/show");
|
|
17
18
|
var _text = require("@atlaskit/primitives/compiled/text");
|
|
19
|
+
var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
|
|
20
|
+
var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden/visually-hidden"));
|
|
21
|
+
var _hasCustomThemeContext = require("./themed/has-custom-theme-context");
|
|
18
22
|
var _iconButton = require("./themed/icon-button");
|
|
19
23
|
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); }
|
|
24
|
+
// Container widths and custom-theme colors need the unbounded Compiled style types.
|
|
20
25
|
var styles = {
|
|
21
|
-
root: "_2rko1qi0 _v564k6bl _1rjcze3t _18zr12x7 _yv0e1mfv _4cvr1h6o _bfhk1j9a _vchhusvi _80om1kdv
|
|
26
|
+
root: "_2rko1qi0 _v564k6bl _1rjcze3t _18zr12x7 _yv0e1mfv _4cvr1h6o _bfhk1j9a _vchhusvi _80om1kdv _4t3izwfg _p12f1kvu _1bsb1osq _irr3l4ek _1ggl5xtf _1di6r01l",
|
|
27
|
+
viewport: "_1e0cglyw _114b11p5",
|
|
28
|
+
containerBorder: "_189ee4h9 _1dqonqa1 _1h6drsbi",
|
|
29
|
+
containerBorderFinesse: "_1h6d12f6",
|
|
30
|
+
containerText: "_1reo15vq _18m915vq _yyhycs5v _1ul9idpf _1bto1l2s _o5721q9c",
|
|
22
31
|
buttonText: "_yyhyjvu9 _1ii7kb7n",
|
|
23
32
|
iconBefore: "_yyhykb7n _1ii7kb7n _1e0c1txw",
|
|
24
33
|
elemAfter: "_yyhy11wp _1ii7kb7n _1e0c1txw"
|
|
25
34
|
};
|
|
35
|
+
var containerStyles = {
|
|
36
|
+
container: "_bfhk11rw _1e0c9sqe _yv0e14iv _1ul9idpf _irr311rw _1di611rw _114b1mwp",
|
|
37
|
+
containerButton: "_2rko1qi0 _1rjcze3t _18zrze3t _1e0c1txw _bfhk1j28 _4t3izwfg _p12f1kvu _1ul9idpf _1bsb5ymi _syaz1kw7 _b4h01j9a _j1r711j1 _3vbcl4ek _ml493uto _1glhr01l _9gm9sn0f _g711exps",
|
|
38
|
+
containerIcon: "_2rko1qi0 _v564k6bl _1e0cfswt _4cvr1h6o _1bah1h6o _1bsbzwfg _4t3izwfg _syaz1q3r _bfhksikg _irr3sikg _1ggl5xtf _1di6sikg _114b17i4",
|
|
39
|
+
customThemeIcon: "_syaz1kw7"
|
|
40
|
+
};
|
|
26
41
|
/**
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
* The search element for the top navigation.
|
|
42
|
+
* Keep a single focus target through CSS presentation changes, including before hydration.
|
|
43
|
+
* Only the visual contents switch; no measurement or focus handoff is needed.
|
|
30
44
|
*/
|
|
31
|
-
|
|
45
|
+
function ContainerSearch(_ref) {
|
|
32
46
|
var label = _ref.label,
|
|
33
|
-
|
|
47
|
+
_onClick = _ref.onClick,
|
|
34
48
|
_ref$iconBefore = _ref.iconBefore,
|
|
35
49
|
IconBefore = _ref$iconBefore === void 0 ? _search.default : _ref$iconBefore,
|
|
36
50
|
elemAfter = _ref.elemAfter,
|
|
37
51
|
interactionName = _ref.interactionName,
|
|
38
52
|
ariaHaspopup = _ref['aria-haspopup'];
|
|
53
|
+
var hasCustomTheme = (0, _hasCustomThemeContext.useHasCustomTheme)();
|
|
54
|
+
var renderButton = function renderButton(triggerProps) {
|
|
55
|
+
return /*#__PURE__*/_react.default.createElement(_pressable.Pressable, {
|
|
56
|
+
ref: triggerProps === null || triggerProps === void 0 ? void 0 : triggerProps.ref,
|
|
57
|
+
onFocus: triggerProps === null || triggerProps === void 0 ? void 0 : triggerProps.onFocus,
|
|
58
|
+
onBlur: triggerProps === null || triggerProps === void 0 ? void 0 : triggerProps.onBlur,
|
|
59
|
+
onMouseOver: triggerProps === null || triggerProps === void 0 ? void 0 : triggerProps.onMouseOver,
|
|
60
|
+
onMouseOut: triggerProps === null || triggerProps === void 0 ? void 0 : triggerProps.onMouseOut,
|
|
61
|
+
onMouseMove: triggerProps === null || triggerProps === void 0 ? void 0 : triggerProps.onMouseMove,
|
|
62
|
+
onMouseDown: triggerProps === null || triggerProps === void 0 ? void 0 : triggerProps.onMouseDown,
|
|
63
|
+
onClick: function onClick(event) {
|
|
64
|
+
var _triggerProps$onClick;
|
|
65
|
+
_onClick === null || _onClick === void 0 || _onClick(event);
|
|
66
|
+
triggerProps === null || triggerProps === void 0 || (_triggerProps$onClick = triggerProps.onClick) === null || _triggerProps$onClick === void 0 || _triggerProps$onClick.call(triggerProps, event);
|
|
67
|
+
}
|
|
68
|
+
// @ts-expect-error -- The responsive width uses an inherited CSS variable outside bounded xcss values.
|
|
69
|
+
// Styles are co-located above; only the Pressable xcss type is imported.
|
|
70
|
+
// eslint-disable-next-line @compiled/no-suppress-xcss
|
|
71
|
+
,
|
|
72
|
+
xcss: (0, _react2.cx)(containerStyles.containerButton),
|
|
73
|
+
interactionName: interactionName,
|
|
74
|
+
"aria-haspopup": ariaHaspopup
|
|
75
|
+
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
76
|
+
className: (0, _runtime.ax)([styles.root, containerStyles.container, styles.containerBorder, (0, _fg.fg)('platform-dst-tokens-finesse') && styles.containerBorderFinesse])
|
|
77
|
+
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
78
|
+
className: (0, _runtime.ax)([styles.iconBefore])
|
|
79
|
+
}, /*#__PURE__*/_react.default.createElement(IconBefore, {
|
|
80
|
+
color: "var(--ds-icon-subtle, #505258)",
|
|
81
|
+
spacing: "spacious",
|
|
82
|
+
label: ""
|
|
83
|
+
})), /*#__PURE__*/_react.default.createElement("span", {
|
|
84
|
+
className: (0, _runtime.ax)([styles.buttonText, styles.containerText])
|
|
85
|
+
}, /*#__PURE__*/_react.default.createElement(_text.Text, {
|
|
86
|
+
color: "color.text.subtlest"
|
|
87
|
+
}, label)), elemAfter && /*#__PURE__*/_react.default.createElement("span", {
|
|
88
|
+
className: (0, _runtime.ax)([styles.elemAfter])
|
|
89
|
+
}, elemAfter)), /*#__PURE__*/_react.default.createElement("span", {
|
|
90
|
+
className: (0, _runtime.ax)([containerStyles.containerIcon, hasCustomTheme && containerStyles.customThemeIcon])
|
|
91
|
+
}, /*#__PURE__*/_react.default.createElement(_search.default, {
|
|
92
|
+
color: "currentColor",
|
|
93
|
+
label: ""
|
|
94
|
+
}), /*#__PURE__*/_react.default.createElement(_visuallyHidden.default, null, label)));
|
|
95
|
+
};
|
|
96
|
+
// Preserve the custom-theme label tooltip on the stable trigger.
|
|
97
|
+
// As with IconButton, omit aria-describedby to avoid announcing the label twice.
|
|
98
|
+
return hasCustomTheme ? /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
|
|
99
|
+
content: label
|
|
100
|
+
}, renderButton) : renderButton();
|
|
101
|
+
}
|
|
102
|
+
var ViewportSearch = function ViewportSearch(_ref2) {
|
|
103
|
+
var label = _ref2.label,
|
|
104
|
+
onClick = _ref2.onClick,
|
|
105
|
+
_ref2$iconBefore = _ref2.iconBefore,
|
|
106
|
+
IconBefore = _ref2$iconBefore === void 0 ? _search.default : _ref2$iconBefore,
|
|
107
|
+
elemAfter = _ref2.elemAfter,
|
|
108
|
+
interactionName = _ref2.interactionName,
|
|
109
|
+
ariaHaspopup = _ref2['aria-haspopup'];
|
|
110
|
+
var iconButton = /*#__PURE__*/_react.default.createElement(_iconButton.IconButton, {
|
|
111
|
+
label: label,
|
|
112
|
+
appearance: "subtle",
|
|
113
|
+
icon: _search.default,
|
|
114
|
+
onClick: onClick,
|
|
115
|
+
interactionName: interactionName,
|
|
116
|
+
"aria-haspopup": ariaHaspopup
|
|
117
|
+
});
|
|
39
118
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(_pressable.Pressable, {
|
|
40
119
|
style: {
|
|
41
120
|
// To win the specificity war against Emotion we move this into inline styles
|
|
@@ -45,7 +124,7 @@ var Search = exports.Search = function Search(_ref) {
|
|
|
45
124
|
border: "var(--ds-border-width, 1px)".concat(" solid ", (0, _fg.fg)('platform-dst-tokens-finesse') ? "var(--ds-border-input-search, #0B120E24)" : "var(--ds-border-input, #8C8F97)")
|
|
46
125
|
},
|
|
47
126
|
onClick: onClick,
|
|
48
|
-
xcss: styles.root,
|
|
127
|
+
xcss: (0, _react2.cx)(styles.root, styles.viewport),
|
|
49
128
|
interactionName: interactionName,
|
|
50
129
|
"aria-haspopup": ariaHaspopup
|
|
51
130
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
@@ -62,12 +141,28 @@ var Search = exports.Search = function Search(_ref) {
|
|
|
62
141
|
className: (0, _runtime.ax)([styles.elemAfter])
|
|
63
142
|
}, elemAfter)), /*#__PURE__*/_react.default.createElement(_show.Show, {
|
|
64
143
|
below: "xs"
|
|
65
|
-
},
|
|
144
|
+
}, iconButton));
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* __Search__
|
|
149
|
+
*
|
|
150
|
+
* The search element for the top navigation.
|
|
151
|
+
*/
|
|
152
|
+
var Search = exports.Search = function Search(_ref3) {
|
|
153
|
+
var label = _ref3.label,
|
|
154
|
+
onClick = _ref3.onClick,
|
|
155
|
+
iconBefore = _ref3.iconBefore,
|
|
156
|
+
elemAfter = _ref3.elemAfter,
|
|
157
|
+
interactionName = _ref3.interactionName,
|
|
158
|
+
ariaHaspopup = _ref3['aria-haspopup'];
|
|
159
|
+
var Component = (0, _fg.fg)('platform-dst-chat-panel-layout') ? ContainerSearch : ViewportSearch;
|
|
160
|
+
return /*#__PURE__*/_react.default.createElement(Component, {
|
|
66
161
|
label: label,
|
|
67
|
-
appearance: "subtle",
|
|
68
|
-
icon: _search.default,
|
|
69
162
|
onClick: onClick,
|
|
163
|
+
iconBefore: iconBefore,
|
|
164
|
+
elemAfter: elemAfter,
|
|
70
165
|
interactionName: interactionName,
|
|
71
166
|
"aria-haspopup": ariaHaspopup
|
|
72
|
-
})
|
|
167
|
+
});
|
|
73
168
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns the physical side the panel grows towards when the splitter is dragged away from it.
|
|
3
|
+
*
|
|
4
|
+
* `position: 'end'` grows towards the inline-end, which is the right in left-to-right languages, and
|
|
5
|
+
* `position: 'start'` grows towards the inline-start.
|
|
6
|
+
*/
|
|
7
|
+
export function getPanelGrowthSide({
|
|
8
|
+
position,
|
|
9
|
+
textDirection
|
|
10
|
+
}) {
|
|
11
|
+
const isGrowingTowardsInlineEnd = position === 'end';
|
|
12
|
+
const isInlineEndOnTheRight = textDirection === 'ltr';
|
|
13
|
+
return isGrowingTowardsInlineEnd === isInlineEndOnTheRight ? 'right' : 'left';
|
|
14
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
._12ji1r31{outline-color:currentColor}
|
|
2
|
+
._12l2196n{margin-inline-end:var(--ds-space-negative-075,-6px)}
|
|
2
3
|
._12y31o36{outline-width:medium}
|
|
3
4
|
._152tidpf{inset-block-start:0}
|
|
4
5
|
._1bsb1l7b{width:3px}
|
|
@@ -17,6 +18,7 @@
|
|
|
17
18
|
._6fl41ytf{transition-timing-function:ease-in-out}
|
|
18
19
|
._85i5ze3t{padding-block-end:var(--ds-space-0,0)}
|
|
19
20
|
._ahbq196n{margin-inline-start:var(--ds-space-negative-075,-6px)}
|
|
21
|
+
._ahbqze3t{margin-inline-start:var(--ds-space-0,0)}
|
|
20
22
|
._bfhk1j28{background-color:transparent}
|
|
21
23
|
._bfhk1r31{background-color:currentColor}
|
|
22
24
|
._bozgze3t{padding-inline-start:var(--ds-space-0,0)}
|
|
@@ -23,6 +23,7 @@ import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
|
23
23
|
import { contentInsetBlockStart } from '../constants';
|
|
24
24
|
import { LayoutAreaSizingContext } from '../layout-area-sizing-context';
|
|
25
25
|
import { convertResizeBoundToPixels } from './convert-resize-bound-to-pixels';
|
|
26
|
+
import { getPanelGrowthSide } from './get-panel-growth-side';
|
|
26
27
|
import { getPercentageWithinPixelBounds } from './get-percentage-within-pixel-bounds';
|
|
27
28
|
import { getPixelWidth } from './get-pixel-width';
|
|
28
29
|
import { getWidthFromDragLocation } from './get-width-from-drag-location';
|
|
@@ -50,7 +51,8 @@ const lineStyles = {
|
|
|
50
51
|
root: "_kqswstnw _1e0c1ule _1bsb1l7b _4t3i1osq _syaz1kw7 _bfhk1r31 _1e021v6z"
|
|
51
52
|
};
|
|
52
53
|
const tooltipStyles = {
|
|
53
|
-
root: "_ahbq196n _1bsb1ris"
|
|
54
|
+
root: "_ahbq196n _1bsb1ris",
|
|
55
|
+
placedLeft: "_ahbqze3t _12l2196n"
|
|
54
56
|
};
|
|
55
57
|
const PanelSplitterTooltip = /*#__PURE__*/forwardRef(({
|
|
56
58
|
children,
|
|
@@ -87,7 +89,7 @@ const PanelSplitterTooltip = /*#__PURE__*/forwardRef(({
|
|
|
87
89
|
// Must be statically passed
|
|
88
90
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/design-system/no-unsafe-style-overrides
|
|
89
91
|
,
|
|
90
|
-
className: ax([tooltipStyles.root, className])
|
|
92
|
+
className: ax([tooltipStyles.root, props.placement === 'left' && tooltipStyles.placedLeft, className])
|
|
91
93
|
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides
|
|
92
94
|
,
|
|
93
95
|
|
|
@@ -102,6 +104,7 @@ const PanelSplitterTooltip = /*#__PURE__*/forwardRef(({
|
|
|
102
104
|
const MaybeTooltip = ({
|
|
103
105
|
tooltipContent,
|
|
104
106
|
shortcut,
|
|
107
|
+
mousePosition,
|
|
105
108
|
children,
|
|
106
109
|
testId
|
|
107
110
|
}) => {
|
|
@@ -111,7 +114,7 @@ const MaybeTooltip = ({
|
|
|
111
114
|
content: tooltipContent,
|
|
112
115
|
shortcut: shortcut,
|
|
113
116
|
position: "mouse-y",
|
|
114
|
-
mousePosition:
|
|
117
|
+
mousePosition: mousePosition,
|
|
115
118
|
isScreenReaderAnnouncementDisabled: true,
|
|
116
119
|
component: PanelSplitterTooltip,
|
|
117
120
|
shouldAlwaysFadeIn: true,
|
|
@@ -120,6 +123,13 @@ const MaybeTooltip = ({
|
|
|
120
123
|
}
|
|
121
124
|
return children;
|
|
122
125
|
};
|
|
126
|
+
|
|
127
|
+
// Browsers increase an RTL range input's value on ArrowLeft, so the arrow key pointing towards the
|
|
128
|
+
// panel's growth side widens it.
|
|
129
|
+
const rangeInputDirs = {
|
|
130
|
+
left: 'rtl',
|
|
131
|
+
right: 'ltr'
|
|
132
|
+
};
|
|
123
133
|
function getTextDirection(element) {
|
|
124
134
|
const {
|
|
125
135
|
direction
|
|
@@ -157,6 +167,10 @@ const PortaledPanelSplitter = ({
|
|
|
157
167
|
unregisterSplitter.current = element && prepareResize ? registerSplitter === null || registerSplitter === void 0 ? void 0 : registerSplitter(element) : undefined;
|
|
158
168
|
}, [prepareResize, registerSplitter]);
|
|
159
169
|
const labelId = useId();
|
|
170
|
+
const panelGrowthSide = useMemo(() => fg('platform-dst-panel-splitter-resize-direction') ? getPanelGrowthSide({
|
|
171
|
+
position,
|
|
172
|
+
textDirection: getTextDirection(panel)
|
|
173
|
+
}) : undefined, [position, panel]);
|
|
160
174
|
// Separate state used for the input range width to remove the UI's dependency on the "persisted" layout state value being updated
|
|
161
175
|
const [rangeInputValue, setRangeInputValue] = useState(panelWidth);
|
|
162
176
|
|
|
@@ -387,8 +401,8 @@ const PortaledPanelSplitter = ({
|
|
|
387
401
|
// Native range inputs would apply these keys to the placeholder bounds.
|
|
388
402
|
// Preserve the intent until the chunk provides the real bounds instead.
|
|
389
403
|
const current = (_pendingKeyboardWidth = pendingKeyboardWidth.current) !== null && _pendingKeyboardWidth !== void 0 ? _pendingKeyboardWidth : getPixelWidth(panel);
|
|
390
|
-
const
|
|
391
|
-
const increase = pendingKey === 'ArrowUp' || pendingKey === (
|
|
404
|
+
const doesArrowRightIncrease = panelGrowthSide ? panelGrowthSide === 'right' : getTextDirection(panel) === 'ltr';
|
|
405
|
+
const increase = pendingKey === 'ArrowUp' || pendingKey === (doesArrowRightIncrease ? 'ArrowRight' : 'ArrowLeft') || pendingKey === 'PageUp';
|
|
392
406
|
const step = pendingKey.startsWith('Page') ? Math.max(20, (max - min) / 10) : 20;
|
|
393
407
|
value = pendingKey === 'End' ? max : pendingKey === 'Home' ? min : current + (increase ? step : -step);
|
|
394
408
|
}
|
|
@@ -410,7 +424,7 @@ const PortaledPanelSplitter = ({
|
|
|
410
424
|
initialWidth: panelWidth,
|
|
411
425
|
finalWidth: value
|
|
412
426
|
});
|
|
413
|
-
}, [getResizeBounds, onCompleteResize, onResizeInternal, panelWidth, keyboardResizeManager, panel, prepareResize]);
|
|
427
|
+
}, [getResizeBounds, onCompleteResize, onResizeInternal, panelWidth, keyboardResizeManager, panel, prepareResize, panelGrowthSide]);
|
|
414
428
|
const handleSliderKeyDown = useCallback(event => {
|
|
415
429
|
if (prepareResize && !keyboardBoundsReady.current && ['Home', 'End', 'ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown', 'PageUp', 'PageDown'].includes(event.key)) {
|
|
416
430
|
event.preventDefault();
|
|
@@ -491,6 +505,7 @@ const PortaledPanelSplitter = ({
|
|
|
491
505
|
}, /*#__PURE__*/React.createElement(MaybeTooltip, {
|
|
492
506
|
tooltipContent: tooltipContent,
|
|
493
507
|
shortcut: shortcut,
|
|
508
|
+
mousePosition: panelGrowthSide !== null && panelGrowthSide !== void 0 ? panelGrowthSide : 'right',
|
|
494
509
|
testId: testId ? `${testId}-tooltip` : undefined
|
|
495
510
|
}, /*#__PURE__*/React.createElement("div", {
|
|
496
511
|
ref: setSplitterRef,
|
|
@@ -499,6 +514,7 @@ const PortaledPanelSplitter = ({
|
|
|
499
514
|
className: ax([grabAreaStyles.root, fg('platform-dst-tokens-finesse') && grabAreaStyles.rootFinesse])
|
|
500
515
|
}, /*#__PURE__*/React.createElement(VisuallyHidden, null, /*#__PURE__*/React.createElement("input", {
|
|
501
516
|
type: "range",
|
|
517
|
+
dir: panelGrowthSide ? rangeInputDirs[panelGrowthSide] : undefined,
|
|
502
518
|
value: rangeInputValue,
|
|
503
519
|
step: 20,
|
|
504
520
|
min: rangeInputBounds.min,
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
._1yt4u2gc{padding:var(--ds-space-100,8px)}
|
|
2
2
|
._zulp1b66{gap:var(--ds-space-050,4px)}
|
|
3
|
-
.
|
|
3
|
+
._zulpu2gc{gap:var(--ds-space-100,8px)}
|
|
4
|
+
._yyhy11wp{grid-column:3}._10fph9n0{justify-self:end}
|
|
5
|
+
._1bahh9n0{justify-content:end}
|
|
6
|
+
._1bsb14ik{width:var(--n_tnSideWidth,auto)}
|
|
7
|
+
._1e0c1bgi{display:contents}
|
|
8
|
+
._1e0c1cgg{display:var(--n_tnActionsDisplay,none)}
|
|
4
9
|
._1e0c1txw{display:flex}
|
|
5
10
|
._1e0cglyw{display:none}
|
|
11
|
+
._1ul98ox3{min-width:var(--n_tnEndMinWidth,2pc)}
|
|
6
12
|
._1ul9zwfg{min-width:2pc}
|
|
7
13
|
._4cvr1h6o{align-items:center}
|
|
8
|
-
|
|
9
|
-
@media (min-width:
|
|
14
|
+
._vchhusvi{box-sizing:border-box}
|
|
15
|
+
@media (min-width:48rem){._181n1txw{display:flex}._181nz5ha{display:var(--n_tnActionsDisplay,flex)}._1d2y1ris{min-width:max-content}._1d2yioy8{min-width:var(--n_tnEndMinWidth,max-content)}}
|
|
16
|
+
@media (min-width:64rem){._glte1ris{width:max-content}._15rip2n4{min-width:330px}._1gs5usvi{box-sizing:border-box}._ndwch9n0{justify-self:end}._gltexl30{width:var(--n_tnSideWidth,max-content)}._15riwpqv{min-width:var(--n_tnEndMinWidth,330px)}}
|
|
@@ -3,7 +3,10 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import "./top-nav-end.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import React, { useState } from 'react';
|
|
6
|
+
|
|
7
|
+
// Compiled supports the inherited container-layout widths outside @atlaskit/css's bounded values.
|
|
6
8
|
import { cx } from '@compiled/react';
|
|
9
|
+
import mergeRefs from '@atlaskit/ds-lib/merge-refs';
|
|
7
10
|
import { useLayoutEffect } from '@atlaskit/ds-lib/use-layout-effect';
|
|
8
11
|
import ShowMoreHorizontalIcon from '@atlaskit/icon/core/show-more-horizontal';
|
|
9
12
|
import { OpenLayerObserverNamespaceProvider } from '@atlaskit/layering/open-layer-observer-namespace-provider';
|
|
@@ -14,12 +17,18 @@ import { List } from '../../../components/list';
|
|
|
14
17
|
import { HasCustomThemeContext } from '../../top-nav-items/themed/has-custom-theme-context';
|
|
15
18
|
import { IconButton } from '../../top-nav-items/themed/icon-button';
|
|
16
19
|
import { openLayerObserverTopNavEndNamespace } from '../constants';
|
|
20
|
+
import { useTopNavBreakpoints } from './use-top-nav-breakpoints';
|
|
21
|
+
import { useTopNavEndFocus } from './use-top-nav-end-focus';
|
|
17
22
|
const containerStyles = {
|
|
18
|
-
|
|
19
|
-
|
|
23
|
+
focusScope: "_1e0c1bgi",
|
|
24
|
+
root: "_yyhy11wp _1e0c1txw _1bahh9n0 _1ul9zwfg",
|
|
25
|
+
withPersistentItems: "_zulpu2gc _4cvr1h6o",
|
|
26
|
+
container: "_1bsb14ik _1ul98ox3 _vchhusvi _10fph9n0 _1d2yioy8 _gltexl30 _15riwpqv",
|
|
27
|
+
viewport: "_1d2y1ris _glte1ris _15rip2n4 _1gs5usvi _ndwch9n0"
|
|
20
28
|
};
|
|
21
29
|
const listStyles = {
|
|
22
30
|
root: "_zulp1b66 _4cvr1h6o _1e0c1txw",
|
|
31
|
+
container: "_1e0c1cgg _181nz5ha",
|
|
23
32
|
hideOnSmallViewport: "_1e0cglyw _181n1txw",
|
|
24
33
|
popupContainer: "_1yt4u2gc"
|
|
25
34
|
};
|
|
@@ -38,23 +47,46 @@ export function TopNavEnd({
|
|
|
38
47
|
label = 'Actions',
|
|
39
48
|
showMoreButtonLabel = 'Show more'
|
|
40
49
|
}) {
|
|
50
|
+
var _breakpoints$belowSm;
|
|
51
|
+
const breakpoints = useTopNavBreakpoints();
|
|
52
|
+
const hasContainerBreakpoints = breakpoints != null;
|
|
41
53
|
const hasPersistentItems = fg('platform-dst-chat-panel-layout') && persistentItems != null;
|
|
42
54
|
const [isOpen, setIsOpen] = useState(false);
|
|
43
55
|
// Always setting to `false` for the initial render (will flip in an effect for mobile)
|
|
44
|
-
const [
|
|
56
|
+
const [isMobileViewport, setIsMobileViewport] = useState(false);
|
|
45
57
|
// Note: `query` is a stable value between renders
|
|
46
58
|
const query = useMediaQuery('below.sm', function onChange(event) {
|
|
47
|
-
|
|
48
|
-
//
|
|
49
|
-
//
|
|
50
|
-
|
|
59
|
+
setIsMobileViewport(event.matches);
|
|
60
|
+
// Container mode closes only when the effective layout changes below.
|
|
61
|
+
// Keep the existing viewport behavior outside the rollout / provider.
|
|
62
|
+
if (fg('platform-dst-chat-panel-layout')) {
|
|
63
|
+
if (!hasContainerBreakpoints) {
|
|
64
|
+
setIsOpen(false);
|
|
65
|
+
}
|
|
66
|
+
} else {
|
|
67
|
+
setIsOpen(false);
|
|
68
|
+
}
|
|
51
69
|
});
|
|
52
70
|
useLayoutEffect(() => {
|
|
53
71
|
var _query$matches;
|
|
54
72
|
// The default is `false`, and desktop will remain as `false` (no re-render).
|
|
55
73
|
// Mobile will flip from `false` to `true`.
|
|
56
|
-
|
|
74
|
+
setIsMobileViewport((_query$matches = query === null || query === void 0 ? void 0 : query.matches) !== null && _query$matches !== void 0 ? _query$matches : false);
|
|
57
75
|
}, [query]);
|
|
76
|
+
const isMobile = (_breakpoints$belowSm = breakpoints === null || breakpoints === void 0 ? void 0 : breakpoints.belowSm) !== null && _breakpoints$belowSm !== void 0 ? _breakpoints$belowSm : isMobileViewport;
|
|
77
|
+
const {
|
|
78
|
+
actionsRef,
|
|
79
|
+
triggerRef,
|
|
80
|
+
onFocusCapture
|
|
81
|
+
} = useTopNavEndFocus({
|
|
82
|
+
isMobile,
|
|
83
|
+
enabled: fg('platform-dst-chat-panel-layout')
|
|
84
|
+
});
|
|
85
|
+
useLayoutEffect(() => {
|
|
86
|
+
if (fg('platform-dst-chat-panel-layout') && hasContainerBreakpoints) {
|
|
87
|
+
setIsOpen(false);
|
|
88
|
+
}
|
|
89
|
+
}, [isMobile, hasContainerBreakpoints]);
|
|
58
90
|
|
|
59
91
|
// The shared provider also covers the mobile overflow popup itself. Keep the
|
|
60
92
|
// previous content-only namespace coverage when the layout gate is disabled.
|
|
@@ -62,10 +94,7 @@ export function TopNavEnd({
|
|
|
62
94
|
const actions = fg('platform-dst-chat-panel-layout') || fg('platform-dst-top-layer') ? children : /*#__PURE__*/React.createElement(OpenLayerObserverNamespaceProvider, {
|
|
63
95
|
namespace: openLayerObserverTopNavEndNamespace
|
|
64
96
|
}, children);
|
|
65
|
-
const
|
|
66
|
-
"aria-label": label,
|
|
67
|
-
className: ax([containerStyles.root, hasPersistentItems && containerStyles.withPersistentItems])
|
|
68
|
-
}, isMobile ? /*#__PURE__*/React.createElement(Popup, {
|
|
97
|
+
const regularActions = isMobile ? /*#__PURE__*/React.createElement(Popup, {
|
|
69
98
|
isOpen: isOpen,
|
|
70
99
|
onClose: () => setIsOpen(false)
|
|
71
100
|
// Top-layer popups need a role to register as a popup with the layer observer.
|
|
@@ -77,9 +106,11 @@ export function TopNavEnd({
|
|
|
77
106
|
content: () => /*#__PURE__*/React.createElement(HasCustomThemeContext.Provider, {
|
|
78
107
|
value: false
|
|
79
108
|
}, /*#__PURE__*/React.createElement(List, {
|
|
109
|
+
ref: actionsRef,
|
|
80
110
|
xcss: cx(listStyles.root, listStyles.popupContainer)
|
|
81
111
|
}, actions)),
|
|
82
112
|
trigger: triggerProps => /*#__PURE__*/React.createElement(IconButton, _extends({}, triggerProps, {
|
|
113
|
+
ref: fg('platform-dst-chat-panel-layout') ? mergeRefs([triggerProps.ref, triggerRef]) : triggerProps.ref,
|
|
83
114
|
label: showMoreButtonLabel,
|
|
84
115
|
isSelected: isOpen,
|
|
85
116
|
onClick: () => setIsOpen(!isOpen),
|
|
@@ -87,8 +118,16 @@ export function TopNavEnd({
|
|
|
87
118
|
isTooltipDisabled: false
|
|
88
119
|
}))
|
|
89
120
|
}) : /*#__PURE__*/React.createElement(List, {
|
|
90
|
-
|
|
91
|
-
|
|
121
|
+
ref: actionsRef,
|
|
122
|
+
xcss: cx(listStyles.root, fg('platform-dst-chat-panel-layout') ? listStyles.container : listStyles.hideOnSmallViewport)
|
|
123
|
+
}, actions);
|
|
124
|
+
const content = /*#__PURE__*/React.createElement("nav", {
|
|
125
|
+
"aria-label": label,
|
|
126
|
+
className: ax([containerStyles.root, fg('platform-dst-chat-panel-layout') ? containerStyles.container : containerStyles.viewport, hasPersistentItems && containerStyles.withPersistentItems])
|
|
127
|
+
}, fg('platform-dst-chat-panel-layout') ? /*#__PURE__*/React.createElement("div", {
|
|
128
|
+
onFocusCapture: onFocusCapture,
|
|
129
|
+
className: ax([containerStyles.focusScope])
|
|
130
|
+
}, regularActions) : regularActions, hasPersistentItems && persistentItems);
|
|
92
131
|
return fg('platform-dst-chat-panel-layout') && !fg('platform-dst-top-layer') ? /*#__PURE__*/React.createElement(OpenLayerObserverNamespaceProvider, {
|
|
93
132
|
namespace: openLayerObserverTopNavEndNamespace
|
|
94
133
|
}, content) : content;
|
|
@@ -2,5 +2,10 @@
|
|
|
2
2
|
._yyhycs5v{grid-column:2}._1bahh9n0{justify-content:end}
|
|
3
3
|
._1bsb1osq{width:100%}
|
|
4
4
|
._1e0c1txw{display:flex}
|
|
5
|
+
._1e0cqgwa{display:var(--n_tnMiddleDisplay,flex)}
|
|
6
|
+
._1eji1ris{grid-auto-columns:max-content}
|
|
5
7
|
._4cvr1h6o{align-items:center}
|
|
6
|
-
|
|
8
|
+
._6a6zh9n0{justify-items:end}
|
|
9
|
+
._wij21bp4{grid-auto-flow:column}
|
|
10
|
+
._yv0e15b0{grid-template-columns:minmax(min-content,780px)}
|
|
11
|
+
@media (min-width:48rem){._181n11p5{display:grid}._1j8b15b0{grid-template-columns:minmax(min-content,780px)}._lagd1bp4{grid-auto-flow:column}._1t4c1ris{grid-auto-columns:max-content}._12e8h9n0{justify-items:end}._181n1pe1{display:var(--n_tnMiddleDisplay,grid)}}
|
|
@@ -6,7 +6,9 @@ import { OpenLayerObserverNamespaceProvider } from '@atlaskit/layering/open-laye
|
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
7
|
import { openLayerObserverTopNavMiddleNamespace } from '../constants';
|
|
8
8
|
const styles = {
|
|
9
|
-
root: "_zulpu2gc _yyhycs5v _1bsb1osq _4cvr1h6o _1e0c1txw _1bahh9n0
|
|
9
|
+
root: "_zulpu2gc _yyhycs5v _1bsb1osq _4cvr1h6o _1e0c1txw _1bahh9n0",
|
|
10
|
+
container: "_1e0cqgwa _yv0e15b0 _wij21bp4 _1eji1ris _6a6zh9n0 _181n1pe1",
|
|
11
|
+
viewport: "_181n11p5 _1j8b15b0 _lagd1bp4 _1t4c1ris _12e8h9n0"
|
|
10
12
|
};
|
|
11
13
|
|
|
12
14
|
/**
|
|
@@ -21,7 +23,7 @@ export function TopNavMiddle({
|
|
|
21
23
|
children
|
|
22
24
|
}) {
|
|
23
25
|
return /*#__PURE__*/React.createElement("div", {
|
|
24
|
-
className: ax([styles.root])
|
|
26
|
+
className: ax([styles.root, fg('platform-dst-chat-panel-layout') ? styles.container : styles.viewport])
|
|
25
27
|
}, fg('platform-dst-top-layer') ? children : /*#__PURE__*/React.createElement(OpenLayerObserverNamespaceProvider, {
|
|
26
28
|
namespace: openLayerObserverTopNavMiddleNamespace
|
|
27
29
|
}, children));
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
._zulp1b66{gap:var(--ds-space-050,4px)}
|
|
2
|
-
._yyhykb7n{grid-column:1}.
|
|
2
|
+
._yyhykb7n{grid-column:1}._1bsb14ik{width:var(--n_tnSideWidth,auto)}
|
|
3
|
+
._1e0c1txw{display:flex}
|
|
4
|
+
._1ul91wqq{min-width:var(--n_tnStartMinWidth,0)}
|
|
3
5
|
._4cvr1h6o{align-items:center}
|
|
4
6
|
._4t3i1osq{height:100%}
|
|
5
|
-
|
|
7
|
+
._vchhusvi{box-sizing:border-box}
|
|
8
|
+
@media (min-width:64rem){._glte1ris{width:max-content}._15rip2n4{min-width:330px}._1gs5usvi{box-sizing:border-box}._gltexl30{width:var(--n_tnSideWidth,max-content)}._15ritp0n{min-width:var(--n_tnStartMinWidth,330px)}}
|
|
@@ -2,13 +2,17 @@
|
|
|
2
2
|
import "./top-nav-start.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { useContext, useEffect, useRef } from 'react';
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
5
6
|
import { TopNavStartAttachRef } from '../../../context/top-nav-start/top-nav-start-attach-ref';
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* Styles for the TopNavStart element.
|
|
9
10
|
*/
|
|
11
|
+
|
|
10
12
|
const innerStyles = {
|
|
11
|
-
root: "_zulp1b66 _yyhykb7n _4t3i1osq _4cvr1h6o _1e0c1txw
|
|
13
|
+
root: "_zulp1b66 _yyhykb7n _4t3i1osq _4cvr1h6o _1e0c1txw",
|
|
14
|
+
container: "_1bsb14ik _1ul91wqq _vchhusvi _gltexl30 _15ritp0n",
|
|
15
|
+
viewport: "_glte1ris _15rip2n4 _1gs5usvi"
|
|
12
16
|
};
|
|
13
17
|
/**
|
|
14
18
|
* __TopNavStart__
|
|
@@ -31,6 +35,6 @@ export function TopNavStart({
|
|
|
31
35
|
return /*#__PURE__*/React.createElement("div", {
|
|
32
36
|
ref: elementRef,
|
|
33
37
|
"data-testid": testId,
|
|
34
|
-
className: ax([innerStyles.root])
|
|
38
|
+
className: ax([innerStyles.root, fg('platform-dst-chat-panel-layout') ? innerStyles.container : innerStyles.viewport])
|
|
35
39
|
}, sideNavToggleButton, children);
|
|
36
40
|
}
|
|
@@ -1,14 +1,39 @@
|
|
|
1
1
|
._nd5l8cbt{grid-area:top-bar}
|
|
2
2
|
._zulpu2gc{gap:var(--ds-space-100,8px)}
|
|
3
|
+
._18zridpf{padding-inline:0}
|
|
3
4
|
._18zrutpp{padding-inline:var(--ds-space-150,9pt)}
|
|
4
|
-
._179ria51{border-block-end:var(--ds-border-width,1px) solid var(--ds-border,#0b120e24)}.
|
|
5
|
+
._179ria51{border-block-end:var(--ds-border-width,1px) solid var(--ds-border,#0b120e24)}._121jglyw{--n_tnLogoDisplay:none}
|
|
6
|
+
._152t1nws{inset-block-start:var(--n_bnrM,0)}
|
|
7
|
+
._17hf1ris{--n_tnStartMinWidth:max-content}
|
|
8
|
+
._17sxglyw{--n_tnActionsDisplay:none}
|
|
9
|
+
._1bsb1j6v{width:1rem}
|
|
5
10
|
._1e0c11p5{display:grid}
|
|
11
|
+
._1e0c1ule{display:block}
|
|
12
|
+
._1f38jrq2{container-name:navigation-top-nav}
|
|
13
|
+
._1gd11txw{--n_tnSearchIconDisplay:flex}
|
|
14
|
+
._1oae1txw{--n_tnMiddleDisplay:flex}
|
|
6
15
|
._1pbyegat{z-index:4}
|
|
16
|
+
._1ul9idpf{min-width:0}
|
|
17
|
+
._1v3t1vi7{--n_tnEndMinWidth:32px}
|
|
18
|
+
._3um015vq{visibility:hidden}
|
|
19
|
+
._40201vi7{--n_tnSearchWidth:32px}
|
|
7
20
|
._4cvr1h6o{align-items:center}
|
|
21
|
+
._4gtwglyw{--n_tnSearchDisplay:none}
|
|
8
22
|
._4t3i1dgc{height:var(--n_tNvM)}
|
|
23
|
+
._4t3i1osq{height:100%}
|
|
24
|
+
._4t3iidpf{height:0}
|
|
25
|
+
._7cca15wb{container-type:inline-size}
|
|
26
|
+
._andq1wug{--n_tnSideWidth:auto}
|
|
9
27
|
._bfhkvuon{background-color:var(--ds-surface,#fff)}
|
|
10
28
|
._d6vu1bgi >span[data-ep-placeholder-id=top_navigation_skeleton]{display:contents}
|
|
29
|
+
._dv901txw{--n_tnIconDisplay:flex}
|
|
11
30
|
._kqsw1if8{position:sticky}
|
|
31
|
+
._kqswstnw{position:absolute}
|
|
32
|
+
._lcxvglyw{pointer-events:none}
|
|
12
33
|
._vchhusvi{box-sizing:border-box}
|
|
34
|
+
._yv0e14iv{grid-template-columns:auto minmax(0,1fr) auto}
|
|
13
35
|
._yv0e1mfv{grid-template-columns:auto 1fr auto}
|
|
36
|
+
@container navigation-top-nav (min-width: 30rem){._1vdu11p5{--n_tnSearchDisplay:grid}._tyr51osq{--n_tnSearchWidth:100%}._t7c0glyw{--n_tnSearchIconDisplay:none}}
|
|
37
|
+
@container navigation-top-nav (min-width: 48rem){._f4az18ax{grid-template-columns:1fr minmax(min-content,max-content) 1fr}._1nd111p5{--n_tnMiddleDisplay:grid}._1py31ris{--n_tnEndMinWidth:max-content}._orr21txw{--n_tnActionsDisplay:flex}}
|
|
38
|
+
@container navigation-top-nav (min-width: 64rem){._gaza1ris{--n_tnSideWidth:max-content}._e5ixp2n4{--n_tnStartMinWidth:330px}._8hhxp2n4{--n_tnEndMinWidth:330px}._pdk61txw{--n_tnLogoDisplay:flex}._1x9fglyw{--n_tnIconDisplay:none}}
|
|
14
39
|
@media (min-width:48rem){._1j8b18ax{grid-template-columns:1fr minmax(min-content,max-content) 1fr}}
|