@synerise/ds-modal 0.17.4 → 0.17.6
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.6](https://github.com/synerise/synerise-design/compare/@synerise/ds-modal@0.17.5...@synerise/ds-modal@0.17.6) (2023-10-02)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-modal
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.17.5](https://github.com/synerise/synerise-design/compare/@synerise/ds-modal@0.17.4...@synerise/ds-modal@0.17.5) (2023-09-26)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @synerise/ds-modal
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [0.17.4](https://github.com/synerise/synerise-design/compare/@synerise/ds-modal@0.17.3...@synerise/ds-modal@0.17.4) (2023-09-08)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @synerise/ds-modal
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ModalProps } from '../../Modal.types';
|
|
3
|
-
export
|
|
2
|
+
export type ModalFooterProps = Pick<ModalProps, 'prefix' | 'infix' | 'suffix' | 'okButton' | 'cancelButton' | 'CustomFooterButton' | 'DSButton' | 'texts' | 'onOk' | 'onCancel' | 'cancelText' | 'okText' | 'cancelButtonProps' | 'okType' | 'okButtonProps'>;
|
|
4
3
|
export declare const ModalFooter: ({ CustomFooterButton, DSButton, prefix, infix, suffix, ...antModalProps }: ModalFooterProps) => JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ModalProps } from '../../Modal.types';
|
|
3
|
-
|
|
2
|
+
type ModalTitleProps = Pick<ModalProps, 'headerActions' | 'onCancel' | 'titleContainerStyle' | 'blank' | 'description' | 'title'>;
|
|
4
3
|
export declare const ModalTitle: ({ headerActions, blank, titleContainerStyle, onCancel, title, description, }: ModalTitleProps) => JSX.Element;
|
|
5
4
|
export {};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const TitleContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
-
export declare const Title: import("styled-components").StyledComponent<import("react").FC<
|
|
4
|
-
level?: 3 | 1 | 5 | 2 | 4 | undefined;
|
|
5
|
-
}, "type" | "className" | "id" | "style" | "title" | "aria-label" | "children" | "disabled" | "prefixCls" | "code" | "mark" | "keyboard" | "editable" | "copyable" | "ellipsis" | "underline" | "delete" | "level">>, any, {}, never>;
|
|
3
|
+
export declare const Title: import("styled-components").StyledComponent<import("react").FC<import("antd/lib/typography/Title").TitleProps>, any, {}, never>;
|
|
6
4
|
export declare const ActionButtons: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
5
|
export declare const Description: import("styled-components").StyledComponent<"div", any, {}, never>;
|
package/dist/Modal.d.ts
CHANGED
package/dist/Modal.types.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { CSSProperties, ComponentType, ReactNode } from 'react';
|
|
2
2
|
import { ButtonProps } from '@synerise/ds-button';
|
|
3
3
|
import { ModalProps as AntdModalProps } from 'antd/lib/modal';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type Props = ModalProps;
|
|
5
|
+
export type ModalProps = {
|
|
6
6
|
description?: string;
|
|
7
7
|
headerActions?: ReactNode;
|
|
8
8
|
size?: 'small' | 'medium' | 'large' | 'extraLarge' | 'fullSize';
|
|
@@ -16,7 +16,7 @@ export declare type ModalProps = {
|
|
|
16
16
|
};
|
|
17
17
|
children?: ReactNode;
|
|
18
18
|
} & AntdModalProps & ModalFooterBuilder;
|
|
19
|
-
export
|
|
19
|
+
export type ModalFooterBuilder = {
|
|
20
20
|
prefix?: ReactNode;
|
|
21
21
|
infix?: ReactNode;
|
|
22
22
|
suffix?: ReactNode;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-modal",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.6",
|
|
4
4
|
"description": "Modal UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
],
|
|
33
33
|
"types": "dist/index.d.ts",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@synerise/ds-button": "^0.18.
|
|
36
|
-
"@synerise/ds-icon": "^0.58.
|
|
37
|
-
"@synerise/ds-typography": "^0.
|
|
38
|
-
"classnames": "
|
|
35
|
+
"@synerise/ds-button": "^0.18.3",
|
|
36
|
+
"@synerise/ds-icon": "^0.58.3",
|
|
37
|
+
"@synerise/ds-typography": "^0.13.1",
|
|
38
|
+
"classnames": "2.3.2"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@synerise/ds-core": "*",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"styled-components": "5.0.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@synerise/ds-utils": "^0.24.
|
|
47
|
+
"@synerise/ds-utils": "^0.24.17",
|
|
48
48
|
"@testing-library/react": "10.0.1",
|
|
49
49
|
"@testing-library/user-event": "^10.3.1"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "1c1adf344f447e404a1d6320ad1d3f8486f29f67"
|
|
52
52
|
}
|