@synerise/ds-modal 1.1.4 → 1.2.0

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,28 @@
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.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-modal@1.1.5...@synerise/ds-modal@1.2.0) (2025-06-24)
7
+
8
+
9
+ ### Features
10
+
11
+ * **factors:** array factor type ([195d328](https://github.com/synerise/synerise-design/commit/195d3286e98b5f07fc9c1e56001e6ae844b7a080))
12
+
13
+
14
+
15
+
16
+
17
+ ## [1.1.5](https://github.com/synerise/synerise-design/compare/@synerise/ds-modal@1.1.4...@synerise/ds-modal@1.1.5) (2025-06-11)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **modal:** make content fit inside modal ([1aa284e](https://github.com/synerise/synerise-design/commit/1aa284e304c2957c59dc2cc597103b65ad0b5a36))
23
+
24
+
25
+
26
+
27
+
6
28
  ## [1.1.4](https://github.com/synerise/synerise-design/compare/@synerise/ds-modal@1.1.3...@synerise/ds-modal@1.1.4) (2025-06-05)
7
29
 
8
30
  **Note:** Version bump only for package @synerise/ds-modal
package/README.md CHANGED
@@ -29,9 +29,10 @@ Some features of the Modal component have been deprecated. Please refer to the [
29
29
 
30
30
  ## ModalProps
31
31
 
32
- | Property | Description | Type | Default | Version |
33
- | ------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- | ----------------------------------------------- | ------- |
34
- | description | The modal dialog's description | string | - |
32
+ | Property | Description | Type | Default |
33
+ | ------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- | ----------------------------------------------- |
34
+ | description | The modal dialog's description | ReactNode | - |
35
+ | headerBottomBar | Bottom bar rendered below title and description | ReactNode | - |
35
36
  | headerActions | Append additional content to header actions space | React.ReactNode | - |
36
37
  | size | The modal size | `small` / `medium` / `large` / `extraLarge`/ `fullSize`/ `fullScreen`. | - |
37
38
  | bodyBackground | Set color for body of modal | `white` / `grey` | `white` |
@@ -66,6 +67,9 @@ Some features of the Modal component have been deprecated. Please refer to the [
66
67
  | mask | Whether show mask or not. | Boolean | `true` |
67
68
  | closeIcon | custom close icon | ReactNode | - |
68
69
  | maskStyle | Style for modal's mask element. | object | {} |
70
+ | maxHeightViewport | height of modal with with scrollbar | true / number | 80 |
71
+
72
+
69
73
 
70
74
  and it is extended by props for ModalFooterBuilder:
71
75
 
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { ModalProps } from '../../Modal.types';
3
- type ModalTitleProps = Pick<ModalProps, 'headerActions' | 'onCancel' | 'titleContainerStyle' | 'blank' | 'description' | 'title'>;
4
- export declare const ModalTitle: ({ headerActions, blank, titleContainerStyle, onCancel, title, description, }: ModalTitleProps) => React.JSX.Element;
3
+ type ModalTitleProps = Pick<ModalProps, 'headerActions' | 'onCancel' | 'titleContainerStyle' | 'blank' | 'description' | 'title' | 'headerBottomBar'>;
4
+ export declare const ModalTitle: ({ headerActions, blank, titleContainerStyle, onCancel, title, description, headerBottomBar, }: ModalTitleProps) => React.JSX.Element;
5
5
  export {};
@@ -8,7 +8,8 @@ export var ModalTitle = function ModalTitle(_ref) {
8
8
  titleContainerStyle = _ref.titleContainerStyle,
9
9
  onCancel = _ref.onCancel,
10
10
  title = _ref.title,
11
- description = _ref.description;
11
+ description = _ref.description,
12
+ headerBottomBar = _ref.headerBottomBar;
12
13
  return /*#__PURE__*/React.createElement(React.Fragment, null, blank && onCancel && /*#__PURE__*/React.createElement(Button, {
13
14
  mode: "single-icon",
14
15
  "data-testid": "modal-close",
@@ -17,7 +18,9 @@ export var ModalTitle = function ModalTitle(_ref) {
17
18
  onClick: onCancel
18
19
  }, /*#__PURE__*/React.createElement(Icon, {
19
20
  component: /*#__PURE__*/React.createElement(CloseM, null)
20
- })), title && /*#__PURE__*/React.createElement(S.TitleContainer, {
21
+ })), (title || description) && /*#__PURE__*/React.createElement(S.ModalTitleWrapper, {
22
+ withDescription: !!description
23
+ }, title && /*#__PURE__*/React.createElement(S.TitleContainer, {
21
24
  style: titleContainerStyle,
22
25
  "data-testid": "modal-title"
23
26
  }, /*#__PURE__*/React.createElement(S.Title, {
@@ -30,5 +33,5 @@ export var ModalTitle = function ModalTitle(_ref) {
30
33
  onClick: onCancel
31
34
  }, /*#__PURE__*/React.createElement(Icon, {
32
35
  component: /*#__PURE__*/React.createElement(CloseM, null)
33
- })))), description && /*#__PURE__*/React.createElement(S.Description, null, description));
36
+ })))), description && /*#__PURE__*/React.createElement(S.Description, null, description)), headerBottomBar && /*#__PURE__*/React.createElement(S.BottomBar, null, headerBottomBar));
34
37
  };
