@atlaskit/page-layout 3.3.3 → 3.4.0

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 (95) hide show
  1. package/CHANGELOG.md +14 -1
  2. package/README.md +6 -3
  3. package/__perf__/examples.tsx +45 -69
  4. package/__perf__/utils/perf-example.tsx +53 -55
  5. package/__perf__/utils/product-integration/atlassian-navigation.tsx +80 -77
  6. package/__perf__/utils/product-integration/create.tsx +12 -15
  7. package/__perf__/utils/product-integration/help-popup.tsx +38 -38
  8. package/__perf__/utils/product-integration/notifications-popup.tsx +76 -74
  9. package/__perf__/utils/product-integration/profile-popup.tsx +53 -53
  10. package/__perf__/utils/product-integration/sample-footer.tsx +30 -26
  11. package/__perf__/utils/product-integration/sample-header.tsx +15 -11
  12. package/__perf__/utils/product-integration/side-navigation.tsx +92 -101
  13. package/dist/cjs/components/resize-control/grab-area.js +8 -1
  14. package/dist/cjs/components/resize-control/index.js +9 -3
  15. package/dist/cjs/components/resize-control/resize-button.js +6 -0
  16. package/dist/cjs/components/resize-control/shadow.js +9 -5
  17. package/dist/cjs/components/skip-links/skip-link-components.js +4 -2
  18. package/dist/cjs/components/skip-links/use-custom-skip-link.js +3 -0
  19. package/dist/cjs/components/slots/banner-slot.js +12 -5
  20. package/dist/cjs/components/slots/content.js +6 -0
  21. package/dist/cjs/components/slots/internal/left-sidebar-inner.js +18 -1
  22. package/dist/cjs/components/slots/internal/left-sidebar-outer.js +16 -1
  23. package/dist/cjs/components/slots/internal/resizable-children-wrapper.js +7 -1
  24. package/dist/cjs/components/slots/internal/slot-focus-ring.js +9 -2
  25. package/dist/cjs/components/slots/left-panel.js +10 -3
  26. package/dist/cjs/components/slots/left-sidebar-without-resize.js +5 -0
  27. package/dist/cjs/components/slots/left-sidebar.js +4 -1
  28. package/dist/cjs/components/slots/main.js +8 -2
  29. package/dist/cjs/components/slots/page-layout.js +10 -2
  30. package/dist/cjs/components/slots/right-panel.js +10 -3
  31. package/dist/cjs/components/slots/right-sidebar.js +14 -9
  32. package/dist/cjs/components/slots/slot-dimensions.js +5 -1
  33. package/dist/cjs/components/slots/top-navigation.js +13 -6
  34. package/dist/es2019/components/resize-control/grab-area.js +8 -1
  35. package/dist/es2019/components/resize-control/index.js +10 -2
  36. package/dist/es2019/components/resize-control/resize-button.js +7 -1
  37. package/dist/es2019/components/resize-control/shadow.js +8 -5
  38. package/dist/es2019/components/skip-links/skip-link-components.js +5 -1
  39. package/dist/es2019/components/skip-links/use-custom-skip-link.js +3 -0
  40. package/dist/es2019/components/slots/banner-slot.js +12 -5
  41. package/dist/es2019/components/slots/content.js +5 -0
  42. package/dist/es2019/components/slots/internal/left-sidebar-inner.js +19 -3
  43. package/dist/es2019/components/slots/internal/left-sidebar-outer.js +18 -3
  44. package/dist/es2019/components/slots/internal/resizable-children-wrapper.js +6 -1
  45. package/dist/es2019/components/slots/internal/slot-focus-ring.js +8 -2
  46. package/dist/es2019/components/slots/left-panel.js +10 -3
  47. package/dist/es2019/components/slots/left-sidebar-without-resize.js +5 -0
  48. package/dist/es2019/components/slots/left-sidebar.js +6 -0
  49. package/dist/es2019/components/slots/main.js +8 -2
  50. package/dist/es2019/components/slots/page-layout.js +15 -1
  51. package/dist/es2019/components/slots/right-panel.js +10 -3
  52. package/dist/es2019/components/slots/right-sidebar.js +14 -9
  53. package/dist/es2019/components/slots/slot-dimensions.js +4 -1
  54. package/dist/es2019/components/slots/top-navigation.js +13 -6
  55. package/dist/esm/components/resize-control/grab-area.js +8 -1
  56. package/dist/esm/components/resize-control/index.js +10 -2
  57. package/dist/esm/components/resize-control/resize-button.js +6 -0
  58. package/dist/esm/components/resize-control/shadow.js +8 -5
  59. package/dist/esm/components/skip-links/skip-link-components.js +5 -1
  60. package/dist/esm/components/skip-links/use-custom-skip-link.js +3 -0
  61. package/dist/esm/components/slots/banner-slot.js +12 -5
  62. package/dist/esm/components/slots/content.js +5 -0
  63. package/dist/esm/components/slots/internal/left-sidebar-inner.js +17 -1
  64. package/dist/esm/components/slots/internal/left-sidebar-outer.js +16 -1
  65. package/dist/esm/components/slots/internal/resizable-children-wrapper.js +6 -1
  66. package/dist/esm/components/slots/internal/slot-focus-ring.js +8 -2
  67. package/dist/esm/components/slots/left-panel.js +10 -3
  68. package/dist/esm/components/slots/left-sidebar-without-resize.js +5 -0
  69. package/dist/esm/components/slots/left-sidebar.js +6 -0
  70. package/dist/esm/components/slots/main.js +8 -2
  71. package/dist/esm/components/slots/page-layout.js +10 -2
  72. package/dist/esm/components/slots/right-panel.js +10 -3
  73. package/dist/esm/components/slots/right-sidebar.js +14 -9
  74. package/dist/esm/components/slots/slot-dimensions.js +5 -1
  75. package/dist/esm/components/slots/top-navigation.js +13 -6
  76. package/dist/types/components/resize-control/grab-area.d.ts +3 -0
  77. package/dist/types/components/resize-control/shadow.d.ts +3 -0
  78. package/dist/types/components/skip-links/skip-link-components.d.ts +3 -0
  79. package/dist/types/components/slots/content.d.ts +3 -0
  80. package/dist/types/components/slots/internal/left-sidebar-inner.d.ts +3 -0
  81. package/dist/types/components/slots/internal/left-sidebar-outer.d.ts +3 -0
  82. package/dist/types/components/slots/internal/resizable-children-wrapper.d.ts +3 -0
  83. package/dist/types/components/slots/internal/slot-focus-ring.d.ts +3 -0
  84. package/dist/types/index.d.ts +1 -1
  85. package/dist/types-ts4.5/components/resize-control/grab-area.d.ts +3 -0
  86. package/dist/types-ts4.5/components/resize-control/shadow.d.ts +3 -0
  87. package/dist/types-ts4.5/components/skip-links/skip-link-components.d.ts +3 -0
  88. package/dist/types-ts4.5/components/slots/content.d.ts +3 -0
  89. package/dist/types-ts4.5/components/slots/internal/left-sidebar-inner.d.ts +3 -0
  90. package/dist/types-ts4.5/components/slots/internal/left-sidebar-outer.d.ts +3 -0
  91. package/dist/types-ts4.5/components/slots/internal/resizable-children-wrapper.d.ts +3 -0
  92. package/dist/types-ts4.5/components/slots/internal/slot-focus-ring.d.ts +3 -0
  93. package/dist/types-ts4.5/index.d.ts +1 -1
  94. package/package.json +123 -123
  95. package/report.api.md +83 -84
