@patternfly/react-core 3.145.3 → 3.146.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
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.146.0](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-core@3.145.3...@patternfly/react-core@3.146.0) (2020-03-10)
7
+
8
+
9
+ ### Features
10
+
11
+ * **Modal:** move description to separate component ([#3897](https://github.com/patternfly/patternfly-react/issues/3897)) ([97eb9d8](https://github.com/patternfly/patternfly-react/commit/97eb9d8766febf5dd97424c4c7868f80441b8386))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [3.145.3](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-core@3.145.2...@patternfly/react-core@3.145.3) (2020-03-09)
7
18
 
8
19
  **Note:** Version bump only for package @patternfly/react-core
@@ -0,0 +1,30 @@
1
+ import _pt from "prop-types";
2
+
3
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
+
5
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
6
+
7
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
8
+
9
+ import * as React from 'react';
10
+ import { css } from '@patternfly/react-styles';
11
+ import styles from '@patternfly/react-styles/css/components/ModalBox/modal-box';
12
+ export const ModalBoxDescription = (_ref) => {
13
+ let {
14
+ children = null,
15
+ className = '',
16
+ id = ''
17
+ } = _ref,
18
+ props = _objectWithoutProperties(_ref, ["children", "className", "id"]);
19
+
20
+ return React.createElement("div", _extends({}, props, {
21
+ id: id,
22
+ className: css(styles.modalBoxDescription, className)
23
+ }), children);
24
+ };
25
+ ModalBoxDescription.propTypes = {
26
+ children: _pt.node,
27
+ className: _pt.string,
28
+ id: _pt.string
29
+ };
30
+ //# sourceMappingURL=ModalBoxDescription.js.map
@@ -14,7 +14,6 @@ const FocusTrap = require('focus-trap-react');
14
14
 
15
15
  import styles from '@patternfly/react-styles/css/layouts/Bullseye/bullseye';
16
16
  import titleStyles from '@patternfly/react-styles/css/components/Title/title';
17
- import modalStyles from '@patternfly/react-styles/css/components/ModalBox/modal-box';
18
17
  import { css } from '@patternfly/react-styles';
19
18
  import { Backdrop } from '../Backdrop/Backdrop';
20
19
  import { ModalBoxBody } from './ModalBoxBody';
@@ -22,6 +21,7 @@ import { ModalBoxHeader } from './ModalBoxHeader';
22
21
  import { ModalBoxCloseButton } from './ModalBoxCloseButton';
23
22
  import { ModalBox } from './ModalBox';
24
23
  import { ModalBoxFooter } from './ModalBoxFooter';
24
+ import { ModalBoxDescription } from './ModalBoxDescription';
25
25
  export const ModalContent = (_ref) => {
26
26
  let {
27
27
  children,
@@ -71,8 +71,7 @@ export const ModalContent = (_ref) => {
71
71
  id: ariaDescribedById || id
72
72
  }, showClose && React.createElement(ModalBoxCloseButton, {
73
73
  onClose: onClose
74
- }), modalBoxHeader, description && React.createElement("div", {
75
- className: css(modalStyles.modalBoxDescription),
74
+ }), modalBoxHeader, description && React.createElement(ModalBoxDescription, {
76
75
  id: id
77
76
  }, description), React.createElement(ModalBoxBody, _extends({}, props, !description && {
78
77
  id
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ export interface ModalBoxDescriptionProps {
3
+ /** Content rendered inside the description */
4
+ children?: React.ReactNode;
5
+ /** Additional classes added to the description */
6
+ className?: string;
7
+ /** ID of the description */
8
+ id?: string;
9
+ }
10
+ export declare const ModalBoxDescription: React.FunctionComponent<ModalBoxDescriptionProps>;
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ModalBoxDescription = void 0;
7
+
8
+ var _propTypes = _interopRequireDefault(require("prop-types"));
9
+
10
+ var React = _interopRequireWildcard(require("react"));
11
+
12
+ var _reactStyles = require("@patternfly/react-styles");
13
+
14
+ var _modalBox = _interopRequireDefault(require("@patternfly/react-styles/css/components/ModalBox/modal-box"));
15
+
16
+ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
17
+
18
+ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; if (obj != null) { var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
19
+
20
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
+
22
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
23
+
24
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
25
+
26
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
27
+
28
+ var ModalBoxDescription = function ModalBoxDescription(_ref) {
29
+ var _ref$children = _ref.children,
30
+ children = _ref$children === void 0 ? null : _ref$children,
31
+ _ref$className = _ref.className,
32
+ className = _ref$className === void 0 ? '' : _ref$className,
33
+ _ref$id = _ref.id,
34
+ id = _ref$id === void 0 ? '' : _ref$id,
35
+ props = _objectWithoutProperties(_ref, ["children", "className", "id"]);
36
+
37
+ return React.createElement("div", _extends({}, props, {
38
+ id: id,
39
+ className: (0, _reactStyles.css)(_modalBox["default"].modalBoxDescription, className)
40
+ }), children);
41
+ };
42
+
43
+ exports.ModalBoxDescription = ModalBoxDescription;
44
+ ModalBoxDescription.propTypes = {
45
+ children: _propTypes["default"].node,
46
+ className: _propTypes["default"].string,
47
+ id: _propTypes["default"].string
48
+ };
49
+ //# sourceMappingURL=ModalBoxDescription.js.map
@@ -13,8 +13,6 @@ var _bullseye = _interopRequireDefault(require("@patternfly/react-styles/css/lay
13
13
 
14
14
  var _title = _interopRequireDefault(require("@patternfly/react-styles/css/components/Title/title"));
15
15
 
16
- var _modalBox = _interopRequireDefault(require("@patternfly/react-styles/css/components/ModalBox/modal-box"));
17
-
18
16
  var _reactStyles = require("@patternfly/react-styles");
19
17
 
20
18
  var _Backdrop = require("../Backdrop/Backdrop");
@@ -29,6 +27,8 @@ var _ModalBox = require("./ModalBox");
29
27
 
30
28
  var _ModalBoxFooter = require("./ModalBoxFooter");
31
29
 
30
+ var _ModalBoxDescription = require("./ModalBoxDescription");
31
+
32
32
  function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
33
33
 
34
34
  function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; if (obj != null) { var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -111,8 +111,7 @@ var ModalContent = function ModalContent(_ref) {
111
111
  id: ariaDescribedById || id
112
112
  }, showClose && React.createElement(_ModalBoxCloseButton.ModalBoxCloseButton, {
113
113
  onClose: onClose
114
- }), modalBoxHeader, description && React.createElement("div", {
115
- className: (0, _reactStyles.css)(_modalBox["default"].modalBoxDescription),
114
+ }), modalBoxHeader, description && React.createElement(_ModalBoxDescription.ModalBoxDescription, {
116
115
  id: id
117
116
  }, description), React.createElement(_ModalBoxBody.ModalBoxBody, _extends({}, props, !description && {
118
117
  id: id
@@ -0,0 +1,156 @@
1
+ (function (global, factory) {
2
+ if (typeof define === "function" && define.amd) {
3
+ define(["exports", "prop-types", "react", "@patternfly/react-styles", "@patternfly/react-styles/css/components/ModalBox/modal-box"], factory);
4
+ } else if (typeof exports !== "undefined") {
5
+ factory(exports, require("prop-types"), require("react"), require("@patternfly/react-styles"), require("@patternfly/react-styles/css/components/ModalBox/modal-box"));
6
+ } else {
7
+ var mod = {
8
+ exports: {}
9
+ };
10
+ factory(mod.exports, global.propTypes, global.react, global.reactStyles, global.modalBox);
11
+ global.undefined = mod.exports;
12
+ }
13
+ })(this, function (exports, _propTypes, _react, _reactStyles, _modalBox) {
14
+ "use strict";
15
+
16
+ Object.defineProperty(exports, "__esModule", {
17
+ value: true
18
+ });
19
+ exports.ModalBoxDescription = undefined;
20
+
21
+ var _propTypes2 = _interopRequireDefault(_propTypes);
22
+
23
+ var React = _interopRequireWildcard(_react);
24
+
25
+ var _modalBox2 = _interopRequireDefault(_modalBox);
26
+
27
+ function _getRequireWildcardCache() {
28
+ if (typeof WeakMap !== "function") return null;
29
+ var cache = new WeakMap();
30
+
31
+ _getRequireWildcardCache = function () {
32
+ return cache;
33
+ };
34
+
35
+ return cache;
36
+ }
37
+
38
+ function _interopRequireWildcard(obj) {
39
+ if (obj && obj.__esModule) {
40
+ return obj;
41
+ }
42
+
43
+ var cache = _getRequireWildcardCache();
44
+
45
+ if (cache && cache.has(obj)) {
46
+ return cache.get(obj);
47
+ }
48
+
49
+ var newObj = {};
50
+
51
+ if (obj != null) {
52
+ var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
53
+
54
+ for (var key in obj) {
55
+ if (Object.prototype.hasOwnProperty.call(obj, key)) {
56
+ var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
57
+
58
+ if (desc && (desc.get || desc.set)) {
59
+ Object.defineProperty(newObj, key, desc);
60
+ } else {
61
+ newObj[key] = obj[key];
62
+ }
63
+ }
64
+ }
65
+ }
66
+
67
+ newObj.default = obj;
68
+
69
+ if (cache) {
70
+ cache.set(obj, newObj);
71
+ }
72
+
73
+ return newObj;
74
+ }
75
+
76
+ function _interopRequireDefault(obj) {
77
+ return obj && obj.__esModule ? obj : {
78
+ default: obj
79
+ };
80
+ }
81
+
82
+ function _extends() {
83
+ _extends = Object.assign || function (target) {
84
+ for (var i = 1; i < arguments.length; i++) {
85
+ var source = arguments[i];
86
+
87
+ for (var key in source) {
88
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
89
+ target[key] = source[key];
90
+ }
91
+ }
92
+ }
93
+
94
+ return target;
95
+ };
96
+
97
+ return _extends.apply(this, arguments);
98
+ }
99
+
100
+ function _objectWithoutProperties(source, excluded) {
101
+ if (source == null) return {};
102
+
103
+ var target = _objectWithoutPropertiesLoose(source, excluded);
104
+
105
+ var key, i;
106
+
107
+ if (Object.getOwnPropertySymbols) {
108
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
109
+
110
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
111
+ key = sourceSymbolKeys[i];
112
+ if (excluded.indexOf(key) >= 0) continue;
113
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
114
+ target[key] = source[key];
115
+ }
116
+ }
117
+
118
+ return target;
119
+ }
120
+
121
+ function _objectWithoutPropertiesLoose(source, excluded) {
122
+ if (source == null) return {};
123
+ var target = {};
124
+ var sourceKeys = Object.keys(source);
125
+ var key, i;
126
+
127
+ for (i = 0; i < sourceKeys.length; i++) {
128
+ key = sourceKeys[i];
129
+ if (excluded.indexOf(key) >= 0) continue;
130
+ target[key] = source[key];
131
+ }
132
+
133
+ return target;
134
+ }
135
+
136
+ const ModalBoxDescription = exports.ModalBoxDescription = _ref => {
137
+ let {
138
+ children = null,
139
+ className = '',
140
+ id = ''
141
+ } = _ref,
142
+ props = _objectWithoutProperties(_ref, ["children", "className", "id"]);
143
+
144
+ return React.createElement("div", _extends({}, props, {
145
+ id: id,
146
+ className: (0, _reactStyles.css)(_modalBox2.default.modalBoxDescription, className)
147
+ }), children);
148
+ };
149
+
150
+ ModalBoxDescription.propTypes = {
151
+ children: _propTypes2.default.node,
152
+ className: _propTypes2.default.string,
153
+ id: _propTypes2.default.string
154
+ };
155
+ });
156
+ //# sourceMappingURL=ModalBoxDescription.js.map
@@ -1,16 +1,16 @@
1
1
  (function (global, factory) {
2
2
  if (typeof define === "function" && define.amd) {
3
- define(["exports", "prop-types", "react", "@patternfly/react-styles/css/layouts/Bullseye/bullseye", "@patternfly/react-styles/css/components/Title/title", "@patternfly/react-styles/css/components/ModalBox/modal-box", "@patternfly/react-styles", "../Backdrop/Backdrop", "./ModalBoxBody", "./ModalBoxHeader", "./ModalBoxCloseButton", "./ModalBox", "./ModalBoxFooter", 'focus-trap-react'], factory);
3
+ define(["exports", "prop-types", "react", "@patternfly/react-styles/css/layouts/Bullseye/bullseye", "@patternfly/react-styles/css/components/Title/title", "@patternfly/react-styles", "../Backdrop/Backdrop", "./ModalBoxBody", "./ModalBoxHeader", "./ModalBoxCloseButton", "./ModalBox", "./ModalBoxFooter", "./ModalBoxDescription", 'focus-trap-react'], factory);
4
4
  } else if (typeof exports !== "undefined") {
5
- factory(exports, require("prop-types"), require("react"), require("@patternfly/react-styles/css/layouts/Bullseye/bullseye"), require("@patternfly/react-styles/css/components/Title/title"), require("@patternfly/react-styles/css/components/ModalBox/modal-box"), require("@patternfly/react-styles"), require("../Backdrop/Backdrop"), require("./ModalBoxBody"), require("./ModalBoxHeader"), require("./ModalBoxCloseButton"), require("./ModalBox"), require("./ModalBoxFooter"), require('focus-trap-react'));
5
+ factory(exports, require("prop-types"), require("react"), require("@patternfly/react-styles/css/layouts/Bullseye/bullseye"), require("@patternfly/react-styles/css/components/Title/title"), require("@patternfly/react-styles"), require("../Backdrop/Backdrop"), require("./ModalBoxBody"), require("./ModalBoxHeader"), require("./ModalBoxCloseButton"), require("./ModalBox"), require("./ModalBoxFooter"), require("./ModalBoxDescription"), require('focus-trap-react'));
6
6
  } else {
7
7
  var mod = {
8
8
  exports: {}
9
9
  };
10
- factory(mod.exports, global.propTypes, global.react, global.bullseye, global.title, global.modalBox, global.reactStyles, global.Backdrop, global.ModalBoxBody, global.ModalBoxHeader, global.ModalBoxCloseButton, global.ModalBox, global.ModalBoxFooter, global.focusTrapReact);
10
+ factory(mod.exports, global.propTypes, global.react, global.bullseye, global.title, global.reactStyles, global.Backdrop, global.ModalBoxBody, global.ModalBoxHeader, global.ModalBoxCloseButton, global.ModalBox, global.ModalBoxFooter, global.ModalBoxDescription, global.focusTrapReact);
11
11
  global.undefined = mod.exports;
12
12
  }
13
- })(this, function (exports, _propTypes, _react, _bullseye, _title, _modalBox, _reactStyles, _Backdrop, _ModalBoxBody, _ModalBoxHeader, _ModalBoxCloseButton, _ModalBox, _ModalBoxFooter, FocusTrap) {
13
+ })(this, function (exports, _propTypes, _react, _bullseye, _title, _reactStyles, _Backdrop, _ModalBoxBody, _ModalBoxHeader, _ModalBoxCloseButton, _ModalBox, _ModalBoxFooter, _ModalBoxDescription, FocusTrap) {
14
14
  "use strict";
15
15
 
16
16
  Object.defineProperty(exports, "__esModule", {
@@ -26,8 +26,6 @@
26
26
 
27
27
  var _title2 = _interopRequireDefault(_title);
28
28
 
29
- var _modalBox2 = _interopRequireDefault(_modalBox);
30
-
31
29
  function _getRequireWildcardCache() {
32
30
  if (typeof WeakMap !== "function") return null;
33
31
  var cache = new WeakMap();
@@ -186,8 +184,7 @@
186
184
  id: ariaDescribedById || id
187
185
  }, showClose && React.createElement(_ModalBoxCloseButton.ModalBoxCloseButton, {
188
186
  onClose: onClose
189
- }), modalBoxHeader, description && React.createElement("div", {
190
- className: (0, _reactStyles.css)(_modalBox2.default.modalBoxDescription),
187
+ }), modalBoxHeader, description && React.createElement(_ModalBoxDescription.ModalBoxDescription, {
191
188
  id: id
192
189
  }, description), React.createElement(_ModalBoxBody.ModalBoxBody, _extends({}, props, !description && {
193
190
  id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-core",
3
- "version": "3.145.3",
3
+ "version": "3.146.0",
4
4
  "description": "This library provides a set of common React components for use with the PatternFly reference implementation.",
5
5
  "main": "dist/js/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -78,5 +78,5 @@
78
78
  "react": "^16.4.0",
79
79
  "react-dom": "^15.6.2 || ^16.4.0"
80
80
  },
81
- "gitHead": "4abb5b6e766ff1c669423dcb7cafc29fe4b02464"
81
+ "gitHead": "03e6dda724f83ae37584414ead6ab602cacf8aa7"
82
82
  }
@@ -0,0 +1,23 @@
1
+ import * as React from 'react';
2
+ import { css } from '@patternfly/react-styles';
3
+ import styles from '@patternfly/react-styles/css/components/ModalBox/modal-box';
4
+
5
+ export interface ModalBoxDescriptionProps {
6
+ /** Content rendered inside the description */
7
+ children?: React.ReactNode;
8
+ /** Additional classes added to the description */
9
+ className?: string;
10
+ /** ID of the description */
11
+ id?: string;
12
+ }
13
+
14
+ export const ModalBoxDescription: React.FunctionComponent<ModalBoxDescriptionProps> = ({
15
+ children = null,
16
+ className = '',
17
+ id = '',
18
+ ...props
19
+ }: ModalBoxDescriptionProps) => (
20
+ <div {...props} id={id} className={css(styles.modalBoxDescription, className)}>
21
+ {children}
22
+ </div>
23
+ );
@@ -7,7 +7,6 @@ const FocusTrap: any = require('focus-trap-react');
7
7
 
8
8
  import styles from '@patternfly/react-styles/css/layouts/Bullseye/bullseye';
9
9
  import titleStyles from '@patternfly/react-styles/css/components/Title/title';
10
- import modalStyles from '@patternfly/react-styles/css/components/ModalBox/modal-box';
11
10
  import { css } from '@patternfly/react-styles';
12
11
 
13
12
  import { Backdrop } from '../Backdrop/Backdrop';
@@ -16,6 +15,7 @@ import { ModalBoxHeader } from './ModalBoxHeader';
16
15
  import { ModalBoxCloseButton } from './ModalBoxCloseButton';
17
16
  import { ModalBox } from './ModalBox';
18
17
  import { ModalBoxFooter } from './ModalBoxFooter';
18
+ import { ModalBoxDescription } from './ModalBoxDescription';
19
19
 
20
20
  export interface ModalContentProps {
21
21
  /** Content rendered inside the Modal. */
@@ -104,11 +104,7 @@ export const ModalContent: React.FunctionComponent<ModalContentProps> = ({
104
104
  >
105
105
  {showClose && <ModalBoxCloseButton onClose={onClose} />}
106
106
  {modalBoxHeader}
107
- {description && (
108
- <div className={css(modalStyles.modalBoxDescription)} id={id}>
109
- {description}
110
- </div>
111
- )}
107
+ {description && <ModalBoxDescription id={id}>{description}</ModalBoxDescription>}
112
108
  <ModalBoxBody {...props} {...(!description && { id })}>
113
109
  {children}
114
110
  </ModalBoxBody>
@@ -32,12 +32,11 @@ exports[`Modal Content Test description 1`] = `
32
32
  Test Modal Content title
33
33
 
34
34
  </ModalBoxHeader>
35
- <div
36
- className="pf-c-modal-box__description"
35
+ <ModalBoxDescription
37
36
  id="id"
38
37
  >
39
38
  This is a test description.
40
- </div>
39
+ </ModalBoxDescription>
41
40
  <ModalBoxBody>
42
41
  This is a ModalBox header
43
42
  </ModalBoxBody>