@atlaskit/page-header 12.1.17 → 12.1.19

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 +15 -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
@@ -1,113 +0,0 @@
1
- /* styled.tsx generated by @compiled/babel-plugin v0.38.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 "./styled.compiled.css";
8
- import { ax, ix } from "@compiled/react/runtime";
9
- import React from 'react';
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;
22
-
23
- /**
24
- * __Outer wrapper__.
25
- *
26
- * An outer wrapper that is the outermost component of the PageHeader component. It wraps around the PageHeader, its Actions,
27
- * the BottomBar and its Breadcrumbs.
28
- *
29
- */
30
- export const OuterWrapper = ({
31
- children
32
- }) => {
33
- return /*#__PURE__*/React.createElement("div", {
34
- className: ax(["_6rthpxbi _1pfh1ejb _12l2idpf _ahbqidpf"])
35
- }, children);
36
- };
37
- /**
38
- * __Styled title wrapper__.
39
- *
40
- * A styled title wrapper is a wrapper around the title that controls its the styles exclusively.
41
- *
42
- */
43
- export const StyledTitleWrapper = /*#__PURE__*/React.forwardRef(({
44
- children,
45
- id,
46
- truncateTitle,
47
- testId
48
- }, ref) => {
49
- return /*#__PURE__*/React.createElement("h1", {
50
- ref: ref,
51
- tabIndex: -1,
52
- id: id,
53
- "data-testid": testId && `${testId}--title`,
54
- className: ax(["_11c810sd _12ji1r31 _1qu2glyw _12y31o36 _syazi7uo _1dyz4jg8 _1pfhidpf", truncateTitle && "_1reo15vq _18m915vq _1bto1l2s _o5721q9c"])
55
- }, children);
56
- });
57
- /**
58
- * __Title wrapper__.
59
- *
60
- * A title wrapper is a wrapper around the title and the actions.
61
- *
62
- */
63
- export const TitleWrapper = ({
64
- children,
65
- truncateTitle
66
- }) => {
67
- return /*#__PURE__*/React.createElement("div", {
68
- className: ax(["_1e0c1txw _4cvr1y6m _1n261q9c", truncateTitle && "_1n261q9c"])
69
- }, children);
70
- };
71
-
72
- /**
73
- * Title container.
74
- *
75
- * A title container is a container that wraps around the title and its styles (if applied).
76
- *
77
- */
78
- export const TitleContainer = ({
79
- children,
80
- truncateTitle
81
- }) => {
82
- return /*#__PURE__*/React.createElement("div", {
83
- className: ax(["_16jlkb7n _1o9zkb7n _i0dl1wug _1ul9idpf _p12f1osq _6rthu2gc _1i4q1hna", truncateTitle && "_1o9zkb7n"])
84
- }, children);
85
- };
86
-
87
- /**
88
- * __Actions wrapper__.
89
- *
90
- * An actions wrapper is a wrapper for the actions, which appear on the top right of the PageHeader component.
91
- *
92
- */
93
- export const ActionsWrapper = ({
94
- children
95
- }) => {
96
- return /*#__PURE__*/React.createElement("div", {
97
- className: ax(["_16jlidpf _1o9zidpf _i0dl1wug _p12f1osq _6rthu2gc _ahbq1wug _bozgxy5q _o5721q9c"])
98
- }, children);
99
- };
100
-
101
- /**
102
- * __Bottom bar wrapper__.
103
- *
104
- * A bottom bar wrapper is a wrapper for the bottom bar, which appears at the bottom of the PageHeader component.
105
- *
106
- */
107
- export const BottomBarWrapper = ({
108
- children
109
- }) => {
110
- return /*#__PURE__*/React.createElement(Box, {
111
- xcss: styles.bottomBar
112
- }, children);
113
- };
@@ -1,30 +0,0 @@
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
- ._12l2idpf{margin-inline-end:0}
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
- ._1i4q1hna{overflow-wrap:break-word}
12
- ._1n261q9c{flex-wrap:nowrap}
13
- ._1o9zidpf{flex-shrink:0}
14
- ._1o9zkb7n{flex-shrink:1}
15
- ._1pfh1ejb{margin-block-start:var(--ds-space-300,24px)}
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
- ._6rthpxbi{margin-block-end:var(--ds-space-200,1pc)}
23
- ._6rthu2gc{margin-block-end:var(--ds-space-100,8px)}
24
- ._ahbq1wug{margin-inline-start:auto}
25
- ._ahbqidpf{margin-inline-start:0}
26
- ._bozgxy5q{padding-inline-start:var(--ds-space-400,2pc)}
27
- ._i0dl1wug{flex-basis:auto}
28
- ._o5721q9c{white-space:nowrap}
29
- ._p12f1osq{max-width:100%}
30
- ._syazi7uo{color:var(--ds-text,#292a2e)}
@@ -1,107 +0,0 @@
1
- /* styled.tsx generated by @compiled/babel-plugin v0.38.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 "./styled.compiled.css";
8
- import { ax, ix } from "@compiled/react/runtime";
9
- import React from 'react';
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;
22
-
23
- /**
24
- * __Outer wrapper__.
25
- *
26
- * An outer wrapper that is the outermost component of the PageHeader component. It wraps around the PageHeader, its Actions,
27
- * the BottomBar and its Breadcrumbs.
28
- *
29
- */
30
- export var OuterWrapper = function OuterWrapper(_ref) {
31
- var children = _ref.children;
32
- return /*#__PURE__*/React.createElement("div", {
33
- className: ax(["_6rthpxbi _1pfh1ejb _12l2idpf _ahbqidpf"])
34
- }, children);
35
- };
36
- /**
37
- * __Styled title wrapper__.
38
- *
39
- * A styled title wrapper is a wrapper around the title that controls its the styles exclusively.
40
- *
41
- */
42
- export var StyledTitleWrapper = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
43
- var children = _ref2.children,
44
- id = _ref2.id,
45
- truncateTitle = _ref2.truncateTitle,
46
- testId = _ref2.testId;
47
- return /*#__PURE__*/React.createElement("h1", {
48
- ref: ref,
49
- tabIndex: -1,
50
- id: id,
51
- "data-testid": testId && "".concat(testId, "--title"),
52
- className: ax(["_11c810sd _12ji1r31 _1qu2glyw _12y31o36 _syazi7uo _1dyz4jg8 _1pfhidpf", truncateTitle && "_1reo15vq _18m915vq _1bto1l2s _o5721q9c"])
53
- }, children);
54
- });
55
- /**
56
- * __Title wrapper__.
57
- *
58
- * A title wrapper is a wrapper around the title and the actions.
59
- *
60
- */
61
- export var TitleWrapper = function TitleWrapper(_ref3) {
62
- var children = _ref3.children,
63
- truncateTitle = _ref3.truncateTitle;
64
- return /*#__PURE__*/React.createElement("div", {
65
- className: ax(["_1e0c1txw _4cvr1y6m _1n261q9c", truncateTitle && "_1n261q9c"])
66
- }, children);
67
- };
68
-
69
- /**
70
- * Title container.
71
- *
72
- * A title container is a container that wraps around the title and its styles (if applied).
73
- *
74
- */
75
- export var TitleContainer = function TitleContainer(_ref4) {
76
- var children = _ref4.children,
77
- truncateTitle = _ref4.truncateTitle;
78
- return /*#__PURE__*/React.createElement("div", {
79
- className: ax(["_16jlkb7n _1o9zkb7n _i0dl1wug _1ul9idpf _p12f1osq _6rthu2gc _1i4q1hna", truncateTitle && "_1o9zkb7n"])
80
- }, children);
81
- };
82
-
83
- /**
84
- * __Actions wrapper__.
85
- *
86
- * An actions wrapper is a wrapper for the actions, which appear on the top right of the PageHeader component.
87
- *
88
- */
89
- export var ActionsWrapper = function ActionsWrapper(_ref5) {
90
- var children = _ref5.children;
91
- return /*#__PURE__*/React.createElement("div", {
92
- className: ax(["_16jlidpf _1o9zidpf _i0dl1wug _p12f1osq _6rthu2gc _ahbq1wug _bozgxy5q _o5721q9c"])
93
- }, children);
94
- };
95
-
96
- /**
97
- * __Bottom bar wrapper__.
98
- *
99
- * A bottom bar wrapper is a wrapper for the bottom bar, which appears at the bottom of the PageHeader component.
100
- *
101
- */
102
- export var BottomBarWrapper = function BottomBarWrapper(_ref6) {
103
- var children = _ref6.children;
104
- return /*#__PURE__*/React.createElement(Box, {
105
- xcss: styles.bottomBar
106
- }, children);
107
- };
@@ -1,65 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import React, { type ReactNode } from 'react';
6
- /**
7
- * __Outer wrapper__.
8
- *
9
- * An outer wrapper that is the outermost component of the PageHeader component. It wraps around the PageHeader, its Actions,
10
- * the BottomBar and its Breadcrumbs.
11
- *
12
- */
13
- export declare const OuterWrapper: ({ children }: {
14
- children: ReactNode;
15
- }) => JSX.Element;
16
- interface StyledTitleWrapperProps {
17
- children?: React.ReactNode;
18
- id?: string;
19
- truncateTitle?: boolean;
20
- testId?: string;
21
- }
22
- /**
23
- * __Styled title wrapper__.
24
- *
25
- * A styled title wrapper is a wrapper around the title that controls its the styles exclusively.
26
- *
27
- */
28
- export declare const StyledTitleWrapper: React.ForwardRefExoticComponent<React.PropsWithoutRef<StyledTitleWrapperProps> & React.RefAttributes<HTMLHeadingElement>>;
29
- interface TitleProps {
30
- truncateTitle?: boolean;
31
- children?: ReactNode;
32
- }
33
- /**
34
- * __Title wrapper__.
35
- *
36
- * A title wrapper is a wrapper around the title and the actions.
37
- *
38
- */
39
- export declare const TitleWrapper: ({ children, truncateTitle }: TitleProps) => JSX.Element;
40
- /**
41
- * Title container.
42
- *
43
- * A title container is a container that wraps around the title and its styles (if applied).
44
- *
45
- */
46
- export declare const TitleContainer: ({ children, truncateTitle }: TitleProps) => JSX.Element;
47
- /**
48
- * __Actions wrapper__.
49
- *
50
- * An actions wrapper is a wrapper for the actions, which appear on the top right of the PageHeader component.
51
- *
52
- */
53
- export declare const ActionsWrapper: ({ children }: {
54
- children: ReactNode;
55
- }) => JSX.Element;
56
- /**
57
- * __Bottom bar wrapper__.
58
- *
59
- * A bottom bar wrapper is a wrapper for the bottom bar, which appears at the bottom of the PageHeader component.
60
- *
61
- */
62
- export declare const BottomBarWrapper: ({ children }: {
63
- children: ReactNode;
64
- }) => JSX.Element;
65
- export {};
@@ -1,65 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import React, { type ReactNode } from 'react';
6
- /**
7
- * __Outer wrapper__.
8
- *
9
- * An outer wrapper that is the outermost component of the PageHeader component. It wraps around the PageHeader, its Actions,
10
- * the BottomBar and its Breadcrumbs.
11
- *
12
- */
13
- export declare const OuterWrapper: ({ children }: {
14
- children: ReactNode;
15
- }) => JSX.Element;
16
- interface StyledTitleWrapperProps {
17
- children?: React.ReactNode;
18
- id?: string;
19
- truncateTitle?: boolean;
20
- testId?: string;
21
- }
22
- /**
23
- * __Styled title wrapper__.
24
- *
25
- * A styled title wrapper is a wrapper around the title that controls its the styles exclusively.
26
- *
27
- */
28
- export declare const StyledTitleWrapper: React.ForwardRefExoticComponent<React.PropsWithoutRef<StyledTitleWrapperProps> & React.RefAttributes<HTMLHeadingElement>>;
29
- interface TitleProps {
30
- truncateTitle?: boolean;
31
- children?: ReactNode;
32
- }
33
- /**
34
- * __Title wrapper__.
35
- *
36
- * A title wrapper is a wrapper around the title and the actions.
37
- *
38
- */
39
- export declare const TitleWrapper: ({ children, truncateTitle }: TitleProps) => JSX.Element;
40
- /**
41
- * Title container.
42
- *
43
- * A title container is a container that wraps around the title and its styles (if applied).
44
- *
45
- */
46
- export declare const TitleContainer: ({ children, truncateTitle }: TitleProps) => JSX.Element;
47
- /**
48
- * __Actions wrapper__.
49
- *
50
- * An actions wrapper is a wrapper for the actions, which appear on the top right of the PageHeader component.
51
- *
52
- */
53
- export declare const ActionsWrapper: ({ children }: {
54
- children: ReactNode;
55
- }) => JSX.Element;
56
- /**
57
- * __Bottom bar wrapper__.
58
- *
59
- * A bottom bar wrapper is a wrapper for the bottom bar, which appears at the bottom of the PageHeader component.
60
- *
61
- */
62
- export declare const BottomBarWrapper: ({ children }: {
63
- children: ReactNode;
64
- }) => JSX.Element;
65
- export {};