@zydon/common 1.0.20 → 1.0.21
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/App.d.ts.map +1 -1
- package/dist/assets/illustrations/BackgroundIllustration.d.ts +4 -0
- package/dist/assets/illustrations/BackgroundIllustration.d.ts.map +1 -0
- package/dist/assets/illustrations/UploadIllustration.d.ts +5 -0
- package/dist/assets/illustrations/UploadIllustration.d.ts.map +1 -0
- package/dist/assets/illustrations/index.d.ts +2 -0
- package/dist/assets/illustrations/index.d.ts.map +1 -0
- package/dist/components/ColorPickerInput/index.d.ts.map +1 -1
- package/dist/components/ImageCropModal/index.d.ts.map +1 -1
- package/dist/components/ImageCropModal/props.d.ts +1 -0
- package/dist/components/ImageCropModal/props.d.ts.map +1 -1
- package/dist/components/UploadWithCropField/index.d.ts +5 -0
- package/dist/components/UploadWithCropField/index.d.ts.map +1 -0
- package/dist/components/UploadWithCropField/props.d.ts +14 -0
- package/dist/components/UploadWithCropField/props.d.ts.map +1 -0
- package/dist/components/animate/DialogAnimate.d.ts +9 -0
- package/dist/components/animate/DialogAnimate.d.ts.map +1 -0
- package/dist/components/animate/FabButtonAnimate.d.ts +8 -0
- package/dist/components/animate/FabButtonAnimate.d.ts.map +1 -0
- package/dist/components/animate/IconButtonAnimate.d.ts +5 -0
- package/dist/components/animate/IconButtonAnimate.d.ts.map +1 -0
- package/dist/components/animate/MotionContainer.d.ts +11 -0
- package/dist/components/animate/MotionContainer.d.ts.map +1 -0
- package/dist/components/animate/MotionLazyContainer.d.ts +7 -0
- package/dist/components/animate/MotionLazyContainer.d.ts.map +1 -0
- package/dist/components/animate/MotionViewport.d.ts +11 -0
- package/dist/components/animate/MotionViewport.d.ts.map +1 -0
- package/dist/components/animate/TextAnimate.d.ts +10 -0
- package/dist/components/animate/TextAnimate.d.ts.map +1 -0
- package/dist/components/animate/index.d.ts +9 -0
- package/dist/components/animate/index.d.ts.map +1 -0
- package/dist/components/animate/types.d.ts +27 -0
- package/dist/components/animate/types.d.ts.map +1 -0
- package/dist/components/animate/variants/actions.d.ts +6 -0
- package/dist/components/animate/variants/actions.d.ts.map +1 -0
- package/dist/components/animate/variants/background.d.ts +105 -0
- package/dist/components/animate/variants/background.d.ts.map +1 -0
- package/dist/components/animate/variants/bounce.d.ts +137 -0
- package/dist/components/animate/variants/bounce.d.ts.map +1 -0
- package/dist/components/animate/variants/container.d.ts +20 -0
- package/dist/components/animate/variants/container.d.ts.map +1 -0
- package/dist/components/animate/variants/fade.d.ts +218 -0
- package/dist/components/animate/variants/fade.d.ts.map +1 -0
- package/dist/components/animate/variants/flip.d.ts +76 -0
- package/dist/components/animate/variants/flip.d.ts.map +1 -0
- package/dist/components/animate/variants/index.d.ts +13 -0
- package/dist/components/animate/variants/index.d.ts.map +1 -0
- package/dist/components/animate/variants/path.d.ts +15 -0
- package/dist/components/animate/variants/path.d.ts.map +1 -0
- package/dist/components/animate/variants/rotate.d.ts +40 -0
- package/dist/components/animate/variants/rotate.d.ts.map +1 -0
- package/dist/components/animate/variants/scale.d.ts +76 -0
- package/dist/components/animate/variants/scale.d.ts.map +1 -0
- package/dist/components/animate/variants/slide.d.ts +156 -0
- package/dist/components/animate/variants/slide.d.ts.map +1 -0
- package/dist/components/animate/variants/transition.d.ts +14 -0
- package/dist/components/animate/variants/transition.d.ts.map +1 -0
- package/dist/components/animate/variants/zoom.d.ts +200 -0
- package/dist/components/animate/variants/zoom.d.ts.map +1 -0
- package/dist/components/file-thumbnail/DownloadButton.d.ts +7 -0
- package/dist/components/file-thumbnail/DownloadButton.d.ts.map +1 -0
- package/dist/components/file-thumbnail/FileThumbnail.d.ts +14 -0
- package/dist/components/file-thumbnail/FileThumbnail.d.ts.map +1 -0
- package/dist/components/file-thumbnail/index.d.ts +4 -0
- package/dist/components/file-thumbnail/index.d.ts.map +1 -0
- package/dist/components/file-thumbnail/types.d.ts +6 -0
- package/dist/components/file-thumbnail/types.d.ts.map +1 -0
- package/dist/components/file-thumbnail/utils.d.ts +25 -0
- package/dist/components/file-thumbnail/utils.d.ts.map +1 -0
- package/dist/components/index.d.ts +8 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/upload/Upload.d.ts +5 -0
- package/dist/components/upload/Upload.d.ts.map +1 -0
- package/dist/components/upload/UploadAvatar.d.ts +5 -0
- package/dist/components/upload/UploadAvatar.d.ts.map +1 -0
- package/dist/components/upload/UploadBox.d.ts +5 -0
- package/dist/components/upload/UploadBox.d.ts.map +1 -0
- package/dist/components/upload/UploadWithCrop.d.ts +15 -0
- package/dist/components/upload/UploadWithCrop.d.ts.map +1 -0
- package/dist/components/upload/errors/RejectionFiles.d.ts +8 -0
- package/dist/components/upload/errors/RejectionFiles.d.ts.map +1 -0
- package/dist/components/upload/preview/AvatarPreview.d.ts +8 -0
- package/dist/components/upload/preview/AvatarPreview.d.ts.map +1 -0
- package/dist/components/upload/preview/MultiFilePreview.d.ts +5 -0
- package/dist/components/upload/preview/MultiFilePreview.d.ts.map +1 -0
- package/dist/components/upload/preview/SingleFilePreview.d.ts +8 -0
- package/dist/components/upload/preview/SingleFilePreview.d.ts.map +1 -0
- package/dist/features-443a6160.js +3424 -0
- package/dist/hooks/useUpload.d.ts +11 -0
- package/dist/hooks/useUpload.d.ts.map +1 -0
- package/dist/index-9cfdea78.js +28604 -0
- package/dist/index.js +77 -22837
- package/dist/index.umd.cjs +185 -61
- package/dist/types/upload.d.ts +28 -0
- package/dist/types/upload.d.ts.map +1 -0
- package/dist/utils/formatNumber.d.ts +8 -0
- package/dist/utils/formatNumber.d.ts.map +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/package.json +5 -1
- package/dist/components/upload/UploadWithCrop/index.d.ts +0 -4
- package/dist/components/upload/UploadWithCrop/index.d.ts.map +0 -1
package/dist/App.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAqH1B,QAAA,MAAM,GAAG,EAAE,KAAK,CAAC,EAuOhB,CAAC;AAEF,eAAe,GAAG,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackgroundIllustration.d.ts","sourceRoot":"","sources":["../../../src/assets/illustrations/BackgroundIllustration.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;;AAiCpC,wBAA4C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UploadIllustration.d.ts","sourceRoot":"","sources":["../../../src/assets/illustrations/UploadIllustration.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAO,QAAQ,EAAE,MAAM,eAAe,CAAC;;AAymB9C,wBAAwC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/assets/illustrations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ColorPickerInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAEhD,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ColorPickerInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAEhD,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA6ErD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ImageCropModal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAchD,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE9C,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ImageCropModal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAchD,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE9C,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAgHjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/ImageCropModal/props.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,IAAI,IAAI,CAAC;IAChB,KAAK,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,aAAa,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,GAAG,IAAI,CAAC;CAC7C"}
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/ImageCropModal/props.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,IAAI,IAAI,CAAC;IAChB,KAAK,EAAE;QACL,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,aAAa,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,GAAG,IAAI,CAAC;CAC7C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/UploadWithCropField/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAyCxC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseField } from '../../types/baseField';
|
|
2
|
+
import { UploadProps } from '../../types/upload';
|
|
3
|
+
interface IProps {
|
|
4
|
+
aspect: number;
|
|
5
|
+
size: {
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
};
|
|
9
|
+
label: string;
|
|
10
|
+
image?: string;
|
|
11
|
+
}
|
|
12
|
+
export type Props = BaseField<UploadProps> & IProps;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=props.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/UploadWithCropField/props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,UAAU,MAAM;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DialogProps } from '@mui/material';
|
|
3
|
+
export interface Props extends DialogProps {
|
|
4
|
+
variants?: Record<string, unknown>;
|
|
5
|
+
onClose?: VoidFunction;
|
|
6
|
+
}
|
|
7
|
+
declare const DialogAnimate: React.FC<Props>;
|
|
8
|
+
export default DialogAnimate;
|
|
9
|
+
//# sourceMappingURL=DialogAnimate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DialogAnimate.d.ts","sourceRoot":"","sources":["../../../src/components/animate/DialogAnimate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAsB,WAAW,EAAE,MAAM,eAAe,CAAC;AAIhE,MAAM,WAAW,KAAM,SAAQ,WAAW;IACxC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAkDlC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FabProps, SxProps } from '@mui/material';
|
|
3
|
+
export interface FabButtonAnimateProps extends FabProps {
|
|
4
|
+
sxWrap?: SxProps;
|
|
5
|
+
}
|
|
6
|
+
declare const FabButtonAnimate: React.ForwardRefExoticComponent<Omit<FabButtonAnimateProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
export default FabButtonAnimate;
|
|
8
|
+
//# sourceMappingURL=FabButtonAnimate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FabButtonAnimate.d.ts","sourceRoot":"","sources":["../../../src/components/animate/FabButtonAnimate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAY,QAAQ,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE5D,MAAM,WAAW,qBAAsB,SAAQ,QAAQ;IACrD,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,QAAA,MAAM,gBAAgB,8GAQrB,CAAC;AAIF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IconButtonProps } from '@mui/material';
|
|
3
|
+
declare const IconButtonAnimate: React.ForwardRefExoticComponent<Omit<IconButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
4
|
+
export default IconButtonAnimate;
|
|
5
|
+
//# sourceMappingURL=IconButtonAnimate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconButtonAnimate.d.ts","sourceRoot":"","sources":["../../../src/components/animate/IconButtonAnimate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAmB,eAAe,EAAE,MAAM,eAAe,CAAC;AAyCjE,QAAA,MAAM,iBAAiB,wGAQtB,CAAC;AAGF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MotionProps } from 'framer-motion';
|
|
3
|
+
import { BoxProps } from '@mui/material';
|
|
4
|
+
type IProps = BoxProps & MotionProps;
|
|
5
|
+
export interface Props extends IProps {
|
|
6
|
+
animate?: boolean;
|
|
7
|
+
action?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const MotionContainer: React.FC<Props>;
|
|
10
|
+
export default MotionContainer;
|
|
11
|
+
//# sourceMappingURL=MotionContainer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MotionContainer.d.ts","sourceRoot":"","sources":["../../../src/components/animate/MotionContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAO,QAAQ,EAAE,MAAM,eAAe,CAAC;AAI9C,KAAK,MAAM,GAAG,QAAQ,GAAG,WAAW,CAAC;AAErC,MAAM,WAAW,KAAM,SAAQ,MAAM;IACnC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAgCpC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MotionLazyContainer.d.ts","sourceRoot":"","sources":["../../../src/components/animate/MotionLazyContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,KAAK,KAAK,GAAG;IACX,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAMxC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MotionProps } from 'framer-motion';
|
|
3
|
+
import { BoxProps } from '@mui/material';
|
|
4
|
+
type IProps = BoxProps & MotionProps;
|
|
5
|
+
interface Props extends IProps {
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
disableAnimatedMobile?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const MotionViewport: React.FC<Props>;
|
|
10
|
+
export default MotionViewport;
|
|
11
|
+
//# sourceMappingURL=MotionViewport.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MotionViewport.d.ts","sourceRoot":"","sources":["../../../src/components/animate/MotionViewport.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAO,QAAQ,EAAE,MAAM,eAAe,CAAC;AAK9C,KAAK,MAAM,GAAG,QAAQ,GAAG,WAAW,CAAC;AAErC,UAAU,KAAM,SAAQ,MAAM;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAuBnC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MotionProps } from 'framer-motion';
|
|
3
|
+
import { BoxProps } from '@mui/material';
|
|
4
|
+
type Props = BoxProps & MotionProps;
|
|
5
|
+
interface TextAnimateProps extends Props {
|
|
6
|
+
text: string;
|
|
7
|
+
}
|
|
8
|
+
declare const TextAnimate: React.FC<TextAnimateProps>;
|
|
9
|
+
export default TextAnimate;
|
|
10
|
+
//# sourceMappingURL=TextAnimate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextAnimate.d.ts","sourceRoot":"","sources":["../../../src/components/animate/TextAnimate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAO,QAAQ,EAAE,MAAM,eAAe,CAAC;AAI9C,KAAK,KAAK,GAAG,QAAQ,GAAG,WAAW,CAAC;AAEpC,UAAU,gBAAiB,SAAQ,KAAK;IACtC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAyB3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './variants';
|
|
2
|
+
export { default as DialogAnimate } from './DialogAnimate';
|
|
3
|
+
export { default as TextAnimate } from './TextAnimate';
|
|
4
|
+
export { default as FabButtonAnimate } from './FabButtonAnimate';
|
|
5
|
+
export { default as IconButtonAnimate } from './IconButtonAnimate';
|
|
6
|
+
export { default as MotionViewport } from './MotionViewport';
|
|
7
|
+
export { default as MotionContainer } from './MotionContainer';
|
|
8
|
+
export { default as MotionLazyContainer } from './MotionLazyContainer';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/animate/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAE3B,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AAEvD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAEnE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE/D,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
type EaseType = 'linear' | 'easeIn' | 'easeOut' | 'easeInOut' | 'circIn' | 'circOut' | 'circInOut' | 'backIn' | 'backOut' | 'backInOut' | 'anticipate' | number[];
|
|
2
|
+
export type VariantsType = {
|
|
3
|
+
distance?: number;
|
|
4
|
+
durationIn?: number;
|
|
5
|
+
durationOut?: number;
|
|
6
|
+
easeIn?: EaseType;
|
|
7
|
+
easeOut?: EaseType;
|
|
8
|
+
};
|
|
9
|
+
export type TranHoverType = {
|
|
10
|
+
duration?: number;
|
|
11
|
+
ease?: EaseType;
|
|
12
|
+
};
|
|
13
|
+
export type TranEnterType = {
|
|
14
|
+
durationIn?: number;
|
|
15
|
+
easeIn?: EaseType;
|
|
16
|
+
};
|
|
17
|
+
export type TranExitType = {
|
|
18
|
+
durationOut?: number;
|
|
19
|
+
easeOut?: EaseType;
|
|
20
|
+
};
|
|
21
|
+
export type BackgroundType = {
|
|
22
|
+
colors?: string[];
|
|
23
|
+
duration?: number;
|
|
24
|
+
ease?: EaseType;
|
|
25
|
+
};
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/animate/types.ts"],"names":[],"mappings":"AAAA,KAAK,QAAQ,GACT,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,WAAW,GACX,QAAQ,GACR,SAAS,GACT,WAAW,GACX,QAAQ,GACR,SAAS,GACT,WAAW,GACX,YAAY,GACZ,MAAM,EAAE,CAAC;AAEb,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,QAAQ,CAAC;IAClB,OAAO,CAAC,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,QAAQ,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../src/components/animate/variants/actions.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,WAAY,MAAM;;;;CAIrC,CAAC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { BackgroundType } from '../types';
|
|
2
|
+
export declare const varBgColor: (props?: BackgroundType) => {
|
|
3
|
+
animate: {
|
|
4
|
+
background: string[];
|
|
5
|
+
transition: {
|
|
6
|
+
duration: number;
|
|
7
|
+
ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export declare const varBgKenburns: (props?: BackgroundType) => {
|
|
12
|
+
top: {
|
|
13
|
+
animate: {
|
|
14
|
+
scale: number[];
|
|
15
|
+
y: number[];
|
|
16
|
+
transformOrigin: string[];
|
|
17
|
+
transition: {
|
|
18
|
+
duration: number;
|
|
19
|
+
ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
right: {
|
|
24
|
+
animate: {
|
|
25
|
+
scale: number[];
|
|
26
|
+
x: number[];
|
|
27
|
+
y: number[];
|
|
28
|
+
transformOrigin: string[];
|
|
29
|
+
transition: {
|
|
30
|
+
duration: number;
|
|
31
|
+
ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
bottom: {
|
|
36
|
+
animate: {
|
|
37
|
+
scale: number[];
|
|
38
|
+
y: number[];
|
|
39
|
+
transformOrigin: string[];
|
|
40
|
+
transition: {
|
|
41
|
+
duration: number;
|
|
42
|
+
ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
left: {
|
|
47
|
+
animate: {
|
|
48
|
+
scale: number[];
|
|
49
|
+
x: number[];
|
|
50
|
+
y: number[];
|
|
51
|
+
transformOrigin: string[];
|
|
52
|
+
transition: {
|
|
53
|
+
duration: number;
|
|
54
|
+
ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
export declare const varBgPan: (props?: BackgroundType) => {
|
|
60
|
+
top: {
|
|
61
|
+
animate: {
|
|
62
|
+
backgroundImage: string[];
|
|
63
|
+
backgroundPosition: string[];
|
|
64
|
+
backgroundSize: string[];
|
|
65
|
+
transition: {
|
|
66
|
+
duration: number;
|
|
67
|
+
ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
right: {
|
|
72
|
+
animate: {
|
|
73
|
+
backgroundPosition: string[];
|
|
74
|
+
backgroundImage: string[];
|
|
75
|
+
backgroundSize: string[];
|
|
76
|
+
transition: {
|
|
77
|
+
duration: number;
|
|
78
|
+
ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
bottom: {
|
|
83
|
+
animate: {
|
|
84
|
+
backgroundImage: string[];
|
|
85
|
+
backgroundPosition: string[];
|
|
86
|
+
backgroundSize: string[];
|
|
87
|
+
transition: {
|
|
88
|
+
duration: number;
|
|
89
|
+
ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
left: {
|
|
94
|
+
animate: {
|
|
95
|
+
backgroundPosition: string[];
|
|
96
|
+
backgroundImage: string[];
|
|
97
|
+
backgroundSize: string[];
|
|
98
|
+
transition: {
|
|
99
|
+
duration: number;
|
|
100
|
+
ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
//# sourceMappingURL=background.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"background.d.ts","sourceRoot":"","sources":["../../../../src/components/animate/variants/background.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAI1C,eAAO,MAAM,UAAU,WAAY,cAAc;;;;;;;;CAWhD,CAAC;AAIF,eAAO,MAAM,aAAa,WAAY,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwCnD,CAAC;AAIF,eAAO,MAAM,QAAQ,WAAY,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyC9C,CAAC"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { VariantsType } from '../types';
|
|
2
|
+
export declare const varBounce: (props?: VariantsType) => {
|
|
3
|
+
in: {
|
|
4
|
+
initial: {};
|
|
5
|
+
animate: {
|
|
6
|
+
scale: number[];
|
|
7
|
+
opacity: number[];
|
|
8
|
+
transition: {
|
|
9
|
+
duration: number;
|
|
10
|
+
ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
exit: {
|
|
14
|
+
scale: number[];
|
|
15
|
+
opacity: number[];
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
inUp: {
|
|
19
|
+
initial: {};
|
|
20
|
+
animate: {
|
|
21
|
+
y: number[];
|
|
22
|
+
scaleY: number[];
|
|
23
|
+
opacity: number[];
|
|
24
|
+
transition: {
|
|
25
|
+
duration: number;
|
|
26
|
+
ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
exit: {
|
|
30
|
+
y: number[];
|
|
31
|
+
scaleY: number[];
|
|
32
|
+
opacity: number[];
|
|
33
|
+
transition: {
|
|
34
|
+
duration: number;
|
|
35
|
+
ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
inDown: {
|
|
40
|
+
initial: {};
|
|
41
|
+
animate: {
|
|
42
|
+
y: number[];
|
|
43
|
+
scaleY: number[];
|
|
44
|
+
opacity: number[];
|
|
45
|
+
transition: {
|
|
46
|
+
duration: number;
|
|
47
|
+
ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
exit: {
|
|
51
|
+
y: number[];
|
|
52
|
+
scaleY: number[];
|
|
53
|
+
opacity: number[];
|
|
54
|
+
transition: {
|
|
55
|
+
duration: number;
|
|
56
|
+
ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
inLeft: {
|
|
61
|
+
initial: {};
|
|
62
|
+
animate: {
|
|
63
|
+
x: number[];
|
|
64
|
+
scaleX: number[];
|
|
65
|
+
opacity: number[];
|
|
66
|
+
transition: {
|
|
67
|
+
duration: number;
|
|
68
|
+
ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
exit: {
|
|
72
|
+
x: number[];
|
|
73
|
+
scaleX: number[];
|
|
74
|
+
opacity: number[];
|
|
75
|
+
transition: {
|
|
76
|
+
duration: number;
|
|
77
|
+
ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
inRight: {
|
|
82
|
+
initial: {};
|
|
83
|
+
animate: {
|
|
84
|
+
x: number[];
|
|
85
|
+
scaleX: number[];
|
|
86
|
+
opacity: number[];
|
|
87
|
+
transition: {
|
|
88
|
+
duration: number;
|
|
89
|
+
ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
exit: {
|
|
93
|
+
x: number[];
|
|
94
|
+
scaleX: number[];
|
|
95
|
+
opacity: number[];
|
|
96
|
+
transition: {
|
|
97
|
+
duration: number;
|
|
98
|
+
ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
out: {
|
|
103
|
+
animate: {
|
|
104
|
+
scale: number[];
|
|
105
|
+
opacity: number[];
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
outUp: {
|
|
109
|
+
animate: {
|
|
110
|
+
y: number[];
|
|
111
|
+
scaleY: number[];
|
|
112
|
+
opacity: number[];
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
outDown: {
|
|
116
|
+
animate: {
|
|
117
|
+
y: number[];
|
|
118
|
+
scaleY: number[];
|
|
119
|
+
opacity: number[];
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
outLeft: {
|
|
123
|
+
animate: {
|
|
124
|
+
x: number[];
|
|
125
|
+
scaleX: number[];
|
|
126
|
+
opacity: number[];
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
outRight: {
|
|
130
|
+
animate: {
|
|
131
|
+
x: number[];
|
|
132
|
+
scaleX: number[];
|
|
133
|
+
opacity: number[];
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
//# sourceMappingURL=bounce.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bounce.d.ts","sourceRoot":"","sources":["../../../../src/components/animate/variants/bounce.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAMxC,eAAO,MAAM,SAAS,WAAY,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkG7C,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type Props = {
|
|
2
|
+
staggerIn?: number;
|
|
3
|
+
delayIn?: number;
|
|
4
|
+
staggerOut?: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const varContainer: (props?: Props) => {
|
|
7
|
+
animate: {
|
|
8
|
+
transition: {
|
|
9
|
+
staggerChildren: number;
|
|
10
|
+
delayChildren: number;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
exit: {
|
|
14
|
+
transition: {
|
|
15
|
+
staggerChildren: number;
|
|
16
|
+
staggerDirection: number;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=container.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../../src/components/animate/variants/container.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,KAAK,GAAG;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,YAAY,WAAY,KAAK;;;;;;;;;;;;;CAmBzC,CAAC"}
|