@carbon/ibm-products 2.43.2-canary.29 → 2.43.2-canary.30

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.
@@ -58,6 +58,10 @@ interface RemoveModalProps extends React.ComponentProps<typeof ComposedModal> {
58
58
  * Specify the text for the primary button
59
59
  */
60
60
  primaryButtonText?: string;
61
+ /**
62
+ * Specify the danger description on the primary button
63
+ */
64
+ primaryDangerDescription?: string;
61
65
  /**
62
66
  * The name of the resource being acted upon
63
67
  */
@@ -16,7 +16,7 @@ import { pkg } from '../../settings.js';
16
16
  import { usePortalTarget } from '../../global/js/hooks/usePortalTarget.js';
17
17
  import { usePreviousValue } from '../../global/js/hooks/usePreviousValue.js';
18
18
 
19
- var _excluded = ["body", "className", "iconDescription", "inputInvalidText", "inputLabelText", "inputPlaceholderText", "label", "onClose", "onRequestSubmit", "open", "portalTarget", "preventCloseOnClickOutside", "primaryButtonDisabled", "primaryButtonText", "resourceName", "secondaryButtonText", "textConfirmation", "title"];
19
+ var _excluded = ["body", "className", "iconDescription", "inputInvalidText", "inputLabelText", "inputPlaceholderText", "label", "onClose", "onRequestSubmit", "open", "portalTarget", "preventCloseOnClickOutside", "primaryButtonDisabled", "primaryButtonText", "primaryDangerDescription", "resourceName", "secondaryButtonText", "textConfirmation", "title"];
20
20
  var componentName = 'RemoveModal';
21
21
 
22
22
  /**
@@ -40,6 +40,7 @@ var RemoveModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
40
40
  preventCloseOnClickOutside = _ref.preventCloseOnClickOutside,
41
41
  primaryButtonDisabled = _ref.primaryButtonDisabled,
42
42
  primaryButtonText = _ref.primaryButtonText,
43
+ primaryDangerDescription = _ref.primaryDangerDescription,
43
44
  resourceName = _ref.resourceName,
44
45
  secondaryButtonText = _ref.secondaryButtonText,
45
46
  textConfirmation = _ref.textConfirmation,
@@ -109,6 +110,7 @@ var RemoveModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
109
110
  }, secondaryButtonText), /*#__PURE__*/React__default.createElement(Button, {
110
111
  type: "submit",
111
112
  kind: "danger",
113
+ dangerDescription: primaryDangerDescription,
112
114
  onClick: onRequestSubmit,
113
115
  disabled: primaryButtonStatus
114
116
  }, primaryButtonText))));
@@ -173,6 +175,10 @@ RemoveModal.propTypes = {
173
175
  * Specify the text for the primary button
174
176
  */
175
177
  primaryButtonText: PropTypes.string,
178
+ /**
179
+ * Specify the danger description on the primary button
180
+ */
181
+ primaryDangerDescription: PropTypes.string,
176
182
  /**
177
183
  * The name of the resource being acted upon
178
184
  */
@@ -58,6 +58,10 @@ interface RemoveModalProps extends React.ComponentProps<typeof ComposedModal> {
58
58
  * Specify the text for the primary button
59
59
  */
60
60
  primaryButtonText?: string;
61
+ /**
62
+ * Specify the danger description on the primary button
63
+ */
64
+ primaryDangerDescription?: string;
61
65
  /**
62
66
  * The name of the resource being acted upon
63
67
  */
@@ -25,7 +25,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
25
25
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
26
26
  var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
27
27
 
28
- var _excluded = ["body", "className", "iconDescription", "inputInvalidText", "inputLabelText", "inputPlaceholderText", "label", "onClose", "onRequestSubmit", "open", "portalTarget", "preventCloseOnClickOutside", "primaryButtonDisabled", "primaryButtonText", "resourceName", "secondaryButtonText", "textConfirmation", "title"];
28
+ var _excluded = ["body", "className", "iconDescription", "inputInvalidText", "inputLabelText", "inputPlaceholderText", "label", "onClose", "onRequestSubmit", "open", "portalTarget", "preventCloseOnClickOutside", "primaryButtonDisabled", "primaryButtonText", "primaryDangerDescription", "resourceName", "secondaryButtonText", "textConfirmation", "title"];
29
29
  var componentName = 'RemoveModal';
30
30
 
31
31
  /**
@@ -49,6 +49,7 @@ exports.RemoveModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
49
49
  preventCloseOnClickOutside = _ref.preventCloseOnClickOutside,
50
50
  primaryButtonDisabled = _ref.primaryButtonDisabled,
51
51
  primaryButtonText = _ref.primaryButtonText,
52
+ primaryDangerDescription = _ref.primaryDangerDescription,
52
53
  resourceName = _ref.resourceName,
53
54
  secondaryButtonText = _ref.secondaryButtonText,
54
55
  textConfirmation = _ref.textConfirmation,
@@ -118,6 +119,7 @@ exports.RemoveModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
118
119
  }, secondaryButtonText), /*#__PURE__*/React__default["default"].createElement(react.Button, {
119
120
  type: "submit",
120
121
  kind: "danger",
122
+ dangerDescription: primaryDangerDescription,
121
123
  onClick: onRequestSubmit,
122
124
  disabled: primaryButtonStatus
123
125
  }, primaryButtonText))));
@@ -182,6 +184,10 @@ exports.RemoveModal.propTypes = {
182
184
  * Specify the text for the primary button
183
185
  */
184
186
  primaryButtonText: index["default"].string,
187
+ /**
188
+ * Specify the danger description on the primary button
189
+ */
190
+ primaryDangerDescription: index["default"].string,
185
191
  /**
186
192
  * The name of the resource being acted upon
187
193
  */
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.29+6505e1c58",
4
+ "version": "2.43.2-canary.30+85716f963",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -119,5 +119,5 @@
119
119
  "react": "^16.8.6 || ^17.0.1 || ^18.2.0",
120
120
  "react-dom": "^16.8.6 || ^17.0.1 || ^18.2.0"
121
121
  },
122
- "gitHead": "6505e1c58cab0d12f861411016568d7f41531cd1"
122
+ "gitHead": "85716f9639feeb3608f66e39066760b3d94833de"
123
123
  }