@tripian/react 2.0.1 → 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/components/DateRangePicker/DateRangePicker.d.ts +1 -0
- package/components/GoogleMaps/GRoute/GRouteCalculate.d.ts +0 -1
- package/index.d.ts +1 -3
- package/index.js +2658 -2110
- package/index.js.map +1 -1
- package/min.css +1 -7272
- package/package.json +3 -7
- 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/components/ImgDiv/ImgDiv.d.ts +0 -6
- package/components/ImgDiv/ImgDivCover.d.ts +0 -10
- package/img/c333890c3b6ce527a1a114eb30958094.svg +0 -43
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tripian/react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "Tripian Inc React Components",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@react-google-maps/api": "^1.9.0",
|
|
12
|
-
"@tripian/model": "2.
|
|
12
|
+
"@tripian/model": "^2.0.0",
|
|
13
13
|
"moment": "^2.24.0",
|
|
14
14
|
"react-dates": "^21.8.0",
|
|
15
15
|
"react-google-recaptcha": "^2.0.1",
|
|
@@ -32,9 +32,5 @@
|
|
|
32
32
|
"bugs": {
|
|
33
33
|
"url": "https://github.com/Tripian-inc/ui-tripian-react/issues"
|
|
34
34
|
},
|
|
35
|
-
"homepage": "https://github.com/Tripian-inc/ui-tripian-react#readme"
|
|
36
|
-
"eslintConfig": {
|
|
37
|
-
"extends": "@tripian/eslint-config-tripian"
|
|
38
|
-
},
|
|
39
|
-
"prettier": "@tripian/eslint-config-tripian/prettier.js"
|
|
35
|
+
"homepage": "https://github.com/Tripian-inc/ui-tripian-react#readme"
|
|
40
36
|
}
|
|
@@ -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;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface ImgDivCover {
|
|
3
|
-
imgUrl: string;
|
|
4
|
-
width?: string | number;
|
|
5
|
-
height?: string | number;
|
|
6
|
-
padding?: string | number;
|
|
7
|
-
float?: '-moz-initial' | 'inherit' | 'initial' | 'revert' | 'unset' | 'none' | 'inline-end' | 'inline-start' | 'left' | 'right';
|
|
8
|
-
}
|
|
9
|
-
declare const ImgDivCover: React.FC<ImgDivCover>;
|
|
10
|
-
export default ImgDivCover;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
-
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
-
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
4
|
-
viewBox="0 0 511.997 511.997" style="enable-background:new 0 0 511.997 511.997;" xml:space="preserve">
|
|
5
|
-
<g>
|
|
6
|
-
<g>
|
|
7
|
-
<path d="M511.228,134.699c-1.615-4.052-5.542-6.698-9.896-6.698h-42.667c-2.729,0-5.354,1.042-7.333,2.927L255.999,315.97
|
|
8
|
-
L60.665,130.928c-1.979-1.885-4.604-2.927-7.333-2.927H10.665c-4.354,0-8.281,2.646-9.896,6.698
|
|
9
|
-
c-1.625,4.042-0.625,8.667,2.521,11.677l245.333,234.667c4.125,3.938,10.625,3.938,14.75,0l245.333-234.667
|
|
10
|
-
C511.853,143.366,512.853,138.741,511.228,134.699z"/>
|
|
11
|
-
</g>
|
|
12
|
-
</g>
|
|
13
|
-
<g>
|
|
14
|
-
</g>
|
|
15
|
-
<g>
|
|
16
|
-
</g>
|
|
17
|
-
<g>
|
|
18
|
-
</g>
|
|
19
|
-
<g>
|
|
20
|
-
</g>
|
|
21
|
-
<g>
|
|
22
|
-
</g>
|
|
23
|
-
<g>
|
|
24
|
-
</g>
|
|
25
|
-
<g>
|
|
26
|
-
</g>
|
|
27
|
-
<g>
|
|
28
|
-
</g>
|
|
29
|
-
<g>
|
|
30
|
-
</g>
|
|
31
|
-
<g>
|
|
32
|
-
</g>
|
|
33
|
-
<g>
|
|
34
|
-
</g>
|
|
35
|
-
<g>
|
|
36
|
-
</g>
|
|
37
|
-
<g>
|
|
38
|
-
</g>
|
|
39
|
-
<g>
|
|
40
|
-
</g>
|
|
41
|
-
<g>
|
|
42
|
-
</g>
|
|
43
|
-
</svg>
|