@cashub/ui 0.48.9 → 0.48.10

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.
@@ -53,6 +53,7 @@ const ModalContent = _ref2 => {
53
53
  text,
54
54
  confirmButtonText,
55
55
  cancelButtonText,
56
+ showConfirmButton = true,
56
57
  showCancelButton,
57
58
  onClose,
58
59
  onConfirm,
@@ -95,7 +96,7 @@ const ModalContent = _ref2 => {
95
96
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(Message, {
96
97
  children: text
97
98
  })]
98
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ButtonGroup.default, {
99
+ }), (showCancelButton === true || showConfirmButton === true) && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ButtonGroup.default, {
99
100
  alignRight: true,
100
101
  children: [showCancelButton === true && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, _objectSpread(_objectSpread(_objectSpread({}, cancelButtonType === 'danger' && {
101
102
  danger: true
@@ -104,7 +105,7 @@ const ModalContent = _ref2 => {
104
105
  }), {}, {
105
106
  onClick: handleCancel,
106
107
  children: cancelButtonText || 'Cancel'
107
- })), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, _objectSpread(_objectSpread(_objectSpread({}, confirmButtonType === 'success' && {
108
+ })), showConfirmButton === true && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, _objectSpread(_objectSpread(_objectSpread({}, confirmButtonType === 'success' && {
108
109
  success: true
109
110
  }), confirmButtonType === 'warning' && {
110
111
  warning: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cashub/ui",
3
- "version": "0.48.9",
3
+ "version": "0.48.10",
4
4
  "private": false,
5
5
  "author": "CasHUB Team",
6
6
  "description": "CasHUB UI components library",