demio-ui 2.1.91 → 2.1.92
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/index.css +1 -1
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/types/src/components/Pagination/Pagination.d.ts +8 -8
- package/dist/cjs/types/src/components/Pagination/index.d.ts +1 -1
- package/dist/cjs/types/src/components/Toast/Toast.d.ts +6 -0
- package/dist/cjs/types/src/components/Toast/index.d.ts +1 -0
- package/dist/cjs/types/src/components/Upload/Upload.d.ts +23 -0
- package/dist/cjs/types/src/components/Upload/index.d.ts +1 -0
- package/dist/cjs/types/src/components/index.d.ts +1 -1
- package/dist/esm/index.css +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/types/src/components/Pagination/Pagination.d.ts +8 -8
- package/dist/esm/types/src/components/Pagination/index.d.ts +1 -1
- package/dist/esm/types/src/components/Toast/Toast.d.ts +6 -0
- package/dist/esm/types/src/components/Toast/index.d.ts +1 -0
- package/dist/esm/types/src/components/Upload/Upload.d.ts +23 -0
- package/dist/esm/types/src/components/Upload/index.d.ts +1 -0
- package/dist/esm/types/src/components/index.d.ts +1 -1
- package/dist/types.d.ts +5 -5
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
interface PaginationProps {
|
|
3
|
-
pageCount: number;
|
|
4
|
-
currentPage: number;
|
|
5
|
-
onChange: (page: number) => void;
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
export interface PaginationProps {
|
|
6
3
|
className?: string;
|
|
7
|
-
|
|
4
|
+
currentPage?: number;
|
|
5
|
+
onChange?: (page: number) => void;
|
|
6
|
+
pageSize?: number;
|
|
7
|
+
total: number;
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
export
|
|
9
|
+
declare const Pagination: FC<PaginationProps>;
|
|
10
|
+
export default Pagination;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { default } from './Pagination';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Toast';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { FC, HTMLInputTypeAttribute, ReactNode } from 'react';
|
|
2
|
+
import { RcFile, UploadProgressEvent } from 'rc-upload/es/interface';
|
|
3
|
+
export interface UploadProps {
|
|
4
|
+
accept?: string;
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
customIcon?: ReactNode;
|
|
8
|
+
customHeader?: ReactNode;
|
|
9
|
+
customText?: ReactNode;
|
|
10
|
+
errorMessage?: string;
|
|
11
|
+
isDirectoryAllowed?: boolean;
|
|
12
|
+
isMulti?: boolean;
|
|
13
|
+
onBeforeUpload?: (file: RcFile, fileList: RcFile[]) => void;
|
|
14
|
+
onError?: (err: Error, ret: Record<string, unknown>, file: RcFile) => void;
|
|
15
|
+
onProgress?: (event: UploadProgressEvent, file: RcFile) => void;
|
|
16
|
+
onStart?: (file: RcFile) => void;
|
|
17
|
+
onSuccess?: (ret: Record<string, unknown>) => void;
|
|
18
|
+
type?: HTMLInputTypeAttribute;
|
|
19
|
+
url?: string;
|
|
20
|
+
view?: 'square' | 'circle';
|
|
21
|
+
}
|
|
22
|
+
declare const Upload: FC;
|
|
23
|
+
export default Upload;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Upload';
|
|
@@ -15,7 +15,7 @@ export { default as Label } from './Label';
|
|
|
15
15
|
export { default as Loader } from './Loader';
|
|
16
16
|
export { default as Modal } from './Modal';
|
|
17
17
|
export { default as MultiSelect } from './MultiSelect';
|
|
18
|
-
export { Pagination } from './Pagination';
|
|
18
|
+
export { default as Pagination } from './Pagination';
|
|
19
19
|
export { Popover, PopoverContent, PopoverPortal, PopoverRoot, PopoverTrigger } from './Popover';
|
|
20
20
|
export { default as Progress } from './Progress';
|
|
21
21
|
export { default as RadioGroup } from './RadioGroup';
|
package/dist/types.d.ts
CHANGED
|
@@ -254,13 +254,13 @@ interface Props$5 {
|
|
|
254
254
|
declare const MultiSelect: FC<Props$5>;
|
|
255
255
|
|
|
256
256
|
interface PaginationProps {
|
|
257
|
-
pageCount: number;
|
|
258
|
-
currentPage: number;
|
|
259
|
-
onChange: (page: number) => void;
|
|
260
257
|
className?: string;
|
|
261
|
-
|
|
258
|
+
currentPage?: number;
|
|
259
|
+
onChange?: (page: number) => void;
|
|
260
|
+
pageSize?: number;
|
|
261
|
+
total: number;
|
|
262
262
|
}
|
|
263
|
-
declare
|
|
263
|
+
declare const Pagination: FC<PaginationProps>;
|
|
264
264
|
|
|
265
265
|
type Props$4 = {
|
|
266
266
|
children: React__default.ReactNode;
|