@cashub/ui 0.48.8 → 0.48.9

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,7 +58,8 @@ const ModalContent = _ref2 => {
58
58
  onConfirm,
59
59
  onCancel,
60
60
  allowDismiss = true,
61
- cancelButtonType = 'danger'
61
+ cancelButtonType = 'danger',
62
+ confirmButtonType = 'success'
62
63
  } = _ref2;
63
64
  const refWrapper = (0, _react.useRef)(null);
64
65
  const [id] = (0, _react.useState)((0, _lodash.default)('SD-'));
@@ -103,11 +104,14 @@ const ModalContent = _ref2 => {
103
104
  }), {}, {
104
105
  onClick: handleCancel,
105
106
  children: cancelButtonText || 'Cancel'
106
- })), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
107
- success: true,
107
+ })), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, _objectSpread(_objectSpread(_objectSpread({}, confirmButtonType === 'success' && {
108
+ success: true
109
+ }), confirmButtonType === 'warning' && {
110
+ warning: true
111
+ }), {}, {
108
112
  onClick: handleConfirm,
109
113
  children: confirmButtonText || 'Confirm'
110
- })]
114
+ }))]
111
115
  })]
112
116
  })
113
117
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cashub/ui",
3
- "version": "0.48.8",
3
+ "version": "0.48.9",
4
4
  "private": false,
5
5
  "author": "CasHUB Team",
6
6
  "description": "CasHUB UI components library",