@tripian/react 9.1.39 → 9.1.40
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/CompanionSelect/CompanionSelect.d.ts +15 -0
- package/components/FormTemplate/FormTemplateProfile/FormTemplateProfile.d.ts +1 -1
- package/components/PoiActionButton/PoiActionButton.d.ts +14 -0
- package/components/PoiInfo/OpenedHours/OpenedHours.d.ts +18 -0
- package/components/PoiInfo/PoiInfo.d.ts +2 -4
- package/components/PoiInfo/PoiInfoImage/PoiInfoImageDesktop/PoiInfoImageDesktop.d.ts +10 -0
- package/components/PoiInfo/PoiInfoImage/PoiInfoImageMobile/PoiInfoImageMobile.d.ts +17 -0
- package/components/PoiInfo/PoiInfoText/PoiInfoText.d.ts +14 -13
- package/components/PoiInfoEx/PoiInfo.d.ts +20 -6
- package/components/PoiInfoEx/PoiInfoImage/PoiInfoImage.d.ts +1 -3
- package/components/PoiInfoEx/PoiInfoText/OpenedHours/OpenedHours.d.ts +17 -0
- package/components/PoiInfoEx/PoiInfoText/PoiInfoText.d.ts +16 -1
- package/components/PoiInfoEx/PoiInfoText/PoiInfoTextRow/PoiInfoTextRow.d.ts +11 -0
- package/components/StepCard/StepCard.d.ts +2 -3
- package/components/StepInfo/StepInfo.d.ts +2 -2
- package/components/StepTimes/StepTimes.d.ts +2 -1
- package/components/Stepper/Stepper.d.ts +10 -0
- package/components/TourCard/TourCard.d.ts +14 -0
- package/components/TripCard/TripCard.d.ts +0 -1
- package/components/UserCompanions/CompanionModal/CompanionModal.d.ts +17 -0
- package/components/UserCompanions/UserCompanions.d.ts +3 -1
- package/components/base/Button/Icons/FavoriteIconButton/FavoriteIconButton.d.ts +3 -2
- package/components/base/Button/Icons/FavoriteIconButton2/FavoriteIconButton2.d.ts +9 -0
- package/components/base/Button/Icons/ShareIconButton/ShareIconButton.d.ts +7 -0
- package/components/base/InfoBox/InfoBox.d.ts +1 -1
- package/components/base/PreLoading/PreLoading.d.ts +1 -1
- package/components/base/RSelectMulti/RSelectMulti.d.ts +1 -0
- package/components/base/RadioButtonGroup/RadioButtonGroup.d.ts +2 -0
- package/components/base/SelectBox/SelectBox.d.ts +11 -0
- package/components/base/SelectBoxTree/SelectBoxTree.d.ts +13 -0
- package/components/base/Svg/Icons/ArrivalDate.d.ts +8 -0
- package/components/base/Svg/Icons/ArrivalHours.d.ts +8 -0
- package/components/base/Svg/Icons/ArrowRight2.d.ts +4 -0
- package/components/base/Svg/Icons/BookOpen.d.ts +8 -0
- package/components/base/Svg/Icons/Bookmark2.d.ts +10 -0
- package/components/base/Svg/Icons/Children.d.ts +8 -0
- package/components/base/Svg/Icons/ClockBlack.d.ts +8 -0
- package/components/base/Svg/Icons/DepartureDate.d.ts +8 -0
- package/components/base/Svg/Icons/Destination.d.ts +8 -0
- package/components/base/Svg/Icons/Dots.d.ts +10 -0
- package/components/base/Svg/Icons/Features.d.ts +9 -0
- package/components/base/Svg/Icons/Flag.d.ts +10 -0
- package/components/base/Svg/Icons/Hearth.d.ts +8 -2
- package/components/base/Svg/Icons/Home.d.ts +8 -0
- package/components/base/Svg/Icons/IIconSvg.d.ts +1 -0
- package/components/base/Svg/Icons/Left.d.ts +4 -0
- package/components/base/Svg/Icons/NoImage.d.ts +10 -0
- package/components/base/Svg/Icons/Noodles.d.ts +10 -0
- package/components/base/Svg/Icons/Offer2.d.ts +10 -0
- package/components/base/Svg/Icons/Phone2.d.ts +1 -0
- package/components/base/Svg/Icons/Plus.d.ts +10 -0
- package/components/base/Svg/Icons/Replace.d.ts +9 -0
- package/components/base/Svg/Icons/Right.d.ts +4 -0
- package/components/base/Svg/Icons/Star2.d.ts +10 -0
- package/components/base/Svg/Icons/StarBlack.d.ts +8 -0
- package/components/base/Svg/Icons/Trash.d.ts +10 -0
- package/components/base/Svg/Icons/User.d.ts +8 -0
- package/components/base/Svg/Icons/Users.d.ts +6 -6
- package/components/base/Svg/Icons/Web.d.ts +8 -2
- package/components/base/Svg/Icons/X2.d.ts +10 -0
- package/components/base/Svg/Icons/index.d.ts +25 -1
- package/components/base/Svg/Svg.d.ts +1 -0
- package/img/05da59777930f6a5195ab0310b141e96.png +0 -0
- package/img/3987cf986ff539cbe393140dbf5eabc5.png +0 -0
- package/img/5d194790712d73f6754f97d5290518d1.png +0 -0
- package/img/8ad7ee196e423d523d37a11682380e31.png +0 -0
- package/img/8c4e6c7fc8dcac8a9129498246ad2e58.svg +10 -0
- package/img/903a0071a08a77758eab5955df5a117e.png +0 -0
- package/img/f528fc95db1804a7cbe7a40a720b37c1.png +0 -0
- package/index.d.ts +11 -3
- package/index.js +22472 -20481
- package/index.js.map +1 -1
- package/min.css +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { InputActionMeta } from 'react-select';
|
|
3
|
+
import { RSelectOption } from '../base/RSelect/RSelect';
|
|
4
|
+
interface ICompanionSelect {
|
|
5
|
+
options: RSelectOption[];
|
|
6
|
+
selectedOptionValues: string[];
|
|
7
|
+
onSelectedOptionChange: (selectedOptions: RSelectOption[]) => void;
|
|
8
|
+
onInputChange?: (newValue: string, actionMeta: InputActionMeta) => void;
|
|
9
|
+
placeHolder?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
onFocus?: () => void;
|
|
12
|
+
onBlur?: () => void;
|
|
13
|
+
}
|
|
14
|
+
declare const CompanionSelect: React.FC<ICompanionSelect>;
|
|
15
|
+
export default CompanionSelect;
|
|
@@ -5,7 +5,7 @@ interface IFormTemplateProfile {
|
|
|
5
5
|
profileQuestions: Model.Question[];
|
|
6
6
|
updateUser: (userUpdateRequest: Model.UserUpdateRequest) => Promise<Model.User>;
|
|
7
7
|
updateCallback: (updatedUser: Model.User) => void;
|
|
8
|
-
cancel: (
|
|
8
|
+
cancel: () => void;
|
|
9
9
|
forgotPassword: () => void;
|
|
10
10
|
canChangePassword: boolean;
|
|
11
11
|
t: (value: Model.TranslationKey) => string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Model from '@tripian/model';
|
|
3
|
+
interface PoiActionButtonProps {
|
|
4
|
+
poi: Model.Poi;
|
|
5
|
+
hideActionButtons: boolean;
|
|
6
|
+
replace: boolean;
|
|
7
|
+
stepOrder: number;
|
|
8
|
+
partOfDay?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
addRemoveReplacePoi: (poi: Model.Poi, removeReplaceAdd: number, from?: string, to?: string) => void;
|
|
11
|
+
t: (value: Model.TranslationKey) => string;
|
|
12
|
+
}
|
|
13
|
+
declare const PoiActionButton: React.FC<PoiActionButtonProps>;
|
|
14
|
+
export default PoiActionButton;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Model from '@tripian/model';
|
|
3
|
+
interface IOPenedHours {
|
|
4
|
+
hourStr: string;
|
|
5
|
+
planDate?: string;
|
|
6
|
+
t: (value: Model.TranslationKey) => string;
|
|
7
|
+
}
|
|
8
|
+
interface IHourItem {
|
|
9
|
+
hour: {
|
|
10
|
+
day: string;
|
|
11
|
+
clock: string[];
|
|
12
|
+
};
|
|
13
|
+
lineHeight?: string;
|
|
14
|
+
current?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const HourItem: React.FC<IHourItem>;
|
|
17
|
+
declare const OpenedHours: React.FC<IOPenedHours>;
|
|
18
|
+
export default OpenedHours;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Model from '@tripian/model';
|
|
3
3
|
interface IPoiInfo {
|
|
4
|
-
score?: number | null;
|
|
5
|
-
scoreDetails?: number[];
|
|
6
4
|
poi: Model.Poi;
|
|
7
5
|
favorite: boolean;
|
|
8
6
|
toggleFavorite: (poi: Model.Poi, willFavorite: boolean) => void;
|
|
@@ -13,7 +11,6 @@ interface IPoiInfo {
|
|
|
13
11
|
replace?: boolean;
|
|
14
12
|
hideActionButtons?: boolean;
|
|
15
13
|
hideFavoriteIcon?: boolean;
|
|
16
|
-
hideScore?: boolean;
|
|
17
14
|
hidePartOfDay?: boolean;
|
|
18
15
|
hideFeatures?: boolean;
|
|
19
16
|
hideCuisine?: boolean;
|
|
@@ -36,8 +33,9 @@ interface IPoiInfo {
|
|
|
36
33
|
hideOffers: boolean;
|
|
37
34
|
loadingFeedback: boolean;
|
|
38
35
|
feedbackSubjects: Model.FeedbackSubjects[];
|
|
36
|
+
isBookingClicked: boolean;
|
|
39
37
|
sendFeedback: (value: Model.FeedbackRequest) => Promise<void>;
|
|
40
|
-
placeInfoCallBack
|
|
38
|
+
placeInfoCallBack: () => void;
|
|
41
39
|
redeemClicked?: () => void;
|
|
42
40
|
t: (value: Model.TranslationKey) => string;
|
|
43
41
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
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 IPoiInfoImageDesktop {
|
|
6
|
+
poi: Model.Poi;
|
|
7
|
+
t: (key: Model.TranslationKey) => string;
|
|
8
|
+
}
|
|
9
|
+
declare const PoiInfoImageDesktop: React.FC<IPoiInfoImageDesktop>;
|
|
10
|
+
export default PoiInfoImageDesktop;
|
|
@@ -0,0 +1,17 @@
|
|
|
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 IPoiInfoImageMobile {
|
|
6
|
+
poi: Model.Poi;
|
|
7
|
+
square: boolean;
|
|
8
|
+
hideFavoriteIcon: boolean;
|
|
9
|
+
favoriteLoading: boolean;
|
|
10
|
+
favorite: boolean;
|
|
11
|
+
toggleFavorite: (poi: Model.Poi, willFavorite: boolean) => void;
|
|
12
|
+
placeInfoCallBack: () => void;
|
|
13
|
+
close: (poi: Model.Poi) => void;
|
|
14
|
+
t: (value: Model.TranslationKey) => string;
|
|
15
|
+
}
|
|
16
|
+
declare const PoiInfoImageMobile: React.FC<IPoiInfoImageMobile>;
|
|
17
|
+
export default PoiInfoImageMobile;
|
|
@@ -2,26 +2,27 @@ import React from 'react';
|
|
|
2
2
|
import Model from '@tripian/model';
|
|
3
3
|
interface IPoiInfoText {
|
|
4
4
|
poi: Model.Poi;
|
|
5
|
-
hideFavoriteIcon: boolean;
|
|
6
|
-
hidePartOfDay?: boolean;
|
|
7
5
|
hideFeatures?: boolean;
|
|
8
6
|
hideCuisine?: boolean;
|
|
9
|
-
favorite: boolean;
|
|
10
|
-
favoriteLoading: boolean;
|
|
11
|
-
favoriteClick: (favorite: boolean) => void;
|
|
12
|
-
stepOrder?: number;
|
|
13
|
-
replace?: boolean;
|
|
14
|
-
addRemoveReplacePoi: (poi: Model.Poi, removeReplaceAdd: number, from?: string, to?: string) => void;
|
|
15
|
-
hideActionButtons?: boolean;
|
|
16
|
-
dayNumbers?: number[];
|
|
17
|
-
planDate?: string;
|
|
18
7
|
reservationUrl?: string;
|
|
19
8
|
hideBookingButton: boolean;
|
|
9
|
+
hideActionButtons?: boolean;
|
|
10
|
+
replace?: boolean;
|
|
11
|
+
stepOrder?: number;
|
|
12
|
+
addRemoveReplacePoi: (poi: Model.Poi, removeReplaceAdd: number, from?: string, to?: string) => void;
|
|
13
|
+
partOfDay: string;
|
|
20
14
|
bookingButtonClick?: (productId: string, poi: Model.Poi) => void;
|
|
21
|
-
tourTicketButtonClick?: () => void;
|
|
22
15
|
tourTicketProductsLoading?: boolean;
|
|
23
|
-
showTourTicketButton?: boolean;
|
|
24
16
|
RESTAURANT_RESERVATION_PROVIDER_IDS: Model.PROVIDER_ID[];
|
|
17
|
+
hideFeedback?: boolean;
|
|
18
|
+
hideTours: boolean;
|
|
19
|
+
loadingFeedback: boolean;
|
|
20
|
+
feedbackSubjects: Model.FeedbackSubjects[];
|
|
21
|
+
tourProducts: Model.BookingProduct[];
|
|
22
|
+
ticketProducts: Model.BookingProduct[];
|
|
23
|
+
isBookingClicked?: boolean;
|
|
24
|
+
getTourInfo?: (productId: string, poi: Model.Poi) => void;
|
|
25
|
+
sendFeedback: (value: Model.FeedbackRequest) => Promise<void>;
|
|
25
26
|
t: (value: Model.TranslationKey) => string;
|
|
26
27
|
}
|
|
27
28
|
declare const PoiInfoText: React.FC<IPoiInfoText>;
|
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Model from '@tripian/model';
|
|
3
3
|
interface IPoiInfo {
|
|
4
|
+
score?: number | null;
|
|
5
|
+
scoreDetails?: number[];
|
|
4
6
|
poi: Model.Poi;
|
|
5
7
|
favorite: boolean;
|
|
6
8
|
toggleFavorite: (poi: Model.Poi, willFavorite: boolean) => void;
|
|
7
|
-
addRemoveReplacePoi: (poi: Model.Poi, removeReplaceAdd: number) => void;
|
|
9
|
+
addRemoveReplacePoi: (poi: Model.Poi, removeReplaceAdd: number, from?: string, to?: string) => void;
|
|
8
10
|
close: (poi: Model.Poi) => void;
|
|
9
11
|
dayNumbers?: number[];
|
|
10
12
|
stepOrder?: number;
|
|
11
13
|
replace?: boolean;
|
|
12
14
|
hideActionButtons?: boolean;
|
|
13
15
|
hideFavoriteIcon?: boolean;
|
|
16
|
+
hideScore?: boolean;
|
|
17
|
+
hidePartOfDay?: boolean;
|
|
18
|
+
hideFeatures?: boolean;
|
|
19
|
+
hideCuisine?: boolean;
|
|
14
20
|
planDate?: string;
|
|
15
21
|
bookingButtonClick?: (productId: string, poi: Model.Poi) => void;
|
|
16
22
|
favoriteLoading: boolean;
|
|
@@ -18,14 +24,22 @@ interface IPoiInfo {
|
|
|
18
24
|
hideBookingButton: boolean;
|
|
19
25
|
square?: boolean;
|
|
20
26
|
hideTours: boolean;
|
|
21
|
-
getTourInfo?: (productId: string) => void;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
27
|
+
getTourInfo?: (productId: string, poi: Model.Poi) => void;
|
|
28
|
+
tourProducts: Model.BookingProduct[];
|
|
29
|
+
ticketProducts: Model.BookingProduct[];
|
|
30
|
+
tourTicketProductsLoading: boolean;
|
|
31
|
+
RESTAURANT_RESERVATION_PROVIDER_IDS: Model.PROVIDER_ID[];
|
|
25
32
|
myOffers: Model.Poi[];
|
|
26
33
|
isLoadingOffer: (offerId: number) => boolean;
|
|
27
|
-
offerButtonClick: (optIn: boolean,
|
|
34
|
+
offerButtonClick: (optIn: boolean, offer: Model.Offer, optInDate: string) => void;
|
|
35
|
+
offerCardClicked?: () => void;
|
|
28
36
|
hideOffers: boolean;
|
|
37
|
+
loadingFeedback: boolean;
|
|
38
|
+
feedbackSubjects: Model.FeedbackSubjects[];
|
|
39
|
+
sendFeedback: (value: Model.FeedbackRequest) => Promise<void>;
|
|
40
|
+
placeInfoCallBack?: () => void;
|
|
41
|
+
redeemClicked?: () => void;
|
|
42
|
+
t: (value: Model.TranslationKey) => string;
|
|
29
43
|
}
|
|
30
44
|
declare const PoiInfo: React.FC<IPoiInfo>;
|
|
31
45
|
export default PoiInfo;
|
|
@@ -4,12 +4,10 @@ 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;
|
|
10
|
+
t: (value: Model.TranslationKey) => string;
|
|
13
11
|
}
|
|
14
12
|
declare const PoiInfoImage: React.FC<IPoiInfoImage>;
|
|
15
13
|
export default PoiInfoImage;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Model from '@tripian/model';
|
|
3
|
+
interface IOPenedHours {
|
|
4
|
+
hourStr: string;
|
|
5
|
+
planDate?: string;
|
|
6
|
+
t: (value: Model.TranslationKey) => string;
|
|
7
|
+
}
|
|
8
|
+
interface IHourItem {
|
|
9
|
+
hour: {
|
|
10
|
+
day: string;
|
|
11
|
+
clock: string[];
|
|
12
|
+
};
|
|
13
|
+
lineHeight?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const HourItem: React.FC<IHourItem>;
|
|
16
|
+
declare const OpenedHours: React.FC<IOPenedHours>;
|
|
17
|
+
export default OpenedHours;
|
|
@@ -2,12 +2,27 @@ import React from 'react';
|
|
|
2
2
|
import Model from '@tripian/model';
|
|
3
3
|
interface IPoiInfoText {
|
|
4
4
|
poi: Model.Poi;
|
|
5
|
+
hideFavoriteIcon: boolean;
|
|
6
|
+
hidePartOfDay?: boolean;
|
|
7
|
+
hideFeatures?: boolean;
|
|
8
|
+
hideCuisine?: boolean;
|
|
9
|
+
favorite: boolean;
|
|
10
|
+
favoriteLoading: boolean;
|
|
11
|
+
favoriteClick: (favorite: boolean) => void;
|
|
12
|
+
stepOrder?: number;
|
|
13
|
+
replace?: boolean;
|
|
14
|
+
addRemoveReplacePoi: (poi: Model.Poi, removeReplaceAdd: number, from?: string, to?: string) => void;
|
|
15
|
+
hideActionButtons?: boolean;
|
|
5
16
|
dayNumbers?: number[];
|
|
6
17
|
planDate?: string;
|
|
7
18
|
reservationUrl?: string;
|
|
8
19
|
hideBookingButton: boolean;
|
|
9
20
|
bookingButtonClick?: (productId: string, poi: Model.Poi) => void;
|
|
10
|
-
|
|
21
|
+
tourTicketButtonClick?: () => void;
|
|
22
|
+
tourTicketProductsLoading?: boolean;
|
|
23
|
+
showTourTicketButton?: boolean;
|
|
24
|
+
RESTAURANT_RESERVATION_PROVIDER_IDS: Model.PROVIDER_ID[];
|
|
25
|
+
t: (value: Model.TranslationKey) => string;
|
|
11
26
|
}
|
|
12
27
|
declare const PoiInfoText: React.FC<IPoiInfoText>;
|
|
13
28
|
export default PoiInfoText;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
children: React.ReactElement | React.ReactElement[] | null;
|
|
4
|
+
border?: boolean;
|
|
5
|
+
height?: string | number;
|
|
6
|
+
};
|
|
7
|
+
declare const PoiInfoTextRow: React.FC<Props>;
|
|
8
|
+
export declare const PoiInfoTextRowHeader: React.FC<{
|
|
9
|
+
header: string;
|
|
10
|
+
}>;
|
|
11
|
+
export default PoiInfoTextRow;
|
|
@@ -4,19 +4,17 @@ interface IStepCard {
|
|
|
4
4
|
step: Model.Step;
|
|
5
5
|
clicked: (step: Model.Step) => void;
|
|
6
6
|
alternativePois: Model.Poi[];
|
|
7
|
-
alternativePoisDays: number[][];
|
|
8
|
-
alternativePoiCardClicked: (alternativePoi: Model.Poi) => void;
|
|
9
7
|
alternativeReplace: (alternativePoi: Model.Poi) => void;
|
|
10
8
|
showAlternativesChange: (stepId: number, show: boolean) => void;
|
|
11
9
|
showAlternatives?: boolean;
|
|
12
10
|
timesClicked: (from: string, to: string) => void;
|
|
11
|
+
userReactionRemoveStep: () => void;
|
|
13
12
|
TOUR_PROVIDER_IDS: Model.PROVIDER_ID[];
|
|
14
13
|
TICKET_PROVIDER_IDS: Model.PROVIDER_ID[];
|
|
15
14
|
RESTAURANT_RESERVATION_PROVIDER_IDS: Model.PROVIDER_ID[];
|
|
16
15
|
hideReservationIcon: boolean;
|
|
17
16
|
hideTourTicketIcons: boolean;
|
|
18
17
|
hideOfferIcon: boolean;
|
|
19
|
-
hideScore?: boolean;
|
|
20
18
|
hideStepsTime?: boolean;
|
|
21
19
|
isWidget?: boolean;
|
|
22
20
|
hideFeatures?: boolean;
|
|
@@ -26,6 +24,7 @@ interface IStepCard {
|
|
|
26
24
|
viatorTourIds: string[];
|
|
27
25
|
toristyTourIds: string[];
|
|
28
26
|
tourTicketProductsLoading: boolean;
|
|
27
|
+
onBookClick?: (step: Model.Step) => void;
|
|
29
28
|
t: (value: Model.TranslationKey) => string;
|
|
30
29
|
}
|
|
31
30
|
declare const StepCard: React.FC<IStepCard>;
|
|
@@ -9,7 +9,6 @@ interface IStepInfo {
|
|
|
9
9
|
dayNumbers: number[];
|
|
10
10
|
hideActionButtons?: boolean;
|
|
11
11
|
hideFavoriteIcon?: boolean;
|
|
12
|
-
hideScore?: boolean;
|
|
13
12
|
hidePartOfDay?: boolean;
|
|
14
13
|
hideFeatures?: boolean;
|
|
15
14
|
hideCuisine?: boolean;
|
|
@@ -32,8 +31,9 @@ interface IStepInfo {
|
|
|
32
31
|
loadingFeedback: boolean;
|
|
33
32
|
feedbackSubjects: Model.FeedbackSubjects[];
|
|
34
33
|
sendFeedback: (value: Model.FeedbackRequest) => Promise<void>;
|
|
35
|
-
placeInfoCallBack
|
|
34
|
+
placeInfoCallBack: () => void;
|
|
36
35
|
showStepScoreDetails: boolean;
|
|
36
|
+
isBookingClicked: boolean;
|
|
37
37
|
t: (value: Model.TranslationKey) => string;
|
|
38
38
|
}
|
|
39
39
|
declare const StepInfo: React.FC<IStepInfo>;
|
|
@@ -11,9 +11,10 @@ interface IStepTimes {
|
|
|
11
11
|
from?: string;
|
|
12
12
|
to?: string;
|
|
13
13
|
};
|
|
14
|
-
timesClicked: (from?: string, to?: string) => void;
|
|
15
14
|
buttonText: string;
|
|
16
15
|
duration?: string;
|
|
16
|
+
timesClicked: (from?: string, to?: string) => void;
|
|
17
|
+
onClose: () => void;
|
|
17
18
|
t: (value: Model.TranslationKey) => string;
|
|
18
19
|
}
|
|
19
20
|
declare const StepTimes: React.FC<IStepTimes>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type TourCardProps = {
|
|
3
|
+
title: string;
|
|
4
|
+
price?: number;
|
|
5
|
+
currency?: string;
|
|
6
|
+
rating?: number;
|
|
7
|
+
reviewCount?: number;
|
|
8
|
+
images: string[];
|
|
9
|
+
tags: string[];
|
|
10
|
+
provider?: string;
|
|
11
|
+
onBook?: () => void;
|
|
12
|
+
};
|
|
13
|
+
declare const TourCard: React.FC<TourCardProps>;
|
|
14
|
+
export default TourCard;
|
|
@@ -9,7 +9,6 @@ interface ITripCard {
|
|
|
9
9
|
showShareTrip: boolean;
|
|
10
10
|
shareTrip: (tripReference: Model.TripReference) => void;
|
|
11
11
|
clicked: (tripReference: Model.TripReference) => void;
|
|
12
|
-
tripNameClicked: (tripReference: Model.TripReference) => void;
|
|
13
12
|
t: (value: Model.TranslationKey) => string;
|
|
14
13
|
}
|
|
15
14
|
declare const TripCard: React.FC<ITripCard>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Model from '@tripian/model';
|
|
3
|
+
export declare enum CompanionModalMode {
|
|
4
|
+
CREATE = "create",
|
|
5
|
+
EDIT = "edit"
|
|
6
|
+
}
|
|
7
|
+
interface Props {
|
|
8
|
+
isOpen: boolean;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
onSubmit: (companion: Model.Companion) => void;
|
|
11
|
+
initialData?: Model.Companion | null;
|
|
12
|
+
mode?: CompanionModalMode;
|
|
13
|
+
questions: Array<Model.Question>;
|
|
14
|
+
t: (value: Model.TranslationKey) => string;
|
|
15
|
+
}
|
|
16
|
+
declare const CompanionModal: React.FC<Props>;
|
|
17
|
+
export default CompanionModal;
|
|
@@ -2,11 +2,13 @@ import React from 'react';
|
|
|
2
2
|
import Model from '@tripian/model';
|
|
3
3
|
interface IUserCompanions {
|
|
4
4
|
companions: Model.Companion[];
|
|
5
|
-
questions: Array<Model.Question>;
|
|
6
5
|
companionLoadingList: Array<number>;
|
|
7
6
|
deleteCompanion: (id: number) => void;
|
|
8
7
|
editCompanion: (companion: Model.Companion) => void;
|
|
8
|
+
addCompanion: (companion: Model.Companion) => void;
|
|
9
9
|
showWarningMessage: (show: boolean) => void;
|
|
10
|
+
onEditClick: (companion: Model.Companion) => void;
|
|
11
|
+
onAddClick: () => void;
|
|
10
12
|
t: (value: Model.TranslationKey) => string;
|
|
11
13
|
}
|
|
12
14
|
declare const UserCompanions: React.FC<IUserCompanions>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import './FavoriteIconButton.scss';
|
|
3
2
|
interface IFavoriteIconButton {
|
|
4
|
-
clicked: () => void;
|
|
5
3
|
favorite: boolean;
|
|
4
|
+
loading?: boolean;
|
|
5
|
+
className?: string;
|
|
6
|
+
clicked: () => void;
|
|
6
7
|
}
|
|
7
8
|
declare const FavoriteIconButton: React.FC<IFavoriteIconButton>;
|
|
8
9
|
export default FavoriteIconButton;
|
|
@@ -8,6 +8,8 @@ interface IRadioButtonGroup {
|
|
|
8
8
|
defaultSelectedId?: number;
|
|
9
9
|
onChange: (addedId?: number, removedId?: number) => void;
|
|
10
10
|
skippable: boolean;
|
|
11
|
+
onFocus?: () => void;
|
|
12
|
+
onBlur?: () => void;
|
|
11
13
|
}
|
|
12
14
|
declare const RadioButtonGroup: React.FC<IRadioButtonGroup>;
|
|
13
15
|
export default RadioButtonGroup;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ISelectBox {
|
|
3
|
+
domId: string;
|
|
4
|
+
text: string;
|
|
5
|
+
style?: React.CSSProperties;
|
|
6
|
+
checked: boolean;
|
|
7
|
+
onChange: (checked: boolean, domId: string) => void;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const SelectBox: React.FC<ISelectBox>;
|
|
11
|
+
export default SelectBox;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Model from '@tripian/model';
|
|
3
|
+
interface ISelectBoxTree {
|
|
4
|
+
domId: string;
|
|
5
|
+
text: string;
|
|
6
|
+
subOptions: Array<Model.SubAnswer>;
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
checkeds: Array<number>;
|
|
9
|
+
onChangeParent: (checked: boolean, domId: string) => void;
|
|
10
|
+
onChangeChild: (checked: boolean, domId: string) => void;
|
|
11
|
+
}
|
|
12
|
+
declare const SelectBoxTree: React.FC<ISelectBoxTree>;
|
|
13
|
+
export default SelectBoxTree;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
type Props = {
|
|
3
|
+
fill?: string;
|
|
4
|
+
stroke?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
width?: string;
|
|
7
|
+
height?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const Hearth: React.FC<Props>;
|
|
4
10
|
export default Hearth;
|