@eventlook/sdk 1.5.0-beta.2 → 1.5.0-beta.3
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/.prettierrc +1 -14
- package/dist/cjs/index.js +31 -32
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +31 -32
- package/dist/esm/index.js.map +1 -1
- package/dist/types/components/ClientOnly.d.ts +5 -0
- package/dist/types/components/CustomSkeleton.d.ts +4 -0
- package/dist/types/components/Image.d.ts +14 -0
- package/dist/types/components/Label.d.ts +11 -0
- package/dist/types/components/TextIconLabel.d.ts +10 -0
- package/dist/types/components/TicketFormSkeleton.d.ts +3 -0
- package/dist/types/components/Trans.d.ts +12 -0
- package/dist/types/components/animate/DialogAnimate.d.ts +9 -0
- package/dist/types/components/animate/IconButtonAnimate.d.ts +7 -0
- package/dist/types/components/animate/MotionContainer.d.ts +10 -0
- package/dist/types/components/animate/MotionLazyContainer.d.ts +6 -0
- package/dist/types/components/animate/MotionViewport.d.ts +10 -0
- package/dist/types/components/animate/TextAnimate.d.ts +9 -0
- package/dist/types/components/animate/index.d.ts +7 -0
- package/dist/types/components/animate/variants/actions.d.ts +5 -0
- package/dist/types/components/animate/variants/background.d.ts +104 -0
- package/dist/types/components/animate/variants/bounce.d.ts +131 -0
- package/dist/types/components/animate/variants/container.d.ts +19 -0
- package/dist/types/components/animate/variants/fade.d.ts +217 -0
- package/dist/types/components/animate/variants/flip.d.ts +75 -0
- package/dist/types/components/animate/variants/index.d.ts +12 -0
- package/dist/types/components/animate/variants/path.d.ts +14 -0
- package/dist/types/components/animate/variants/rotate.d.ts +39 -0
- package/dist/types/components/animate/variants/scale.d.ts +75 -0
- package/dist/types/components/animate/variants/slide.d.ts +155 -0
- package/dist/types/components/animate/variants/transition.d.ts +13 -0
- package/dist/types/components/animate/variants/zoom.d.ts +199 -0
- package/dist/types/components/confirm-dialog/ConfirmDialog.d.ts +3 -0
- package/dist/types/components/confirm-dialog/index.d.ts +1 -0
- package/dist/types/components/confirm-dialog/types.d.ts +8 -0
- package/dist/types/components/hook-form/FormProvider.d.ts +9 -0
- package/dist/types/components/hook-form/RHFAutocomplete.d.ts +9 -0
- package/dist/types/components/hook-form/RHFCheckbox.d.ts +20 -0
- package/dist/types/components/hook-form/RHFCodes.d.ts +8 -0
- package/dist/types/components/hook-form/RHFDatePicker.d.ts +8 -0
- package/dist/types/components/hook-form/RHFPhone.d.ts +8 -0
- package/dist/types/components/hook-form/RHFRadioGroup.d.ts +14 -0
- package/dist/types/components/hook-form/RHFSelect.d.ts +23 -0
- package/dist/types/components/hook-form/RHFSlider.d.ts +8 -0
- package/dist/types/components/hook-form/RHFSwitch.d.ts +8 -0
- package/dist/types/components/hook-form/RHFTextField.d.ts +7 -0
- package/dist/types/components/hook-form/index.d.ts +9 -0
- package/dist/types/components/iconify/Iconify.d.ts +10 -0
- package/dist/types/components/iconify/index.d.ts +2 -0
- package/dist/types/components/iconify/types.d.ts +2 -0
- package/dist/types/components/index.d.ts +4 -0
- package/dist/types/context/GlobalContext.d.ts +16 -0
- package/dist/types/form/ChildEventCard.d.ts +7 -0
- package/dist/types/form/ChildEventDialog.d.ts +9 -0
- package/dist/types/form/ChildEvents.d.ts +8 -0
- package/dist/types/form/ContactPerson.d.ts +7 -0
- package/dist/types/form/EmailConfirmation.d.ts +8 -0
- package/dist/types/form/MerchandiseSelection.d.ts +9 -0
- package/dist/types/form/OrderSuccess.d.ts +9 -0
- package/dist/types/form/Payment.d.ts +7 -0
- package/dist/types/form/PaymentOverviewBox.d.ts +7 -0
- package/dist/types/form/PaymentPending.d.ts +3 -0
- package/dist/types/form/PaymentSuccess.d.ts +9 -0
- package/dist/types/form/ReleaseCountdown.d.ts +8 -0
- package/dist/types/form/ReleaseWithMerchandise.d.ts +12 -0
- package/dist/types/form/ScriptLoader.d.ts +3 -0
- package/dist/types/form/Shipping.d.ts +7 -0
- package/dist/types/form/TicketForm.d.ts +11 -0
- package/dist/types/form/TicketSelection.d.ts +7 -0
- package/dist/types/form/TicketSelectionMap.d.ts +7 -0
- package/dist/types/form/TicketWithMerchandiseSelection.d.ts +7 -0
- package/dist/types/form/TimeslotSelection.d.ts +7 -0
- package/dist/types/form/extra-field/ExtraField.d.ts +9 -0
- package/dist/types/form/extra-field/ReleaseExtraFields.d.ts +10 -0
- package/dist/types/form/index.d.ts +26 -0
- package/dist/types/form/payment/FeeBox.d.ts +8 -0
- package/dist/types/form/payment/PaymentOverviewCheckbox.d.ts +12 -0
- package/dist/types/form/payment/PaymentSkeleton.d.ts +7 -0
- package/dist/types/form/product/ProductCard.d.ts +9 -0
- package/dist/types/form/product/ProductVariantsDialog.d.ts +14 -0
- package/dist/types/form/shipping/ShippingSkeleton.d.ts +7 -0
- package/dist/types/form/style.d.ts +11 -0
- package/dist/types/form/timeslot/TimeslotCalendar.d.ts +12 -0
- package/dist/types/hooks/data/useActiveEventProducts.d.ts +8 -0
- package/dist/types/hooks/data/useAllowedPaymentMethods.d.ts +9 -0
- package/dist/types/hooks/data/useEvent.d.ts +8 -0
- package/dist/types/hooks/data/useEventActiveReleases.d.ts +8 -0
- package/dist/types/hooks/data/useEventShippingMethods.d.ts +8 -0
- package/dist/types/hooks/data/useEventTimeslots.d.ts +10 -0
- package/dist/types/hooks/useCountdown.d.ts +6 -0
- package/dist/types/hooks/useDebounce.d.ts +1 -0
- package/dist/types/hooks/useErrors.d.ts +4 -0
- package/dist/types/hooks/useEventListener.d.ts +5 -0
- package/dist/types/hooks/useFirstRender.d.ts +1 -0
- package/dist/types/hooks/useGlobal.d.ts +2 -0
- package/dist/types/hooks/useResponsive.d.ts +8 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/locales/cs.d.ts +157 -0
- package/dist/types/locales/en.d.ts +158 -0
- package/dist/types/locales/es.d.ts +158 -0
- package/dist/types/locales/index.d.ts +6 -0
- package/dist/types/locales/pl.d.ts +158 -0
- package/dist/types/locales/sk.d.ts +158 -0
- package/dist/types/locales/uk.d.ts +158 -0
- package/dist/types/modules/event-timeslot.d.ts +2 -0
- package/dist/types/modules/event.d.ts +5 -0
- package/dist/types/modules/order.d.ts +7 -0
- package/dist/types/modules/promo-code.d.ts +1 -0
- package/dist/types/modules/shopping-cart.d.ts +4 -0
- package/dist/types/utils/axios.d.ts +2 -0
- package/dist/types/utils/data/cookie.d.ts +1 -0
- package/dist/types/utils/data/currency.d.ts +5 -0
- package/dist/types/utils/data/event.d.ts +4 -0
- package/dist/types/utils/data/extra-field.d.ts +11 -0
- package/dist/types/utils/data/gender.d.ts +5 -0
- package/dist/types/utils/data/global.d.ts +1 -0
- package/dist/types/utils/data/gopay.d.ts +10 -0
- package/dist/types/utils/data/language.d.ts +10 -0
- package/dist/types/utils/data/order.d.ts +4 -0
- package/dist/types/utils/data/product.d.ts +3 -0
- package/dist/types/utils/data/promo-code.d.ts +4 -0
- package/dist/types/utils/data/shipping-method.d.ts +4 -0
- package/dist/types/utils/data/shopping-cart.d.ts +5 -0
- package/dist/types/utils/formatNumber.d.ts +8 -0
- package/dist/types/utils/global.d.ts +4 -0
- package/dist/types/utils/gtm.d.ts +28 -0
- package/dist/types/utils/isBrowser.d.ts +1 -0
- package/dist/types/utils/place.d.ts +2 -0
- package/dist/types/utils/price.d.ts +5 -0
- package/dist/types/utils/product.d.ts +3 -0
- package/dist/types/utils/translation.d.ts +2 -0
- package/dist/types/utils/types/animate.d.ts +26 -0
- package/dist/types/utils/types/artist.type.d.ts +17 -0
- package/dist/types/utils/types/company.type.d.ts +12 -0
- package/dist/types/utils/types/country.type.d.ts +39 -0
- package/dist/types/utils/types/customer.type.d.ts +10 -0
- package/dist/types/utils/types/event-product.type.d.ts +15 -0
- package/dist/types/utils/types/event-timeslot.type.d.ts +15 -0
- package/dist/types/utils/types/event.type.d.ts +62 -0
- package/dist/types/utils/types/extra-field.type.d.ts +18 -0
- package/dist/types/utils/types/file.type.d.ts +6 -0
- package/dist/types/utils/types/global.type.d.ts +76 -0
- package/dist/types/utils/types/gtm.type.d.ts +90 -0
- package/dist/types/utils/types/locale.type.d.ts +4 -0
- package/dist/types/utils/types/order.type.d.ts +69 -0
- package/dist/types/utils/types/palette.type.d.ts +1 -0
- package/dist/types/utils/types/payment-method.type.d.ts +23 -0
- package/dist/types/utils/types/pixel.type.d.ts +7 -0
- package/dist/types/utils/types/place.type.d.ts +19 -0
- package/dist/types/utils/types/product-image.type.d.ts +5 -0
- package/dist/types/utils/types/product-parameter.type.d.ts +7 -0
- package/dist/types/utils/types/product-variant.type.d.ts +9 -0
- package/dist/types/utils/types/product.type.d.ts +57 -0
- package/dist/types/utils/types/project.type.d.ts +24 -0
- package/dist/types/utils/types/promo-code.type.d.ts +15 -0
- package/dist/types/utils/types/release-category.type.d.ts +17 -0
- package/dist/types/utils/types/release.type.d.ts +28 -0
- package/dist/types/utils/types/shipping-method.type.d.ts +11 -0
- package/dist/types/utils/types/shopping-cart.type.d.ts +78 -0
- package/dist/types/utils/types/ticket.type.d.ts +110 -0
- package/dist/types/utils/types/translation.type.d.ts +18 -0
- package/dist/types/utils/types/user.type.d.ts +9 -0
- package/dist/types/utils/url.d.ts +1 -0
- package/eslint.config.mjs +103 -27
- package/package.json +10 -2
- package/src/@types/index.d.ts +3 -3
- package/src/components/TextIconLabel.tsx +1 -2
- package/src/components/animate/IconButtonAnimate.tsx +1 -2
- package/src/components/animate/MotionLazyContainer.tsx +1 -1
- package/src/components/hook-form/RHFCodes.tsx +1 -2
- package/src/components/hook-form/RHFSelect.tsx +1 -1
- package/src/form/PaymentSuccess.tsx +2 -2
- package/src/form/ScriptLoader.tsx +1 -2
- package/src/form/Shipping.tsx +75 -77
- package/src/form/TicketForm.tsx +3 -3
- package/src/locales/en.tsx +1 -1
- package/src/utils/types/event.type.ts +0 -6
- package/tsconfig.build.json +1 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Theme } from '@mui/material/styles';
|
|
3
|
+
import { BoxProps, SxProps } from '@mui/material';
|
|
4
|
+
export type ImageRatio = '4/3' | '3/4' | '6/4' | '4/6' | '16/9' | '9/16' | '21/9' | '9/21' | '1/1';
|
|
5
|
+
interface Props extends BoxProps {
|
|
6
|
+
src?: string;
|
|
7
|
+
alt?: string;
|
|
8
|
+
sx?: SxProps<Theme>;
|
|
9
|
+
ratio?: ImageRatio;
|
|
10
|
+
disabledEffect?: boolean;
|
|
11
|
+
objectFit?: 'cover' | 'contain';
|
|
12
|
+
}
|
|
13
|
+
export default function Image({ ratio, disabledEffect, objectFit, sx, src, alt, ...other }: Props): React.JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BoxProps } from '@mui/material';
|
|
3
|
+
import { ColorSchema } from '@utils/types/palette.type';
|
|
4
|
+
type LabelColor = 'default' | ColorSchema;
|
|
5
|
+
type LabelVariant = 'filled' | 'outlined' | 'ghost';
|
|
6
|
+
interface LabelProps extends BoxProps {
|
|
7
|
+
color?: LabelColor;
|
|
8
|
+
variant?: LabelVariant;
|
|
9
|
+
}
|
|
10
|
+
export default function Label({ color, variant, children, sx }: LabelProps): React.JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { ReactElement } from 'react';
|
|
2
|
+
import { StackProps, SxProps } from '@mui/material';
|
|
3
|
+
interface Props extends StackProps {
|
|
4
|
+
icon: ReactElement;
|
|
5
|
+
value: any;
|
|
6
|
+
endIcon?: boolean;
|
|
7
|
+
sx?: SxProps;
|
|
8
|
+
}
|
|
9
|
+
export default function TextIconLabel({ icon, value, endIcon, sx, ...other }: Props): React.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { JSX } from 'react';
|
|
2
|
+
type TransProps = {
|
|
3
|
+
text: string;
|
|
4
|
+
values?: Record<string, string | number>;
|
|
5
|
+
components?: Record<string | number, JSX.Element>;
|
|
6
|
+
enableMarkdown?: boolean;
|
|
7
|
+
pluralRules?: {
|
|
8
|
+
[key: string]: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export declare const Trans: React.FC<TransProps>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DialogProps, SxProps } from '@mui/material';
|
|
3
|
+
export interface Props extends DialogProps {
|
|
4
|
+
variants?: Record<string, unknown>;
|
|
5
|
+
onClose?: VoidFunction;
|
|
6
|
+
stopAnimation?: boolean;
|
|
7
|
+
paperComponentSx?: SxProps;
|
|
8
|
+
}
|
|
9
|
+
export default function DialogAnimate({ open, stopAnimation, variants, onClose, children, sx, paperComponentSx, ...other }: Props): React.JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IconButtonProps, SxProps } from '@mui/material';
|
|
3
|
+
interface Props extends IconButtonProps {
|
|
4
|
+
sxWrap?: SxProps;
|
|
5
|
+
}
|
|
6
|
+
declare const IconButtonAnimate: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
export default IconButtonAnimate;
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
export default function MotionContainer({ animate, action, children, ...other }: Props): React.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MotionProps } from 'framer-motion';
|
|
2
|
+
import React, { ReactNode } from 'react';
|
|
3
|
+
import { BoxProps } from '@mui/material';
|
|
4
|
+
type IProps = BoxProps & MotionProps;
|
|
5
|
+
interface Props extends IProps {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
disableAnimatedMobile?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export default function MotionViewport({ children, disableAnimatedMobile, ...other }: Props): React.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
export default function TextAnimate({ text, variants, sx, ...other }: TextAnimateProps): React.JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './variants';
|
|
2
|
+
export { default as DialogAnimate } from './DialogAnimate';
|
|
3
|
+
export { default as TextAnimate } from './TextAnimate';
|
|
4
|
+
export { default as IconButtonAnimate } from './IconButtonAnimate';
|
|
5
|
+
export { default as MotionViewport } from './MotionViewport';
|
|
6
|
+
export { default as MotionContainer } from './MotionContainer';
|
|
7
|
+
export { default as MotionLazyContainer } from './MotionLazyContainer';
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { BackgroundType } from '@utils/types/animate';
|
|
2
|
+
export declare const varBgColor: (props?: BackgroundType) => {
|
|
3
|
+
animate: {
|
|
4
|
+
background: string[];
|
|
5
|
+
transition: {
|
|
6
|
+
duration: number;
|
|
7
|
+
ease: "linear" | [number, number, number, 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, number, number, 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, number, number, 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, number, number, 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, number, number, 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, number, number, 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, number, number, 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, number, number, 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, number, number, number] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
};
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { VariantsType } from '@utils/types/animate';
|
|
2
|
+
export declare const varBounce: (props?: VariantsType) => {
|
|
3
|
+
in: {
|
|
4
|
+
animate: {
|
|
5
|
+
scale: number[];
|
|
6
|
+
opacity: number[];
|
|
7
|
+
transition: {
|
|
8
|
+
duration: number;
|
|
9
|
+
ease: "linear" | [number, number, number, number] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
exit: {
|
|
13
|
+
scale: number[];
|
|
14
|
+
opacity: number[];
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
inUp: {
|
|
18
|
+
animate: {
|
|
19
|
+
y: number[];
|
|
20
|
+
scaleY: number[];
|
|
21
|
+
opacity: number[];
|
|
22
|
+
transition: {
|
|
23
|
+
duration: number;
|
|
24
|
+
ease: "linear" | [number, number, number, number] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
exit: {
|
|
28
|
+
y: number[];
|
|
29
|
+
scaleY: number[];
|
|
30
|
+
opacity: number[];
|
|
31
|
+
transition: {
|
|
32
|
+
duration: number;
|
|
33
|
+
ease: "linear" | [number, number, number, number] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
inDown: {
|
|
38
|
+
animate: {
|
|
39
|
+
y: number[];
|
|
40
|
+
scaleY: number[];
|
|
41
|
+
opacity: number[];
|
|
42
|
+
transition: {
|
|
43
|
+
duration: number;
|
|
44
|
+
ease: "linear" | [number, number, number, number] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
exit: {
|
|
48
|
+
y: number[];
|
|
49
|
+
scaleY: number[];
|
|
50
|
+
opacity: number[];
|
|
51
|
+
transition: {
|
|
52
|
+
duration: number;
|
|
53
|
+
ease: "linear" | [number, number, number, number] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
inLeft: {
|
|
58
|
+
animate: {
|
|
59
|
+
x: number[];
|
|
60
|
+
scaleX: number[];
|
|
61
|
+
opacity: number[];
|
|
62
|
+
transition: {
|
|
63
|
+
duration: number;
|
|
64
|
+
ease: "linear" | [number, number, number, number] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
exit: {
|
|
68
|
+
x: number[];
|
|
69
|
+
scaleX: number[];
|
|
70
|
+
opacity: number[];
|
|
71
|
+
transition: {
|
|
72
|
+
duration: number;
|
|
73
|
+
ease: "linear" | [number, number, number, number] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
inRight: {
|
|
78
|
+
animate: {
|
|
79
|
+
x: number[];
|
|
80
|
+
scaleX: number[];
|
|
81
|
+
opacity: number[];
|
|
82
|
+
transition: {
|
|
83
|
+
duration: number;
|
|
84
|
+
ease: "linear" | [number, number, number, number] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
exit: {
|
|
88
|
+
x: number[];
|
|
89
|
+
scaleX: number[];
|
|
90
|
+
opacity: number[];
|
|
91
|
+
transition: {
|
|
92
|
+
duration: number;
|
|
93
|
+
ease: "linear" | [number, number, number, number] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
out: {
|
|
98
|
+
animate: {
|
|
99
|
+
scale: number[];
|
|
100
|
+
opacity: number[];
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
outUp: {
|
|
104
|
+
animate: {
|
|
105
|
+
y: number[];
|
|
106
|
+
scaleY: number[];
|
|
107
|
+
opacity: number[];
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
outDown: {
|
|
111
|
+
animate: {
|
|
112
|
+
y: number[];
|
|
113
|
+
scaleY: number[];
|
|
114
|
+
opacity: number[];
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
outLeft: {
|
|
118
|
+
animate: {
|
|
119
|
+
x: number[];
|
|
120
|
+
scaleX: number[];
|
|
121
|
+
opacity: number[];
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
outRight: {
|
|
125
|
+
animate: {
|
|
126
|
+
x: number[];
|
|
127
|
+
scaleX: number[];
|
|
128
|
+
opacity: number[];
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import { VariantsType } from '@utils/types/animate';
|
|
2
|
+
export declare const varFade: (props?: VariantsType) => {
|
|
3
|
+
in: {
|
|
4
|
+
initial: {
|
|
5
|
+
opacity: number;
|
|
6
|
+
};
|
|
7
|
+
animate: {
|
|
8
|
+
opacity: number;
|
|
9
|
+
transition: (props?: import("@utils/types/animate").TranEnterType) => {
|
|
10
|
+
duration: number;
|
|
11
|
+
ease: "linear" | [number, number, number, number] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
exit: {
|
|
15
|
+
opacity: number;
|
|
16
|
+
transition: (props?: import("@utils/types/animate").TranExitType) => {
|
|
17
|
+
duration: number;
|
|
18
|
+
ease: "linear" | [number, number, number, number] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
inUp: {
|
|
23
|
+
initial: {
|
|
24
|
+
y: number;
|
|
25
|
+
opacity: number;
|
|
26
|
+
};
|
|
27
|
+
animate: {
|
|
28
|
+
y: number;
|
|
29
|
+
opacity: number;
|
|
30
|
+
transition: {
|
|
31
|
+
duration: number;
|
|
32
|
+
ease: "linear" | [number, number, number, number] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
exit: {
|
|
36
|
+
y: number;
|
|
37
|
+
opacity: number;
|
|
38
|
+
transition: {
|
|
39
|
+
duration: number;
|
|
40
|
+
ease: "linear" | [number, number, number, number] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
inDown: {
|
|
45
|
+
initial: {
|
|
46
|
+
y: number;
|
|
47
|
+
opacity: number;
|
|
48
|
+
};
|
|
49
|
+
animate: {
|
|
50
|
+
y: number;
|
|
51
|
+
opacity: number;
|
|
52
|
+
transition: {
|
|
53
|
+
duration: number;
|
|
54
|
+
ease: "linear" | [number, number, number, number] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
exit: {
|
|
58
|
+
y: number;
|
|
59
|
+
opacity: number;
|
|
60
|
+
transition: {
|
|
61
|
+
duration: number;
|
|
62
|
+
ease: "linear" | [number, number, number, number] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
inLeft: {
|
|
67
|
+
initial: {
|
|
68
|
+
x: number;
|
|
69
|
+
opacity: number;
|
|
70
|
+
};
|
|
71
|
+
animate: {
|
|
72
|
+
x: number;
|
|
73
|
+
opacity: number;
|
|
74
|
+
transition: {
|
|
75
|
+
duration: number;
|
|
76
|
+
ease: "linear" | [number, number, number, number] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
exit: {
|
|
80
|
+
x: number;
|
|
81
|
+
opacity: number;
|
|
82
|
+
transition: {
|
|
83
|
+
duration: number;
|
|
84
|
+
ease: "linear" | [number, number, number, number] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
inRight: {
|
|
89
|
+
initial: {
|
|
90
|
+
x: number;
|
|
91
|
+
opacity: number;
|
|
92
|
+
};
|
|
93
|
+
animate: {
|
|
94
|
+
x: number;
|
|
95
|
+
opacity: number;
|
|
96
|
+
transition: {
|
|
97
|
+
duration: number;
|
|
98
|
+
ease: "linear" | [number, number, number, number] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
exit: {
|
|
102
|
+
x: number;
|
|
103
|
+
opacity: number;
|
|
104
|
+
transition: {
|
|
105
|
+
duration: number;
|
|
106
|
+
ease: "linear" | [number, number, number, number] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
out: {
|
|
111
|
+
initial: {
|
|
112
|
+
opacity: number;
|
|
113
|
+
};
|
|
114
|
+
animate: {
|
|
115
|
+
opacity: number;
|
|
116
|
+
transition: {
|
|
117
|
+
duration: number;
|
|
118
|
+
ease: "linear" | [number, number, number, number] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
exit: {
|
|
122
|
+
opacity: number;
|
|
123
|
+
transition: {
|
|
124
|
+
duration: number;
|
|
125
|
+
ease: "linear" | [number, number, number, number] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
outUp: {
|
|
130
|
+
initial: {
|
|
131
|
+
y: number;
|
|
132
|
+
opacity: number;
|
|
133
|
+
};
|
|
134
|
+
animate: {
|
|
135
|
+
y: number;
|
|
136
|
+
opacity: number;
|
|
137
|
+
transition: {
|
|
138
|
+
duration: number;
|
|
139
|
+
ease: "linear" | [number, number, number, number] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
exit: {
|
|
143
|
+
y: number;
|
|
144
|
+
opacity: number;
|
|
145
|
+
transition: {
|
|
146
|
+
duration: number;
|
|
147
|
+
ease: "linear" | [number, number, number, number] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
outDown: {
|
|
152
|
+
initial: {
|
|
153
|
+
y: number;
|
|
154
|
+
opacity: number;
|
|
155
|
+
};
|
|
156
|
+
animate: {
|
|
157
|
+
y: number;
|
|
158
|
+
opacity: number;
|
|
159
|
+
transition: {
|
|
160
|
+
duration: number;
|
|
161
|
+
ease: "linear" | [number, number, number, number] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
exit: {
|
|
165
|
+
y: number;
|
|
166
|
+
opacity: number;
|
|
167
|
+
transition: {
|
|
168
|
+
duration: number;
|
|
169
|
+
ease: "linear" | [number, number, number, number] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
outLeft: {
|
|
174
|
+
initial: {
|
|
175
|
+
x: number;
|
|
176
|
+
opacity: number;
|
|
177
|
+
};
|
|
178
|
+
animate: {
|
|
179
|
+
x: number;
|
|
180
|
+
opacity: number;
|
|
181
|
+
transition: {
|
|
182
|
+
duration: number;
|
|
183
|
+
ease: "linear" | [number, number, number, number] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
exit: {
|
|
187
|
+
x: number;
|
|
188
|
+
opacity: number;
|
|
189
|
+
transition: {
|
|
190
|
+
duration: number;
|
|
191
|
+
ease: "linear" | [number, number, number, number] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
outRight: {
|
|
196
|
+
initial: {
|
|
197
|
+
x: number;
|
|
198
|
+
opacity: number;
|
|
199
|
+
};
|
|
200
|
+
animate: {
|
|
201
|
+
x: number;
|
|
202
|
+
opacity: number;
|
|
203
|
+
transition: {
|
|
204
|
+
duration: number;
|
|
205
|
+
ease: "linear" | [number, number, number, number] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
exit: {
|
|
209
|
+
x: number;
|
|
210
|
+
opacity: number;
|
|
211
|
+
transition: {
|
|
212
|
+
duration: number;
|
|
213
|
+
ease: "linear" | [number, number, number, number] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
};
|