@atlaskit/page-header 12.1.16 → 12.1.18

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 (62) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/PageHeader/actions-wrapper.compiled.css +8 -0
  3. package/dist/cjs/PageHeader/actions-wrapper.js +27 -0
  4. package/dist/cjs/PageHeader/bottom-bar.compiled.css +1 -0
  5. package/dist/cjs/PageHeader/bottom-bar.js +30 -0
  6. package/dist/cjs/PageHeader/index.js +10 -5
  7. package/dist/cjs/PageHeader/outer-wrapper.compiled.css +4 -0
  8. package/dist/cjs/PageHeader/outer-wrapper.js +28 -0
  9. package/dist/cjs/PageHeader/title-container.compiled.css +7 -0
  10. package/dist/cjs/PageHeader/title-container.js +33 -0
  11. package/dist/cjs/PageHeader/title-wrapper.compiled.css +3 -0
  12. package/dist/cjs/PageHeader/title-wrapper.js +33 -0
  13. package/dist/cjs/PageHeader/title.compiled.css +11 -0
  14. package/dist/cjs/PageHeader/title.js +38 -0
  15. package/dist/es2019/PageHeader/actions-wrapper.compiled.css +8 -0
  16. package/dist/es2019/PageHeader/actions-wrapper.js +20 -0
  17. package/dist/es2019/PageHeader/bottom-bar.compiled.css +1 -0
  18. package/dist/es2019/PageHeader/bottom-bar.js +23 -0
  19. package/dist/es2019/PageHeader/index.js +8 -3
  20. package/dist/es2019/PageHeader/outer-wrapper.compiled.css +4 -0
  21. package/dist/es2019/PageHeader/outer-wrapper.js +21 -0
  22. package/dist/es2019/PageHeader/title-container.compiled.css +7 -0
  23. package/dist/es2019/PageHeader/title-container.js +26 -0
  24. package/dist/es2019/PageHeader/title-wrapper.compiled.css +3 -0
  25. package/dist/es2019/PageHeader/title-wrapper.js +26 -0
  26. package/dist/es2019/PageHeader/title.compiled.css +11 -0
  27. package/dist/es2019/PageHeader/title.js +32 -0
  28. package/dist/esm/PageHeader/actions-wrapper.compiled.css +8 -0
  29. package/dist/esm/PageHeader/actions-wrapper.js +19 -0
  30. package/dist/esm/PageHeader/bottom-bar.compiled.css +1 -0
  31. package/dist/esm/PageHeader/bottom-bar.js +22 -0
  32. package/dist/esm/PageHeader/index.js +8 -3
  33. package/dist/esm/PageHeader/outer-wrapper.compiled.css +4 -0
  34. package/dist/esm/PageHeader/outer-wrapper.js +20 -0
  35. package/dist/esm/PageHeader/title-container.compiled.css +7 -0
  36. package/dist/esm/PageHeader/title-container.js +25 -0
  37. package/dist/esm/PageHeader/title-wrapper.compiled.css +3 -0
  38. package/dist/esm/PageHeader/title-wrapper.js +25 -0
  39. package/dist/esm/PageHeader/title.compiled.css +11 -0
  40. package/dist/esm/PageHeader/title.js +31 -0
  41. package/dist/types/PageHeader/actions-wrapper.d.ts +15 -0
  42. package/dist/types/PageHeader/bottom-bar.d.ts +15 -0
  43. package/dist/types/PageHeader/outer-wrapper.d.ts +16 -0
  44. package/dist/types/PageHeader/title-container.d.ts +17 -0
  45. package/dist/types/PageHeader/title-wrapper.d.ts +17 -0
  46. package/dist/types/PageHeader/title.d.ts +19 -0
  47. package/dist/types-ts4.5/PageHeader/actions-wrapper.d.ts +15 -0
  48. package/dist/types-ts4.5/PageHeader/bottom-bar.d.ts +15 -0
  49. package/dist/types-ts4.5/PageHeader/outer-wrapper.d.ts +16 -0
  50. package/dist/types-ts4.5/PageHeader/title-container.d.ts +17 -0
  51. package/dist/types-ts4.5/PageHeader/title-wrapper.d.ts +17 -0
  52. package/dist/types-ts4.5/PageHeader/title.d.ts +19 -0
  53. package/package.json +10 -9
  54. package/page-header.docs.tsx +47 -0
  55. package/dist/cjs/PageHeader/styled.compiled.css +0 -30
  56. package/dist/cjs/PageHeader/styled.js +0 -114
  57. package/dist/es2019/PageHeader/styled.compiled.css +0 -30
  58. package/dist/es2019/PageHeader/styled.js +0 -113
  59. package/dist/esm/PageHeader/styled.compiled.css +0 -30
  60. package/dist/esm/PageHeader/styled.js +0 -107
  61. package/dist/types/PageHeader/styled.d.ts +0 -65
  62. package/dist/types-ts4.5/PageHeader/styled.d.ts +0 -65
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @atlaskit/page-header
2
2
 
