@synerise/ds-modal 1.1.5 → 1.2.1
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 +19 -0
- package/README.md +5 -4
- package/dist/Elements/ModalTitle/ModalTitle.d.ts +2 -2
- package/dist/Elements/ModalTitle/ModalTitle.js +6 -3
- package/dist/Elements/ModalTitle/ModalTitle.styles.d.ts +4 -0
- package/dist/Elements/ModalTitle/ModalTitle.styles.js +16 -2
- package/dist/Modal.js +6 -11
- package/dist/Modal.styles.d.ts +1 -0
- package/dist/Modal.styles.js +8 -3
- package/dist/Modal.types.d.ts +4 -4
- package/dist/style/index.css +1 -1
- package/package.json +7 -7
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
|
+
## [1.2.1](https://github.com/synerise/synerise-design/compare/@synerise/ds-modal@1.2.0...@synerise/ds-modal@1.2.1) (2025-06-26)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-modal
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [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)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **factors:** array factor type ([195d328](https://github.com/synerise/synerise-design/commit/195d3286e98b5f07fc9c1e56001e6ae844b7a080))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [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)
|
|
7
26
|
|
|
8
27
|
|
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 |
|
|
33
|
-
| ------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- | ----------------------------------------------- |
|
|
34
|
-
| description | The modal dialog's description |
|
|
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,7 +67,7 @@ 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 | {} |
|
|
69
|
-
| maxHeightViewport | height of modal with with scrollbar | true / number
|
|
70
|
+
| maxHeightViewport | height of modal with with scrollbar | true / number | 80 |
|
|
70
71
|
|
|
71
72
|
|
|
72
73
|
|
|
@@ -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.
|
|
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-
|
|
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,12 +1,10 @@
|
|
|
1
|
-
var _excluded = ["texts", "bodyBackground", "headerActions", "title", "description", "
|
|
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
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';
|
|
8
|
-
import
|
|
9
|
-
import { useResizeObserver } from '@synerise/ds-utils';
|
|
7
|
+
import '@synerise/ds-core/dist/js/style';
|
|
10
8
|
import { ModalFooter } from './Elements/ModalFooter';
|
|
11
9
|
import { ModalTitle } from './Elements/ModalTitle';
|
|
12
10
|
import "./style/index.css";
|
|
@@ -31,9 +29,9 @@ export var Modal = function Modal(props) {
|
|
|
31
29
|
headerActions = props.headerActions,
|
|
32
30
|
title = props.title,
|
|
33
31
|
description = props.description,
|
|
32
|
+
headerBottomBar = props.headerBottomBar,
|
|
34
33
|
size = props.size,
|
|
35
34
|
blank = props.blank,
|
|
36
|
-
settingButtonText = props.settingButtonText,
|
|
37
35
|
titleContainerStyle = props.titleContainerStyle,
|
|
38
36
|
maxViewportHeight = props.maxViewportHeight,
|
|
39
37
|
children = props.children,
|
|
@@ -44,9 +42,6 @@ export var Modal = function Modal(props) {
|
|
|
44
42
|
'with-description': Boolean(description)
|
|
45
43
|
});
|
|
46
44
|
var mainSlideRef = useRef(null);
|
|
47
|
-
var _useResizeObserver = useResizeObserver(mainSlideRef),
|
|
48
|
-
height = _useResizeObserver.height;
|
|
49
|
-
var DEFAULT_HEIGHT = 999999;
|
|
50
45
|
var DEFAULT_VIEWPORT_HEIGHT = 80;
|
|
51
46
|
var maxHeight = function maxHeight() {
|
|
52
47
|
if (maxViewportHeight !== undefined) {
|
|
@@ -64,12 +59,12 @@ export var Modal = function Modal(props) {
|
|
|
64
59
|
isFullscreen: isFullscreen,
|
|
65
60
|
width: size && mapSizeToWidth[size],
|
|
66
61
|
closable: false,
|
|
67
|
-
title: (title || description || blank) && /*#__PURE__*/React.createElement(ModalTitle, props),
|
|
62
|
+
title: (title || description || blank || headerBottomBar) && /*#__PURE__*/React.createElement(ModalTitle, props),
|
|
68
63
|
footer: antModalProps.footer !== null ? antModalProps.footer || /*#__PURE__*/React.createElement(ModalFooter, props) : null
|
|
69
64
|
}), maxHeight() ? /*#__PURE__*/React.createElement(S.ModalWrapper, {
|
|
70
65
|
ref: mainSlideRef
|
|
71
|
-
}, /*#__PURE__*/React.createElement(Scrollbar, {
|
|
72
|
-
|
|
66
|
+
}, /*#__PURE__*/React.createElement(S.Scrollbar, {
|
|
67
|
+
absolute: true
|
|
73
68
|
}, children)) : children);
|
|
74
69
|
};
|
|
75
70
|
Modal.info = AntModal.info;
|
package/dist/Modal.styles.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
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;
|
package/dist/Modal.styles.js
CHANGED
|
@@ -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,15 +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-
|
|
18
|
+
componentId: "sc-jdspxw-3"
|
|
14
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) {
|
|
17
|
-
return props.maxHeight && css(["&&{position:fixed;left:50%;bottom:0;translate:-50%;.ant-modal-content{
|
|
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);
|
|
18
23
|
});
|
|
19
24
|
export var ModalWrapper = styled.div.withConfig({
|
|
20
25
|
displayName: "Modalstyles__ModalWrapper",
|
|
21
|
-
componentId: "sc-jdspxw-
|
|
26
|
+
componentId: "sc-jdspxw-4"
|
|
22
27
|
})(["position:relative;height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden;"]);
|
package/dist/Modal.types.d.ts
CHANGED
|
@@ -3,16 +3,16 @@ 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?:
|
|
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?:
|
|
15
|
-
cancelButton?:
|
|
14
|
+
okButton?: ReactNode;
|
|
15
|
+
cancelButton?: ReactNode;
|
|
16
16
|
};
|
|
17
17
|
children?: ReactNode;
|
|
18
18
|
maxViewportHeight?: true | number;
|
package/dist/style/index.css
CHANGED
|
@@ -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
|
|
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
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Modal UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
],
|
|
35
35
|
"types": "dist/index.d.ts",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@synerise/ds-button": "^1.
|
|
38
|
-
"@synerise/ds-icon": "^1.5.
|
|
39
|
-
"@synerise/ds-scrollbar": "^1.
|
|
40
|
-
"@synerise/ds-typography": "^1.0.
|
|
41
|
-
"@synerise/ds-utils": "^1.
|
|
37
|
+
"@synerise/ds-button": "^1.4.1",
|
|
38
|
+
"@synerise/ds-icon": "^1.5.3",
|
|
39
|
+
"@synerise/ds-scrollbar": "^1.1.1",
|
|
40
|
+
"@synerise/ds-typography": "^1.0.12",
|
|
41
|
+
"@synerise/ds-utils": "^1.3.0",
|
|
42
42
|
"classnames": "2.3.2"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"react": ">=16.9.0 <= 18.3.1",
|
|
48
48
|
"styled-components": "^5.3.3"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "11fe1d29b2ac23e70c3d5e6ce8ae20201a619a34"
|
|
51
51
|
}
|