@atlaskit/page-layout 1.2.8 → 1.3.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.
Files changed (127) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/__perf__/utils/perf-example.tsx +1 -1
  3. package/__perf__/utils/product-integration/atlassian-navigation.tsx +1 -1
  4. package/__perf__/utils/product-integration/notifications-popup.tsx +1 -1
  5. package/__perf__/utils/product-integration/sample-footer.tsx +1 -1
  6. package/__perf__/utils/product-integration/sample-header.tsx +1 -1
  7. package/__perf__/utils/product-integration/side-navigation.tsx +1 -1
  8. package/dist/cjs/components/resize-control/grab-area.js +6 -6
  9. package/dist/cjs/components/resize-control/index.js +7 -7
  10. package/dist/cjs/components/resize-control/resize-button.js +7 -7
  11. package/dist/cjs/components/resize-control/shadow.js +4 -4
  12. package/dist/cjs/components/skip-links/skip-link-components.js +10 -10
  13. package/dist/cjs/components/slots/banner.js +6 -6
  14. package/dist/cjs/components/slots/content.js +3 -3
  15. package/dist/cjs/components/slots/internal/left-sidebar-inner.js +7 -7
  16. package/dist/cjs/components/slots/internal/left-sidebar-outer.js +9 -9
  17. package/dist/cjs/components/slots/internal/resizable-children-wrapper.js +7 -7
  18. package/dist/cjs/components/slots/internal/slot-focus-ring.js +4 -4
  19. package/dist/cjs/components/slots/left-panel.js +6 -6
  20. package/dist/cjs/components/slots/left-sidebar-without-resize.js +4 -4
  21. package/dist/cjs/components/slots/left-sidebar.js +6 -6
  22. package/dist/cjs/components/slots/main.js +7 -7
  23. package/dist/cjs/components/slots/page-layout.js +5 -5
  24. package/dist/cjs/components/slots/right-panel.js +6 -6
  25. package/dist/cjs/components/slots/right-sidebar.js +9 -9
  26. package/dist/cjs/components/slots/top-navigation.js +6 -6
  27. package/dist/cjs/version.json +1 -1
  28. package/dist/es2019/components/resize-control/grab-area.js +1 -1
  29. package/dist/es2019/components/resize-control/index.js +1 -1
  30. package/dist/es2019/components/resize-control/resize-button.js +1 -1
  31. package/dist/es2019/components/resize-control/shadow.js +1 -1
  32. package/dist/es2019/components/skip-links/skip-link-components.js +1 -1
  33. package/dist/es2019/components/slots/banner.js +1 -1
  34. package/dist/es2019/components/slots/content.js +1 -1
  35. package/dist/es2019/components/slots/internal/left-sidebar-inner.js +1 -1
  36. package/dist/es2019/components/slots/internal/left-sidebar-outer.js +1 -1
  37. package/dist/es2019/components/slots/internal/resizable-children-wrapper.js +1 -1
  38. package/dist/es2019/components/slots/internal/slot-focus-ring.js +1 -1
  39. package/dist/es2019/components/slots/left-panel.js +1 -1
  40. package/dist/es2019/components/slots/left-sidebar-without-resize.js +1 -1
  41. package/dist/es2019/components/slots/left-sidebar.js +1 -1
  42. package/dist/es2019/components/slots/main.js +1 -1
  43. package/dist/es2019/components/slots/page-layout.js +1 -1
  44. package/dist/es2019/components/slots/right-panel.js +1 -1
  45. package/dist/es2019/components/slots/right-sidebar.js +1 -1
  46. package/dist/es2019/components/slots/top-navigation.js +1 -1
  47. package/dist/es2019/version.json +1 -1
  48. package/dist/esm/components/resize-control/grab-area.js +1 -1
  49. package/dist/esm/components/resize-control/index.js +1 -1
  50. package/dist/esm/components/resize-control/resize-button.js +1 -1
  51. package/dist/esm/components/resize-control/shadow.js +1 -1
  52. package/dist/esm/components/skip-links/skip-link-components.js +1 -1
  53. package/dist/esm/components/slots/banner.js +1 -1
  54. package/dist/esm/components/slots/content.js +1 -1
  55. package/dist/esm/components/slots/internal/left-sidebar-inner.js +1 -1
  56. package/dist/esm/components/slots/internal/left-sidebar-outer.js +1 -1
  57. package/dist/esm/components/slots/internal/resizable-children-wrapper.js +1 -1
  58. package/dist/esm/components/slots/internal/slot-focus-ring.js +1 -1
  59. package/dist/esm/components/slots/left-panel.js +1 -1
  60. package/dist/esm/components/slots/left-sidebar-without-resize.js +1 -1
  61. package/dist/esm/components/slots/left-sidebar.js +1 -1
  62. package/dist/esm/components/slots/main.js +1 -1
  63. package/dist/esm/components/slots/page-layout.js +1 -1
  64. package/dist/esm/components/slots/right-panel.js +1 -1
  65. package/dist/esm/components/slots/right-sidebar.js +1 -1
  66. package/dist/esm/components/slots/top-navigation.js +1 -1
  67. package/dist/esm/version.json +1 -1
  68. package/dist/types/components/resize-control/grab-area.d.ts +2 -1
  69. package/dist/types/components/resize-control/index.d.ts +2 -2
  70. package/dist/types/components/resize-control/resize-button.d.ts +2 -2
  71. package/dist/types/components/resize-control/shadow.d.ts +2 -2
  72. package/dist/types/components/skip-links/skip-link-components.d.ts +3 -2
  73. package/dist/types/components/slots/banner.d.ts +2 -2
  74. package/dist/types/components/slots/content.d.ts +2 -1
  75. package/dist/types/components/slots/internal/left-sidebar-inner.d.ts +2 -1
  76. package/dist/types/components/slots/internal/resizable-children-wrapper.d.ts +2 -1
  77. package/dist/types/components/slots/internal/slot-focus-ring.d.ts +2 -1
  78. package/dist/types/components/slots/left-panel.d.ts +2 -2
  79. package/dist/types/components/slots/left-sidebar-without-resize.d.ts +2 -2
  80. package/dist/types/components/slots/left-sidebar.d.ts +2 -2
  81. package/dist/types/components/slots/main.d.ts +2 -2
  82. package/dist/types/components/slots/page-layout.d.ts +2 -2
  83. package/dist/types/components/slots/right-panel.d.ts +2 -2
  84. package/dist/types/components/slots/right-sidebar.d.ts +2 -2
  85. package/dist/types/components/slots/top-navigation.d.ts +2 -2
  86. package/dist/types-ts4.0/common/constants.d.ts +47 -0
  87. package/dist/types-ts4.0/common/hooks/index.d.ts +2 -0
  88. package/dist/types-ts4.0/common/hooks/use-is-sidebar-collapsing.d.ts +2 -0
  89. package/dist/types-ts4.0/common/hooks/use-is-sidebar-dragging.d.ts +2 -0
  90. package/dist/types-ts4.0/common/safe-local-storage.d.ts +2 -0
  91. package/dist/types-ts4.0/common/types.d.ts +117 -0
  92. package/dist/types-ts4.0/common/utils.d.ts +13 -0
  93. package/dist/types-ts4.0/components/index.d.ts +12 -0
  94. package/dist/types-ts4.0/components/resize-control/grab-area.d.ts +9 -0
  95. package/dist/types-ts4.0/components/resize-control/index.d.ts +4 -0
  96. package/dist/types-ts4.0/components/resize-control/resize-button.d.ts +4 -0
  97. package/dist/types-ts4.0/components/resize-control/shadow.d.ts +6 -0
  98. package/dist/types-ts4.0/components/resize-control/types.d.ts +25 -0
  99. package/dist/types-ts4.0/components/skip-links/index.d.ts +2 -0
  100. package/dist/types-ts4.0/components/skip-links/skip-link-components.d.ts +11 -0
  101. package/dist/types-ts4.0/components/skip-links/types.d.ts +8 -0
  102. package/dist/types-ts4.0/components/skip-links/use-custom-skip-link.d.ts +2 -0
  103. package/dist/types-ts4.0/components/slots/banner.d.ts +12 -0
  104. package/dist/types-ts4.0/components/slots/content.d.ts +23 -0
  105. package/dist/types-ts4.0/components/slots/internal/left-sidebar-inner.d.ts +10 -0
  106. package/dist/types-ts4.0/components/slots/internal/left-sidebar-outer.d.ts +13 -0
  107. package/dist/types-ts4.0/components/slots/internal/resizable-children-wrapper.d.ts +11 -0
  108. package/dist/types-ts4.0/components/slots/internal/slot-focus-ring.d.ts +20 -0
  109. package/dist/types-ts4.0/components/slots/left-panel.d.ts +12 -0
  110. package/dist/types-ts4.0/components/slots/left-sidebar-without-resize.d.ts +12 -0
  111. package/dist/types-ts4.0/components/slots/left-sidebar.d.ts +12 -0
  112. package/dist/types-ts4.0/components/slots/main.d.ts +12 -0
  113. package/dist/types-ts4.0/components/slots/page-layout.d.ts +12 -0
  114. package/dist/types-ts4.0/components/slots/right-panel.d.ts +12 -0
  115. package/dist/types-ts4.0/components/slots/right-sidebar.d.ts +12 -0
  116. package/dist/types-ts4.0/components/slots/slot-dimensions.d.ts +7 -0
  117. package/dist/types-ts4.0/components/slots/top-navigation.d.ts +12 -0
  118. package/dist/types-ts4.0/controllers/index.d.ts +6 -0
  119. package/dist/types-ts4.0/controllers/sidebar-resize-context.d.ts +42 -0
  120. package/dist/types-ts4.0/controllers/sidebar-resize-controller.d.ts +3 -0
  121. package/dist/types-ts4.0/controllers/skip-link-context.d.ts +5 -0
  122. package/dist/types-ts4.0/controllers/skip-link-controller.d.ts +2 -0
  123. package/dist/types-ts4.0/controllers/types.d.ts +22 -0
  124. package/dist/types-ts4.0/controllers/use-page-layout-grid.d.ts +3 -0
  125. package/dist/types-ts4.0/controllers/use-update-css-vars.d.ts +2 -0
  126. package/dist/types-ts4.0/index.d.ts +4 -0
  127. package/package.json +17 -10
