@atlaskit/page-header 10.9.6 → 11.0.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @atlaskit/page-header
2
2
 
3
+ ## 11.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#173248](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/173248)
8
+ [`1e25b83888a4a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1e25b83888a4a) -
9
+ Migrated from `@emotion/react` to `@compiled/react` in order to improve performance, align with
10
+ the rest of the Atlaskit techstack, and support React 18 Streaming SSR.
11
+
12
+ Please note, in order to use this version of `@atlaskit/page-header`, you will need to ensure that
13
+ your bundler is configured to handle `.css` imports correctly. Most bundlers come with built-in
14
+ support for `.css` imports, so you may not need to do anything. If you are using a different
15
+ bundler, please refer to the documentation for that bundler to understand how to handle `.css`
16
+ imports.
17
+
18
+ For more information on the migration, please refer to
19
+ [RFC-73 Migrating our components to Compiled CSS-in-JS](https://community.developer.atlassian.com/t/rfc-73-migrating-our-components-to-compiled-css-in-js/85953).
20
+
3
21
  ## 10.9.6
4
22
 
5
23
  ### Patch Changes
@@ -0,0 +1,28 @@
1
+ ._11c81p5s{font:var(--ds-font-heading-large,normal 500 24px/28px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
2
+ ._18s87y2j{margin:var(--_1j0v6uy)}
3
+ ._12ji1r31{outline-color:currentColor}
4
+ ._12y31o36{outline-width:medium}
5
+ ._16jlidpf{flex-grow:0}
6
+ ._16jlkb7n{flex-grow:1}
7
+ ._18m915vq{overflow-y:hidden}
8
+ ._1bto1l2s{text-overflow:ellipsis}
9
+ ._1dyz4jg8{letter-spacing:normal}
10
+ ._1e0c1txw{display:flex}
11
+ ._1n261g80{flex-wrap:wrap}
12
+ ._1n261q9c{flex-wrap:nowrap}
13
+ ._1o9zidpf{flex-shrink:0}
14
+ ._1o9zkb7n{flex-shrink:1}
15
+ ._1oblusic >{text-align:right}
16
+ ._1pfhidpf{margin-block-start:0}
17
+ ._1pfhpxbi{margin-block-start:var(--ds-space-200,1pc)}
18
+ ._1qu2glyw{outline-style:none}
19
+ ._1reo15vq{overflow-x:hidden}
20
+ ._1ul9idpf{min-width:0}
21
+ ._4cvr1y6m{align-items:flex-start}
22
+ ._6rthu2gc{margin-block-end:var(--ds-space-100,8px)}
23
+ ._ahbq1wug{margin-inline-start:auto}
24
+ ._bozgxy5q{padding-inline-start:var(--ds-space-400,2pc)}
25
+ ._i0dl1wug{flex-basis:auto}
26
+ ._o5721q9c{white-space:nowrap}
27
+ ._p12f1osq{max-width:100%}
28
+ ._syaz1fxt{color:var(--ds-text,#172b4d)}
@@ -1,3 +1,9 @@
1
+ /* styled.tsx generated by @compiled/babel-plugin v0.32.2 */
2
+ // TODO: Remove this eslint-disable when prop names have been renamed.
3
+ // This rule is here as prop name changes are a major as they are used
4
+ // by our consumers. The prop name concerned here is truncateTitle.
5
+ // This can be done in the next lite-mode conversion.
6
+ /* eslint-disable @repo/internal/react/boolean-prop-naming-convention */
1
7
  "use strict";
2
8
 
3
9
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -5,72 +11,21 @@ Object.defineProperty(exports, "__esModule", {
5
11
  value: true
6
12
  });
7
13
  exports.TitleWrapper = exports.TitleContainer = exports.StyledTitleWrapper = exports.OuterWrapper = exports.BottomBarWrapper = exports.ActionsWrapper = void 0;
14
+ require("./styled.compiled.css");
15
+ var _runtime = require("@compiled/react/runtime");
8
16
  var _react = _interopRequireDefault(require("react"));
9
- var _react2 = require("@emotion/react");
10
- var _primitives = require("@atlaskit/primitives");
11
- // TODO: Remove this eslint-disable when prop names have been renamed.
12
- // This rule is here as prop name changes are a major as they are used
13
- // by our consumers. The prop name concerned here is truncateTitle.
14
- // This can be done in the next lite-mode conversion.
15
- /* eslint-disable @repo/internal/react/boolean-prop-naming-convention */
16
- /**
17
- * @jsxRuntime classic
18
- * @jsx jsx
19
- */
20
-
21
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
22
-
23
- var truncateStyles = (0, _react2.css)({
24
- overflowX: 'hidden',
25
- overflowY: 'hidden',
26
- // `overflow-y` necessary to prevent a scrollbar from showing in FF: https://product-fabric.atlassian.net/browse/PYX-1035
27
- textOverflow: 'ellipsis',
28
- whiteSpace: 'nowrap'
29
- });
30
- var outerStyles = (0, _react2.css)({
31
- margin: "var(--ds-space-300, 24px)".concat(" 0 ", "var(--ds-space-200, 16px)", " 0")
32
- });
33
- var titleStyles = (0, _react2.css)({
34
- color: "var(--ds-text, #172B4D)",
35
- font: "var(--ds-font-heading-large, normal 500 24px/28px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
36
- letterSpacing: 'normal',
37
- marginBlockStart: 0,
38
- outline: 'none'
39
- });
40
- var titleWrapperStyles = (0, _react2.css)({
41
- display: 'flex',
42
- alignItems: 'flex-start',
43
- flexWrap: 'wrap'
44
- });
45
- var titleWrapperTruncateStyles = (0, _react2.css)({
46
- flexWrap: 'nowrap'
47
- });
48
- var titleContainerStyles = (0, _react2.css)({
49
- minWidth: 0,
50
- maxWidth: '100%',
51
- flex: '1 0 auto',
52
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
53
- flexShrink: undefined,
54
- marginBlockEnd: "var(--ds-space-100, 8px)"
55
- });
56
- var actionStyles = (0, _react2.css)({
57
- maxWidth: '100%',
58
- flex: '0 0 auto',
59
- marginBlockEnd: "var(--ds-space-100, 8px)",
60
- marginInlineStart: 'auto',
61
- paddingInlineStart: "var(--ds-space-400, 32px)",
62
- whiteSpace: 'nowrap',
63
- // eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
64
- '>': {
65
- textAlign: 'right'
66
- }
67
- });
68
- var titleContainerTruncateStyles = (0, _react2.css)({
69
- flexShrink: 1
70
- });
71
- var bottomBarStyles = (0, _primitives.xcss)({
72
- marginBlockStart: 'space.200'
73
- });
17
+ var _compiled = require("@atlaskit/primitives/compiled");
18
+ var styles = {
19
+ bottomBar: "_1pfhpxbi"
20
+ };
21
+ var truncateStyles = null;
22
+ var outerStyles = null;
23
+ var titleStyles = null;
24
+ var titleWrapperStyles = null;
25
+ var titleWrapperTruncateStyles = null;
26
+ var titleContainerStyles = null;
27
+ var actionStyles = null;
28
+ var titleContainerTruncateStyles = null;
74
29
 
75
30
  /**
76
31
  * __Outer wrapper__.
@@ -81,8 +36,11 @@ var bottomBarStyles = (0, _primitives.xcss)({
81
36
  */
82
37
  var OuterWrapper = exports.OuterWrapper = function OuterWrapper(_ref) {
83
38
  var children = _ref.children;
84
- return (0, _react2.jsx)("div", {
85
- css: outerStyles
39
+ return /*#__PURE__*/_react.default.createElement("div", {
40
+ className: (0, _runtime.ax)(["_18s87y2j"]),
41
+ style: {
42
+ "--_1j0v6uy": (0, _runtime.ix)("var(--ds-space-300, 24px)".concat(" 0 ", "var(--ds-space-200, 16px)", " 0"))
43
+ }
86
44
  }, children);
87
45
  };
88
46
  /**
@@ -95,11 +53,11 @@ var StyledTitleWrapper = exports.StyledTitleWrapper = /*#__PURE__*/_react.defaul
95
53
  var children = _ref2.children,
96
54
  id = _ref2.id,
97
55
  truncateTitle = _ref2.truncateTitle;
98
- return (0, _react2.jsx)("h1", {
99
- css: [titleStyles, truncateTitle && truncateStyles],
56
+ return /*#__PURE__*/_react.default.createElement("h1", {
100
57
  ref: ref,
101
58
  tabIndex: -1,
102
- id: id
59
+ id: id,
60
+ className: (0, _runtime.ax)(["_syaz1fxt _11c81p5s _1dyz4jg8 _1pfhidpf _12ji1r31 _1qu2glyw _12y31o36", truncateTitle && "_1reo15vq _18m915vq _1bto1l2s _o5721q9c"])
103
61
  }, children);
104
62
  });
105
63
  /**
@@ -111,8 +69,8 @@ var StyledTitleWrapper = exports.StyledTitleWrapper = /*#__PURE__*/_react.defaul
111
69
  var TitleWrapper = exports.TitleWrapper = function TitleWrapper(_ref3) {
112
70
  var children = _ref3.children,
113
71
  truncateTitle = _ref3.truncateTitle;
114
- return (0, _react2.jsx)("div", {
115
- css: [titleWrapperStyles, truncateTitle && titleWrapperTruncateStyles]
72
+ return /*#__PURE__*/_react.default.createElement("div", {
73
+ className: (0, _runtime.ax)(["_1e0c1txw _4cvr1y6m _1n261g80", truncateTitle && "_1n261q9c"])
116
74
  }, children);
117
75
  };
118
76
 
@@ -125,8 +83,8 @@ var TitleWrapper = exports.TitleWrapper = function TitleWrapper(_ref3) {
125
83
  var TitleContainer = exports.TitleContainer = function TitleContainer(_ref4) {
126
84
  var children = _ref4.children,
127
85
  truncateTitle = _ref4.truncateTitle;
128
- return (0, _react2.jsx)("div", {
129
- css: [titleContainerStyles, truncateTitle && titleContainerTruncateStyles]
86
+ return /*#__PURE__*/_react.default.createElement("div", {
87
+ className: (0, _runtime.ax)(["_1ul9idpf _p12f1osq _16jlkb7n _1o9zidpf _i0dl1wug _6rthu2gc", truncateTitle && "_1o9zkb7n"])
130
88
  }, children);
131
89
  };
132
90
 
@@ -138,8 +96,8 @@ var TitleContainer = exports.TitleContainer = function TitleContainer(_ref4) {
138
96
  */
139
97
  var ActionsWrapper = exports.ActionsWrapper = function ActionsWrapper(_ref5) {
140
98
  var children = _ref5.children;
141
- return (0, _react2.jsx)("div", {
142
- css: actionStyles
99
+ return /*#__PURE__*/_react.default.createElement("div", {
100
+ className: (0, _runtime.ax)(["_p12f1osq _16jlidpf _1o9zidpf _i0dl1wug _6rthu2gc _ahbq1wug _bozgxy5q _o5721q9c _1oblusic"])
143
101
  }, children);
144
102
  };
145
103
 
@@ -151,7 +109,7 @@ var ActionsWrapper = exports.ActionsWrapper = function ActionsWrapper(_ref5) {
151
109
  */
152
110
  var BottomBarWrapper = exports.BottomBarWrapper = function BottomBarWrapper(_ref6) {
153
111
  var children = _ref6.children;
154
- return (0, _react2.jsx)(_primitives.Box, {
155
- xcss: bottomBarStyles
112
+ return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
113
+ xcss: styles.bottomBar
156
114
  }, children);
157
115
  };
@@ -0,0 +1,28 @@
1
+ ._11c81p5s{font:var(--ds-font-heading-large,normal 500 24px/28px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
2
+ ._18s81d9c{margin:var(--ds-space-300,24px) 0 var(--ds-space-200,1pc) 0}
3
+ ._12ji1r31{outline-color:currentColor}
4
+ ._12y31o36{outline-width:medium}
5
+ ._16jlidpf{flex-grow:0}
6
+ ._16jlkb7n{flex-grow:1}
7
+ ._18m915vq{overflow-y:hidden}
8
+ ._1bto1l2s{text-overflow:ellipsis}
9
+ ._1dyz4jg8{letter-spacing:normal}
10
+ ._1e0c1txw{display:flex}
11
+ ._1n261g80{flex-wrap:wrap}
12
+ ._1n261q9c{flex-wrap:nowrap}
13
+ ._1o9zidpf{flex-shrink:0}
14
+ ._1o9zkb7n{flex-shrink:1}
15
+ ._1oblusic >{text-align:right}
16
+ ._1pfhidpf{margin-block-start:0}
17
+ ._1pfhpxbi{margin-block-start:var(--ds-space-200,1pc)}
18
+ ._1qu2glyw{outline-style:none}
19
+ ._1reo15vq{overflow-x:hidden}
20
+ ._1ul9idpf{min-width:0}
21
+ ._4cvr1y6m{align-items:flex-start}
22
+ ._6rthu2gc{margin-block-end:var(--ds-space-100,8px)}
23
+ ._ahbq1wug{margin-inline-start:auto}
24
+ ._bozgxy5q{padding-inline-start:var(--ds-space-400,2pc)}
25
+ ._i0dl1wug{flex-basis:auto}
26
+ ._o5721q9c{white-space:nowrap}
27
+ ._p12f1osq{max-width:100%}
28
+ ._syaz1fxt{color:var(--ds-text,#172b4d)}
@@ -1,69 +1,24 @@
1
+ /* styled.tsx generated by @compiled/babel-plugin v0.32.2 */
1
2
  // TODO: Remove this eslint-disable when prop names have been renamed.
2
3
  // This rule is here as prop name changes are a major as they are used
3
4
  // by our consumers. The prop name concerned here is truncateTitle.
4
5
  // This can be done in the next lite-mode conversion.
5
6
  /* eslint-disable @repo/internal/react/boolean-prop-naming-convention */
6
- /**
7
- * @jsxRuntime classic
8
- * @jsx jsx
9
- */
10
-
7
+ import "./styled.compiled.css";
8
+ import { ax, ix } from "@compiled/react/runtime";
11
9
  import React from 'react';
12
-
13
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
14
- import { css, jsx } from '@emotion/react';
15
- import { Box, xcss } from '@atlaskit/primitives';
16
- const truncateStyles = css({
17
- overflowX: 'hidden',
18
- overflowY: 'hidden',
19
- // `overflow-y` necessary to prevent a scrollbar from showing in FF: https://product-fabric.atlassian.net/browse/PYX-1035
20
- textOverflow: 'ellipsis',
21
- whiteSpace: 'nowrap'
22
- });
23
- const outerStyles = css({
24
- margin: `${"var(--ds-space-300, 24px)"} 0 ${"var(--ds-space-200, 16px)"} 0`
25
- });
26
- const titleStyles = css({
27
- color: "var(--ds-text, #172B4D)",
28
- font: "var(--ds-font-heading-large, normal 500 24px/28px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
29
- letterSpacing: 'normal',
30
- marginBlockStart: 0,
31
- outline: 'none'
32
- });
33
- const titleWrapperStyles = css({
34
- display: 'flex',
35
- alignItems: 'flex-start',
36
- flexWrap: 'wrap'
37
- });
38
- const titleWrapperTruncateStyles = css({
39
- flexWrap: 'nowrap'
40
- });
41
- const titleContainerStyles = css({
42
- minWidth: 0,
43
- maxWidth: '100%',
44
- flex: '1 0 auto',
45
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
46
- flexShrink: undefined,
47
- marginBlockEnd: "var(--ds-space-100, 8px)"
48
- });
49
- const actionStyles = css({
50
- maxWidth: '100%',
51
- flex: '0 0 auto',
52
- marginBlockEnd: "var(--ds-space-100, 8px)",
53
- marginInlineStart: 'auto',
54
- paddingInlineStart: "var(--ds-space-400, 32px)",
55
- whiteSpace: 'nowrap',
56
- // eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
57
- '>': {
58
- textAlign: 'right'
59
- }
60
- });
61
- const titleContainerTruncateStyles = css({
62
- flexShrink: 1
63
- });
64
- const bottomBarStyles = xcss({
65
- marginBlockStart: 'space.200'
66
- });
10
+ import { Box } from '@atlaskit/primitives/compiled';
11
+ const styles = {
12
+ bottomBar: "_1pfhpxbi"
13
+ };
14
+ const truncateStyles = null;
15
+ const outerStyles = null;
16
+ const titleStyles = null;
17
+ const titleWrapperStyles = null;
18
+ const titleWrapperTruncateStyles = null;
19
+ const titleContainerStyles = null;
20
+ const actionStyles = null;
21
+ const titleContainerTruncateStyles = null;
67
22
 
68
23
  /**
69
24
  * __Outer wrapper__.
@@ -75,8 +30,8 @@ const bottomBarStyles = xcss({
75
30
  export const OuterWrapper = ({
76
31
  children
77
32
  }) => {
78
- return jsx("div", {
79
- css: outerStyles
33
+ return /*#__PURE__*/React.createElement("div", {
34
+ className: ax(["_18s81d9c"])
80
35
  }, children);
81
36
  };
82
37
  /**
@@ -90,11 +45,11 @@ export const StyledTitleWrapper = /*#__PURE__*/React.forwardRef(({
90
45
  id,
91
46
  truncateTitle
92
47
  }, ref) => {
93
- return jsx("h1", {
94
- css: [titleStyles, truncateTitle && truncateStyles],
48
+ return /*#__PURE__*/React.createElement("h1", {
95
49
  ref: ref,
96
50
  tabIndex: -1,
97
- id: id
51
+ id: id,
52
+ className: ax(["_syaz1fxt _11c81p5s _1dyz4jg8 _1pfhidpf _12ji1r31 _1qu2glyw _12y31o36", truncateTitle && "_1reo15vq _18m915vq _1bto1l2s _o5721q9c"])
98
53
  }, children);
99
54
  });
100
55
  /**
@@ -107,8 +62,8 @@ export const TitleWrapper = ({
107
62
  children,
108
63
  truncateTitle
109
64
  }) => {
110
- return jsx("div", {
111
- css: [titleWrapperStyles, truncateTitle && titleWrapperTruncateStyles]
65
+ return /*#__PURE__*/React.createElement("div", {
66
+ className: ax(["_1e0c1txw _4cvr1y6m _1n261g80", truncateTitle && "_1n261q9c"])
112
67
  }, children);
113
68
  };
114
69
 
@@ -122,8 +77,8 @@ export const TitleContainer = ({
122
77
  children,
123
78
  truncateTitle
124
79
  }) => {
125
- return jsx("div", {
126
- css: [titleContainerStyles, truncateTitle && titleContainerTruncateStyles]
80
+ return /*#__PURE__*/React.createElement("div", {
81
+ className: ax(["_1ul9idpf _p12f1osq _16jlkb7n _1o9zidpf _i0dl1wug _6rthu2gc", truncateTitle && "_1o9zkb7n"])
127
82
  }, children);
128
83
  };
129
84
 
@@ -136,8 +91,8 @@ export const TitleContainer = ({
136
91
  export const ActionsWrapper = ({
137
92
  children
138
93
  }) => {
139
- return jsx("div", {
140
- css: actionStyles
94
+ return /*#__PURE__*/React.createElement("div", {
95
+ className: ax(["_p12f1osq _16jlidpf _1o9zidpf _i0dl1wug _6rthu2gc _ahbq1wug _bozgxy5q _o5721q9c _1oblusic"])
141
96
  }, children);
142
97
  };
143
98
 
@@ -150,7 +105,7 @@ export const ActionsWrapper = ({
150
105
  export const BottomBarWrapper = ({
151
106
  children
152
107
  }) => {
153
- return jsx(Box, {
154
- xcss: bottomBarStyles
108
+ return /*#__PURE__*/React.createElement(Box, {
109
+ xcss: styles.bottomBar
155
110
  }, children);
156
111
  };
@@ -0,0 +1,28 @@
1
+ ._11c81p5s{font:var(--ds-font-heading-large,normal 500 24px/28px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
2
+ ._18s87y2j{margin:var(--_1j0v6uy)}
3
+ ._12ji1r31{outline-color:currentColor}
4
+ ._12y31o36{outline-width:medium}
5
+ ._16jlidpf{flex-grow:0}
6
+ ._16jlkb7n{flex-grow:1}
7
+ ._18m915vq{overflow-y:hidden}
8
+ ._1bto1l2s{text-overflow:ellipsis}
9
+ ._1dyz4jg8{letter-spacing:normal}
10
+ ._1e0c1txw{display:flex}
11
+ ._1n261g80{flex-wrap:wrap}
12
+ ._1n261q9c{flex-wrap:nowrap}
13
+ ._1o9zidpf{flex-shrink:0}
14
+ ._1o9zkb7n{flex-shrink:1}
15
+ ._1oblusic >{text-align:right}
16
+ ._1pfhidpf{margin-block-start:0}
17
+ ._1pfhpxbi{margin-block-start:var(--ds-space-200,1pc)}
18
+ ._1qu2glyw{outline-style:none}
19
+ ._1reo15vq{overflow-x:hidden}
20
+ ._1ul9idpf{min-width:0}
21
+ ._4cvr1y6m{align-items:flex-start}
22
+ ._6rthu2gc{margin-block-end:var(--ds-space-100,8px)}
23
+ ._ahbq1wug{margin-inline-start:auto}
24
+ ._bozgxy5q{padding-inline-start:var(--ds-space-400,2pc)}
25
+ ._i0dl1wug{flex-basis:auto}
26
+ ._o5721q9c{white-space:nowrap}
27
+ ._p12f1osq{max-width:100%}
28
+ ._syaz1fxt{color:var(--ds-text,#172b4d)}
@@ -1,69 +1,24 @@
1
+ /* styled.tsx generated by @compiled/babel-plugin v0.32.2 */
1
2
  // TODO: Remove this eslint-disable when prop names have been renamed.
2
3
  // This rule is here as prop name changes are a major as they are used
3
4
  // by our consumers. The prop name concerned here is truncateTitle.
4
5
  // This can be done in the next lite-mode conversion.
5
6
  /* eslint-disable @repo/internal/react/boolean-prop-naming-convention */
6
- /**
7
- * @jsxRuntime classic
8
- * @jsx jsx
9
- */
10
-
7
+ import "./styled.compiled.css";
8
+ import { ax, ix } from "@compiled/react/runtime";
11
9
  import React from 'react';
12
-
13
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
14
- import { css, jsx } from '@emotion/react';
15
- import { Box, xcss } from '@atlaskit/primitives';
16
- var truncateStyles = css({
17
- overflowX: 'hidden',
18
- overflowY: 'hidden',
19
- // `overflow-y` necessary to prevent a scrollbar from showing in FF: https://product-fabric.atlassian.net/browse/PYX-1035
20
- textOverflow: 'ellipsis',
21
- whiteSpace: 'nowrap'
22
- });
23
- var outerStyles = css({
24
- margin: "var(--ds-space-300, 24px)".concat(" 0 ", "var(--ds-space-200, 16px)", " 0")
25
- });
26
- var titleStyles = css({
27
- color: "var(--ds-text, #172B4D)",
28
- font: "var(--ds-font-heading-large, normal 500 24px/28px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
29
- letterSpacing: 'normal',
30
- marginBlockStart: 0,
31
- outline: 'none'
32
- });
33
- var titleWrapperStyles = css({
34
- display: 'flex',
35
- alignItems: 'flex-start',
36
- flexWrap: 'wrap'
37
- });
38
- var titleWrapperTruncateStyles = css({
39
- flexWrap: 'nowrap'
40
- });
41
- var titleContainerStyles = css({
42
- minWidth: 0,
43
- maxWidth: '100%',
44
- flex: '1 0 auto',
45
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
46
- flexShrink: undefined,
47
- marginBlockEnd: "var(--ds-space-100, 8px)"
48
- });
49
- var actionStyles = css({
50
- maxWidth: '100%',
51
- flex: '0 0 auto',
52
- marginBlockEnd: "var(--ds-space-100, 8px)",
53
- marginInlineStart: 'auto',
54
- paddingInlineStart: "var(--ds-space-400, 32px)",
55
- whiteSpace: 'nowrap',
56
- // eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
57
- '>': {
58
- textAlign: 'right'
59
- }
60
- });
61
- var titleContainerTruncateStyles = css({
62
- flexShrink: 1
63
- });
64
- var bottomBarStyles = xcss({
65
- marginBlockStart: 'space.200'
66
- });
10
+ import { Box } from '@atlaskit/primitives/compiled';
11
+ var styles = {
12
+ bottomBar: "_1pfhpxbi"
13
+ };
14
+ var truncateStyles = null;
15
+ var outerStyles = null;
16
+ var titleStyles = null;
17
+ var titleWrapperStyles = null;
18
+ var titleWrapperTruncateStyles = null;
19
+ var titleContainerStyles = null;
20
+ var actionStyles = null;
21
+ var titleContainerTruncateStyles = null;
67
22
 
68
23
  /**
69
24
  * __Outer wrapper__.
@@ -74,8 +29,11 @@ var bottomBarStyles = xcss({
74
29
  */
75
30
  export var OuterWrapper = function OuterWrapper(_ref) {
76
31
  var children = _ref.children;
77
- return jsx("div", {
78
- css: outerStyles
32
+ return /*#__PURE__*/React.createElement("div", {
33
+ className: ax(["_18s87y2j"]),
34
+ style: {
35
+ "--_1j0v6uy": ix("var(--ds-space-300, 24px)".concat(" 0 ", "var(--ds-space-200, 16px)", " 0"))
36
+ }
79
37
  }, children);
80
38
  };
81
39
  /**
@@ -88,11 +46,11 @@ export var StyledTitleWrapper = /*#__PURE__*/React.forwardRef(function (_ref2, r
88
46
  var children = _ref2.children,
89
47
  id = _ref2.id,
90
48
  truncateTitle = _ref2.truncateTitle;
91
- return jsx("h1", {
92
- css: [titleStyles, truncateTitle && truncateStyles],
49
+ return /*#__PURE__*/React.createElement("h1", {
93
50
  ref: ref,
94
51
  tabIndex: -1,
95
- id: id
52
+ id: id,
53
+ className: ax(["_syaz1fxt _11c81p5s _1dyz4jg8 _1pfhidpf _12ji1r31 _1qu2glyw _12y31o36", truncateTitle && "_1reo15vq _18m915vq _1bto1l2s _o5721q9c"])
96
54
  }, children);
97
55
  });
98
56
  /**
@@ -104,8 +62,8 @@ export var StyledTitleWrapper = /*#__PURE__*/React.forwardRef(function (_ref2, r
104
62
  export var TitleWrapper = function TitleWrapper(_ref3) {
105
63
  var children = _ref3.children,
106
64
  truncateTitle = _ref3.truncateTitle;
107
- return jsx("div", {
108
- css: [titleWrapperStyles, truncateTitle && titleWrapperTruncateStyles]
65
+ return /*#__PURE__*/React.createElement("div", {
66
+ className: ax(["_1e0c1txw _4cvr1y6m _1n261g80", truncateTitle && "_1n261q9c"])
109
67
  }, children);
110
68
  };
111
69
 
@@ -118,8 +76,8 @@ export var TitleWrapper = function TitleWrapper(_ref3) {
118
76
  export var TitleContainer = function TitleContainer(_ref4) {
119
77
  var children = _ref4.children,
120
78
  truncateTitle = _ref4.truncateTitle;
121
- return jsx("div", {
122
- css: [titleContainerStyles, truncateTitle && titleContainerTruncateStyles]
79
+ return /*#__PURE__*/React.createElement("div", {
80
+ className: ax(["_1ul9idpf _p12f1osq _16jlkb7n _1o9zidpf _i0dl1wug _6rthu2gc", truncateTitle && "_1o9zkb7n"])
123
81
  }, children);
124
82
  };
125
83
 
@@ -131,8 +89,8 @@ export var TitleContainer = function TitleContainer(_ref4) {
131
89
  */
132
90
  export var ActionsWrapper = function ActionsWrapper(_ref5) {
133
91
  var children = _ref5.children;
134
- return jsx("div", {
135
- css: actionStyles
92
+ return /*#__PURE__*/React.createElement("div", {
93
+ className: ax(["_p12f1osq _16jlidpf _1o9zidpf _i0dl1wug _6rthu2gc _ahbq1wug _bozgxy5q _o5721q9c _1oblusic"])
136
94
  }, children);
137
95
  };
138
96
 
@@ -144,7 +102,7 @@ export var ActionsWrapper = function ActionsWrapper(_ref5) {
144
102
  */
145
103
  export var BottomBarWrapper = function BottomBarWrapper(_ref6) {
146
104
  var children = _ref6.children;
147
- return jsx(Box, {
148
- xcss: bottomBarStyles
105
+ return /*#__PURE__*/React.createElement(Box, {
106
+ xcss: styles.bottomBar
149
107
  }, children);
150
108
  };
@@ -3,7 +3,6 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import React, { type ReactNode } from 'react';
6
- import { jsx } from '@emotion/react';
7
6
  /**
8
7
  * __Outer wrapper__.
9
8
  *
@@ -13,7 +12,7 @@ import { jsx } from '@emotion/react';
13
12
  */
14
13
  export declare const OuterWrapper: ({ children }: {
15
14
  children: ReactNode;
16
- }) => jsx.JSX.Element;
15
+ }) => JSX.Element;
17
16
  interface StyledTitleWrapperProps {
18
17
  children?: React.ReactNode;
19
18
  id?: string;
@@ -36,14 +35,14 @@ interface TitleProps {
36
35
  * A title wrapper is a wrapper around the title and the actions.
37
36
  *
38
37
  */
39
- export declare const TitleWrapper: ({ children, truncateTitle }: TitleProps) => jsx.JSX.Element;
38
+ export declare const TitleWrapper: ({ children, truncateTitle }: TitleProps) => JSX.Element;
40
39
  /**
41
40
  * Title container.
42
41
  *
43
42
  * A title container is a container that wraps around the title and its styles (if applied).
44
43
  *
45
44
  */
46
- export declare const TitleContainer: ({ children, truncateTitle }: TitleProps) => jsx.JSX.Element;
45
+ export declare const TitleContainer: ({ children, truncateTitle }: TitleProps) => JSX.Element;
47
46
  /**
48
47
  * __Actions wrapper__.
49
48
  *
@@ -52,7 +51,7 @@ export declare const TitleContainer: ({ children, truncateTitle }: TitleProps) =
52
51
  */
53
52
  export declare const ActionsWrapper: ({ children }: {
54
53
  children: ReactNode;
55
- }) => jsx.JSX.Element;
54
+ }) => JSX.Element;
56
55
  /**
57
56
  * __Bottom bar wrapper__.
58
57
  *
@@ -61,5 +60,5 @@ export declare const ActionsWrapper: ({ children }: {
61
60
  */
62
61
  export declare const BottomBarWrapper: ({ children }: {
63
62
  children: ReactNode;
64
- }) => jsx.JSX.Element;
63
+ }) => JSX.Element;
65
64
  export {};
@@ -3,7 +3,6 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import React, { type ReactNode } from 'react';
6
- import { jsx } from '@emotion/react';
7
6
  /**
8
7
  * __Outer wrapper__.
9
8
  *
@@ -13,7 +12,7 @@ import { jsx } from '@emotion/react';
13
12
  */
14
13
  export declare const OuterWrapper: ({ children }: {
15
14
  children: ReactNode;
16
- }) => jsx.JSX.Element;
15
+ }) => JSX.Element;
17
16
  interface StyledTitleWrapperProps {
18
17
  children?: React.ReactNode;
19
18
  id?: string;
@@ -36,14 +35,14 @@ interface TitleProps {
36
35
  * A title wrapper is a wrapper around the title and the actions.
37
36
  *
38
37
  */
39
- export declare const TitleWrapper: ({ children, truncateTitle }: TitleProps) => jsx.JSX.Element;
38
+ export declare const TitleWrapper: ({ children, truncateTitle }: TitleProps) => JSX.Element;
40
39
  /**
41
40
  * Title container.
42
41
  *
43
42
  * A title container is a container that wraps around the title and its styles (if applied).
44
43
  *
45
44
  */
46
- export declare const TitleContainer: ({ children, truncateTitle }: TitleProps) => jsx.JSX.Element;
45
+ export declare const TitleContainer: ({ children, truncateTitle }: TitleProps) => JSX.Element;
47
46
  /**
48
47
  * __Actions wrapper__.
49
48
  *
@@ -52,7 +51,7 @@ export declare const TitleContainer: ({ children, truncateTitle }: TitleProps) =
52
51
  */
53
52
  export declare const ActionsWrapper: ({ children }: {
54
53
  children: ReactNode;
55
- }) => jsx.JSX.Element;
54
+ }) => JSX.Element;
56
55
  /**
57
56
  * __Bottom bar wrapper__.
58
57
  *
@@ -61,5 +60,5 @@ export declare const ActionsWrapper: ({ children }: {
61
60
  */
62
61
  export declare const BottomBarWrapper: ({ children }: {
63
62
  children: ReactNode;
64
- }) => jsx.JSX.Element;
63
+ }) => JSX.Element;
65
64
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/page-header",
3
- "version": "10.9.6",
3
+ "version": "11.0.0",
4
4
  "description": "A page header defines the top of a page. It contains a title and can be optionally combined with breadcrumbs buttons, search, and filters.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -20,15 +20,16 @@
20
20
  "team": "Design System Team",
21
21
  "website": {
22
22
  "name": "Page header",
23
- "category": "Components"
23
+ "category": "Layout and structure"
24
24
  },
25
25
  "runReact18": true
26
26
  },
27
27
  "dependencies": {
28
- "@atlaskit/primitives": "^13.2.0",
29
- "@atlaskit/tokens": "^2.2.0",
28
+ "@atlaskit/css": "^0.7.0",
29
+ "@atlaskit/primitives": "^13.3.0",
30
+ "@atlaskit/tokens": "^2.4.0",
30
31
  "@babel/runtime": "^7.0.0",
31
- "@emotion/react": "^11.7.1"
32
+ "@compiled/react": "^0.18.1"
32
33
  },
33
34
  "peerDependencies": {
34
35
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
@@ -36,12 +37,13 @@
36
37
  },
37
38
  "devDependencies": {
38
39
  "@af/accessibility-testing": "*",
40
+ "@af/integration-testing": "*",
39
41
  "@af/visual-regression": "*",
40
42
  "@atlaskit/breadcrumbs": "^14.0.0",
41
- "@atlaskit/ds-lib": "^3.2.0",
43
+ "@atlaskit/ds-lib": "^3.3.0",
42
44
  "@atlaskit/page": "^12.6.0",
43
45
  "@atlaskit/ssr": "*",
44
- "@atlaskit/textfield": "^6.5.0",
46
+ "@atlaskit/textfield": "^6.7.0",
45
47
  "@atlaskit/visual-regression": "*",
46
48
  "@testing-library/react": "^12.1.5",
47
49
  "react-dom": "^16.8.0",