@synerise/ds-confirmation 1.2.9 → 1.2.11

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,16 @@
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.11](https://github.com/Synerise/synerise-design/compare/@synerise/ds-confirmation@1.2.10...@synerise/ds-confirmation@1.2.11) (2026-03-20)
7
+
8
+ ### Bug Fixes
9
+
10
+ - panel regressions ([c88aad5](https://github.com/Synerise/synerise-design/commit/c88aad5c4584a172c41c50dd8d64e5f86784de65))
11
+
12
+ ## [1.2.10](https://github.com/Synerise/synerise-design/compare/@synerise/ds-confirmation@1.2.9...@synerise/ds-confirmation@1.2.10) (2026-03-09)
13
+
14
+ **Note:** Version bump only for package @synerise/ds-confirmation
15
+
6
16
  ## [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
17
 
8
18
  ### Bug Fixes
package/README.md CHANGED
@@ -33,7 +33,7 @@ import Confirmation from '@synerise/ds-confirmation'
33
33
  | icon | icon to display above title | Preferably Xl size icon from ds-icons ReactNode | - |
34
34
  | title | confirmation title | ReactNode | - |
35
35
  | description | confirmation details | ReactNode | - |
36
- | texts | custom translations | ReactNode | - |
36
+ | texts | custom translations | `Partial<ConfirmationTexts>` | - |
37
37
  | type | action type - this defines the button (and icon if negative) color | `success` / `warning` / `negative` / `informative` | - |
38
38
  | mainButtonProps | additional button customisation props | subset of ButtonProps see ds-button | - |
39
39
  | secondaryButtonProps | additional button customisation props | subset of ButtonProps see ds-button | - |
@@ -41,6 +41,7 @@ import Confirmation from '@synerise/ds-confirmation'
41
41
  | batchActionItems | renders a list of items that are affected | ListItemProps[] | - |
42
42
  | decisionOptions | renders a group of radio buttons to choose from | RadioProps[] | - |
43
43
  | additionalInfo | extra description to render within a bordered frame | ReactNode | - |
44
+ | customFooterComponent| additional custom footer component like custom actions | ReactNode | - |
44
45
 
45
46
  ### Prompt
46
47
 
@@ -48,7 +49,7 @@ import Confirmation from '@synerise/ds-confirmation'
48
49
  | -------------------- | ------------------------------------------- | -------------------------------------------------- | ------- |
49
50
  | title | prompt title | ReactNode | - |
50
51
  | content | prompt content | ReactNode | - |
51
- | texts | custom translations | ReactNode | - |
52
+ | texts | custom translations | `Partial<ConfirmationTexts>` | - |
52
53
  | type | action type - this defines the button color | `success` / `warning` / `negative` / `informative` | - |
53
54
  | mainButtonProps | additional button customisation props | subset of ButtonProps see ds-button | - |
54
55
  | secondaryButtonProps | additional button customisation props | subset of ButtonProps see ds-button | - |
@@ -60,6 +61,6 @@ import Confirmation from '@synerise/ds-confirmation'
60
61
  | mainButtonLabel | | ReactNode | `Ok` |
61
62
  | secondaryButtonLabel | | ReactNode | `Cancel` |
62
63
  | relatedObjectsButtonLabel | | ReactNode | `Show related objects` |
63
- | relatedObjectsTitle | | ReactNode | `Objects to delete` |
64
- | batchActionItemsTitle | | ReactNode | `What do you want to do?` |
65
- | decisionTitle | | ReactNode | `Related objects` |
64
+ | relatedObjectsTitle | | ReactNode | `Related objects` |
65
+ | batchActionItemsTitle | | ReactNode | `Objects to delete` |
66
+ | decisionTitle | | ReactNode | `What do you want to do?` |
@@ -6,6 +6,7 @@ import Button from '@synerise/ds-button';
6
6
  import { useTheme } from '@synerise/ds-core';
7
7
  import Icon, { ArrowLeftM, ShowM } from '@synerise/ds-icon';
8
8
  import Modal from '@synerise/ds-modal';
9
+ import Panel from '@synerise/ds-panel';
9
10
  import { Paragraph } from '@synerise/ds-typography';
10
11
  import { BUTTON_COLOR_MAPPING } from './Confirmation.const';
11
12
  import * as S from './Confirmation.styles';
@@ -46,7 +47,9 @@ var Confirmation = function Confirmation(_ref) {
46
47
  level: 3
47
48
  }, title), /*#__PURE__*/React.createElement(Paragraph, {
48
49
  size: "small"
49
- }, description)), additionalInfo && /*#__PURE__*/React.createElement(S.AdditionalInfo, null, additionalInfo), (batchActionItems == null ? void 0 : batchActionItems.length) && /*#__PURE__*/React.createElement(BatchItemsList, {
50
+ }, description)), additionalInfo && /*#__PURE__*/React.createElement(Panel, {
51
+ p: "8px 18px"
52
+ }, additionalInfo), (batchActionItems == null ? void 0 : batchActionItems.length) && /*#__PURE__*/React.createElement(BatchItemsList, {
50
53
  items: batchActionItems,
51
54
  title: allTexts.batchActionItemsTitle
52
55
  }), (decisionOptions == null ? void 0 : decisionOptions.length) && /*#__PURE__*/React.createElement(DecisionSection, {
@@ -6,8 +6,6 @@ export declare const FooterRight: import("styled-components").StyledComponent<"d
6
6
  export declare const FooterLeft: import("styled-components").StyledComponent<"div", any, {}, never>;
7
7
  export declare const Footer: import("styled-components").StyledComponent<"div", any, {}, never>;
8
8
  export declare const ConfirmationExtra: import("styled-components").StyledComponent<"div", any, {}, never>;
9
- export declare const ConfirmationExtraTitle: import("styled-components").StyledComponent<({ level, withoutMargin, children, className, ellipsis, ...antdProps }: import("@synerise/ds-typography/dist/Title.types").Props) => React.JSX.Element, any, {}, never>;
10
9
  export declare const BatchItemsList: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<(import("@synerise/ds-scrollbar").ScrollbarProps | import("@synerise/ds-scrollbar").VirtualScrollbarProps) & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
11
- export declare const AdditionalInfo: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<import("@synerise/ds-panel").PanelProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
12
10
  export declare const DecisionOptions: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<import("@synerise/ds-panel").PanelProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
13
11
  export declare const ModalBackTitle: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -3,7 +3,6 @@ import Panel from '@synerise/ds-panel';
3
3
  import { AdditionalData, RadioWrapper } from '@synerise/ds-radio/dist/Radio.styles';
4
4
  import Scrollbar from '@synerise/ds-scrollbar';
5
5
  import { Title as TypographyTitle } from '@synerise/ds-typography';
6
- var sectionTitleCSS = css(["margin-bottom:8px;"]);
7
6
  var modalContentCSS = css(["padding:36px 48px 48px;"]);
8
7
  export var ConfirmationModalContent = styled.div.withConfig({
9
8
  displayName: "Confirmationstyles__ConfirmationModalContent",
@@ -37,23 +36,15 @@ export var ConfirmationExtra = styled.div.withConfig({
37
36
  displayName: "Confirmationstyles__ConfirmationExtra",
38
37
  componentId: "sc-17izghl-7"
39
38
  })([""]);
40
- export var ConfirmationExtraTitle = styled(TypographyTitle).withConfig({
41
- displayName: "Confirmationstyles__ConfirmationExtraTitle",
42
- componentId: "sc-17izghl-8"
43
- })(["", ""], sectionTitleCSS);
44
39
  export var BatchItemsList = styled(Scrollbar).withConfig({
45
40
  displayName: "Confirmationstyles__BatchItemsList",
46
- componentId: "sc-17izghl-9"
41
+ componentId: "sc-17izghl-8"
47
42
  })([""]);
48
- export var AdditionalInfo = styled(Panel).withConfig({
49
- displayName: "Confirmationstyles__AdditionalInfo",
50
- componentId: "sc-17izghl-10"
51
- })(["padding:8px 18px;"]);
52
43
  export var DecisionOptions = styled(Panel).withConfig({
53
44
  displayName: "Confirmationstyles__DecisionOptions",
54
- componentId: "sc-17izghl-11"
55
- })(["", "{padding:7px 0;margin-bottom:0;}", ":empty{display:none;}padding:8px 18px;"], RadioWrapper, AdditionalData);
45
+ componentId: "sc-17izghl-9"
46
+ })(["", "{padding:7px 0;margin-bottom:0;}", ":empty{display:none;}"], RadioWrapper, AdditionalData);
56
47
  export var ModalBackTitle = styled.div.withConfig({
57
48
  displayName: "Confirmationstyles__ModalBackTitle",
58
- componentId: "sc-17izghl-12"
49
+ componentId: "sc-17izghl-10"
59
50
  })(["display:flex;gap:12px;align-items:center;"]);
@@ -1,20 +1,20 @@
1
1
  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); }