3
+ ## 12.1.18
4
+
5
+ ### Patch Changes
6
+
7
+ - [`807c3489b9542`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/807c3489b9542) -
8
+ Restructures internal files so that they have a single export per file.
9
+
10
+ ## 12.1.17
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 12.1.16
4
17
 
5
18
  ### Patch Changes
@@ -0,0 +1,8 @@
1
+ ._16jlidpf{flex-grow:0}
2
+ ._1o9zidpf{flex-shrink:0}
3
+ ._6rthu2gc{margin-block-end:var(--ds-space-100,8px)}
4
+ ._ahbq1wug{margin-inline-start:auto}
5
+ ._bozgxy5q{padding-inline-start:var(--ds-space-400,2pc)}
6
+ ._i0dl1wug{flex-basis:auto}
7
+ ._o5721q9c{white-space:nowrap}
8
+ ._p12f1osq{max-width:100%}
@@ -0,0 +1,27 @@
1
+ /* actions-wrapper.tsx generated by @compiled/babel-plugin v0.39.1 */
2
+ "use strict";
3
+
4
+ var _typeof = require("@babel/runtime/helpers/typeof");
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = void 0;
9
+ require("./actions-wrapper.compiled.css");
10
+ var React = _interopRequireWildcard(require("react"));
11
+ var _runtime = require("@compiled/react/runtime");
12
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
13
+ var actionStyles = null;
14
+
15
+ /**
16
+ * __Actions wrapper__.
17
+ *
18
+ * An actions wrapper is a wrapper for the actions, which appear on the top right of the PageHeader component.
19
+ *
20
+ */
21
+ var ActionsWrapper = function ActionsWrapper(_ref) {
22
+ var children = _ref.children;
23
+ return /*#__PURE__*/React.createElement("div", {
24
+ className: (0, _runtime.ax)(["_16jlidpf _1o9zidpf _i0dl1wug _p12f1osq _6rthu2gc _ahbq1wug _bozgxy5q _o5721q9c"])
25
+ }, children);
26
+ };
27
+ var _default = exports.default = ActionsWrapper;
@@ -0,0 +1 @@
1
+ ._1pfhpxbi{margin-block-start:var(--ds-space-200,1pc)}
@@ -0,0 +1,30 @@
1
+ /* bottom-bar.tsx generated by @compiled/babel-plugin v0.39.1 */
2
+ "use strict";
3
+
4
+ var _typeof = require("@babel/runtime/helpers/typeof");
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = void 0;
9
+ require("./bottom-bar.compiled.css");
10
+ var React = _interopRequireWildcard(require("react"));
11
+ var _runtime = require("@compiled/react/runtime");
12
+ var _compiled = require("@atlaskit/primitives/compiled");
13
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
14
+ var styles = {
15
+ bottomBar: "_1pfhpxbi"
16
+ };
17
+
18
+ /**
19
+ * __Bottom bar__.
20
+ *
21
+ * A bottom bar is a wrapper for the bottom bar, which appears at the bottom of the PageHeader component.
22
+ *
23
+ */
24
+ var BottomBar = function BottomBar(_ref) {
25
+ var children = _ref.children;
26
+ return /*#__PURE__*/React.createElement(_compiled.Box, {
27
+ xcss: styles.bottomBar
28
+ }, children);
29
+ };
30
+ var _default = exports.default = BottomBar;
@@ -6,7 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.default = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
- var _styled = require("./styled");
9
+ var _actionsWrapper = _interopRequireDefault(require("./actions-wrapper"));
10
+ var _bottomBar = _interopRequireDefault(require("./bottom-bar"));
11
+ var _outerWrapper = _interopRequireDefault(require("./outer-wrapper"));
12
+ var _title = _interopRequireDefault(require("./title"));
13
+ var _titleContainer = _interopRequireDefault(require("./title-container"));
14
+ var _titleWrapper = _interopRequireDefault(require("./title-wrapper"));
10
15
  // TODO: Remove this eslint-disable when prop names have been renamed.
