@atlaskit/page-layout 3.3.3 → 3.4.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 -1
- package/README.md +6 -3
- package/__perf__/examples.tsx +45 -69
- package/__perf__/utils/perf-example.tsx +53 -55
- package/__perf__/utils/product-integration/atlassian-navigation.tsx +80 -77
- package/__perf__/utils/product-integration/create.tsx +12 -15
- package/__perf__/utils/product-integration/help-popup.tsx +38 -38
- package/__perf__/utils/product-integration/notifications-popup.tsx +76 -74
- package/__perf__/utils/product-integration/profile-popup.tsx +53 -53
- package/__perf__/utils/product-integration/sample-footer.tsx +30 -26
- package/__perf__/utils/product-integration/sample-header.tsx +15 -11
- package/__perf__/utils/product-integration/side-navigation.tsx +92 -101
- package/dist/cjs/components/resize-control/grab-area.js +8 -1
- package/dist/cjs/components/resize-control/index.js +9 -3
- package/dist/cjs/components/resize-control/resize-button.js +6 -0
- package/dist/cjs/components/resize-control/shadow.js +9 -5
- package/dist/cjs/components/skip-links/skip-link-components.js +4 -2
- package/dist/cjs/components/skip-links/use-custom-skip-link.js +3 -0
- package/dist/cjs/components/slots/banner-slot.js +12 -5
- package/dist/cjs/components/slots/content.js +6 -0
- package/dist/cjs/components/slots/internal/left-sidebar-inner.js +18 -1
- package/dist/cjs/components/slots/internal/left-sidebar-outer.js +16 -1
- package/dist/cjs/components/slots/internal/resizable-children-wrapper.js +7 -1
- package/dist/cjs/components/slots/internal/slot-focus-ring.js +9 -2
- package/dist/cjs/components/slots/left-panel.js +10 -3
- package/dist/cjs/components/slots/left-sidebar-without-resize.js +5 -0
- package/dist/cjs/components/slots/left-sidebar.js +4 -1
- package/dist/cjs/components/slots/main.js +8 -2
- package/dist/cjs/components/slots/page-layout.js +10 -2
- package/dist/cjs/components/slots/right-panel.js +10 -3
- package/dist/cjs/components/slots/right-sidebar.js +14 -9
- package/dist/cjs/components/slots/slot-dimensions.js +5 -1
- package/dist/cjs/components/slots/top-navigation.js +13 -6
- package/dist/es2019/components/resize-control/grab-area.js +8 -1
- package/dist/es2019/components/resize-control/index.js +10 -2
- package/dist/es2019/components/resize-control/resize-button.js +7 -1
- package/dist/es2019/components/resize-control/shadow.js +8 -5
- package/dist/es2019/components/skip-links/skip-link-components.js +5 -1
- package/dist/es2019/components/skip-links/use-custom-skip-link.js +3 -0
- package/dist/es2019/components/slots/banner-slot.js +12 -5
- package/dist/es2019/components/slots/content.js +5 -0
- package/dist/es2019/components/slots/internal/left-sidebar-inner.js +19 -3
- package/dist/es2019/components/slots/internal/left-sidebar-outer.js +18 -3
- package/dist/es2019/components/slots/internal/resizable-children-wrapper.js +6 -1
- package/dist/es2019/components/slots/internal/slot-focus-ring.js +8 -2
- package/dist/es2019/components/slots/left-panel.js +10 -3
- package/dist/es2019/components/slots/left-sidebar-without-resize.js +5 -0
- package/dist/es2019/components/slots/left-sidebar.js +6 -0
- package/dist/es2019/components/slots/main.js +8 -2
- package/dist/es2019/components/slots/page-layout.js +15 -1
- package/dist/es2019/components/slots/right-panel.js +10 -3
- package/dist/es2019/components/slots/right-sidebar.js +14 -9
- package/dist/es2019/components/slots/slot-dimensions.js +4 -1
- package/dist/es2019/components/slots/top-navigation.js +13 -6
- package/dist/esm/components/resize-control/grab-area.js +8 -1
- package/dist/esm/components/resize-control/index.js +10 -2
- package/dist/esm/components/resize-control/resize-button.js +6 -0
- package/dist/esm/components/resize-control/shadow.js +8 -5
- package/dist/esm/components/skip-links/skip-link-components.js +5 -1
- package/dist/esm/components/skip-links/use-custom-skip-link.js +3 -0
- package/dist/esm/components/slots/banner-slot.js +12 -5
- package/dist/esm/components/slots/content.js +5 -0
- package/dist/esm/components/slots/internal/left-sidebar-inner.js +17 -1
- package/dist/esm/components/slots/internal/left-sidebar-outer.js +16 -1
- package/dist/esm/components/slots/internal/resizable-children-wrapper.js +6 -1
- package/dist/esm/components/slots/internal/slot-focus-ring.js +8 -2
- package/dist/esm/components/slots/left-panel.js +10 -3
- package/dist/esm/components/slots/left-sidebar-without-resize.js +5 -0
- package/dist/esm/components/slots/left-sidebar.js +6 -0
- package/dist/esm/components/slots/main.js +8 -2
- package/dist/esm/components/slots/page-layout.js +10 -2
- package/dist/esm/components/slots/right-panel.js +10 -3
- package/dist/esm/components/slots/right-sidebar.js +14 -9
- package/dist/esm/components/slots/slot-dimensions.js +5 -1
- package/dist/esm/components/slots/top-navigation.js +13 -6
- package/dist/types/components/resize-control/grab-area.d.ts +3 -0
- package/dist/types/components/resize-control/shadow.d.ts +3 -0
- package/dist/types/components/skip-links/skip-link-components.d.ts +3 -0
- package/dist/types/components/slots/content.d.ts +3 -0
- package/dist/types/components/slots/internal/left-sidebar-inner.d.ts +3 -0
- package/dist/types/components/slots/internal/left-sidebar-outer.d.ts +3 -0
- package/dist/types/components/slots/internal/resizable-children-wrapper.d.ts +3 -0
- package/dist/types/components/slots/internal/slot-focus-ring.d.ts +3 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types-ts4.5/components/resize-control/grab-area.d.ts +3 -0
- package/dist/types-ts4.5/components/resize-control/shadow.d.ts +3 -0
- package/dist/types-ts4.5/components/skip-links/skip-link-components.d.ts +3 -0
- package/dist/types-ts4.5/components/slots/content.d.ts +3 -0
- package/dist/types-ts4.5/components/slots/internal/left-sidebar-inner.d.ts +3 -0
- package/dist/types-ts4.5/components/slots/internal/left-sidebar-outer.d.ts +3 -0
- package/dist/types-ts4.5/components/slots/internal/resizable-children-wrapper.d.ts +3 -0
- package/dist/types-ts4.5/components/slots/internal/slot-focus-ring.d.ts +3 -0
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/package.json +123 -123
- package/report.api.md +83 -84
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
7
|
import { css, jsx } from '@emotion/react';
|
|
4
8
|
import { prefersReducedMotion } from '@atlaskit/motion';
|
|
5
9
|
import { TRANSITION_DURATION } from '../../../common/constants';
|
|
6
10
|
import { useIsSidebarCollapsing } from '../../../common/hooks';
|
|
7
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
11
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
8
12
|
const prefersReducedMotionStyles = css(prefersReducedMotion());
|
|
9
13
|
|
|
10
14
|
/**
|
|
@@ -16,6 +20,7 @@ const prefersReducedMotionStyles = css(prefersReducedMotion());
|
|
|
16
20
|
const hideLeftSidebarContentsStyles = css({
|
|
17
21
|
opacity: 0,
|
|
18
22
|
transition: `opacity 0ms linear, visibility 0ms linear`,
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
19
24
|
transitionDelay: `${TRANSITION_DURATION - 100}ms`,
|
|
20
25
|
visibility: 'hidden'
|
|
21
26
|
});
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
7
|
import { ClassNames, css, jsx } from '@emotion/react';
|
|
4
8
|
import { B100 } from '@atlaskit/theme/colors';
|
|
5
9
|
const focusStyles = css({
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
6
11
|
':focus': {
|
|
7
12
|
outline: 'none',
|
|
8
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
13
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
9
14
|
'> div': {
|
|
10
15
|
boxShadow: `0px 0px 0px 2px inset ${`var(--ds-border-focused, ${B100})`}`,
|
|
11
16
|
outline: 'none'
|
|
@@ -18,9 +23,10 @@ const focusStyles = css({
|
|
|
18
23
|
* so the nested selector needs to target an extra level deeper.
|
|
19
24
|
*/
|
|
20
25
|
const sidebarFocusStyles = css({
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
21
27
|
':focus': {
|
|
22
28
|
outline: 'none',
|
|
23
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
29
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
24
30
|
'> div > div': {
|
|
25
31
|
boxShadow: `0px 0px 0px 2px inset ${`var(--ds-border-focused, ${B100})`}`,
|
|
26
32
|
outline: 'none'
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
*/
|
|
2
5
|
/** @jsx jsx */
|
|
3
6
|
import { useEffect } from 'react';
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
9
|
import { css, jsx } from '@emotion/react';
|
|
5
10
|
import { DEFAULT_LEFT_PANEL_WIDTH, LEFT_PANEL, LEFT_PANEL_WIDTH, VAR_LEFT_PANEL_WIDTH } from '../../common/constants';
|
|
6
11
|
import { getPageLayoutSlotSelector, resolveDimension } from '../../common/utils';
|
|
@@ -8,14 +13,16 @@ import { publishGridState, useSkipLink } from '../../controllers';
|
|
|
8
13
|
import SlotFocusRing from './internal/slot-focus-ring';
|
|
9
14
|
import SlotDimensions from './slot-dimensions';
|
|
10
15
|
const leftPanelStyles = css({
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
11
17
|
gridArea: LEFT_PANEL
|
|
12
18
|
});
|
|
13
19
|
const leftPanelFixedStyles = css({
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
14
21
|
width: LEFT_PANEL_WIDTH,
|
|
15
22
|
position: 'fixed',
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
23
|
+
insetBlockEnd: 0,
|
|
24
|
+
insetBlockStart: 0,
|
|
25
|
+
insetInlineStart: 0
|
|
19
26
|
});
|
|
20
27
|
|
|
21
28
|
/**
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
import { useEffect } from 'react';
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
8
|
import { jsx } from '@emotion/react';
|
|
4
9
|
import { VAR_LEFT_SIDEBAR_WIDTH } from '../../common/constants';
|
|
5
10
|
import { resolveDimension } from '../../common/utils';
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/dom-events/no-unsafe-event-listeners */
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
*/
|
|
2
5
|
/** @jsx jsx */
|
|
3
6
|
import { Fragment, useCallback, useContext, useEffect, useRef } from 'react';
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
9
|
import { css, jsx } from '@emotion/react';
|
|
5
10
|
import useCloseOnEscapePress from '@atlaskit/ds-lib/use-close-on-escape-press';
|
|
6
11
|
import { easeOut } from '@atlaskit/motion';
|
|
@@ -23,6 +28,7 @@ const openBackdropStyles = css({
|
|
|
23
28
|
});
|
|
24
29
|
const hiddenBackdropStyles = css({
|
|
25
30
|
opacity: 0,
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
26
32
|
transition: `opacity ${TRANSITION_DURATION}ms ${easeOut} 0s`
|
|
27
33
|
});
|
|
28
34
|
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
*/
|
|
2
5
|
/** @jsx jsx */
|
|
3
6
|
import { useContext } from 'react';
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
9
|
import { css, jsx } from '@emotion/react';
|
|
5
10
|
import { prefersReducedMotion } from '@atlaskit/motion/accessibility';
|
|
6
11
|
import { easeOut } from '@atlaskit/motion/curves';
|
|
@@ -10,12 +15,13 @@ import { getPageLayoutSlotSelector } from '../../common/utils';
|
|
|
10
15
|
import { SidebarResizeContext, useSkipLink } from '../../controllers';
|
|
11
16
|
import SlotFocusRing from './internal/slot-focus-ring';
|
|
12
17
|
|
|
13
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
18
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
14
19
|
const prefersReducedMotionStyles = css(prefersReducedMotion());
|
|
15
20
|
const mainStyles = css({
|
|
16
21
|
minWidth: 0,
|
|
17
22
|
flexGrow: 1,
|
|
18
23
|
marginInlineStart: 0,
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
19
25
|
transition: `margin-left ${TRANSITION_DURATION}ms ${easeOut} 0s`
|
|
20
26
|
});
|
|
21
27
|
const draggingStyles = css({
|
|
@@ -30,7 +36,7 @@ const draggingStyles = css({
|
|
|
30
36
|
* while main remains in place.
|
|
31
37
|
*/
|
|
32
38
|
const flyoutStyles = css({
|
|
33
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
39
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
34
40
|
marginInlineStart: `calc(-1 * var(--${VAR_LEFT_SIDEBAR_FLYOUT}, ${DEFAULT_LEFT_SIDEBAR_FLYOUT_WIDTH}px) + ${COLLAPSED_LEFT_SIDEBAR_WIDTH}px)`
|
|
35
41
|
});
|
|
36
42
|
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
*/
|
|
2
5
|
/** @jsx jsx */
|
|
3
6
|
import { Fragment } from 'react';
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
9
|
import { css, jsx } from '@emotion/react';
|
|
5
10
|
import { UNSAFE_media } from '@atlaskit/primitives/responsive';
|
|
6
11
|
import { BANNER, BANNER_HEIGHT, CONTENT, DEFAULT_I18N_PROPS_SKIP_LINKS, LEFT_PANEL, LEFT_PANEL_WIDTH, PAGE_LAYOUT_CONTAINER_SELECTOR, RIGHT_PANEL, RIGHT_PANEL_WIDTH, TOP_NAVIGATION, TOP_NAVIGATION_HEIGHT } from '../../common/constants';
|
|
@@ -10,27 +15,36 @@ const pageLayoutSelector = {
|
|
|
10
15
|
[PAGE_LAYOUT_CONTAINER_SELECTOR]: true
|
|
11
16
|
};
|
|
12
17
|
const gridTemplateAreasMobile = `
|
|
18
|
+
${/* eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766 */''}
|
|
13
19
|
"${LEFT_PANEL} ${BANNER}"
|
|
20
|
+
${/* eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766 */''}
|
|
14
21
|
"${LEFT_PANEL} ${TOP_NAVIGATION}"
|
|
22
|
+
${/* eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766 */''}
|
|
15
23
|
"${LEFT_PANEL} ${CONTENT}"
|
|
16
24
|
`;
|
|
17
25
|
const gridTemplateAreas = `
|
|
26
|
+
${/* eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766 */''}
|
|
18
27
|
"${LEFT_PANEL} ${BANNER} ${RIGHT_PANEL}"
|
|
28
|
+
${/* eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766 */''}
|
|
19
29
|
"${LEFT_PANEL} ${TOP_NAVIGATION} ${RIGHT_PANEL}"
|
|
30
|
+
${/* eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766 */''}
|
|
20
31
|
"${LEFT_PANEL} ${CONTENT} ${RIGHT_PANEL}"
|
|
21
32
|
`;
|
|
22
33
|
const gridStyles = css({
|
|
23
34
|
display: 'grid',
|
|
24
35
|
height: '100%',
|
|
25
36
|
gridTemplateAreas,
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
26
38
|
gridTemplateColumns: `${LEFT_PANEL_WIDTH} minmax(0, 1fr) ${RIGHT_PANEL_WIDTH}`,
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
27
40
|
gridTemplateRows: `${BANNER_HEIGHT} ${TOP_NAVIGATION_HEIGHT} auto`,
|
|
28
41
|
outline: 'none'
|
|
29
42
|
});
|
|
30
43
|
const gridStylesMobileStyles = css({
|
|
31
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
44
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
32
45
|
[UNSAFE_media.below.sm]: {
|
|
33
46
|
gridTemplateAreas: gridTemplateAreasMobile,
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
34
48
|
gridTemplateColumns: `${LEFT_PANEL_WIDTH} minmax(0, 1fr)`
|
|
35
49
|
}
|
|
36
50
|
});
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
*/
|
|
2
5
|
/** @jsx jsx */
|
|
3
6
|
import { useEffect } from 'react';
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
9
|
import { css, jsx } from '@emotion/react';
|
|
5
10
|
import { DEFAULT_RIGHT_PANEL_WIDTH, RIGHT_PANEL, RIGHT_PANEL_WIDTH, VAR_RIGHT_PANEL_WIDTH } from '../../common/constants';
|
|
6
11
|
import { getPageLayoutSlotSelector, resolveDimension } from '../../common/utils';
|
|
@@ -8,14 +13,16 @@ import { publishGridState, useSkipLink } from '../../controllers';
|
|
|
8
13
|
import SlotFocusRing from './internal/slot-focus-ring';
|
|
9
14
|
import SlotDimensions from './slot-dimensions';
|
|
10
15
|
const baseStyles = css({
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
11
17
|
gridArea: RIGHT_PANEL
|
|
12
18
|
});
|
|
13
19
|
const fixedStyles = css({
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
14
21
|
width: RIGHT_PANEL_WIDTH,
|
|
15
22
|
position: 'fixed',
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
23
|
+
insetBlockEnd: 0,
|
|
24
|
+
insetBlockStart: 0,
|
|
25
|
+
insetInlineEnd: 0
|
|
19
26
|
});
|
|
20
27
|
|
|
21
28
|
/**
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
*/
|
|
2
5
|
/** @jsx jsx */
|
|
3
6
|
import { useEffect } from 'react';
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
9
|
import { css, jsx } from '@emotion/react';
|
|
5
10
|
import { BANNER_HEIGHT, DEFAULT_RIGHT_SIDEBAR_WIDTH, RIGHT_PANEL_WIDTH, RIGHT_SIDEBAR_WIDTH, TOP_NAVIGATION_HEIGHT, VAR_RIGHT_SIDEBAR_WIDTH } from '../../common/constants';
|
|
6
11
|
import { getPageLayoutSlotSelector, resolveDimension } from '../../common/utils';
|
|
@@ -15,21 +20,20 @@ import SlotDimensions from './slot-dimensions';
|
|
|
15
20
|
* out of its flex container and Main would stretch to occupy all the space.
|
|
16
21
|
*/
|
|
17
22
|
const fixedInnerStyles = css({
|
|
18
|
-
|
|
19
|
-
* This width on the inner wrapper is required when it is using fixed
|
|
20
|
-
* positioning. Otherwise its width is slightly off.
|
|
21
|
-
*/
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
22
24
|
width: RIGHT_SIDEBAR_WIDTH,
|
|
23
25
|
position: 'fixed',
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
insetBlockEnd: 0,
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
28
|
+
insetBlockStart: `calc(${BANNER_HEIGHT} + ${TOP_NAVIGATION_HEIGHT})`,
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
30
|
+
insetInlineEnd: `calc(${RIGHT_PANEL_WIDTH})`
|
|
29
31
|
});
|
|
30
32
|
const staticInnerStyles = css({
|
|
31
33
|
height: '100%'
|
|
32
34
|
});
|
|
35
|
+
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
33
37
|
const outerStyles = css({
|
|
34
38
|
width: RIGHT_SIDEBAR_WIDTH
|
|
35
39
|
});
|
|
@@ -42,6 +46,7 @@ const outerStyles = css({
|
|
|
42
46
|
const fixedOuterStyles = css({
|
|
43
47
|
'&::after': {
|
|
44
48
|
display: 'inline-block',
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
45
50
|
width: RIGHT_SIDEBAR_WIDTH,
|
|
46
51
|
content: "''"
|
|
47
52
|
}
|
|
@@ -4,4 +4,7 @@ export default (({
|
|
|
4
4
|
variableName,
|
|
5
5
|
value,
|
|
6
6
|
mobileValue
|
|
7
|
-
}) =>
|
|
7
|
+
}) =>
|
|
8
|
+
/*#__PURE__*/
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-global-styles -- Ignored via go/DSP-18766
|
|
10
|
+
React.createElement("style", null, `:root{--${variableName}:${value}px;}`, mobileValue && `${UNSAFE_media.below.sm} { :root{--${variableName}:${mobileValue}px;} }`));
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
*/
|
|
2
5
|
/** @jsx jsx */
|
|
3
6
|
import { useEffect } from 'react';
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
9
|
import { css, jsx } from '@emotion/react';
|
|
5
10
|
import { BANNER_HEIGHT, DEFAULT_TOP_NAVIGATION_HEIGHT, LEFT_PANEL_WIDTH, RIGHT_PANEL_WIDTH, TOP_NAVIGATION, TOP_NAVIGATION_HEIGHT, VAR_TOP_NAVIGATION_HEIGHT } from '../../common/constants';
|
|
6
11
|
import { getPageLayoutSlotSelector, resolveDimension } from '../../common/utils';
|
|
@@ -8,18 +13,20 @@ import { publishGridState, useSkipLink } from '../../controllers';
|
|
|
8
13
|
import SlotFocusRing from './internal/slot-focus-ring';
|
|
9
14
|
import SlotDimensions from './slot-dimensions';
|
|
10
15
|
const topNavigationStyles = css({
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
11
17
|
height: TOP_NAVIGATION_HEIGHT,
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
12
19
|
gridArea: TOP_NAVIGATION
|
|
13
20
|
});
|
|
14
21
|
const fixedStyles = css({
|
|
15
22
|
position: 'fixed',
|
|
16
23
|
zIndex: 2,
|
|
17
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
18
|
-
|
|
19
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
20
|
-
|
|
21
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
22
|
-
|
|
24
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
25
|
+
insetBlockStart: BANNER_HEIGHT,
|
|
26
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
27
|
+
insetInlineEnd: RIGHT_PANEL_WIDTH,
|
|
28
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
29
|
+
insetInlineStart: LEFT_PANEL_WIDTH
|
|
23
30
|
});
|
|
24
31
|
|
|
25
32
|
/**
|
|
@@ -3,8 +3,12 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
var _excluded = ["testId", "valueTextLabel", "isDisabled", "isLeftSidebarCollapsed", "label", "leftSidebarPercentageExpanded", "onKeyDown", "onMouseDown", "onBlur", "onFocus", "ref"];
|
|
5
5
|
/* eslint-disable react/react-in-jsx-scope */
|
|
6
|
+
/**
|
|
7
|
+
* @jsxRuntime classic
|
|
8
|
+
*/
|
|
6
9
|
/** @jsx jsx */
|
|
7
10
|
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
12
|
import { css, jsx } from '@emotion/react';
|
|
9
13
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
10
14
|
import { B200 } from '@atlaskit/theme/colors';
|
|
@@ -22,6 +26,7 @@ var grabAreaStyles = css({
|
|
|
22
26
|
backgroundColor: 'transparent',
|
|
23
27
|
border: 0,
|
|
24
28
|
cursor: 'ew-resize',
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
25
30
|
'&::-moz-focus-inner': {
|
|
26
31
|
border: 0
|
|
27
32
|
},
|
|
@@ -76,7 +81,9 @@ var GrabArea = function GrabArea(_ref) {
|
|
|
76
81
|
// usability.
|
|
77
82
|
,
|
|
78
83
|
role: "slider",
|
|
79
|
-
css: [grabAreaStyles, isLeftSidebarCollapsed && grabAreaCollapsedStyles,
|
|
84
|
+
css: [grabAreaStyles, isLeftSidebarCollapsed && grabAreaCollapsedStyles,
|
|
85
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
86
|
+
getBooleanFF('platform.design-system-team.page-layout-resize-button-fix_u0qxv') && isLeftSidebarCollapsed && grabAreaReducedHeightStyles],
|
|
80
87
|
"aria-orientation": "vertical",
|
|
81
88
|
"aria-valuenow": leftSidebarPercentageExpanded,
|
|
82
89
|
"aria-valuemin": 0,
|
|
@@ -3,8 +3,13 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
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; }
|
|
5
5
|
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; }
|
|
6
|
+
/**
|
|
7
|
+
* @jsxRuntime classic
|
|
8
|
+
*/
|
|
6
9
|
/** @jsx jsx */
|
|
7
10
|
import { Fragment, useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react';
|
|
11
|
+
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-global-styles, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
13
|
import { css, Global, jsx } from '@emotion/react';
|
|
9
14
|
import { bindAll } from 'bind-event-listener';
|
|
10
15
|
import rafSchd from 'raf-schd';
|
|
@@ -31,10 +36,11 @@ var showResizeButtonStyles = css({
|
|
|
31
36
|
|
|
32
37
|
// @ts-expect-error adding `!important` to style rules is currently a type error
|
|
33
38
|
var globalResizingStyles = css({
|
|
34
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
39
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
35
40
|
'*': {
|
|
36
41
|
// Setting the cursor to be `ew-resize` on all elements so that even if the user
|
|
37
42
|
// pointer slips off the resize handle, the cursor will still be the resize cursor
|
|
43
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
38
44
|
cursor: 'ew-resize !important',
|
|
39
45
|
// Blocking selection while resizing
|
|
40
46
|
// Notes:
|
|
@@ -42,12 +48,14 @@ var globalResizingStyles = css({
|
|
|
42
48
|
// - Safari + Firefox → all good
|
|
43
49
|
// - Chrome → This will undo the current selection while resizing (not ideal)
|
|
44
50
|
// - The current selection will resume after resizing
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
45
52
|
userSelect: 'none !important'
|
|
46
53
|
},
|
|
47
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
54
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
48
55
|
iframe: {
|
|
49
56
|
// Disabling pointer events on iframes when resizing
|
|
50
57
|
// as iframes will swallower user events when the user is over them
|
|
58
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
51
59
|
pointerEvents: 'none !important'
|
|
52
60
|
}
|
|
53
61
|
// Note: We _could_ also disable `pointer-events` on all elements during resizing.
|
|
@@ -2,8 +2,12 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
var _excluded = ["isLeftSidebarCollapsed", "label", "testId"];
|
|
5
|
+
/**
|
|
6
|
+
* @jsxRuntime classic
|
|
7
|
+
*/
|
|
5
8
|
/** @jsx jsx */
|
|
6
9
|
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
11
|
import { css, jsx } from '@emotion/react';
|
|
8
12
|
import ChevronRight from '@atlaskit/icon/glyph/chevron-right';
|
|
9
13
|
import { easeOut } from '@atlaskit/motion/curves';
|
|
@@ -48,11 +52,13 @@ var resizeIconButtonStyles = css({
|
|
|
48
52
|
outline: 0,
|
|
49
53
|
transform: 'translateX(-50%)',
|
|
50
54
|
transition: "\n background-color ".concat(smallDurationMs, "ms linear,\n color ").concat(smallDurationMs, "ms linear,\n opacity ").concat(mediumDurationMs, "ms ").concat(easeOut, "\n "),
|
|
55
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
51
56
|
':hover': {
|
|
52
57
|
backgroundColor: "var(--ds-background-selected-bold, ".concat(B100, ")"),
|
|
53
58
|
color: "var(--ds-text-inverse, ".concat(N0, ")"),
|
|
54
59
|
opacity: 1
|
|
55
60
|
},
|
|
61
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
56
62
|
':active, :focus': {
|
|
57
63
|
backgroundColor: "var(--ds-background-selected-bold-hovered, ".concat(B200, ")"),
|
|
58
64
|
color: "var(--ds-text-inverse, ".concat(N0, ")"),
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
7
|
import { css, jsx } from '@emotion/react';
|
|
4
8
|
import { easeOut } from '@atlaskit/motion';
|
|
5
9
|
import { useIsSidebarDragging } from '../../common/hooks';
|
|
@@ -9,11 +13,10 @@ var transitionDuration = '0.22s';
|
|
|
9
13
|
var shadowStyles = css({
|
|
10
14
|
width: 3,
|
|
11
15
|
position: 'absolute',
|
|
12
|
-
top: 0,
|
|
13
|
-
bottom: 0,
|
|
14
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
15
|
-
left: -1,
|
|
16
16
|
background: "var(--ds-border, ".concat("linear-gradient(".concat(direction, ", ").concat(colorStops, ")"), ")"),
|
|
17
|
+
insetBlockEnd: 0,
|
|
18
|
+
insetBlockStart: 0,
|
|
19
|
+
insetInlineStart: -1,
|
|
17
20
|
opacity: 0.5,
|
|
18
21
|
pointerEvents: 'none',
|
|
19
22
|
transitionDuration: transitionDuration,
|
|
@@ -22,8 +25,8 @@ var shadowStyles = css({
|
|
|
22
25
|
});
|
|
23
26
|
var draggingStyles = css({
|
|
24
27
|
width: 6,
|
|
25
|
-
left: "var(--ds-space-negative-075, -6px)",
|
|
26
28
|
background: "var(--ds-background-neutral-subtle, ".concat("linear-gradient(".concat(direction, ", ").concat(colorStops, ")"), ")"),
|
|
29
|
+
insetInlineStart: "var(--ds-space-negative-075, -6px)",
|
|
27
30
|
opacity: 0.8
|
|
28
31
|
});
|
|
29
32
|
var Shadow = function Shadow(_ref) {
|
|
@@ -3,15 +3,19 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
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; }
|
|
4
4
|
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; }
|
|
5
5
|
/* eslint-disable @repo/internal/dom-events/no-unsafe-event-listeners */
|
|
6
|
+
/**
|
|
7
|
+
* @jsxRuntime classic
|
|
8
|
+
*/
|
|
6
9
|
/** @jsx jsx */
|
|
7
10
|
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
12
|
import { css, jsx } from '@emotion/react';
|
|
9
13
|
import Link from '@atlaskit/link';
|
|
10
14
|
import { easeOut, prefersReducedMotion } from '@atlaskit/motion';
|
|
11
15
|
import { N30A, N60A } from '@atlaskit/theme/colors';
|
|
12
16
|
import { DEFAULT_I18N_PROPS_SKIP_LINKS, PAGE_LAYOUT_CONTAINER_SELECTOR } from '../../common/constants';
|
|
13
17
|
import { useSkipLinks } from '../../controllers';
|
|
14
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
18
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
15
19
|
var prefersReducedMotionStyles = css(prefersReducedMotion());
|
|
16
20
|
var skipLinkStyles = css({
|
|
17
21
|
margin: "var(--ds-space-250, 10px)",
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
+
/**
|
|
4
|
+
* @jsxRuntime classic
|
|
5
|
+
*/
|
|
3
6
|
/** @jsx jsx */
|
|
4
7
|
import { useEffect } from 'react';
|
|
8
|
+
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
10
|
import { css, jsx } from '@emotion/react';
|
|
6
11
|
import { BANNER, BANNER_HEIGHT, DEFAULT_BANNER_HEIGHT, LEFT_PANEL_WIDTH, RIGHT_PANEL_WIDTH, VAR_BANNER_HEIGHT } from '../../common/constants';
|
|
7
12
|
import { getPageLayoutSlotSelector, resolveDimension } from '../../common/utils';
|
|
@@ -9,17 +14,19 @@ import { publishGridState, useSkipLink } from '../../controllers';
|
|
|
9
14
|
import SlotFocusRing from './internal/slot-focus-ring';
|
|
10
15
|
import SlotDimensions from './slot-dimensions';
|
|
11
16
|
var bannerStyles = css({
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
12
18
|
height: BANNER_HEIGHT,
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
13
20
|
gridArea: BANNER
|
|
14
21
|
});
|
|
15
22
|
var bannerFixedStyles = css({
|
|
16
23
|
position: 'fixed',
|
|
17
24
|
zIndex: 2,
|
|
18
|
-
|
|
19
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
20
|
-
|
|
21
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
22
|
-
|
|
25
|
+
insetBlockStart: 0,
|
|
26
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
27
|
+
insetInlineEnd: RIGHT_PANEL_WIDTH,
|
|
28
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
29
|
+
insetInlineStart: LEFT_PANEL_WIDTH
|
|
23
30
|
});
|
|
24
31
|
|
|
25
32
|
/**
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
7
|
import { css, jsx } from '@emotion/react';
|
|
4
8
|
import { CONTENT } from '../../common/constants';
|
|
5
9
|
var contentStyles = css({
|
|
6
10
|
display: 'flex',
|
|
7
11
|
height: '100%',
|
|
8
12
|
position: 'relative',
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
9
14
|
gridArea: CONTENT
|
|
10
15
|
});
|
|
11
16
|
|
|
@@ -1,24 +1,35 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
*/
|
|
2
5
|
/** @jsx jsx */
|
|
3
6
|
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
8
|
import { css, jsx } from '@emotion/react';
|
|
5
9
|
import { easeOut, prefersReducedMotion } from '@atlaskit/motion';
|
|
6
10
|
import { UNSAFE_media } from '@atlaskit/primitives/responsive';
|
|
7
11
|
import { BANNER_HEIGHT, LEFT_PANEL_WIDTH, LEFT_SIDEBAR_FLYOUT_WIDTH, LEFT_SIDEBAR_WIDTH, MAX_MOBILE_SIDEBAR_FLYOUT_WIDTH, MOBILE_COLLAPSED_LEFT_SIDEBAR_WIDTH, TOP_NAVIGATION_HEIGHT, TRANSITION_DURATION } from '../../../common/constants';
|
|
8
12
|
import { useIsSidebarDragging } from '../../../common/hooks';
|
|
9
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
13
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
10
14
|
var prefersReducedMotionStyles = css(prefersReducedMotion());
|
|
11
15
|
var mobileStyles = css(_defineProperty({}, UNSAFE_media.below.sm, {
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
12
17
|
width: "".concat(MOBILE_COLLAPSED_LEFT_SIDEBAR_WIDTH, "px"),
|
|
13
18
|
position: 'fixed',
|
|
14
19
|
insetBlockEnd: 0,
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
15
21
|
insetBlockStart: "calc(".concat(BANNER_HEIGHT, " + ").concat(TOP_NAVIGATION_HEIGHT, ")"),
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
16
23
|
insetInlineStart: "".concat(LEFT_PANEL_WIDTH),
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
17
25
|
transition: "width ".concat(TRANSITION_DURATION, "ms ").concat(easeOut, " 0s")
|
|
18
26
|
}));
|
|
19
27
|
var mobileInnerFlyoutStyles = css(_defineProperty({}, UNSAFE_media.below.sm, {
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
20
29
|
width: "min(90vw, ".concat(MAX_MOBILE_SIDEBAR_FLYOUT_WIDTH, "px)"),
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
21
31
|
maxWidth: MAX_MOBILE_SIDEBAR_FLYOUT_WIDTH,
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
22
33
|
transition: "width ".concat(TRANSITION_DURATION, "ms ").concat(easeOut, " 0s, box-shadow ").concat(TRANSITION_DURATION, "ms ").concat(easeOut, " 0s")
|
|
23
34
|
}));
|
|
24
35
|
|
|
@@ -29,14 +40,19 @@ var mobileInnerFlyoutStyles = css(_defineProperty({}, UNSAFE_media.below.sm, {
|
|
|
29
40
|
* out of its flex container and Main would stretch to occupy all the space.
|
|
30
41
|
*/
|
|
31
42
|
var fixedInnerStyles = css({
|
|
43
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
32
44
|
width: "".concat(LEFT_SIDEBAR_WIDTH),
|
|
33
45
|
position: 'fixed',
|
|
34
46
|
insetBlockEnd: 0,
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
35
48
|
insetBlockStart: "calc(".concat(BANNER_HEIGHT, " + ").concat(TOP_NAVIGATION_HEIGHT, ")"),
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
36
50
|
insetInlineStart: "".concat(LEFT_PANEL_WIDTH),
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
37
52
|
transition: "width ".concat(TRANSITION_DURATION, "ms ").concat(easeOut, " 0s")
|
|
38
53
|
});
|
|
39
54
|
var fixedInnerFlyoutStyles = css({
|
|
55
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
40
56
|
width: LEFT_SIDEBAR_FLYOUT_WIDTH
|
|
41
57
|
});
|
|
42
58
|
|