@atlaskit/page-layout 5.2.2 → 5.2.3
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 +6 -0
- package/dist/cjs/components/resize-control/index.js +1 -0
- package/dist/cjs/components/resize-control/resize-button.js +1 -0
- package/dist/cjs/components/slots/internal/left-sidebar-inner.js +2 -0
- package/dist/cjs/components/slots/internal/left-sidebar-outer.js +2 -0
- package/dist/cjs/components/slots/left-sidebar.js +1 -0
- package/dist/cjs/components/slots/page-layout.js +2 -0
- package/dist/cjs/components/slots/slot-dimensions.js +2 -0
- package/dist/cjs/controllers/sidebar-resize-controller.js +2 -0
- package/dist/es2019/components/resize-control/index.js +2 -0
- package/dist/es2019/components/resize-control/resize-button.js +1 -0
- package/dist/es2019/components/slots/internal/left-sidebar-inner.js +1 -0
- package/dist/es2019/components/slots/internal/left-sidebar-outer.js +1 -0
- package/dist/es2019/components/slots/left-sidebar.js +1 -0
- package/dist/es2019/components/slots/page-layout.js +1 -0
- package/dist/es2019/components/slots/slot-dimensions.js +2 -0
- package/dist/es2019/controllers/sidebar-resize-controller.js +1 -0
- package/dist/esm/components/resize-control/index.js +2 -0
- package/dist/esm/components/resize-control/resize-button.js +1 -0
- package/dist/esm/components/slots/internal/left-sidebar-inner.js +1 -0
- package/dist/esm/components/slots/internal/left-sidebar-outer.js +1 -0
- package/dist/esm/components/slots/left-sidebar.js +1 -0
- package/dist/esm/components/slots/page-layout.js +1 -0
- package/dist/esm/components/slots/slot-dimensions.js +2 -0
- package/dist/esm/controllers/sidebar-resize-controller.js +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -25,6 +25,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
25
25
|
* @jsxRuntime classic
|
|
26
26
|
* @jsx jsx
|
|
27
27
|
*/ // eslint-disable-next-line @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/no-global-styles, @atlaskit/ui-styling-standard/use-compiled
|
|
28
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
28
29
|
/* import useUpdateCssVar from '../../controllers/use-update-css-vars'; */
|
|
29
30
|
var cssSelector = (0, _defineProperty2.default)({}, _constants.RESIZE_CONTROL_SELECTOR, true);
|
|
30
31
|
var resizeControlStyles = (0, _react2.css)({
|
|
@@ -23,6 +23,7 @@ var _excluded = ["isLeftSidebarCollapsed", "label", "onClick", "testId"],
|
|
|
23
23
|
* @jsx jsx
|
|
24
24
|
*/
|
|
25
25
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
26
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
26
27
|
var hitAreaSpanStyles = (0, _react.css)({
|
|
27
28
|
position: 'absolute',
|
|
28
29
|
insetBlockEnd: "var(--ds-space-negative-300, -24px)",
|
|
@@ -18,6 +18,8 @@ var _hooks = require("../../../common/hooks");
|
|
|
18
18
|
|
|
19
19
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
20
20
|
|
|
21
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
22
|
+
|
|
21
23
|
// 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
24
|
var prefersReducedMotionStyles = (0, _react.css)((0, _motion.prefersReducedMotion)());
|
|
23
25
|
var mobileStyles = (0, _react.css)((0, _defineProperty2.default)({}, _responsive.UNSAFE_media.below.sm, {
|
|
@@ -23,6 +23,8 @@ var _slotFocusRing = _interopRequireDefault(require("./slot-focus-ring"));
|
|
|
23
23
|
|
|
24
24
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
25
|
|
|
26
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
27
|
+
|
|
26
28
|
// 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
|
|
27
29
|
var prefersReducedMotionStyles = (0, _react2.css)((0, _motion.prefersReducedMotion)());
|
|
28
30
|
var mobileStyles = (0, _react2.css)((0, _defineProperty2.default)({}, _responsive.UNSAFE_media.below.sm, {
|
|
@@ -26,6 +26,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
26
26
|
* @jsxRuntime classic
|
|
27
27
|
* @jsx jsx
|
|
28
28
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
29
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
29
30
|
var openBackdropStyles = (0, _react2.css)({
|
|
30
31
|
width: '100%',
|
|
31
32
|
height: '100%',
|
|
@@ -21,6 +21,8 @@ var _skipLinks = require("../skip-links");
|
|
|
21
21
|
|
|
22
22
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
23
23
|
|
|
24
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
25
|
+
|
|
24
26
|
var pageLayoutSelector = (0, _defineProperty2.default)({}, _constants.PAGE_LAYOUT_CONTAINER_SELECTOR, true);
|
|
25
27
|
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 ");
|
|
26
28
|
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 ");
|
|
@@ -7,6 +7,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _responsive = require("@atlaskit/primitives/responsive");
|
|
10
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
11
|
+
|
|
10
12
|
/**
|
|
11
13
|
* Hoists slot dimension styles to the root element.
|
|
12
14
|
*/
|
|
@@ -16,6 +16,8 @@ var _constants = require("../common/constants");
|
|
|
16
16
|
var _getPageLayoutSlotCssSelector = require("../common/get-page-layout-slot-css-selector");
|
|
17
17
|
var _sidebarResizeContext = require("./sidebar-resize-context");
|
|
18
18
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
19
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
20
|
+
|
|
19
21
|
var handleDataAttributesAndCb = function handleDataAttributesAndCb() {
|
|
20
22
|
var callback = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _noop.default;
|
|
21
23
|
var leftSidebarState = arguments.length > 1 ? arguments[1] : undefined;
|
|
@@ -9,6 +9,8 @@ import { Fragment, useCallback, useContext, useEffect, useMemo, useRef, useState
|
|
|
9
9
|
import { css, Global, jsx } from '@emotion/react';
|
|
10
10
|
import { bindAll } from 'bind-event-listener';
|
|
11
11
|
import rafSchd from 'raf-schd';
|
|
12
|
+
|
|
13
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
12
14
|
import { UNSAFE_useMediaQuery as useMediaQuery } from '@atlaskit/primitives/responsive';
|
|
13
15
|
import { COLLAPSED_LEFT_SIDEBAR_WIDTH, DEFAULT_LEFT_SIDEBAR_WIDTH, IS_SIDEBAR_DRAGGING, MIN_LEFT_SIDEBAR_DRAG_THRESHOLD, RESIZE_CONTROL_SELECTOR, VAR_LEFT_SIDEBAR_WIDTH } from '../../common/constants';
|
|
14
16
|
import { getLeftPanelWidth } from '../../common/get-left-panel-width';
|
|
@@ -11,6 +11,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
11
11
|
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
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
14
15
|
import { UNSAFE_media } from '@atlaskit/primitives/responsive';
|
|
15
16
|
import { RESIZE_BUTTON_SELECTOR } from '../../common/constants';
|
|
16
17
|
const hitAreaSpanStyles = css({
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import { easeOut, prefersReducedMotion } from '@atlaskit/motion';
|
|
9
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
9
10
|
import { UNSAFE_media } from '@atlaskit/primitives/responsive';
|
|
10
11
|
import { BANNER_HEIGHT, LEFT_PANEL_WIDTH, LEFT_SIDEBAR_FLYOUT_WIDTH, LEFT_SIDEBAR_WIDTH, MAX_MOBILE_SIDEBAR_FLYOUT_WIDTH, MOBILE_COLLAPSED_LEFT_SIDEBAR_WIDTH, TOP_NAVIGATION_HEIGHT, TRANSITION_DURATION } from '../../../common/constants';
|
|
11
12
|
import { useIsSidebarDragging } from '../../../common/hooks';
|
|
@@ -8,6 +8,7 @@ import { forwardRef, useContext } from 'react';
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
10
|
import { easeOut, prefersReducedMotion } from '@atlaskit/motion';
|
|
11
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
11
12
|
import { UNSAFE_media } from '@atlaskit/primitives/responsive';
|
|
12
13
|
import { COLLAPSED_LEFT_SIDEBAR_WIDTH, LEFT_SIDEBAR_FLYOUT_WIDTH, LEFT_SIDEBAR_WIDTH, MAX_MOBILE_SIDEBAR_FLYOUT_WIDTH, MOBILE_COLLAPSED_LEFT_SIDEBAR_WIDTH, TRANSITION_DURATION } from '../../../common/constants';
|
|
13
14
|
import { getPageLayoutSlotSelector } from '../../../common/get-page-layout-slot-selector';
|
|
@@ -9,6 +9,7 @@ import { Fragment, useCallback, useContext, useEffect, useRef } from 'react';
|
|
|
9
9
|
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
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
12
13
|
import { UNSAFE_useMediaQuery as useMediaQuery } from '@atlaskit/primitives/responsive';
|
|
13
14
|
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';
|
|
14
15
|
import { getGridStateFromStorage } from '../../common/get-grid-state-from-storage';
|
|
@@ -8,6 +8,7 @@ import { Fragment } from 'react';
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
10
|
import warnOnce from '@atlaskit/ds-lib/warn-once';
|
|
11
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
11
12
|
import { UNSAFE_media } from '@atlaskit/primitives/responsive';
|
|
12
13
|
import { BANNER, BANNER_HEIGHT, CONTENT, DEFAULT_I18N_PROPS_SKIP_LINKS, LEFT_PANEL, LEFT_PANEL_WIDTH, PAGE_LAYOUT_CONTAINER_SELECTOR, RIGHT_PANEL, RIGHT_PANEL_WIDTH, TOP_NAVIGATION, TOP_NAVIGATION_HEIGHT } from '../../common/constants';
|
|
13
14
|
import { SidebarResizeController, SkipLinksController } from '../../controllers';
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
|
|
3
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
2
4
|
import { UNSAFE_media } from '@atlaskit/primitives/responsive';
|
|
3
5
|
/**
|
|
4
6
|
* Hoists slot dimension styles to the root element.
|
|
@@ -2,6 +2,7 @@ import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'
|
|
|
2
2
|
import { bind } from 'bind-event-listener';
|
|
3
3
|
import noop from '@atlaskit/ds-lib/noop';
|
|
4
4
|
import { isReducedMotion } from '@atlaskit/motion';
|
|
5
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
5
6
|
import { UNSAFE_useMediaQuery as useMediaQuery } from '@atlaskit/primitives/responsive';
|
|
6
7
|
import { COLLAPSED_LEFT_SIDEBAR_WIDTH, DEFAULT_LEFT_SIDEBAR_WIDTH, IS_SIDEBAR_COLLAPSING } from '../common/constants';
|
|
7
8
|
import { getPageLayoutSlotCSSSelector } from '../common/get-page-layout-slot-css-selector';
|
|
@@ -13,6 +13,8 @@ import { Fragment, useCallback, useContext, useEffect, useMemo, useRef, useState
|
|
|
13
13
|
import { css, Global, jsx } from '@emotion/react';
|
|
14
14
|
import { bindAll } from 'bind-event-listener';
|
|
15
15
|
import rafSchd from 'raf-schd';
|
|
16
|
+
|
|
17
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
16
18
|
import { UNSAFE_useMediaQuery as useMediaQuery } from '@atlaskit/primitives/responsive';
|
|
17
19
|
import { COLLAPSED_LEFT_SIDEBAR_WIDTH, DEFAULT_LEFT_SIDEBAR_WIDTH, IS_SIDEBAR_DRAGGING, MIN_LEFT_SIDEBAR_DRAG_THRESHOLD, RESIZE_CONTROL_SELECTOR, VAR_LEFT_SIDEBAR_WIDTH } from '../../common/constants';
|
|
18
20
|
import { getLeftPanelWidth } from '../../common/get-left-panel-width';
|
|
@@ -15,6 +15,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
15
15
|
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
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
18
19
|
import { UNSAFE_media } from '@atlaskit/primitives/responsive';
|
|
19
20
|
import { RESIZE_BUTTON_SELECTOR } from '../../common/constants';
|
|
20
21
|
var hitAreaSpanStyles = css({
|
|
@@ -7,6 +7,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { easeOut, prefersReducedMotion } from '@atlaskit/motion';
|
|
10
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
10
11
|
import { UNSAFE_media } from '@atlaskit/primitives/responsive';
|
|
11
12
|
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';
|
|
12
13
|
import { useIsSidebarDragging } from '../../../common/hooks';
|
|
@@ -9,6 +9,7 @@ import { forwardRef, useContext } from 'react';
|
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
11
11
|
import { easeOut, prefersReducedMotion } from '@atlaskit/motion';
|
|
12
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
12
13
|
import { UNSAFE_media } from '@atlaskit/primitives/responsive';
|
|
13
14
|
import { COLLAPSED_LEFT_SIDEBAR_WIDTH, LEFT_SIDEBAR_FLYOUT_WIDTH, LEFT_SIDEBAR_WIDTH, MAX_MOBILE_SIDEBAR_FLYOUT_WIDTH, MOBILE_COLLAPSED_LEFT_SIDEBAR_WIDTH, TRANSITION_DURATION } from '../../../common/constants';
|
|
14
15
|
import { getPageLayoutSlotSelector } from '../../../common/get-page-layout-slot-selector';
|
|
@@ -12,6 +12,7 @@ import { Fragment, useCallback, useContext, useEffect, useRef } from 'react';
|
|
|
12
12
|
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
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
15
16
|
import { UNSAFE_useMediaQuery as useMediaQuery } from '@atlaskit/primitives/responsive';
|
|
16
17
|
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';
|
|
17
18
|
import { getGridStateFromStorage } from '../../common/get-grid-state-from-storage';
|
|
@@ -9,6 +9,7 @@ import { Fragment } from 'react';
|
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
11
11
|
import warnOnce from '@atlaskit/ds-lib/warn-once';
|
|
12
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
12
13
|
import { UNSAFE_media } from '@atlaskit/primitives/responsive';
|
|
13
14
|
import { BANNER, BANNER_HEIGHT, CONTENT, DEFAULT_I18N_PROPS_SKIP_LINKS, LEFT_PANEL, LEFT_PANEL_WIDTH, PAGE_LAYOUT_CONTAINER_SELECTOR, RIGHT_PANEL, RIGHT_PANEL_WIDTH, TOP_NAVIGATION, TOP_NAVIGATION_HEIGHT } from '../../common/constants';
|
|
14
15
|
import { SidebarResizeController, SkipLinksController } from '../../controllers';
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
|
|
3
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
2
4
|
import { UNSAFE_media } from '@atlaskit/primitives/responsive';
|
|
3
5
|
/**
|
|
4
6
|
* Hoists slot dimension styles to the root element.
|
|
@@ -3,6 +3,7 @@ import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'
|
|
|
3
3
|
import { bind } from 'bind-event-listener';
|
|
4
4
|
import noop from '@atlaskit/ds-lib/noop';
|
|
5
5
|
import { isReducedMotion } from '@atlaskit/motion';
|
|
6
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
6
7
|
import { UNSAFE_useMediaQuery as useMediaQuery } from '@atlaskit/primitives/responsive';
|
|
7
8
|
import { COLLAPSED_LEFT_SIDEBAR_WIDTH, DEFAULT_LEFT_SIDEBAR_WIDTH, IS_SIDEBAR_COLLAPSING } from '../common/constants';
|
|
8
9
|
import { getPageLayoutSlotCSSSelector } from '../common/get-page-layout-slot-css-selector';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/page-layout",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.3",
|
|
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/"
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^2.0.0",
|
|
44
44
|
"@atlaskit/primitives": "^21.0.0",
|
|
45
45
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
46
|
-
"@atlaskit/tokens": "^
|
|
46
|
+
"@atlaskit/tokens": "^16.0.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
48
48
|
"@emotion/react": "^11.7.1",
|
|
49
49
|
"bind-event-listener": "^3.0.0",
|