11
16
  // This rule is here as prop name changes are a major as they are used
12
17
  // by our consumers. This can be done in the next lite-mode conversion.
@@ -34,15 +39,15 @@ var PageHeader = function PageHeader(_ref) {
34
39
  _ref$truncateTitle = _ref.truncateTitle,
35
40
  truncateTitle = _ref$truncateTitle === void 0 ? false : _ref$truncateTitle,
36
41
  testId = _ref.testId;
37
- return /*#__PURE__*/_react.default.createElement(_styled.OuterWrapper, null, breadcrumbs, /*#__PURE__*/_react.default.createElement(_styled.TitleWrapper, {
42
+ return /*#__PURE__*/_react.default.createElement(_outerWrapper.default, null, breadcrumbs, /*#__PURE__*/_react.default.createElement(_titleWrapper.default, {
38
43
  truncateTitle: truncateTitle
39
- }, /*#__PURE__*/_react.default.createElement(_styled.TitleContainer, {
44
+ }, /*#__PURE__*/_react.default.createElement(_titleContainer.default, {
40
45
  truncateTitle: truncateTitle
41
- }, disableTitleStyles ? children : /*#__PURE__*/_react.default.createElement(_styled.StyledTitleWrapper, {
46
+ }, disableTitleStyles ? children : /*#__PURE__*/_react.default.createElement(_title.default, {
42
47
  ref: innerRef,
43
48
  truncateTitle: truncateTitle,
44
49
  id: id,
45
50
  testId: testId
46
- }, children)), actions && /*#__PURE__*/_react.default.createElement(_styled.ActionsWrapper, null, actions)), bottomBar && /*#__PURE__*/_react.default.createElement(_styled.BottomBarWrapper, null, " ", bottomBar, " "));
51
+ }, children)), actions && /*#__PURE__*/_react.default.createElement(_actionsWrapper.default, null, actions)), bottomBar && /*#__PURE__*/_react.default.createElement(_bottomBar.default, null, " ", bottomBar, " "));
47
52
  };
48
53
  var _default = exports.default = PageHeader;
