@tripian/react 3.0.0 → 3.0.1
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/index.js +2130 -1579
- package/index.js.map +1 -1
- package/min.css +1 -1
- package/package.json +1 -1
- package/providers/gyg/components/GygTourInfo/GygTourInfo.d.ts +14 -0
- package/providers/gyg/components/GygTourInfo/GygTourInfoForm/GygTourInfoForm.d.ts +9 -0
- package/providers/gyg/components/GygTourInfo/GygTourInfoForm/GygTourOption/GygTourOption.d.ts +12 -0
- package/providers/gyg/components/GygTourInfo/GygTourInfoForm/GygTourShoppingForm/GygTourShoppingForm.d.ts +8 -0
- package/providers/gyg/components/GygTourInfo/GygTourInfoForm/GygTourShoppingForm/timezones.d.ts +8 -0
package/package.json
CHANGED
|
@@ -1,8 +1,22 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Providers } from '@tripian/model';
|
|
3
|
+
export declare type TourOptionDetails = {
|
|
4
|
+
option: Providers.Gyg.TourOption;
|
|
5
|
+
availabilities: Providers.Gyg.TourAvailability[];
|
|
6
|
+
pricings?: Providers.Gyg.TourOptionPricing;
|
|
7
|
+
};
|
|
3
8
|
interface IGygTourInfo {
|
|
9
|
+
initialDate: string;
|
|
10
|
+
adultCount: number;
|
|
11
|
+
childrenCount?: number;
|
|
4
12
|
tour: Providers.Gyg.Tour;
|
|
13
|
+
showCloseButton?: boolean;
|
|
14
|
+
tourOptionDetails?: TourOptionDetails[];
|
|
15
|
+
bookingInfo?: Providers.Gyg.TourBooking;
|
|
5
16
|
close: () => void;
|
|
17
|
+
tourInfoFormCallback: (date: string, adultCount: number, tourId: number, childrenCount?: number) => void;
|
|
18
|
+
bookingClick: (bookingRequest: Providers.Gyg.TourBookingRequest) => void;
|
|
19
|
+
paymentClick: (data: Providers.Gyg.GygTourShoppingFormData) => void;
|
|
6
20
|
}
|
|
7
21
|
declare const GygTourInfo: React.FC<IGygTourInfo>;
|
|
8
22
|
export default GygTourInfo;
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Providers } from '@tripian/model';
|
|
3
|
+
import { TourOptionDetails } from '../GygTourInfo';
|
|
3
4
|
interface IGygTourInfoForm {
|
|
5
|
+
initialDate: string;
|
|
6
|
+
adultCount: number;
|
|
7
|
+
childrenCount?: number;
|
|
4
8
|
tour: Providers.Gyg.Tour;
|
|
9
|
+
tourOptionDetails?: TourOptionDetails[];
|
|
10
|
+
bookingInfo?: Providers.Gyg.TourBooking;
|
|
11
|
+
tourInfoFormCallback: (date: string, adultCount: number, tourId: number, childrenCount?: number) => void;
|
|
12
|
+
bookingClick: (bookingRequest: Providers.Gyg.TourBookingRequest) => void;
|
|
13
|
+
paymentClick: (data: Providers.Gyg.GygTourShoppingFormData) => void;
|
|
5
14
|
}
|
|
6
15
|
declare const GygTourInfoForm: React.FC<IGygTourInfoForm>;
|
|
7
16
|
export default GygTourInfoForm;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Providers } from '@tripian/model';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface IGygTourOption {
|
|
4
|
+
tourOption: Providers.Gyg.TourOption;
|
|
5
|
+
availabilities: Providers.Gyg.TourAvailability[];
|
|
6
|
+
pricings?: Providers.Gyg.TourOptionPricing;
|
|
7
|
+
adultCount: number;
|
|
8
|
+
childrenCount?: number;
|
|
9
|
+
clicked: (bookingRequest: Providers.Gyg.TourBookingRequest) => void;
|
|
10
|
+
}
|
|
11
|
+
declare const GygTourOption: React.FC<IGygTourOption>;
|
|
12
|
+
export default GygTourOption;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import Model, { Providers } from '@tripian/model';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface IGygTourShoppingForm {
|
|
4
|
+
user?: Model.User;
|
|
5
|
+
clicked: (data: Providers.Gyg.GygTourShoppingFormData) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const GygTourShoppingForm: React.FC<IGygTourShoppingForm>;
|
|
8
|
+
export default GygTourShoppingForm;
|