@synerise/ds-confirmation 1.2.8 → 1.2.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.2.9](https://github.com/Synerise/synerise-design/compare/@synerise/ds-confirmation@1.2.8...@synerise/ds-confirmation@1.2.9) (2026-02-26)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **confirmation:** custom footer component for confirmation ([9b441d5](https://github.com/Synerise/synerise-design/commit/9b441d532eb492d789023fe6a181cd996114dabb))
11
+
6
12
  ## [1.2.8](https://github.com/Synerise/synerise-design/compare/@synerise/ds-confirmation@1.2.7...@synerise/ds-confirmation@1.2.8) (2026-02-23)
7
13
 
8
14
  **Note:** Version bump only for package @synerise/ds-confirmation
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import type { ListItemProps } from '@synerise/ds-list-item';
3
3
  import type { ConfirmationProps } from './Confirmation.types';
4
- declare const Confirmation: <ItemType extends ListItemProps>({ type, texts, title, description, onCancel, onOk, icon, batchActionItems, decisionOptions, relatedObjects, additionalInfo, secondaryButtonProps, mainButtonProps, ...modalProps }: ConfirmationProps<ItemType>) => React.JSX.Element;
4
+ declare const Confirmation: <ItemType extends ListItemProps>({ type, texts, title, description, onCancel, onOk, icon, batchActionItems, decisionOptions, relatedObjects, additionalInfo, secondaryButtonProps, mainButtonProps, customFooterComponent, ...modalProps }: ConfirmationProps<ItemType>) => React.JSX.Element;
5
5
  export default Confirmation;
@@ -1,4 +1,4 @@
1
- var _excluded = ["type", "texts", "title", "description", "onCancel", "onOk", "icon", "batchActionItems", "decisionOptions", "relatedObjects", "additionalInfo", "secondaryButtonProps", "mainButtonProps"];
1
+ var _excluded = ["type", "texts", "title", "description", "onCancel", "onOk", "icon", "batchActionItems", "decisionOptions", "relatedObjects", "additionalInfo", "secondaryButtonProps", "mainButtonProps", "customFooterComponent"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
3
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { useMemo, useState } from 'react';
@@ -27,6 +27,7 @@ var Confirmation = function Confirmation(_ref) {
27
27
  additionalInfo = _ref.additionalInfo,
28
28
  secondaryButtonProps = _ref.secondaryButtonProps,
29
29
  mainButtonProps = _ref.mainButtonProps,
30
+ customFooterComponent = _ref.customFooterComponent,
30
31
  modalProps = _objectWithoutPropertiesLoose(_ref, _excluded);
31
32
  var _useState = useState('default'),
32
33
  mode = _useState[0],
@@ -64,7 +65,7 @@ var Confirmation = function Confirmation(_ref) {
64
65
  mode: "icon-label"
65
66
  }, /*#__PURE__*/React.createElement(Icon, {
66
67
  component: /*#__PURE__*/React.createElement(ShowM, null)
67
- }), ' ', allTexts.relatedObjectsButtonLabel)), (onOk || onCancel) && /*#__PURE__*/React.createElement(S.FooterRight, null, onCancel && /*#__PURE__*/React.createElement(Button, _extends({
68
+ }), ' ', allTexts.relatedObjectsButtonLabel)), customFooterComponent && /*#__PURE__*/React.createElement(S.FooterLeft, null, customFooterComponent), (onOk || onCancel) && /*#__PURE__*/React.createElement(S.FooterRight, null, onCancel && /*#__PURE__*/React.createElement(Button, _extends({
68
69
  type: "secondary",
69
70
  onClick: onCancel
70
71
  }, secondaryButtonProps), allTexts.secondaryButtonLabel), onOk && /*#__PURE__*/React.createElement(Button, _extends({
@@ -57,6 +57,10 @@ export type ConfirmationProps<ItemType extends ListItemProps> = SharedProps & {
57
57
  * Additional info displayed below description in a rounded frame
58
58
  */
59
59
  additionalInfo?: ReactNode;
60
+ /**
61
+ * Additional custom footer component like custom actions
62
+ */
63
+ customFooterComponent?: ReactNode;
60
64
  };
61
65
  export type PromptProps = SharedProps & {
62
66
  content?: ReactNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-confirmation",
3
- "version": "1.2.8",
3
+ "version": "1.2.9",
4
4
  "description": "Confirmation UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -39,8 +39,8 @@
39
39
  "@synerise/ds-icon": "^1.14.1",
40
40
  "@synerise/ds-list-item": "^1.4.7",
41
41
  "@synerise/ds-modal": "^1.3.8",
42
- "@synerise/ds-panel": "^1.2.0",
43
- "@synerise/ds-radio": "^1.0.43",
42
+ "@synerise/ds-panel": "^1.2.1",
43
+ "@synerise/ds-radio": "^1.1.0",
44
44
  "@synerise/ds-scrollbar": "^1.2.14",
45
45
  "@synerise/ds-typography": "^1.1.10",
46
46
  "@synerise/ds-utils": "^1.6.0"
@@ -51,5 +51,5 @@
51
51
  "react-intl": "^6.8.7",
52
52
  "styled-components": "^5.3.3"
53
53
  },
54
- "gitHead": "2997f77d657c1aed2fc39901d3e0b8f88b05cc53"
54
+ "gitHead": "4ffbd56e9bf6277c4507efeaf000b66b9bb09781"
55
55
  }