demio-ui 2.5.45 → 2.5.47
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/Upload/Upload.d.ts +1 -1
- package/dist/cjs/types/src/components/UploadMenu/UploadMenu.d.ts +2 -2
- package/dist/cjs/types/src/components/UploadProgressPreview/UploadProgressPreview.d.ts +14 -0
- package/dist/cjs/types/src/components/UploadProgressPreview/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/Upload/Upload.d.ts +1 -1
- package/dist/esm/types/src/components/UploadMenu/UploadMenu.d.ts +2 -2
- package/dist/esm/types/src/components/UploadProgressPreview/UploadProgressPreview.d.ts +14 -0
- package/dist/esm/types/src/components/UploadProgressPreview/index.d.ts +1 -0
- package/dist/esm/types/src/components/index.d.ts +1 -1
- package/dist/types.d.ts +10 -9
- package/package.json +1 -1
|
@@ -22,7 +22,7 @@ export interface UploadProps {
|
|
|
22
22
|
menu?: UploadMenuItem[];
|
|
23
23
|
minHeightLimit?: number;
|
|
24
24
|
minWidthLimit?: number;
|
|
25
|
-
onUpload?: (file: File
|
|
25
|
+
onUpload?: (file: File) => void;
|
|
26
26
|
onCropCancel?: () => void;
|
|
27
27
|
onCropOk?: (croppedUrl: string) => void;
|
|
28
28
|
onCropChange?: (data: SetStateAction<Point>) => void;
|
|
@@ -12,8 +12,8 @@ export interface UploadMenuItem {
|
|
|
12
12
|
onSelect?: (e: Event, options: SelectOptions) => void;
|
|
13
13
|
text: ReactNode;
|
|
14
14
|
isDisabled?: boolean;
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
isPreviewOnly?: boolean;
|
|
16
|
+
isProgressOnly?: boolean;
|
|
17
17
|
}
|
|
18
18
|
export interface UploadMenuProps {
|
|
19
19
|
align?: 'end' | 'center' | 'start';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { UploadMenuItem } from '../UploadMenu/UploadMenu';
|
|
3
|
+
export interface UploadProgressPreviewProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
fileName?: string;
|
|
6
|
+
fileInfo?: string;
|
|
7
|
+
imageSrc?: string;
|
|
8
|
+
imageTitle?: string;
|
|
9
|
+
isUpload?: boolean;
|
|
10
|
+
menu?: UploadMenuItem[];
|
|
11
|
+
percent?: number;
|
|
12
|
+
}
|
|
13
|
+
declare const UploadProgressPreview: FC<UploadProgressPreviewProps>;
|
|
14
|
+
export default UploadProgressPreview;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './UploadProgressPreview';
|
|
@@ -32,4 +32,4 @@ export { Typography } from './Typography';
|
|
|
32
32
|
export { default as Upload } from './Upload';
|
|
33
33
|
export { default as UploadError } from './UploadError';
|
|
34
34
|
export { default as UploadMenu } from './UploadMenu';
|
|
35
|
-
export { default as
|
|
35
|
+
export { default as UploadProgressPreview } from './UploadProgressPreview';
|
package/dist/types.d.ts
CHANGED
|
@@ -506,8 +506,8 @@ interface UploadMenuItem {
|
|
|
506
506
|
onSelect?: (e: Event, options: SelectOptions) => void;
|
|
507
507
|
text: ReactNode;
|
|
508
508
|
isDisabled?: boolean;
|
|
509
|
-
|
|
510
|
-
|
|
509
|
+
isPreviewOnly?: boolean;
|
|
510
|
+
isProgressOnly?: boolean;
|
|
511
511
|
}
|
|
512
512
|
interface UploadMenuProps {
|
|
513
513
|
align?: 'end' | 'center' | 'start';
|
|
@@ -543,7 +543,7 @@ interface UploadProps {
|
|
|
543
543
|
menu?: UploadMenuItem[];
|
|
544
544
|
minHeightLimit?: number;
|
|
545
545
|
minWidthLimit?: number;
|
|
546
|
-
onUpload?: (file: File
|
|
546
|
+
onUpload?: (file: File) => void;
|
|
547
547
|
onCropCancel?: () => void;
|
|
548
548
|
onCropOk?: (croppedUrl: string) => void;
|
|
549
549
|
onCropChange?: (data: SetStateAction<Point>) => void;
|
|
@@ -571,15 +571,17 @@ interface UploadErrorProps {
|
|
|
571
571
|
}
|
|
572
572
|
declare const UploadError: FC<UploadErrorProps>;
|
|
573
573
|
|
|
574
|
-
interface
|
|
574
|
+
interface UploadProgressPreviewProps {
|
|
575
575
|
className?: string;
|
|
576
576
|
fileName?: string;
|
|
577
577
|
fileInfo?: string;
|
|
578
578
|
imageSrc?: string;
|
|
579
579
|
imageTitle?: string;
|
|
580
|
+
isUpload?: boolean;
|
|
580
581
|
menu?: UploadMenuItem[];
|
|
582
|
+
percent?: number;
|
|
581
583
|
}
|
|
582
|
-
declare const
|
|
584
|
+
declare const UploadProgressPreview: FC<UploadProgressPreviewProps>;
|
|
583
585
|
|
|
584
586
|
declare const useCroppedImage: (image?: string, croppedArea?: Area | null) => {
|
|
585
587
|
croppedImageURL: string;
|
|
@@ -1795,9 +1797,8 @@ function _extends$q() { return _extends$q = Object.assign ? Object.assign.bind()
|
|
|
1795
1797
|
var SvgProgress = function SvgProgress(props) {
|
|
1796
1798
|
return /*#__PURE__*/React.createElement("svg", _extends$q({
|
|
1797
1799
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
fill: "none"
|
|
1800
|
+
fill: "none",
|
|
1801
|
+
viewBox: "0 0 24 24"
|
|
1801
1802
|
}, props), _path$q || (_path$q = /*#__PURE__*/React.createElement("path", {
|
|
1802
1803
|
fill: "#DEE4E8",
|
|
1803
1804
|
d: "M12 0A12 12 0 1 1 0 12h2.64A9.36 9.36 0 1 0 12 2.64z"
|
|
@@ -2369,4 +2370,4 @@ declare const getCroppedImageURL: (imageSrc: string, pixelCrop: Area, rotation?:
|
|
|
2369
2370
|
vertical: boolean;
|
|
2370
2371
|
}) => Promise<string | null>;
|
|
2371
2372
|
|
|
2372
|
-
export { Alert, Avatar, Badge, Button$1 as Button, Button as ButtonNew, Card, Checkbox, Crop, DnDArea, Drawer, DropdownItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuTrigger, FormGroup, InfoBanner, Input, InputHint, Label, Loader, Modal, ModalWindow, MultiSelect, Pagination, Popover, PopoverTooltip, Progress, RadioGroup, Select, SelectItem, SelectItemText, SliderDemo as Slider, Switch, Tab, TabsContent, TabsList, TabsRoot, Tag, Tooltip, Typography, Upload, UploadError, UploadMenu,
|
|
2373
|
+
export { Alert, Avatar, Badge, Button$1 as Button, Button as ButtonNew, Card, Checkbox, Crop, DnDArea, Drawer, DropdownItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuTrigger, FormGroup, InfoBanner, Input, InputHint, Label, Loader, Modal, ModalWindow, MultiSelect, Pagination, Popover, PopoverTooltip, Progress, RadioGroup, Select, SelectItem, SelectItemText, SliderDemo as Slider, Switch, Tab, TabsContent, TabsList, TabsRoot, Tag, Tooltip, Typography, Upload, UploadError, UploadMenu, UploadProgressPreview, createImage, getCroppedImageURL, getFileExtension, getFileMimeType, getRadianAngle, index as icons, isExtensionMatchingMimeType, isImage, isValidFileDimension, isValidFileSize, isValidFileType, isVideo, mimeTypeMap, rotateSize, useCroppedImage, useFileValidation };
|