@synerise/ds-modal 1.4.11 → 1.4.13

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,14 @@
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.4.13](https://github.com/synerise/synerise-design/compare/@synerise/ds-modal@1.4.12...@synerise/ds-modal@1.4.13) (2026-05-13)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-modal
9
+
10
+ ## [1.4.12](https://github.com/synerise/synerise-design/compare/@synerise/ds-modal@1.4.11...@synerise/ds-modal@1.4.12) (2026-05-11)
11
+
12
+ **Note:** Version bump only for package @synerise/ds-modal
13
+
6
14
  ## [1.4.11](https://github.com/synerise/synerise-design/compare/@synerise/ds-modal@1.4.10...@synerise/ds-modal@1.4.11) (2026-05-06)
7
15
 
8
16
  **Note:** Version bump only for package @synerise/ds-modal
@@ -20,9 +20,9 @@ const ModalFooter = ({
20
20
  const CustomButton = CustomFooterButton || DSButton;
21
21
  return /* @__PURE__ */ jsxs(FooterContainer, { "data-testid": "modal-footer", children: [
22
22
  prefix,
23
- antModalProps.cancelButton || /* @__PURE__ */ jsx(CustomButton, { type: "ghost", onClick: onCancel, disabled: !onCancel, ...antModalProps.cancelButtonProps, children: antModalProps.cancelText || texts?.cancelButton }),
23
+ antModalProps.cancelButton || /* @__PURE__ */ jsx(CustomButton, { type: "ghost", disabled: !onCancel, onClick: onCancel, ...antModalProps.cancelButtonProps, children: antModalProps.cancelText || texts?.cancelButton }),
24
24
  infix,
25
- antModalProps.okButton || /* @__PURE__ */ jsx(CustomButton, { type: antModalProps.okType || "primary", onClick: onOk, disabled: !onOk, ...antModalProps.okButtonProps, children: antModalProps.okText || texts?.okButton }),
25
+ antModalProps.okButton || /* @__PURE__ */ jsx(CustomButton, { type: antModalProps.okType || "primary", disabled: !onOk, onClick: onOk, ...antModalProps.okButtonProps, children: antModalProps.okText || texts?.okButton }),
26
26
  suffix
27
27
  ] });
28
28
  };
package/dist/Modal.js CHANGED
@@ -30,6 +30,9 @@ const Modal = (props) => {
30
30
  maxViewportHeight,
31
31
  disableScrollbar,
32
32
  children,
33
+ okType,
34
+ okButtonProps,
35
+ cancelButtonProps,
33
36
  ...antModalProps
34
37
  } = props;
35
38
  const className = classnames(`bodybg-${bodyBackground}`, antModalProps.className, {
@@ -1,6 +1,6 @@
1
1
  import { ModalProps as AntdModalProps } from 'antd';
2
2
  import { CSSProperties, ComponentType, ReactNode } from 'react';
3
- import { ButtonProps } from '@synerise/ds-button';
3
+ import { ButtonProps, ButtonType } from '@synerise/ds-button';
4
4
  import { TabsProps } from '@synerise/ds-tabs';
5
5
  export type Props = ModalProps;
6
6
  export type ModalProps = {
@@ -32,7 +32,11 @@ export type ModalProps = {
32
32
  maxViewportHeight?: true | number;
33
33
  /** When `true`, disables the automatic scrollbar wrapping applied by `maxViewportHeight` */
34
34
  disableScrollbar?: boolean;
35
- } & AntdModalProps & ModalFooterBuilder;
35
+ } & Omit<AntdModalProps, 'okType' | 'okButtonProps' | 'cancelButtonProps'> & {
36
+ okType?: ButtonType;
37
+ okButtonProps?: ButtonProps;
38
+ cancelButtonProps?: ButtonProps;
39
+ } & ModalFooterBuilder;
36
40
  export type ModalFooterBuilder = {
37
41
  prefix?: ReactNode;
38
42
  infix?: ReactNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-modal",
3
- "version": "1.4.11",
3
+ "version": "1.4.13",
4
4
  "description": "Modal UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "synerise/synerise-design",
@@ -41,11 +41,11 @@
41
41
  ],
42
42
  "types": "dist/index.d.ts",
43
43
  "dependencies": {
44
- "@synerise/ds-button": "^1.5.26",
45
- "@synerise/ds-icon": "^1.17.3",
46
- "@synerise/ds-scrollbar": "^1.3.4",
47
- "@synerise/ds-tabs": "^1.1.34",
48
- "@synerise/ds-typography": "^1.1.21",
44
+ "@synerise/ds-button": "^1.5.28",
45
+ "@synerise/ds-icon": "^1.18.0",
46
+ "@synerise/ds-scrollbar": "^1.3.5",
47
+ "@synerise/ds-tabs": "^1.1.36",
48
+ "@synerise/ds-typography": "^1.1.22",
49
49
  "classnames": "^2.5.1"
50
50
  },
51
51
  "devDependencies": {
@@ -57,5 +57,5 @@
57
57
  "react": ">=16.9.0 <= 18.3.1",
58
58
  "styled-components": "^5.3.3"
59
59
  },
60
- "gitHead": "2e8759a5466a0631229e764b0a1f73de963fc83b"
60
+ "gitHead": "1132c21afce924c3e3b8e75e2ebd5e7b5db69bd2"
61
61
  }