@cashub/ui 0.43.3 → 0.43.4

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.
@@ -57,7 +57,8 @@ const ModalContent = _ref2 => {
57
57
  onClose,
58
58
  onConfirm,
59
59
  onCancel,
60
- allowDismiss = true
60
+ allowDismiss = true,
61
+ cancelButtonType = 'danger'
61
62
  } = _ref2;
62
63
  const refWrapper = (0, _react.useRef)(null);
63
64
  const [id] = (0, _react.useState)((0, _lodash.default)('SD-'));
@@ -95,11 +96,14 @@ const ModalContent = _ref2 => {
95
96
  })]
96
97
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ButtonGroup.default, {
97
98
  alignRight: true,
98
- children: [showCancelButton === true && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
99
- danger: true,
99
+ children: [showCancelButton === true && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, _objectSpread(_objectSpread(_objectSpread({}, cancelButtonType === 'danger' && {
100
+ danger: true
101
+ }), cancelButtonType === 'warning' && {
102
+ warning: true
103
+ }), {}, {
100
104
  onClick: handleCancel,
101
105
  children: cancelButtonText || 'Cancel'
102
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
106
+ })), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
103
107
  success: true,
104
108
  onClick: handleConfirm,
105
109
  children: confirmButtonText || 'Confirm'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cashub/ui",
3
- "version": "0.43.3",
3
+ "version": "0.43.4",
4
4
  "private": false,
5
5
  "author": "CasHUB Team",
6
6
  "description": "CasHUB UI components library",