@tripian/react 5.0.33 → 6.0.0
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 +2 -0
- package/components/FormTemplate/FormTemplateLoginEx/FormTemplateLogin.d.ts +20 -0
- package/components/FormTemplate/FormTemplateRegister/FormTemplateRegister.d.ts +1 -0
- package/components/FormTemplate/FormTemplateRegisterEx/FormTemplateRegister.d.ts +10 -0
- package/components/FormTemplate/FormTemplateResetPassword/FormTemplateResetPassword.d.ts +1 -0
- package/components/FormTemplate/FormTemplateTripNext/FormTemplateTripNext.d.ts +26 -0
- package/components/FormTemplate/FormTemplateTripNext/StepComponent/QuestionComponent/QuestionComponent.d.ts +11 -0
- package/components/FormTemplate/FormTemplateTripNext/StepComponent/StepComponent.d.ts +17 -0
- package/components/FormTemplate/FormTemplateTripNext/StepDestination/StepDestination.d.ts +10 -0
- package/components/FormTemplate/FormTemplateTripNext/StepStayAndShares/StepStayAndShares.d.ts +16 -0
- package/components/FormTemplate/FormTemplateTripNext/model.d.ts +22 -0
- package/components/GoogleMaps/GPlacesAutocomplete2/GPlacesAutocomplete2.d.ts +2 -0
- package/components/PoiInfo/PoiInfoImage/PoiInfoImage.d.ts +0 -3
- package/components/PoiInfo/PoiInfoText/OpenedHours/OpenedHours.d.ts +14 -0
- package/components/PoiInfo/PoiInfoText/PoiInfoText.d.ts +8 -0
- package/{providers/bb/components/BbAccommodationInfo → components/PoiInfo/PoiInfoText}/PoiInfoTextRow/PoiInfoTextRow.d.ts +1 -1
- package/components/PoiInfoEx/PoiInfo.d.ts +31 -0
- package/components/PoiInfoEx/PoiInfoImage/PoiInfoImage.d.ts +15 -0
- package/components/PoiInfoEx/PoiInfoText/PoiInfoText.d.ts +13 -0
- package/components/Price/Price.d.ts +0 -1
- package/components/PriceEx/Price.d.ts +7 -0
- package/components/QuestionTemplateNext/Context/QuestionContext.d.ts +8 -0
- package/components/QuestionTemplateNext/Context/QuestionContext2.d.ts +8 -0
- package/components/QuestionTemplateNext/Question/CheckBoxQuestion/CheckboxQuestion.d.ts +10 -0
- package/components/QuestionTemplateNext/Question/Question.d.ts +8 -0
- package/components/QuestionTemplateNext/Question/Question2.d.ts +7 -0
- package/components/QuestionTemplateNext/Question/RadioButtonQuestion/RadioButtonQuestion.d.ts +10 -0
- package/components/QuestionTemplateNext/Question/RadioButtonQuestion/RadioButtonQuestion2.d.ts +11 -0
- package/components/QuestionTemplateNext/Question/RadioButtonQuestion copy/RadioButtonQuestion2.d.ts +11 -0
- package/components/QuestionTemplateNext/Question/SelectQuestion/SelectQuestion.d.ts +10 -0
- package/components/QuestionTemplateNext/QuestionTemplate.d.ts +11 -0
- package/components/QuestionTemplateNext/QuestionTemplate2.d.ts +11 -0
- package/components/ResetPasswordApproved/ResetPasswordApproved.d.ts +6 -0
- package/components/ResetPasswordEmail/ResetPasswordEmail.d.ts +7 -0
- package/components/SocialLoginEx/SocialLogin.d.ts +9 -0
- package/components/UserCompanionSelection/UserCompanionSelection.d.ts +2 -0
- package/components/base/Button/Button.d.ts +3 -1
- package/components/base/Button/Icons/ArrowLeftButton/ArrowLeftButton.d.ts +7 -0
- package/components/base/Button/Icons/BackButton/BackButton.d.ts +8 -0
- package/components/base/Button/Icons/CloseIconButton2/CloseIconButton2.d.ts +1 -1
- package/components/base/Button/Icons/EyeIconButtonEx/EyeIconButton.d.ts +7 -0
- package/components/base/Checkbox/Checkbox.d.ts +1 -0
- package/components/base/Copy/Copy.d.ts +6 -0
- package/components/base/Dropdown/Dropdown.d.ts +3 -1
- package/components/base/EllipseIcon/EllipseIcon.d.ts +6 -0
- package/components/base/Header/Header.d.ts +6 -0
- package/components/base/InfoBox/InfoBox.d.ts +8 -0
- package/components/base/Input/Input.d.ts +22 -0
- package/components/base/NumberCounterNew/NumberCounter.d.ts +12 -0
- package/components/base/RSelect/RSelect.d.ts +2 -0
- package/components/base/RadioButtonBoxGroup/RadioButtonBox/RadioButtonBox.d.ts +10 -0
- package/components/base/RadioButtonBoxGroup/RadioButtonBoxGroup.d.ts +13 -0
- package/components/base/RadioButtonGroup/RadioButtonGroup.d.ts +2 -2
- package/components/base/ReadMoreLess/ReadMoreLess.d.ts +7 -0
- package/components/base/Required/Required.d.ts +6 -0
- package/components/base/ShowMoreLess/ShowMoreLess.d.ts +7 -0
- package/components/base/Svg/Icons/AppleEx.d.ts +8 -0
- package/components/base/Svg/Icons/Approved.d.ts +4 -0
- package/components/base/Svg/Icons/ArrowRight.d.ts +4 -0
- package/components/base/Svg/Icons/Email.d.ts +4 -0
- package/components/base/Svg/Icons/Eye.d.ts +4 -0
- package/components/base/Svg/Icons/GoogleEx.d.ts +8 -0
- package/components/base/Svg/Icons/Hearth.d.ts +4 -0
- package/components/base/Svg/Icons/LandingCalendar.d.ts +8 -0
- package/components/base/Svg/Icons/LandingCellPhone.d.ts +8 -0
- package/components/base/Svg/Icons/LandingProfile.d.ts +8 -0
- package/components/base/Svg/Icons/LandingThumbsUp.d.ts +8 -0
- package/components/base/Svg/Icons/Mask.d.ts +4 -0
- package/components/base/Svg/Icons/Phone.d.ts +4 -0
- package/components/base/Svg/Icons/Price.d.ts +4 -0
- package/components/base/Svg/Icons/TapRight.d.ts +4 -0
- package/components/base/Svg/Icons/Timer.d.ts +4 -0
- package/components/base/Svg/Icons/Web.d.ts +4 -0
- package/components/base/Svg/Icons/index.d.ts +5 -1
- package/components/baseEx/Accordion/Accordion.d.ts +10 -0
- package/components/baseEx/AutoCompleteSearchV1/AutoCompleteSearchV1.d.ts +12 -0
- package/components/baseEx/Backdrop/Backdrop.d.ts +7 -0
- package/components/baseEx/Button/Button.d.ts +19 -0
- package/components/baseEx/Button/ButtonTypes.d.ts +6 -0
- package/components/baseEx/Button/Icons/Add.d.ts +3 -0
- package/components/baseEx/Button/Icons/Bars.d.ts +3 -0
- package/components/baseEx/Button/Icons/Base.d.ts +4 -0
- package/components/baseEx/Button/Icons/Bookings.d.ts +3 -0
- package/components/baseEx/Button/Icons/Cancel.d.ts +3 -0
- package/components/baseEx/Button/Icons/Check.d.ts +3 -0
- package/components/{base/Button/Icons/CloseIconButton2 → baseEx/Button/Icons/CloseIconButton}/CloseIconButton.d.ts +2 -2
- package/components/baseEx/Button/Icons/Delete.d.ts +3 -0
- package/components/baseEx/Button/Icons/Edit.d.ts +3 -0
- package/components/baseEx/Button/Icons/EyeIconButton/EyeIconButton.d.ts +7 -0
- package/components/baseEx/Button/Icons/FavoriteIconButton/FavoriteIconButton.d.ts +8 -0
- package/components/baseEx/Button/Icons/Favorites.d.ts +3 -0
- package/components/baseEx/Button/Icons/IButtonIcons.d.ts +14 -0
- package/components/baseEx/Button/Icons/List.d.ts +3 -0
- package/components/baseEx/Button/Icons/Remove.d.ts +3 -0
- package/components/baseEx/Button/Icons/Replace.d.ts +3 -0
- package/components/baseEx/Button/Icons/Save.d.ts +3 -0
- package/components/baseEx/Button/Icons/Search.d.ts +3 -0
- package/components/baseEx/Button/Icons/Uber.d.ts +3 -0
- package/components/baseEx/Button/Icons/index.d.ts +18 -0
- package/components/baseEx/Checkbox/Checkbox.d.ts +10 -0
- package/components/baseEx/CheckboxTree/CheckboxTree.d.ts +13 -0
- package/components/baseEx/Dropdown/Dropdown.d.ts +14 -0
- package/components/baseEx/IconImage/IconImage.d.ts +6 -0
- package/components/baseEx/Img/Img.d.ts +8 -0
- package/components/baseEx/ImgLazy/ImgLazy.d.ts +13 -0
- package/components/baseEx/ImgLazyBase/ImgLazyBase.d.ts +12 -0
- package/components/baseEx/Modal/Modal.d.ts +12 -0
- package/components/baseEx/ModalFull/ModalFull.d.ts +10 -0
- package/components/baseEx/Notification/Notification.d.ts +12 -0
- package/components/baseEx/NumberCounter/NumberCounter.d.ts +9 -0
- package/components/baseEx/NumberInput/NumberInput.d.ts +10 -0
- package/components/baseEx/PageLoading/PageLoading.d.ts +3 -0
- package/components/baseEx/PreLoading/PreLoading.d.ts +8 -0
- package/components/baseEx/ProgressAppLoading/ProgressAppLoading.d.ts +5 -0
- package/components/baseEx/ProgressLoading/ProgressLoading.d.ts +7 -0
- package/components/baseEx/RSelect/RSelect.d.ts +19 -0
- package/components/baseEx/RadioButtonGroup/RadioButton/RadioButton.d.ts +10 -0
- package/components/baseEx/RadioButtonGroup/RadioButtonGroup.d.ts +12 -0
- package/components/baseEx/SideNavigation/SideNavigation.d.ts +15 -0
- package/components/baseEx/Svg/Icons/Add.d.ts +4 -0
- package/components/baseEx/Svg/Icons/Apple.d.ts +8 -0
- package/components/baseEx/Svg/Icons/Bars.d.ts +4 -0
- package/components/baseEx/Svg/Icons/Calendar.d.ts +8 -0
- package/components/baseEx/Svg/Icons/Car.d.ts +8 -0
- package/components/baseEx/Svg/Icons/Checkbox.d.ts +4 -0
- package/components/baseEx/Svg/Icons/Clock.d.ts +8 -0
- package/components/baseEx/Svg/Icons/Close.d.ts +11 -0
- package/components/baseEx/Svg/Icons/Delete.d.ts +4 -0
- package/components/baseEx/Svg/Icons/Facebook.d.ts +8 -0
- package/components/baseEx/Svg/Icons/Google.d.ts +8 -0
- package/components/baseEx/Svg/Icons/IIconSvg.d.ts +6 -0
- package/components/baseEx/Svg/Icons/Legs.d.ts +8 -0
- package/components/baseEx/Svg/Icons/NextArrow.d.ts +8 -0
- package/components/baseEx/Svg/Icons/Offer.d.ts +8 -0
- package/components/baseEx/Svg/Icons/PreviousArrow.d.ts +8 -0
- package/components/baseEx/Svg/Icons/RadioButton.d.ts +4 -0
- package/components/baseEx/Svg/Icons/Reservation.d.ts +8 -0
- package/components/baseEx/Svg/Icons/SwitchIcon/SwitchIcon.d.ts +7 -0
- package/components/baseEx/Svg/Icons/ThumbsDown.d.ts +8 -0
- package/components/baseEx/Svg/Icons/ThumbsDownEmpty.d.ts +9 -0
- package/components/baseEx/Svg/Icons/ThumbsUp.d.ts +8 -0
- package/components/baseEx/Svg/Icons/ThumbsUpEmpty.d.ts +9 -0
- package/components/baseEx/Svg/Icons/Ticket.d.ts +8 -0
- package/components/baseEx/Svg/Icons/Tour.d.ts +8 -0
- package/components/baseEx/Svg/Icons/Uber.d.ts +8 -0
- package/components/baseEx/Svg/Icons/index.d.ts +17 -0
- package/components/baseEx/Svg/Svg.d.ts +13 -0
- package/components/baseEx/Switch/Switch.d.ts +7 -0
- package/components/baseEx/SwitchOld/SwitchOld.d.ts +8 -0
- package/components/baseEx/TabMenu/TabMenu.d.ts +11 -0
- package/components/baseEx/TextField/TextField.d.ts +20 -0
- package/index.d.ts +5 -1
- package/index.js +5881 -3857
- package/index.js.map +1 -1
- package/min.css +1 -1
- package/package.json +2 -2
- package/img/24cdf52c89c796947ae96dfd61fd4855.png +0 -0
- package/img/927df9135db4852c17138946dc7e36d8.png +0 -0
- package/img/ab923f844cc549da1bd6dbba32135c67.png +0 -0
|
@@ -9,6 +9,8 @@ interface IDateRangePickerTemplate {
|
|
|
9
9
|
endDate: moment.Moment;
|
|
10
10
|
};
|
|
11
11
|
onchanged: (startDate: moment.Moment, endDate: moment.Moment) => void;
|
|
12
|
+
onFocus?: (start: boolean) => void;
|
|
13
|
+
onBlur?: () => void;
|
|
12
14
|
}
|
|
13
15
|
declare const DateRangePicker: React.FC<IDateRangePickerTemplate>;
|
|
14
16
|
export default DateRangePicker;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Model from '@tripian/model';
|
|
3
|
+
interface IFormTemplateLogin {
|
|
4
|
+
login: (email: string, password: string) => Promise<Model.Token>;
|
|
5
|
+
successLogin: (token: Model.Token) => void;
|
|
6
|
+
reCaptchaSiteKey: string;
|
|
7
|
+
showCaptcha: boolean;
|
|
8
|
+
forgotPassword: () => void;
|
|
9
|
+
socialLoginConfigs: {
|
|
10
|
+
clientId: string;
|
|
11
|
+
domain: string;
|
|
12
|
+
identityProviders: string[];
|
|
13
|
+
region: string;
|
|
14
|
+
baseDomain: string;
|
|
15
|
+
};
|
|
16
|
+
showRegister?: boolean;
|
|
17
|
+
signUpButtonCallBack: () => void;
|
|
18
|
+
}
|
|
19
|
+
declare const FormTemplateLogin: React.FC<IFormTemplateLogin>;
|
|
20
|
+
export default FormTemplateLogin;
|
|
@@ -5,6 +5,7 @@ interface IFormTemplateRegister {
|
|
|
5
5
|
successRegister: (userEmail: string, token: Model.Token) => void;
|
|
6
6
|
reCaptchaSiteKey: string;
|
|
7
7
|
showCaptcha: boolean;
|
|
8
|
+
goBackLogin: () => void;
|
|
8
9
|
}
|
|
9
10
|
declare const FormTemplateRegister: React.FC<IFormTemplateRegister>;
|
|
10
11
|
export default FormTemplateRegister;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Model from '@tripian/model';
|
|
3
|
+
interface IFormTemplateRegister {
|
|
4
|
+
register: (value: Model.RegisterRequest) => Promise<Model.Token>;
|
|
5
|
+
successRegister: (userEmail: string, token: Model.Token) => void;
|
|
6
|
+
reCaptchaSiteKey: string;
|
|
7
|
+
showCaptcha: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const FormTemplateRegister: React.FC<IFormTemplateRegister>;
|
|
10
|
+
export default FormTemplateRegister;
|
|
@@ -3,6 +3,7 @@ import Model from '@tripian/model';
|
|
|
3
3
|
interface IFormTemplateResetPassword {
|
|
4
4
|
emailCallBack: (email: string) => Promise<Model.UserResetPassword>;
|
|
5
5
|
success: (user: Model.UserResetPassword) => void;
|
|
6
|
+
goBack: () => void;
|
|
6
7
|
}
|
|
7
8
|
declare const FormTemplateResetPassword: React.FC<IFormTemplateResetPassword>;
|
|
8
9
|
export default FormTemplateResetPassword;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Model from '@tripian/model';
|
|
3
|
+
import { QuestionNext } from './model';
|
|
4
|
+
/**
|
|
5
|
+
* Destinations
|
|
6
|
+
* Stay & Shares
|
|
7
|
+
* Picked Informations
|
|
8
|
+
* Personalize tour trip
|
|
9
|
+
*/
|
|
10
|
+
interface IFormTemplateTripNext {
|
|
11
|
+
tripProfile: Model.TripProfile;
|
|
12
|
+
tripQuestions: Array<QuestionNext>;
|
|
13
|
+
cities: Array<Model.City>;
|
|
14
|
+
isTripEdit?: boolean;
|
|
15
|
+
callbackTripProfile: (tripProfile: Model.TripProfile) => void;
|
|
16
|
+
userCompanionQuestions: Array<Model.Question>;
|
|
17
|
+
userCompanions?: Array<Model.Companion>;
|
|
18
|
+
companionLoadingList: Array<number>;
|
|
19
|
+
callbackUserCompanionAdd: (userCompoanion: Model.Companion) => void;
|
|
20
|
+
showTripModeQuestion?: boolean;
|
|
21
|
+
onSubmitText: string;
|
|
22
|
+
onSubmit: () => void;
|
|
23
|
+
onCancel: () => void;
|
|
24
|
+
}
|
|
25
|
+
declare const FormTemplateTripNext: React.FC<IFormTemplateTripNext>;
|
|
26
|
+
export default FormTemplateTripNext;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import Model from '@tripian/model';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { QuestionNext } from '../../model';
|
|
4
|
+
export interface QuestionComponentProps {
|
|
5
|
+
question: QuestionNext;
|
|
6
|
+
tripProfile: Model.TripProfile;
|
|
7
|
+
callbackTripAnswers: (answers: number[]) => void;
|
|
8
|
+
onFocused: () => void;
|
|
9
|
+
}
|
|
10
|
+
declare const QuestionComponent: React.FC<QuestionComponentProps>;
|
|
11
|
+
export default QuestionComponent;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Model from '@tripian/model';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { QuestionNext } from '../model';
|
|
4
|
+
export interface StepComponentProps {
|
|
5
|
+
header: string;
|
|
6
|
+
defaultTip: {
|
|
7
|
+
iconUrl: string;
|
|
8
|
+
title: string;
|
|
9
|
+
description: string;
|
|
10
|
+
};
|
|
11
|
+
stepQuestions: QuestionNext[];
|
|
12
|
+
stepId: number;
|
|
13
|
+
tripProfile: Model.TripProfile;
|
|
14
|
+
callbackTripAnswers: (answers: number[]) => void;
|
|
15
|
+
}
|
|
16
|
+
declare const StepComponent: React.FC<StepComponentProps>;
|
|
17
|
+
export default StepComponent;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Model from '@tripian/model';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface StepDestinationProps {
|
|
4
|
+
tripProfile: Model.TripProfile;
|
|
5
|
+
cities: Array<Model.City>;
|
|
6
|
+
setTripProfile: (tripProfile: Model.TripProfile) => void;
|
|
7
|
+
isTripEdit: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const StepDestination: React.FC<StepDestinationProps>;
|
|
10
|
+
export default StepDestination;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="google.maps" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Model from '@tripian/model';
|
|
4
|
+
export interface StepStayAndSharesProps {
|
|
5
|
+
tripProfile: Model.TripProfile;
|
|
6
|
+
setTripProfile: (tripProfile: Model.TripProfile) => void;
|
|
7
|
+
bound: google.maps.LatLngBounds | undefined;
|
|
8
|
+
setBound: (newBound?: google.maps.LatLngBounds) => void;
|
|
9
|
+
cities: Array<Model.City>;
|
|
10
|
+
userCompanionQuestions: Array<Model.Question>;
|
|
11
|
+
userCompanions?: Array<Model.Companion>;
|
|
12
|
+
companionLoadingList: Array<number>;
|
|
13
|
+
callbackUserCompanionAdd: (userCompoanion: Model.Companion) => void;
|
|
14
|
+
}
|
|
15
|
+
declare const StepStayAndShares: React.FC<StepStayAndSharesProps>;
|
|
16
|
+
export default StepStayAndShares;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import Model from '@tripian/model';
|
|
2
|
+
declare type QuestionAnswerNext = {
|
|
3
|
+
id: number;
|
|
4
|
+
name: string;
|
|
5
|
+
description: string;
|
|
6
|
+
subAnswers: Model.SubAnswer[];
|
|
7
|
+
};
|
|
8
|
+
export declare type QuestionNext = {
|
|
9
|
+
id: number;
|
|
10
|
+
name: string;
|
|
11
|
+
order: number;
|
|
12
|
+
selectMultiple: boolean;
|
|
13
|
+
skippable: boolean;
|
|
14
|
+
stepId: number;
|
|
15
|
+
theme: string;
|
|
16
|
+
iconUrl: string;
|
|
17
|
+
title: string;
|
|
18
|
+
description: string;
|
|
19
|
+
category: Model.QUESTIONS_CATEGORY;
|
|
20
|
+
answers: QuestionAnswerNext[];
|
|
21
|
+
};
|
|
22
|
+
export {};
|
|
@@ -7,6 +7,8 @@ interface IGPlacesAutocomplete2 {
|
|
|
7
7
|
onSelectedChanged: (selectedPlace: google.maps.places.PlaceResult) => void;
|
|
8
8
|
initialText?: string;
|
|
9
9
|
boundry?: google.maps.LatLngBounds | google.maps.LatLngBoundsLiteral;
|
|
10
|
+
onFocus?: () => void;
|
|
11
|
+
onBlur?: () => void;
|
|
10
12
|
}
|
|
11
13
|
declare const GPlacesAutocomplete2: React.FC<IGPlacesAutocomplete2>;
|
|
12
14
|
export default GPlacesAutocomplete2;
|
|
@@ -4,11 +4,8 @@ import 'slick-carousel/slick/slick.css';
|
|
|
4
4
|
import 'slick-carousel/slick/slick-theme.css';
|
|
5
5
|
interface IPoiInfoImage {
|
|
6
6
|
poi: Model.Poi;
|
|
7
|
-
favorite: boolean;
|
|
8
7
|
hideButtons?: boolean;
|
|
9
|
-
favoriteClick: (favorite: boolean) => void;
|
|
10
8
|
close: () => void;
|
|
11
|
-
favoriteLoading: boolean;
|
|
12
9
|
square: boolean;
|
|
13
10
|
}
|
|
14
11
|
declare const PoiInfoImage: React.FC<IPoiInfoImage>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IOPenedHours {
|
|
3
|
+
hourStr: string | null;
|
|
4
|
+
planDate?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const HourItem: React.FC<{
|
|
7
|
+
hour: {
|
|
8
|
+
day: string;
|
|
9
|
+
clock: string[];
|
|
10
|
+
};
|
|
11
|
+
lineHeight?: React.Key;
|
|
12
|
+
}>;
|
|
13
|
+
declare const OpenedHours: React.FC<IOPenedHours>;
|
|
14
|
+
export default OpenedHours;
|
|
@@ -2,6 +2,14 @@ import React from 'react';
|
|
|
2
2
|
import Model from '@tripian/model';
|
|
3
3
|
interface IPoiInfoText {
|
|
4
4
|
poi: Model.Poi;
|
|
5
|
+
hideButtons: boolean;
|
|
6
|
+
favorite: boolean;
|
|
7
|
+
favoriteLoading: boolean;
|
|
8
|
+
favoriteClick: (favorite: boolean) => void;
|
|
9
|
+
stepOrder?: number;
|
|
10
|
+
replace?: boolean;
|
|
11
|
+
addRemoveReplacePoi: (poi: Model.Poi, removeReplaceAdd: number) => void;
|
|
12
|
+
hideActionButtons?: boolean;
|
|
5
13
|
dayNumbers?: number[];
|
|
6
14
|
planDate?: string;
|
|
7
15
|
reservationUrl?: string;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Model from '@tripian/model';
|
|
3
|
+
interface IPoiInfo {
|
|
4
|
+
poi: Model.Poi;
|
|
5
|
+
favorite: boolean;
|
|
6
|
+
toggleFavorite: (poi: Model.Poi, willFavorite: boolean) => void;
|
|
7
|
+
addRemoveReplacePoi: (poi: Model.Poi, removeReplaceAdd: number) => void;
|
|
8
|
+
close: (poi: Model.Poi) => void;
|
|
9
|
+
dayNumbers?: number[];
|
|
10
|
+
stepOrder?: number;
|
|
11
|
+
replace?: boolean;
|
|
12
|
+
hideActionButtons?: boolean;
|
|
13
|
+
hideFavoriteIcon?: boolean;
|
|
14
|
+
planDate?: string;
|
|
15
|
+
bookingButtonClick?: (productId: string, poi: Model.Poi) => void;
|
|
16
|
+
favoriteLoading: boolean;
|
|
17
|
+
reservationUrl?: string;
|
|
18
|
+
hideBookingButton: boolean;
|
|
19
|
+
square?: boolean;
|
|
20
|
+
hideTours: boolean;
|
|
21
|
+
getTourInfo?: (productId: string) => void;
|
|
22
|
+
TOUR_PROVIDER_ID: Model.PROVIDER_ID;
|
|
23
|
+
TICKET_PROVIDER_ID: Model.PROVIDER_ID;
|
|
24
|
+
RESTAURANT_RESERVATION_PROVIDER_ID: Model.PROVIDER_ID;
|
|
25
|
+
myOffers: Model.Poi[];
|
|
26
|
+
isLoadingOffer: (offerId: number) => boolean;
|
|
27
|
+
offerButtonClick: (optIn: boolean, offerId: number, offerClaimDate: string) => void;
|
|
28
|
+
hideOffers: boolean;
|
|
29
|
+
}
|
|
30
|
+
declare const PoiInfo: React.FC<IPoiInfo>;
|
|
31
|
+
export default PoiInfo;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Model from '@tripian/model';
|
|
3
|
+
import 'slick-carousel/slick/slick.css';
|
|
4
|
+
import 'slick-carousel/slick/slick-theme.css';
|
|
5
|
+
interface IPoiInfoImage {
|
|
6
|
+
poi: Model.Poi;
|
|
7
|
+
favorite: boolean;
|
|
8
|
+
hideButtons?: boolean;
|
|
9
|
+
favoriteClick: (favorite: boolean) => void;
|
|
10
|
+
close: () => void;
|
|
11
|
+
favoriteLoading: boolean;
|
|
12
|
+
square: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare const PoiInfoImage: React.FC<IPoiInfoImage>;
|
|
15
|
+
export default PoiInfoImage;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Model from '@tripian/model';
|
|
3
|
+
interface IPoiInfoText {
|
|
4
|
+
poi: Model.Poi;
|
|
5
|
+
dayNumbers?: number[];
|
|
6
|
+
planDate?: string;
|
|
7
|
+
reservationUrl?: string;
|
|
8
|
+
hideBookingButton: boolean;
|
|
9
|
+
bookingButtonClick?: (productId: string, poi: Model.Poi) => void;
|
|
10
|
+
RESTAURANT_RESERVATION_PROVIDER_ID: Model.PROVIDER_ID;
|
|
11
|
+
}
|
|
12
|
+
declare const PoiInfoText: React.FC<IPoiInfoText>;
|
|
13
|
+
export default PoiInfoText;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { QuestionNext } from '../../FormTemplate/FormTemplateTripNext/model';
|
|
3
|
+
interface IQuestionContext {
|
|
4
|
+
question: QuestionNext;
|
|
5
|
+
defaultAnswers: Array<number>;
|
|
6
|
+
}
|
|
7
|
+
declare const questionContext: React.Context<IQuestionContext>;
|
|
8
|
+
export default questionContext;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Model from '@tripian/model';
|
|
3
|
+
interface IQuestionContext2 {
|
|
4
|
+
questions: Model.Question[];
|
|
5
|
+
defaultAnswers: Array<number>;
|
|
6
|
+
}
|
|
7
|
+
declare const questionContext2: React.Context<IQuestionContext2>;
|
|
8
|
+
export default questionContext2;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ICheckboxQuestion {
|
|
3
|
+
defaultAnswers: Array<number>;
|
|
4
|
+
checkBoxChangeParent: (addedOptionId?: number, removedOptionId?: number) => void;
|
|
5
|
+
checkBoxChangeChild: (addedOptionId?: number, removedOptionId?: number) => void;
|
|
6
|
+
flexDirection: 'column' | 'row';
|
|
7
|
+
onFocused: () => void;
|
|
8
|
+
}
|
|
9
|
+
declare const CheckboxQuestion: React.FC<ICheckboxQuestion>;
|
|
10
|
+
export default CheckboxQuestion;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IRadioButtonQuestion {
|
|
3
|
+
defaultAnswer?: number;
|
|
4
|
+
radioButtonChange: (addedOptionId?: number, removedOptionId?: number) => void;
|
|
5
|
+
box?: boolean;
|
|
6
|
+
flexDirection: 'column' | 'row';
|
|
7
|
+
onFocused: () => void;
|
|
8
|
+
}
|
|
9
|
+
declare const RadioButtonQuestion: React.FC<IRadioButtonQuestion>;
|
|
10
|
+
export default RadioButtonQuestion;
|
package/components/QuestionTemplateNext/Question/RadioButtonQuestion/RadioButtonQuestion2.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import Model from '@tripian/model';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface IRadioButtonQuestion {
|
|
4
|
+
question: Model.Question;
|
|
5
|
+
defaultAnswer?: number;
|
|
6
|
+
radioButtonChange: (addedOptionId?: number, removedOptionId?: number) => void;
|
|
7
|
+
onFocus: () => void;
|
|
8
|
+
flexDirection: 'column' | 'row';
|
|
9
|
+
}
|
|
10
|
+
declare const RadioButtonQuestion2: React.FC<IRadioButtonQuestion>;
|
|
11
|
+
export default RadioButtonQuestion2;
|
package/components/QuestionTemplateNext/Question/RadioButtonQuestion copy/RadioButtonQuestion2.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import Model from '@tripian/model';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface IRadioButtonQuestion {
|
|
4
|
+
question: Model.Question;
|
|
5
|
+
defaultAnswer?: number;
|
|
6
|
+
radioButtonChange: (addedOptionId?: number, removedOptionId?: number) => void;
|
|
7
|
+
onFocus: () => void;
|
|
8
|
+
flexDirection: 'column' | 'row';
|
|
9
|
+
}
|
|
10
|
+
declare const RadioButtonQuestion2: React.FC<IRadioButtonQuestion>;
|
|
11
|
+
export default RadioButtonQuestion2;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Model from '@tripian/model';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface ISelectQuestion {
|
|
4
|
+
question: Model.Question;
|
|
5
|
+
defaultAnswer?: number;
|
|
6
|
+
selectionChanged: (addedOptionId?: number, removedOptionId?: number) => void;
|
|
7
|
+
flexDirection: 'column' | 'row';
|
|
8
|
+
}
|
|
9
|
+
declare const SelectQuestion: React.FC<ISelectQuestion>;
|
|
10
|
+
export default SelectQuestion;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { QuestionNext } from '../FormTemplate/FormTemplateTripNext/model';
|
|
3
|
+
interface IQuestionTemplate {
|
|
4
|
+
question: QuestionNext;
|
|
5
|
+
answers: Array<number>;
|
|
6
|
+
callbackAnswers: (answers: Array<number>) => void;
|
|
7
|
+
flexDirection?: 'column' | 'row';
|
|
8
|
+
onFocused: () => void;
|
|
9
|
+
}
|
|
10
|
+
declare const QuestionTemplate: React.FC<IQuestionTemplate>;
|
|
11
|
+
export default QuestionTemplate;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Model from '@tripian/model';
|
|
3
|
+
interface IQuestionTemplate2 {
|
|
4
|
+
questions: Model.Question[];
|
|
5
|
+
answers: Array<number>;
|
|
6
|
+
callbackAnswers: (answers: Array<number>) => void;
|
|
7
|
+
onFocused: () => void;
|
|
8
|
+
flexDirection?: 'column' | 'row';
|
|
9
|
+
}
|
|
10
|
+
declare const QuestionTemplate2: React.FC<IQuestionTemplate2>;
|
|
11
|
+
export default QuestionTemplate2;
|
|
@@ -7,6 +7,8 @@ interface IUserCompanionSelection {
|
|
|
7
7
|
companionLoadingList: Array<number>;
|
|
8
8
|
callbackUserCompanionAdd: (userCompoanion: Model.Companion) => void;
|
|
9
9
|
userCompanionSelectionCallBack: (selectedCompanionId: number, isDeleteAction?: boolean) => void;
|
|
10
|
+
onFocus?: () => void;
|
|
11
|
+
onBlur?: () => void;
|
|
10
12
|
}
|
|
11
13
|
declare const UserCompanionSelection: React.FC<IUserCompanionSelection>;
|
|
12
14
|
export default UserCompanionSelection;
|
|
@@ -5,7 +5,7 @@ interface IButton {
|
|
|
5
5
|
onClick: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
6
6
|
type?: BUTTON_TYPES;
|
|
7
7
|
size?: 'default' | 'small' | 'large';
|
|
8
|
-
color?: 'default' | 'primary' | 'secondary' | 'danger' | 'disabled';
|
|
8
|
+
color?: 'default' | 'primary' | 'secondary' | 'success' | 'danger' | 'disabled';
|
|
9
9
|
style?: React.CSSProperties;
|
|
10
10
|
className?: string;
|
|
11
11
|
iconPath?: string;
|
|
@@ -14,6 +14,8 @@ interface IButton {
|
|
|
14
14
|
iconSize?: string;
|
|
15
15
|
iconViewBox?: string;
|
|
16
16
|
disabled?: boolean;
|
|
17
|
+
onFocus?: () => void;
|
|
18
|
+
onBlur?: () => void;
|
|
17
19
|
}
|
|
18
20
|
declare const Button: React.FC<IButton>;
|
|
19
21
|
export default Button;
|
|
@@ -7,8 +7,10 @@ interface IOptions {
|
|
|
7
7
|
interface IDropdown {
|
|
8
8
|
id?: string;
|
|
9
9
|
options: Array<IOptions>;
|
|
10
|
-
defaultValue: string | number;
|
|
10
|
+
defaultValue: string | number | undefined;
|
|
11
11
|
selectChange: (value: string | number, index: number) => void;
|
|
12
|
+
onFocus?: () => void;
|
|
13
|
+
onBlur?: () => void;
|
|
12
14
|
}
|
|
13
15
|
declare const Dropdown: React.FC<IDropdown>;
|
|
14
16
|
export default Dropdown;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IInput {
|
|
3
|
+
id?: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
name: string;
|
|
6
|
+
value: string | number;
|
|
7
|
+
size?: 'small' | 'large' | 'default';
|
|
8
|
+
style?: React.CSSProperties;
|
|
9
|
+
onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
10
|
+
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
11
|
+
type?: string;
|
|
12
|
+
min?: string | number;
|
|
13
|
+
max?: string | number;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
autocomplete?: string;
|
|
17
|
+
onFocus?: () => void;
|
|
18
|
+
onBlur?: () => void;
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
}
|
|
21
|
+
declare const Input: React.FC<IInput>;
|
|
22
|
+
export default Input;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface INumberCounter {
|
|
3
|
+
header?: string;
|
|
4
|
+
defaultValue?: number;
|
|
5
|
+
minValue: number;
|
|
6
|
+
maxValue: number;
|
|
7
|
+
onChange: (num: number) => void;
|
|
8
|
+
onFocus?: () => void;
|
|
9
|
+
onBlur?: () => void;
|
|
10
|
+
}
|
|
11
|
+
declare const NumberCounter: React.FC<INumberCounter>;
|
|
12
|
+
export default NumberCounter;
|
|
@@ -14,6 +14,8 @@ interface IRSelect {
|
|
|
14
14
|
disabled?: boolean;
|
|
15
15
|
onInputChange?: (newValue: string, actionMeta: InputActionMeta) => void;
|
|
16
16
|
placeHolder?: string;
|
|
17
|
+
onFocus?: () => void;
|
|
18
|
+
onBlur?: () => void;
|
|
17
19
|
}
|
|
18
20
|
declare const RSelect: React.FC<IRSelect>;
|
|
19
21
|
export default RSelect;
|