@secondstaxorg/sscomp 2.0.64 → 2.0.66
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/dist/index.es.js +3 -4
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +25 -15
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +3 -4
- package/dist/index.min.js.map +1 -1
- package/package.json +3 -4
- package/types/components/PopupModal/type.d.ts +8 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@secondstaxorg/sscomp",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.66",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/"
|
|
6
6
|
},
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"tippy.js": "^6.3.7"
|
|
99
99
|
},
|
|
100
100
|
"peerDependencies": {
|
|
101
|
-
"pdfjs-dist": "^
|
|
101
|
+
"pdfjs-dist": "^4.4.168",
|
|
102
102
|
"react": "^18.2.0",
|
|
103
103
|
"react-dom": "^18.2.0",
|
|
104
104
|
"react-pdf": "^7.5.1",
|
|
@@ -109,6 +109,5 @@
|
|
|
109
109
|
},
|
|
110
110
|
"readme": "ERROR: No README data found!",
|
|
111
111
|
"homepage": "https://github.com/Secondstax/sscomp#readme",
|
|
112
|
-
"_id": "@secondstaxorg/sscomp@1.6.26"
|
|
113
|
-
"packageManager": "yarn@4.5.3"
|
|
112
|
+
"_id": "@secondstaxorg/sscomp@1.6.26"
|
|
114
113
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
export interface PopupModalProps {
|
|
2
3
|
/**
|
|
3
4
|
* Title of the modal
|
|
@@ -6,15 +7,15 @@ export interface PopupModalProps {
|
|
|
6
7
|
/**
|
|
7
8
|
* Content of the modal
|
|
8
9
|
*/
|
|
9
|
-
content
|
|
10
|
+
content?: string;
|
|
10
11
|
/**
|
|
11
12
|
* Function to be called when the primary button is clicked. The primary button is the one on the right.
|
|
12
13
|
*/
|
|
13
|
-
primaryAction
|
|
14
|
+
primaryAction?: () => void;
|
|
14
15
|
/**
|
|
15
16
|
* Text to be displayed on the primary button
|
|
16
17
|
*/
|
|
17
|
-
primaryBtnText
|
|
18
|
+
primaryBtnText?: string;
|
|
18
19
|
/**
|
|
19
20
|
* Function to be called when the secondary button is clicked. When this prop is not provided, only the primary button is displayed.
|
|
20
21
|
*/
|
|
@@ -31,4 +32,8 @@ export interface PopupModalProps {
|
|
|
31
32
|
* Toggle to show or hide the modal based on boolean value passed to it
|
|
32
33
|
*/
|
|
33
34
|
showModal: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Add custom JSX code to the content area of the modal. If provided, `content`, `primaryAction` and `primaryBtnText` are replaced
|
|
37
|
+
*/
|
|
38
|
+
children?: React.ReactNode;
|
|
34
39
|
}
|