@@ -11,7 +11,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
11
11
 
12
12
  var _react = require("react");
13
13
 
14
- var _core = require("@emotion/core");
14
+ var _react2 = require("@emotion/react");
15
15
 
16
16
  var _constants = require("../../common/constants");
17
17
 
@@ -51,14 +51,14 @@ var LeftSidebarWithoutResize = function LeftSidebarWithoutResize(props) {
51
51
  };
52
52
  }, [leftSidebarWidth]);
53
53
  (0, _controllers.useSkipLink)(id, skipLinkTitle);
54
- return (0, _core.jsx)(_leftSidebarOuter.default, {
54
+ return (0, _react2.jsx)(_leftSidebarOuter.default, {
55
55
  id: id,
56
56
  testId: testId,
57
57
  isFixed: isFixed
58
- }, (0, _core.jsx)(_slotDimensions.default, {
58
+ }, (0, _react2.jsx)(_slotDimensions.default, {
59
59
  variableName: _constants.VAR_LEFT_SIDEBAR_WIDTH,
60
60
  value: leftSidebarWidth
61
- }), (0, _core.jsx)(_leftSidebarInner.default, {
61
+ }), (0, _react2.jsx)(_leftSidebarInner.default, {
62
62
  isFixed: isFixed
63
63
  }, children));
64
64
  };
@@ -11,7 +11,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
11
11
 
12
12
  var _react = require("react");
13
13
 
14
- var _core = require("@emotion/core");
14
+ var _react2 = require("@emotion/react");
15
15
 
16
16
  var _constants = require("../../common/constants");
17
17
 
@@ -237,7 +237,7 @@ var LeftSidebar = function LeftSidebar(props) {
237
237
  };
238
238
 
239
239
  return (// eslint-disable-next-line jsx-a11y/mouse-events-have-key-events
240
- (0, _core.jsx)(_leftSidebarOuter.default, {
240
+ (0, _react2.jsx)(_leftSidebarOuter.default, {
241
241
  ref: leftSideBarRef,
242
242
  testId: testId,
243
243
  onMouseOver: onMouseOver,
@@ -245,17 +245,17 @@ var LeftSidebar = function LeftSidebar(props) {
245
245
  id: id,
246
246
  isFixed: isFixed,
247
247
  isFlyoutOpen: isFlyoutOpen
248
- }, (0, _core.jsx)(_slotDimensions.default, {
248
+ }, (0, _react2.jsx)(_slotDimensions.default, {
249
249
  variableName: _constants.VAR_LEFT_SIDEBAR_WIDTH,
250
250
  value: notFirstRun.current ? leftSidebarWidth : leftSidebarWidthOnMount
251
- }), (0, _core.jsx)(_leftSidebarInner.default, {
251
+ }), (0, _react2.jsx)(_leftSidebarInner.default, {
252
252
  isFixed: isFixed,
253
253
  isFlyoutOpen: isFlyoutOpen
254
- }, (0, _core.jsx)(_resizableChildrenWrapper.default, {
254
+ }, (0, _react2.jsx)(_resizableChildrenWrapper.default, {
255
255
  isFlyoutOpen: isFlyoutOpen,
256
256
  isLeftSidebarCollapsed: isLeftSidebarCollapsed,
257
257
  hasCollapsedState: !notFirstRun.current && collapsedState === 'collapsed'
258
- }, children), (0, _core.jsx)(_resizeControl.default, {
258
+ }, children), (0, _react2.jsx)(_resizeControl.default, {
259
259
  testId: testId,
260
260
  resizeGrabAreaLabel: resizeGrabAreaLabel,
261
261
  resizeButtonLabel: resizeButtonLabel // eslint-disable-next-line @repo/internal/react/no-unsafe-overrides
@@ -11,7 +11,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
11
11
 
12
12
  var _react = require("react");
13
13
 
14
- var _core = require("@emotion/core");
14
+ var _react2 = require("@emotion/react");
15
15
 
16
16
  var _accessibility = require("@atlaskit/motion/accessibility");
17
17
 
@@ -29,8 +29,8 @@ var _slotFocusRing = _interopRequireDefault(require("./internal/slot-focus-ring"
29
29
 
30
30
  /** @jsx jsx */
31
31
  // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
32
- var prefersReducedMotionStyles = (0, _core.css)((0, _accessibility.prefersReducedMotion)());
33
- var mainStyles = (0, _core.css)({
32
+ var prefersReducedMotionStyles = (0, _react2.css)((0, _accessibility.prefersReducedMotion)());
33
+ var mainStyles = (0, _react2.css)({
34
34
  minWidth: 0,
35
35
  marginLeft: 0,
36
36
  // Prevent flex container from blowing up when there's super wide content.
@@ -38,7 +38,7 @@ var mainStyles = (0, _core.css)({
38
38
  // Transition negative margin on main in sync with the increase in width of leftSidebar.
39
39
  transition: "margin-left ".concat(_constants.TRANSITION_DURATION, "ms ").concat(_curves.easeOut, " 0s")
40
40
  });
41
- var draggingStyles = (0, _core.css)({
41
+ var draggingStyles = (0, _react2.css)({
42
42
  cursor: 'ew-resize',
43
43
  // Make sure drag to resize remains snappy.
44
44
  transition: 'none'
@@ -50,7 +50,7 @@ var draggingStyles = (0, _core.css)({
50
50
  * while main remains in place.
51
51
  */
52
52
 
53
- var flyoutStyles = (0, _core.css)({
53
+ var flyoutStyles = (0, _react2.css)({
54
54
  marginLeft: "calc(-1 * var(--".concat(_constants.VAR_LEFT_SIDEBAR_FLYOUT, ", ").concat(_constants.DEFAULT_LEFT_SIDEBAR_FLYOUT_WIDTH, "px) + ").concat(_constants.COLLAPSED_LEFT_SIDEBAR_WIDTH, "px)")
55
55
  });
56
56
  /**
@@ -75,9 +75,9 @@ var Main = function Main(props) {
75
75
  isFlyoutOpen = _useContext$leftSideb.isFlyoutOpen,
76
76
  isFixed = _useContext$leftSideb.isFixed;
77
77
 
78
- return (0, _core.jsx)(_slotFocusRing.default, null, function (_ref) {
78
+ return (0, _react2.jsx)(_slotFocusRing.default, null, function (_ref) {
79
79
  var className = _ref.className;
80
- return (0, _core.jsx)("div", (0, _extends2.default)({
80
+ return (0, _react2.jsx)("div", (0, _extends2.default)({
81
81
  "data-testid": testId,
82
82
  css: [mainStyles, isDragging && draggingStyles, isFlyoutOpen && !isFixed && flyoutStyles, prefersReducedMotionStyles],
83
83
  className: className,
@@ -13,7 +13,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
13
13
 
14
14
  var _react = require("react");
15
15
 
16
- var _core = require("@emotion/core");
16
+ var _react2 = require("@emotion/react");
17
17
 
18
18
  var _constants = require("../../common/constants");
19
19
 
@@ -24,7 +24,7 @@ var _skipLinks = require("../skip-links");
24
24
  /** @jsx jsx */
25
25
  var pageLayoutSelector = (0, _defineProperty2.default)({}, _constants.PAGE_LAYOUT_CONTAINER_SELECTOR, true);
26
26
  var gridTemplateAreas = "\n \"".concat(_constants.LEFT_PANEL, " ").concat(_constants.BANNER, " ").concat(_constants.RIGHT_PANEL, "\"\n \"").concat(_constants.LEFT_PANEL, " ").concat(_constants.TOP_NAVIGATION, " ").concat(_constants.RIGHT_PANEL, "\"\n \"").concat(_constants.LEFT_PANEL, " ").concat(_constants.CONTENT, " ").concat(_constants.RIGHT_PANEL, "\"\n ");
27
- var gridStyles = (0, _core.css)({
27
+ var gridStyles = (0, _react2.css)({
28
28
  display: 'grid',
29
29
  height: '100%',
30
30
  gridTemplateAreas: gridTemplateAreas,
@@ -48,13 +48,13 @@ var PageLayout = function PageLayout(_ref) {
48
48
  testId = _ref.testId,
49
49
  onLeftSidebarExpand = _ref.onLeftSidebarExpand,
50
50
  onLeftSidebarCollapse = _ref.onLeftSidebarCollapse;
51
- return (0, _core.jsx)(_react.Fragment, null, (0, _core.jsx)(_controllers.SkipLinksController, null, (0, _core.jsx)(_skipLinks.SkipLinkWrapper, {
51
+ return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(_controllers.SkipLinksController, null, (0, _react2.jsx)(_skipLinks.SkipLinkWrapper, {
52
52
  skipLinksLabel: skipLinksLabel
53
- }), (0, _core.jsx)("div", (0, _extends2.default)({}, pageLayoutSelector, {
53
+ }), (0, _react2.jsx)("div", (0, _extends2.default)({}, pageLayoutSelector, {
54
54
  "data-testid": testId,
55
55
  css: gridStyles,
56
56
  tabIndex: -1
57
- }), (0, _core.jsx)(_controllers.SidebarResizeController, {
57
+ }), (0, _react2.jsx)(_controllers.SidebarResizeController, {
58
58
  onLeftSidebarCollapse: onLeftSidebarCollapse,
59
59
  onLeftSidebarExpand: onLeftSidebarExpand
60
60
  }, children))));
@@ -13,7 +13,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
13
13
 
14
14
  var _react = require("react");
15
15
 
16
- var _core = require("@emotion/core");
16
+ var _react2 = require("@emotion/react");
17
17
 
18
18
  var _constants = require("../../common/constants");
19
19
 
@@ -26,10 +26,10 @@ var _slotFocusRing = _interopRequireDefault(require("./internal/slot-focus-ring"
26
26
  var _slotDimensions = _interopRequireDefault(require("./slot-dimensions"));
27
27
 
28
28
  /** @jsx jsx */
29
- var baseStyles = (0, _core.css)({
29
+ var baseStyles = (0, _react2.css)({
30
30
  gridArea: _constants.RIGHT_PANEL
31
31
  });
32
- var fixedStyles = (0, _core.css)({
32
+ var fixedStyles = (0, _react2.css)({
33
33
  width: _constants.RIGHT_PANEL_WIDTH,
34
34
  position: 'fixed',
35
35
  top: 0,
@@ -62,14 +62,14 @@ var RightPanel = function RightPanel(props) {
62
62
  };
63
63
  }, [rightPanelWidth]);
64
64
  (0, _controllers.useSkipLink)(id, skipLinkTitle);
65
- return (0, _core.jsx)(_slotFocusRing.default, null, function (_ref) {
65
+ return (0, _react2.jsx)(_slotFocusRing.default, null, function (_ref) {
66
66
  var className = _ref.className;
67
- return (0, _core.jsx)("div", (0, _extends2.default)({
67
+ return (0, _react2.jsx)("div", (0, _extends2.default)({
68
68
  css: [baseStyles, isFixed && fixedStyles],
69
69
  className: className,
70
70
  "data-testid": testId,
71
71
  id: id
72
- }, (0, _utils.getPageLayoutSlotSelector)('right-panel')), (0, _core.jsx)(_slotDimensions.default, {
72
+ }, (0, _utils.getPageLayoutSlotSelector)('right-panel')), (0, _react2.jsx)(_slotDimensions.default, {
73
73
  variableName: _constants.VAR_RIGHT_PANEL_WIDTH,
74
74
  value: rightPanelWidth
75
75
  }), children);
@@ -13,7 +13,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
13
13
 
14
14
  var _react = require("react");
15
15
 
16
- var _core = require("@emotion/core");
16
+ var _react2 = require("@emotion/react");
17
17
 
18
18
  var _constants = require("../../common/constants");
19
19
 
@@ -33,7 +33,7 @@ var _slotDimensions = _interopRequireDefault(require("./slot-dimensions"));
33
33
  * If we were to apply `position: fixed` to the outer wrapper, it will be popped
34
34
  * out of its flex container and Main would stretch to occupy all the space.
35
35
  */
36
- var fixedInnerStyles = (0, _core.css)({
36
+ var fixedInnerStyles = (0, _react2.css)({
37
37
  /**
38
38
  * This width on the inner wrapper is required when it is using fixed
39
39
  * positioning. Otherwise its width is slightly off.
@@ -44,10 +44,10 @@ var fixedInnerStyles = (0, _core.css)({
44
44
  right: "calc(".concat(_constants.RIGHT_PANEL_WIDTH, ")"),
45
45
  bottom: 0
46
46
  });
47
- var staticInnerStyles = (0, _core.css)({
47
+ var staticInnerStyles = (0, _react2.css)({
48
48
  height: '100%'
49
49
  });
50
- var outerStyles = (0, _core.css)({
50
+ var outerStyles = (0, _react2.css)({
51
51
  width: _constants.RIGHT_SIDEBAR_WIDTH
52
52
  });
53
53
  /**
@@ -56,7 +56,7 @@ var outerStyles = (0, _core.css)({
56
56
  * so the pseudo element forces it to take up the necessary width.
57
57
  */
58
58
 
59
- var fixedOuterStyles = (0, _core.css)({
59
+ var fixedOuterStyles = (0, _react2.css)({
60
60
  '&::after': {
61
61
  display: 'inline-block',
62
62
  width: _constants.RIGHT_SIDEBAR_WIDTH,
@@ -89,19 +89,19 @@ var RightSidebar = function RightSidebar(props) {
89
89
  };
90
90
  }, [rightSidebarWidth, id]);
91
91
  (0, _controllers.useSkipLink)(id, skipLinkTitle);
92
- return (0, _core.jsx)(_slotFocusRing.default, {
92
+ return (0, _react2.jsx)(_slotFocusRing.default, {
93
93
  isSidebar: true
94
94
  }, function (_ref) {
95
95
  var className = _ref.className;
96
- return (0, _core.jsx)("div", (0, _extends2.default)({
96
+ return (0, _react2.jsx)("div", (0, _extends2.default)({
97
97
  "data-testid": testId,
98
98
  css: [outerStyles, isFixed && fixedOuterStyles],
99
99
  className: className,
100
100
  id: id
101
- }, (0, _utils.getPageLayoutSlotSelector)('right-sidebar')), (0, _core.jsx)(_slotDimensions.default, {
101
+ }, (0, _utils.getPageLayoutSlotSelector)('right-sidebar')), (0, _react2.jsx)(_slotDimensions.default, {
102
102
  variableName: _constants.VAR_RIGHT_SIDEBAR_WIDTH,
103
103
  value: rightSidebarWidth
104
- }), (0, _core.jsx)("div", {
104
+ }), (0, _react2.jsx)("div", {
105
105
  css: [isFixed && fixedInnerStyles, !isFixed && staticInnerStyles]
106
106
  }, children));
107
107
  });
@@ -13,7 +13,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
13
13
 
14
14
  var _react = require("react");
15
15
 
16
- var _core = require("@emotion/core");
16
+ var _react2 = require("@emotion/react");
17
17
 
18
18
  var _constants = require("../../common/constants");
19
19
 
@@ -26,11 +26,11 @@ var _slotFocusRing = _interopRequireDefault(require("./internal/slot-focus-ring"
26
26
  var _slotDimensions = _interopRequireDefault(require("./slot-dimensions"));
27
27
 
28
28
  /** @jsx jsx */
29
- var topNavigationStyles = (0, _core.css)({
29
+ var topNavigationStyles = (0, _react2.css)({
30
30
  height: _constants.TOP_NAVIGATION_HEIGHT,
31
31
  gridArea: _constants.TOP_NAVIGATION
32
32
  });
33
- var fixedStyles = (0, _core.css)({
33
+ var fixedStyles = (0, _react2.css)({
34
34
  position: 'fixed',
35
35
  zIndex: 2,
36
36
  top: _constants.BANNER_HEIGHT,
@@ -64,14 +64,14 @@ var TopNavigation = function TopNavigation(props) {
64
64
  };
65
65
  }, [topNavigationHeight]);
66
66
  (0, _controllers.useSkipLink)(id, skipLinkTitle);
67
- return (0, _core.jsx)(_slotFocusRing.default, null, function (_ref) {
67
+ return (0, _react2.jsx)(_slotFocusRing.default, null, function (_ref) {
68
68
  var className = _ref.className;
69
- return (0, _core.jsx)("div", (0, _extends2.default)({
69
+ return (0, _react2.jsx)("div", (0, _extends2.default)({
70
70
  css: [topNavigationStyles, isFixed && fixedStyles],
71
71
  className: className,
72
72
  "data-testid": testId,
73
73
  id: id
74
- }, (0, _utils.getPageLayoutSlotSelector)('top-navigation')), (0, _core.jsx)(_slotDimensions.default, {
74
+ }, (0, _utils.getPageLayoutSlotSelector)('top-navigation')), (0, _react2.jsx)(_slotDimensions.default, {
75
75
  variableName: _constants.VAR_TOP_NAVIGATION_HEIGHT,
76
76
  value: topNavigationHeight
77
77
  }), children);
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/page-layout",
3
- "version": "1.2.8",
3
+ "version": "1.3.1",
4
4
  "sideEffects": false
5
5
  }
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
 
3
3
  /** @jsx jsx */
4
- import { css, jsx } from '@emotion/core';
4
+ import { css, jsx } from '@emotion/react';
5
5
  import { B100, B200 } from '@atlaskit/theme/colors';
6
6
  import { GRAB_AREA_LINE_SELECTOR, GRAB_AREA_SELECTOR } from '../../common/constants';
7
7
 
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
 
3
3
  /** @jsx jsx */
4
4
  import { useCallback, useContext, useMemo, useRef, useState } from 'react';
5
- import { css, jsx } from '@emotion/core';
5
+ import { css, jsx } from '@emotion/react';
6
6
  import { bindAll } from 'bind-event-listener';
7
7
  import rafSchd from 'raf-schd';
8
8
  import { COLLAPSED_LEFT_SIDEBAR_WIDTH, DEFAULT_LEFT_SIDEBAR_WIDTH, IS_SIDEBAR_DRAGGING, MIN_LEFT_SIDEBAR_DRAG_THRESHOLD, RESIZE_BUTTON_SELECTOR, RESIZE_CONTROL_SELECTOR, VAR_LEFT_SIDEBAR_WIDTH } from '../../common/constants';
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
 
3
3
  /** @jsx jsx */
4
- import { css, jsx } from '@emotion/core';
4
+ import { css, jsx } from '@emotion/react';
5
5
  import ChevronRight from '@atlaskit/icon/glyph/chevron-right';
6
6
  import { easeOut } from '@atlaskit/motion/curves';
7
7
  import { mediumDurationMs, smallDurationMs } from '@atlaskit/motion/durations';
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { css, jsx } from '@emotion/core';
2
+ import { css, jsx } from '@emotion/react';
3
3
  import { easeOut } from '@atlaskit/motion';
4
4
  import { useIsSidebarDragging } from '../../common/hooks';
5
5
  const colorStops = `
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable @repo/internal/dom-events/no-unsafe-event-listeners */
2
2
 
3
3
  /** @jsx jsx */
4
- import { css, jsx } from '@emotion/core';
4
+ import { css, jsx } from '@emotion/react';
5
5
  import { easeOut, prefersReducedMotion } from '@atlaskit/motion';
6
6
  import { N30A, N60A } from '@atlaskit/theme/colors';
7
7
  import { PAGE_LAYOUT_CONTAINER_SELECTOR } from '../../common/constants';
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
 
3
3
  /** @jsx jsx */
4
4
  import { useEffect } from 'react';
5
- import { css, jsx } from '@emotion/core';
5
+ import { css, jsx } from '@emotion/react';
6
6
  import { BANNER, BANNER_HEIGHT, DEFAULT_BANNER_HEIGHT, LEFT_PANEL_WIDTH, RIGHT_PANEL_WIDTH, VAR_BANNER_HEIGHT } from '../../common/constants';
7
7
  import { getPageLayoutSlotSelector, resolveDimension } from '../../common/utils';
8
8
  import { publishGridState, useSkipLink } from '../../controllers';
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { css, jsx } from '@emotion/core';
2
+ import { css, jsx } from '@emotion/react';
3
3
  import { CONTENT } from '../../common/constants';
4
4
  const contentStyles = css({
5
5
  display: 'flex',
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { css, jsx } from '@emotion/core';
2
+ import { css, jsx } from '@emotion/react';
3
3
  import { easeOut, prefersReducedMotion } from '@atlaskit/motion';
4
4
  import { BANNER_HEIGHT, LEFT_PANEL_WIDTH, LEFT_SIDEBAR_FLYOUT_WIDTH, LEFT_SIDEBAR_WIDTH, TOP_NAVIGATION_HEIGHT, TRANSITION_DURATION } from '../../../common/constants';
5
5
  import { useIsSidebarDragging } from '../../../common/hooks';
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
 
3
3
  /** @jsx jsx */
4
4
  import { forwardRef } from 'react';
5
- import { css, jsx } from '@emotion/core';
5
+ import { css, jsx } from '@emotion/react';
6
6
  import { easeOut, prefersReducedMotion } from '@atlaskit/motion';
7
7
  import { COLLAPSED_LEFT_SIDEBAR_WIDTH, LEFT_SIDEBAR_FLYOUT_WIDTH, LEFT_SIDEBAR_WIDTH, TRANSITION_DURATION } from '../../../common/constants';
8
8
  import { useIsSidebarDragging } from '../../../common/hooks';
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { css, jsx } from '@emotion/core';
2
+ import { css, jsx } from '@emotion/react';
3
3
  import { prefersReducedMotion } from '@atlaskit/motion';
4
4
  import { TRANSITION_DURATION } from '../../../common/constants';
5
5
  import { useIsSidebarCollapsing } from '../../../common/hooks';
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { ClassNames, css, jsx } from '@emotion/core';
2
+ import { ClassNames, css, jsx } from '@emotion/react';
3
3
  import { B100 } from '@atlaskit/theme/colors';
4
4
  const focusStyles = css({
5
5
  ':focus': {
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
 
3
3
  /** @jsx jsx */
4
4
  import { useEffect } from 'react';
5
- import { css, jsx } from '@emotion/core';
5
+ import { css, jsx } from '@emotion/react';
6
6
  import { DEFAULT_LEFT_PANEL_WIDTH, LEFT_PANEL, LEFT_PANEL_WIDTH, VAR_LEFT_PANEL_WIDTH } from '../../common/constants';
7
7
  import { getPageLayoutSlotSelector, resolveDimension } from '../../common/utils';
8
8
  import { publishGridState, useSkipLink } from '../../controllers';
@@ -1,6 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import { useEffect } from 'react';
3
- import { jsx } from '@emotion/core';
3
+ import { jsx } from '@emotion/react';
4
4
  import { VAR_LEFT_SIDEBAR_WIDTH } from '../../common/constants';
5
5
  import { resolveDimension } from '../../common/utils';
6
6
  import { publishGridState, useSkipLink } from '../../controllers';
@@ -2,7 +2,7 @@
2
2
 
3
3
  /** @jsx jsx */
4
4
  import { useContext, useEffect, useRef } from 'react';
5
- import { jsx } from '@emotion/core';
5
+ import { jsx } from '@emotion/react';
6
6
  import { COLLAPSED_LEFT_SIDEBAR_WIDTH, DEFAULT_LEFT_SIDEBAR_WIDTH, FLYOUT_DELAY, RESIZE_BUTTON_SELECTOR, VAR_LEFT_SIDEBAR_FLYOUT, VAR_LEFT_SIDEBAR_WIDTH } from '../../common/constants';
7
7
  import { getGridStateFromStorage, mergeGridStateIntoStorage, resolveDimension } from '../../common/utils';
8
8
  import { publishGridState, SidebarResizeContext, useSkipLink } from '../../controllers';
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
 
3
3
  /** @jsx jsx */
4
4
  import { useContext } from 'react';
5
- import { css, jsx } from '@emotion/core';
5
+ import { css, jsx } from '@emotion/react';
6
6
  import { prefersReducedMotion } from '@atlaskit/motion/accessibility';
7
7
  import { easeOut } from '@atlaskit/motion/curves';
8
8
  import { COLLAPSED_LEFT_SIDEBAR_WIDTH, DEFAULT_LEFT_SIDEBAR_FLYOUT_WIDTH, TRANSITION_DURATION, VAR_LEFT_SIDEBAR_FLYOUT } from '../../common/constants';
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
 
3
3
  /** @jsx jsx */
4
4
  import { Fragment } from 'react';
5
- import { css, jsx } from '@emotion/core';
5
+ import { css, jsx } from '@emotion/react';
6
6
  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';
7
7
  import { SidebarResizeController, SkipLinksController } from '../../controllers';
8
8
  import { SkipLinkWrapper } from '../skip-links';
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
 
3
3
  /** @jsx jsx */
4
4
  import { useEffect } from 'react';
5
- import { css, jsx } from '@emotion/core';
5
+ import { css, jsx } from '@emotion/react';
6
6
  import { DEFAULT_RIGHT_PANEL_WIDTH, RIGHT_PANEL, RIGHT_PANEL_WIDTH, VAR_RIGHT_PANEL_WIDTH } from '../../common/constants';
7
7
  import { getPageLayoutSlotSelector, resolveDimension } from '../../common/utils';
8
8
  import { publishGridState, useSkipLink } from '../../controllers';
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
 
3
3
  /** @jsx jsx */
4
4
  import { useEffect } from 'react';
5
- import { css, jsx } from '@emotion/core';
5
+ import { css, jsx } from '@emotion/react';
6
6
  import { BANNER_HEIGHT, DEFAULT_RIGHT_SIDEBAR_WIDTH, RIGHT_PANEL_WIDTH, RIGHT_SIDEBAR_WIDTH, TOP_NAVIGATION_HEIGHT, VAR_RIGHT_SIDEBAR_WIDTH } from '../../common/constants';
7
7
  import { getPageLayoutSlotSelector, resolveDimension } from '../../common/utils';
8
8
  import { publishGridState, useSkipLink } from '../../controllers';
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
 
3
3
  /** @jsx jsx */
4
4
  import { useEffect } from 'react';
5
- import { css, jsx } from '@emotion/core';
5
+ import { css, jsx } from '@emotion/react';
6
6
  import { BANNER_HEIGHT, DEFAULT_TOP_NAVIGATION_HEIGHT, LEFT_PANEL_WIDTH, RIGHT_PANEL_WIDTH, TOP_NAVIGATION, TOP_NAVIGATION_HEIGHT, VAR_TOP_NAVIGATION_HEIGHT } from '../../common/constants';
7
7
  import { getPageLayoutSlotSelector, resolveDimension } from '../../common/utils';
8
8
  import { publishGridState, useSkipLink } from '../../controllers';
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/page-layout",
3
- "version": "1.2.8",
3
+ "version": "1.3.1",
4
4
  "sideEffects": false
5
5
  }
@@ -4,7 +4,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  var _excluded = ["testId", "isLeftSidebarCollapsed"];
5
5
 
6
6
  /** @jsx jsx */
7
- import { css, jsx } from '@emotion/core';
7
+ import { css, jsx } from '@emotion/react';
8
8
  import { B100, B200 } from '@atlaskit/theme/colors';
9
9
  import { GRAB_AREA_LINE_SELECTOR, GRAB_AREA_SELECTOR } from '../../common/constants';
10
10
 
@@ -8,7 +8,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
8
8
 
9
9
  /** @jsx jsx */
10
10
  import { useCallback, useContext, useMemo, useRef, useState } from 'react';
11
- import { css, jsx } from '@emotion/core';
11
+ import { css, jsx } from '@emotion/react';
12
12
  import { bindAll } from 'bind-event-listener';
13
13
  import rafSchd from 'raf-schd';
14
14
  import { COLLAPSED_LEFT_SIDEBAR_WIDTH, DEFAULT_LEFT_SIDEBAR_WIDTH, IS_SIDEBAR_DRAGGING, MIN_LEFT_SIDEBAR_DRAG_THRESHOLD, RESIZE_BUTTON_SELECTOR, RESIZE_CONTROL_SELECTOR, VAR_LEFT_SIDEBAR_WIDTH } from '../../common/constants';
@@ -4,7 +4,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  var _excluded = ["isLeftSidebarCollapsed", "label", "testId"];
5
5
 
6
6
  /** @jsx jsx */
7
- import { css, jsx } from '@emotion/core';
7
+ import { css, jsx } from '@emotion/react';
8
8
  import ChevronRight from '@atlaskit/icon/glyph/chevron-right';
9
9
  import { easeOut } from '@atlaskit/motion/curves';
10
10
  import { mediumDurationMs, smallDurationMs } from '@atlaskit/motion/durations';
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { css, jsx } from '@emotion/core';
2
+ import { css, jsx } from '@emotion/react';
3
3
  import { easeOut } from '@atlaskit/motion';
4
4
  import { useIsSidebarDragging } from '../../common/hooks';
5
5
  var colorStops = "\n rgba(0, 0, 0, 0.2) 0px,\n rgba(0, 0, 0, 0.2) 1px,\n rgba(0, 0, 0, 0.1) 1px,\n rgba(0, 0, 0, 0) 100%\n ";
@@ -8,7 +8,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
8
8
  /* eslint-disable @repo/internal/dom-events/no-unsafe-event-listeners */
9
9
 
10
10
  /** @jsx jsx */
11
- import { css, jsx } from '@emotion/core';
11
+ import { css, jsx } from '@emotion/react';
12
12
  import { easeOut, prefersReducedMotion } from '@atlaskit/motion';
13
13
  import { N30A, N60A } from '@atlaskit/theme/colors';
14
14
  import { PAGE_LAYOUT_CONTAINER_SELECTOR } from '../../common/constants';
@@ -3,7 +3,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
 
4
4
  /** @jsx jsx */
5
5
  import { useEffect } from 'react';
6
- import { css, jsx } from '@emotion/core';
6
+ import { css, jsx } from '@emotion/react';
7
7
  import { BANNER, BANNER_HEIGHT, DEFAULT_BANNER_HEIGHT, LEFT_PANEL_WIDTH, RIGHT_PANEL_WIDTH, VAR_BANNER_HEIGHT } from '../../common/constants';
8
8
  import { getPageLayoutSlotSelector, resolveDimension } from '../../common/utils';
9
9
  import { publishGridState, useSkipLink } from '../../controllers';
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { css, jsx } from '@emotion/core';
2
+ import { css, jsx } from '@emotion/react';
3
3
  import { CONTENT } from '../../common/constants';
4
4
  var contentStyles = css({
5
5
  display: 'flex',
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { css, jsx } from '@emotion/core';
2
+ import { css, jsx } from '@emotion/react';
3
3
  import { easeOut, prefersReducedMotion } from '@atlaskit/motion';
4
4
  import { BANNER_HEIGHT, LEFT_PANEL_WIDTH, LEFT_SIDEBAR_FLYOUT_WIDTH, LEFT_SIDEBAR_WIDTH, TOP_NAVIGATION_HEIGHT, TRANSITION_DURATION } from '../../../common/constants';
5
5
  import { useIsSidebarDragging } from '../../../common/hooks';
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
 
3
3
  /** @jsx jsx */
4
4
  import { forwardRef } from 'react';
5
- import { css, jsx } from '@emotion/core';
5
+ import { css, jsx } from '@emotion/react';
6
6
  import { easeOut, prefersReducedMotion } from '@atlaskit/motion';
7
7
  import { COLLAPSED_LEFT_SIDEBAR_WIDTH, LEFT_SIDEBAR_FLYOUT_WIDTH, LEFT_SIDEBAR_WIDTH, TRANSITION_DURATION } from '../../../common/constants';
8
8
  import { useIsSidebarDragging } from '../../../common/hooks';
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { css, jsx } from '@emotion/core';
2
+ import { css, jsx } from '@emotion/react';
3
3
  import { prefersReducedMotion } from '@atlaskit/motion';
4
4
  import { TRANSITION_DURATION } from '../../../common/constants';
5
5
  import { useIsSidebarCollapsing } from '../../../common/hooks';
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { ClassNames, css, jsx } from '@emotion/core';
2
+ import { ClassNames, css, jsx } from '@emotion/react';
3
3
  import { B100 } from '@atlaskit/theme/colors';
4
4
  var focusStyles = css({
5
5
  ':focus': {
@@ -3,7 +3,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
 
4
4
  /** @jsx jsx */
5
5
  import { useEffect } from 'react';
6
- import { css, jsx } from '@emotion/core';
6
+ import { css, jsx } from '@emotion/react';
7
7
  import { DEFAULT_LEFT_PANEL_WIDTH, LEFT_PANEL, LEFT_PANEL_WIDTH, VAR_LEFT_PANEL_WIDTH } from '../../common/constants';
8
8
  import { getPageLayoutSlotSelector, resolveDimension } from '../../common/utils';
9
9
  import { publishGridState, useSkipLink } from '../../controllers';
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
 
3
3
  /** @jsx jsx */
4
4
  import { useEffect } from 'react';
5
- import { jsx } from '@emotion/core';
5
+ import { jsx } from '@emotion/react';
6
6
  import { VAR_LEFT_SIDEBAR_WIDTH } from '../../common/constants';
7
7
  import { resolveDimension } from '../../common/utils';
8
8
  import { publishGridState, useSkipLink } from '../../controllers';