demio-ui 2.5.52 → 2.5.55

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.
@@ -0,0 +1,11 @@
1
+ import { Area } from 'react-easy-crop';
2
+ export declare const createImage: (url: string) => Promise<HTMLImageElement>;
3
+ export declare const getRadianAngle: (degreeValue?: number) => number;
4
+ export declare const rotateSize: (width: number, height: number, rotation: number) => {
5
+ width: number;
6
+ height: number;
7
+ };
8
+ export declare const getCroppedImageURL: (imageSrc: string, pixelCrop: Area, rotation?: number, flip?: {
9
+ horizontal: boolean;
10
+ vertical: boolean;
11
+ }) => Promise<string | null>;
@@ -0,0 +1,3 @@
1
+ export declare const isValidFileType: (file?: File | null, acceptableTypePattern?: string) => boolean;
2
+ export declare const isValidFileSize: (file?: File | null, fileSizeMbLimit?: number) => boolean;
3
+ export declare const isValidFileDimension: (file?: File | null, minWidth?: number, minHeight?: number) => Promise<boolean>;
@@ -0,0 +1,7 @@
1
+ export declare const getPagesData: ({ currentPage, pageCount, }: {
2
+ currentPage: number;
3
+ pageCount: number;
4
+ }) => {
5
+ pages: number[];
6
+ latestPage: number;
7
+ };
@@ -0,0 +1,4 @@
1
+ import { Area } from 'react-easy-crop';
2
+ export declare const useCroppedImage: (image: string, croppedArea: Area | null) => {
3
+ croppedImageURL: string;
4
+ };
package/dist/types.d.ts CHANGED
@@ -1924,9 +1924,8 @@ function _extends$i() { return _extends$i = Object.assign ? Object.assign.bind()
1924
1924
  var SvgSmile = function SvgSmile(props) {
1925
1925
  return /*#__PURE__*/React.createElement("svg", _extends$i({
1926
1926
  xmlns: "http://www.w3.org/2000/svg",
1927
- width: 20,
1928
- height: 20,
1929
- fill: "none"
1927
+ fill: "none",
1928
+ viewBox: "0 0 20 20"
1930
1929
  }, props), _path$i || (_path$i = /*#__PURE__*/React.createElement("path", {
1931
1930
  fill: "#9FA6AD",
1932
1931
  d: "M10 .313A9.686 9.686 0 0 0 .313 10 9.686 9.686 0 0 0 10 19.688 9.686 9.686 0 0 0 19.688 10 9.686 9.686 0 0 0 10 .313m0 17.5c-4.309 0-7.812-3.504-7.812-7.813S5.69 2.188 10 2.188 17.813 5.69 17.813 10 14.309 17.813 10 17.813M6.875 9.375c.691 0 1.25-.559 1.25-1.25s-.559-1.25-1.25-1.25-1.25.559-1.25 1.25.559 1.25 1.25 1.25m6.25 0c.691 0 1.25-.559 1.25-1.25s-.559-1.25-1.25-1.25-1.25.559-1.25 1.25.559 1.25 1.25 1.25m.156 2.836A4.26 4.26 0 0 1 10 13.75a4.25 4.25 0 0 1-3.281-1.54.94.94 0 0 0-1.32-.12.94.94 0 0 0-.122 1.32A6.13 6.13 0 0 0 10 15.621c1.828 0 3.55-.805 4.723-2.21a.937.937 0 1 0-1.442-1.2"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "demio-ui",
3
- "version": "2.5.52",
3
+ "version": "2.5.55",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,12 +0,0 @@
1
- import { FC } from 'react';
2
- import { UploadMenuItem } from '../UploadMenu/UploadMenu';
3
- export interface UploadPreviewProps {
4
- className?: string;
5
- fileName?: string;
6
- fileInfo?: string;
7
- imageSrc?: string;
8
- imageTitle?: string;
9
- menu?: UploadMenuItem[];
10
- }
11
- declare const UploadPreview: FC<UploadPreviewProps>;
12
- export default UploadPreview;
@@ -1 +0,0 @@
1
- export { default } from './UploadPreview';
@@ -1,12 +0,0 @@
1
- import { FC } from 'react';
2
- import { UploadMenuItem } from '../UploadMenu/UploadMenu';
3
- export interface UploadPreviewProps {
4
- className?: string;
5
- fileName?: string;
6
- fileInfo?: string;
7
- imageSrc?: string;
8
- imageTitle?: string;
9
- menu?: UploadMenuItem[];
10
- }
11
- declare const UploadPreview: FC<UploadPreviewProps>;
12
- export default UploadPreview;
@@ -1 +0,0 @@
1
- export { default } from './UploadPreview';