@@ -2,4 +2,8 @@
2
2
  export declare const TitleContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
3
3
  export declare const Title: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/lib/typography/Title").TitleProps & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
4
4
  export declare const ActionButtons: import("styled-components").StyledComponent<"div", any, {}, never>;
5
+ export declare const BottomBar: import("styled-components").StyledComponent<"div", any, {}, never>;
6
+ export declare const ModalTitleWrapper: import("styled-components").StyledComponent<"div", any, {
7
+ withDescription?: boolean | undefined;
8
+ }, never>;
5
9
  export declare const Description: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,5 +1,5 @@
1
- import Typography from '@synerise/ds-typography';
2
1
  import styled from 'styled-components';
2
+ import Typography from '@synerise/ds-typography';
3
3
  export var TitleContainer = styled.div.withConfig({
4
4
  displayName: "ModalTitlestyles__TitleContainer",
5
5
  componentId: "sc-hnk65g-0"
@@ -14,9 +14,23 @@ export var ActionButtons = styled.div.withConfig({
14
14
  displayName: "ModalTitlestyles__ActionButtons",
15
15
  componentId: "sc-hnk65g-2"
16
16
  })(["display:flex;flex-direction:row;align-items:center;.ant-btn{margin:0 4px;}.close-modal{padding:0;display:flex;align-items:center;justify-content:center;margin-right:0;}"]);
17
+ export var BottomBar = styled.div.withConfig({
18
+ displayName: "ModalTitlestyles__BottomBar",
19
+ componentId: "sc-hnk65g-3"
20
+ })(["border-bottom:1px solid ", ";"], function (props) {
21
+ return props.theme.palette['grey-100'];
22
+ });
23
+ export var ModalTitleWrapper = styled.div.withConfig({
24
+ displayName: "ModalTitlestyles__ModalTitleWrapper",
25
+ componentId: "sc-hnk65g-4"
26
+ })(["padding:", ";font-size:18px;line-height:32px;border-bottom:1px solid ", ";"], function (props) {
27
+ return props.withDescription ? '20px 24px 12px' : '20px 24px';
28
+ }, function (props) {
29
+ return props.theme.palette['grey-100'];
30
+ });
17
31
  export var Description = styled.div.withConfig({
18
32
  displayName: "ModalTitlestyles__Description",
19
- componentId: "sc-hnk65g-3"
33
+ componentId: "sc-hnk65g-5"
20
34
  })(["font-size:13px;font-weight:normal;line-height:18px;color:", ";display:block;padding:12px 0 0;margin:14px 0 0;background-image:linear-gradient( to right,", " 33%,rgba(255,255,255,0) 0% );background-repeat:repeat-x;background-size:4px 1px;background-position:top;"], function (props) {
21
35
  return props.theme.palette['grey-600'];
22
36
  }, function (props) {
package/dist/Modal.js CHANGED
@@ -1,10 +1,10 @@
1
- var _excluded = ["texts", "bodyBackground", "headerActions", "title", "description", "size", "blank", "settingButtonText", "titleContainerStyle"];
1
+ var _excluded = ["texts", "bodyBackground", "headerActions", "title", "description", "headerBottomBar", "size", "blank", "titleContainerStyle", "maxViewportHeight", "children"];
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
- import React from 'react';
4
+ import React, { useRef } from 'react';
5
5
  import classnames from 'classnames';
6
- import '@synerise/ds-core/dist/js/style';
7
6
  import { Modal as AntModal } from 'antd';
7
+ import '@synerise/ds-core/dist/js/style';
8
8
  import { ModalFooter } from './Elements/ModalFooter';
9
9
  import { ModalTitle } from './Elements/ModalTitle';
10
10
  import "./style/index.css";
@@ -29,25 +29,43 @@ export var Modal = function Modal(props) {
29
29
  headerActions = props.headerActions,
30
30
  title = props.title,
31
31
  description = props.description,
32
+ headerBottomBar = props.headerBottomBar,
32
33
  size = props.size,
33
34
  blank = props.blank,
34
- settingButtonText = props.settingButtonText,
35
35
  titleContainerStyle = props.titleContainerStyle,
36
+ maxViewportHeight = props.maxViewportHeight,
37
+ children = props.children,
36
38
  antModalProps = _objectWithoutPropertiesLoose(props, _excluded);
37
39
  var className = classnames("bodybg-" + bodyBackground, antModalProps.className, {
38
40
  'modal-blank': Boolean(blank)
39
41
  }, {
40
42
  'with-description': Boolean(description)
41
43
  });
44
+ var mainSlideRef = useRef(null);
45
+ var DEFAULT_VIEWPORT_HEIGHT = 80;
46
+ var maxHeight = function maxHeight() {
47
+ if (maxViewportHeight !== undefined) {
48
+ if (typeof maxViewportHeight === 'number') {
49
+ return maxViewportHeight;
50
+ }
51
+ return DEFAULT_VIEWPORT_HEIGHT;
52
+ }
53
+ return undefined;
54
+ };
42
55
  var isFullscreen = size === 'fullScreen';
43
56
  return /*#__PURE__*/React.createElement(S.AntdModal, _extends({}, antModalProps, {
57
+ maxHeight: maxHeight(),
44
58
  className: className,
45
59
  isFullscreen: isFullscreen,
46
60
  width: size && mapSizeToWidth[size],
47
61
  closable: false,
48
- title: (title || description || blank) && /*#__PURE__*/React.createElement(ModalTitle, props),
62
+ title: (title || description || blank || headerBottomBar) && /*#__PURE__*/React.createElement(ModalTitle, props),
49
63
  footer: antModalProps.footer !== null ? antModalProps.footer || /*#__PURE__*/React.createElement(ModalFooter, props) : null
50
- }));
64
+ }), maxHeight() ? /*#__PURE__*/React.createElement(S.ModalWrapper, {
65
+ ref: mainSlideRef
66
+ }, /*#__PURE__*/React.createElement(S.Scrollbar, {
67
+ absolute: true
68
+ }, children)) : children);
51
69
  };
52
70
  Modal.info = AntModal.info;
53
71
  Modal.success = AntModal.success;
@@ -1,10 +1,13 @@
1
1
  /// <reference types="react" />
2
2
  export declare const SettingButton: import("styled-components").StyledComponent<"div", any, {}, never>;
3
3
  export declare const ButtonsWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
4
+ export declare const Scrollbar: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<(import("@synerise/ds-scrollbar").ScrollbarProps | import("@synerise/ds-scrollbar").VirtualScrollbarProps) & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
4
5
  export declare const AntdModal: import("styled-components").StyledComponent<import("react").FC<import("antd/lib/modal").ModalProps> & import("antd/lib/modal/confirm").ModalStaticFunctions & {
5
6
  useModal: typeof import("antd/lib/modal/useModal").default;
6
7
  destroyAll: () => void;
7
8
  config: typeof import("antd/lib/modal/confirm").modalGlobalConfig;
8
9
  }, any, {
9
10
  isFullscreen?: boolean | undefined;
11
+ maxHeight?: number | undefined;
10
12
  }, never>;
13
+ export declare const ModalWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,5 +1,6 @@
1
1
  import styled, { css } from 'styled-components';
2
2
  import Modal from 'antd/lib/modal';
3
+ import ScrollbarBase from '@synerise/ds-scrollbar';
3
4
  export var SettingButton = styled.div.withConfig({
4
5
  displayName: "Modalstyles__SettingButton",
5
6
  componentId: "sc-jdspxw-0"
@@ -8,9 +9,19 @@ export var ButtonsWrapper = styled.div.withConfig({
8
9
  displayName: "Modalstyles__ButtonsWrapper",
9
10
  componentId: "sc-jdspxw-1"
10
11
  })(["display:flex;"]);
12
+ export var Scrollbar = styled(ScrollbarBase).withConfig({
13
+ displayName: "Modalstyles__Scrollbar",
14
+ componentId: "sc-jdspxw-2"
15
+ })(["display:flex;flex-direction:column;min-height:0;.scrollbar-container{min-height:0;}"]);
11
16
  export var AntdModal = styled(Modal).withConfig({
12
17
  displayName: "Modalstyles__AntdModal",
13
- componentId: "sc-jdspxw-2"
14
- })(["", ""], function (props) {
18
+ componentId: "sc-jdspxw-3"
19
+ })(["", " ", ""], function (props) {
15
20
  return props.isFullscreen && css(["&&{position:fixed;top:0;left:0;right:0;bottom:0;margin:0;max-width:none;padding:0;.ant-modal-content{display:flex;flex-direction:column;height:100%;}.ant-modal-body{flex:1 1 100%;overflow:scroll;}}"]);
16
- });
21
+ }, function (props) {
22
+ return props.maxHeight && css(["&&{position:fixed;left:50%;bottom:0;translate:-50%;.ant-modal-content{max-height:", "vh;display:flex;flex-direction:column;}.ant-modal-body{flex:1 1 100%;overflow:scroll;padding-right:0px;display:flex;flex-direction:column;min-height:0;}}"], props.maxHeight);
23
+ });
24
+ export var ModalWrapper = styled.div.withConfig({
25
+ displayName: "Modalstyles__ModalWrapper",
26
+ componentId: "sc-jdspxw-4"
27
+ })(["position:relative;height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden;"]);
@@ -3,18 +3,19 @@ import { ButtonProps } from '@synerise/ds-button';
3
3
  import { ModalProps as AntdModalProps } from 'antd/lib/modal';
4
4
  export type Props = ModalProps;
5
5
  export type ModalProps = {
6
- description?: string;
6
+ description?: ReactNode;
7
+ headerBottomBar?: ReactNode;
7
8
  headerActions?: ReactNode;
8
9
  size?: 'small' | 'medium' | 'large' | 'extraLarge' | 'fullSize' | 'fullScreen';
9
10
  bodyBackground?: 'white' | 'grey';
10
11
  blank?: boolean;
11
12
  titleContainerStyle?: CSSProperties;
12
- settingButtonText?: string;
13
13
  texts?: {
14
- okButton?: string;
15
- cancelButton?: string;
14
+ okButton?: ReactNode;
15
+ cancelButton?: ReactNode;
16
16
  };
17
17
  children?: ReactNode;
18
+ maxViewportHeight?: true | number;
18
19
  } & AntdModalProps & ModalFooterBuilder;
19
20
  export type ModalFooterBuilder = {
20
21
  prefix?: ReactNode;
@@ -1 +1 @@
1
- .ant-modal{box-sizing:border-box;margin:0;padding:0;color:#6a7580;font-size:13px;font-variant:tabular-nums;line-height:1.38;list-style:none;font-feature-settings:'tnum';pointer-events:none;position:relative;top:100px;width:auto;max-width:calc(100vw - 32px);margin:0 auto;padding-bottom:24px}.ant-modal.ant-zoom-appear,.ant-modal.ant-zoom-enter{transform:none;opacity:0;animation-duration:.3s;user-select:none}.ant-modal-mask{position:fixed;top:0;right:0;bottom:0;left:0;z-index:991000;height:100%;background-color:rgba(0,0,0,.2)}.ant-modal-mask-hidden{display:none}.ant-modal-wrap{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;outline:0}.ant-modal-wrap{z-index:991000}.ant-modal-title{margin:0;color:#384350;font-weight:500;font-size:13px;line-height:22px;word-wrap:break-word}.ant-modal-content{position:relative;background-color:#fff;background-clip:padding-box;border:0;border-radius:3px;box-shadow:0 2px 6px rgba(171,178,183,.12);pointer-events:auto}.ant-modal-close{position:absolute;top:0;right:0;z-index:10;padding:0;color:#232936;font-weight:700;line-height:1;text-decoration:none;background:0 0;border:0;outline:0;cursor:pointer;transition:color .3s}.ant-modal-close-x{display:block;width:54px;height:54px;font-size:13px;font-style:normal;line-height:54px;text-align:center;text-transform:none;text-rendering:auto}.ant-modal-close:focus,.ant-modal-close:hover{color:rgba(0,0,0,.75);text-decoration:none}.ant-modal-header{padding:16px 32px;color:#6a7580;background:#fff;border-bottom:1px solid #e9edee;border-radius:3px 3px 0 0}.ant-modal-body{padding:32px;font-size:13px;line-height:1.38;word-wrap:break-word}.ant-modal-footer{padding:10px 16px;text-align:right;background:0 0;border-top:1px solid #e9edee;border-radius:0 0 3px 3px}.ant-modal-footer .ant-btn+.ant-btn:not(.ant-dropdown-trigger){margin-bottom:0;margin-left:8px}.ant-modal-open{overflow:hidden}.ant-modal-centered{text-align:center}.ant-modal-centered::before{display:inline-block;width:0;height:100%;vertical-align:middle;content:''}.ant-modal-centered .ant-modal{top:0;display:inline-block;padding-bottom:0;text-align:left;vertical-align:middle}@media (max-width:767px){.ant-modal{max-width:calc(100vw - 16px);margin:8px auto}.ant-modal-centered .ant-modal{flex:1}}.ant-modal-confirm .ant-modal-header{display:none}.ant-modal-confirm .ant-modal-body{padding:32px 32px 24px}.ant-modal-confirm-body-wrapper::before{display:table;content:''}.ant-modal-confirm-body-wrapper::after{display:table;clear:both;content:''}.ant-modal-confirm-body .ant-modal-confirm-title{display:block;overflow:hidden;color:#384350;font-weight:500;font-size:13px;line-height:1.4}.ant-modal-confirm-body .ant-modal-confirm-content{margin-top:8px;color:#6a7580;font-size:13px}.ant-modal-confirm-body>.anticon{float:left;margin-right:16px;font-size:22px}.ant-modal-confirm-body>.anticon+.ant-modal-confirm-title+.ant-modal-confirm-content{margin-left:38px}.ant-modal-confirm .ant-modal-confirm-btns{margin-top:24px;text-align:right}.ant-modal-confirm .ant-modal-confirm-btns .ant-btn+.ant-btn{margin-bottom:0;margin-left:8px}.ant-modal-confirm-error .ant-modal-confirm-body>.anticon{color:#f52922}.ant-modal-confirm-confirm .ant-modal-confirm-body>.anticon,.ant-modal-confirm-warning .ant-modal-confirm-body>.anticon{color:#fab700}.ant-modal-confirm-info .ant-modal-confirm-body>.anticon{color:#0b68ff}.ant-modal-confirm-success .ant-modal-confirm-body>.anticon{color:#54cb0b}.ant-modal-confirm .ant-zoom-leave .ant-modal-confirm-btns{pointer-events:none}.ant-modal-wrap-rtl{direction:rtl}.ant-modal-wrap-rtl .ant-modal-close{right:initial;left:0}.ant-modal-wrap-rtl .ant-modal-footer{text-align:left}.ant-modal-wrap-rtl .ant-modal-footer .ant-btn+.ant-btn{margin-right:8px;margin-left:0}.ant-modal-wrap-rtl .ant-modal-confirm-body{direction:rtl}.ant-modal-wrap-rtl .ant-modal-confirm-body>.anticon{float:right;margin-right:0;margin-left:16px}.ant-modal-wrap-rtl .ant-modal-confirm-body>.anticon+.ant-modal-confirm-title+.ant-modal-confirm-content{margin-right:38px;margin-left:0}.ant-modal-wrap-rtl .ant-modal-confirm-btns{text-align:left}.ant-modal-wrap-rtl .ant-modal-confirm-btns .ant-btn+.ant-btn{margin-right:8px;margin-left:0}.ant-modal-wrap-rtl.ant-modal-centered .ant-modal{text-align:right}.ant-modal{transform-origin:center!important}.ant-modal.with-description .ant-modal-header{padding:20px 24px 12px}.ant-modal-title{margin:0;font-size:18px;line-height:32px;font-weight:500;color:#384350}.ant-modal-content{position:relative;background-color:#fff;border:0;border-radius:3px;background-clip:padding-box;box-shadow:0 8px 16px rgba(171,178,183,.32)}.ant-modal-mask.ant-modal-mask{background-color:rgba(56,67,80,.2);filter:alpha(opacity=20)}.ant-modal-close{color:#6a7580;height:72px}.ant-modal-close:focus,.ant-modal-close:hover{color:#384350}.ant-modal-header.ant-modal-header{padding:20px 24px;background:#fff;color:#6a7580;border-bottom:1px solid #f3f5f6}.ant-modal-header .close-modal{height:32px;width:32px;margin:0 0 0 4px;text-align:center;padding:0!important;line-height:34px;display:flex!important;justify-content:center;align-items:center}.ant-modal-header .close-modal i{font-size:15px}.ant-modal-body.ant-modal-body{padding:24px;font-size:13px;line-height:1.38}.ant-modal-footer.ant-modal-footer{min-height:81px;background-color:#f9fafb;padding:24px 24px;border-top:1px solid #f3f5f6}.ant-modal-footer button+button{margin-left:8px;margin-bottom:0}.ant-modal.ant-modal.bodybg-grey .ant-modal-body{background-color:#f9fafb}.ant-modal.modal-blank .ant-modal-header{border:0;padding:0}.ant-modal.modal-blank .ant-modal-header .close-modal{position:absolute;top:20px;right:24px;z-index:1;margin:0}
1
+ .ant-modal{box-sizing:border-box;margin:0;padding:0;color:#6a7580;font-size:13px;font-variant:tabular-nums;line-height:1.38;list-style:none;font-feature-settings:'tnum';pointer-events:none;position:relative;top:100px;width:auto;max-width:calc(100vw - 32px);margin:0 auto;padding-bottom:24px}.ant-modal.ant-zoom-appear,.ant-modal.ant-zoom-enter{transform:none;opacity:0;animation-duration:.3s;user-select:none}.ant-modal-mask{position:fixed;top:0;right:0;bottom:0;left:0;z-index:991000;height:100%;background-color:rgba(0,0,0,.2)}.ant-modal-mask-hidden{display:none}.ant-modal-wrap{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;outline:0}.ant-modal-wrap{z-index:991000}.ant-modal-title{margin:0;color:#384350;font-weight:500;font-size:13px;line-height:22px;word-wrap:break-word}.ant-modal-content{position:relative;background-color:#fff;background-clip:padding-box;border:0;border-radius:3px;box-shadow:0 2px 6px rgba(171,178,183,.12);pointer-events:auto}.ant-modal-close{position:absolute;top:0;right:0;z-index:10;padding:0;color:#232936;font-weight:700;line-height:1;text-decoration:none;background:0 0;border:0;outline:0;cursor:pointer;transition:color .3s}.ant-modal-close-x{display:block;width:54px;height:54px;font-size:13px;font-style:normal;line-height:54px;text-align:center;text-transform:none;text-rendering:auto}.ant-modal-close:focus,.ant-modal-close:hover{color:rgba(0,0,0,.75);text-decoration:none}.ant-modal-header{padding:16px 32px;color:#6a7580;background:#fff;border-bottom:1px solid #e9edee;border-radius:3px 3px 0 0}.ant-modal-body{padding:32px;font-size:13px;line-height:1.38;word-wrap:break-word}.ant-modal-footer{padding:10px 16px;text-align:right;background:0 0;border-top:1px solid #e9edee;border-radius:0 0 3px 3px}.ant-modal-footer .ant-btn+.ant-btn:not(.ant-dropdown-trigger){margin-bottom:0;margin-left:8px}.ant-modal-open{overflow:hidden}.ant-modal-centered{text-align:center}.ant-modal-centered::before{display:inline-block;width:0;height:100%;vertical-align:middle;content:''}.ant-modal-centered .ant-modal{top:0;display:inline-block;padding-bottom:0;text-align:left;vertical-align:middle}@media (max-width:767px){.ant-modal{max-width:calc(100vw - 16px);margin:8px auto}.ant-modal-centered .ant-modal{flex:1}}.ant-modal-confirm .ant-modal-header{display:none}.ant-modal-confirm .ant-modal-body{padding:32px 32px 24px}.ant-modal-confirm-body-wrapper::before{display:table;content:''}.ant-modal-confirm-body-wrapper::after{display:table;clear:both;content:''}.ant-modal-confirm-body .ant-modal-confirm-title{display:block;overflow:hidden;color:#384350;font-weight:500;font-size:13px;line-height:1.4}.ant-modal-confirm-body .ant-modal-confirm-content{margin-top:8px;color:#6a7580;font-size:13px}.ant-modal-confirm-body>.anticon{float:left;margin-right:16px;font-size:22px}.ant-modal-confirm-body>.anticon+.ant-modal-confirm-title+.ant-modal-confirm-content{margin-left:38px}.ant-modal-confirm .ant-modal-confirm-btns{margin-top:24px;text-align:right}.ant-modal-confirm .ant-modal-confirm-btns .ant-btn+.ant-btn{margin-bottom:0;margin-left:8px}.ant-modal-confirm-error .ant-modal-confirm-body>.anticon{color:#f52922}.ant-modal-confirm-confirm .ant-modal-confirm-body>.anticon,.ant-modal-confirm-warning .ant-modal-confirm-body>.anticon{color:#fab700}.ant-modal-confirm-info .ant-modal-confirm-body>.anticon{color:#0b68ff}.ant-modal-confirm-success .ant-modal-confirm-body>.anticon{color:#54cb0b}.ant-modal-confirm .ant-zoom-leave .ant-modal-confirm-btns{pointer-events:none}.ant-modal-wrap-rtl{direction:rtl}.ant-modal-wrap-rtl .ant-modal-close{right:initial;left:0}.ant-modal-wrap-rtl .ant-modal-footer{text-align:left}.ant-modal-wrap-rtl .ant-modal-footer .ant-btn+.ant-btn{margin-right:8px;margin-left:0}.ant-modal-wrap-rtl .ant-modal-confirm-body{direction:rtl}.ant-modal-wrap-rtl .ant-modal-confirm-body>.anticon{float:right;margin-right:0;margin-left:16px}.ant-modal-wrap-rtl .ant-modal-confirm-body>.anticon+.ant-modal-confirm-title+.ant-modal-confirm-content{margin-right:38px;margin-left:0}.ant-modal-wrap-rtl .ant-modal-confirm-btns{text-align:left}.ant-modal-wrap-rtl .ant-modal-confirm-btns .ant-btn+.ant-btn{margin-right:8px;margin-left:0}.ant-modal-wrap-rtl.ant-modal-centered .ant-modal{text-align:right}.ant-modal{transform-origin:center!important}.ant-modal-title{margin:0;font-weight:500;color:#384350}.ant-modal-content{position:relative;background-color:#fff;border:0;border-radius:3px;background-clip:padding-box;box-shadow:0 8px 16px rgba(171,178,183,.32)}.ant-modal-mask.ant-modal-mask{background-color:rgba(56,67,80,.2)}.ant-modal-close{color:#6a7580;height:32px}.ant-modal-close:focus,.ant-modal-close:hover{color:#384350}.ant-modal-header.ant-modal-header{padding:0;background:#fff;color:#6a7580;border-bottom:0}.ant-modal-header .close-modal{height:32px;width:32px;margin:0 0 0 4px;text-align:center;padding:0!important;line-height:34px;display:flex!important;justify-content:center;align-items:center}.ant-modal-header .close-modal i{font-size:15px}.ant-modal-body.ant-modal-body{padding:24px;font-size:13px;line-height:1.38}.ant-modal-footer.ant-modal-footer{min-height:81px;background-color:#f9fafb;padding:24px 24px;border-top:1px solid #f3f5f6}.ant-modal-footer button+button{margin-left:8px;margin-bottom:0}.ant-modal.ant-modal.bodybg-grey .ant-modal-body{background-color:#f9fafb}.ant-modal.modal-blank .ant-modal-header{border:0;padding:0}.ant-modal.modal-blank .ant-modal-header .close-modal{position:absolute;top:20px;right:24px;z-index:1;margin:0}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-modal",
3
- "version": "1.1.4",
3
+ "version": "1.2.0",
4
4
  "description": "Modal UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "synerise/synerise-design",
@@ -34,10 +34,11 @@
34
34
  ],
35
35
  "types": "dist/index.d.ts",
36
36
  "dependencies": {
37
- "@synerise/ds-button": "^1.3.3",
38
- "@synerise/ds-icon": "^1.5.2",
39
- "@synerise/ds-typography": "^1.0.10",
40
- "@synerise/ds-utils": "^1.2.0",
37
+ "@synerise/ds-button": "^1.4.0",
38
+ "@synerise/ds-icon": "^1.5.3",
39
+ "@synerise/ds-scrollbar": "^1.1.0",
40
+ "@synerise/ds-typography": "^1.0.11",
41
+ "@synerise/ds-utils": "^1.3.0",
41
42
  "classnames": "2.3.2"
42
43
  },
43
44
  "peerDependencies": {
@@ -46,5 +47,5 @@
46
47
  "react": ">=16.9.0 <= 18.3.1",
47
48
  "styled-components": "^5.3.3"
48
49
  },
49
- "gitHead": "93bc81d59d20bc8f3bc80c5d56ae7f7c0838380d"
50
+ "gitHead": "f2713cd35cfe22f63a159f05144585834897a132"
50
51
  }