carbon-react 147.4.2 → 147.4.3
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/esm/components/dialog-full-screen/content.style.js +0 -1
- package/esm/components/dialog-full-screen/dialog-full-screen.component.js +1 -1
- package/esm/components/dialog-full-screen/dialog-full-screen.style.js +0 -1
- package/esm/components/pages/page/page.component.d.ts +1 -1
- package/esm/components/pages/page/page.component.js +2 -2
- package/lib/components/dialog-full-screen/content.style.js +0 -1
- package/lib/components/dialog-full-screen/dialog-full-screen.component.js +1 -1
- package/lib/components/dialog-full-screen/dialog-full-screen.style.js +0 -1
- package/lib/components/pages/page/page.component.d.ts +1 -1
- package/lib/components/pages/page/page.component.js +2 -2
- package/package.json +1 -1
|
@@ -105,7 +105,7 @@ export const DialogFullScreen = ({
|
|
|
105
105
|
"data-element": "dialog-full-screen",
|
|
106
106
|
pagesStyling: pagesStyling,
|
|
107
107
|
role: role
|
|
108
|
-
}), dialogTitle(), closeIcon(), /*#__PURE__*/React.createElement(StyledContent, {
|
|
108
|
+
}), title || headerChildren ? dialogTitle() : null, closeIcon(), /*#__PURE__*/React.createElement(StyledContent, {
|
|
109
109
|
hasHeader: title !== undefined,
|
|
110
110
|
"data-element": "content",
|
|
111
111
|
"data-role": "dialog-full-screen-content",
|
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { PaddingProps } from "styled-system";
|
|
3
3
|
export interface PageProps extends PaddingProps {
|
|
4
4
|
/** The title for the page, normally a Heading component. */
|
|
5
|
-
title
|
|
5
|
+
title?: React.ReactNode;
|
|
6
6
|
/** This component supports children. */
|
|
7
7
|
children: React.ReactNode;
|
|
8
8
|
/** The ARIA role to be applied to the component */
|
|
@@ -31,9 +31,9 @@ const Page = ({
|
|
|
31
31
|
}, rest), /*#__PURE__*/React.createElement(StyledPage, _extends({}, tagComponent("page", rest), {
|
|
32
32
|
ref: styledPageNodeRef,
|
|
33
33
|
role: role
|
|
34
|
-
}), /*#__PURE__*/React.createElement(FullScreenHeading, {
|
|
34
|
+
}), title ? /*#__PURE__*/React.createElement(FullScreenHeading, {
|
|
35
35
|
hasContent: true
|
|
36
|
-
}, title), /*#__PURE__*/React.createElement(StyledPageContent, _extends({
|
|
36
|
+
}, title) : null, /*#__PURE__*/React.createElement(StyledPageContent, _extends({
|
|
37
37
|
"data-element": "carbon-page-content",
|
|
38
38
|
"data-role": "page-content",
|
|
39
39
|
p: "34px 40px"
|
|
@@ -114,7 +114,7 @@ const DialogFullScreen = ({
|
|
|
114
114
|
"data-element": "dialog-full-screen",
|
|
115
115
|
pagesStyling: pagesStyling,
|
|
116
116
|
role: role
|
|
117
|
-
}), dialogTitle(), closeIcon(), /*#__PURE__*/_react.default.createElement(_content.default, {
|
|
117
|
+
}), title || headerChildren ? dialogTitle() : null, closeIcon(), /*#__PURE__*/_react.default.createElement(_content.default, {
|
|
118
118
|
hasHeader: title !== undefined,
|
|
119
119
|
"data-element": "content",
|
|
120
120
|
"data-role": "dialog-full-screen-content",
|
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { PaddingProps } from "styled-system";
|
|
3
3
|
export interface PageProps extends PaddingProps {
|
|
4
4
|
/** The title for the page, normally a Heading component. */
|
|
5
|
-
title
|
|
5
|
+
title?: React.ReactNode;
|
|
6
6
|
/** This component supports children. */
|
|
7
7
|
children: React.ReactNode;
|
|
8
8
|
/** The ARIA role to be applied to the component */
|
|
@@ -40,9 +40,9 @@ const Page = ({
|
|
|
40
40
|
}, rest), /*#__PURE__*/_react.default.createElement(_page.StyledPage, _extends({}, (0, _tags.default)("page", rest), {
|
|
41
41
|
ref: styledPageNodeRef,
|
|
42
42
|
role: role
|
|
43
|
-
}), /*#__PURE__*/_react.default.createElement(_fullScreenHeading.default, {
|
|
43
|
+
}), title ? /*#__PURE__*/_react.default.createElement(_fullScreenHeading.default, {
|
|
44
44
|
hasContent: true
|
|
45
|
-
}, title), /*#__PURE__*/_react.default.createElement(_page.StyledPageContent, _extends({
|
|
45
|
+
}, title) : null, /*#__PURE__*/_react.default.createElement(_page.StyledPageContent, _extends({
|
|
46
46
|
"data-element": "carbon-page-content",
|
|
47
47
|
"data-role": "page-content",
|
|
48
48
|
p: "34px 40px"
|