@eventlook/sdk 1.5.0-beta.2 → 1.5.0-beta.4
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-DLC5Hr8L.js +35809 -0
- package/dist/cjs/index-DLC5Hr8L.js.map +1 -0
- package/dist/cjs/index.js +11 -49195
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.umd-BSCKGDNQ.js +13407 -0
- package/dist/cjs/index.umd-BSCKGDNQ.js.map +1 -0
- package/dist/esm/index-BwmbJihM.js +35805 -0
- package/dist/esm/index-BwmbJihM.js.map +1 -0
- package/dist/esm/index.js +10 -49198
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.umd-6fgyuQlr.js +13405 -0
- package/dist/esm/index.umd-6fgyuQlr.js.map +1 -0
- 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 -5
- 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/PaymentPending.tsx +6 -3
- 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,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MuiTelInputProps } from 'mui-tel-input';
|
|
3
|
+
type Props = MuiTelInputProps & {
|
|
4
|
+
name: string;
|
|
5
|
+
defaultCountry?: string;
|
|
6
|
+
};
|
|
7
|
+
export default function RHFPhone({ name, defaultCountry, helperText, ...other }: Props): React.JSX.Element | null;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { RadioGroupProps } from '@mui/material';
|
|
3
|
+
type Props = RadioGroupProps & {
|
|
4
|
+
name: string;
|
|
5
|
+
options: {
|
|
6
|
+
label: React.ReactNode;
|
|
7
|
+
value: any;
|
|
8
|
+
}[];
|
|
9
|
+
label?: string;
|
|
10
|
+
spacing?: number;
|
|
11
|
+
helperText?: React.ReactNode;
|
|
12
|
+
};
|
|
13
|
+
export default function RHFRadioGroup({ row, name, label, options, spacing, helperText, ...other }: Props): React.JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SelectProps, TextFieldProps } from '@mui/material';
|
|
3
|
+
type RHFSelectProps = TextFieldProps & {
|
|
4
|
+
name: string;
|
|
5
|
+
native?: boolean;
|
|
6
|
+
maxHeight?: boolean | number | string;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
};
|
|
9
|
+
export declare function RHFSelect({ name, native, maxHeight, helperText, children, ...other }: RHFSelectProps): React.JSX.Element;
|
|
10
|
+
type RHFMultiSelectProps = SelectProps & {
|
|
11
|
+
name: string;
|
|
12
|
+
label?: string;
|
|
13
|
+
chip?: boolean;
|
|
14
|
+
checkbox?: boolean;
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
helperText?: React.ReactNode;
|
|
17
|
+
options: {
|
|
18
|
+
label: string;
|
|
19
|
+
value: string;
|
|
20
|
+
}[];
|
|
21
|
+
};
|
|
22
|
+
export declare function RHFMultiSelect({ name, chip, label, options, checkbox, placeholder, helperText, sx, ...other }: RHFMultiSelectProps): React.JSX.Element;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FormControlLabelProps } from '@mui/material';
|
|
3
|
+
interface Props extends Omit<FormControlLabelProps, 'control'> {
|
|
4
|
+
name: string;
|
|
5
|
+
helperText?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export default function RHFSwitch({ name, helperText, ...other }: Props): React.JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './RHFSelect';
|
|
2
|
+
export * from './RHFCheckbox';
|
|
3
|
+
export { default } from './FormProvider';
|
|
4
|
+
export { default as RHFCodes } from './RHFCodes';
|
|
5
|
+
export { default as RHFSwitch } from './RHFSwitch';
|
|
6
|
+
export { default as RHFSlider } from './RHFSlider';
|
|
7
|
+
export { default as RHFTextField } from './RHFTextField';
|
|
8
|
+
export { default as RHFRadioGroup } from './RHFRadioGroup';
|
|
9
|
+
export { default as RHFAutocomplete } from './RHFAutocomplete';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IconifyIcon } from '@iconify/react';
|
|
3
|
+
import { BoxProps, SxProps } from '@mui/material';
|
|
4
|
+
import { Theme } from '@mui/material/styles';
|
|
5
|
+
interface Props extends BoxProps {
|
|
6
|
+
sx?: SxProps<Theme>;
|
|
7
|
+
icon: IconifyIcon | string;
|
|
8
|
+
}
|
|
9
|
+
export default function Iconify({ icon, sx, ...other }: Props): React.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { IGlobalContext } from '@utils/types/global.type';
|
|
3
|
+
import { Languages } from '@utils/data/language';
|
|
4
|
+
declare const GlobalContext: React.Context<IGlobalContext>;
|
|
5
|
+
type Props = {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
lang: Languages;
|
|
8
|
+
callbacks: IGlobalContext['callbacks'];
|
|
9
|
+
links: IGlobalContext['links'];
|
|
10
|
+
showSnackbar?: IGlobalContext['showSnackbar'];
|
|
11
|
+
options?: IGlobalContext['options'];
|
|
12
|
+
content?: IGlobalContext['content'];
|
|
13
|
+
seatingIframeUrl?: IGlobalContext['seatingIframeUrl'];
|
|
14
|
+
};
|
|
15
|
+
declare function GlobalProvider({ children, lang, showSnackbar, callbacks, links, options, content, seatingIframeUrl, }: Props): React.JSX.Element;
|
|
16
|
+
export { GlobalProvider, GlobalContext };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IEventProduct } from '@utils/types/event-product.type';
|
|
3
|
+
interface Props {
|
|
4
|
+
eventProducts: IEventProduct[];
|
|
5
|
+
eventId: number;
|
|
6
|
+
isLoading?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const MerchandiseSelection: React.FC<Props>;
|
|
9
|
+
export default MerchandiseSelection;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React, { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
gwUrl: string;
|
|
4
|
+
setIsPaying: Dispatch<SetStateAction<boolean>>;
|
|
5
|
+
isIframe?: boolean;
|
|
6
|
+
isInline?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const OrderSuccess: React.FC<Props>;
|
|
9
|
+
export default OrderSuccess;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React, { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import { IPixels } from '@utils/types/gtm.type';
|
|
3
|
+
interface Props {
|
|
4
|
+
setIsPaying: Dispatch<SetStateAction<boolean>>;
|
|
5
|
+
isIframe?: boolean;
|
|
6
|
+
pixels?: IPixels;
|
|
7
|
+
}
|
|
8
|
+
declare const PaymentSuccess: React.FC<Props>;
|
|
9
|
+
export default PaymentSuccess;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React, { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import { IEvent } from '@utils/types/event.type';
|
|
3
|
+
interface Props {
|
|
4
|
+
event: IEvent;
|
|
5
|
+
setShowReleaseDate: Dispatch<SetStateAction<boolean>>;
|
|
6
|
+
}
|
|
7
|
+
declare const ReleaseCountdown: React.FC<Props>;
|
|
8
|
+
export default ReleaseCountdown;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IReleaseShort } from '@utils/types/release.type';
|
|
3
|
+
import { Currencies } from '@utils/data/currency';
|
|
4
|
+
interface Props {
|
|
5
|
+
eventId: number;
|
|
6
|
+
release: IReleaseShort;
|
|
7
|
+
activeReleases: IReleaseShort[];
|
|
8
|
+
currency: Currencies;
|
|
9
|
+
index: number;
|
|
10
|
+
}
|
|
11
|
+
declare const ReleaseWithMerchandise: React.FC<Props>;
|
|
12
|
+
export default ReleaseWithMerchandise;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IEvent } from '@utils/types/event.type';
|
|
3
|
+
interface Props {
|
|
4
|
+
event: IEvent;
|
|
5
|
+
hasGopayIdSsr: boolean;
|
|
6
|
+
selectedReleaseId?: number;
|
|
7
|
+
isIframe?: boolean;
|
|
8
|
+
isInline?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const TicketForm: React.FC<Props>;
|
|
11
|
+
export default TicketForm;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IEventExtraField } from '@utils/types/extra-field.type';
|
|
3
|
+
interface Props {
|
|
4
|
+
extraField: IEventExtraField;
|
|
5
|
+
name: `extraFields.${number}.value` | `tickets.${number}.${number}.extraFields.${number}.${number}.value`;
|
|
6
|
+
size?: 'small' | 'medium';
|
|
7
|
+
}
|
|
8
|
+
declare const ExtraField: React.FC<Props>;
|
|
9
|
+
export default ExtraField;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IReleaseShort } from '@utils/types/release.type';
|
|
3
|
+
interface Props {
|
|
4
|
+
release: IReleaseShort;
|
|
5
|
+
eventId: number;
|
|
6
|
+
releaseIndex: number;
|
|
7
|
+
quantity: number;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: React.NamedExoticComponent<Props>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import 'dayjs/locale/cs';
|
|
2
|
+
import 'dayjs/locale/en';
|
|
3
|
+
import 'dayjs/locale/de';
|
|
4
|
+
import 'dayjs/locale/es';
|
|
5
|
+
import 'dayjs/locale/uk';
|
|
6
|
+
import 'dayjs/locale/sk';
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import { Languages } from '@utils/data/language';
|
|
9
|
+
import { IContent, IGlobalContext, IGlobalContextOptions } from '@utils/types/global.type';
|
|
10
|
+
import { IUser } from '@utils/types/user.type';
|
|
11
|
+
export interface OrderFormProps {
|
|
12
|
+
eventSlug: string;
|
|
13
|
+
apiUrl: string;
|
|
14
|
+
seatingIframeUrl?: string;
|
|
15
|
+
callbacks: IGlobalContext['callbacks'];
|
|
16
|
+
links: IGlobalContext['links'];
|
|
17
|
+
lang?: Languages;
|
|
18
|
+
slots?: {
|
|
19
|
+
showSnackbar: IGlobalContext['showSnackbar'];
|
|
20
|
+
};
|
|
21
|
+
user?: IUser;
|
|
22
|
+
selectedReleaseId?: number;
|
|
23
|
+
options?: IGlobalContextOptions;
|
|
24
|
+
content?: IContent;
|
|
25
|
+
}
|
|
26
|
+
export default function Index(props: OrderFormProps): React.JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { JSX } from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
checkboxName: string;
|
|
4
|
+
label: string;
|
|
5
|
+
value: string | JSX.Element;
|
|
6
|
+
modal: {
|
|
7
|
+
title: string;
|
|
8
|
+
description: string | JSX.Element;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
declare const PaymentOverviewCheckbox: React.FC<Props>;
|
|
12
|
+
export default PaymentOverviewCheckbox;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IEventProduct } from '@utils/types/event-product.type';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface Props {
|
|
4
|
+
eventProduct: IEventProduct;
|
|
5
|
+
eventId: number;
|
|
6
|
+
isOnlyMerchandise?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const ProductCard: React.FC<Props>;
|
|
9
|
+
export default ProductCard;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IEventProduct } from '@utils/types/event-product.type';
|
|
3
|
+
import { IEventProductForm } from '@utils/types/product.type';
|
|
4
|
+
interface Props {
|
|
5
|
+
eventProduct: IEventProduct;
|
|
6
|
+
eventId: number;
|
|
7
|
+
openDialog: boolean;
|
|
8
|
+
callback: (variant: IEventProductForm) => void;
|
|
9
|
+
onClose?: () => void;
|
|
10
|
+
selectedQuantityByVariant?: Record<number, number>;
|
|
11
|
+
isOnlyMerchandise?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare const ProductVariantsDialog: React.FC<Props>;
|
|
14
|
+
export default ProductVariantsDialog;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const OverviewCard: import("@emotion/styled").StyledComponent<import("@mui/material").CardOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "className" | "style" | "classes" | "children" | "sx" | "square" | "elevation" | "variant" | "raised"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
2
|
+
stickyHeaderTop: number;
|
|
3
|
+
}, {}, {}>;
|
|
4
|
+
export declare const ShippingMethodItem: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
5
|
+
active: boolean;
|
|
6
|
+
}, {}, {}>;
|
|
7
|
+
export declare const PaymentWrapper: import("@emotion/styled").StyledComponent<import("@mui/material").FormControlOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "className" | "style" | "classes" | "color" | "margin" | "children" | "sx" | "size" | "disabled" | "fullWidth" | "variant" | "error" | "focused" | "hiddenLabel" | "required"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
8
|
+
export declare const PaymentItem: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
9
|
+
active: boolean;
|
|
10
|
+
}, {}, {}>;
|
|
11
|
+
export declare const PaymentSwiftWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import { Dayjs } from 'dayjs';
|
|
3
|
+
interface Props {
|
|
4
|
+
selectedDay: string | null;
|
|
5
|
+
selectedDays: string[];
|
|
6
|
+
setSelectedDate: (date: string | null) => void;
|
|
7
|
+
activeMonth?: Dayjs;
|
|
8
|
+
setActiveMonth?: Dispatch<SetStateAction<Dayjs | null>>;
|
|
9
|
+
disableUnselectedDays?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const TimeslotCalendar: React.FC<Props>;
|
|
12
|
+
export default TimeslotCalendar;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IEventProduct } from '@utils/types/event-product.type';
|
|
2
|
+
export default function useActiveEventProducts(id?: number, inlcudeChildren?: boolean): {
|
|
3
|
+
data: IEventProduct[];
|
|
4
|
+
error: any;
|
|
5
|
+
mutate: import("swr").KeyedMutator<IEventProduct[]>;
|
|
6
|
+
isValidating: boolean;
|
|
7
|
+
isLoading: boolean;
|
|
8
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Currencies } from '@utils/data/currency';
|
|
2
|
+
import { IPaymentMethod } from '@utils/types/payment-method.type';
|
|
3
|
+
export default function useAllowedPaymentMethods(currency: Currencies, eventId?: number): {
|
|
4
|
+
data: IPaymentMethod[] | undefined;
|
|
5
|
+
error: any;
|
|
6
|
+
mutate: import("swr").KeyedMutator<IPaymentMethod[]>;
|
|
7
|
+
isValidating: boolean;
|
|
8
|
+
isLoading: boolean;
|
|
9
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IReleaseShort } from '@utils/types/release.type';
|
|
2
|
+
export default function useEventActiveReleases(id?: number, includeChildren?: boolean, timeslotId?: number | null): {
|
|
3
|
+
data: IReleaseShort[] | undefined;
|
|
4
|
+
error: any;
|
|
5
|
+
mutate: import("swr").KeyedMutator<IReleaseShort[]>;
|
|
6
|
+
isValidating: boolean;
|
|
7
|
+
isLoading: boolean;
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IShippingMethod, IShippingMethodFilter } from '@utils/types/shipping-method.type';
|
|
2
|
+
export default function useEventShippingMethods(id?: number, filters?: IShippingMethodFilter): {
|
|
3
|
+
data: IShippingMethod[];
|
|
4
|
+
error: any;
|
|
5
|
+
mutate: import("swr").KeyedMutator<IShippingMethod[]>;
|
|
6
|
+
isValidating: boolean;
|
|
7
|
+
isLoading: boolean;
|
|
8
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IPaginate } from '@utils/types/global.type';
|
|
2
|
+
import { IEventTimeslotDate, IEventTimeslotFilters } from '@utils/types/event-timeslot.type';
|
|
3
|
+
export default function useEventTimeslots(eventId: number, filters?: IEventTimeslotFilters): {
|
|
4
|
+
data: IEventTimeslotDate[];
|
|
5
|
+
meta: import("@utils/types/global.type").IMeta | undefined;
|
|
6
|
+
error: any;
|
|
7
|
+
mutate: import("swr").KeyedMutator<IPaginate<IEventTimeslotDate[]>>;
|
|
8
|
+
isValidating: boolean;
|
|
9
|
+
isLoading: boolean;
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function useDebounce<T>(value: T, delay: number): T;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
declare function useEventListener<K extends keyof WindowEventMap>(eventName: K, handler: (event: WindowEventMap[K]) => void, element?: undefined, options?: boolean | AddEventListenerOptions): void;
|
|
3
|
+
declare function useEventListener<K extends keyof HTMLElementEventMap, T extends HTMLElement = HTMLDivElement>(eventName: K, handler: (event: HTMLElementEventMap[K]) => void, element: RefObject<T>, options?: boolean | AddEventListenerOptions): void;
|
|
4
|
+
declare function useEventListener<K extends keyof DocumentEventMap>(eventName: K, handler: (event: DocumentEventMap[K]) => void, element: RefObject<Document>, options?: boolean | AddEventListenerOptions): void;
|
|
5
|
+
export default useEventListener;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useFirstRender(): boolean;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Breakpoint } from '@mui/material';
|
|
2
|
+
type Query = 'up' | 'down' | 'between' | 'only';
|
|
3
|
+
type Key = Breakpoint | number;
|
|
4
|
+
type Start = Breakpoint | number;
|
|
5
|
+
type End = Breakpoint | number;
|
|
6
|
+
export default function useResponsive(query: Query, key?: Key, start?: Start, end?: End): boolean | undefined;
|
|
7
|
+
export declare function useWidth(): "xs" | "sm" | "md" | "lg" | "xl";
|
|
8
|
+
export {};
|