@atlaskit/page-layout 4.2.33 → 4.2.34
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 +8 -0
- package/dist/cjs/components/resize-control/grab-area.js +1 -2
- package/dist/cjs/components/resize-control/resize-button.js +6 -6
- package/dist/cjs/components/skip-links/skip-link-components.js +2 -3
- package/dist/cjs/components/slots/internal/slot-focus-ring.js +2 -3
- package/dist/cjs/components/slots/left-sidebar.js +1 -2
- package/dist/es2019/components/resize-control/grab-area.js +1 -2
- package/dist/es2019/components/resize-control/resize-button.js +7 -7
- package/dist/es2019/components/skip-links/skip-link-components.js +2 -3
- package/dist/es2019/components/slots/internal/slot-focus-ring.js +2 -3
- package/dist/es2019/components/slots/left-sidebar.js +1 -2
- package/dist/esm/components/resize-control/grab-area.js +1 -2
- package/dist/esm/components/resize-control/resize-button.js +7 -7
- package/dist/esm/components/skip-links/skip-link-components.js +2 -3
- package/dist/esm/components/slots/internal/slot-focus-ring.js +2 -3
- package/dist/esm/components/slots/left-sidebar.js +1 -2
- package/dist/types/common/types.d.ts +3 -3
- package/dist/types/common/utils.d.ts +1 -1
- package/dist/types/components/resize-control/grab-area.d.ts +2 -2
- package/dist/types/components/resize-control/resize-button.d.ts +1 -1
- package/dist/types/components/resize-control/types.d.ts +2 -2
- package/dist/types/components/skip-links/skip-link-components.d.ts +1 -1
- package/dist/types/components/slots/banner-slot.d.ts +1 -1
- package/dist/types/components/slots/content.d.ts +1 -1
- package/dist/types/components/slots/left-panel.d.ts +1 -1
- package/dist/types/components/slots/left-sidebar-without-resize.d.ts +1 -1
- package/dist/types/components/slots/left-sidebar.d.ts +1 -1
- package/dist/types/components/slots/main.d.ts +1 -1
- package/dist/types/components/slots/page-layout.d.ts +1 -1
- package/dist/types/components/slots/right-panel.d.ts +1 -1
- package/dist/types/components/slots/right-sidebar.d.ts +1 -1
- package/dist/types/components/slots/top-navigation.d.ts +1 -1
- package/dist/types/controllers/sidebar-resize-controller.d.ts +1 -1
- package/dist/types/controllers/use-page-layout-grid.d.ts +1 -1
- package/dist/types-ts4.5/common/types.d.ts +3 -3
- package/dist/types-ts4.5/common/utils.d.ts +1 -1
- package/dist/types-ts4.5/components/resize-control/grab-area.d.ts +2 -2
- package/dist/types-ts4.5/components/resize-control/resize-button.d.ts +1 -1
- package/dist/types-ts4.5/components/resize-control/types.d.ts +2 -2
- package/dist/types-ts4.5/components/skip-links/skip-link-components.d.ts +1 -1
- package/dist/types-ts4.5/components/slots/banner-slot.d.ts +1 -1
- package/dist/types-ts4.5/components/slots/content.d.ts +1 -1
- package/dist/types-ts4.5/components/slots/left-panel.d.ts +1 -1
- package/dist/types-ts4.5/components/slots/left-sidebar-without-resize.d.ts +1 -1
- package/dist/types-ts4.5/components/slots/left-sidebar.d.ts +1 -1
- package/dist/types-ts4.5/components/slots/main.d.ts +1 -1
- package/dist/types-ts4.5/components/slots/page-layout.d.ts +1 -1
- package/dist/types-ts4.5/components/slots/right-panel.d.ts +1 -1
- package/dist/types-ts4.5/components/slots/right-sidebar.d.ts +1 -1
- package/dist/types-ts4.5/components/slots/top-navigation.d.ts +1 -1
- package/dist/types-ts4.5/controllers/sidebar-resize-controller.d.ts +1 -1
- package/dist/types-ts4.5/controllers/use-page-layout-grid.d.ts +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/page-layout
|
|
2
2
|
|
|
3
|
+
## 4.2.34
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`7aef1e49e90ea`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7aef1e49e90ea) -
|
|
8
|
+
Removes redundant fallback color values via @atlaskit/theme
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 4.2.33
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -11,7 +11,6 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
11
11
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
12
12
|
var React = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _react2 = require("@emotion/react");
|
|
14
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
15
14
|
var _constants = require("../../common/constants");
|
|
16
15
|
var _excluded = ["testId", "valueTextLabel", "isDisabled", "isLeftSidebarCollapsed", "label", "leftSidebarPercentageExpanded", "onKeyDown", "onMouseDown", "onBlur", "onFocus"];
|
|
17
16
|
/**
|
|
@@ -40,7 +39,7 @@ var grabAreaStyles = (0, _react2.css)({
|
|
|
40
39
|
'&:focus': {
|
|
41
40
|
outline: 0
|
|
42
41
|
},
|
|
43
|
-
'&:enabled:hover, &:enabled:focus, &:enabled:active': (0, _defineProperty2.default)({}, varLineColor, "var(--ds-border-selected,
|
|
42
|
+
'&:enabled:hover, &:enabled:focus, &:enabled:active': (0, _defineProperty2.default)({}, varLineColor, "var(--ds-border-selected, #1868DB)")
|
|
44
43
|
});
|
|
45
44
|
var grabAreaCollapsedStyles = (0, _react2.css)({
|
|
46
45
|
height: "calc(100% - ".concat("var(--ds-space-600, 3rem)", " * 2)"),
|
|
@@ -39,11 +39,11 @@ var resizeIconButtonStyles = (0, _react.css)({
|
|
|
39
39
|
height: 24,
|
|
40
40
|
padding: "var(--ds-space-0, 0px)",
|
|
41
41
|
position: 'absolute',
|
|
42
|
-
backgroundColor: "var(--ds-surface-overlay,
|
|
42
|
+
backgroundColor: "var(--ds-surface-overlay, #FFFFFF)",
|
|
43
43
|
border: 0,
|
|
44
44
|
borderRadius: "var(--ds-radius-full, 50%)",
|
|
45
45
|
boxShadow: "0 0 0 1px ".concat(_colors.N30A, ", 0 2px 4px 1px ").concat(_colors.N30A),
|
|
46
|
-
color: "var(--ds-text-subtle,
|
|
46
|
+
color: "var(--ds-text-subtle, #505258)",
|
|
47
47
|
cursor: 'pointer',
|
|
48
48
|
insetBlockStart: "var(--ds-space-400, 32px)",
|
|
49
49
|
insetInlineStart: 0,
|
|
@@ -57,14 +57,14 @@ var resizeIconButtonStyles = (0, _react.css)({
|
|
|
57
57
|
transition: "\n background-color ".concat(_durations.durations.small, "ms linear,\n color ").concat(_durations.durations.small, "ms linear,\n opacity ").concat(_durations.durations.medium, "ms ").concat(_curves.easeOut, "\n "),
|
|
58
58
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
59
59
|
':hover': {
|
|
60
|
-
backgroundColor: "var(--ds-background-selected-bold,
|
|
61
|
-
color: "var(--ds-text-inverse,
|
|
60
|
+
backgroundColor: "var(--ds-background-selected-bold, #1868DB)",
|
|
61
|
+
color: "var(--ds-text-inverse, #FFFFFF)",
|
|
62
62
|
opacity: 1
|
|
63
63
|
},
|
|
64
64
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
65
65
|
':active, :focus': {
|
|
66
|
-
backgroundColor: "var(--ds-background-selected-bold-hovered,
|
|
67
|
-
color: "var(--ds-text-inverse,
|
|
66
|
+
backgroundColor: "var(--ds-background-selected-bold-hovered, #1558BC)",
|
|
67
|
+
color: "var(--ds-text-inverse, #FFFFFF)",
|
|
68
68
|
opacity: 1
|
|
69
69
|
}
|
|
70
70
|
});
|
|
@@ -10,7 +10,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
10
10
|
var _react = require("@emotion/react");
|
|
11
11
|
var _link = _interopRequireDefault(require("@atlaskit/link"));
|
|
12
12
|
var _motion = require("@atlaskit/motion");
|
|
13
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
14
13
|
var _constants = require("../../common/constants");
|
|
15
14
|
var _controllers = require("../../controllers");
|
|
16
15
|
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; }
|
|
@@ -25,10 +24,10 @@ var skipLinkStyles = (0, _react.css)({
|
|
|
25
24
|
padding: '0.8rem 1rem',
|
|
26
25
|
position: 'fixed',
|
|
27
26
|
zIndex: -1,
|
|
28
|
-
background: "var(--ds-surface-overlay,
|
|
27
|
+
background: "var(--ds-surface-overlay, #FFFFFF)",
|
|
29
28
|
border: 'none',
|
|
30
29
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
31
|
-
boxShadow: "var(--ds-shadow-overlay,
|
|
30
|
+
boxShadow: "var(--ds-shadow-overlay, 0px 8px 12px #1E1F2126, 0px 0px 1px #1E1F214f)",
|
|
32
31
|
insetInlineStart: -999999,
|
|
33
32
|
opacity: 0,
|
|
34
33
|
transform: 'translateY(-50%)',
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
9
8
|
/**
|
|
10
9
|
* @jsxRuntime classic
|
|
11
10
|
* @jsx jsx
|
|
@@ -19,7 +18,7 @@ var focusStyles = (0, _react.css)({
|
|
|
19
18
|
outline: 'none',
|
|
20
19
|
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
21
20
|
'> div': {
|
|
22
|
-
boxShadow: "0px 0px 0px 2px inset ".concat("var(--ds-border-focused,
|
|
21
|
+
boxShadow: "0px 0px 0px 2px inset ".concat("var(--ds-border-focused, #4688EC)"),
|
|
23
22
|
outline: 'none'
|
|
24
23
|
}
|
|
25
24
|
}
|
|
@@ -35,7 +34,7 @@ var sidebarFocusStyles = (0, _react.css)({
|
|
|
35
34
|
outline: 'none',
|
|
36
35
|
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
37
36
|
'> div > div': {
|
|
38
|
-
boxShadow: "0px 0px 0px 2px inset ".concat("var(--ds-border-focused,
|
|
37
|
+
boxShadow: "0px 0px 0px 2px inset ".concat("var(--ds-border-focused, #4688EC)"),
|
|
39
38
|
outline: 'none'
|
|
40
39
|
}
|
|
41
40
|
}
|
|
@@ -11,7 +11,6 @@ var _react2 = require("@emotion/react");
|
|
|
11
11
|
var _useCloseOnEscapePress = _interopRequireDefault(require("@atlaskit/ds-lib/use-close-on-escape-press"));
|
|
12
12
|
var _motion = require("@atlaskit/motion");
|
|
13
13
|
var _responsive = require("@atlaskit/primitives/responsive");
|
|
14
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
15
14
|
var _constants = require("../../common/constants");
|
|
16
15
|
var _utils = require("../../common/utils");
|
|
17
16
|
var _controllers = require("../../controllers");
|
|
@@ -29,7 +28,7 @@ var openBackdropStyles = (0, _react2.css)({
|
|
|
29
28
|
width: '100%',
|
|
30
29
|
height: '100%',
|
|
31
30
|
position: 'absolute',
|
|
32
|
-
background: "var(--ds-blanket,
|
|
31
|
+
background: "var(--ds-blanket, #050C1F75)",
|
|
33
32
|
opacity: 1
|
|
34
33
|
});
|
|
35
34
|
var hiddenBackdropStyles = (0, _react2.css)({
|
|
@@ -6,7 +6,6 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
|
-
import { B200 } from '@atlaskit/theme/colors';
|
|
10
9
|
import { GRAB_AREA_LINE_SELECTOR, GRAB_AREA_SELECTOR } from '../../common/constants';
|
|
11
10
|
/**
|
|
12
11
|
* Determines the color of the grab line.
|
|
@@ -29,7 +28,7 @@ const grabAreaStyles = css({
|
|
|
29
28
|
outline: 0
|
|
30
29
|
},
|
|
31
30
|
'&:enabled:hover, &:enabled:focus, &:enabled:active': {
|
|
32
|
-
[varLineColor]:
|
|
31
|
+
[varLineColor]: "var(--ds-border-selected, #1868DB)"
|
|
33
32
|
}
|
|
34
33
|
});
|
|
35
34
|
const grabAreaCollapsedStyles = css({
|
|
@@ -12,7 +12,7 @@ import ChevronRight from '@atlaskit/icon/core/chevron-right';
|
|
|
12
12
|
import { easeOut } from '@atlaskit/motion/curves';
|
|
13
13
|
import { durations } from '@atlaskit/motion/durations';
|
|
14
14
|
import { UNSAFE_media } from '@atlaskit/primitives/responsive';
|
|
15
|
-
import {
|
|
15
|
+
import { N30A } from '@atlaskit/theme/colors';
|
|
16
16
|
import { RESIZE_BUTTON_SELECTOR } from '../../common/constants';
|
|
17
17
|
const hitAreaSpanStyles = css({
|
|
18
18
|
position: 'absolute',
|
|
@@ -32,11 +32,11 @@ const resizeIconButtonStyles = css({
|
|
|
32
32
|
height: 24,
|
|
33
33
|
padding: "var(--ds-space-0, 0px)",
|
|
34
34
|
position: 'absolute',
|
|
35
|
-
backgroundColor:
|
|
35
|
+
backgroundColor: "var(--ds-surface-overlay, #FFFFFF)",
|
|
36
36
|
border: 0,
|
|
37
37
|
borderRadius: "var(--ds-radius-full, 50%)",
|
|
38
38
|
boxShadow: `0 0 0 1px ${N30A}, 0 2px 4px 1px ${N30A}`,
|
|
39
|
-
color:
|
|
39
|
+
color: "var(--ds-text-subtle, #505258)",
|
|
40
40
|
cursor: 'pointer',
|
|
41
41
|
insetBlockStart: "var(--ds-space-400, 32px)",
|
|
42
42
|
insetInlineStart: 0,
|
|
@@ -54,14 +54,14 @@ const resizeIconButtonStyles = css({
|
|
|
54
54
|
`,
|
|
55
55
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
56
56
|
':hover': {
|
|
57
|
-
backgroundColor:
|
|
58
|
-
color:
|
|
57
|
+
backgroundColor: "var(--ds-background-selected-bold, #1868DB)",
|
|
58
|
+
color: "var(--ds-text-inverse, #FFFFFF)",
|
|
59
59
|
opacity: 1
|
|
60
60
|
},
|
|
61
61
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
62
62
|
':active, :focus': {
|
|
63
|
-
backgroundColor:
|
|
64
|
-
color:
|
|
63
|
+
backgroundColor: "var(--ds-background-selected-bold-hovered, #1558BC)",
|
|
64
|
+
color: "var(--ds-text-inverse, #FFFFFF)",
|
|
65
65
|
opacity: 1
|
|
66
66
|
}
|
|
67
67
|
});
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import Link from '@atlaskit/link';
|
|
10
10
|
import { easeOut, prefersReducedMotion } from '@atlaskit/motion';
|
|
11
|
-
import { N30A, N60A } from '@atlaskit/theme/colors';
|
|
12
11
|
import { DEFAULT_I18N_PROPS_SKIP_LINKS, PAGE_LAYOUT_CONTAINER_SELECTOR } from '../../common/constants';
|
|
13
12
|
import { useSkipLinks } from '../../controllers';
|
|
14
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
|
|
@@ -18,10 +17,10 @@ const skipLinkStyles = css({
|
|
|
18
17
|
padding: '0.8rem 1rem',
|
|
19
18
|
position: 'fixed',
|
|
20
19
|
zIndex: -1,
|
|
21
|
-
background: "var(--ds-surface-overlay,
|
|
20
|
+
background: "var(--ds-surface-overlay, #FFFFFF)",
|
|
22
21
|
border: 'none',
|
|
23
22
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
24
|
-
boxShadow:
|
|
23
|
+
boxShadow: "var(--ds-shadow-overlay, 0px 8px 12px #1E1F2126, 0px 0px 1px #1E1F214f)",
|
|
25
24
|
insetInlineStart: -999999,
|
|
26
25
|
opacity: 0,
|
|
27
26
|
transform: 'translateY(-50%)',
|
|
@@ -5,14 +5,13 @@
|
|
|
5
5
|
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
7
7
|
import { ClassNames, css, jsx } from '@emotion/react';
|
|
8
|
-
import { B100 } from '@atlaskit/theme/colors';
|
|
9
8
|
const focusStyles = css({
|
|
10
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
11
10
|
':focus': {
|
|
12
11
|
outline: 'none',
|
|
13
12
|
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
14
13
|
'> div': {
|
|
15
|
-
boxShadow: `0px 0px 0px 2px inset ${
|
|
14
|
+
boxShadow: `0px 0px 0px 2px inset ${"var(--ds-border-focused, #4688EC)"}`,
|
|
16
15
|
outline: 'none'
|
|
17
16
|
}
|
|
18
17
|
}
|
|
@@ -28,7 +27,7 @@ const sidebarFocusStyles = css({
|
|
|
28
27
|
outline: 'none',
|
|
29
28
|
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
30
29
|
'> div > div': {
|
|
31
|
-
boxShadow: `0px 0px 0px 2px inset ${
|
|
30
|
+
boxShadow: `0px 0px 0px 2px inset ${"var(--ds-border-focused, #4688EC)"}`,
|
|
32
31
|
outline: 'none'
|
|
33
32
|
}
|
|
34
33
|
}
|
|
@@ -10,7 +10,6 @@ import { css, jsx } from '@emotion/react';
|
|
|
10
10
|
import useCloseOnEscapePress from '@atlaskit/ds-lib/use-close-on-escape-press';
|
|
11
11
|
import { easeOut } from '@atlaskit/motion';
|
|
12
12
|
import { UNSAFE_useMediaQuery as useMediaQuery } from '@atlaskit/primitives/responsive';
|
|
13
|
-
import { N100A } from '@atlaskit/theme/colors';
|
|
14
13
|
import { COLLAPSED_LEFT_SIDEBAR_WIDTH, DEFAULT_LEFT_SIDEBAR_WIDTH, FLYOUT_DELAY, MOBILE_COLLAPSED_LEFT_SIDEBAR_WIDTH, RESIZE_BUTTON_SELECTOR, TRANSITION_DURATION, VAR_LEFT_SIDEBAR_FLYOUT, VAR_LEFT_SIDEBAR_WIDTH } from '../../common/constants';
|
|
15
14
|
import { getGridStateFromStorage, mergeGridStateIntoStorage, resolveDimension } from '../../common/utils';
|
|
16
15
|
import { publishGridState, SidebarResizeContext, useSkipLink } from '../../controllers';
|
|
@@ -23,7 +22,7 @@ const openBackdropStyles = css({
|
|
|
23
22
|
width: '100%',
|
|
24
23
|
height: '100%',
|
|
25
24
|
position: 'absolute',
|
|
26
|
-
background:
|
|
25
|
+
background: "var(--ds-blanket, #050C1F75)",
|
|
27
26
|
opacity: 1
|
|
28
27
|
});
|
|
29
28
|
const hiddenBackdropStyles = css({
|
|
@@ -9,7 +9,6 @@ var _excluded = ["testId", "valueTextLabel", "isDisabled", "isLeftSidebarCollaps
|
|
|
9
9
|
import * as React from 'react';
|
|
10
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
11
|
import { css, jsx } from '@emotion/react';
|
|
12
|
-
import { B200 } from '@atlaskit/theme/colors';
|
|
13
12
|
import { GRAB_AREA_LINE_SELECTOR, GRAB_AREA_SELECTOR } from '../../common/constants';
|
|
14
13
|
/**
|
|
15
14
|
* Determines the color of the grab line.
|
|
@@ -31,7 +30,7 @@ var grabAreaStyles = css({
|
|
|
31
30
|
'&:focus': {
|
|
32
31
|
outline: 0
|
|
33
32
|
},
|
|
34
|
-
'&:enabled:hover, &:enabled:focus, &:enabled:active': _defineProperty({}, varLineColor, "var(--ds-border-selected,
|
|
33
|
+
'&:enabled:hover, &:enabled:focus, &:enabled:active': _defineProperty({}, varLineColor, "var(--ds-border-selected, #1868DB)")
|
|
35
34
|
});
|
|
36
35
|
var grabAreaCollapsedStyles = css({
|
|
37
36
|
height: "calc(100% - ".concat("var(--ds-space-600, 3rem)", " * 2)"),
|
|
@@ -16,7 +16,7 @@ import ChevronRight from '@atlaskit/icon/core/chevron-right';
|
|
|
16
16
|
import { easeOut } from '@atlaskit/motion/curves';
|
|
17
17
|
import { durations } from '@atlaskit/motion/durations';
|
|
18
18
|
import { UNSAFE_media } from '@atlaskit/primitives/responsive';
|
|
19
|
-
import {
|
|
19
|
+
import { N30A } from '@atlaskit/theme/colors';
|
|
20
20
|
import { RESIZE_BUTTON_SELECTOR } from '../../common/constants';
|
|
21
21
|
var hitAreaSpanStyles = css({
|
|
22
22
|
position: 'absolute',
|
|
@@ -33,11 +33,11 @@ var resizeIconButtonStyles = css({
|
|
|
33
33
|
height: 24,
|
|
34
34
|
padding: "var(--ds-space-0, 0px)",
|
|
35
35
|
position: 'absolute',
|
|
36
|
-
backgroundColor: "var(--ds-surface-overlay,
|
|
36
|
+
backgroundColor: "var(--ds-surface-overlay, #FFFFFF)",
|
|
37
37
|
border: 0,
|
|
38
38
|
borderRadius: "var(--ds-radius-full, 50%)",
|
|
39
39
|
boxShadow: "0 0 0 1px ".concat(N30A, ", 0 2px 4px 1px ").concat(N30A),
|
|
40
|
-
color: "var(--ds-text-subtle,
|
|
40
|
+
color: "var(--ds-text-subtle, #505258)",
|
|
41
41
|
cursor: 'pointer',
|
|
42
42
|
insetBlockStart: "var(--ds-space-400, 32px)",
|
|
43
43
|
insetInlineStart: 0,
|
|
@@ -51,14 +51,14 @@ var resizeIconButtonStyles = css({
|
|
|
51
51
|
transition: "\n background-color ".concat(durations.small, "ms linear,\n color ").concat(durations.small, "ms linear,\n opacity ").concat(durations.medium, "ms ").concat(easeOut, "\n "),
|
|
52
52
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
53
53
|
':hover': {
|
|
54
|
-
backgroundColor: "var(--ds-background-selected-bold,
|
|
55
|
-
color: "var(--ds-text-inverse,
|
|
54
|
+
backgroundColor: "var(--ds-background-selected-bold, #1868DB)",
|
|
55
|
+
color: "var(--ds-text-inverse, #FFFFFF)",
|
|
56
56
|
opacity: 1
|
|
57
57
|
},
|
|
58
58
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
59
59
|
':active, :focus': {
|
|
60
|
-
backgroundColor: "var(--ds-background-selected-bold-hovered,
|
|
61
|
-
color: "var(--ds-text-inverse,
|
|
60
|
+
backgroundColor: "var(--ds-background-selected-bold-hovered, #1558BC)",
|
|
61
|
+
color: "var(--ds-text-inverse, #FFFFFF)",
|
|
62
62
|
opacity: 1
|
|
63
63
|
}
|
|
64
64
|
});
|
|
@@ -12,7 +12,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
12
12
|
import { css, jsx } from '@emotion/react';
|
|
13
13
|
import Link from '@atlaskit/link';
|
|
14
14
|
import { easeOut, prefersReducedMotion } from '@atlaskit/motion';
|
|
15
|
-
import { N30A, N60A } from '@atlaskit/theme/colors';
|
|
16
15
|
import { DEFAULT_I18N_PROPS_SKIP_LINKS, PAGE_LAYOUT_CONTAINER_SELECTOR } from '../../common/constants';
|
|
17
16
|
import { useSkipLinks } from '../../controllers';
|
|
18
17
|
// 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
|
|
@@ -22,10 +21,10 @@ var skipLinkStyles = css({
|
|
|
22
21
|
padding: '0.8rem 1rem',
|
|
23
22
|
position: 'fixed',
|
|
24
23
|
zIndex: -1,
|
|
25
|
-
background: "var(--ds-surface-overlay,
|
|
24
|
+
background: "var(--ds-surface-overlay, #FFFFFF)",
|
|
26
25
|
border: 'none',
|
|
27
26
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
28
|
-
boxShadow: "var(--ds-shadow-overlay,
|
|
27
|
+
boxShadow: "var(--ds-shadow-overlay, 0px 8px 12px #1E1F2126, 0px 0px 1px #1E1F214f)",
|
|
29
28
|
insetInlineStart: -999999,
|
|
30
29
|
opacity: 0,
|
|
31
30
|
transform: 'translateY(-50%)',
|
|
@@ -5,14 +5,13 @@
|
|
|
5
5
|
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
7
7
|
import { ClassNames, css, jsx } from '@emotion/react';
|
|
8
|
-
import { B100 } from '@atlaskit/theme/colors';
|
|
9
8
|
var focusStyles = css({
|
|
10
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
11
10
|
':focus': {
|
|
12
11
|
outline: 'none',
|
|
13
12
|
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
14
13
|
'> div': {
|
|
15
|
-
boxShadow: "0px 0px 0px 2px inset ".concat("var(--ds-border-focused,
|
|
14
|
+
boxShadow: "0px 0px 0px 2px inset ".concat("var(--ds-border-focused, #4688EC)"),
|
|
16
15
|
outline: 'none'
|
|
17
16
|
}
|
|
18
17
|
}
|
|
@@ -28,7 +27,7 @@ var sidebarFocusStyles = css({
|
|
|
28
27
|
outline: 'none',
|
|
29
28
|
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
30
29
|
'> div > div': {
|
|
31
|
-
boxShadow: "0px 0px 0px 2px inset ".concat("var(--ds-border-focused,
|
|
30
|
+
boxShadow: "0px 0px 0px 2px inset ".concat("var(--ds-border-focused, #4688EC)"),
|
|
32
31
|
outline: 'none'
|
|
33
32
|
}
|
|
34
33
|
}
|
|
@@ -13,7 +13,6 @@ import { css, jsx } from '@emotion/react';
|
|
|
13
13
|
import useCloseOnEscapePress from '@atlaskit/ds-lib/use-close-on-escape-press';
|
|
14
14
|
import { easeOut } from '@atlaskit/motion';
|
|
15
15
|
import { UNSAFE_useMediaQuery as useMediaQuery } from '@atlaskit/primitives/responsive';
|
|
16
|
-
import { N100A } from '@atlaskit/theme/colors';
|
|
17
16
|
import { COLLAPSED_LEFT_SIDEBAR_WIDTH, DEFAULT_LEFT_SIDEBAR_WIDTH, FLYOUT_DELAY, MOBILE_COLLAPSED_LEFT_SIDEBAR_WIDTH, RESIZE_BUTTON_SELECTOR, TRANSITION_DURATION, VAR_LEFT_SIDEBAR_FLYOUT, VAR_LEFT_SIDEBAR_WIDTH } from '../../common/constants';
|
|
18
17
|
import { getGridStateFromStorage, mergeGridStateIntoStorage, resolveDimension } from '../../common/utils';
|
|
19
18
|
import { publishGridState, SidebarResizeContext, useSkipLink } from '../../controllers';
|
|
@@ -26,7 +25,7 @@ var openBackdropStyles = css({
|
|
|
26
25
|
width: '100%',
|
|
27
26
|
height: '100%',
|
|
28
27
|
position: 'absolute',
|
|
29
|
-
background: "var(--ds-blanket,
|
|
28
|
+
background: "var(--ds-blanket, #050C1F75)",
|
|
30
29
|
opacity: 1
|
|
31
30
|
});
|
|
32
31
|
var hiddenBackdropStyles = css({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { ElementType, ReactElement, ReactNode } from 'react';
|
|
2
|
+
import type { ResizeButtonProps } from '../components/resize-control/types';
|
|
3
|
+
import type { LeftSidebarState } from '../controllers/sidebar-resize-context';
|
|
4
4
|
interface SlotProps {
|
|
5
5
|
/**
|
|
6
6
|
* Sets the position to fixed.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { DimensionNames } from './types';
|
|
2
2
|
declare const mergeGridStateIntoStorage: (key: string, value: any) => void;
|
|
3
3
|
declare const getGridStateFromStorage: (key: string) => any;
|
|
4
4
|
declare const removeFromGridStateInStorage: (key: string, secondKey?: string) => void;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import * as React from 'react';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import type { FocusEvent, KeyboardEvent, MouseEvent } from 'react';
|
|
7
|
+
import type { LeftSidebarProps } from '../../common/types';
|
|
8
8
|
declare const GrabArea: React.ForwardRefExoticComponent<{
|
|
9
9
|
isDisabled: boolean;
|
|
10
10
|
isLeftSidebarCollapsed: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
|
-
import {
|
|
2
|
+
import type { ResizeButtonProps } from './types';
|
|
3
3
|
declare const ResizeButton: ({ isLeftSidebarCollapsed, label, onClick, testId, ...props }: ResizeButtonProps) => jsx.JSX.Element;
|
|
4
4
|
export default ResizeButton;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { ButtonHTMLAttributes, ElementType, ReactElement } from 'react';
|
|
2
|
+
import type { LeftSidebarState } from '../../controllers/sidebar-resize-context';
|
|
3
3
|
export type ResizeButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
4
4
|
isLeftSidebarCollapsed: boolean;
|
|
5
5
|
label: string;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { type ReactNode } from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
|
-
import {
|
|
7
|
+
import type { SkipLinkWrapperProps } from './types';
|
|
8
8
|
/**
|
|
9
9
|
* The default label will be used when the `skipLinksLabel` attribute is not
|
|
10
10
|
* provided or the attribute is an empty string. If a string comprised only of
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { ElementType, ReactElement, ReactNode } from 'react';
|
|
2
|
+
import type { ResizeButtonProps } from '../components/resize-control/types';
|
|
3
|
+
import type { LeftSidebarState } from '../controllers/sidebar-resize-context';
|
|
4
4
|
interface SlotProps {
|
|
5
5
|
/**
|
|
6
6
|
* Sets the position to fixed.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { DimensionNames } from './types';
|
|
2
2
|
declare const mergeGridStateIntoStorage: (key: string, value: any) => void;
|
|
3
3
|
declare const getGridStateFromStorage: (key: string) => any;
|
|
4
4
|
declare const removeFromGridStateInStorage: (key: string, secondKey?: string) => void;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import * as React from 'react';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import type { FocusEvent, KeyboardEvent, MouseEvent } from 'react';
|
|
7
|
+
import type { LeftSidebarProps } from '../../common/types';
|
|
8
8
|
declare const GrabArea: React.ForwardRefExoticComponent<{
|
|
9
9
|
isDisabled: boolean;
|
|
10
10
|
isLeftSidebarCollapsed: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
|
-
import {
|
|
2
|
+
import type { ResizeButtonProps } from './types';
|
|
3
3
|
declare const ResizeButton: ({ isLeftSidebarCollapsed, label, onClick, testId, ...props }: ResizeButtonProps) => jsx.JSX.Element;
|
|
4
4
|
export default ResizeButton;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { ButtonHTMLAttributes, ElementType, ReactElement } from 'react';
|
|
2
|
+
import type { LeftSidebarState } from '../../controllers/sidebar-resize-context';
|
|
3
3
|
export type ResizeButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
4
4
|
isLeftSidebarCollapsed: boolean;
|
|
5
5
|
label: string;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { type ReactNode } from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
|
-
import {
|
|
7
|
+
import type { SkipLinkWrapperProps } from './types';
|
|
8
8
|
/**
|
|
9
9
|
* The default label will be used when the `skipLinksLabel` attribute is not
|
|
10
10
|
* provided or the attribute is an empty string. If a string comprised only of
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/page-layout",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.34",
|
|
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/"
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
"homepage": "https://atlassian.design/components/page-layout/",
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@atlaskit/ds-lib": "^6.0.0",
|
|
41
|
-
"@atlaskit/icon": "^33.
|
|
41
|
+
"@atlaskit/icon": "^33.1.0",
|
|
42
42
|
"@atlaskit/link": "^3.3.0",
|
|
43
|
-
"@atlaskit/motion": "^5.
|
|
43
|
+
"@atlaskit/motion": "^5.5.0",
|
|
44
44
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
45
|
-
"@atlaskit/primitives": "^18.
|
|
45
|
+
"@atlaskit/primitives": "^18.1.0",
|
|
46
46
|
"@atlaskit/theme": "^22.0.0",
|
|
47
|
-
"@atlaskit/tokens": "^11.
|
|
47
|
+
"@atlaskit/tokens": "^11.4.0",
|
|
48
48
|
"@babel/runtime": "^7.0.0",
|
|
49
49
|
"@emotion/react": "^11.7.1",
|
|
50
50
|
"bind-event-listener": "^3.0.0",
|
|
@@ -62,10 +62,10 @@
|
|
|
62
62
|
"@atlaskit/docs": "^11.7.0",
|
|
63
63
|
"@atlaskit/logo": "^19.10.0",
|
|
64
64
|
"@atlaskit/menu": "^8.4.0",
|
|
65
|
-
"@atlaskit/popup": "^4.
|
|
65
|
+
"@atlaskit/popup": "^4.14.0",
|
|
66
66
|
"@atlaskit/section-message": "^8.12.0",
|
|
67
67
|
"@atlaskit/side-navigation": "^11.1.0",
|
|
68
|
-
"@atlaskit/tooltip": "^
|
|
68
|
+
"@atlaskit/tooltip": "^21.0.0",
|
|
69
69
|
"@atlassian/ssr-tests": "workspace:^",
|
|
70
70
|
"@testing-library/react": "^16.3.0",
|
|
71
71
|
"@types/raf-schd": "^4.0.1",
|