@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
|
@@ -14,17 +14,24 @@ var _utils = require("../../common/utils");
|
|
|
14
14
|
var _controllers = require("../../controllers");
|
|
15
15
|
var _slotFocusRing = _interopRequireDefault(require("./internal/slot-focus-ring"));
|
|
16
16
|
var _slotDimensions = _interopRequireDefault(require("./slot-dimensions"));
|
|
17
|
+
/**
|
|
18
|
+
* @jsxRuntime classic
|
|
19
|
+
*/
|
|
17
20
|
/** @jsx jsx */
|
|
18
21
|
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
23
|
+
|
|
19
24
|
var leftPanelStyles = (0, _react2.css)({
|
|
25
|
+
// 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
26
|
gridArea: _constants.LEFT_PANEL
|
|
21
27
|
});
|
|
22
28
|
var leftPanelFixedStyles = (0, _react2.css)({
|
|
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
|
|
23
30
|
width: _constants.LEFT_PANEL_WIDTH,
|
|
24
31
|
position: 'fixed',
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
32
|
+
insetBlockEnd: 0,
|
|
33
|
+
insetBlockStart: 0,
|
|
34
|
+
insetInlineStart: 0
|
|
28
35
|
});
|
|
29
36
|
|
|
30
37
|
/**
|
|
@@ -14,8 +14,13 @@ var _controllers = require("../../controllers");
|
|
|
14
14
|
var _leftSidebarInner = _interopRequireDefault(require("./internal/left-sidebar-inner"));
|
|
15
15
|
var _leftSidebarOuter = _interopRequireDefault(require("./internal/left-sidebar-outer"));
|
|
16
16
|
var _slotDimensions = _interopRequireDefault(require("./slot-dimensions"));
|
|
17
|
+
/**
|
|
18
|
+
* @jsxRuntime classic
|
|
19
|
+
*/
|
|
17
20
|
/** @jsx jsx */
|
|
18
21
|
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
23
|
+
|
|
19
24
|
/**
|
|
20
25
|
* __Left sidebar without resize__
|
|
21
26
|
*
|
|
@@ -21,7 +21,9 @@ var _leftSidebarOuter = _interopRequireDefault(require("./internal/left-sidebar-
|
|
|
21
21
|
var _resizableChildrenWrapper = _interopRequireDefault(require("./internal/resizable-children-wrapper"));
|
|
22
22
|
var _slotDimensions = _interopRequireDefault(require("./slot-dimensions"));
|
|
23
23
|
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; }
|
|
24
|
-
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) { (0, _defineProperty2.default)(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; } /* eslint-disable @repo/internal/dom-events/no-unsafe-event-listeners */ /**
|
|
24
|
+
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) { (0, _defineProperty2.default)(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; } /* eslint-disable @repo/internal/dom-events/no-unsafe-event-listeners */ /**
|
|
25
|
+
* @jsxRuntime classic
|
|
26
|
+
*/ /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
27
|
var openBackdropStyles = (0, _react2.css)({
|
|
26
28
|
width: '100%',
|
|
27
29
|
height: '100%',
|
|
@@ -31,6 +33,7 @@ var openBackdropStyles = (0, _react2.css)({
|
|
|
31
33
|
});
|
|
32
34
|
var hiddenBackdropStyles = (0, _react2.css)({
|
|
33
35
|
opacity: 0,
|
|
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
|
|
34
37
|
transition: "opacity ".concat(_constants.TRANSITION_DURATION, "ms ").concat(_motion.easeOut, " 0s")
|
|
35
38
|
});
|
|
36
39
|
|
|
@@ -15,14 +15,20 @@ var _hooks = require("../../common/hooks");
|
|
|
15
15
|
var _utils = require("../../common/utils");
|
|
16
16
|
var _controllers = require("../../controllers");
|
|
17
17
|
var _slotFocusRing = _interopRequireDefault(require("./internal/slot-focus-ring"));
|
|
18
|
+
/**
|
|
19
|
+
* @jsxRuntime classic
|
|
20
|
+
*/
|
|
18
21
|
/** @jsx jsx */
|
|
19
22
|
|
|
20
|
-
// eslint-disable-next-line @atlaskit/
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
24
|
+
|
|
25
|
+
// 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
|
|
21
26
|
var prefersReducedMotionStyles = (0, _react2.css)((0, _accessibility.prefersReducedMotion)());
|
|
22
27
|
var mainStyles = (0, _react2.css)({
|
|
23
28
|
minWidth: 0,
|
|
24
29
|
flexGrow: 1,
|
|
25
30
|
marginInlineStart: 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: "margin-left ".concat(_constants.TRANSITION_DURATION, "ms ").concat(_curves.easeOut, " 0s")
|
|
27
33
|
});
|
|
28
34
|
var draggingStyles = (0, _react2.css)({
|
|
@@ -37,7 +43,7 @@ var draggingStyles = (0, _react2.css)({
|
|
|
37
43
|
* while main remains in place.
|
|
38
44
|
*/
|
|
39
45
|
var flyoutStyles = (0, _react2.css)({
|
|
40
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
46
|
+
// 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
|
|
41
47
|
marginInlineStart: "calc(-1 * var(--".concat(_constants.VAR_LEFT_SIDEBAR_FLYOUT, ", ").concat(_constants.DEFAULT_LEFT_SIDEBAR_FLYOUT_WIDTH, "px) + ").concat(_constants.COLLAPSED_LEFT_SIDEBAR_WIDTH, "px)")
|
|
42
48
|
});
|
|
43
49
|
|
|
@@ -13,21 +13,29 @@ var _responsive = require("@atlaskit/primitives/responsive");
|
|
|
13
13
|
var _constants = require("../../common/constants");
|
|
14
14
|
var _controllers = require("../../controllers");
|
|
15
15
|
var _skipLinks = require("../skip-links");
|
|
16
|
+
/**
|
|
17
|
+
* @jsxRuntime classic
|
|
18
|
+
*/
|
|
16
19
|
/** @jsx jsx */
|
|
17
20
|
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
22
|
+
|
|
18
23
|
var pageLayoutSelector = (0, _defineProperty2.default)({}, _constants.PAGE_LAYOUT_CONTAINER_SELECTOR, true);
|
|
19
|
-
var gridTemplateAreasMobile = "\n \""
|
|
20
|
-
var gridTemplateAreas = "\n \""
|
|
24
|
+
var gridTemplateAreasMobile = "\n".concat("\n \"", _constants.LEFT_PANEL, " ").concat(_constants.BANNER, "\"\n ", "\n \"").concat(_constants.LEFT_PANEL, " ").concat(_constants.TOP_NAVIGATION, "\"\n ", "\n \"").concat(_constants.LEFT_PANEL, " ").concat(_constants.CONTENT, "\"\n ");
|
|
25
|
+
var gridTemplateAreas = "\n".concat("\n \"", _constants.LEFT_PANEL, " ").concat(_constants.BANNER, " ").concat(_constants.RIGHT_PANEL, "\"\n ", "\n \"").concat(_constants.LEFT_PANEL, " ").concat(_constants.TOP_NAVIGATION, " ").concat(_constants.RIGHT_PANEL, "\"\n", "\n \"").concat(_constants.LEFT_PANEL, " ").concat(_constants.CONTENT, " ").concat(_constants.RIGHT_PANEL, "\"\n ");
|
|
21
26
|
var gridStyles = (0, _react2.css)({
|
|
22
27
|
display: 'grid',
|
|
23
28
|
height: '100%',
|
|
24
29
|
gridTemplateAreas: gridTemplateAreas,
|
|
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
|
|
25
31
|
gridTemplateColumns: "".concat(_constants.LEFT_PANEL_WIDTH, " minmax(0, 1fr) ").concat(_constants.RIGHT_PANEL_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
|
|
26
33
|
gridTemplateRows: "".concat(_constants.BANNER_HEIGHT, " ").concat(_constants.TOP_NAVIGATION_HEIGHT, " auto"),
|
|
27
34
|
outline: 'none'
|
|
28
35
|
});
|
|
29
36
|
var gridStylesMobileStyles = (0, _react2.css)((0, _defineProperty2.default)({}, _responsive.UNSAFE_media.below.sm, {
|
|
30
37
|
gridTemplateAreas: gridTemplateAreasMobile,
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
31
39
|
gridTemplateColumns: "".concat(_constants.LEFT_PANEL_WIDTH, " minmax(0, 1fr)")
|
|
32
40
|
}));
|
|
33
41
|
|
|
@@ -14,17 +14,24 @@ var _utils = require("../../common/utils");
|
|
|
14
14
|
var _controllers = require("../../controllers");
|
|
15
15
|
var _slotFocusRing = _interopRequireDefault(require("./internal/slot-focus-ring"));
|
|
16
16
|
var _slotDimensions = _interopRequireDefault(require("./slot-dimensions"));
|
|
17
|
+
/**
|
|
18
|
+
* @jsxRuntime classic
|
|
19
|
+
*/
|
|
17
20
|
/** @jsx jsx */
|
|
18
21
|
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
23
|
+
|
|
19
24
|
var baseStyles = (0, _react2.css)({
|
|
25
|
+
// 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
26
|
gridArea: _constants.RIGHT_PANEL
|
|
21
27
|
});
|
|
22
28
|
var fixedStyles = (0, _react2.css)({
|
|
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
|
|
23
30
|
width: _constants.RIGHT_PANEL_WIDTH,
|
|
24
31
|
position: 'fixed',
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
32
|
+
insetBlockEnd: 0,
|
|
33
|
+
insetBlockStart: 0,
|
|
34
|
+
insetInlineEnd: 0
|
|
28
35
|
});
|
|
29
36
|
|
|
30
37
|
/**
|
|
@@ -14,8 +14,13 @@ var _utils = require("../../common/utils");
|
|
|
14
14
|
var _controllers = require("../../controllers");
|
|
15
15
|
var _slotFocusRing = _interopRequireDefault(require("./internal/slot-focus-ring"));
|
|
16
16
|
var _slotDimensions = _interopRequireDefault(require("./slot-dimensions"));
|
|
17
|
+
/**
|
|
18
|
+
* @jsxRuntime classic
|
|
19
|
+
*/
|
|
17
20
|
/** @jsx jsx */
|
|
18
21
|
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
23
|
+
|
|
19
24
|
/**
|
|
20
25
|
* This inner wrapper is required to allow the sidebar to be `position: fixed`.
|
|
21
26
|
*
|
|
@@ -23,21 +28,20 @@ var _slotDimensions = _interopRequireDefault(require("./slot-dimensions"));
|
|
|
23
28
|
* out of its flex container and Main would stretch to occupy all the space.
|
|
24
29
|
*/
|
|
25
30
|
var fixedInnerStyles = (0, _react2.css)({
|
|
26
|
-
|
|
27
|
-
* This width on the inner wrapper is required when it is using fixed
|
|
28
|
-
* positioning. Otherwise its width is slightly off.
|
|
29
|
-
*/
|
|
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
|
|
30
32
|
width: _constants.RIGHT_SIDEBAR_WIDTH,
|
|
31
33
|
position: 'fixed',
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
insetBlockEnd: 0,
|
|
35
|
+
// 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
|
+
insetBlockStart: "calc(".concat(_constants.BANNER_HEIGHT, " + ").concat(_constants.TOP_NAVIGATION_HEIGHT, ")"),
|
|
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
|
|
38
|
+
insetInlineEnd: "calc(".concat(_constants.RIGHT_PANEL_WIDTH, ")")
|
|
37
39
|
});
|
|
38
40
|
var staticInnerStyles = (0, _react2.css)({
|
|
39
41
|
height: '100%'
|
|
40
42
|
});
|
|
43
|
+
|
|
44
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
41
45
|
var outerStyles = (0, _react2.css)({
|
|
42
46
|
width: _constants.RIGHT_SIDEBAR_WIDTH
|
|
43
47
|
});
|
|
@@ -50,6 +54,7 @@ var outerStyles = (0, _react2.css)({
|
|
|
50
54
|
var fixedOuterStyles = (0, _react2.css)({
|
|
51
55
|
'&::after': {
|
|
52
56
|
display: 'inline-block',
|
|
57
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
53
58
|
width: _constants.RIGHT_SIDEBAR_WIDTH,
|
|
54
59
|
content: "''"
|
|
55
60
|
}
|
|
@@ -11,5 +11,9 @@ var _default = exports.default = function _default(_ref) {
|
|
|
11
11
|
var variableName = _ref.variableName,
|
|
12
12
|
value = _ref.value,
|
|
13
13
|
mobileValue = _ref.mobileValue;
|
|
14
|
-
return
|
|
14
|
+
return (
|
|
15
|
+
/*#__PURE__*/
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-global-styles -- Ignored via go/DSP-18766
|
|
17
|
+
_react.default.createElement("style", null, ":root{--".concat(variableName, ":").concat(value, "px;}"), mobileValue && "".concat(_responsive.UNSAFE_media.below.sm, " { :root{--").concat(variableName, ":").concat(mobileValue, "px;} }"))
|
|
18
|
+
);
|
|
15
19
|
};
|
|
@@ -14,21 +14,28 @@ var _utils = require("../../common/utils");
|
|
|
14
14
|
var _controllers = require("../../controllers");
|
|
15
15
|
var _slotFocusRing = _interopRequireDefault(require("./internal/slot-focus-ring"));
|
|
16
16
|
var _slotDimensions = _interopRequireDefault(require("./slot-dimensions"));
|
|
17
|
+
/**
|
|
18
|
+
* @jsxRuntime classic
|
|
19
|
+
*/
|
|
17
20
|
/** @jsx jsx */
|
|
18
21
|
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
23
|
+
|
|
19
24
|
var topNavigationStyles = (0, _react2.css)({
|
|
25
|
+
// 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
26
|
height: _constants.TOP_NAVIGATION_HEIGHT,
|
|
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
|
|
21
28
|
gridArea: _constants.TOP_NAVIGATION
|
|
22
29
|
});
|
|
23
30
|
var fixedStyles = (0, _react2.css)({
|
|
24
31
|
position: 'fixed',
|
|
25
32
|
zIndex: 2,
|
|
26
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
27
|
-
|
|
28
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
29
|
-
|
|
30
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
31
|
-
|
|
33
|
+
// 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
|
+
insetBlockStart: _constants.BANNER_HEIGHT,
|
|
35
|
+
// 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
|
|
36
|
+
insetInlineEnd: _constants.RIGHT_PANEL_WIDTH,
|
|
37
|
+
// 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
|
|
38
|
+
insetInlineStart: _constants.LEFT_PANEL_WIDTH
|
|
32
39
|
});
|
|
33
40
|
|
|
34
41
|
/**
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/* eslint-disable react/react-in-jsx-scope */
|
|
3
|
+
/**
|
|
4
|
+
* @jsxRuntime classic
|
|
5
|
+
*/
|
|
3
6
|
/** @jsx jsx */
|
|
4
7
|
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
9
|
import { css, jsx } from '@emotion/react';
|
|
6
10
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
7
11
|
import { B200 } from '@atlaskit/theme/colors';
|
|
@@ -19,6 +23,7 @@ const grabAreaStyles = css({
|
|
|
19
23
|
backgroundColor: 'transparent',
|
|
20
24
|
border: 0,
|
|
21
25
|
cursor: 'ew-resize',
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
22
27
|
'&::-moz-focus-inner': {
|
|
23
28
|
border: 0
|
|
24
29
|
},
|
|
@@ -78,7 +83,9 @@ const GrabArea = ({
|
|
|
78
83
|
// usability.
|
|
79
84
|
,
|
|
80
85
|
role: "slider",
|
|
81
|
-
css: [grabAreaStyles, isLeftSidebarCollapsed && grabAreaCollapsedStyles,
|
|
86
|
+
css: [grabAreaStyles, isLeftSidebarCollapsed && grabAreaCollapsedStyles,
|
|
87
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
88
|
+
getBooleanFF('platform.design-system-team.page-layout-resize-button-fix_u0qxv') && isLeftSidebarCollapsed && grabAreaReducedHeightStyles],
|
|
82
89
|
"aria-orientation": "vertical",
|
|
83
90
|
"aria-valuenow": leftSidebarPercentageExpanded,
|
|
84
91
|
"aria-valuemin": 0,
|
|
@@ -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, useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react';
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-global-styles, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
9
|
import { css, Global, jsx } from '@emotion/react';
|
|
5
10
|
import { bindAll } from 'bind-event-listener';
|
|
6
11
|
import rafSchd from 'raf-schd';
|
|
@@ -29,10 +34,11 @@ const showResizeButtonStyles = css({
|
|
|
29
34
|
|
|
30
35
|
// @ts-expect-error adding `!important` to style rules is currently a type error
|
|
31
36
|
const globalResizingStyles = css({
|
|
32
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
37
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
33
38
|
'*': {
|
|
34
39
|
// Setting the cursor to be `ew-resize` on all elements so that even if the user
|
|
35
40
|
// pointer slips off the resize handle, the cursor will still be the resize cursor
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
36
42
|
cursor: 'ew-resize !important',
|
|
37
43
|
// Blocking selection while resizing
|
|
38
44
|
// Notes:
|
|
@@ -40,12 +46,14 @@ const globalResizingStyles = css({
|
|
|
40
46
|
// - Safari + Firefox → all good
|
|
41
47
|
// - Chrome → This will undo the current selection while resizing (not ideal)
|
|
42
48
|
// - The current selection will resume after resizing
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
43
50
|
userSelect: 'none !important'
|
|
44
51
|
},
|
|
45
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
52
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
46
53
|
iframe: {
|
|
47
54
|
// Disabling pointer events on iframes when resizing
|
|
48
55
|
// as iframes will swallower user events when the user is over them
|
|
56
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
49
57
|
pointerEvents: 'none !important'
|
|
50
58
|
}
|
|
51
59
|
// Note: We _could_ also disable `pointer-events` on all elements during resizing.
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
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 ChevronRight from '@atlaskit/icon/glyph/chevron-right';
|
|
6
10
|
import { easeOut } from '@atlaskit/motion/curves';
|
|
@@ -21,7 +25,7 @@ const furtherIncreasedHitAreasStyles = css({
|
|
|
21
25
|
insetBlockStart: `${"var(--ds-space-negative-300, -24px)"}`
|
|
22
26
|
});
|
|
23
27
|
const mobileStyles = css({
|
|
24
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
28
|
+
// 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
|
|
25
29
|
[UNSAFE_media.below.sm]: {
|
|
26
30
|
opacity: 1
|
|
27
31
|
}
|
|
@@ -52,11 +56,13 @@ const resizeIconButtonStyles = css({
|
|
|
52
56
|
color ${smallDurationMs}ms linear,
|
|
53
57
|
opacity ${mediumDurationMs}ms ${easeOut}
|
|
54
58
|
`,
|
|
59
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
55
60
|
':hover': {
|
|
56
61
|
backgroundColor: `var(--ds-background-selected-bold, ${B100})`,
|
|
57
62
|
color: `var(--ds-text-inverse, ${N0})`,
|
|
58
63
|
opacity: 1
|
|
59
64
|
},
|
|
65
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
60
66
|
':active, :focus': {
|
|
61
67
|
backgroundColor: `var(--ds-background-selected-bold-hovered, ${B200})`,
|
|
62
68
|
color: `var(--ds-text-inverse, ${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';
|
|
@@ -14,11 +18,10 @@ const transitionDuration = '0.22s';
|
|
|
14
18
|
const shadowStyles = css({
|
|
15
19
|
width: 3,
|
|
16
20
|
position: 'absolute',
|
|
17
|
-
top: 0,
|
|
18
|
-
bottom: 0,
|
|
19
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
20
|
-
left: -1,
|
|
21
21
|
background: `var(--ds-border, ${`linear-gradient(${direction}, ${colorStops})`})`,
|
|
22
|
+
insetBlockEnd: 0,
|
|
23
|
+
insetBlockStart: 0,
|
|
24
|
+
insetInlineStart: -1,
|
|
22
25
|
opacity: 0.5,
|
|
23
26
|
pointerEvents: 'none',
|
|
24
27
|
transitionDuration: transitionDuration,
|
|
@@ -27,8 +30,8 @@ const shadowStyles = css({
|
|
|
27
30
|
});
|
|
28
31
|
const draggingStyles = css({
|
|
29
32
|
width: 6,
|
|
30
|
-
left: "var(--ds-space-negative-075, -6px)",
|
|
31
33
|
background: `var(--ds-background-neutral-subtle, ${`linear-gradient(${direction}, ${colorStops})`})`,
|
|
34
|
+
insetInlineStart: "var(--ds-space-negative-075, -6px)",
|
|
32
35
|
opacity: 0.8
|
|
33
36
|
});
|
|
34
37
|
const Shadow = ({
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/dom-events/no-unsafe-event-listeners */
|
|
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 Link from '@atlaskit/link';
|
|
6
10
|
import { easeOut, prefersReducedMotion } from '@atlaskit/motion';
|
|
7
11
|
import { N30A, N60A } from '@atlaskit/theme/colors';
|
|
8
12
|
import { DEFAULT_I18N_PROPS_SKIP_LINKS, PAGE_LAYOUT_CONTAINER_SELECTOR } from '../../common/constants';
|
|
9
13
|
import { useSkipLinks } from '../../controllers';
|
|
10
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
14
|
+
// 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
|
|
11
15
|
const prefersReducedMotionStyles = css(prefersReducedMotion());
|
|
12
16
|
const skipLinkStyles = css({
|
|
13
17
|
margin: "var(--ds-space-250, 10px)",
|
|
@@ -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, BANNER_HEIGHT, DEFAULT_BANNER_HEIGHT, LEFT_PANEL_WIDTH, RIGHT_PANEL_WIDTH, VAR_BANNER_HEIGHT } from '../../common/constants';
|
|
6
11
|
import { getPageLayoutSlotSelector, resolveDimension } from '../../common/utils';
|
|
@@ -8,17 +13,19 @@ import { publishGridState, useSkipLink } from '../../controllers';
|
|
|
8
13
|
import SlotFocusRing from './internal/slot-focus-ring';
|
|
9
14
|
import SlotDimensions from './slot-dimensions';
|
|
10
15
|
const bannerStyles = 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: BANNER_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: BANNER
|
|
13
20
|
});
|
|
14
21
|
const bannerFixedStyles = css({
|
|
15
22
|
position: 'fixed',
|
|
16
23
|
zIndex: 2,
|
|
17
|
-
|
|
18
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
19
|
-
|
|
20
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
21
|
-
|
|
24
|
+
insetBlockStart: 0,
|
|
25
|
+
// 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
|
|
26
|
+
insetInlineEnd: RIGHT_PANEL_WIDTH,
|
|
27
|
+
// 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
|
|
28
|
+
insetInlineStart: LEFT_PANEL_WIDTH
|
|
22
29
|
});
|
|
23
30
|
|
|
24
31
|
/**
|
|
@@ -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
|
const 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,28 +1,39 @@
|
|
|
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, prefersReducedMotion } from '@atlaskit/motion';
|
|
5
9
|
import { UNSAFE_media } from '@atlaskit/primitives/responsive';
|
|
6
10
|
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';
|
|
7
11
|
import { useIsSidebarDragging } from '../../../common/hooks';
|
|
8
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
12
|
+
// 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
|
|
9
13
|
const prefersReducedMotionStyles = css(prefersReducedMotion());
|
|
10
14
|
const mobileStyles = css({
|
|
11
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
15
|
+
// 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
|
|
12
16
|
[UNSAFE_media.below.sm]: {
|
|
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
|
|
13
18
|
width: `${MOBILE_COLLAPSED_LEFT_SIDEBAR_WIDTH}px`,
|
|
14
19
|
position: 'fixed',
|
|
15
20
|
insetBlockEnd: 0,
|
|
21
|
+
// 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
22
|
insetBlockStart: `calc(${BANNER_HEIGHT} + ${TOP_NAVIGATION_HEIGHT})`,
|
|
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
|
|
17
24
|
insetInlineStart: `${LEFT_PANEL_WIDTH}`,
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
18
26
|
transition: `width ${TRANSITION_DURATION}ms ${easeOut} 0s`
|
|
19
27
|
}
|
|
20
28
|
});
|
|
21
29
|
const mobileInnerFlyoutStyles = css({
|
|
22
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
30
|
+
// 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
|
|
23
31
|
[UNSAFE_media.below.sm]: {
|
|
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
|
|
24
33
|
width: `min(90vw, ${MAX_MOBILE_SIDEBAR_FLYOUT_WIDTH}px)`,
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
25
35
|
maxWidth: MAX_MOBILE_SIDEBAR_FLYOUT_WIDTH,
|
|
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
|
|
26
37
|
transition: `width ${TRANSITION_DURATION}ms ${easeOut} 0s, box-shadow ${TRANSITION_DURATION}ms ${easeOut} 0s`
|
|
27
38
|
}
|
|
28
39
|
});
|
|
@@ -34,14 +45,19 @@ const mobileInnerFlyoutStyles = css({
|
|
|
34
45
|
* out of its flex container and Main would stretch to occupy all the space.
|
|
35
46
|
*/
|
|
36
47
|
const fixedInnerStyles = css({
|
|
48
|
+
// 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
49
|
width: `${LEFT_SIDEBAR_WIDTH}`,
|
|
38
50
|
position: 'fixed',
|
|
39
51
|
insetBlockEnd: 0,
|
|
52
|
+
// 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
53
|
insetBlockStart: `calc(${BANNER_HEIGHT} + ${TOP_NAVIGATION_HEIGHT})`,
|
|
54
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
41
55
|
insetInlineStart: `${LEFT_PANEL_WIDTH}`,
|
|
56
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
42
57
|
transition: `width ${TRANSITION_DURATION}ms ${easeOut} 0s`
|
|
43
58
|
});
|
|
44
59
|
const fixedInnerFlyoutStyles = css({
|
|
60
|
+
// 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
61
|
width: LEFT_SIDEBAR_FLYOUT_WIDTH
|
|
46
62
|
});
|
|
47
63
|
|
|
@@ -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 { forwardRef, 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 { easeOut, prefersReducedMotion } from '@atlaskit/motion';
|
|
6
11
|
import { UNSAFE_media } from '@atlaskit/primitives/responsive';
|
|
@@ -9,34 +14,40 @@ import { useIsSidebarDragging } from '../../../common/hooks';
|
|
|
9
14
|
import { getPageLayoutSlotSelector } from '../../../common/utils';
|
|
10
15
|
import { SidebarResizeContext } from '../../../controllers';
|
|
11
16
|
import SlotFocusRing from './slot-focus-ring';
|
|
12
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
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
|
|
13
18
|
const prefersReducedMotionStyles = css(prefersReducedMotion());
|
|
14
19
|
const mobileStyles = css({
|
|
15
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
20
|
+
// 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
|
|
16
21
|
[UNSAFE_media.below.sm]: {
|
|
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
|
|
17
23
|
width: MOBILE_COLLAPSED_LEFT_SIDEBAR_WIDTH,
|
|
18
24
|
cursor: 'pointer',
|
|
19
25
|
opacity: 1,
|
|
26
|
+
// 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
27
|
transition: `width ${TRANSITION_DURATION}ms ${easeOut} 0s`,
|
|
21
28
|
'&::after': {
|
|
22
29
|
display: 'inline-block',
|
|
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
|
|
23
31
|
maxWidth: MAX_MOBILE_SIDEBAR_FLYOUT_WIDTH,
|
|
24
32
|
content: "''"
|
|
25
33
|
}
|
|
26
34
|
}
|
|
27
35
|
});
|
|
28
36
|
const mobileFlyoutStyles = css({
|
|
29
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
37
|
+
// 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
|
|
30
38
|
[UNSAFE_media.below.sm]: {
|
|
31
39
|
cursor: 'revert'
|
|
32
40
|
}
|
|
33
41
|
});
|
|
34
42
|
const outerStyles = 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
|
|
35
44
|
width: LEFT_SIDEBAR_WIDTH,
|
|
36
45
|
position: 'relative',
|
|
37
46
|
zIndex: 1,
|
|
38
47
|
marginInlineStart: "var(--ds-space-0, 0px)",
|
|
48
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
39
49
|
transition: `width ${TRANSITION_DURATION}ms ${easeOut} 0s`,
|
|
50
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
40
51
|
':hover': {
|
|
41
52
|
'--ds--resize-button--opacity': 1
|
|
42
53
|
}
|
|
@@ -53,16 +64,20 @@ const draggingStyles = css({
|
|
|
53
64
|
* so the pseudo element forces it to take up the necessary width.
|
|
54
65
|
*/
|
|
55
66
|
const fixedStyles = css({
|
|
67
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
56
68
|
'::after': {
|
|
57
69
|
display: 'inline-block',
|
|
70
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
58
71
|
width: `${LEFT_SIDEBAR_WIDTH}`,
|
|
59
72
|
content: "''"
|
|
60
73
|
}
|
|
61
74
|
});
|
|
62
75
|
const flyoutStyles = css({
|
|
76
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
63
77
|
width: LEFT_SIDEBAR_FLYOUT_WIDTH
|
|
64
78
|
});
|
|
65
79
|
const flyoutFixedStyles = css({
|
|
80
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
66
81
|
width: COLLAPSED_LEFT_SIDEBAR_WIDTH
|
|
67
82
|
});
|
|
68
83
|
const selector = getPageLayoutSlotSelector('left-sidebar');
|