@synerise/ds-modal 0.17.50 → 0.17.52

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,22 @@
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.52](https://github.com/synerise/synerise-design/compare/@synerise/ds-modal@0.17.51...@synerise/ds-modal@0.17.52) (2024-11-28)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-modal
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.17.51](https://github.com/synerise/synerise-design/compare/@synerise/ds-modal@0.17.50...@synerise/ds-modal@0.17.51) (2024-11-21)
15
+
16
+ **Note:** Version bump only for package @synerise/ds-modal
17
+
18
+
19
+
20
+
21
+
6
22
  ## [0.17.50](https://github.com/synerise/synerise-design/compare/@synerise/ds-modal@0.17.49...@synerise/ds-modal@0.17.50) (2024-11-12)
7
23
 
8
24
  **Note:** Version bump only for package @synerise/ds-modal
@@ -1,29 +1,25 @@
1
1
  var _excluded = ["CustomFooterButton", "DSButton", "prefix", "infix", "suffix"];
2
-
3
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
-
5
3
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
-
7
4
  import React from 'react';
8
5
  import Button from '@synerise/ds-button';
9
6
  import * as S from './ModalFooter.styles';
10
7
  export var ModalFooter = function ModalFooter(_ref) {
11
8
  var _ref$CustomFooterButt = _ref.CustomFooterButton,
12
- CustomFooterButton = _ref$CustomFooterButt === void 0 ? Button : _ref$CustomFooterButt,
13
- _ref$DSButton = _ref.DSButton,
14
- DSButton = _ref$DSButton === void 0 ? Button : _ref$DSButton,
15
- prefix = _ref.prefix,
16
- infix = _ref.infix,
17
- suffix = _ref.suffix,
18
- antModalProps = _objectWithoutPropertiesLoose(_ref, _excluded);
19
-
9
+ CustomFooterButton = _ref$CustomFooterButt === void 0 ? Button : _ref$CustomFooterButt,
10
+ _ref$DSButton = _ref.DSButton,
11
+ DSButton = _ref$DSButton === void 0 ? Button : _ref$DSButton,
12
+ prefix = _ref.prefix,
13
+ infix = _ref.infix,
14
+ suffix = _ref.suffix,
15
+ antModalProps = _objectWithoutPropertiesLoose(_ref, _excluded);
20
16
  var onOk = antModalProps.onOk,
21
- onCancel = antModalProps.onCancel,
22
- _antModalProps$texts = antModalProps.texts,
23
- texts = _antModalProps$texts === void 0 ? {
24
- okButton: 'Apply',
25
- cancelButton: 'Cancel'
26
- } : _antModalProps$texts;
17
+ onCancel = antModalProps.onCancel,
18
+ _antModalProps$texts = antModalProps.texts,
19
+ texts = _antModalProps$texts === void 0 ? {
20
+ okButton: 'Apply',
21
+ cancelButton: 'Cancel'
22
+ } : _antModalProps$texts;
27
23
  var CustomButton = CustomFooterButton || DSButton;
28
24
  return /*#__PURE__*/React.createElement(S.FooterContainer, {
29
25
  "data-testid": "modal-footer"
@@ -4,11 +4,11 @@ import Icon, { CloseM } from '@synerise/ds-icon';
4
4
  import * as S from './ModalTitle.styles';
5
5
  export var ModalTitle = function ModalTitle(_ref) {
6
6
  var headerActions = _ref.headerActions,
7
- blank = _ref.blank,
8
- titleContainerStyle = _ref.titleContainerStyle,
9
- onCancel = _ref.onCancel,
10
- title = _ref.title,
11
- description = _ref.description;
7
+ blank = _ref.blank,
8
+ titleContainerStyle = _ref.titleContainerStyle,
9
+ onCancel = _ref.onCancel,
10
+ title = _ref.title,
11
+ description = _ref.description;
12
12
  return /*#__PURE__*/React.createElement(React.Fragment, null, blank && onCancel && /*#__PURE__*/React.createElement(Button, {
13
13
  mode: "single-icon",
14
14
  "data-testid": "modal-close",
package/dist/Modal.js CHANGED
@@ -1,9 +1,6 @@
1
1
  var _excluded = ["texts", "bodyBackground", "headerActions", "title", "description", "size", "blank", "settingButtonText", "titleContainerStyle"];
2
-
3
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
-
5
3
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
-
7
4
  import React from 'react';
8
5
  import classnames from 'classnames';
9
6
  import '@synerise/ds-core/dist/js/style';
@@ -19,24 +16,23 @@ var mapSizeToWidth = {
19
16
  extraLarge: 1280,
20
17
  fullSize: '100%'
21
18
  };
22
- /** @deprecated */
23
19
 
20
+ /** @deprecated */
24
21
  export var buildModalFooter = function buildModalFooter(props) {
25
22
  return /*#__PURE__*/React.createElement(ModalFooter, props);
26
23
  };
27
24
  export var Modal = function Modal(props) {
28
25
  var texts = props.texts,
29
- _props$bodyBackground = props.bodyBackground,
30
- bodyBackground = _props$bodyBackground === void 0 ? 'white' : _props$bodyBackground,
31
- headerActions = props.headerActions,
32
- title = props.title,
33
- description = props.description,
34
- size = props.size,
35
- blank = props.blank,
36
- settingButtonText = props.settingButtonText,
37
- titleContainerStyle = props.titleContainerStyle,
38
- antModalProps = _objectWithoutPropertiesLoose(props, _excluded);
39
-
26
+ _props$bodyBackground = props.bodyBackground,
27
+ bodyBackground = _props$bodyBackground === void 0 ? 'white' : _props$bodyBackground,
28
+ headerActions = props.headerActions,
29
+ title = props.title,
30
+ description = props.description,
31
+ size = props.size,
32
+ blank = props.blank,
33
+ settingButtonText = props.settingButtonText,
34
+ titleContainerStyle = props.titleContainerStyle,
35
+ antModalProps = _objectWithoutPropertiesLoose(props, _excluded);
40
36
  var className = classnames("bodybg-" + bodyBackground, antModalProps.className, {
41
37
  'modal-blank': Boolean(blank)
42
38
  }, {
@@ -7,9 +7,10 @@ export var SettingButton = styled.div.withConfig({
7
7
  export var ButtonsWrapper = styled.div.withConfig({
8
8
  displayName: "Modalstyles__ButtonsWrapper",
9
9
  componentId: "jdspxw-1"
10
- })(["display:flex;"]); // FIXME: Exported variable 'AntdModal' has or is using name 'ModalInterface' from external module (probabli Antd's types issue)
11
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
10
+ })(["display:flex;"]);
12
11
 
12
+ // FIXME: Exported variable 'AntdModal' has or is using name 'ModalInterface' from external module (probabli Antd's types issue)
13
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
13
14
  export var AntdModal = styled(Modal).withConfig({
14
15
  displayName: "Modalstyles__AntdModal",
15
16
  componentId: "jdspxw-2"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-modal",
3
- "version": "0.17.50",
3
+ "version": "0.17.52",
4
4
  "description": "Modal UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "synerise/synerise-design",
@@ -34,10 +34,10 @@
34
34
  ],
35
35
  "types": "dist/index.d.ts",
36
36
  "dependencies": {
37
- "@synerise/ds-button": "^0.21.18",
38
- "@synerise/ds-icon": "^0.66.4",
39
- "@synerise/ds-typography": "^0.16.5",
40
- "@synerise/ds-utils": "^0.31.1",
37
+ "@synerise/ds-button": "^0.21.20",
38
+ "@synerise/ds-icon": "^0.67.1",
39
+ "@synerise/ds-typography": "^0.16.7",
40
+ "@synerise/ds-utils": "^0.31.2",
41
41
  "classnames": "2.3.2"
42
42
  },
43
43
  "peerDependencies": {
@@ -46,5 +46,5 @@
46
46
  "react": ">=16.9.0 <= 17.0.2",
47
47
  "styled-components": "5.0.1"
48
48
  },
49
- "gitHead": "8d26191fc0475407e0691b9b183761ad3cd7c87d"
49
+ "gitHead": "4a56ee7ef816c22341ce704154dc7aa65b7d1dcc"
50
50
  }