@skedulo/sked-ui 21.2.1 → 21.3.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.
|
@@ -16,6 +16,7 @@ export declare const DynamicModal: React.FC<IDynamicModal & ModalContentProps>;
|
|
|
16
16
|
export interface IConfirmationModalProps {
|
|
17
17
|
onConfirm: (event?: React.MouseEvent<HTMLButtonElement>) => void;
|
|
18
18
|
onCancel: (event?: React.MouseEvent<HTMLButtonElement>) => void;
|
|
19
|
+
cancelButtonText?: string;
|
|
19
20
|
confirmButtonText?: string;
|
|
20
21
|
/**
|
|
21
22
|
* Used to indicate the current onConfirm action is in progress.
|
package/dist/index.js
CHANGED
|
@@ -65122,6 +65122,7 @@ var ConfirmationModal = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
65122
65122
|
var _this$props2 = this.props,
|
|
65123
65123
|
children = _this$props2.children,
|
|
65124
65124
|
onCancel = _this$props2.onCancel,
|
|
65125
|
+
cancelButtonText = _this$props2.cancelButtonText,
|
|
65125
65126
|
confirmButtonText = _this$props2.confirmButtonText;
|
|
65126
65127
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9__["createElement"](BaseModal, {
|
|
65127
65128
|
"data-sk-name": "confirmation-modal"
|
|
@@ -65135,7 +65136,7 @@ var ConfirmationModal = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
65135
65136
|
"data-sk-name": "cancel-button",
|
|
65136
65137
|
buttonType: "transparent",
|
|
65137
65138
|
onClick: onCancel
|
|
65138
|
-
},
|
|
65139
|
+
}, cancelButtonText || 'Cancel'), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9__["createElement"](_buttons_button_Button__WEBPACK_IMPORTED_MODULE_12__["Button"], {
|
|
65139
65140
|
"data-sk-name": "confirm-button",
|
|
65140
65141
|
buttonType: "primary",
|
|
65141
65142
|
onClick: this.handleConfirmButtonClick,
|