@tecsinapse/cortex-react 1.15.0-beta.0 → 1.15.0-beta.1
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/cjs/components/Uploader/index.js +3 -1
- package/dist/esm/components/Uploader/index.js +3 -1
- package/dist/types/components/Uploader/Manager.d.ts +1 -9
- package/dist/types/components/Uploader/index.d.ts +1 -0
- package/dist/types/components/Uploader/types.d.ts +7 -0
- package/package.json +2 -2
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var Dropzone = require('./Dropzone.js');
|
|
4
4
|
var Files = require('./Files.js');
|
|
5
|
+
var Manager = require('./Manager.js');
|
|
5
6
|
var Modal = require('./Modal.js');
|
|
6
7
|
var Root = require('./Root.js');
|
|
7
8
|
|
|
@@ -9,7 +10,8 @@ const Uploader = {
|
|
|
9
10
|
Dropzone: Dropzone.Dropzone,
|
|
10
11
|
Files: Files.Files,
|
|
11
12
|
Modal: Modal.Modal,
|
|
12
|
-
Root: Root.Root
|
|
13
|
+
Root: Root.Root,
|
|
14
|
+
Manager: Manager.Manager
|
|
13
15
|
};
|
|
14
16
|
|
|
15
17
|
exports.Root = Root.Root;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Dropzone } from './Dropzone.js';
|
|
2
2
|
import { Files } from './Files.js';
|
|
3
|
+
import { Manager } from './Manager.js';
|
|
3
4
|
import { Modal } from './Modal.js';
|
|
4
5
|
import { Root } from './Root.js';
|
|
5
6
|
|
|
@@ -7,7 +8,8 @@ const Uploader = {
|
|
|
7
8
|
Dropzone,
|
|
8
9
|
Files,
|
|
9
10
|
Modal,
|
|
10
|
-
Root
|
|
11
|
+
Root,
|
|
12
|
+
Manager
|
|
11
13
|
};
|
|
12
14
|
|
|
13
15
|
export { Root, Uploader };
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
interface ManagerProps<T> {
|
|
3
|
-
open: boolean;
|
|
4
|
-
files: FileUpload<T>[];
|
|
5
|
-
onDelete: (index: number) => void;
|
|
6
|
-
uploadProgressText?: string;
|
|
7
|
-
onClose: () => void;
|
|
8
|
-
}
|
|
1
|
+
import { ManagerProps } from './types';
|
|
9
2
|
export declare const Manager: <T>({ open, files, onDelete, uploadProgressText, onClose, }: ManagerProps<T>) => any;
|
|
10
|
-
export {};
|
|
@@ -5,4 +5,5 @@ export declare const Uploader: {
|
|
|
5
5
|
Files: <T>({ files, onDelete, uploadProgressText, }: import("./types").FilesProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
Modal: ({ open, onClose, children, title, }: import("./types").ModalProps) => any;
|
|
7
7
|
Root: <T>({ open, onClose, files, onDelete, dropzoneProps, selectFileText, dropText, buttonText, uploadProgressText, titleModal, isManagerOpen, closeManager, }: import("./types").RootUploaderProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
Manager: <T>({ open, files, onDelete, uploadProgressText, onClose, }: import("./types").ManagerProps<T>) => any;
|
|
8
9
|
};
|
|
@@ -57,6 +57,13 @@ export interface RootUploaderProps<T> {
|
|
|
57
57
|
uploadProgressText?: string;
|
|
58
58
|
titleModal?: string;
|
|
59
59
|
}
|
|
60
|
+
export interface ManagerProps<T> {
|
|
61
|
+
open: boolean;
|
|
62
|
+
files: FileUpload<T>[];
|
|
63
|
+
onDelete: (index: number) => void;
|
|
64
|
+
uploadProgressText?: string;
|
|
65
|
+
onClose: () => void;
|
|
66
|
+
}
|
|
60
67
|
export declare const AcceptSpecificMap: {
|
|
61
68
|
readonly APPLICATION: readonly ["application/pdf", "application/zip", "application/msword", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/vnd.ms-powerpoint", "application/vnd.openxmlformats-officedocument.presentationml.presentation", "application/x-rar-compressed", "application/x-7z-compressed", "application/json", "application/xml", "application/rtf", "application/x-tar", "application/x-httpd-php", "application/octet-stream"];
|
|
62
69
|
readonly IMAGE: readonly ["image/jpeg", "image/png", "image/gif", "image/bmp", "image/svg+xml", "image/tiff", "image/webp", "image/x-icon"];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tecsinapse/cortex-react",
|
|
3
|
-
"version": "1.15.0-beta.
|
|
3
|
+
"version": "1.15.0-beta.1",
|
|
4
4
|
"description": "React components based in @tecsinapse/cortex-core",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"react-icons": ">=5.2.0",
|
|
49
49
|
"tailwind": ">=3.3.0"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "c289efa1599f7a3d08c5e9a8353ec8915cb42b1f"
|
|
52
52
|
}
|