@carbon/ibm-products 2.43.2-canary.124 → 2.43.2-canary.125

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@ interface RemoveModalProps extends React.ComponentProps<typeof ComposedModal> {
5
5
  /**
6
6
  * The content to be displayed in the body of the modal
7
7
  */
8
- body: string;
8
+ body: ReactNode;
9
9
  /**
10
10
  * Optional classname
11
11
  */
@@ -91,9 +91,9 @@ var RemoveModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
91
91
  title: title,
92
92
  label: label,
93
93
  iconDescription: iconDescription
94
- }), /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement("p", {
94
+ }), /*#__PURE__*/React__default.createElement(ModalBody, null, typeof body === 'string' ? /*#__PURE__*/React__default.createElement("p", {
95
95
  className: "".concat(blockClass, "__body")
96
- }, body), textConfirmation && /*#__PURE__*/React__default.createElement(TextInput, {
96
+ }, body) : body, textConfirmation && /*#__PURE__*/React__default.createElement(TextInput, {
97
97
  id: "".concat(idRef.current, "-confirmation-input"),
98
98
  className: "".concat(blockClass, "__input"),
99
99
  invalidText: inputInvalidText,
@@ -122,7 +122,7 @@ RemoveModal.propTypes = {
122
122
  /**
123
123
  * The content to be displayed in the body of the modal
124
124
  */
125
- body: PropTypes.string.isRequired,
125
+ body: PropTypes.node.isRequired,
126
126
  /**
127
127
  * Optional classname
128
128
  */
@@ -5,7 +5,7 @@ interface RemoveModalProps extends React.ComponentProps<typeof ComposedModal> {
5
5
  /**
6
6
  * The content to be displayed in the body of the modal
7
7
  */
8
- body: string;
8
+ body: ReactNode;
9
9
  /**
10
10
  * Optional classname
11
11
  */
@@ -100,9 +100,9 @@ exports.RemoveModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
100
100
  title: title,
101
101
  label: label,
102
102
  iconDescription: iconDescription
103
- }), /*#__PURE__*/React__default["default"].createElement(react.ModalBody, null, /*#__PURE__*/React__default["default"].createElement("p", {
103
+ }), /*#__PURE__*/React__default["default"].createElement(react.ModalBody, null, typeof body === 'string' ? /*#__PURE__*/React__default["default"].createElement("p", {
104
104
  className: "".concat(blockClass, "__body")
105
- }, body), textConfirmation && /*#__PURE__*/React__default["default"].createElement(react.TextInput, {
105
+ }, body) : body, textConfirmation && /*#__PURE__*/React__default["default"].createElement(react.TextInput, {
106
106
  id: "".concat(idRef.current, "-confirmation-input"),
107
107
  className: "".concat(blockClass, "__input"),
108
108
  invalidText: inputInvalidText,
@@ -131,7 +131,7 @@ exports.RemoveModal.propTypes = {
131
131
  /**
132
132
  * The content to be displayed in the body of the modal
133
133
  */
134
- body: index["default"].string.isRequired,
134
+ body: index["default"].node.isRequired,
135
135
  /**
136
136
  * Optional classname
137
137
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/ibm-products",
3
3
  "description": "Carbon for IBM Products",
4
- "version": "2.43.2-canary.124+aa77fedd2",
4
+ "version": "2.43.2-canary.125+353ea2872",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -96,7 +96,7 @@
96
96
  "dependencies": {
97
97
  "@babel/runtime": "^7.23.9",
98
98
  "@carbon/feature-flags": "^0.20.0",
99
- "@carbon/ibm-products-styles": "^2.39.1-canary.134+aa77fedd2",
99
+ "@carbon/ibm-products-styles": "^2.43.0-rc.0",
100
100
  "@carbon/telemetry": "^0.1.0",
101
101
  "@dnd-kit/core": "^6.0.8",
102
102
  "@dnd-kit/modifiers": "^7.0.0",
@@ -120,5 +120,5 @@
120
120
  "react": "^16.8.6 || ^17.0.1 || ^18.2.0",
121
121
  "react-dom": "^16.8.6 || ^17.0.1 || ^18.2.0"
122
122
  },
123
- "gitHead": "aa77fedd2543836346544f068b60aa7329066af1"
123
+ "gitHead": "353ea28729a0c1a09d1c66bc36c9e3dec147d146"
124
124
  }