@synerise/ds-modal 1.2.1 → 1.2.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 +404 -1347
- package/README.md +0 -2
- package/dist/Elements/ModalFooter/ModalFooter.d.ts +1 -1
- package/dist/Elements/ModalTitle/ModalTitle.d.ts +1 -1
- package/dist/Modal.d.ts +1 -1
- package/dist/Modal.js +3 -3
- package/dist/Modal.styles.js +1 -1
- package/dist/Modal.types.d.ts +2 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +2 -3
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -69,8 +69,6 @@ Some features of the Modal component have been deprecated. Please refer to the [
|
|
|
69
69
|
| maskStyle | Style for modal's mask element. | object | {} |
|
|
70
70
|
| maxHeightViewport | height of modal with with scrollbar | true / number | 80 |
|
|
71
71
|
|
|
72
|
-
|
|
73
|
-
|
|
74
72
|
and it is extended by props for ModalFooterBuilder:
|
|
75
73
|
|
|
76
74
|
| Property | Description | Type | Default | Version |
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ModalProps } from '../../Modal.types';
|
|
2
|
+
import { type ModalProps } from '../../Modal.types';
|
|
3
3
|
export type ModalFooterProps = Pick<ModalProps, 'prefix' | 'infix' | 'suffix' | 'okButton' | 'cancelButton' | 'CustomFooterButton' | 'DSButton' | 'texts' | 'onOk' | 'onCancel' | 'cancelText' | 'okText' | 'cancelButtonProps' | 'okType' | 'okButtonProps'>;
|
|
4
4
|
export declare const ModalFooter: ({ CustomFooterButton, DSButton, prefix, infix, suffix, ...antModalProps }: ModalFooterProps) => React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ModalProps } from '../../Modal.types';
|
|
2
|
+
import { type ModalProps } from '../../Modal.types';
|
|
3
3
|
type ModalTitleProps = Pick<ModalProps, 'headerActions' | 'onCancel' | 'titleContainerStyle' | 'blank' | 'description' | 'title' | 'headerBottomBar'>;
|
|
4
4
|
export declare const ModalTitle: ({ headerActions, blank, titleContainerStyle, onCancel, title, description, headerBottomBar, }: ModalTitleProps) => React.JSX.Element;
|
|
5
5
|
export {};
|
package/dist/Modal.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import '@synerise/ds-core/dist/js/style';
|
|
3
|
-
import { ModalFooterProps } from './Elements/ModalFooter';
|
|
3
|
+
import { type ModalFooterProps } from './Elements/ModalFooter';
|
|
4
4
|
import type { ModalProps } from './Modal.types';
|
|
5
5
|
import './style/index.less';
|
|
6
6
|
/** @deprecated */
|
package/dist/Modal.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
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, { useRef } from 'react';
|
|
5
|
-
import classnames from 'classnames';
|
|
6
4
|
import { Modal as AntModal } from 'antd';
|
|
5
|
+
import classnames from 'classnames';
|
|
6
|
+
import React, { useRef } from 'react';
|
|
7
7
|
import '@synerise/ds-core/dist/js/style';
|
|
8
8
|
import { ModalFooter } from './Elements/ModalFooter';
|
|
9
9
|
import { ModalTitle } from './Elements/ModalTitle';
|
|
10
|
-
import "./style/index.css";
|
|
11
10
|
import * as S from './Modal.styles';
|
|
11
|
+
import "./style/index.css";
|
|
12
12
|
var mapSizeToWidth = {
|
|
13
13
|
small: 520,
|
|
14
14
|
medium: 792,
|
package/dist/Modal.styles.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import styled, { css } from 'styled-components';
|
|
2
1
|
import Modal from 'antd/lib/modal';
|
|
2
|
+
import styled, { css } from 'styled-components';
|
|
3
3
|
import ScrollbarBase from '@synerise/ds-scrollbar';
|
|
4
4
|
export var SettingButton = styled.div.withConfig({
|
|
5
5
|
displayName: "Modalstyles__SettingButton",
|
package/dist/Modal.types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { type ModalProps as AntdModalProps } from 'antd/lib/modal';
|
|
1
2
|
import type { CSSProperties, ComponentType, ReactNode } from 'react';
|
|
2
|
-
import { ButtonProps } from '@synerise/ds-button';
|
|
3
|
-
import { ModalProps as AntdModalProps } from 'antd/lib/modal';
|
|
3
|
+
import { type ButtonProps } from '@synerise/ds-button';
|
|
4
4
|
export type Props = ModalProps;
|
|
5
5
|
export type ModalProps = {
|
|
6
6
|
description?: ReactNode;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { default, buildModalFooter } from './Modal';
|
|
2
|
-
export { ModalTitle } from './Elements/ModalTitle';
|
|
2
|
+
export { ModalTitle, TitleContainer } from './Elements/ModalTitle';
|
|
3
3
|
export { ModalFooter } from './Elements/ModalFooter';
|
|
4
|
-
export { TitleContainer } from './Elements/ModalTitle';
|
|
5
4
|
export type { Props, ModalProps } from './Modal.types';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export { default, buildModalFooter } from './Modal';
|
|
2
|
-
export { ModalTitle } from './Elements/ModalTitle';
|
|
3
|
-
export { ModalFooter } from './Elements/ModalFooter';
|
|
4
|
-
export { TitleContainer } from './Elements/ModalTitle';
|
|
2
|
+
export { ModalTitle, TitleContainer } from './Elements/ModalTitle';
|
|
3
|
+
export { ModalFooter } from './Elements/ModalFooter';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-modal",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "Modal UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
],
|
|
35
35
|
"types": "dist/index.d.ts",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@synerise/ds-button": "^1.4.
|
|
38
|
-
"@synerise/ds-icon": "^1.5.
|
|
39
|
-
"@synerise/ds-scrollbar": "^1.1.
|
|
40
|
-
"@synerise/ds-typography": "^1.0.
|
|
41
|
-
"@synerise/ds-utils": "^1.3.
|
|
42
|
-
"classnames": "2.
|
|
37
|
+
"@synerise/ds-button": "^1.4.3",
|
|
38
|
+
"@synerise/ds-icon": "^1.5.4",
|
|
39
|
+
"@synerise/ds-scrollbar": "^1.1.2",
|
|
40
|
+
"@synerise/ds-typography": "^1.0.14",
|
|
41
|
+
"@synerise/ds-utils": "^1.3.1",
|
|
42
|
+
"classnames": "^2.5.1"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@synerise/ds-core": "*",
|
|
@@ -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": "8db1900bf3f7b0782c834ff82f628199530cd934"
|
|
51
51
|
}
|