@@ -0,0 +1,4 @@
1
+ ._12l2idpf{margin-inline-end:0}
2
+ ._1pfh1ejb{margin-block-start:var(--ds-space-300,24px)}
3
+ ._6rthpxbi{margin-block-end:var(--ds-space-200,1pc)}
4
+ ._ahbqidpf{margin-inline-start:0}
@@ -0,0 +1,28 @@
1
+ /* outer-wrapper.tsx generated by @compiled/babel-plugin v0.39.1 */
2
+ "use strict";
3
+
4
+ var _typeof = require("@babel/runtime/helpers/typeof");
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = void 0;
9
+ require("./outer-wrapper.compiled.css");
10
+ var React = _interopRequireWildcard(require("react"));
11
+ var _runtime = require("@compiled/react/runtime");
12
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
13
+ var outerStyles = null;
14
+
15
+ /**
16
+ * __Outer wrapper__.
17
+ *
18
+ * An outer wrapper that is the outermost component of the PageHeader component. It wraps around the PageHeader, its Actions,
19
+ * the BottomBar and its Breadcrumbs.
20
+ *
21
+ */
22
+ var OuterWrapper = function OuterWrapper(_ref) {
23
+ var children = _ref.children;
24
+ return /*#__PURE__*/React.createElement("div", {
25
+ className: (0, _runtime.ax)(["_6rthpxbi _1pfh1ejb _12l2idpf _ahbqidpf"])
26
+ }, children);
27
+ };
28
+ var _default = exports.default = OuterWrapper;
@@ -0,0 +1,7 @@
1
+ ._16jlkb7n{flex-grow:1}
2
+ ._1i4q1hna{overflow-wrap:break-word}
3
+ ._1o9zkb7n{flex-shrink:1}
4
+ ._1ul9idpf{min-width:0}
5
+ ._6rthu2gc{margin-block-end:var(--ds-space-100,8px)}
6
+ ._i0dl1wug{flex-basis:auto}
7
+ ._p12f1osq{max-width:100%}
@@ -0,0 +1,33 @@
1
+ /* title-container.tsx generated by @compiled/babel-plugin v0.39.1 */
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 */
7
+ "use strict";
8
+
9
+ var _typeof = require("@babel/runtime/helpers/typeof");
10
+ Object.defineProperty(exports, "__esModule", {
11
+ value: true
12
+ });
13
+ exports.default = void 0;
14
+ require("./title-container.compiled.css");
15
+ var React = _interopRequireWildcard(require("react"));
16
+ var _runtime = require("@compiled/react/runtime");
17
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
18
+ var titleContainerStyles = null;
19
+ var titleContainerTruncateStyles = null;
20
+ /**
21
+ * Title container.
22
+ *
23
+ * A title container is a container that wraps around the title and its styles (if applied).
24
+ *
25
+ */
26
+ var TitleContainer = function TitleContainer(_ref) {
27
+ var children = _ref.children,
28
+ truncateTitle = _ref.truncateTitle;
29
+ return /*#__PURE__*/React.createElement("div", {
30
+ className: (0, _runtime.ax)(["_16jlkb7n _1o9zkb7n _i0dl1wug _1ul9idpf _p12f1osq _6rthu2gc _1i4q1hna", truncateTitle && "_1o9zkb7n"])
31
+ }, children);
32
+ };
33
+ var _default = exports.default = TitleContainer;
@@ -0,0 +1,3 @@
1
+ ._1e0c1txw{display:flex}
2
+ ._1n261q9c{flex-wrap:nowrap}
3
+ ._4cvr1y6m{align-items:flex-start}
@@ -0,0 +1,33 @@
1
+ /* title-wrapper.tsx generated by @compiled/babel-plugin v0.39.1 */
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 */
7
+ "use strict";
8
+
9
+ var _typeof = require("@babel/runtime/helpers/typeof");
10
+ Object.defineProperty(exports, "__esModule", {
11
+ value: true
12
+ });
13
+ exports.default = void 0;
14
+ require("./title-wrapper.compiled.css");
15
+ var React = _interopRequireWildcard(require("react"));
16
+ var _runtime = require("@compiled/react/runtime");
17
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
18
+ var titleWrapperStyles = null;
19
+ var titleWrapperTruncateStyles = null;
20
+ /**
21
+ * __Title wrapper__.
22
+ *
23
+ * A title wrapper is a wrapper around the title and the actions.
24
+ *
25
+ */
26
+ var TitleWrapper = function TitleWrapper(_ref) {
27
+ var children = _ref.children,
28
+ truncateTitle = _ref.truncateTitle;
29
+ return /*#__PURE__*/React.createElement("div", {
30
+ className: (0, _runtime.ax)(["_1e0c1txw _4cvr1y6m _1n261q9c", truncateTitle && "_1n261q9c"])
31
+ }, children);
32
+ };
33
+ var _default = exports.default = TitleWrapper;
@@ -0,0 +1,11 @@
1
+ ._11c810sd{font:var(--ds-font-heading-large,normal 653 24px/28px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
+ ._12ji1r31{outline-color:currentColor}
3
+ ._12y31o36{outline-width:medium}
4
+ ._18m915vq{overflow-y:hidden}
5
+ ._1bto1l2s{text-overflow:ellipsis}
6
+ ._1dyz4jg8{letter-spacing:normal}
7
+ ._1pfhidpf{margin-block-start:0}
8
+ ._1qu2glyw{outline-style:none}
9
+ ._1reo15vq{overflow-x:hidden}
10
+ ._o5721q9c{white-space:nowrap}
11
+ ._syazi7uo{color:var(--ds-text,#292a2e)}
@@ -0,0 +1,38 @@
1
+ /* title.tsx generated by @compiled/babel-plugin v0.39.1 */
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 */
7
+ "use strict";
8
+
9
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
10
+ Object.defineProperty(exports, "__esModule", {
11
+ value: true
12
+ });
13
+ exports.default = void 0;
14
+ require("./title.compiled.css");
15
+ var _runtime = require("@compiled/react/runtime");
16
+ var _react = _interopRequireDefault(require("react"));
17
+ var truncateStyles = null;
18
+ var titleStyles = null;
19
+ /**
20
+ * __Styled title wrapper__.
21
+ *
22
+ * A styled title wrapper is a wrapper around the title that controls its the styles exclusively.
23
+ *
24
+ */
25
+ var Title = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
26
+ var children = _ref.children,
27
+ id = _ref.id,
28
+ truncateTitle = _ref.truncateTitle,
29
+ testId = _ref.testId;
30
+ return /*#__PURE__*/_react.default.createElement("h1", {
31
+ ref: ref,
32
+ tabIndex: -1,
33
+ id: id,
34
+ "data-testid": testId && "".concat(testId, "--title"),
35
+ className: (0, _runtime.ax)(["_11c810sd _12ji1r31 _1qu2glyw _12y31o36 _syazi7uo _1dyz4jg8 _1pfhidpf", truncateTitle && "_1reo15vq _18m915vq _1bto1l2s _o5721q9c"])
36
+ }, children);
37
+ });
38
+ var _default = exports.default = Title;
@@ -0,0 +1,8 @@
1
+ ._16jlidpf{flex-grow:0}
2
+ ._1o9zidpf{flex-shrink:0}
3
+ ._6rthu2gc{margin-block-end:var(--ds-space-100,8px)}
4
+ ._ahbq1wug{margin-inline-start:auto}
5
+ ._bozgxy5q{padding-inline-start:var(--ds-space-400,2pc)}
6
+ ._i0dl1wug{flex-basis:auto}
7
+ ._o5721q9c{white-space:nowrap}
8
+ ._p12f1osq{max-width:100%}
@@ -0,0 +1,20 @@
1
+ /* actions-wrapper.tsx generated by @compiled/babel-plugin v0.39.1 */
2
+ import "./actions-wrapper.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
5
+ const actionStyles = null;
6
+
7
+ /**
8
+ * __Actions wrapper__.
9
+ *
10
+ * An actions wrapper is a wrapper for the actions, which appear on the top right of the PageHeader component.
11
+ *
12
+ */
13
+ const ActionsWrapper = ({
14
+ children
15
+ }) => {
16
+ return /*#__PURE__*/React.createElement("div", {
17
+ className: ax(["_16jlidpf _1o9zidpf _i0dl1wug _p12f1osq _6rthu2gc _ahbq1wug _bozgxy5q _o5721q9c"])
18
+ }, children);
19
+ };
20
+ export default ActionsWrapper;
@@ -0,0 +1 @@
1
+ ._1pfhpxbi{margin-block-start:var(--ds-space-200,1pc)}
@@ -0,0 +1,23 @@
1
+ /* bottom-bar.tsx generated by @compiled/babel-plugin v0.39.1 */
2
+ import "./bottom-bar.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
5
+ import { Box } from '@atlaskit/primitives/compiled';
6
+ const styles = {
7
+ bottomBar: "_1pfhpxbi"
8
+ };
9
+
10
+ /**
11
+ * __Bottom bar__.
12
+ *
13
+ * A bottom bar is a wrapper for the bottom bar, which appears at the bottom of the PageHeader component.
14
+ *
15
+ */
16
+ const BottomBar = ({
17
+ children
18
+ }) => {
19
+ return /*#__PURE__*/React.createElement(Box, {
20
+ xcss: styles.bottomBar
21
+ }, children);
22
+ };
23
+ export default BottomBar;
@@ -3,7 +3,12 @@
3
3
  // by our consumers. This can be done in the next lite-mode conversion.
4
4
  /* eslint-disable @repo/internal/react/boolean-prop-naming-convention */
5
5
  import React from 'react';
6
- import { ActionsWrapper, BottomBarWrapper, OuterWrapper, StyledTitleWrapper, TitleContainer, TitleWrapper } from './styled';
6
+ import ActionsWrapper from './actions-wrapper';
7
+ import BottomBar from './bottom-bar';
8
+ import OuterWrapper from './outer-wrapper';
9
+ import Title from './title';
10
+ import TitleContainer from './title-container';
11
+ import TitleWrapper from './title-wrapper';
7
12
  /**
8
13
  * __Page header__
9
14
  *
@@ -29,11 +34,11 @@ const PageHeader = ({
29
34
  truncateTitle: truncateTitle
30
35
  }, /*#__PURE__*/React.createElement(TitleContainer, {
31
36
  truncateTitle: truncateTitle
32
- }, disableTitleStyles ? children : /*#__PURE__*/React.createElement(StyledTitleWrapper, {
37
+ }, disableTitleStyles ? children : /*#__PURE__*/React.createElement(Title, {
33
38
  ref: innerRef,
34
39
  truncateTitle: truncateTitle,
35
40
  id: id,
36
41
  testId: testId
37
- }, children)), actions && /*#__PURE__*/React.createElement(ActionsWrapper, null, actions)), bottomBar && /*#__PURE__*/React.createElement(BottomBarWrapper, null, " ", bottomBar, " "));
42
+ }, children)), actions && /*#__PURE__*/React.createElement(ActionsWrapper, null, actions)), bottomBar && /*#__PURE__*/React.createElement(BottomBar, null, " ", bottomBar, " "));
38
43
  };
