cecomponent 1.0.89 → 1.0.90

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.
@@ -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
  }
@@ -7,6 +7,8 @@ export interface UploadedFile {
7
7
  }
8
8
  interface CEFileUploadProps {
9
9
  onUpload?: (files: UploadedFile[]) => void;
10
+ /** List of extensions (with leading dot). Example: ['.csv', '.xlsx'] */
11
+ accept?: string[];
10
12
  }
11
13
  declare const CEFileUploadDocument: React.FC<CEFileUploadProps>;
12
14
  export default CEFileUploadDocument;
@@ -1,3 +1,11 @@
1
1
  import { default as React } from 'react';
2
- declare const CEFileUpload: React.FC;
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,7 @@ 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';
10
11
  export { default as CESnackBar } from './components/Common/CESnackBar/CESnackBar';
11
12
  export { default as CEStepper } from './components/Common/CEStepper/CEStepper';
12
13
  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.89",
4
+ "version": "1.0.90",
5
5
  "main": "dist/ce-component-lib.js",
6
6
  "module": "dist/ce-component-lib.mjs",
7
7
  "types": "dist/index.d.ts",