@atlaskit/page-header 11.0.3 → 11.2.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,29 @@
1
1
  # @atlaskit/page-header
2
2
 
3
+ ## 11.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#116138](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/116138)
8
+ [`b50c5d5d65ae2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b50c5d5d65ae2) -
9
+ Bump to the latest version of @compiled/react
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 11.1.0
16
+
17
+ ### Minor Changes
18
+
19
+ - [#109060](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/109060)
20
+ [`4660ec858a305`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4660ec858a305) -
21
+ Update `React` from v16 to v18
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies
26
+
3
27
  ## 11.0.3
4
28
 
5
29
  ### Patch Changes
@@ -1,6 +1,6 @@
1
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
2
  ._12ji1r31{outline-color:currentColor}
3
+ ._12l2idpf{margin-inline-end:0}
4
4
  ._12y31o36{outline-width:medium}
5
5
  ._16jlidpf{flex-grow:0}
6
6
  ._16jlkb7n{flex-grow:1}
@@ -12,14 +12,17 @@
12
12
  ._1n261q9c{flex-wrap:nowrap}
13
13
  ._1o9zidpf{flex-shrink:0}
14
14
  ._1o9zkb7n{flex-shrink:1}
15
+ ._1pfh1ejb{margin-block-start:var(--ds-space-300,24px)}
15
16
  ._1pfhidpf{margin-block-start:0}
16
17
  ._1pfhpxbi{margin-block-start:var(--ds-space-200,1pc)}
17
18
  ._1qu2glyw{outline-style:none}
18
19
  ._1reo15vq{overflow-x:hidden}
19
20
  ._1ul9idpf{min-width:0}
20
21
  ._4cvr1y6m{align-items:flex-start}
22
+ ._6rthpxbi{margin-block-end:var(--ds-space-200,1pc)}
21
23
  ._6rthu2gc{margin-block-end:var(--ds-space-100,8px)}
22
24
  ._ahbq1wug{margin-inline-start:auto}
25
+ ._ahbqidpf{margin-inline-start:0}
23
26
  ._bozgxy5q{padding-inline-start:var(--ds-space-400,2pc)}
24
27
  ._i0dl1wug{flex-basis:auto}
25
28
  ._o5721q9c{white-space:nowrap}
@@ -1,4 +1,4 @@
1
- /* styled.tsx generated by @compiled/babel-plugin v0.35.0 */
1
+ /* styled.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  // TODO: Remove this eslint-disable when prop names have been renamed.
3
3
  // This rule is here as prop name changes are a major as they are used
4
4
  // by our consumers. The prop name concerned here is truncateTitle.
@@ -37,10 +37,7 @@ var titleContainerTruncateStyles = null;
37
37
  var OuterWrapper = exports.OuterWrapper = function OuterWrapper(_ref) {
38
38
  var children = _ref.children;
39
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
- }
40
+ className: (0, _runtime.ax)(["_6rthpxbi _1pfh1ejb _12l2idpf _ahbqidpf"])
44
41
  }, children);
45
42
  };
46
43
  /**
@@ -1,6 +1,6 @@
1
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
2
  ._12ji1r31{outline-color:currentColor}
3
+ ._12l2idpf{margin-inline-end:0}
4
4
  ._12y31o36{outline-width:medium}
5
5
  ._16jlidpf{flex-grow:0}
6
6
  ._16jlkb7n{flex-grow:1}
@@ -12,14 +12,17 @@
12
12
  ._1n261q9c{flex-wrap:nowrap}
13
13
  ._1o9zidpf{flex-shrink:0}
14
14
  ._1o9zkb7n{flex-shrink:1}
15
+ ._1pfh1ejb{margin-block-start:var(--ds-space-300,24px)}
15
16
  ._1pfhidpf{margin-block-start:0}
16
17
  ._1pfhpxbi{margin-block-start:var(--ds-space-200,1pc)}
17
18
  ._1qu2glyw{outline-style:none}
18
19
  ._1reo15vq{overflow-x:hidden}
19
20
  ._1ul9idpf{min-width:0}
20
21
  ._4cvr1y6m{align-items:flex-start}
22
+ ._6rthpxbi{margin-block-end:var(--ds-space-200,1pc)}
21
23
  ._6rthu2gc{margin-block-end:var(--ds-space-100,8px)}
22
24
  ._ahbq1wug{margin-inline-start:auto}
25
+ ._ahbqidpf{margin-inline-start:0}
23
26
  ._bozgxy5q{padding-inline-start:var(--ds-space-400,2pc)}
24
27
  ._i0dl1wug{flex-basis:auto}
25
28
  ._o5721q9c{white-space:nowrap}
@@ -1,4 +1,4 @@
1
- /* styled.tsx generated by @compiled/babel-plugin v0.35.0 */
1
+ /* styled.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  // TODO: Remove this eslint-disable when prop names have been renamed.
3
3
  // This rule is here as prop name changes are a major as they are used
4
4
  // by our consumers. The prop name concerned here is truncateTitle.
@@ -31,7 +31,7 @@ export const OuterWrapper = ({
31
31
  children
32
32
  }) => {
33
33
  return /*#__PURE__*/React.createElement("div", {
34
- className: ax(["_18s81d9c"])
34
+ className: ax(["_6rthpxbi _1pfh1ejb _12l2idpf _ahbqidpf"])
35
35
  }, children);
36
36
  };
37
37
  /**
@@ -1,6 +1,6 @@
1
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
2
  ._12ji1r31{outline-color:currentColor}
3
+ ._12l2idpf{margin-inline-end:0}
4
4
  ._12y31o36{outline-width:medium}
5
5
  ._16jlidpf{flex-grow:0}
6
6
  ._16jlkb7n{flex-grow:1}
@@ -12,14 +12,17 @@
12
12
  ._1n261q9c{flex-wrap:nowrap}
13
13
  ._1o9zidpf{flex-shrink:0}
14
14
  ._1o9zkb7n{flex-shrink:1}
15
+ ._1pfh1ejb{margin-block-start:var(--ds-space-300,24px)}
15
16
  ._1pfhidpf{margin-block-start:0}
16
17
  ._1pfhpxbi{margin-block-start:var(--ds-space-200,1pc)}
17
18
  ._1qu2glyw{outline-style:none}
18
19
  ._1reo15vq{overflow-x:hidden}
19
20
  ._1ul9idpf{min-width:0}
20
21
  ._4cvr1y6m{align-items:flex-start}
22
+ ._6rthpxbi{margin-block-end:var(--ds-space-200,1pc)}
21
23
  ._6rthu2gc{margin-block-end:var(--ds-space-100,8px)}
22
24
  ._ahbq1wug{margin-inline-start:auto}
25
+ ._ahbqidpf{margin-inline-start:0}
23
26
  ._bozgxy5q{padding-inline-start:var(--ds-space-400,2pc)}
24
27
  ._i0dl1wug{flex-basis:auto}
25
28
  ._o5721q9c{white-space:nowrap}
@@ -1,4 +1,4 @@
1
- /* styled.tsx generated by @compiled/babel-plugin v0.35.0 */
1
+ /* styled.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  // TODO: Remove this eslint-disable when prop names have been renamed.
3
3
  // This rule is here as prop name changes are a major as they are used
4
4
  // by our consumers. The prop name concerned here is truncateTitle.
@@ -30,10 +30,7 @@ var titleContainerTruncateStyles = null;
30
30
  export var OuterWrapper = function OuterWrapper(_ref) {
31
31
  var children = _ref.children;
32
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
- }
33
+ className: ax(["_6rthpxbi _1pfh1ejb _12l2idpf _ahbqidpf"])
37
34
  }, children);
38
35
  };
39
36
  /**
@@ -1,4 +1,4 @@
1
- import { type ReactElement, type ReactNode } from 'react';
1
+ import React, { type ReactElement, type ReactNode } from 'react';
2
2
  export type PageHeaderProps = {
3
3
  /**
4
4
  * Contents of the action bar to be rendered next to the page title.
@@ -47,5 +47,5 @@ export type PageHeaderProps = {
47
47
  * - [Code](https://atlassian.design/components/page-header/code)
48
48
  * - [Usage](https://atlassian.design/components/page-header/usage)
49
49
  */
50
- declare const PageHeader: ({ innerRef, breadcrumbs, actions, bottomBar, children, id, disableTitleStyles, truncateTitle, testId, }: PageHeaderProps) => JSX.Element;
50
+ declare const PageHeader: ({ innerRef, breadcrumbs, actions, bottomBar, children, id, disableTitleStyles, truncateTitle, testId, }: PageHeaderProps) => React.JSX.Element;
51
51
  export default PageHeader;
@@ -1,4 +1,4 @@
1
- import { type ReactElement, type ReactNode } from 'react';
1
+ import React, { type ReactElement, type ReactNode } from 'react';
2
2
  export type PageHeaderProps = {
3
3
  /**
4
4
  * Contents of the action bar to be rendered next to the page title.
@@ -47,5 +47,5 @@ export type PageHeaderProps = {
47
47
  * - [Code](https://atlassian.design/components/page-header/code)
48
48
  * - [Usage](https://atlassian.design/components/page-header/usage)
49
49
  */
50
- declare const PageHeader: ({ innerRef, breadcrumbs, actions, bottomBar, children, id, disableTitleStyles, truncateTitle, testId, }: PageHeaderProps) => JSX.Element;
50
+ declare const PageHeader: ({ innerRef, breadcrumbs, actions, bottomBar, children, id, disableTitleStyles, truncateTitle, testId, }: PageHeaderProps) => React.JSX.Element;
51
51
  export default PageHeader;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/page-header",
3
- "version": "11.0.3",
3
+ "version": "11.2.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/"
@@ -25,11 +25,11 @@
25
25
  "runReact18": true
26
26
  },
27
27
  "dependencies": {
28
- "@atlaskit/css": "^0.7.0",
29
- "@atlaskit/primitives": "^13.3.0",
30
- "@atlaskit/tokens": "^3.0.0",
28
+ "@atlaskit/css": "^0.9.0",
29
+ "@atlaskit/primitives": "^13.6.0",
30
+ "@atlaskit/tokens": "^3.3.0",
31
31
  "@babel/runtime": "^7.0.0",
32
- "@compiled/react": "^0.18.1"
32
+ "@compiled/react": "^0.18.2"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
@@ -39,14 +39,14 @@
39
39
  "@af/accessibility-testing": "*",
40
40
  "@af/integration-testing": "*",
41
41
  "@af/visual-regression": "*",
42
- "@atlaskit/breadcrumbs": "^14.0.0",
43
- "@atlaskit/ds-lib": "^3.3.0",
44
- "@atlaskit/page": "^12.6.0",
42
+ "@atlaskit/breadcrumbs": "^14.2.0",
43
+ "@atlaskit/ds-lib": "^3.5.0",
44
+ "@atlaskit/page": "^12.7.0",
45
45
  "@atlaskit/ssr": "*",
46
- "@atlaskit/textfield": "^6.7.0",
46
+ "@atlaskit/textfield": "^7.0.0",
47
47
  "@atlaskit/visual-regression": "*",
48
- "@testing-library/react": "^12.1.5",
49
- "react-dom": "^16.8.0",
48
+ "@testing-library/react": "^13.4.0",
49
+ "react-dom": "^18.2.0",
50
50
  "typescript": "~5.4.2"
51
51
  },
52
52
  "keywords": [
@@ -1,17 +0,0 @@
1
- import React from 'react';
2
-
3
- import Breadcrumbs, { BreadcrumbsItem } from '@atlaskit/breadcrumbs';
4
- import __noop from '@atlaskit/ds-lib/noop';
5
-
6
- import PageHeader from '../src';
7
-
8
- const breadcrumbs = (
9
- <Breadcrumbs onExpand={__noop}>
10
- <BreadcrumbsItem text="Some project" key="Some project" />
11
- <BreadcrumbsItem text="Parent page" key="Parent page" />
12
- </Breadcrumbs>
13
- );
14
-
15
- export default () => (
16
- <PageHeader breadcrumbs={breadcrumbs}>Title describing the content</PageHeader>
17
- );