@secondstaxorg/sscomp 1.9.59 → 1.9.62
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 +189 -122
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2072 -1902
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +88 -21
- package/dist/index.min.js.map +1 -1
- package/package.json +6 -6
- package/types/components/MultipleFileUpload/MultipleFileUpload.d.ts +4 -0
- package/types/components/MultipleFileUpload/style.d.ts +3 -0
- package/types/components/MultipleFileUpload/type.d.ts +44 -0
- package/types/components/index.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@secondstaxorg/sscomp",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.62",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/"
|
|
6
6
|
},
|
|
@@ -54,6 +54,8 @@
|
|
|
54
54
|
"babel-loader": "^8.2.5",
|
|
55
55
|
"chromatic": "^6.19.8",
|
|
56
56
|
"gatsby-plugin-mdx": "^5.11.0",
|
|
57
|
+
"pdfjs-dist": "^3.11.174",
|
|
58
|
+
"react-pdf": "^7.5.1",
|
|
57
59
|
"rollup": "^3.2.3",
|
|
58
60
|
"rollup-plugin-css-only": "^4.3.0",
|
|
59
61
|
"rollup-plugin-dts": "^5.1.1",
|
|
@@ -64,9 +66,7 @@
|
|
|
64
66
|
"storybook": "7.0.22",
|
|
65
67
|
"styled-components": "^5.3.6",
|
|
66
68
|
"typescript": "^4.8.4",
|
|
67
|
-
"webpack": "^5.74.0"
|
|
68
|
-
"pdfjs-dist": "^3.11.174",
|
|
69
|
-
"react-pdf": "^7.5.1"
|
|
69
|
+
"webpack": "^5.74.0"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"@heroicons/react": "^2.0.13",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"@rollup/plugin-sucrase": "^5.0.1",
|
|
76
76
|
"axios": "^1.4.0",
|
|
77
77
|
"chart.js": "^3.9.1",
|
|
78
|
-
"dayjs": "^1.11.
|
|
78
|
+
"dayjs": "^1.11.10",
|
|
79
79
|
"gh-pages": "^4.0.0",
|
|
80
80
|
"heroicons": "^2.0.12",
|
|
81
81
|
"postcss": "^8.4.21",
|
|
@@ -91,9 +91,9 @@
|
|
|
91
91
|
},
|
|
92
92
|
"peerDependencies": {
|
|
93
93
|
"pdfjs-dist": "^3.11.174",
|
|
94
|
-
"react-pdf": "^7.5.1",
|
|
95
94
|
"react": "^18.2.0",
|
|
96
95
|
"react-dom": "^18.2.0",
|
|
96
|
+
"react-pdf": "^7.5.1",
|
|
97
97
|
"styled-components": "^5.3.6"
|
|
98
98
|
},
|
|
99
99
|
"bugs": {
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const ComponentContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const SelectorField: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const FilesList: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export interface MultipleFileUploadProps {
|
|
2
|
+
/**
|
|
3
|
+
* Label for the field
|
|
4
|
+
**/
|
|
5
|
+
label?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Specify if the field is required
|
|
8
|
+
**/
|
|
9
|
+
required?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Selected file for the field
|
|
12
|
+
**/
|
|
13
|
+
value?: File[];
|
|
14
|
+
/**
|
|
15
|
+
* Callback function to receive the selected files
|
|
16
|
+
**/
|
|
17
|
+
onChange: (a: any) => void;
|
|
18
|
+
/**
|
|
19
|
+
* Specify the accepted file type using standard html values for the 'accept' prop. Eg. **'image/jpeg'** or **'.jpg'** or **'.jpg,.docx,.pptx'**
|
|
20
|
+
**/
|
|
21
|
+
accept?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Maximum file size acceptable in Kilobytes
|
|
24
|
+
**/
|
|
25
|
+
maxFileSize?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Manually specify the label for the accepted files in your own words
|
|
28
|
+
**/
|
|
29
|
+
customAcceptedFilesLabel?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Specify custom label for text displayed throughout component
|
|
32
|
+
*/
|
|
33
|
+
labelOverrides?: {
|
|
34
|
+
requiredField?: string;
|
|
35
|
+
maxSize?: string;
|
|
36
|
+
selectFile?: string;
|
|
37
|
+
removeFile?: string;
|
|
38
|
+
fileSizeErrMsg?: string;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* If true, the "select file" button will be merged into the field
|
|
42
|
+
*/
|
|
43
|
+
consolidateButton?: boolean;
|
|
44
|
+
}
|
|
@@ -81,3 +81,4 @@ export { default as LineChart } from './LineChart/LineChart';
|
|
|
81
81
|
export { default as ProgressBar } from './ProgressBar/ProgressBar';
|
|
82
82
|
export { default as DoughnutChart } from './DoughnutChart/DoughnutChart';
|
|
83
83
|
export { default as DetailField } from './DetailField/DetailField';
|
|
84
|
+
export { default as MultipleFileUpload } from './MultipleFileUpload/MultipleFileUpload';
|