2
2
  import React from 'react';
3
- import ListItem from '@synerise/ds-list-item';
3
+ import ListItem, { ListContextProvider } from '@synerise/ds-list-item';
4
4
  import Panel from '@synerise/ds-panel';
5
5
  import { ITEM_SIZE, MAX_ITEMS } from '../Confirmation.const';
6
6
  import * as S from '../Confirmation.styles';
7
7
  export var BatchItemsList = function BatchItemsList(_ref) {
8
8
  var items = _ref.items,
9
9
  title = _ref.title;
10
- return /*#__PURE__*/React.createElement(S.ConfirmationExtra, null, /*#__PURE__*/React.createElement(S.ConfirmationExtraTitle, {
11
- level: 6
12
- }, title), /*#__PURE__*/React.createElement(Panel, null, /*#__PURE__*/React.createElement(S.BatchItemsList, {
10
+ return /*#__PURE__*/React.createElement(S.ConfirmationExtra, null, /*#__PURE__*/React.createElement(Panel, {
11
+ label: title
12
+ }, /*#__PURE__*/React.createElement(ListContextProvider, null, /*#__PURE__*/React.createElement(S.BatchItemsList, {
13
13
  maxHeight: ITEM_SIZE * MAX_ITEMS,
14
14
  absolute: true
15
15
  }, items.map(function (item) {
16
16
  return /*#__PURE__*/React.createElement(ListItem, _extends({
17
17
  key: item.id
18
18
  }, item));
19
- }))));
19
+ })))));
20
20
  };