39
44
  export default PageHeader;
@@ -0,0 +1,4 @@
1
+ ._12l2idpf{margin-inline-end:0}
2
+ ._1pfh1ejb{margin-block-start:var(--ds-space-300,24px)}
3
+ ._6rthpxbi{margin-block-end:var(--ds-space-200,1pc)}
4
+ ._ahbqidpf{margin-inline-start:0}
@@ -0,0 +1,21 @@
1
+ /* outer-wrapper.tsx generated by @compiled/babel-plugin v0.39.1 */
2
+ import "./outer-wrapper.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
5
+ const outerStyles = null;
6
+
7
+ /**
8
+ * __Outer wrapper__.
9
+ *
10
+ * An outer wrapper that is the outermost component of the PageHeader component. It wraps around the PageHeader, its Actions,
11
+ * the BottomBar and its Breadcrumbs.
12
+ *
13
+ */
14
+ const OuterWrapper = ({
15
+ children
16
+ }) => {
17
+ return /*#__PURE__*/React.createElement("div", {
18
+ className: ax(["_6rthpxbi _1pfh1ejb _12l2idpf _ahbqidpf"])
19
+ }, children);
20
+ };
21
+ export default OuterWrapper;
@@ -0,0 +1,7 @@
1
+ ._16jlkb7n{flex-grow:1}
2
+ ._1i4q1hna{overflow-wrap:break-word}
3
+ ._1o9zkb7n{flex-shrink:1}
4
+ ._1ul9idpf{min-width:0}
5
+ ._6rthu2gc{margin-block-end:var(--ds-space-100,8px)}
6
+ ._i0dl1wug{flex-basis:auto}
7
+ ._p12f1osq{max-width:100%}
@@ -0,0 +1,26 @@
1
+ /* title-container.tsx generated by @compiled/babel-plugin v0.39.1 */
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 */
7
+ import "./title-container.compiled.css";
8
+ import * as React from 'react';
9
+ import { ax, ix } from "@compiled/react/runtime";
10
+ const titleContainerStyles = null;
11
+ const titleContainerTruncateStyles = null;
12
+ /**
13
+ * Title container.
14
+ *
15
+ * A title container is a container that wraps around the title and its styles (if applied).
16
+ *
17
+ */
18
+ const TitleContainer = ({
19
+ children,
20
+ truncateTitle
21
+ }) => {
22
+ return /*#__PURE__*/React.createElement("div", {
23
+ className: ax(["_16jlkb7n _1o9zkb7n _i0dl1wug _1ul9idpf _p12f1osq _6rthu2gc _1i4q1hna", truncateTitle && "_1o9zkb7n"])
24
+ }, children);
25
+ };
26
+ export default TitleContainer;
@@ -0,0 +1,3 @@
1
+ ._1e0c1txw{display:flex}
2
+ ._1n261q9c{flex-wrap:nowrap}
3
+ ._4cvr1y6m{align-items:flex-start}
@@ -0,0 +1,26 @@
1
+ /* title-wrapper.tsx generated by @compiled/babel-plugin v0.39.1 */
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 */
7
+ import "./title-wrapper.compiled.css";
8
+ import * as React from 'react';
9
+ import { ax, ix } from "@compiled/react/runtime";
10
+ const titleWrapperStyles = null;
11
+ const titleWrapperTruncateStyles = null;
12
+ /**
13
+ * __Title wrapper__.
14
+ *
15
+ * A title wrapper is a wrapper around the title and the actions.
16
+ *
17
+ */
18
+ const TitleWrapper = ({
19
+ children,
20
+ truncateTitle
21
+ }) => {
22
+ return /*#__PURE__*/React.createElement("div", {
23
+ className: ax(["_1e0c1txw _4cvr1y6m _1n261q9c", truncateTitle && "_1n261q9c"])
24
+ }, children);
25
+ };
26
+ export default TitleWrapper;
@@ -0,0 +1,11 @@
1
+ ._11c810sd{font:var(--ds-font-heading-large,normal 653 24px/28px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
+ ._12ji1r31{outline-color:currentColor}
3
+ ._12y31o36{outline-width:medium}
4
+ ._18m915vq{overflow-y:hidden}
5
+ ._1bto1l2s{text-overflow:ellipsis}
6
+ ._1dyz4jg8{letter-spacing:normal}
7
+ ._1pfhidpf{margin-block-start:0}
8
+ ._1qu2glyw{outline-style:none}
9
+ ._1reo15vq{overflow-x:hidden}
10
+ ._o5721q9c{white-space:nowrap}
11
+ ._syazi7uo{color:var(--ds-text,#292a2e)}
@@ -0,0 +1,32 @@
1
+ /* title.tsx generated by @compiled/babel-plugin v0.39.1 */
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 */
7
+ import "./title.compiled.css";
8
+ import { ax, ix } from "@compiled/react/runtime";
9
+ import React from 'react';
10
+ const truncateStyles = null;
11
+ const titleStyles = null;
12
+ /**
13
+ * __Styled title wrapper__.
14
+ *
15
+ * A styled title wrapper is a wrapper around the title that controls its the styles exclusively.
16
+ *
17
+ */
18
+ const Title = /*#__PURE__*/React.forwardRef(({
19
+ children,
20
+ id,
21
+ truncateTitle,
22
+ testId
23
+ }, ref) => {
24
+ return /*#__PURE__*/React.createElement("h1", {
25
+ ref: ref,
26
+ tabIndex: -1,
27
+ id: id,
28
+ "data-testid": testId && `${testId}--title`,
29
+ className: ax(["_11c810sd _12ji1r31 _1qu2glyw _12y31o36 _syazi7uo _1dyz4jg8 _1pfhidpf", truncateTitle && "_1reo15vq _18m915vq _1bto1l2s _o5721q9c"])
30
+ }, children);
31
+ });
32
+ export default Title;
@@ -0,0 +1,8 @@
1
+ ._16jlidpf{flex-grow:0}
2
+ ._1o9zidpf{flex-shrink:0}
3
+ ._6rthu2gc{margin-block-end:var(--ds-space-100,8px)}
4
+ ._ahbq1wug{margin-inline-start:auto}
5
+ ._bozgxy5q{padding-inline-start:var(--ds-space-400,2pc)}
6
+ ._i0dl1wug{flex-basis:auto}
7
+ ._o5721q9c{white-space:nowrap}
8
+ ._p12f1osq{max-width:100%}
@@ -0,0 +1,19 @@
1
+ /* actions-wrapper.tsx generated by @compiled/babel-plugin v0.39.1 */
2
+ import "./actions-wrapper.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
5
+ var actionStyles = null;
6
+
7
+ /**
8
+ * __Actions wrapper__.
9
+ *
10
+ * An actions wrapper is a wrapper for the actions, which appear on the top right of the PageHeader component.
11
+ *
12
+ */
13
+ var ActionsWrapper = function ActionsWrapper(_ref) {
14
+ var children = _ref.children;
15
+ return /*#__PURE__*/React.createElement("div", {
16
+ className: ax(["_16jlidpf _1o9zidpf _i0dl1wug _p12f1osq _6rthu2gc _ahbq1wug _bozgxy5q _o5721q9c"])
17
+ }, children);
18
+ };
19
+ export default ActionsWrapper;
@@ -0,0 +1 @@
1
+ ._1pfhpxbi{margin-block-start:var(--ds-space-200,1pc)}
@@ -0,0 +1,22 @@
1
+ /* bottom-bar.tsx generated by @compiled/babel-plugin v0.39.1 */
2
+ import "./bottom-bar.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
5
+ import { Box } from '@atlaskit/primitives/compiled';
6
+ var styles = {
7
+ bottomBar: "_1pfhpxbi"
8
+ };
9
+
10
+ /**
11
+ * __Bottom bar__.
12
+ *
13
+ * A bottom bar is a wrapper for the bottom bar, which appears at the bottom of the PageHeader component.
14
+ *
15
+ */
16
+ var BottomBar = function BottomBar(_ref) {
17
+ var children = _ref.children;
18
+ return /*#__PURE__*/React.createElement(Box, {
19
+ xcss: styles.bottomBar
20
+ }, children);
21
+ };
22
+ export default BottomBar;
@@ -3,7 +3,12 @@
3
3
  // by our consumers. This can be done in the next lite-mode conversion.
4
4
  /* eslint-disable @repo/internal/react/boolean-prop-naming-convention */
5
5
  import React from 'react';
6
- import { ActionsWrapper, BottomBarWrapper, OuterWrapper, StyledTitleWrapper, TitleContainer, TitleWrapper } from './styled';
6
+ import ActionsWrapper from './actions-wrapper';
7
+ import BottomBar from './bottom-bar';
8
+ import OuterWrapper from './outer-wrapper';
9
+ import Title from './title';
10
+ import TitleContainer from './title-container';
11
+ import TitleWrapper from './title-wrapper';
7
12
  /**
8
13
  * __Page header__
9
14
  *
@@ -30,11 +35,11 @@ var PageHeader = function PageHeader(_ref) {
30
35
  truncateTitle: truncateTitle
31
36
  }, /*#__PURE__*/React.createElement(TitleContainer, {
32
37
  truncateTitle: truncateTitle
33
- }, disableTitleStyles ? children : /*#__PURE__*/React.createElement(StyledTitleWrapper, {
38
+ }, disableTitleStyles ? children : /*#__PURE__*/React.createElement(Title, {
34
39
  ref: innerRef,
35
40
  truncateTitle: truncateTitle,
36
41
  id: id,
37
42
  testId: testId
38
- }, children)), actions && /*#__PURE__*/React.createElement(ActionsWrapper, null, actions)), bottomBar && /*#__PURE__*/React.createElement(BottomBarWrapper, null, " ", bottomBar, " "));
43
+ }, children)), actions && /*#__PURE__*/React.createElement(ActionsWrapper, null, actions)), bottomBar && /*#__PURE__*/React.createElement(BottomBar, null, " ", bottomBar, " "));
39
44
  };
40
45
  export default PageHeader;
@@ -0,0 +1,4 @@
1
+ ._12l2idpf{margin-inline-end:0}
2
+ ._1pfh1ejb{margin-block-start:var(--ds-space-300,24px)}
3
+ ._6rthpxbi{margin-block-end:var(--ds-space-200,1pc)}
4
+ ._ahbqidpf{margin-inline-start:0}
@@ -0,0 +1,20 @@
1
+ /* outer-wrapper.tsx generated by @compiled/babel-plugin v0.39.1 */
2
+ import "./outer-wrapper.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
5
+ var outerStyles = null;
6
+
7
+ /**
8
+ * __Outer wrapper__.
9
+ *
10
+ * An outer wrapper that is the outermost component of the PageHeader component. It wraps around the PageHeader, its Actions,
11
+ * the BottomBar and its Breadcrumbs.
12
+ *
13
+ */
14
+ var OuterWrapper = function OuterWrapper(_ref) {
15
+ var children = _ref.children;
16
+ return /*#__PURE__*/React.createElement("div", {
17
+ className: ax(["_6rthpxbi _1pfh1ejb _12l2idpf _ahbqidpf"])
18
+ }, children);
19
+ };
20
+ export default OuterWrapper;