@@ -1,7 +1,12 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
+ /**
4
+ * @jsxRuntime classic
5
+ */
3
6
  /** @jsx jsx */
4
7
  import { forwardRef, useContext } from 'react';
8
+
9
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
10
  import { css, jsx } from '@emotion/react';
6
11
  import { easeOut, prefersReducedMotion } from '@atlaskit/motion';
7
12
  import { UNSAFE_media } from '@atlaskit/primitives/responsive';
@@ -10,15 +15,18 @@ import { useIsSidebarDragging } from '../../../common/hooks';
10
15
  import { getPageLayoutSlotSelector } from '../../../common/utils';
11
16
  import { SidebarResizeContext } from '../../../controllers';
12
17
  import SlotFocusRing from './slot-focus-ring';
13
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
18
+ // 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
14
19
  var prefersReducedMotionStyles = css(prefersReducedMotion());
15
20
  var mobileStyles = css(_defineProperty({}, UNSAFE_media.below.sm, {
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
  width: MOBILE_COLLAPSED_LEFT_SIDEBAR_WIDTH,
17
23
  cursor: 'pointer',
18
24
  opacity: 1,
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
19
26
  transition: "width ".concat(TRANSITION_DURATION, "ms ").concat(easeOut, " 0s"),
20
27
  '&::after': {
21
28
  display: 'inline-block',
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
22
30
  maxWidth: MAX_MOBILE_SIDEBAR_FLYOUT_WIDTH,
23
31
  content: "''"
24
32
  }
@@ -27,11 +35,14 @@ var mobileFlyoutStyles = css(_defineProperty({}, UNSAFE_media.below.sm, {
27
35
  cursor: 'revert'
28
36
  }));
29
37
  var outerStyles = css({
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
30
39
  width: LEFT_SIDEBAR_WIDTH,
31
40
  position: 'relative',
32
41
  zIndex: 1,
33
42
  marginInlineStart: "var(--ds-space-0, 0px)",
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
34
44
  transition: "width ".concat(TRANSITION_DURATION, "ms ").concat(easeOut, " 0s"),
45
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
35
46
  ':hover': {
36
47
  '--ds--resize-button--opacity': 1
37
48
  }
@@ -48,16 +59,20 @@ var draggingStyles = css({
48
59
  * so the pseudo element forces it to take up the necessary width.
49
60
  */
50
61
  var fixedStyles = css({
62
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
51
63
  '::after': {
52
64
  display: 'inline-block',
65
+ // 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
66
  width: "".concat(LEFT_SIDEBAR_WIDTH),
54
67
  content: "''"
55
68
  }
56
69
  });
57
70
  var flyoutStyles = css({
71
+ // 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
72
  width: LEFT_SIDEBAR_FLYOUT_WIDTH
59
73
  });
60
74
  var flyoutFixedStyles = css({
75
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
61
76
  width: COLLAPSED_LEFT_SIDEBAR_WIDTH
62
77
  });
63
78
  var selector = getPageLayoutSlotSelector('left-sidebar');
@@ -1,10 +1,14 @@
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 { prefersReducedMotion } from '@atlaskit/motion';
5
9
  import { TRANSITION_DURATION } from '../../../common/constants';
6
10
  import { useIsSidebarCollapsing } from '../../../common/hooks';
7
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
11
+ // 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
8
12
  var prefersReducedMotionStyles = css(prefersReducedMotion());
9
13
 
10
14
  /**
@@ -16,6 +20,7 @@ var prefersReducedMotionStyles = css(prefersReducedMotion());
16
20
  var hideLeftSidebarContentsStyles = css({
17
21
  opacity: 0,
18
22
  transition: "opacity 0ms linear, visibility 0ms linear",
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
19
24
  transitionDelay: "".concat(TRANSITION_DURATION - 100, "ms"),
20
25
  visibility: 'hidden'
21
26
  });
@@ -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 { ClassNames, css, jsx } from '@emotion/react';
4
8
  import { B100 } from '@atlaskit/theme/colors';
5
9
  var focusStyles = css({
10
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
6
11
  ':focus': {
7
12
  outline: 'none',
8
- // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
13
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
9
14
  '> div': {
10
15
  boxShadow: "0px 0px 0px 2px inset ".concat("var(--ds-border-focused, ".concat(B100, ")")),
11
16
  outline: 'none'
@@ -18,9 +23,10 @@ var focusStyles = css({
18
23
  * so the nested selector needs to target an extra level deeper.
19
24
  */
20
25
  var sidebarFocusStyles = css({
26
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
21
27
  ':focus': {
22
28
  outline: 'none',
23
- // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
29
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
24
30
  '> div > div': {
25
31
  boxShadow: "0px 0px 0px 2px inset ".concat("var(--ds-border-focused, ".concat(B100, ")")),
26
32
  outline: 'none'
@@ -1,7 +1,12 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
+ /**
4
+ * @jsxRuntime classic
5
+ */
3
6
  /** @jsx jsx */
4
7
  import { useEffect } from 'react';
8
+
9
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
10
  import { css, jsx } from '@emotion/react';
6
11
  import { DEFAULT_LEFT_PANEL_WIDTH, LEFT_PANEL, LEFT_PANEL_WIDTH, VAR_LEFT_PANEL_WIDTH } from '../../common/constants';
7
12
  import { getPageLayoutSlotSelector, resolveDimension } from '../../common/utils';
@@ -9,14 +14,16 @@ import { publishGridState, useSkipLink } from '../../controllers';
9
14
  import SlotFocusRing from './internal/slot-focus-ring';
10
15
  import SlotDimensions from './slot-dimensions';
11
16
  var leftPanelStyles = css({
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
12
18
  gridArea: LEFT_PANEL
13
19
  });
14
20
  var leftPanelFixedStyles = css({
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
15
22
  width: LEFT_PANEL_WIDTH,
16
23
  position: 'fixed',
17
- top: 0,
18
- bottom: 0,
19
- left: 0
24
+ insetBlockEnd: 0,
25
+ insetBlockStart: 0,
26
+ insetInlineStart: 0
20
27
  });
21
28
 
22
29
  /**
@@ -1,6 +1,11 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
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 { jsx } from '@emotion/react';
5
10
  import { VAR_LEFT_SIDEBAR_WIDTH } from '../../common/constants';
6
11
  import { resolveDimension } from '../../common/utils';
@@ -2,8 +2,13 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  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; }
3
3
  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) { _defineProperty(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; }
4
4
  /* eslint-disable @repo/internal/dom-events/no-unsafe-event-listeners */
5
+ /**
6
+ * @jsxRuntime classic
7
+ */
5
8
  /** @jsx jsx */
6
9
  import { Fragment, useCallback, useContext, useEffect, useRef } from 'react';
10
+
11
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
12
  import { css, jsx } from '@emotion/react';
8
13
  import useCloseOnEscapePress from '@atlaskit/ds-lib/use-close-on-escape-press';
9
14
  import { easeOut } from '@atlaskit/motion';
@@ -26,6 +31,7 @@ var openBackdropStyles = css({
26
31
  });
27
32
  var hiddenBackdropStyles = css({
28
33
  opacity: 0,
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
29
35
  transition: "opacity ".concat(TRANSITION_DURATION, "ms ").concat(easeOut, " 0s")
30
36
  });
31
37
 
@@ -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 { 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 { prefersReducedMotion } from '@atlaskit/motion/accessibility';
6
11
  import { easeOut } from '@atlaskit/motion/curves';
@@ -10,12 +15,13 @@ import { getPageLayoutSlotSelector } from '../../common/utils';
10
15
  import { SidebarResizeContext, useSkipLink } from '../../controllers';
11
16
  import SlotFocusRing from './internal/slot-focus-ring';
12
17
 
13
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
18
+ // 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
14
19
  var prefersReducedMotionStyles = css(prefersReducedMotion());
15
20
  var mainStyles = css({
16
21
  minWidth: 0,
17
22
  flexGrow: 1,
18
23
  marginInlineStart: 0,
24
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
19
25
  transition: "margin-left ".concat(TRANSITION_DURATION, "ms ").concat(easeOut, " 0s")
20
26
  });
21
27
  var draggingStyles = css({
@@ -30,7 +36,7 @@ var draggingStyles = css({
30
36
  * while main remains in place.
31
37
  */
32
38
  var flyoutStyles = css({
33
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
39
+ // 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
40
  marginInlineStart: "calc(-1 * var(--".concat(VAR_LEFT_SIDEBAR_FLYOUT, ", ").concat(DEFAULT_LEFT_SIDEBAR_FLYOUT_WIDTH, "px) + ").concat(COLLAPSED_LEFT_SIDEBAR_WIDTH, "px)")
35
41
  });
36
42
 
@@ -1,25 +1,33 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
+ /**
4
+ * @jsxRuntime classic
5
+ */
3
6
  /** @jsx jsx */
4
7
  import { Fragment } from 'react';
8
+
9
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
10
  import { css, jsx } from '@emotion/react';
6
11
  import { UNSAFE_media } from '@atlaskit/primitives/responsive';
7
12
  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';
8
13
  import { SidebarResizeController, SkipLinksController } from '../../controllers';
9
14
  import { SkipLinkWrapper } from '../skip-links';
10
15
  var pageLayoutSelector = _defineProperty({}, PAGE_LAYOUT_CONTAINER_SELECTOR, true);
11
- var gridTemplateAreasMobile = "\n \"".concat(LEFT_PANEL, " ").concat(BANNER, "\"\n \"").concat(LEFT_PANEL, " ").concat(TOP_NAVIGATION, "\"\n \"").concat(LEFT_PANEL, " ").concat(CONTENT, "\"\n ");
12
- var gridTemplateAreas = "\n \"".concat(LEFT_PANEL, " ").concat(BANNER, " ").concat(RIGHT_PANEL, "\"\n \"").concat(LEFT_PANEL, " ").concat(TOP_NAVIGATION, " ").concat(RIGHT_PANEL, "\"\n \"").concat(LEFT_PANEL, " ").concat(CONTENT, " ").concat(RIGHT_PANEL, "\"\n ");
16
+ var gridTemplateAreasMobile = "\n".concat("\n \"", LEFT_PANEL, " ").concat(BANNER, "\"\n ", "\n \"").concat(LEFT_PANEL, " ").concat(TOP_NAVIGATION, "\"\n ", "\n \"").concat(LEFT_PANEL, " ").concat(CONTENT, "\"\n ");
17
+ var gridTemplateAreas = "\n".concat("\n \"", LEFT_PANEL, " ").concat(BANNER, " ").concat(RIGHT_PANEL, "\"\n ", "\n \"").concat(LEFT_PANEL, " ").concat(TOP_NAVIGATION, " ").concat(RIGHT_PANEL, "\"\n", "\n \"").concat(LEFT_PANEL, " ").concat(CONTENT, " ").concat(RIGHT_PANEL, "\"\n ");
13
18
  var gridStyles = css({
14
19
  display: 'grid',
15
20
  height: '100%',
16
21
  gridTemplateAreas: gridTemplateAreas,
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
  gridTemplateColumns: "".concat(LEFT_PANEL_WIDTH, " minmax(0, 1fr) ").concat(RIGHT_PANEL_WIDTH),
24
+ // 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
25
  gridTemplateRows: "".concat(BANNER_HEIGHT, " ").concat(TOP_NAVIGATION_HEIGHT, " auto"),
19
26
  outline: 'none'
20
27
  });
21
28
  var gridStylesMobileStyles = css(_defineProperty({}, UNSAFE_media.below.sm, {
22
29
  gridTemplateAreas: gridTemplateAreasMobile,
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
  gridTemplateColumns: "".concat(LEFT_PANEL_WIDTH, " minmax(0, 1fr)")
24
32
  }));
25
33
 
@@ -1,7 +1,12 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
+ /**
4
+ * @jsxRuntime classic
5
+ */
3
6
  /** @jsx jsx */
4
7
  import { useEffect } from 'react';
8
+
9
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
10
  import { css, jsx } from '@emotion/react';
6
11
  import { DEFAULT_RIGHT_PANEL_WIDTH, RIGHT_PANEL, RIGHT_PANEL_WIDTH, VAR_RIGHT_PANEL_WIDTH } from '../../common/constants';
7
12
  import { getPageLayoutSlotSelector, resolveDimension } from '../../common/utils';
@@ -9,14 +14,16 @@ import { publishGridState, useSkipLink } from '../../controllers';
9
14
  import SlotFocusRing from './internal/slot-focus-ring';
10
15
  import SlotDimensions from './slot-dimensions';
11
16
  var baseStyles = css({
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
12
18
  gridArea: RIGHT_PANEL
13
19
  });
14
20
  var fixedStyles = css({
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
15
22
  width: RIGHT_PANEL_WIDTH,
16
23
  position: 'fixed',
17
- top: 0,
18
- right: 0,
19
- bottom: 0
24
+ insetBlockEnd: 0,
25
+ insetBlockStart: 0,
26
+ insetInlineEnd: 0
20
27
  });
21
28
 
22
29
  /**
@@ -1,7 +1,12 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
+ /**
4
+ * @jsxRuntime classic
5
+ */
3
6
  /** @jsx jsx */
4
7
  import { useEffect } from 'react';
8
+
9
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
10
  import { css, jsx } from '@emotion/react';
6
11
  import { BANNER_HEIGHT, DEFAULT_RIGHT_SIDEBAR_WIDTH, RIGHT_PANEL_WIDTH, RIGHT_SIDEBAR_WIDTH, TOP_NAVIGATION_HEIGHT, VAR_RIGHT_SIDEBAR_WIDTH } from '../../common/constants';
7
12
  import { getPageLayoutSlotSelector, resolveDimension } from '../../common/utils';
@@ -16,21 +21,20 @@ import SlotDimensions from './slot-dimensions';
16
21
  * out of its flex container and Main would stretch to occupy all the space.
17
22
  */
18
23
  var fixedInnerStyles = css({
19
- /**
20
- * This width on the inner wrapper is required when it is using fixed
21
- * positioning. Otherwise its width is slightly off.
22
- */
24
+ // 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
25
  width: RIGHT_SIDEBAR_WIDTH,
24
26
  position: 'fixed',
25
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
26
- top: "calc(".concat(BANNER_HEIGHT, " + ").concat(TOP_NAVIGATION_HEIGHT, ")"),
27
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
28
- right: "calc(".concat(RIGHT_PANEL_WIDTH, ")"),
29
- bottom: 0
27
+ insetBlockEnd: 0,
28
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
29
+ insetBlockStart: "calc(".concat(BANNER_HEIGHT, " + ").concat(TOP_NAVIGATION_HEIGHT, ")"),
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
31
+ insetInlineEnd: "calc(".concat(RIGHT_PANEL_WIDTH, ")")
30
32
  });
31
33
  var staticInnerStyles = css({
32
34
  height: '100%'
33
35
  });
36
+
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
34
38
  var outerStyles = css({
35
39
  width: RIGHT_SIDEBAR_WIDTH
36
40
  });
@@ -43,6 +47,7 @@ var outerStyles = css({
43
47
  var fixedOuterStyles = css({
44
48
  '&::after': {
45
49
  display: 'inline-block',
50
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
46
51
  width: RIGHT_SIDEBAR_WIDTH,
47
52
  content: "''"
48
53
  }
@@ -4,5 +4,9 @@ export default (function (_ref) {
4
4
  var variableName = _ref.variableName,
5
5
  value = _ref.value,
6
6
  mobileValue = _ref.mobileValue;
7
- return /*#__PURE__*/React.createElement("style", null, ":root{--".concat(variableName, ":").concat(value, "px;}"), mobileValue && "".concat(UNSAFE_media.below.sm, " { :root{--").concat(variableName, ":").concat(mobileValue, "px;} }"));
7
+ return (
8
+ /*#__PURE__*/
9
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-global-styles -- Ignored via go/DSP-18766
10
+ React.createElement("style", null, ":root{--".concat(variableName, ":").concat(value, "px;}"), mobileValue && "".concat(UNSAFE_media.below.sm, " { :root{--").concat(variableName, ":").concat(mobileValue, "px;} }"))
11
+ );
8
12
  });
@@ -1,7 +1,12 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
+ /**
4
+ * @jsxRuntime classic
5
+ */
3
6
  /** @jsx jsx */
4
7
  import { useEffect } from 'react';
8
+
9
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
10
  import { css, jsx } from '@emotion/react';
6
11
  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
12
  import { getPageLayoutSlotSelector, resolveDimension } from '../../common/utils';
@@ -9,18 +14,20 @@ import { publishGridState, useSkipLink } from '../../controllers';
9
14
  import SlotFocusRing from './internal/slot-focus-ring';
10
15
  import SlotDimensions from './slot-dimensions';
11
16
  var topNavigationStyles = css({
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
12
18
  height: TOP_NAVIGATION_HEIGHT,
19
+ // 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
20
  gridArea: TOP_NAVIGATION
14
21
  });
15
22
  var fixedStyles = css({
16
23
  position: 'fixed',
17
24
  zIndex: 2,
18
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
19
- top: BANNER_HEIGHT,
20
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
21
- right: RIGHT_PANEL_WIDTH,
22
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
23
- left: LEFT_PANEL_WIDTH
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
+ insetBlockStart: BANNER_HEIGHT,
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
+ insetInlineEnd: RIGHT_PANEL_WIDTH,
29
+ // 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
30
+ insetInlineStart: LEFT_PANEL_WIDTH
24
31
  });
25
32
 
26
33
  /**
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { type ComponentProps, type FocusEvent, type KeyboardEvent, type MouseEvent } from 'react';
3
6
  import { jsx } from '@emotion/react';
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { jsx } from '@emotion/react';
3
6
  declare const Shadow: ({ testId }: {
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { type ReactNode } from 'react';
3
6
  import { jsx } from '@emotion/react';
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { type ReactNode } from 'react';
3
6
  import { jsx } from '@emotion/react';
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import type { ReactNode } from 'react';
3
6
  import { jsx } from '@emotion/react';
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { type MouseEventHandler, type ReactNode } from 'react';
3
6
  type LeftSidebarOuterProps = {
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import type { ReactNode } from 'react';
3
6
  import { jsx } from '@emotion/react';
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import type { ReactNode } from 'react';
3
6
  import { jsx } from '@emotion/react';
@@ -1,4 +1,4 @@
1
1
  export { PageLayout, Main, Content, RightSidebar, LeftSidebar, LeftSidebarWithoutResize, RightPanel, LeftPanel, Banner, TopNavigation, useCustomSkipLink, } from './components';
2
2
  export { LEFT_PANEL_WIDTH, RIGHT_PANEL_WIDTH, BANNER_HEIGHT, TOP_NAVIGATION_HEIGHT, LEFT_SIDEBAR_WIDTH, RIGHT_SIDEBAR_WIDTH, } from './common/constants';
3
3
  export { usePageLayoutResize, useLeftSidebarFlyoutLock, UNSAFE_useSetLeftSidebarState, } from './controllers';
4
- export type { SlotHeightProps, SlotWidthProps, Dimensions, LeftSidebarState, } from './common/types';
4
+ export type { SlotHeightProps, SlotWidthProps, Dimensions, LeftSidebarState } from './common/types';
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { type ComponentProps, type FocusEvent, type KeyboardEvent, type MouseEvent } from 'react';
3
6
  import { jsx } from '@emotion/react';
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { jsx } from '@emotion/react';
3
6
  declare const Shadow: ({ testId }: {
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { type ReactNode } from 'react';
3
6
  import { jsx } from '@emotion/react';
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { type ReactNode } from 'react';
3
6
  import { jsx } from '@emotion/react';
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import type { ReactNode } from 'react';
3
6
  import { jsx } from '@emotion/react';
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { type MouseEventHandler, type ReactNode } from 'react';
3
6
  type LeftSidebarOuterProps = {
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import type { ReactNode } from 'react';
3
6
  import { jsx } from '@emotion/react';
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import type { ReactNode } from 'react';
3
6
  import { jsx } from '@emotion/react';
@@ -1,4 +1,4 @@
1
1
  export { PageLayout, Main, Content, RightSidebar, LeftSidebar, LeftSidebarWithoutResize, RightPanel, LeftPanel, Banner, TopNavigation, useCustomSkipLink, } from './components';
2
2
  export { LEFT_PANEL_WIDTH, RIGHT_PANEL_WIDTH, BANNER_HEIGHT, TOP_NAVIGATION_HEIGHT, LEFT_SIDEBAR_WIDTH, RIGHT_SIDEBAR_WIDTH, } from './common/constants';
3
3
  export { usePageLayoutResize, useLeftSidebarFlyoutLock, UNSAFE_useSetLeftSidebarState, } from './controllers';
4
- export type { SlotHeightProps, SlotWidthProps, Dimensions, LeftSidebarState, } from './common/types';
4
+ export type { SlotHeightProps, SlotWidthProps, Dimensions, LeftSidebarState } from './common/types';