@eventlook/sdk 1.5.0-beta.6 → 1.5.0-beta.7
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/.claude/settings.local.json +2 -1
- package/.env.example +1 -0
- package/README.md +18 -16
- package/dist/cjs/{index-DvUR1fp8.js → index-BAfaeq84.js} +3230 -554
- package/dist/cjs/index-BAfaeq84.js.map +1 -0
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/{index.umd-6SU6nkkJ.js → index.umd-Bpwd9vUs.js} +9 -19
- package/dist/cjs/index.umd-Bpwd9vUs.js.map +1 -0
- package/dist/esm/{index-BlTqx0jm.js → index-CJ_gPli9.js} +3217 -540
- package/dist/esm/index-CJ_gPli9.js.map +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/{index.umd-Dn0hjh7E.js → index.umd-ewNTELOK.js} +9 -19
- package/dist/esm/index.umd-ewNTELOK.js.map +1 -0
- package/dist/types/components/hook-form/FormProvider.d.ts +2 -1
- package/dist/types/form/PaymentOverviewBox.d.ts +2 -0
- package/dist/types/form/PaymentOverviewDrawer.d.ts +10 -0
- package/dist/types/form/TicketForm.d.ts +1 -0
- package/dist/types/form/index.d.ts +2 -1
- package/dist/types/form/merchandise/MerchandiseSelection.d.ts +9 -0
- package/dist/types/form/merchandise/MerchandiseSlider.d.ts +10 -0
- package/dist/types/form/payment/PaymentOverviewCheckbox.d.ts +0 -4
- package/dist/types/form/product/ProductVariantsDialog.d.ts +2 -1
- package/dist/types/form/services/index.d.ts +7 -0
- package/dist/types/form/style.d.ts +1 -0
- package/dist/types/form/tickets/ReleaseDescription.d.ts +10 -0
- package/dist/types/form/tickets/ReleaseWithMerchandise.d.ts +12 -0
- package/dist/types/form/tickets/TicketQuantityControl.d.ts +13 -0
- package/dist/types/form/tickets/TicketSelectionMobile.d.ts +17 -0
- package/dist/types/hooks/useScrollToFirstError.d.ts +4 -0
- package/dist/types/locales/cs.d.ts +22 -0
- package/dist/types/locales/en.d.ts +22 -0
- package/dist/types/locales/es.d.ts +22 -0
- package/dist/types/locales/pl.d.ts +22 -0
- package/dist/types/locales/sk.d.ts +22 -0
- package/dist/types/locales/uk.d.ts +22 -0
- package/dist/types/utils/data/global.d.ts +1 -0
- package/package.json +10 -4
- package/rollup.config.mjs +7 -12
- package/src/components/hook-form/FormProvider.tsx +5 -2
- package/src/form/ChildEventDialog.tsx +3 -3
- package/src/form/ContactPerson.tsx +1 -1
- package/src/form/PaymentOverviewBox.tsx +96 -123
- package/src/form/PaymentOverviewDrawer.tsx +446 -0
- package/src/form/PaymentPending.tsx +19 -4
- package/src/form/ReleaseWithMerchandise.tsx +4 -4
- package/src/form/Shipping.tsx +91 -74
- package/src/form/TicketForm.tsx +144 -41
- package/src/form/index.tsx +3 -1
- package/src/form/merchandise/MerchandiseSelection.tsx +24 -0
- package/src/form/merchandise/MerchandiseSlider.tsx +62 -0
- package/src/form/payment/FeeBox.tsx +4 -31
- package/src/form/payment/PaymentOverviewCheckbox.tsx +57 -56
- package/src/form/product/ProductCard.tsx +255 -59
- package/src/form/product/ProductVariantsDialog.tsx +271 -141
- package/src/form/services/index.tsx +263 -0
- package/src/form/style.ts +16 -4
- package/src/form/tickets/ReleaseDescription.tsx +46 -0
- package/src/form/tickets/ReleaseWithMerchandise.tsx +231 -0
- package/src/form/tickets/TicketQuantityControl.tsx +100 -0
- package/src/form/{TicketSelection.tsx → tickets/TicketSelection.tsx} +24 -128
- package/src/form/{TicketSelectionMap.tsx → tickets/TicketSelectionMap.tsx} +9 -1
- package/src/form/tickets/TicketSelectionMobile.tsx +177 -0
- package/src/form/{TicketWithMerchandiseSelection.tsx → tickets/TicketWithMerchandiseSelection.tsx} +3 -7
- package/src/hooks/useScrollToFirstError.ts +99 -0
- package/src/locales/cs.tsx +25 -3
- package/src/locales/en.tsx +23 -1
- package/src/locales/es.tsx +23 -1
- package/src/locales/pl.tsx +23 -1
- package/src/locales/sk.tsx +24 -2
- package/src/locales/uk.tsx +23 -1
- package/src/utils/data/global.ts +1 -0
- package/tsconfig.json +1 -1
- package/README +0 -1
- package/dist/cjs/index-DvUR1fp8.js.map +0 -1
- package/dist/cjs/index.umd-6SU6nkkJ.js.map +0 -1
- package/dist/esm/index-BlTqx0jm.js.map +0 -1
- package/dist/esm/index.umd-Dn0hjh7E.js.map +0 -1
- /package/dist/types/form/{TicketSelection.d.ts → tickets/TicketSelection.d.ts} +0 -0
- /package/dist/types/form/{TicketSelectionMap.d.ts → tickets/TicketSelectionMap.d.ts} +0 -0
- /package/dist/types/form/{TicketWithMerchandiseSelection.d.ts → tickets/TicketWithMerchandiseSelection.d.ts} +0 -0
|
@@ -4,6 +4,7 @@ type Props = {
|
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
methods: UseFormReturn<any>;
|
|
6
6
|
onSubmit?: VoidFunction;
|
|
7
|
+
formId?: string;
|
|
7
8
|
};
|
|
8
|
-
export default function FormProvider({ children, onSubmit, methods }: Props): React.JSX.Element;
|
|
9
|
+
export default function FormProvider({ children, onSubmit, methods, formId }: Props): React.JSX.Element;
|
|
9
10
|
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IEvent } from '@utils/types/event.type';
|
|
3
|
+
interface Props {
|
|
4
|
+
event: IEvent;
|
|
5
|
+
totalPrice: number;
|
|
6
|
+
termsAndConditionsRef?: React.RefObject<HTMLElement | null>;
|
|
7
|
+
onOpenChange?: (open: boolean) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const PaymentOverviewDrawer: React.FC<Props>;
|
|
10
|
+
export default PaymentOverviewDrawer;
|
|
@@ -4,7 +4,7 @@ import 'dayjs/locale/de';
|
|
|
4
4
|
import 'dayjs/locale/es';
|
|
5
5
|
import 'dayjs/locale/uk';
|
|
6
6
|
import 'dayjs/locale/sk';
|
|
7
|
-
import React from 'react';
|
|
7
|
+
import React, { ReactNode } from 'react';
|
|
8
8
|
import { Languages } from '@utils/data/language';
|
|
9
9
|
import { IContent, IGlobalContext, IGlobalContextOptions } from '@utils/types/global.type';
|
|
10
10
|
import { IUser } from '@utils/types/user.type';
|
|
@@ -17,6 +17,7 @@ export interface OrderFormProps {
|
|
|
17
17
|
lang?: Languages;
|
|
18
18
|
slots?: {
|
|
19
19
|
showSnackbar: IGlobalContext['showSnackbar'];
|
|
20
|
+
headerSlot?: ReactNode;
|
|
20
21
|
};
|
|
21
22
|
user?: IUser;
|
|
22
23
|
selectedReleaseId?: number;
|
|
@@ -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,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SxProps } from '@mui/material';
|
|
3
|
+
import { IEventProduct } from '@utils/types/event-product.type';
|
|
4
|
+
interface Props {
|
|
5
|
+
sx?: SxProps;
|
|
6
|
+
eventProducts: IEventProduct[];
|
|
7
|
+
eventId: number;
|
|
8
|
+
}
|
|
9
|
+
declare const MerchandiseSlider: React.FC<Props>;
|
|
10
|
+
export default MerchandiseSlider;
|
|
@@ -3,10 +3,6 @@ interface Props {
|
|
|
3
3
|
checkboxName: string;
|
|
4
4
|
label: string;
|
|
5
5
|
value: string | JSX.Element;
|
|
6
|
-
modal: {
|
|
7
|
-
title: string;
|
|
8
|
-
description: string | JSX.Element;
|
|
9
|
-
};
|
|
10
6
|
}
|
|
11
7
|
declare const PaymentOverviewCheckbox: React.FC<Props>;
|
|
12
8
|
export default PaymentOverviewCheckbox;
|
|
@@ -5,10 +5,11 @@ interface Props {
|
|
|
5
5
|
eventProduct: IEventProduct;
|
|
6
6
|
eventId: number;
|
|
7
7
|
openDialog: boolean;
|
|
8
|
-
callback: (
|
|
8
|
+
callback: (variants: IEventProductForm[]) => void;
|
|
9
9
|
onClose?: () => void;
|
|
10
10
|
selectedQuantityByVariant?: Record<number, number>;
|
|
11
11
|
isOnlyMerchandise?: boolean;
|
|
12
|
+
canAddOnlyOneAtATime?: boolean;
|
|
12
13
|
}
|
|
13
14
|
declare const ProductVariantsDialog: React.FC<Props>;
|
|
14
15
|
export default ProductVariantsDialog;
|
|
@@ -3,6 +3,7 @@ export declare const OverviewCard: import("@emotion/styled").StyledComponent<imp
|
|
|
3
3
|
}, {}, {}>;
|
|
4
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
5
|
active: boolean;
|
|
6
|
+
hasError?: boolean;
|
|
6
7
|
}, {}, {}>;
|
|
7
8
|
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
9
|
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> & {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ReleaseDescriptionProps {
|
|
3
|
+
description?: string | null;
|
|
4
|
+
isExpanded: boolean;
|
|
5
|
+
onToggle: () => void;
|
|
6
|
+
moreInfoLabel: string;
|
|
7
|
+
showCollapse?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const ReleaseDescription: React.FC<ReleaseDescriptionProps>;
|
|
10
|
+
export default ReleaseDescription;
|
|
@@ -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,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface TicketQuantityControlProps {
|
|
3
|
+
quantity: number;
|
|
4
|
+
isDisabled: boolean;
|
|
5
|
+
canAddFirst: boolean;
|
|
6
|
+
canAddMore: boolean;
|
|
7
|
+
addLabel: string;
|
|
8
|
+
onDecrement: () => void;
|
|
9
|
+
onIncrement: () => void;
|
|
10
|
+
onAddFirst: () => void;
|
|
11
|
+
}
|
|
12
|
+
declare const TicketQuantityControl: React.FC<TicketQuantityControlProps>;
|
|
13
|
+
export default TicketQuantityControl;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IEvent } from '@utils/types/event.type';
|
|
3
|
+
import { IReleaseShort } from '@utils/types/release.type';
|
|
4
|
+
import { ITicketFormTicket } from '@utils/types/ticket.type';
|
|
5
|
+
interface Props {
|
|
6
|
+
event: IEvent;
|
|
7
|
+
activeReleases?: IReleaseShort[];
|
|
8
|
+
showLoading: boolean;
|
|
9
|
+
soldOutReleaseCategoryNames: string[];
|
|
10
|
+
tickets: ITicketFormTicket[];
|
|
11
|
+
isQuantityDisabled: (value: number, releaseId: number | '') => boolean;
|
|
12
|
+
setValue: (name: string, value: any) => void;
|
|
13
|
+
removeTicket: (indexToRemove: number) => void;
|
|
14
|
+
getExtraFields: (releaseId: number | '', index: number) => React.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
declare const TicketSelectionMobile: React.FC<Props>;
|
|
17
|
+
export default TicketSelectionMobile;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FieldErrors, FieldValues, UseFormReturn } from 'react-hook-form';
|
|
2
|
+
type ScrollToFirstErrorMethods<T extends FieldValues> = Pick<UseFormReturn<T, object, undefined>, 'setFocus'>;
|
|
3
|
+
export default function useScrollToFirstError<T extends FieldValues>({ setFocus, }: ScrollToFirstErrorMethods<T>): (errors: FieldErrors<T>) => void;
|
|
4
|
+
export {};
|
|
@@ -7,6 +7,8 @@ declare const cs: {
|
|
|
7
7
|
add: string;
|
|
8
8
|
confirm: string;
|
|
9
9
|
cancel: string;
|
|
10
|
+
close: string;
|
|
11
|
+
remove: string;
|
|
10
12
|
pay: string;
|
|
11
13
|
change: string;
|
|
12
14
|
free: string;
|
|
@@ -52,6 +54,10 @@ declare const cs: {
|
|
|
52
54
|
category: string;
|
|
53
55
|
sms_notification: string;
|
|
54
56
|
open_map: string;
|
|
57
|
+
payment_overview_open: string;
|
|
58
|
+
payment_overview_close: string;
|
|
59
|
+
ticket_quantity_decrease: string;
|
|
60
|
+
ticket_quantity_increase: string;
|
|
55
61
|
};
|
|
56
62
|
validation: {
|
|
57
63
|
required: string;
|
|
@@ -102,6 +108,10 @@ declare const cs: {
|
|
|
102
108
|
7: {
|
|
103
109
|
title: string;
|
|
104
110
|
};
|
|
111
|
+
8: {
|
|
112
|
+
title: string;
|
|
113
|
+
additional_info: string;
|
|
114
|
+
};
|
|
105
115
|
};
|
|
106
116
|
terms_and_conditions: string;
|
|
107
117
|
insurance: {
|
|
@@ -120,6 +130,16 @@ declare const cs: {
|
|
|
120
130
|
price: string;
|
|
121
131
|
};
|
|
122
132
|
};
|
|
133
|
+
merchandise: {
|
|
134
|
+
show_sizes: string;
|
|
135
|
+
show_added: string;
|
|
136
|
+
};
|
|
137
|
+
services: {
|
|
138
|
+
add_tickets_first: string;
|
|
139
|
+
};
|
|
140
|
+
shipping: {
|
|
141
|
+
choose_address: string;
|
|
142
|
+
};
|
|
123
143
|
order_success: {
|
|
124
144
|
title: string;
|
|
125
145
|
description: string;
|
|
@@ -151,6 +171,8 @@ declare const cs: {
|
|
|
151
171
|
components: {
|
|
152
172
|
product_variant_dialog: {
|
|
153
173
|
select_variant: string;
|
|
174
|
+
decrease_quantity: string;
|
|
175
|
+
increase_quantity: string;
|
|
154
176
|
};
|
|
155
177
|
};
|
|
156
178
|
};
|
|
@@ -7,6 +7,8 @@ declare const en: {
|
|
|
7
7
|
add: string;
|
|
8
8
|
confirm: string;
|
|
9
9
|
cancel: string;
|
|
10
|
+
close: string;
|
|
11
|
+
remove: string;
|
|
10
12
|
pay: string;
|
|
11
13
|
change: string;
|
|
12
14
|
free: string;
|
|
@@ -52,6 +54,10 @@ declare const en: {
|
|
|
52
54
|
category: string;
|
|
53
55
|
sms_notification: string;
|
|
54
56
|
open_map: string;
|
|
57
|
+
payment_overview_open: string;
|
|
58
|
+
payment_overview_close: string;
|
|
59
|
+
ticket_quantity_decrease: string;
|
|
60
|
+
ticket_quantity_increase: string;
|
|
55
61
|
};
|
|
56
62
|
validation: {
|
|
57
63
|
required: string;
|
|
@@ -102,6 +108,10 @@ declare const en: {
|
|
|
102
108
|
7: {
|
|
103
109
|
title: string;
|
|
104
110
|
};
|
|
111
|
+
8: {
|
|
112
|
+
title: string;
|
|
113
|
+
additional_info: string;
|
|
114
|
+
};
|
|
105
115
|
};
|
|
106
116
|
terms_and_conditions: string;
|
|
107
117
|
insurance: {
|
|
@@ -121,6 +131,16 @@ declare const en: {
|
|
|
121
131
|
price: string;
|
|
122
132
|
};
|
|
123
133
|
};
|
|
134
|
+
merchandise: {
|
|
135
|
+
show_sizes: string;
|
|
136
|
+
show_added: string;
|
|
137
|
+
};
|
|
138
|
+
services: {
|
|
139
|
+
add_tickets_first: string;
|
|
140
|
+
};
|
|
141
|
+
shipping: {
|
|
142
|
+
choose_address: string;
|
|
143
|
+
};
|
|
124
144
|
order_success: {
|
|
125
145
|
title: string;
|
|
126
146
|
description: string;
|
|
@@ -152,6 +172,8 @@ declare const en: {
|
|
|
152
172
|
components: {
|
|
153
173
|
product_variant_dialog: {
|
|
154
174
|
select_variant: string;
|
|
175
|
+
decrease_quantity: string;
|
|
176
|
+
increase_quantity: string;
|
|
155
177
|
};
|
|
156
178
|
};
|
|
157
179
|
};
|
|
@@ -7,6 +7,8 @@ declare const es: {
|
|
|
7
7
|
add: string;
|
|
8
8
|
confirm: string;
|
|
9
9
|
cancel: string;
|
|
10
|
+
close: string;
|
|
11
|
+
remove: string;
|
|
10
12
|
pay: string;
|
|
11
13
|
change: string;
|
|
12
14
|
free: string;
|
|
@@ -52,6 +54,10 @@ declare const es: {
|
|
|
52
54
|
category: string;
|
|
53
55
|
sms_notification: string;
|
|
54
56
|
open_map: string;
|
|
57
|
+
payment_overview_open: string;
|
|
58
|
+
payment_overview_close: string;
|
|
59
|
+
ticket_quantity_decrease: string;
|
|
60
|
+
ticket_quantity_increase: string;
|
|
55
61
|
};
|
|
56
62
|
validation: {
|
|
57
63
|
required: string;
|
|
@@ -102,6 +108,10 @@ declare const es: {
|
|
|
102
108
|
7: {
|
|
103
109
|
title: string;
|
|
104
110
|
};
|
|
111
|
+
8: {
|
|
112
|
+
title: string;
|
|
113
|
+
additional_info: string;
|
|
114
|
+
};
|
|
105
115
|
};
|
|
106
116
|
terms_and_conditions: string;
|
|
107
117
|
insurance: {
|
|
@@ -121,6 +131,16 @@ declare const es: {
|
|
|
121
131
|
price: string;
|
|
122
132
|
};
|
|
123
133
|
};
|
|
134
|
+
merchandise: {
|
|
135
|
+
show_sizes: string;
|
|
136
|
+
show_added: string;
|
|
137
|
+
};
|
|
138
|
+
services: {
|
|
139
|
+
add_tickets_first: string;
|
|
140
|
+
};
|
|
141
|
+
shipping: {
|
|
142
|
+
choose_address: string;
|
|
143
|
+
};
|
|
124
144
|
order_success: {
|
|
125
145
|
title: string;
|
|
126
146
|
description: string;
|
|
@@ -152,6 +172,8 @@ declare const es: {
|
|
|
152
172
|
components: {
|
|
153
173
|
product_variant_dialog: {
|
|
154
174
|
select_variant: string;
|
|
175
|
+
decrease_quantity: string;
|
|
176
|
+
increase_quantity: string;
|
|
155
177
|
};
|
|
156
178
|
};
|
|
157
179
|
};
|
|
@@ -7,6 +7,8 @@ declare const pl: {
|
|
|
7
7
|
add: string;
|
|
8
8
|
confirm: string;
|
|
9
9
|
cancel: string;
|
|
10
|
+
close: string;
|
|
11
|
+
remove: string;
|
|
10
12
|
pay: string;
|
|
11
13
|
change: string;
|
|
12
14
|
free: string;
|
|
@@ -52,6 +54,10 @@ declare const pl: {
|
|
|
52
54
|
category: string;
|
|
53
55
|
sms_notification: string;
|
|
54
56
|
open_map: string;
|
|
57
|
+
payment_overview_open: string;
|
|
58
|
+
payment_overview_close: string;
|
|
59
|
+
ticket_quantity_decrease: string;
|
|
60
|
+
ticket_quantity_increase: string;
|
|
55
61
|
};
|
|
56
62
|
validation: {
|
|
57
63
|
required: string;
|
|
@@ -102,6 +108,10 @@ declare const pl: {
|
|
|
102
108
|
7: {
|
|
103
109
|
title: string;
|
|
104
110
|
};
|
|
111
|
+
8: {
|
|
112
|
+
title: string;
|
|
113
|
+
additional_info: string;
|
|
114
|
+
};
|
|
105
115
|
};
|
|
106
116
|
terms_and_conditions: string;
|
|
107
117
|
insurance: {
|
|
@@ -121,6 +131,16 @@ declare const pl: {
|
|
|
121
131
|
price: string;
|
|
122
132
|
};
|
|
123
133
|
};
|
|
134
|
+
merchandise: {
|
|
135
|
+
show_sizes: string;
|
|
136
|
+
show_added: string;
|
|
137
|
+
};
|
|
138
|
+
services: {
|
|
139
|
+
add_tickets_first: string;
|
|
140
|
+
};
|
|
141
|
+
shipping: {
|
|
142
|
+
choose_address: string;
|
|
143
|
+
};
|
|
124
144
|
order_success: {
|
|
125
145
|
title: string;
|
|
126
146
|
description: string;
|
|
@@ -152,6 +172,8 @@ declare const pl: {
|
|
|
152
172
|
components: {
|
|
153
173
|
product_variant_dialog: {
|
|
154
174
|
select_variant: string;
|
|
175
|
+
decrease_quantity: string;
|
|
176
|
+
increase_quantity: string;
|
|
155
177
|
};
|
|
156
178
|
};
|
|
157
179
|
};
|
|
@@ -7,6 +7,8 @@ declare const sk: {
|
|
|
7
7
|
add: string;
|
|
8
8
|
confirm: string;
|
|
9
9
|
cancel: string;
|
|
10
|
+
close: string;
|
|
11
|
+
remove: string;
|
|
10
12
|
pay: string;
|
|
11
13
|
change: string;
|
|
12
14
|
free: string;
|
|
@@ -52,6 +54,10 @@ declare const sk: {
|
|
|
52
54
|
category: string;
|
|
53
55
|
sms_notification: string;
|
|
54
56
|
open_map: string;
|
|
57
|
+
payment_overview_open: string;
|
|
58
|
+
payment_overview_close: string;
|
|
59
|
+
ticket_quantity_decrease: string;
|
|
60
|
+
ticket_quantity_increase: string;
|
|
55
61
|
};
|
|
56
62
|
validation: {
|
|
57
63
|
required: string;
|
|
@@ -102,6 +108,10 @@ declare const sk: {
|
|
|
102
108
|
7: {
|
|
103
109
|
title: string;
|
|
104
110
|
};
|
|
111
|
+
8: {
|
|
112
|
+
title: string;
|
|
113
|
+
additional_info: string;
|
|
114
|
+
};
|
|
105
115
|
};
|
|
106
116
|
terms_and_conditions: string;
|
|
107
117
|
insurance: {
|
|
@@ -121,6 +131,16 @@ declare const sk: {
|
|
|
121
131
|
price: string;
|
|
122
132
|
};
|
|
123
133
|
};
|
|
134
|
+
merchandise: {
|
|
135
|
+
show_sizes: string;
|
|
136
|
+
show_added: string;
|
|
137
|
+
};
|
|
138
|
+
services: {
|
|
139
|
+
add_tickets_first: string;
|
|
140
|
+
};
|
|
141
|
+
shipping: {
|
|
142
|
+
choose_address: string;
|
|
143
|
+
};
|
|
124
144
|
order_success: {
|
|
125
145
|
title: string;
|
|
126
146
|
description: string;
|
|
@@ -152,6 +172,8 @@ declare const sk: {
|
|
|
152
172
|
components: {
|
|
153
173
|
product_variant_dialog: {
|
|
154
174
|
select_variant: string;
|
|
175
|
+
decrease_quantity: string;
|
|
176
|
+
increase_quantity: string;
|
|
155
177
|
};
|
|
156
178
|
};
|
|
157
179
|
};
|
|
@@ -7,6 +7,8 @@ declare const uk: {
|
|
|
7
7
|
add: string;
|
|
8
8
|
confirm: string;
|
|
9
9
|
cancel: string;
|
|
10
|
+
close: string;
|
|
11
|
+
remove: string;
|
|
10
12
|
pay: string;
|
|
11
13
|
change: string;
|
|
12
14
|
free: string;
|
|
@@ -52,6 +54,10 @@ declare const uk: {
|
|
|
52
54
|
category: string;
|
|
53
55
|
sms_notification: string;
|
|
54
56
|
open_map: string;
|
|
57
|
+
payment_overview_open: string;
|
|
58
|
+
payment_overview_close: string;
|
|
59
|
+
ticket_quantity_decrease: string;
|
|
60
|
+
ticket_quantity_increase: string;
|
|
55
61
|
};
|
|
56
62
|
validation: {
|
|
57
63
|
required: string;
|
|
@@ -102,6 +108,10 @@ declare const uk: {
|
|
|
102
108
|
7: {
|
|
103
109
|
title: string;
|
|
104
110
|
};
|
|
111
|
+
8: {
|
|
112
|
+
title: string;
|
|
113
|
+
additional_info: string;
|
|
114
|
+
};
|
|
105
115
|
};
|
|
106
116
|
terms_and_conditions: string;
|
|
107
117
|
insurance: {
|
|
@@ -121,6 +131,16 @@ declare const uk: {
|
|
|
121
131
|
price: string;
|
|
122
132
|
};
|
|
123
133
|
};
|
|
134
|
+
merchandise: {
|
|
135
|
+
show_sizes: string;
|
|
136
|
+
show_added: string;
|
|
137
|
+
};
|
|
138
|
+
services: {
|
|
139
|
+
add_tickets_first: string;
|
|
140
|
+
};
|
|
141
|
+
shipping: {
|
|
142
|
+
choose_address: string;
|
|
143
|
+
};
|
|
124
144
|
order_success: {
|
|
125
145
|
title: string;
|
|
126
146
|
description: string;
|
|
@@ -152,6 +172,8 @@ declare const uk: {
|
|
|
152
172
|
components: {
|
|
153
173
|
product_variant_dialog: {
|
|
154
174
|
select_variant: string;
|
|
175
|
+
decrease_quantity: string;
|
|
176
|
+
increase_quantity: string;
|
|
155
177
|
};
|
|
156
178
|
};
|
|
157
179
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eventlook/sdk",
|
|
3
|
-
"version": "1.5.0-beta.
|
|
3
|
+
"version": "1.5.0-beta.7",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -40,12 +40,14 @@
|
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@emotion/react": "^11.14.0",
|
|
42
42
|
"@emotion/styled": "^11.14.1",
|
|
43
|
-
"@eslint/js": "^
|
|
43
|
+
"@eslint/js": "^10",
|
|
44
44
|
"@hookform/resolvers": "^5.2.2",
|
|
45
45
|
"@iconify/icons-carbon": "^1.2.20",
|
|
46
46
|
"@iconify/react": "^6.0.2",
|
|
47
47
|
"@mui/material": "^7.3.8",
|
|
48
|
+
"@mui/system": "^7.3.9",
|
|
48
49
|
"@mui/x-date-pickers": "^8.27.2",
|
|
50
|
+
"@rollup/plugin-alias": "^6.0.0",
|
|
49
51
|
"@rollup/plugin-commonjs": "^29.0.0",
|
|
50
52
|
"@rollup/plugin-json": "^6.1.0",
|
|
51
53
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
@@ -60,6 +62,7 @@
|
|
|
60
62
|
"chokidar-cli": "^3.0.0",
|
|
61
63
|
"concurrently": "^9.2.1",
|
|
62
64
|
"dayjs": "^1.11.19",
|
|
65
|
+
"embla-carousel-react": "^8.6.0",
|
|
63
66
|
"eslint": "^9.39.3",
|
|
64
67
|
"eslint-config-prettier": "^10.1.8",
|
|
65
68
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
@@ -67,12 +70,12 @@
|
|
|
67
70
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
68
71
|
"eslint-plugin-prettier": "^5.5.5",
|
|
69
72
|
"eslint-plugin-react": "^7.37.5",
|
|
70
|
-
"eslint-plugin-react-hooks": "^
|
|
71
|
-
"motion": "^12.34.4",
|
|
73
|
+
"eslint-plugin-react-hooks": "^7",
|
|
72
74
|
"globals": "^17.4.0",
|
|
73
75
|
"js-cookie": "^3.0.5",
|
|
74
76
|
"lodash": "^4.17.23",
|
|
75
77
|
"lottie-react": "^2.4.1",
|
|
78
|
+
"motion": "^12.35.0",
|
|
76
79
|
"mui-tel-input": "^9.0.1",
|
|
77
80
|
"numeral": "^2.0.6",
|
|
78
81
|
"prettier": "^3.8.1",
|
|
@@ -89,6 +92,9 @@
|
|
|
89
92
|
"engines": {
|
|
90
93
|
"node": ">=22"
|
|
91
94
|
},
|
|
95
|
+
"resolutions": {
|
|
96
|
+
"@mui/system": "^7.3.9"
|
|
97
|
+
},
|
|
92
98
|
"browser": {
|
|
93
99
|
"fs": false,
|
|
94
100
|
"path": false,
|
package/rollup.config.mjs
CHANGED
|
@@ -3,6 +3,7 @@ import resolve from '@rollup/plugin-node-resolve';
|
|
|
3
3
|
import commonjs from '@rollup/plugin-commonjs';
|
|
4
4
|
import json from '@rollup/plugin-json';
|
|
5
5
|
import replace from '@rollup/plugin-replace';
|
|
6
|
+
import alias from '@rollup/plugin-alias';
|
|
6
7
|
|
|
7
8
|
const peerDeps = [
|
|
8
9
|
'react',
|
|
@@ -11,7 +12,7 @@ const peerDeps = [
|
|
|
11
12
|
'@emotion/styled',
|
|
12
13
|
'@mui/material',
|
|
13
14
|
'@mui/x-date-pickers',
|
|
14
|
-
'
|
|
15
|
+
'motion',
|
|
15
16
|
];
|
|
16
17
|
|
|
17
18
|
const nodeBuiltins = ['fs', 'path', 'http', 'https', 'stream', 'os', 'zlib'];
|
|
@@ -44,17 +45,11 @@ export default {
|
|
|
44
45
|
warn(warning);
|
|
45
46
|
},
|
|
46
47
|
plugins: [
|
|
47
|
-
{
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
skipSelf: true,
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
return null;
|
|
56
|
-
},
|
|
57
|
-
},
|
|
48
|
+
alias({
|
|
49
|
+
entries: [
|
|
50
|
+
{ find: 'lottie-web', replacement: 'lottie-web/build/player/lottie_light.js' },
|
|
51
|
+
],
|
|
52
|
+
}),
|
|
58
53
|
json({
|
|
59
54
|
compact: true,
|
|
60
55
|
preferConst: true,
|
|
@@ -7,12 +7,15 @@ type Props = {
|
|
|
7
7
|
children: React.ReactNode;
|
|
8
8
|
methods: UseFormReturn<any>;
|
|
9
9
|
onSubmit?: VoidFunction;
|
|
10
|
+
formId?: string;
|
|
10
11
|
};
|
|
11
12
|
|
|
12
|
-
export default function FormProvider({ children, onSubmit, methods }: Props) {
|
|
13
|
+
export default function FormProvider({ children, onSubmit, methods, formId }: Props) {
|
|
13
14
|
return (
|
|
14
15
|
<Form {...methods}>
|
|
15
|
-
<form onSubmit={onSubmit}>
|
|
16
|
+
<form id={formId} onSubmit={onSubmit}>
|
|
17
|
+
{children}
|
|
18
|
+
</form>
|
|
16
19
|
</Form>
|
|
17
20
|
);
|
|
18
21
|
}
|
|
@@ -2,10 +2,10 @@ import useActiveEventProducts from '@hooks/data/useActiveEventProducts';
|
|
|
2
2
|
import { Dialog, DialogContent, Stack, Step, StepContent, StepLabel, Stepper } from '@mui/material';
|
|
3
3
|
import { IEvent } from '@utils/types/event.type';
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import TicketWithMerchandiseSelection from './TicketWithMerchandiseSelection';
|
|
6
|
-
import TicketSelection from './TicketSelection';
|
|
5
|
+
import TicketWithMerchandiseSelection from './tickets/TicketWithMerchandiseSelection';
|
|
6
|
+
import TicketSelection from './tickets/TicketSelection';
|
|
7
7
|
import useGlobal from '@hooks/useGlobal';
|
|
8
|
-
import MerchandiseSelection from './MerchandiseSelection';
|
|
8
|
+
import MerchandiseSelection from './merchandise/MerchandiseSelection';
|
|
9
9
|
|
|
10
10
|
interface Props {
|
|
11
11
|
event: IEvent;
|
|
@@ -18,7 +18,7 @@ const ContactPerson: React.FC<Props> = ({ event }) => {
|
|
|
18
18
|
const { t, content } = useGlobal();
|
|
19
19
|
|
|
20
20
|
return (
|
|
21
|
-
<Grid container spacing={
|
|
21
|
+
<Grid container spacing={{ xs: 1, md: 2 }}>
|
|
22
22
|
<Grid size={{ xs: 12, md: 6 }}>
|
|
23
23
|
<RHFTextField name="firstName" label={t('form.labels.first_name')} />
|
|
24
24
|
</Grid>
|