@atlaskit/navigation-system 11.7.5 → 11.7.7
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 +25 -0
- package/dist/cjs/components/skip-links/skip-links-container.compiled.css +8 -1
- package/dist/cjs/components/skip-links/skip-links-container.js +22 -14
- package/dist/cjs/components/skip-links/skip-links-content.compiled.css +11 -0
- package/dist/cjs/components/skip-links/skip-links-content.js +32 -0
- package/dist/cjs/components/skip-links/skip-links-popup.compiled.css +1 -13
- package/dist/cjs/components/skip-links/skip-links-popup.js +9 -17
- package/dist/cjs/ui/page-layout/chat-panel.js +3 -3
- package/dist/cjs/ui/page-layout/local-panel-surface.compiled.css +3 -1
- package/dist/cjs/ui/page-layout/local-panel-surface.js +4 -3
- package/dist/cjs/ui/page-layout/panel-layout-shell.compiled.css +1 -0
- package/dist/cjs/ui/page-layout/panel-layout-shell.js +7 -1
- package/dist/cjs/ui/page-layout/panel-splitter/chat-panel-panel-splitter-id.js +7 -0
- package/dist/cjs/ui/page-layout/panel-splitter/panel-splitter.compiled.css +1 -0
- package/dist/cjs/ui/page-layout/panel-splitter/panel-splitter.js +4 -2
- package/dist/es2019/components/skip-links/skip-links-container.compiled.css +8 -1
- package/dist/es2019/components/skip-links/skip-links-container.js +22 -14
- package/dist/es2019/components/skip-links/skip-links-content.compiled.css +11 -0
- package/dist/es2019/components/skip-links/skip-links-content.js +25 -0
- package/dist/es2019/components/skip-links/skip-links-popup.compiled.css +1 -13
- package/dist/es2019/components/skip-links/skip-links-popup.js +9 -17
- package/dist/es2019/ui/page-layout/chat-panel.js +1 -1
- package/dist/es2019/ui/page-layout/local-panel-surface.compiled.css +3 -1
- package/dist/es2019/ui/page-layout/local-panel-surface.js +4 -3
- package/dist/es2019/ui/page-layout/panel-layout-shell.compiled.css +1 -0
- package/dist/es2019/ui/page-layout/panel-layout-shell.js +7 -1
- package/dist/es2019/ui/page-layout/panel-splitter/chat-panel-panel-splitter-id.js +1 -0
- package/dist/es2019/ui/page-layout/panel-splitter/panel-splitter.compiled.css +1 -0
- package/dist/es2019/ui/page-layout/panel-splitter/panel-splitter.js +4 -2
- package/dist/esm/components/skip-links/skip-links-container.compiled.css +8 -1
- package/dist/esm/components/skip-links/skip-links-container.js +23 -15
- package/dist/esm/components/skip-links/skip-links-content.compiled.css +11 -0
- package/dist/esm/components/skip-links/skip-links-content.js +24 -0
- package/dist/esm/components/skip-links/skip-links-popup.compiled.css +1 -13
- package/dist/esm/components/skip-links/skip-links-popup.js +9 -17
- package/dist/esm/ui/page-layout/chat-panel.js +1 -1
- package/dist/esm/ui/page-layout/local-panel-surface.compiled.css +3 -1
- package/dist/esm/ui/page-layout/local-panel-surface.js +4 -3
- package/dist/esm/ui/page-layout/panel-layout-shell.compiled.css +1 -0
- package/dist/esm/ui/page-layout/panel-layout-shell.js +7 -1
- package/dist/esm/ui/page-layout/panel-splitter/chat-panel-panel-splitter-id.js +1 -0
- package/dist/esm/ui/page-layout/panel-splitter/panel-splitter.compiled.css +1 -0
- package/dist/esm/ui/page-layout/panel-splitter/panel-splitter.js +4 -2
- package/dist/types/components/skip-links/skip-links-container.d.ts +1 -1
- package/dist/types/components/skip-links/skip-links-content.d.ts +11 -0
- package/dist/types/components/skip-links/skip-links-popup.d.ts +1 -1
- package/dist/types/ui/page-layout/panel-splitter/chat-panel-panel-splitter-id.d.ts +1 -0
- package/package.json +10 -9
|
@@ -10,11 +10,7 @@ import mergeRefs from '@atlaskit/ds-lib/merge-refs';
|
|
|
10
10
|
import { Popup } from '@atlaskit/popup/popup';
|
|
11
11
|
import { focusElement } from './focus-element';
|
|
12
12
|
import { SkipLink } from './skip-link';
|
|
13
|
-
|
|
14
|
-
root: "_1rjcu2gc _18zrpxbi _1e0c1txw _2lx21bp4 _1pbyjh3g",
|
|
15
|
-
skipLinkList: "_1e0c1txw _2lx21bp4 _1x8w11lx _2mzuglyw _1pfhze3t _bozgze3t",
|
|
16
|
-
label: "_11c8i4vh _1rjcu2gc _syazazsu"
|
|
17
|
-
};
|
|
13
|
+
import { SkipLinksContent } from './skip-links-content';
|
|
18
14
|
const triggerStyles = {
|
|
19
15
|
root: "_2rko12b0 _1dqoglyw _kqsw1n9t _1e02utpp _152tutpp _1pby1mrw _tzy4idpf _bfhk1bhr _4ojojh3g _c8j0kb7n",
|
|
20
16
|
isOpen: "_tzy4idpf _t9ecz6y5"
|
|
@@ -22,7 +18,7 @@ const triggerStyles = {
|
|
|
22
18
|
const popupOffset = [0, 0];
|
|
23
19
|
|
|
24
20
|
/**
|
|
25
|
-
* Skip links shown behind `
|
|
21
|
+
* Skip links shown behind `platform_dst_nav4_skip_link_menu_placeholder`: a single focus-revealed
|
|
26
22
|
* control opens a dialog listing skip targets.
|
|
27
23
|
*/
|
|
28
24
|
export function SkipLinksPopup({
|
|
@@ -75,14 +71,10 @@ export function SkipLinksPopup({
|
|
|
75
71
|
titleId: titleId,
|
|
76
72
|
testId: testId ? `${testId}--skip-links-container` : undefined,
|
|
77
73
|
offset: popupOffset,
|
|
78
|
-
content: () => /*#__PURE__*/React.createElement(
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
id: titleId,
|
|
83
|
-
className: ax([contentStyles.label])
|
|
84
|
-
}, title), /*#__PURE__*/React.createElement("ol", {
|
|
85
|
-
className: ax([contentStyles.skipLinkList])
|
|
74
|
+
content: () => /*#__PURE__*/React.createElement(SkipLinksContent, {
|
|
75
|
+
label: title,
|
|
76
|
+
titleId: titleId,
|
|
77
|
+
testId: testId
|
|
86
78
|
}, links.map(({
|
|
87
79
|
id,
|
|
88
80
|
label,
|
|
@@ -92,8 +84,8 @@ export function SkipLinksPopup({
|
|
|
92
84
|
id: id
|
|
93
85
|
/**
|
|
94
86
|
* The popup always owns the navigation effect under the
|
|
95
|
-
* `platform_dst_nav4_skip_link_a11y_1` gate
|
|
96
|
-
*
|
|
87
|
+
* `platform_dst_nav4_skip_link_a11y_1` gate, enabled
|
|
88
|
+
* alongside the menu placeholder gate. It first closes itself
|
|
97
89
|
* synchronously so its focus lock is released, then either:
|
|
98
90
|
*
|
|
99
91
|
* - delegates to the consumer's `navigate` (e.g. SideNav
|
|
@@ -115,7 +107,7 @@ export function SkipLinksPopup({
|
|
|
115
107
|
focusElement(target);
|
|
116
108
|
}
|
|
117
109
|
}
|
|
118
|
-
}, label)))
|
|
110
|
+
}, label))),
|
|
119
111
|
trigger: triggerProps => /*#__PURE__*/React.createElement("div", {
|
|
120
112
|
className: ax([triggerStyles.root, isOpen && triggerStyles.isOpen])
|
|
121
113
|
}, /*#__PURE__*/React.createElement(Button, _extends({}, triggerProps, {
|
|
@@ -7,6 +7,7 @@ import { bind } from 'bind-event-listener';
|
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
8
|
import { useSkipLinkInternal } from '../../context/skip-links/use-skip-link-internal';
|
|
9
9
|
import { chatPanelLiveWidthVar, chatPanelVar, defaultMainMinWidth, localSlotLayers, mainMinimumWidthVar } from './constants';
|
|
10
|
+
import { chatPanelPanelSplitterId } from './panel-splitter/chat-panel-panel-splitter-id';
|
|
10
11
|
import { convertResizeBoundToPixels } from './panel-splitter/convert-resize-bound-to-pixels';
|
|
11
12
|
import { PanelSplitterProvider } from './panel-splitter/provider';
|
|
12
13
|
import { resolveLayoutWidth } from './resolve-layout-width';
|
|
@@ -15,7 +16,6 @@ import { useLayoutAreaSizing } from './use-layout-area-sizing';
|
|
|
15
16
|
import { useLayoutId } from './use-layout-id';
|
|
16
17
|
import { useResizingWidthCssVarOnRootElement } from './use-resizing-width-css-var-on-root-element';
|
|
17
18
|
import { useSafeDefaultWidth } from './use-safe-default-width';
|
|
18
|
-
const chatPanelPanelSplitterId = Symbol('ChatPanel PanelSplitter');
|
|
19
19
|
const panelSplitterResizingVar = '--n_cPnlRsz';
|
|
20
20
|
const chatPanelOverlayWidthVar = '--n_cPnlOverlayW';
|
|
21
21
|
const fallbackDefaultWidth = 400;
|
|
@@ -21,7 +21,9 @@
|
|
|
21
21
|
._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
|
|
22
22
|
._bfhk1g1j{background-color:var(--p_lclPnlSsrBackground,var(--ds-surface-overlay,#fff))}
|
|
23
23
|
._bfhkvuon{background-color:var(--ds-surface,#fff)}
|
|
24
|
+
._ifwb1uuk{--p_lclPnlMotionW:var(--p_lclPnlCompactW)}
|
|
24
25
|
._ju25dn4k{animation-delay:var(--ds-duration-xshort,.1s)}
|
|
25
26
|
._kqsw1if8{position:sticky}
|
|
26
27
|
._vchhusvi{box-sizing:border-box}
|
|
27
|
-
@media (prefers-reduced-motion:no-preference){._k1af14vv{animation:var(--ds-panel-exit-right,.2s cubic-bezier(0,.4,0,1) SlideOut100PercentRight)}[dir=rtl] ._105aeydr{animation:var(--ds-panel-exit-left,.2s cubic-bezier(0,.4,0,1) SlideOut100PercentLeft)}.
|
|
28
|
+
@media (prefers-reduced-motion:no-preference){._15etqc86{width:min(90cqw,var(--p_lclPnlMotionW))}._k1af14vv{animation:var(--ds-panel-exit-right,.2s cubic-bezier(0,.4,0,1) SlideOut100PercentRight)}._1lh81gzg{grid-area:main}[dir=rtl] ._105aeydr{animation:var(--ds-panel-exit-left,.2s cubic-bezier(0,.4,0,1) SlideOut100PercentLeft)}._15et1c5w{width:var(--p_lclPnlRsz,var(--p_lclPnlW))}@starting-style{._12d81gzg{grid-area:main}}._k1af1nn1{animation:var(--ds-panel-enter-right,.25s cubic-bezier(0,.4,0,1) SlideIn100PercentRight)}[dir=rtl] ._105abamb{animation:var(--ds-panel-enter-left,.25s cubic-bezier(0,.4,0,1) SlideIn100PercentLeft)}._10t81q8v{transition-property:grid-area}._xrrp147i{transition-duration:var(--ds-duration-instant,0ms)}._1wsa1ign{transition-delay:var(--ds-duration-short,.15s)}._1vrh1a5r{transition-behavior:allow-discrete}}
|
|
29
|
+
@media (min-width:64rem){._1c23i77x{--p_lclPnlMotionW:var(--p_lclPnlTrackW)}}
|
|
@@ -28,8 +28,9 @@ const styles = {
|
|
|
28
28
|
panelScrollContainer: "_1reo1wug _18m91wug _4t3i1osq",
|
|
29
29
|
border: "_191wglyw _16qs130s",
|
|
30
30
|
managedInlineBorder: "_191wia51 _16qsglyw",
|
|
31
|
-
entering: "_k1af1nn1
|
|
32
|
-
|
|
31
|
+
entering: "_k1af1nn1 _12d81gzg _10t81q8v _xrrp147i _1wsa1ign _1vrh1a5r _15et1c5w _105abamb",
|
|
32
|
+
motionUnmeasured: "_ifwb1uuk _15etqc86 _1c23i77x",
|
|
33
|
+
exiting: "_k1af14vv _1lh81gzg _15et1c5w _105aeydr",
|
|
33
34
|
contentEntering: "_y44v1mph",
|
|
34
35
|
contentExiting: "_y44vf1qi",
|
|
35
36
|
contentChangeContainer: "_4t3i1osq"
|
|
@@ -164,7 +165,7 @@ export function LocalPanelSurface({
|
|
|
164
165
|
[localPanelVar]: `${renderedWidth}px`
|
|
165
166
|
},
|
|
166
167
|
ref: mergedRef,
|
|
167
|
-
className: ax([isMotionUpliftEnabled && state === 'entering' && styles.entering, isMotionUpliftEnabled && state === 'exiting' && styles.exiting, styles.panelWrapper, styles.border, !managedSizing && styles.unmeasured, !managedSizing && fg('platform-dst-chat-panel-layout') && styles.refinedUnmeasured, (managedSizing === null || managedSizing === void 0 ? void 0 : managedSizing.mode) === 'inline' && styles.managedInline, (managedSizing === null || managedSizing === void 0 ? void 0 : managedSizing.mode) === 'overlay' && styles.managedOverlay, (managedSizing === null || managedSizing === void 0 ? void 0 : managedSizing.mode) === 'inline' && styles.managedInlineBorder])
|
|
168
|
+
className: ax([isMotionUpliftEnabled && state === 'entering' && styles.entering, isMotionUpliftEnabled && state === 'exiting' && styles.exiting, isMotionUpliftEnabled && (state === 'entering' || state === 'exiting') && !managedSizing && styles.motionUnmeasured, styles.panelWrapper, styles.border, !managedSizing && styles.unmeasured, !managedSizing && fg('platform-dst-chat-panel-layout') && styles.refinedUnmeasured, (managedSizing === null || managedSizing === void 0 ? void 0 : managedSizing.mode) === 'inline' && styles.managedInline, (managedSizing === null || managedSizing === void 0 ? void 0 : managedSizing.mode) === 'overlay' && styles.managedOverlay, (managedSizing === null || managedSizing === void 0 ? void 0 : managedSizing.mode) === 'inline' && styles.managedInlineBorder])
|
|
168
169
|
}, /*#__PURE__*/React.createElement(PanelSplitterProvider, {
|
|
169
170
|
panelId: localPanelSplitterId,
|
|
170
171
|
panelRef: ref,
|
|
@@ -25,4 +25,5 @@
|
|
|
25
25
|
._vlegi47z._vlegi47z{grid-template-columns:minmax(0,1fr)}
|
|
26
26
|
._yv0eggl6{grid-template-columns:var(--p_lclPnlSsrColumns,minmax(0,1fr))}
|
|
27
27
|
._yv0ei47z{grid-template-columns:minmax(0,1fr)}
|
|
28
|
+
@media (prefers-reduced-motion:no-preference){._1cro1qv1{animation-name:kv5tn2k}._wqfn147i{animation-duration:var(--ds-duration-instant,0ms)}._sl5p1ign{animation-delay:var(--ds-duration-short,.15s)}._dqw8eoah{animation-fill-mode:backwards}@keyframes kv5tn2k{0%{grid-template-areas:"main";grid-template-columns:minmax(0,1fr);grid-template-rows:1fr}}}
|
|
28
29
|
@media (min-width:64rem){._peezi77x{--p_lclPnlSsrPreferredW:var(--p_lclPnlTrackW)}._1tg31owj{--p_lclPnlSsrDefaultW:var(--p_lclPnlDefaultW)}}
|
|
@@ -11,7 +11,13 @@ import { MainMinWidthContext } from './main-min-width-context';
|
|
|
11
11
|
const localPanelTrackWidthVar = '--p_lclPnlTrackW';
|
|
12
12
|
const localPanelResizingVar = '--p_lclPnlRsz';
|
|
13
13
|
const localPanelMinWidthVar = '--p_lclPnlMinW';
|
|
14
|
+
|
|
15
|
+
// Holds the single-column (closed) grid while the entering panel overlays `main`. With `backwards` fill
|
|
16
|
+
// the `from` frame applies for the animation delay, then the real inline grid takes over. An animation
|
|
17
|
+
// (rather than a transition) only starts when the class is added, so live resizing is never delayed.
|
|
18
|
+
const holdClosedGrid = null;
|
|
14
19
|
const styles = {
|
|
20
|
+
panelEntering: "_1cro1qv1 _wqfn147i _sl5p1ign _dqw8eoah",
|
|
15
21
|
container: "_1f38177r _7cca15wb _4t3i1osq _1bsb1osq",
|
|
16
22
|
layout: "_1reo1wug _18m91wug _1e0c11p5 _7cca15wb _1lmc1m6a _yv0ei47z _2z05hkll _4t3i1osq _1bsb1osq",
|
|
17
23
|
mainContent: "_nd5l1gzg _1reo1wug _18m91wug _1e0c1txw _4t3i1osq _19121cl4",
|
|
@@ -78,7 +84,7 @@ export function PanelLayoutShell({
|
|
|
78
84
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
79
85
|
'--p_lclPnlCompactDefaultW': `${compactDefaultPanelWidth}px`
|
|
80
86
|
},
|
|
81
|
-
className: ax([styles.layout, mode === undefined && isPanelOpen && styles.unmeasured, shouldClipOverflow && styles.panelUplift, mode === 'inline' && styles.managedInline, mode === 'overlay' && styles.managedOverlay, !isPanelOpen && styles.panelClosed])
|
|
87
|
+
className: ax([styles.layout, mode === undefined && isPanelOpen && styles.unmeasured, shouldClipOverflow && styles.panelUplift, mode === 'inline' && styles.managedInline, shouldClipOverflow && isPanelOpen && (mode === undefined || mode === 'inline') && styles.panelEntering, mode === 'overlay' && styles.managedOverlay, !isPanelOpen && styles.panelClosed])
|
|
82
88
|
}, /*#__PURE__*/React.createElement("div", {
|
|
83
89
|
className: ax([styles.mainContent])
|
|
84
90
|
}, children), panel));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const chatPanelPanelSplitterId = Symbol('ChatPanel PanelSplitter');
|
|
@@ -22,6 +22,7 @@ import { requestClosePopovers } from '@atlaskit/top-layer/page-surface/request-c
|
|
|
22
22
|
import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
23
23
|
import { contentInsetBlockStart } from '../constants';
|
|
24
24
|
import { LayoutAreaSizingContext } from '../layout-area-sizing-context';
|
|
25
|
+
import { chatPanelPanelSplitterId } from './chat-panel-panel-splitter-id';
|
|
25
26
|
import { convertResizeBoundToPixels } from './convert-resize-bound-to-pixels';
|
|
26
27
|
import { getPanelGrowthSide } from './get-panel-growth-side';
|
|
27
28
|
import { getPercentageWithinPixelBounds } from './get-percentage-within-pixel-bounds';
|
|
@@ -49,7 +50,8 @@ const grabAreaStyles = {
|
|
|
49
50
|
rootFinesse: "_vp7g1ihb _30l31ihb _9h8hq98m"
|
|
50
51
|
};
|
|
51
52
|
const lineStyles = {
|
|
52
|
-
root: "_kqswstnw _1e0c1ule _1bsb1l7b _4t3i1osq _syaz1kw7 _bfhk1r31 _1e021v6z"
|
|
53
|
+
root: "_kqswstnw _1e0c1ule _1bsb1l7b _4t3i1osq _syaz1kw7 _bfhk1r31 _1e021v6z",
|
|
54
|
+
chatPanel: "_1e02rdoj"
|
|
53
55
|
};
|
|
54
56
|
const tooltipStyles = {
|
|
55
57
|
root: "_ahbq196n _1bsb1ris",
|
|
@@ -539,7 +541,7 @@ const PortaledPanelSplitter = ({
|
|
|
539
541
|
}), /*#__PURE__*/React.createElement("span", {
|
|
540
542
|
id: labelId
|
|
541
543
|
}, label)), /*#__PURE__*/React.createElement("span", {
|
|
542
|
-
className: ax([lineStyles.root])
|
|
544
|
+
className: ax([lineStyles.root, panelId === chatPanelPanelSplitterId && lineStyles.chatPanel])
|
|
543
545
|
})))), portal);
|
|
544
546
|
};
|
|
545
547
|
/**
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
2
|
+
._2rko1mok{border-radius:var(--ds-radius-large,8px)}
|
|
2
3
|
._zulp1b66{gap:var(--ds-space-050,4px)}
|
|
4
|
+
._zulpze3t{gap:var(--ds-space-0,0)}
|
|
3
5
|
._18zrutpp{padding-inline:var(--ds-space-150,9pt)}
|
|
4
|
-
.
|
|
6
|
+
._18zrze3t{padding-inline:var(--ds-space-0,0)}
|
|
7
|
+
._1rjcutpp{padding-block:var(--ds-space-150,9pt)}
|
|
8
|
+
._1rjcze3t{padding-block:var(--ds-space-0,0)}._152tutpp{inset-block-start:var(--ds-space-150,9pt)}
|
|
9
|
+
._152tv47k{inset-block-start:var(--ds-space-250,20px)}
|
|
5
10
|
._16qs130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}
|
|
11
|
+
._1e02utpp{inset-inline-start:var(--ds-space-150,9pt)}
|
|
6
12
|
._1e02v47k{inset-inline-start:var(--ds-space-250,20px)}
|
|
7
13
|
._1e0c1txw{display:flex}
|
|
8
14
|
._1pby1mrw{z-index:-1}
|
|
@@ -14,6 +20,7 @@
|
|
|
14
20
|
._bozgze3t{padding-inline-start:var(--ds-space-0,0)}
|
|
15
21
|
._kqsw1n9t{position:fixed}
|
|
16
22
|
._lcxvglyw{pointer-events:none}
|
|
23
|
+
._syazi7uo{color:var(--ds-text,#292a2e)}
|
|
17
24
|
._tzy4idpf{opacity:0}
|
|
18
25
|
._18eu1wug:focus-within{pointer-events:auto}
|
|
19
26
|
._1digjh3g:focus-within{z-index:calc(infinity)}
|
|
@@ -6,13 +6,15 @@ import * as React from 'react';
|
|
|
6
6
|
import { ax, ix } from "@compiled/react/runtime";
|
|
7
7
|
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; }
|
|
8
8
|
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; }
|
|
9
|
-
import { useMemo } from 'react';
|
|
9
|
+
import { Fragment, useMemo } from 'react';
|
|
10
10
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
11
11
|
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
12
12
|
import { SkipLink } from './skip-link';
|
|
13
|
+
import { SkipLinksContent } from './skip-links-content';
|
|
13
14
|
import { SkipLinksPopup } from './skip-links-popup';
|
|
14
15
|
var styles = {
|
|
15
16
|
root: "_zulp1b66 _2rko12b0 _1rjcutpp _18zrutpp _1e0c1txw _2lx21bp4 _kqsw1n9t _1e02v47k _152tv47k _bfhk1bhr _16qs130s _1pby1mrw _tzy4idpf _lcxvglyw _1digjh3g _1mygkb7n _18eu1wug",
|
|
17
|
+
menuAppearance: "_zulpze3t _2rko1mok _1rjcze3t _18zrze3t _syazi7uo _1e02utpp _152tutpp",
|
|
16
18
|
skipLinkList: "_zulp1b66 _1e0c1txw _2lx21bp4 _1x8w11lx _2mzuglyw _1pfhze3t _bozgze3t"
|
|
17
19
|
};
|
|
18
20
|
|
|
@@ -84,7 +86,7 @@ var isOnlyWhitespaceRegex = /^\s*$/;
|
|
|
84
86
|
* The label is used as the heading of the skip links container. If the provided label is a string
|
|
85
87
|
* comprised only of only whitespace (e.g. '' or ' '), the skip link heading element will be removed.
|
|
86
88
|
*
|
|
87
|
-
*
|
|
89
|
+
* The popup interaction requires both the skip-link accessibility gate and the menu placeholder gate.
|
|
88
90
|
*/
|
|
89
91
|
export function SkipLinksContainer(_ref) {
|
|
90
92
|
var label = _ref.label,
|
|
@@ -98,7 +100,7 @@ export function SkipLinksContainer(_ref) {
|
|
|
98
100
|
return null;
|
|
99
101
|
}
|
|
100
102
|
var isEmptyLabel = isOnlyWhitespaceRegex.test(label);
|
|
101
|
-
if (fg('platform_dst_nav4_skip_link_a11y_1')) {
|
|
103
|
+
if (fg('platform_dst_nav4_skip_link_menu_placeholder') && fg('platform_dst_nav4_skip_link_a11y_1')) {
|
|
102
104
|
return /*#__PURE__*/React.createElement(SkipLinksPopup, {
|
|
103
105
|
label: label,
|
|
104
106
|
triggerLabel: triggerLabel,
|
|
@@ -106,23 +108,29 @@ export function SkipLinksContainer(_ref) {
|
|
|
106
108
|
links: sortedLinks
|
|
107
109
|
});
|
|
108
110
|
}
|
|
111
|
+
var skipLinks = sortedLinks.map(function (_ref2) {
|
|
112
|
+
var id = _ref2.id,
|
|
113
|
+
label = _ref2.label,
|
|
114
|
+
onBeforeNavigate = _ref2.onBeforeNavigate,
|
|
115
|
+
navigate = _ref2.navigate;
|
|
116
|
+
return /*#__PURE__*/React.createElement(SkipLink, {
|
|
117
|
+
key: id,
|
|
118
|
+
id: id,
|
|
119
|
+
onBeforeNavigate: onBeforeNavigate,
|
|
120
|
+
navigate: navigate
|
|
121
|
+
}, label);
|
|
122
|
+
});
|
|
109
123
|
return /*#__PURE__*/React.createElement("div", {
|
|
110
124
|
onKeyDown: closeOnEscape,
|
|
111
125
|
"data-testid": testId ? "".concat(testId, "--skip-links-container") : undefined,
|
|
112
|
-
className: ax([styles.root])
|
|
113
|
-
},
|
|
126
|
+
className: ax([styles.root, fg('platform_dst_nav4_skip_link_a11y_1') && styles.menuAppearance])
|
|
127
|
+
}, fg('platform_dst_nav4_skip_link_a11y_1') ? /*#__PURE__*/React.createElement(SkipLinksContent, {
|
|
128
|
+
label: isEmptyLabel ? undefined : label,
|
|
129
|
+
testId: testId
|
|
130
|
+
}, skipLinks) : /*#__PURE__*/React.createElement(Fragment, null, !isEmptyLabel && /*#__PURE__*/React.createElement(Text, {
|
|
114
131
|
weight: "bold",
|
|
115
132
|
testId: testId ? "".concat(testId, "--skip-links-container--label") : undefined
|
|
116
133
|
}, label), /*#__PURE__*/React.createElement("ol", {
|
|
117
134
|
className: ax([styles.skipLinkList])
|
|
118
|
-
},
|
|
119
|
-
var id = _ref2.id,
|
|
120
|
-
label = _ref2.label,
|
|
121
|
-
onBeforeNavigate = _ref2.onBeforeNavigate;
|
|
122
|
-
return /*#__PURE__*/React.createElement(SkipLink, {
|
|
123
|
-
key: id,
|
|
124
|
-
id: id,
|
|
125
|
-
onBeforeNavigate: onBeforeNavigate
|
|
126
|
-
}, label);
|
|
127
|
-
})));
|
|
135
|
+
}, skipLinks)));
|
|
128
136
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
._11c8i4vh{font:var(--ds-font-heading-xxsmall,normal 653 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
+
._18zrpxbi{padding-inline:var(--ds-space-200,1pc)}
|
|
3
|
+
._1rjcu2gc{padding-block:var(--ds-space-100,8px)}
|
|
4
|
+
._1e0c1txw{display:flex}
|
|
5
|
+
._1pbyjh3g{z-index:calc(infinity)}
|
|
6
|
+
._1pfhze3t{margin-block-start:var(--ds-space-0,0)}
|
|
7
|
+
._1x8w11lx{list-style-position:outside}
|
|
8
|
+
._2lx21bp4{flex-direction:column}
|
|
9
|
+
._2mzuglyw{list-style-type:none}
|
|
10
|
+
._bozgze3t{padding-inline-start:var(--ds-space-0,0)}
|
|
11
|
+
._syazazsu{color:var(--ds-text-subtle,#505258)}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/* skip-links-content.tsx generated by @compiled/babel-plugin v3.0.4 */
|
|
2
|
+
import "./skip-links-content.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
var contentStyles = {
|
|
6
|
+
root: "_1rjcu2gc _18zrpxbi _1e0c1txw _2lx21bp4 _1pbyjh3g",
|
|
7
|
+
skipLinkList: "_1e0c1txw _2lx21bp4 _1x8w11lx _2mzuglyw _1pfhze3t _bozgze3t",
|
|
8
|
+
label: "_11c8i4vh _1rjcu2gc _syazazsu"
|
|
9
|
+
};
|
|
10
|
+
export function SkipLinksContent(_ref) {
|
|
11
|
+
var label = _ref.label,
|
|
12
|
+
titleId = _ref.titleId,
|
|
13
|
+
testId = _ref.testId,
|
|
14
|
+
children = _ref.children;
|
|
15
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
16
|
+
className: ax([contentStyles.root])
|
|
17
|
+
}, label !== undefined && /*#__PURE__*/React.createElement("div", {
|
|
18
|
+
"data-testid": testId ? "".concat(testId, "--skip-links-container--label") : undefined,
|
|
19
|
+
id: titleId,
|
|
20
|
+
className: ax([contentStyles.label])
|
|
21
|
+
}, label), /*#__PURE__*/React.createElement("ol", {
|
|
22
|
+
className: ax([contentStyles.skipLinkList])
|
|
23
|
+
}, children));
|
|
24
|
+
}
|
|
@@ -1,22 +1,10 @@
|
|
|
1
|
-
._11c8i4vh{font:var(--ds-font-heading-xxsmall,normal 653 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
1
|
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
3
|
-
.
|
|
4
|
-
._1dqoglyw{border-style:none}
|
|
5
|
-
._1rjcu2gc{padding-block:var(--ds-space-100,8px)}
|
|
6
|
-
._152tutpp{inset-block-start:var(--ds-space-150,9pt)}
|
|
2
|
+
._1dqoglyw{border-style:none}._152tutpp{inset-block-start:var(--ds-space-150,9pt)}
|
|
7
3
|
._1e02utpp{inset-inline-start:var(--ds-space-150,9pt)}
|
|
8
|
-
._1e0c1txw{display:flex}
|
|
9
4
|
._1pby1mrw{z-index:-1}
|
|
10
|
-
._1pbyjh3g{z-index:calc(infinity)}
|
|
11
|
-
._1pfhze3t{margin-block-start:var(--ds-space-0,0)}
|
|
12
|
-
._1x8w11lx{list-style-position:outside}
|
|
13
|
-
._2lx21bp4{flex-direction:column}
|
|
14
|
-
._2mzuglyw{list-style-type:none}
|
|
15
5
|
._4ojojh3g:has(:focus-visible){z-index:calc(infinity)}
|
|
16
6
|
._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
|
|
17
|
-
._bozgze3t{padding-inline-start:var(--ds-space-0,0)}
|
|
18
7
|
._c8j0kb7n:has(:focus-visible){opacity:1}
|
|
19
8
|
._kqsw1n9t{position:fixed}
|
|
20
|
-
._syazazsu{color:var(--ds-text-subtle,#505258)}
|
|
21
9
|
._t9ecz6y5{transform:translateY(-100%)}
|
|
22
10
|
._tzy4idpf{opacity:0}
|
|
@@ -11,11 +11,7 @@ import mergeRefs from '@atlaskit/ds-lib/merge-refs';
|
|
|
11
11
|
import { Popup } from '@atlaskit/popup/popup';
|
|
12
12
|
import { focusElement } from './focus-element';
|
|
13
13
|
import { SkipLink } from './skip-link';
|
|
14
|
-
|
|
15
|
-
root: "_1rjcu2gc _18zrpxbi _1e0c1txw _2lx21bp4 _1pbyjh3g",
|
|
16
|
-
skipLinkList: "_1e0c1txw _2lx21bp4 _1x8w11lx _2mzuglyw _1pfhze3t _bozgze3t",
|
|
17
|
-
label: "_11c8i4vh _1rjcu2gc _syazazsu"
|
|
18
|
-
};
|
|
14
|
+
import { SkipLinksContent } from './skip-links-content';
|
|
19
15
|
var triggerStyles = {
|
|
20
16
|
root: "_2rko12b0 _1dqoglyw _kqsw1n9t _1e02utpp _152tutpp _1pby1mrw _tzy4idpf _bfhk1bhr _4ojojh3g _c8j0kb7n",
|
|
21
17
|
isOpen: "_tzy4idpf _t9ecz6y5"
|
|
@@ -23,7 +19,7 @@ var triggerStyles = {
|
|
|
23
19
|
var popupOffset = [0, 0];
|
|
24
20
|
|
|
25
21
|
/**
|
|
26
|
-
* Skip links shown behind `
|
|
22
|
+
* Skip links shown behind `platform_dst_nav4_skip_link_menu_placeholder`: a single focus-revealed
|
|
27
23
|
* control opens a dialog listing skip targets.
|
|
28
24
|
*/
|
|
29
25
|
export function SkipLinksPopup(_ref) {
|
|
@@ -79,14 +75,10 @@ export function SkipLinksPopup(_ref) {
|
|
|
79
75
|
testId: testId ? "".concat(testId, "--skip-links-container") : undefined,
|
|
80
76
|
offset: popupOffset,
|
|
81
77
|
content: function content() {
|
|
82
|
-
return /*#__PURE__*/React.createElement(
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
id: titleId,
|
|
87
|
-
className: ax([contentStyles.label])
|
|
88
|
-
}, title), /*#__PURE__*/React.createElement("ol", {
|
|
89
|
-
className: ax([contentStyles.skipLinkList])
|
|
78
|
+
return /*#__PURE__*/React.createElement(SkipLinksContent, {
|
|
79
|
+
label: title,
|
|
80
|
+
titleId: titleId,
|
|
81
|
+
testId: testId
|
|
90
82
|
}, links.map(function (_ref2) {
|
|
91
83
|
var id = _ref2.id,
|
|
92
84
|
label = _ref2.label,
|
|
@@ -96,8 +88,8 @@ export function SkipLinksPopup(_ref) {
|
|
|
96
88
|
id: id
|
|
97
89
|
/**
|
|
98
90
|
* The popup always owns the navigation effect under the
|
|
99
|
-
* `platform_dst_nav4_skip_link_a11y_1` gate
|
|
100
|
-
*
|
|
91
|
+
* `platform_dst_nav4_skip_link_a11y_1` gate, enabled
|
|
92
|
+
* alongside the menu placeholder gate. It first closes itself
|
|
101
93
|
* synchronously so its focus lock is released, then either:
|
|
102
94
|
*
|
|
103
95
|
* - delegates to the consumer's `navigate` (e.g. SideNav
|
|
@@ -120,7 +112,7 @@ export function SkipLinksPopup(_ref) {
|
|
|
120
112
|
}
|
|
121
113
|
}
|
|
122
114
|
}, label);
|
|
123
|
-
}))
|
|
115
|
+
}));
|
|
124
116
|
},
|
|
125
117
|
trigger: function trigger(triggerProps) {
|
|
126
118
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -9,6 +9,7 @@ import { bind } from 'bind-event-listener';
|
|
|
9
9
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
10
|
import { useSkipLinkInternal } from '../../context/skip-links/use-skip-link-internal';
|
|
11
11
|
import { chatPanelLiveWidthVar, chatPanelVar, defaultMainMinWidth, localSlotLayers, mainMinimumWidthVar } from './constants';
|
|
12
|
+
import { chatPanelPanelSplitterId } from './panel-splitter/chat-panel-panel-splitter-id';
|
|
12
13
|
import { convertResizeBoundToPixels } from './panel-splitter/convert-resize-bound-to-pixels';
|
|
13
14
|
import { PanelSplitterProvider } from './panel-splitter/provider';
|
|
14
15
|
import { resolveLayoutWidth } from './resolve-layout-width';
|
|
@@ -17,7 +18,6 @@ import { useLayoutAreaSizing } from './use-layout-area-sizing';
|
|
|
17
18
|
import { useLayoutId } from './use-layout-id';
|
|
18
19
|
import { useResizingWidthCssVarOnRootElement } from './use-resizing-width-css-var-on-root-element';
|
|
19
20
|
import { useSafeDefaultWidth } from './use-safe-default-width';
|
|
20
|
-
var chatPanelPanelSplitterId = Symbol('ChatPanel PanelSplitter');
|
|
21
21
|
var panelSplitterResizingVar = '--n_cPnlRsz';
|
|
22
22
|
var chatPanelOverlayWidthVar = '--n_cPnlOverlayW';
|
|
23
23
|
var fallbackDefaultWidth = 400;
|
|
@@ -21,7 +21,9 @@
|
|
|
21
21
|
._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
|
|
22
22
|
._bfhk1g1j{background-color:var(--p_lclPnlSsrBackground,var(--ds-surface-overlay,#fff))}
|
|
23
23
|
._bfhkvuon{background-color:var(--ds-surface,#fff)}
|
|
24
|
+
._ifwb1uuk{--p_lclPnlMotionW:var(--p_lclPnlCompactW)}
|
|
24
25
|
._ju25dn4k{animation-delay:var(--ds-duration-xshort,.1s)}
|
|
25
26
|
._kqsw1if8{position:sticky}
|
|
26
27
|
._vchhusvi{box-sizing:border-box}
|
|
27
|
-
@media (prefers-reduced-motion:no-preference){._k1af14vv{animation:var(--ds-panel-exit-right,.2s cubic-bezier(0,.4,0,1) SlideOut100PercentRight)}[dir=rtl] ._105aeydr{animation:var(--ds-panel-exit-left,.2s cubic-bezier(0,.4,0,1) SlideOut100PercentLeft)}.
|
|
28
|
+
@media (prefers-reduced-motion:no-preference){._15etqc86{width:min(90cqw,var(--p_lclPnlMotionW))}._k1af14vv{animation:var(--ds-panel-exit-right,.2s cubic-bezier(0,.4,0,1) SlideOut100PercentRight)}._1lh81gzg{grid-area:main}[dir=rtl] ._105aeydr{animation:var(--ds-panel-exit-left,.2s cubic-bezier(0,.4,0,1) SlideOut100PercentLeft)}._15et1c5w{width:var(--p_lclPnlRsz,var(--p_lclPnlW))}@starting-style{._12d81gzg{grid-area:main}}._k1af1nn1{animation:var(--ds-panel-enter-right,.25s cubic-bezier(0,.4,0,1) SlideIn100PercentRight)}[dir=rtl] ._105abamb{animation:var(--ds-panel-enter-left,.25s cubic-bezier(0,.4,0,1) SlideIn100PercentLeft)}._10t81q8v{transition-property:grid-area}._xrrp147i{transition-duration:var(--ds-duration-instant,0ms)}._1wsa1ign{transition-delay:var(--ds-duration-short,.15s)}._1vrh1a5r{transition-behavior:allow-discrete}}
|
|
29
|
+
@media (min-width:64rem){._1c23i77x{--p_lclPnlMotionW:var(--p_lclPnlTrackW)}}
|
|
@@ -32,8 +32,9 @@ var styles = {
|
|
|
32
32
|
panelScrollContainer: "_1reo1wug _18m91wug _4t3i1osq",
|
|
33
33
|
border: "_191wglyw _16qs130s",
|
|
34
34
|
managedInlineBorder: "_191wia51 _16qsglyw",
|
|
35
|
-
entering: "_k1af1nn1
|
|
36
|
-
|
|
35
|
+
entering: "_k1af1nn1 _12d81gzg _10t81q8v _xrrp147i _1wsa1ign _1vrh1a5r _15et1c5w _105abamb",
|
|
36
|
+
motionUnmeasured: "_ifwb1uuk _15etqc86 _1c23i77x",
|
|
37
|
+
exiting: "_k1af14vv _1lh81gzg _15et1c5w _105aeydr",
|
|
37
38
|
contentEntering: "_y44v1mph",
|
|
38
39
|
contentExiting: "_y44vf1qi",
|
|
39
40
|
contentChangeContainer: "_4t3i1osq"
|
|
@@ -168,7 +169,7 @@ export function LocalPanelSurface(_ref2) {
|
|
|
168
169
|
"data-layout-with-panel-slot": "",
|
|
169
170
|
style: _defineProperty({}, localPanelVar, "".concat(renderedWidth, "px")),
|
|
170
171
|
ref: mergedRef,
|
|
171
|
-
className: ax([isMotionUpliftEnabled && state === 'entering' && styles.entering, isMotionUpliftEnabled && state === 'exiting' && styles.exiting, styles.panelWrapper, styles.border, !managedSizing && styles.unmeasured, !managedSizing && fg('platform-dst-chat-panel-layout') && styles.refinedUnmeasured, (managedSizing === null || managedSizing === void 0 ? void 0 : managedSizing.mode) === 'inline' && styles.managedInline, (managedSizing === null || managedSizing === void 0 ? void 0 : managedSizing.mode) === 'overlay' && styles.managedOverlay, (managedSizing === null || managedSizing === void 0 ? void 0 : managedSizing.mode) === 'inline' && styles.managedInlineBorder])
|
|
172
|
+
className: ax([isMotionUpliftEnabled && state === 'entering' && styles.entering, isMotionUpliftEnabled && state === 'exiting' && styles.exiting, isMotionUpliftEnabled && (state === 'entering' || state === 'exiting') && !managedSizing && styles.motionUnmeasured, styles.panelWrapper, styles.border, !managedSizing && styles.unmeasured, !managedSizing && fg('platform-dst-chat-panel-layout') && styles.refinedUnmeasured, (managedSizing === null || managedSizing === void 0 ? void 0 : managedSizing.mode) === 'inline' && styles.managedInline, (managedSizing === null || managedSizing === void 0 ? void 0 : managedSizing.mode) === 'overlay' && styles.managedOverlay, (managedSizing === null || managedSizing === void 0 ? void 0 : managedSizing.mode) === 'inline' && styles.managedInlineBorder])
|
|
172
173
|
}, /*#__PURE__*/React.createElement(PanelSplitterProvider, {
|
|
173
174
|
panelId: localPanelSplitterId,
|
|
174
175
|
panelRef: ref,
|
|
@@ -25,4 +25,5 @@
|
|
|
25
25
|
._vlegi47z._vlegi47z{grid-template-columns:minmax(0,1fr)}
|
|
26
26
|
._yv0eggl6{grid-template-columns:var(--p_lclPnlSsrColumns,minmax(0,1fr))}
|
|
27
27
|
._yv0ei47z{grid-template-columns:minmax(0,1fr)}
|
|
28
|
+
@media (prefers-reduced-motion:no-preference){._1croukkr{animation-name:k1p4v4gh}._wqfn147i{animation-duration:var(--ds-duration-instant,0ms)}._sl5p1ign{animation-delay:var(--ds-duration-short,.15s)}._dqw8eoah{animation-fill-mode:backwards}@keyframes k1p4v4gh{0%{grid-template-areas:"main";grid-template-columns:minmax(0,1fr);grid-template-rows:1fr}}}
|
|
28
29
|
@media (min-width:64rem){._peezi77x{--p_lclPnlSsrPreferredW:var(--p_lclPnlTrackW)}._1tg31owj{--p_lclPnlSsrDefaultW:var(--p_lclPnlDefaultW)}}
|
|
@@ -12,7 +12,13 @@ import { MainMinWidthContext } from './main-min-width-context';
|
|
|
12
12
|
var localPanelTrackWidthVar = '--p_lclPnlTrackW';
|
|
13
13
|
var localPanelResizingVar = '--p_lclPnlRsz';
|
|
14
14
|
var localPanelMinWidthVar = '--p_lclPnlMinW';
|
|
15
|
+
|
|
16
|
+
// Holds the single-column (closed) grid while the entering panel overlays `main`. With `backwards` fill
|
|
17
|
+
// the `from` frame applies for the animation delay, then the real inline grid takes over. An animation
|
|
18
|
+
// (rather than a transition) only starts when the class is added, so live resizing is never delayed.
|
|
19
|
+
var holdClosedGrid = null;
|
|
15
20
|
var styles = {
|
|
21
|
+
panelEntering: "_1croukkr _wqfn147i _sl5p1ign _dqw8eoah",
|
|
16
22
|
container: "_1f38177r _7cca15wb _4t3i1osq _1bsb1osq",
|
|
17
23
|
layout: "_1reo1wug _18m91wug _1e0c11p5 _7cca15wb _1lmc1m6a _yv0ei47z _2z05hkll _4t3i1osq _1bsb1osq",
|
|
18
24
|
mainContent: "_nd5l1gzg _1reo1wug _18m91wug _1e0c1txw _4t3i1osq _19121cl4",
|
|
@@ -59,7 +65,7 @@ export function PanelLayoutShell(_ref) {
|
|
|
59
65
|
"data-testid": testId,
|
|
60
66
|
ref: layoutRef,
|
|
61
67
|
style: _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, localPanelTrackWidthVar, "".concat(panelWidth, "px")), localPanelMinWidthVar, "".concat(panelMinWidth, "px")), '--p_lclPnlCompactW', "".concat(compactPanelWidth, "px")), '--p_lclPnlDefaultW', "".concat(defaultPanelWidth, "px")), '--p_lclPnlCompactDefaultW', "".concat(compactDefaultPanelWidth, "px")),
|
|
62
|
-
className: ax([styles.layout, mode === undefined && isPanelOpen && styles.unmeasured, shouldClipOverflow && styles.panelUplift, mode === 'inline' && styles.managedInline, mode === 'overlay' && styles.managedOverlay, !isPanelOpen && styles.panelClosed])
|
|
68
|
+
className: ax([styles.layout, mode === undefined && isPanelOpen && styles.unmeasured, shouldClipOverflow && styles.panelUplift, mode === 'inline' && styles.managedInline, shouldClipOverflow && isPanelOpen && (mode === undefined || mode === 'inline') && styles.panelEntering, mode === 'overlay' && styles.managedOverlay, !isPanelOpen && styles.panelClosed])
|
|
63
69
|
}, /*#__PURE__*/React.createElement("div", {
|
|
64
70
|
className: ax([styles.mainContent])
|
|
65
71
|
}, children), panel));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var chatPanelPanelSplitterId = Symbol('ChatPanel PanelSplitter');
|
|
@@ -30,6 +30,7 @@ import { requestClosePopovers } from '@atlaskit/top-layer/page-surface/request-c
|
|
|
30
30
|
import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
31
31
|
import { contentInsetBlockStart } from '../constants';
|
|
32
32
|
import { LayoutAreaSizingContext } from '../layout-area-sizing-context';
|
|
33
|
+
import { chatPanelPanelSplitterId } from './chat-panel-panel-splitter-id';
|
|
33
34
|
import { convertResizeBoundToPixels } from './convert-resize-bound-to-pixels';
|
|
34
35
|
import { getPanelGrowthSide } from './get-panel-growth-side';
|
|
35
36
|
import { getPercentageWithinPixelBounds } from './get-percentage-within-pixel-bounds';
|
|
@@ -54,7 +55,8 @@ var grabAreaStyles = {
|
|
|
54
55
|
rootFinesse: "_vp7g1ihb _30l31ihb _9h8hq98m"
|
|
55
56
|
};
|
|
56
57
|
var lineStyles = {
|
|
57
|
-
root: "_kqswstnw _1e0c1ule _1bsb1l7b _4t3i1osq _syaz1kw7 _bfhk1r31 _1e021v6z"
|
|
58
|
+
root: "_kqswstnw _1e0c1ule _1bsb1l7b _4t3i1osq _syaz1kw7 _bfhk1r31 _1e021v6z",
|
|
59
|
+
chatPanel: "_1e02rdoj"
|
|
58
60
|
};
|
|
59
61
|
var tooltipStyles = {
|
|
60
62
|
root: "_ahbq196n _1bsb1ris",
|
|
@@ -651,7 +653,7 @@ var PortaledPanelSplitter = function PortaledPanelSplitter(_ref3) {
|
|
|
651
653
|
}), /*#__PURE__*/React.createElement("span", {
|
|
652
654
|
id: labelId
|
|
653
655
|
}, label)), /*#__PURE__*/React.createElement("span", {
|
|
654
|
-
className: ax([lineStyles.root])
|
|
656
|
+
className: ax([lineStyles.root, panelId === chatPanelPanelSplitterId && lineStyles.chatPanel])
|
|
655
657
|
})))), portal);
|
|
656
658
|
};
|
|
657
659
|
/**
|
|
@@ -8,7 +8,7 @@ import { type SkipLinkData } from '../../context/skip-links/types';
|
|
|
8
8
|
* The label is used as the heading of the skip links container. If the provided label is a string
|
|
9
9
|
* comprised only of only whitespace (e.g. '' or ' '), the skip link heading element will be removed.
|
|
10
10
|
*
|
|
11
|
-
*
|
|
11
|
+
* The popup interaction requires both the skip-link accessibility gate and the menu placeholder gate.
|
|
12
12
|
*/
|
|
13
13
|
export declare function SkipLinksContainer({ label, triggerLabel, testId, links, }: {
|
|
14
14
|
label: string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type ReactNode } from 'react';
|
|
6
|
+
export declare function SkipLinksContent({ label, titleId, testId, children, }: {
|
|
7
|
+
label?: string;
|
|
8
|
+
titleId?: string;
|
|
9
|
+
testId?: string;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
}): JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type SkipLinkData } from '../../context/skip-links/types';
|
|
2
2
|
/**
|
|
3
|
-
* Skip links shown behind `
|
|
3
|
+
* Skip links shown behind `platform_dst_nav4_skip_link_menu_placeholder`: a single focus-revealed
|
|
4
4
|
* control opens a dialog listing skip targets.
|
|
5
5
|
*/
|
|
6
6
|
export declare function SkipLinksPopup({ label: title, triggerLabel, testId, links, }: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const chatPanelPanelSplitterId: symbol;
|