@atlaskit/page-layout 1.6.3 → 1.6.5
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 +12 -0
- package/__perf__/utils/perf-example.tsx +1 -1
- package/__perf__/utils/product-integration/notifications-popup.tsx +2 -0
- package/__perf__/utils/product-integration/sample-footer.tsx +2 -2
- package/__perf__/utils/product-integration/sample-header.tsx +1 -3
- package/dist/cjs/components/resize-control/index.js +1 -0
- package/dist/cjs/components/resize-control/resize-button.js +5 -5
- package/dist/cjs/components/resize-control/shadow.js +2 -0
- package/dist/cjs/components/skip-links/skip-link-components.js +4 -1
- package/dist/cjs/components/slots/banner-slot.js +2 -0
- package/dist/cjs/components/slots/internal/left-sidebar-inner.js +2 -0
- package/dist/cjs/components/slots/main.js +1 -0
- package/dist/cjs/components/slots/right-sidebar.js +2 -0
- package/dist/cjs/components/slots/top-navigation.js +3 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/resize-control/index.js +1 -0
- package/dist/es2019/components/resize-control/resize-button.js +5 -5
- package/dist/es2019/components/resize-control/shadow.js +2 -0
- package/dist/es2019/components/skip-links/skip-link-components.js +4 -1
- package/dist/es2019/components/slots/banner-slot.js +2 -0
- package/dist/es2019/components/slots/internal/left-sidebar-inner.js +2 -0
- package/dist/es2019/components/slots/main.js +1 -0
- package/dist/es2019/components/slots/right-sidebar.js +2 -0
- package/dist/es2019/components/slots/top-navigation.js +3 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/resize-control/index.js +1 -0
- package/dist/esm/components/resize-control/resize-button.js +5 -5
- package/dist/esm/components/resize-control/shadow.js +2 -0
- package/dist/esm/components/skip-links/skip-link-components.js +4 -1
- package/dist/esm/components/slots/banner-slot.js +2 -0
- package/dist/esm/components/slots/internal/left-sidebar-inner.js +2 -0
- package/dist/esm/components/slots/main.js +1 -0
- package/dist/esm/components/slots/right-sidebar.js +2 -0
- package/dist/esm/components/slots/top-navigation.js +3 -0
- package/dist/esm/version.json +1 -1
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/page-layout
|
|
2
2
|
|
|
3
|
+
## 1.6.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`e7ea6832ad2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e7ea6832ad2) - Bans the use of React.FC/React.FunctionComponent type in ADS components as part of the React 18 migration work. The change is internal only and should not introduce any changes for the component consumers.
|
|
8
|
+
|
|
9
|
+
## 1.6.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`b1bdec7cce2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b1bdec7cce2) - Internal change to enforce token usage for spacing properties. There is no expected visual or behaviour change.
|
|
14
|
+
|
|
3
15
|
## 1.6.3
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -18,7 +18,7 @@ import Sidebar from './product-integration/side-navigation';
|
|
|
18
18
|
const wrapperStyles = css({
|
|
19
19
|
boxSizing: 'border-box',
|
|
20
20
|
height: '100%',
|
|
21
|
-
padding:
|
|
21
|
+
padding: token('space.100', '8px'),
|
|
22
22
|
backgroundColor: token('color.background.neutral.subtle', 'white'),
|
|
23
23
|
outlineOffset: -4,
|
|
24
24
|
overflowY: 'auto',
|
|
@@ -13,7 +13,9 @@ const wrapperStyles = css({
|
|
|
13
13
|
display: 'flex',
|
|
14
14
|
width: 540,
|
|
15
15
|
height: 'calc(100vh - 200px)',
|
|
16
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
16
17
|
paddingTop: 18,
|
|
18
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
17
19
|
paddingLeft: 18,
|
|
18
20
|
});
|
|
19
21
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import
|
|
2
|
+
import { Fragment } from 'react';
|
|
3
3
|
|
|
4
4
|
import { css, jsx } from '@emotion/react';
|
|
5
5
|
|
|
@@ -8,7 +8,7 @@ import { Footer } from '@atlaskit/side-navigation';
|
|
|
8
8
|
import { B400, N200 } from '@atlaskit/theme/colors';
|
|
9
9
|
import { token } from '@atlaskit/tokens';
|
|
10
10
|
|
|
11
|
-
const Container
|
|
11
|
+
const Container = (props: CustomItemComponentProps) => {
|
|
12
12
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
13
13
|
return <div {...props} />;
|
|
14
14
|
};
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
|
|
4
2
|
import { jsx } from '@emotion/react';
|
|
5
3
|
|
|
6
4
|
import Icon from '@atlaskit/icon';
|
|
7
5
|
import { CustomItemComponentProps } from '@atlaskit/menu';
|
|
8
6
|
import { Header } from '@atlaskit/side-navigation';
|
|
9
7
|
|
|
10
|
-
const Container
|
|
8
|
+
const Container = (props: CustomItemComponentProps) => {
|
|
11
9
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
12
10
|
return <div {...props} />;
|
|
13
11
|
};
|
|
@@ -18,17 +18,17 @@ var _excluded = ["isLeftSidebarCollapsed", "label", "testId"];
|
|
|
18
18
|
/** @jsx jsx */
|
|
19
19
|
var increaseHitAreaStyles = (0, _react.css)({
|
|
20
20
|
position: 'absolute',
|
|
21
|
-
top: -
|
|
22
|
-
right: -
|
|
23
|
-
bottom: -
|
|
24
|
-
left: -
|
|
21
|
+
top: "calc(-1 * ".concat("var(--ds-space-100, 8px)", ")"),
|
|
22
|
+
right: "calc(-1 * ".concat("var(--ds-space-150, 12px)", ")"),
|
|
23
|
+
bottom: "calc(-1 * ".concat("var(--ds-space-100, 8px)", ")"),
|
|
24
|
+
left: "calc(-1 * ".concat("var(--ds-space-100, 8px)", ")")
|
|
25
25
|
});
|
|
26
26
|
var resizeIconButtonStyles = (0, _react.css)({
|
|
27
27
|
width: 24,
|
|
28
28
|
height: 24,
|
|
29
29
|
padding: 0,
|
|
30
30
|
position: 'absolute',
|
|
31
|
-
top:
|
|
31
|
+
top: "var(--ds-space-400, 32px)",
|
|
32
32
|
left: 0,
|
|
33
33
|
backgroundColor: "var(--ds-surface-overlay, ".concat(_colors.N0, ")"),
|
|
34
34
|
border: 0,
|
|
@@ -17,6 +17,7 @@ var shadowStyles = (0, _react.css)({
|
|
|
17
17
|
position: 'absolute',
|
|
18
18
|
top: 0,
|
|
19
19
|
bottom: 0,
|
|
20
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
20
21
|
left: -1,
|
|
21
22
|
background: "var(--ds-border, ".concat("linear-gradient(".concat(direction, ", ").concat(colorStops, ")"), ")"),
|
|
22
23
|
opacity: 0.5,
|
|
@@ -27,6 +28,7 @@ var shadowStyles = (0, _react.css)({
|
|
|
27
28
|
});
|
|
28
29
|
var draggingStyles = (0, _react.css)({
|
|
29
30
|
width: 6,
|
|
31
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
30
32
|
left: -6,
|
|
31
33
|
background: "var(--ds-background-neutral-subtle, ".concat("linear-gradient(".concat(direction, ", ").concat(colorStops, ")"), ")"),
|
|
32
34
|
opacity: 0.8
|
|
@@ -17,10 +17,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
17
17
|
// eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
|
|
18
18
|
var prefersReducedMotionStyles = (0, _react.css)((0, _motion.prefersReducedMotion)());
|
|
19
19
|
var skipLinkStyles = (0, _react.css)({
|
|
20
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
20
21
|
margin: 10,
|
|
22
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
21
23
|
padding: '0.8rem 1rem',
|
|
22
24
|
position: 'fixed',
|
|
23
25
|
zIndex: -1,
|
|
26
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
24
27
|
left: -999999,
|
|
25
28
|
background: "var(--ds-surface-overlay, white)",
|
|
26
29
|
border: 'none',
|
|
@@ -45,7 +48,7 @@ var skipLinkHeadingStyles = (0, _react.css)({
|
|
|
45
48
|
fontWeight: 600
|
|
46
49
|
});
|
|
47
50
|
var skipLinkListStyles = (0, _react.css)({
|
|
48
|
-
marginTop:
|
|
51
|
+
marginTop: "var(--ds-space-050, 4px)",
|
|
49
52
|
paddingLeft: 0,
|
|
50
53
|
listStylePosition: 'outside',
|
|
51
54
|
listStyleType: 'none'
|
|
@@ -24,7 +24,9 @@ var bannerFixedStyles = (0, _react2.css)({
|
|
|
24
24
|
position: 'fixed',
|
|
25
25
|
zIndex: 2,
|
|
26
26
|
top: 0,
|
|
27
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
27
28
|
right: _constants.RIGHT_PANEL_WIDTH,
|
|
29
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
28
30
|
left: _constants.LEFT_PANEL_WIDTH
|
|
29
31
|
});
|
|
30
32
|
|
|
@@ -22,8 +22,10 @@ var prefersReducedMotionStyles = (0, _react.css)((0, _motion.prefersReducedMotio
|
|
|
22
22
|
var fixedInnerStyles = (0, _react.css)({
|
|
23
23
|
width: "".concat(_constants.LEFT_SIDEBAR_WIDTH),
|
|
24
24
|
position: 'fixed',
|
|
25
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
25
26
|
top: "calc(".concat(_constants.BANNER_HEIGHT, " + ").concat(_constants.TOP_NAVIGATION_HEIGHT, ")"),
|
|
26
27
|
bottom: 0,
|
|
28
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
27
29
|
left: "".concat(_constants.LEFT_PANEL_WIDTH),
|
|
28
30
|
transition: "width ".concat(_constants.TRANSITION_DURATION, "ms ").concat(_motion.easeOut, " 0s")
|
|
29
31
|
});
|
|
@@ -39,6 +39,7 @@ var draggingStyles = (0, _react2.css)({
|
|
|
39
39
|
* while main remains in place.
|
|
40
40
|
*/
|
|
41
41
|
var flyoutStyles = (0, _react2.css)({
|
|
42
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
42
43
|
marginLeft: "calc(-1 * var(--".concat(_constants.VAR_LEFT_SIDEBAR_FLYOUT, ", ").concat(_constants.DEFAULT_LEFT_SIDEBAR_FLYOUT_WIDTH, "px) + ").concat(_constants.COLLAPSED_LEFT_SIDEBAR_WIDTH, "px)")
|
|
43
44
|
});
|
|
44
45
|
|
|
@@ -29,7 +29,9 @@ var fixedInnerStyles = (0, _react2.css)({
|
|
|
29
29
|
*/
|
|
30
30
|
width: _constants.RIGHT_SIDEBAR_WIDTH,
|
|
31
31
|
position: 'fixed',
|
|
32
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
32
33
|
top: "calc(".concat(_constants.BANNER_HEIGHT, " + ").concat(_constants.TOP_NAVIGATION_HEIGHT, ")"),
|
|
34
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
33
35
|
right: "calc(".concat(_constants.RIGHT_PANEL_WIDTH, ")"),
|
|
34
36
|
bottom: 0
|
|
35
37
|
});
|
|
@@ -23,8 +23,11 @@ var topNavigationStyles = (0, _react2.css)({
|
|
|
23
23
|
var fixedStyles = (0, _react2.css)({
|
|
24
24
|
position: 'fixed',
|
|
25
25
|
zIndex: 2,
|
|
26
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
26
27
|
top: _constants.BANNER_HEIGHT,
|
|
28
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
27
29
|
right: _constants.RIGHT_PANEL_WIDTH,
|
|
30
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
28
31
|
left: _constants.LEFT_PANEL_WIDTH
|
|
29
32
|
});
|
|
30
33
|
|
package/dist/cjs/version.json
CHANGED
|
@@ -9,17 +9,17 @@ import { B100, B200, N0, N200, N30A } from '@atlaskit/theme/colors';
|
|
|
9
9
|
import { RESIZE_BUTTON_SELECTOR } from '../../common/constants';
|
|
10
10
|
const increaseHitAreaStyles = css({
|
|
11
11
|
position: 'absolute',
|
|
12
|
-
top: -
|
|
13
|
-
right: -
|
|
14
|
-
bottom: -
|
|
15
|
-
left: -
|
|
12
|
+
top: `calc(-1 * ${"var(--ds-space-100, 8px)"})`,
|
|
13
|
+
right: `calc(-1 * ${"var(--ds-space-150, 12px)"})`,
|
|
14
|
+
bottom: `calc(-1 * ${"var(--ds-space-100, 8px)"})`,
|
|
15
|
+
left: `calc(-1 * ${"var(--ds-space-100, 8px)"})`
|
|
16
16
|
});
|
|
17
17
|
const resizeIconButtonStyles = css({
|
|
18
18
|
width: 24,
|
|
19
19
|
height: 24,
|
|
20
20
|
padding: 0,
|
|
21
21
|
position: 'absolute',
|
|
22
|
-
top:
|
|
22
|
+
top: "var(--ds-space-400, 32px)",
|
|
23
23
|
left: 0,
|
|
24
24
|
backgroundColor: `var(--ds-surface-overlay, ${N0})`,
|
|
25
25
|
border: 0,
|
|
@@ -16,6 +16,7 @@ const shadowStyles = css({
|
|
|
16
16
|
position: 'absolute',
|
|
17
17
|
top: 0,
|
|
18
18
|
bottom: 0,
|
|
19
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
19
20
|
left: -1,
|
|
20
21
|
background: `var(--ds-border, ${`linear-gradient(${direction}, ${colorStops})`})`,
|
|
21
22
|
opacity: 0.5,
|
|
@@ -26,6 +27,7 @@ const shadowStyles = css({
|
|
|
26
27
|
});
|
|
27
28
|
const draggingStyles = css({
|
|
28
29
|
width: 6,
|
|
30
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
29
31
|
left: -6,
|
|
30
32
|
background: `var(--ds-background-neutral-subtle, ${`linear-gradient(${direction}, ${colorStops})`})`,
|
|
31
33
|
opacity: 0.8
|
|
@@ -9,10 +9,13 @@ import { useSkipLinks } from '../../controllers';
|
|
|
9
9
|
// eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
|
|
10
10
|
const prefersReducedMotionStyles = css(prefersReducedMotion());
|
|
11
11
|
const skipLinkStyles = css({
|
|
12
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
12
13
|
margin: 10,
|
|
14
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
13
15
|
padding: '0.8rem 1rem',
|
|
14
16
|
position: 'fixed',
|
|
15
17
|
zIndex: -1,
|
|
18
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
16
19
|
left: -999999,
|
|
17
20
|
background: "var(--ds-surface-overlay, white)",
|
|
18
21
|
border: 'none',
|
|
@@ -37,7 +40,7 @@ const skipLinkHeadingStyles = css({
|
|
|
37
40
|
fontWeight: 600
|
|
38
41
|
});
|
|
39
42
|
const skipLinkListStyles = css({
|
|
40
|
-
marginTop:
|
|
43
|
+
marginTop: "var(--ds-space-050, 4px)",
|
|
41
44
|
paddingLeft: 0,
|
|
42
45
|
listStylePosition: 'outside',
|
|
43
46
|
listStyleType: 'none'
|
|
@@ -15,7 +15,9 @@ const bannerFixedStyles = css({
|
|
|
15
15
|
position: 'fixed',
|
|
16
16
|
zIndex: 2,
|
|
17
17
|
top: 0,
|
|
18
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
18
19
|
right: RIGHT_PANEL_WIDTH,
|
|
20
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
19
21
|
left: LEFT_PANEL_WIDTH
|
|
20
22
|
});
|
|
21
23
|
|
|
@@ -16,8 +16,10 @@ const prefersReducedMotionStyles = css(prefersReducedMotion());
|
|
|
16
16
|
const fixedInnerStyles = css({
|
|
17
17
|
width: `${LEFT_SIDEBAR_WIDTH}`,
|
|
18
18
|
position: 'fixed',
|
|
19
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
19
20
|
top: `calc(${BANNER_HEIGHT} + ${TOP_NAVIGATION_HEIGHT})`,
|
|
20
21
|
bottom: 0,
|
|
22
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
21
23
|
left: `${LEFT_PANEL_WIDTH}`,
|
|
22
24
|
transition: `width ${TRANSITION_DURATION}ms ${easeOut} 0s`
|
|
23
25
|
});
|
|
@@ -32,6 +32,7 @@ const draggingStyles = css({
|
|
|
32
32
|
* while main remains in place.
|
|
33
33
|
*/
|
|
34
34
|
const flyoutStyles = css({
|
|
35
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
35
36
|
marginLeft: `calc(-1 * var(--${VAR_LEFT_SIDEBAR_FLYOUT}, ${DEFAULT_LEFT_SIDEBAR_FLYOUT_WIDTH}px) + ${COLLAPSED_LEFT_SIDEBAR_WIDTH}px)`
|
|
36
37
|
});
|
|
37
38
|
|
|
@@ -21,7 +21,9 @@ const fixedInnerStyles = css({
|
|
|
21
21
|
*/
|
|
22
22
|
width: RIGHT_SIDEBAR_WIDTH,
|
|
23
23
|
position: 'fixed',
|
|
24
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
24
25
|
top: `calc(${BANNER_HEIGHT} + ${TOP_NAVIGATION_HEIGHT})`,
|
|
26
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
25
27
|
right: `calc(${RIGHT_PANEL_WIDTH})`,
|
|
26
28
|
bottom: 0
|
|
27
29
|
});
|
|
@@ -14,8 +14,11 @@ const topNavigationStyles = css({
|
|
|
14
14
|
const fixedStyles = css({
|
|
15
15
|
position: 'fixed',
|
|
16
16
|
zIndex: 2,
|
|
17
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
17
18
|
top: BANNER_HEIGHT,
|
|
19
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
18
20
|
right: RIGHT_PANEL_WIDTH,
|
|
21
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
19
22
|
left: LEFT_PANEL_WIDTH
|
|
20
23
|
});
|
|
21
24
|
|
package/dist/es2019/version.json
CHANGED
|
@@ -12,17 +12,17 @@ import { B100, B200, N0, N200, N30A } from '@atlaskit/theme/colors';
|
|
|
12
12
|
import { RESIZE_BUTTON_SELECTOR } from '../../common/constants';
|
|
13
13
|
var increaseHitAreaStyles = css({
|
|
14
14
|
position: 'absolute',
|
|
15
|
-
top: -
|
|
16
|
-
right: -
|
|
17
|
-
bottom: -
|
|
18
|
-
left: -
|
|
15
|
+
top: "calc(-1 * ".concat("var(--ds-space-100, 8px)", ")"),
|
|
16
|
+
right: "calc(-1 * ".concat("var(--ds-space-150, 12px)", ")"),
|
|
17
|
+
bottom: "calc(-1 * ".concat("var(--ds-space-100, 8px)", ")"),
|
|
18
|
+
left: "calc(-1 * ".concat("var(--ds-space-100, 8px)", ")")
|
|
19
19
|
});
|
|
20
20
|
var resizeIconButtonStyles = css({
|
|
21
21
|
width: 24,
|
|
22
22
|
height: 24,
|
|
23
23
|
padding: 0,
|
|
24
24
|
position: 'absolute',
|
|
25
|
-
top:
|
|
25
|
+
top: "var(--ds-space-400, 32px)",
|
|
26
26
|
left: 0,
|
|
27
27
|
backgroundColor: "var(--ds-surface-overlay, ".concat(N0, ")"),
|
|
28
28
|
border: 0,
|
|
@@ -11,6 +11,7 @@ var shadowStyles = css({
|
|
|
11
11
|
position: 'absolute',
|
|
12
12
|
top: 0,
|
|
13
13
|
bottom: 0,
|
|
14
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
14
15
|
left: -1,
|
|
15
16
|
background: "var(--ds-border, ".concat("linear-gradient(".concat(direction, ", ").concat(colorStops, ")"), ")"),
|
|
16
17
|
opacity: 0.5,
|
|
@@ -21,6 +22,7 @@ var shadowStyles = css({
|
|
|
21
22
|
});
|
|
22
23
|
var draggingStyles = css({
|
|
23
24
|
width: 6,
|
|
25
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
24
26
|
left: -6,
|
|
25
27
|
background: "var(--ds-background-neutral-subtle, ".concat("linear-gradient(".concat(direction, ", ").concat(colorStops, ")"), ")"),
|
|
26
28
|
opacity: 0.8
|
|
@@ -13,10 +13,13 @@ import { useSkipLinks } from '../../controllers';
|
|
|
13
13
|
// eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
|
|
14
14
|
var prefersReducedMotionStyles = css(prefersReducedMotion());
|
|
15
15
|
var skipLinkStyles = css({
|
|
16
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
16
17
|
margin: 10,
|
|
18
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
17
19
|
padding: '0.8rem 1rem',
|
|
18
20
|
position: 'fixed',
|
|
19
21
|
zIndex: -1,
|
|
22
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
20
23
|
left: -999999,
|
|
21
24
|
background: "var(--ds-surface-overlay, white)",
|
|
22
25
|
border: 'none',
|
|
@@ -41,7 +44,7 @@ var skipLinkHeadingStyles = css({
|
|
|
41
44
|
fontWeight: 600
|
|
42
45
|
});
|
|
43
46
|
var skipLinkListStyles = css({
|
|
44
|
-
marginTop:
|
|
47
|
+
marginTop: "var(--ds-space-050, 4px)",
|
|
45
48
|
paddingLeft: 0,
|
|
46
49
|
listStylePosition: 'outside',
|
|
47
50
|
listStyleType: 'none'
|
|
@@ -16,7 +16,9 @@ var bannerFixedStyles = css({
|
|
|
16
16
|
position: 'fixed',
|
|
17
17
|
zIndex: 2,
|
|
18
18
|
top: 0,
|
|
19
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
19
20
|
right: RIGHT_PANEL_WIDTH,
|
|
21
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
20
22
|
left: LEFT_PANEL_WIDTH
|
|
21
23
|
});
|
|
22
24
|
|
|
@@ -16,8 +16,10 @@ var prefersReducedMotionStyles = css(prefersReducedMotion());
|
|
|
16
16
|
var fixedInnerStyles = css({
|
|
17
17
|
width: "".concat(LEFT_SIDEBAR_WIDTH),
|
|
18
18
|
position: 'fixed',
|
|
19
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
19
20
|
top: "calc(".concat(BANNER_HEIGHT, " + ").concat(TOP_NAVIGATION_HEIGHT, ")"),
|
|
20
21
|
bottom: 0,
|
|
22
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
21
23
|
left: "".concat(LEFT_PANEL_WIDTH),
|
|
22
24
|
transition: "width ".concat(TRANSITION_DURATION, "ms ").concat(easeOut, " 0s")
|
|
23
25
|
});
|
|
@@ -32,6 +32,7 @@ var draggingStyles = css({
|
|
|
32
32
|
* while main remains in place.
|
|
33
33
|
*/
|
|
34
34
|
var flyoutStyles = css({
|
|
35
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
35
36
|
marginLeft: "calc(-1 * var(--".concat(VAR_LEFT_SIDEBAR_FLYOUT, ", ").concat(DEFAULT_LEFT_SIDEBAR_FLYOUT_WIDTH, "px) + ").concat(COLLAPSED_LEFT_SIDEBAR_WIDTH, "px)")
|
|
36
37
|
});
|
|
37
38
|
|
|
@@ -22,7 +22,9 @@ var fixedInnerStyles = css({
|
|
|
22
22
|
*/
|
|
23
23
|
width: RIGHT_SIDEBAR_WIDTH,
|
|
24
24
|
position: 'fixed',
|
|
25
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
25
26
|
top: "calc(".concat(BANNER_HEIGHT, " + ").concat(TOP_NAVIGATION_HEIGHT, ")"),
|
|
27
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
26
28
|
right: "calc(".concat(RIGHT_PANEL_WIDTH, ")"),
|
|
27
29
|
bottom: 0
|
|
28
30
|
});
|
|
@@ -15,8 +15,11 @@ var topNavigationStyles = css({
|
|
|
15
15
|
var fixedStyles = css({
|
|
16
16
|
position: 'fixed',
|
|
17
17
|
zIndex: 2,
|
|
18
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
18
19
|
top: BANNER_HEIGHT,
|
|
20
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
19
21
|
right: RIGHT_PANEL_WIDTH,
|
|
22
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
20
23
|
left: LEFT_PANEL_WIDTH
|
|
21
24
|
});
|
|
22
25
|
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/page-layout",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.5",
|
|
4
4
|
"description": "A collection of components which let you compose an application's page layout.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@atlaskit/icon": "^21.12.0",
|
|
38
38
|
"@atlaskit/motion": "^1.4.0",
|
|
39
39
|
"@atlaskit/theme": "^12.5.0",
|
|
40
|
-
"@atlaskit/tokens": "^1.
|
|
40
|
+
"@atlaskit/tokens": "^1.5.0",
|
|
41
41
|
"@babel/runtime": "^7.0.0",
|
|
42
42
|
"@emotion/react": "^11.7.1",
|
|
43
43
|
"bind-event-listener": "^2.1.1",
|
|
@@ -95,7 +95,8 @@
|
|
|
95
95
|
"analytics-next"
|
|
96
96
|
],
|
|
97
97
|
"design-tokens": [
|
|
98
|
-
"color"
|
|
98
|
+
"color",
|
|
99
|
+
"spacing"
|
|
99
100
|
],
|
|
100
101
|
"theming": [
|
|
101
102
|
"react-context"
|