@synerise/ds-modal 0.17.1 → 0.17.3

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,25 @@
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
+ ## [0.17.3](https://github.com/synerise/synerise-design/compare/@synerise/ds-modal@0.17.2...@synerise/ds-modal@0.17.3) (2023-09-05)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-modal
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.17.2](https://github.com/synerise/synerise-design/compare/@synerise/ds-modal@0.17.1...@synerise/ds-modal@0.17.2) (2023-08-25)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **modal:** handle footer property with null ([c8f9040](https://github.com/synerise/synerise-design/commit/c8f90400160ee51576fa0e1f1b76653be0ab1ca5))
20
+
21
+
22
+
23
+
24
+
6
25
  ## [0.17.1](https://github.com/synerise/synerise-design/compare/@synerise/ds-modal@0.17.0...@synerise/ds-modal@0.17.1) (2023-08-22)
7
26
 
8
27
  **Note:** Version bump only for package @synerise/ds-modal
package/README.md CHANGED
@@ -48,7 +48,7 @@ Some features of the Modal component have been deprecated. Please refer to the [
48
48
  | afterClose | Specify a function that will be called when modal is closed completely. | function | - |
49
49
  | centered | Centered Modal | Boolean | `false` |
50
50
  | width | Width of the modal dialog | string / number | 520 |
51
- | footer | Footer content, set as `footer={null}` when you don't need default buttons | string / ReactNode | OK and Cancel buttons |
51
+ | footer | Footer content, set as `footer={null}` when you don't need default buttons | ReactNode | OK and Cancel buttons |
52
52
  | okText | Text of the OK button | string / ReactNode | `OK` |
53
53
  | okType | Button `type` of the OK button | string | `primary` |
54
54
  | cancelText | Text of the Cancel button | string / ReactNode | `Cancel` |
package/dist/Modal.js CHANGED
@@ -25,8 +25,6 @@ export var buildModalFooter = function buildModalFooter(props) {
25
25
  return /*#__PURE__*/React.createElement(ModalFooter, props);
26
26
  };
27
27
  export var Modal = function Modal(props) {
28
- var _antModalProps$footer;
29
-
30
28
  var texts = props.texts,
31
29
  _props$bodyBackground = props.bodyBackground,
32
30
  bodyBackground = _props$bodyBackground === void 0 ? 'white' : _props$bodyBackground,
@@ -49,7 +47,7 @@ export var Modal = function Modal(props) {
49
47
  width: size && mapSizeToWidth[size],
50
48
  closable: false,
51
49
  title: (title || description || blank) && /*#__PURE__*/React.createElement(ModalTitle, props),
52
- footer: (_antModalProps$footer = antModalProps.footer) != null ? _antModalProps$footer : /*#__PURE__*/React.createElement(ModalFooter, props)
50
+ footer: antModalProps.footer !== null ? antModalProps.footer || /*#__PURE__*/React.createElement(ModalFooter, props) : null
53
51
  }));
54
52
  };
55
53
  Modal.info = AntModal.info;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-modal",
3
- "version": "0.17.1",
3
+ "version": "0.17.3",
4
4
  "description": "Modal UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "synerise/synerise-design",
@@ -32,18 +32,21 @@
32
32
  ],
33
33
  "types": "dist/index.d.ts",
34
34
  "dependencies": {
35
- "@synerise/ds-button": "^0.18.0",
36
- "@synerise/ds-icon": "^0.58.0",
37
- "@synerise/ds-typography": "^0.12.8",
35
+ "@synerise/ds-button": "^0.18.1",
36
+ "@synerise/ds-icon": "^0.58.1",
37
+ "@synerise/ds-typography": "^0.12.9",
38
38
  "classnames": "^2.2.6"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@synerise/ds-core": "*",
42
- "antd": "^4",
43
- "react": ">=16.9.0 < 17.0.0"
42
+ "antd": "4.7.0",
43
+ "react": ">=16.9.0 < 17.0.0",
44
+ "styled-components": "5.0.1"
44
45
  },
45
46
  "devDependencies": {
46
- "@synerise/ds-utils": "^0.19.0"
47
+ "@synerise/ds-utils": "^0.24.15",
48
+ "@testing-library/react": "10.0.1",
49
+ "@testing-library/user-event": "^10.3.1"
47
50
  },
48
- "gitHead": "1f03e5affd1f22c9d3c7b4f1401887263d32d3d5"
51
+ "gitHead": "a2b1a3a78d87edfdbe97ae2f66573f4736f30e8b"
49
52
  }