@atlaskit/page-header 10.4.0 → 10.4.2

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,17 @@
1
1
  # @atlaskit/page-header
2
2
 
3
+ ## 10.4.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
8
+
9
+ ## 10.4.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
14
+
3
15
  ## 10.4.0
4
16
 
5
17
  ### Minor Changes
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/page-header",
3
- "version": "10.4.0",
3
+ "version": "10.4.2",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/page-header",
3
- "version": "10.4.0",
3
+ "version": "10.4.2",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/page-header",
3
- "version": "10.4.0",
3
+ "version": "10.4.2",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import { ReactElement, ReactNode } from 'react';
2
- export declare type PageHeaderProps = {
2
+ export type PageHeaderProps = {
3
3
  /**
4
4
  * Contents of the action bar to be rendered next to the page title.
5
5
  */
@@ -0,0 +1,47 @@
1
+ import { ReactElement, ReactNode } from 'react';
2
+ export type PageHeaderProps = {
3
+ /**
4
+ * Contents of the action bar to be rendered next to the page title.
5
+ */
6
+ actions?: ReactElement;
7
+ /**
8
+ * Contents of the action bar to be rendered next to the page title. Typically a button group.
9
+ */
10
+ bottomBar?: ReactElement;
11
+ /**
12
+ * Page breadcrumbs to be rendered above the title.
13
+ */
14
+ breadcrumbs?: ReactElement;
15
+ /**
16
+ * Contents of the bottom bar to be rendered below the page title. Typically contains a search bar and/or filters.
17
+ */
18
+ children?: ReactNode;
19
+ /**
20
+ * Content of the page title. The text wraps by default.
21
+ */
22
+ disableTitleStyles?: boolean;
23
+ /**
24
+ * Returns the inner ref to the DOM element of the title. This is exposed so the focus can be set.
25
+ */
26
+ innerRef?: (element: HTMLElement) => void;
27
+ /**
28
+ * Prevent the title from wrapping across lines. This should be avoided.
29
+ */
30
+ truncateTitle?: boolean;
31
+ /**
32
+ * Used as id of inner h1 tag. This is exposed so the header text can be used as label of other element by aria-labeledby
33
+ */
34
+ id?: string;
35
+ };
36
+ /**
37
+ * __Page header__
38
+ *
39
+ * A page header defines the top of a page. It contains a title and can be optionally combined with
40
+ * breadcrumbs buttons, search, and filters.
41
+ *
42
+ * - [Examples](https://atlassian.design/components/page-header/examples)
43
+ * - [Code](https://atlassian.design/components/page-header/code)
44
+ * - [Usage](https://atlassian.design/components/page-header/usage)
45
+ */
46
+ declare const PageHeader: ({ innerRef, breadcrumbs, actions, bottomBar, children, id, disableTitleStyles, truncateTitle, }: PageHeaderProps) => JSX.Element;
47
+ export default PageHeader;
@@ -0,0 +1,61 @@
1
+ /** @jsx jsx */
2
+ import React, { ReactNode } from 'react';
3
+ /**
4
+ * __Outer wrapper__
5
+ *
6
+ * An outer wrapper that is the outermost component of the PageHeader component. It wraps around the PageHeader, its Actions,
7
+ * the BottomBar and its Breadcrumbs.
8
+ *
9
+ */
10
+ export declare const OuterWrapper: React.FC<{
11
+ children: ReactNode;
12
+ }>;
13
+ interface StyledTitleWrapperProps {
14
+ children?: React.ReactNode;
15
+ id?: string;
16
+ truncateTitle?: boolean;
17
+ }
18
+ /**
19
+ * __Styled title wrapper__
20
+ *
21
+ * A styled title wrapper is a wrapper around the title that controls its the styles exclusively.
22
+ *
23
+ */
24
+ export declare const StyledTitleWrapper: React.ForwardRefExoticComponent<StyledTitleWrapperProps & React.RefAttributes<HTMLHeadingElement>>;
25
+ interface TitleProps {
26
+ truncateTitle?: boolean;
27
+ children?: ReactNode;
28
+ }
29
+ /**
30
+ * __Title wrapper__
31
+ *
32
+ * A title wrapper is a wrapper around the title and the actions.
33
+ *
34
+ */
35
+ export declare const TitleWrapper: React.FC<TitleProps>;
36
+ /**
37
+ * Title container
38
+ *
39
+ * A title container is a container that wraps around the title and its styles (if applied).
40
+ *
41
+ */
42
+ export declare const TitleContainer: React.FC<TitleProps>;
43
+ /**
44
+ * __Actions wrapper__
45
+ *
46
+ * An actions wrapper is a wrapper for the actions, which appear on the top right of the PageHeader component.
47
+ *
48
+ */
49
+ export declare const ActionsWrapper: React.FC<{
50
+ children: ReactNode;
51
+ }>;
52
+ /**
53
+ * __Bottom bar wrapper__
54
+ *
55
+ * A bottom bar wrapper is a wrapper for the bottom bar, which appears at the bottom of the PageHeader component.
56
+ *
57
+ */
58
+ export declare const BottomBarWrapper: React.FC<{
59
+ children: ReactNode;
60
+ }>;
61
+ export {};
@@ -0,0 +1 @@
1
+ export { default } from './PageHeader';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/page-header",
3
- "version": "10.4.0",
3
+ "version": "10.4.2",
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/"
@@ -12,6 +12,14 @@
12
12
  "module": "dist/esm/index.js",
13
13
  "module:es2019": "dist/es2019/index.js",
14
14
  "types": "dist/types/index.d.ts",
15
+ "typesVersions": {
16
+ ">=4.5 <4.9": {
17
+ "*": [
18
+ "dist/types-ts4.5/*",
19
+ "dist/types-ts4.5/index.d.ts"
20
+ ]
21
+ }
22
+ },
15
23
  "sideEffects": false,
16
24
  "atlaskit:src": "src/index.tsx",
17
25
  "homepage": "https://atlassian.design/components/page-header",
@@ -28,7 +36,7 @@
28
36
  },
29
37
  "dependencies": {
30
38
  "@atlaskit/theme": "^12.5.0",
31
- "@atlaskit/tokens": "^1.3.0",
39
+ "@atlaskit/tokens": "^1.4.0",
32
40
  "@babel/runtime": "^7.0.0",
33
41
  "@emotion/react": "^11.7.1"
34
42
  },
@@ -52,7 +60,7 @@
52
60
  "@testing-library/react": "^12.1.5",
53
61
  "react-dom": "^16.8.0",
54
62
  "react-test-renderer": "^16.8.0",
55
- "typescript": "4.5.5"
63
+ "typescript": "~4.9.5"
56
64
  },
57
65
  "keywords": [
58
66
  "atlaskit",
@@ -0,0 +1,28 @@
1
+ ## API Report File for "@atlaskit/page-header"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ import { ReactElement } from 'react';
8
+ import { ReactNode } from 'react';
9
+
10
+ // @public
11
+ const PageHeader: ({ innerRef, breadcrumbs, actions, bottomBar, children, id, disableTitleStyles, truncateTitle, }: PageHeaderProps) => JSX.Element;
12
+ export default PageHeader;
13
+
14
+ // @public (undocumented)
15
+ type PageHeaderProps = {
16
+ actions?: ReactElement;
17
+ bottomBar?: ReactElement;
18
+ breadcrumbs?: ReactElement;
19
+ children?: ReactNode;
20
+ disableTitleStyles?: boolean;
21
+ innerRef?: (element: HTMLElement) => void;
22
+ truncateTitle?: boolean;
23
+ id?: string;
24
+ };
25
+
26
+ // (No @packageDocumentation comment for this package)
27
+
28
+ ```