cecomponent 1.0.89 → 1.0.91
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/ce-component-lib.css +1 -1
- package/dist/ce-component-lib.js +284 -85
- package/dist/ce-component-lib.mjs +22137 -10933
- package/dist/components/Common/CEChatbox/CEChatbox.d.ts +9 -0
- package/dist/components/Common/CEFileUpload/CEFileUploadDocument.d.ts +8 -0
- package/dist/components/Common/Fileupload/CEFileUploadBasic.d.ts +9 -1
- package/dist/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
interface Note {
|
|
3
|
+
id: number;
|
|
4
|
+
author: string;
|
|
5
|
+
initials: string;
|
|
6
|
+
timestamp: string;
|
|
7
|
+
content: string;
|
|
8
|
+
}
|
|
2
9
|
interface CEChatboxProps {
|
|
10
|
+
notes: Note[];
|
|
11
|
+
onAddNote: (note: string) => void;
|
|
3
12
|
buttonLabel: string;
|
|
4
13
|
buttonIcon?: React.ReactNode;
|
|
5
14
|
}
|
|
@@ -4,9 +4,17 @@ export interface UploadedFile {
|
|
|
4
4
|
type: string;
|
|
5
5
|
uploadDate: string;
|
|
6
6
|
file: File;
|
|
7
|
+
url?: string;
|
|
8
|
+
id?: string;
|
|
9
|
+
path?: string;
|
|
7
10
|
}
|
|
8
11
|
interface CEFileUploadProps {
|
|
9
12
|
onUpload?: (files: UploadedFile[]) => void;
|
|
13
|
+
accept?: string[];
|
|
14
|
+
initialFiles?: UploadedFile[];
|
|
15
|
+
showPathColumn?: boolean;
|
|
16
|
+
onDelete?: (file: UploadedFile) => void;
|
|
17
|
+
onDownload?: (file: UploadedFile) => void;
|
|
10
18
|
}
|
|
11
19
|
declare const CEFileUploadDocument: React.FC<CEFileUploadProps>;
|
|
12
20
|
export default CEFileUploadDocument;
|
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
2
|
+
interface CEFileUploadProps {
|
|
3
|
+
/**
|
|
4
|
+
* List of allowed extensions (with leading dot).
|
|
5
|
+
* Example: ['.csv', '.xlsx', '.pdf']
|
|
6
|
+
* If omitted, defaults to the full supported set.
|
|
7
|
+
*/
|
|
8
|
+
accept?: string[];
|
|
9
|
+
}
|
|
10
|
+
declare const CEFileUpload: React.FC<CEFileUploadProps>;
|
|
3
11
|
export default CEFileUpload;
|
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ export { default as CEDynamicSearchField } from './components/Common/CEFieldComp
|
|
|
7
7
|
export { default as CEDynamicSelectField } from './components/Common/CEFieldComponet/DynamicSelectField/DynamicSelectField';
|
|
8
8
|
export { default as CEDynamicTextField } from './components/Common/CEFieldComponet/DynamicTextField/DynamicTextField';
|
|
9
9
|
export { default as CEUploadModalWrapper } from './components/Common/CEFileUpload/CEUploadPopUp';
|
|
10
|
+
export { default as CEFileUpload } from './components/Common/Fileupload/CEFileUploadBasic';
|
|
11
|
+
export { default as CEFileUploadDocument } from './components/Common/CEFileUpload/CEFileUploadDocument';
|
|
10
12
|
export { default as CESnackBar } from './components/Common/CESnackBar/CESnackBar';
|
|
11
13
|
export { default as CEStepper } from './components/Common/CEStepper/CEStepper';
|
|
12
14
|
export { default as CECheckbox } from './components/Common/CheckBox/CECheckBox';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cecomponent",
|
|
3
3
|
"description": "A React component library for building modern UIs for Cleanearth",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.91",
|
|
5
5
|
"main": "dist/ce-component-lib.js",
|
|
6
6
|
"module": "dist/ce-component-lib.mjs",
|
|
7
7
|
"types": "dist/index.d.ts",
|