@@ -5,9 +5,10 @@ import * as S from '../Confirmation.styles';
5
5
  export var DecisionSection = function DecisionSection(_ref) {
6
6
  var options = _ref.options,
7
7
  title = _ref.title;
8
- return /*#__PURE__*/React.createElement(S.ConfirmationExtra, null, /*#__PURE__*/React.createElement(S.ConfirmationExtraTitle, {
9
- level: 6
10
- }, title), /*#__PURE__*/React.createElement(S.DecisionOptions, null, /*#__PURE__*/React.createElement(Radio.Group, null, options.map(function (option) {
8
+ return /*#__PURE__*/React.createElement(S.ConfirmationExtra, null, /*#__PURE__*/React.createElement(S.DecisionOptions, {
9
+ p: "8px 18px",
10
+ label: title
11
+ }, /*#__PURE__*/React.createElement(Radio.Group, null, options.map(function (option) {
11
12
  return /*#__PURE__*/React.createElement(Radio, _extends({
12
13
  key: option.id
13
14
  }, option));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-confirmation",
3
- "version": "1.2.9",
3
+ "version": "1.2.11",
4
4
  "description": "Confirmation UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -35,15 +35,15 @@
35
35
  ],
36
36
  "types": "dist/index.d.ts",
37
37
  "dependencies": {
38
- "@synerise/ds-button": "^1.5.15",
39
- "@synerise/ds-icon": "^1.14.1",
40
- "@synerise/ds-list-item": "^1.4.7",
41
- "@synerise/ds-modal": "^1.3.8",
42
- "@synerise/ds-panel": "^1.2.1",
43
- "@synerise/ds-radio": "^1.1.0",
44
- "@synerise/ds-scrollbar": "^1.2.14",
45
- "@synerise/ds-typography": "^1.1.10",
46
- "@synerise/ds-utils": "^1.6.0"
38
+ "@synerise/ds-button": "^1.5.17",
39
+ "@synerise/ds-icon": "^1.15.0",
40
+ "@synerise/ds-list-item": "^1.4.9",
41
+ "@synerise/ds-modal": "^1.4.0",
42
+ "@synerise/ds-panel": "^1.2.2",
43
+ "@synerise/ds-radio": "^1.1.2",
44
+ "@synerise/ds-scrollbar": "^1.2.16",
45
+ "@synerise/ds-typography": "^1.1.12",
46
+ "@synerise/ds-utils": "^1.7.0"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "@synerise/ds-core": "*",
@@ -51,5 +51,5 @@
51
51
  "react-intl": "^6.8.7",
52
52
  "styled-components": "^5.3.3"
53
53
  },
54
- "gitHead": "4ffbd56e9bf6277c4507efeaf000b66b9bb09781"
54
+ "gitHead": "8efc031fa688c0b87c7b3915bae93546bb63bcac"
55
55
  }