@tripian/react 9.1.39 → 9.1.41

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.
Files changed (83) hide show
  1. package/components/CompanionModal/CompanionModal.d.ts +14 -0
  2. package/components/CompanionModal/CompanionModalMode.d.ts +5 -0
  3. package/components/CompanionSelect/CompanionSelect.d.ts +15 -0
  4. package/components/FormTemplate/FormTemplateProfile/FormTemplateProfile.d.ts +1 -1
  5. package/components/FormTemplate/FormTemplateTripNext/FormTemplateTripNext.d.ts +1 -1
  6. package/components/FormTemplate/FormTemplateTripNext/StepTravelerInfo/StepTravelerInfo.d.ts +1 -1
  7. package/components/PoiActionButton/PoiActionButton.d.ts +14 -0
  8. package/components/PoiInfo/OpenedHours/OpenedHours.d.ts +19 -0
  9. package/components/PoiInfo/PoiActionButton/PoiActionButton.d.ts +14 -0
  10. package/components/PoiInfo/PoiInfo.d.ts +4 -5
  11. package/components/PoiInfo/PoiInfoImage/PoiInfoImageDesktop/PoiInfoImageDesktop.d.ts +10 -0
  12. package/components/PoiInfo/PoiInfoImage/PoiInfoImageMobile/PoiInfoImageMobile.d.ts +17 -0
  13. package/components/PoiInfo/PoiInfoText/PoiInfoText.d.ts +15 -14
  14. package/components/PoiInfoEx/PoiInfo.d.ts +20 -6
  15. package/components/PoiInfoEx/PoiInfoImage/PoiInfoImage.d.ts +1 -3
  16. package/components/PoiInfoEx/PoiInfoText/OpenedHours/OpenedHours.d.ts +17 -0
  17. package/components/PoiInfoEx/PoiInfoText/PoiInfoText.d.ts +16 -1
  18. package/components/PoiInfoEx/PoiInfoText/PoiInfoTextRow/PoiInfoTextRow.d.ts +11 -0
  19. package/components/SharePoiModal/SharePoiModal.d.ts +10 -0
  20. package/components/StepCard/StepCard.d.ts +2 -4
  21. package/components/StepInfo/StepInfo.d.ts +4 -3
  22. package/components/StepTimes/StepTimes.d.ts +2 -1
  23. package/components/Stepper/Stepper.d.ts +10 -0
  24. package/components/TourCard/TourCard.d.ts +14 -0
  25. package/components/TripCard/TripCard.d.ts +0 -1
  26. package/components/UserCompanionSelection/UserCompanionSelection.d.ts +1 -1
  27. package/components/UserCompanions/CompanionModal/CompanionModal.d.ts +17 -0
  28. package/components/UserCompanions/UserCompanions.d.ts +3 -1
  29. package/components/base/Button/Icons/FavoriteIconButton/FavoriteIconButton.d.ts +3 -2
  30. package/components/base/Button/Icons/FavoriteIconButton2/FavoriteIconButton2.d.ts +9 -0
  31. package/components/base/Button/Icons/ShareIconButton/ShareIconButton.d.ts +7 -0
  32. package/components/base/InfoBox/InfoBox.d.ts +1 -1
  33. package/components/base/Modal/Modal.d.ts +1 -1
  34. package/components/base/PreLoading/PreLoading.d.ts +1 -1
  35. package/components/base/RSelectMulti/RSelectMulti.d.ts +1 -0
  36. package/components/base/RadioButtonGroup/RadioButtonGroup.d.ts +2 -0
  37. package/components/base/SelectBox/SelectBox.d.ts +11 -0
  38. package/components/base/SelectBoxTree/SelectBoxTree.d.ts +13 -0
  39. package/components/base/Svg/Icons/ArrivalDate.d.ts +8 -0
  40. package/components/base/Svg/Icons/ArrivalHours.d.ts +8 -0
  41. package/components/base/Svg/Icons/ArrowRight2.d.ts +4 -0
  42. package/components/base/Svg/Icons/BookOpen.d.ts +8 -0
  43. package/components/base/Svg/Icons/Bookmark2.d.ts +10 -0
  44. package/components/base/Svg/Icons/Children.d.ts +8 -0
  45. package/components/base/Svg/Icons/ClockBlack.d.ts +8 -0
  46. package/components/base/Svg/Icons/DepartureDate.d.ts +8 -0
  47. package/components/base/Svg/Icons/Destination.d.ts +8 -0
  48. package/components/base/Svg/Icons/Dots.d.ts +10 -0
  49. package/components/base/Svg/Icons/Features.d.ts +9 -0
  50. package/components/base/Svg/Icons/Flag.d.ts +10 -0
  51. package/components/base/Svg/Icons/Hearth.d.ts +8 -2
  52. package/components/base/Svg/Icons/Home.d.ts +8 -0
  53. package/components/base/Svg/Icons/IIconSvg.d.ts +1 -0
  54. package/components/base/Svg/Icons/Info3.d.ts +2 -0
  55. package/components/base/Svg/Icons/Left.d.ts +4 -0
  56. package/components/base/Svg/Icons/NoImage.d.ts +10 -0
  57. package/components/base/Svg/Icons/Noodles.d.ts +10 -0
  58. package/components/base/Svg/Icons/Offer2.d.ts +10 -0
  59. package/components/base/Svg/Icons/Phone2.d.ts +1 -0
  60. package/components/base/Svg/Icons/Plus.d.ts +10 -0
  61. package/components/base/Svg/Icons/Replace.d.ts +9 -0
  62. package/components/base/Svg/Icons/Right.d.ts +4 -0
  63. package/components/base/Svg/Icons/Star2.d.ts +10 -0
  64. package/components/base/Svg/Icons/StarBlack.d.ts +8 -0
  65. package/components/base/Svg/Icons/Trash.d.ts +10 -0
  66. package/components/base/Svg/Icons/User.d.ts +8 -0
  67. package/components/base/Svg/Icons/Users.d.ts +6 -6
  68. package/components/base/Svg/Icons/Web.d.ts +8 -2
  69. package/components/base/Svg/Icons/X2.d.ts +10 -0
  70. package/components/base/Svg/Icons/index.d.ts +25 -1
  71. package/components/base/Svg/Svg.d.ts +1 -0
  72. package/img/05da59777930f6a5195ab0310b141e96.png +0 -0
  73. package/img/3987cf986ff539cbe393140dbf5eabc5.png +0 -0
  74. package/img/5d194790712d73f6754f97d5290518d1.png +0 -0
  75. package/img/8ad7ee196e423d523d37a11682380e31.png +0 -0
  76. package/img/8c4e6c7fc8dcac8a9129498246ad2e58.svg +10 -0
  77. package/img/903a0071a08a77758eab5955df5a117e.png +0 -0
  78. package/img/f528fc95db1804a7cbe7a40a720b37c1.png +0 -0
  79. package/index.d.ts +12 -3
  80. package/index.js +23525 -20539
  81. package/index.js.map +1 -1
  82. package/min.css +1 -1
  83. package/package.json +2 -2
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import Model from '@tripian/model';
3
+ import CompanionModalMode from './CompanionModalMode';
4
+ interface Props {
5
+ isOpen: boolean;
6
+ onClose: () => void;
7
+ onSubmit: (companion: Model.Companion) => void;
8
+ initialData?: Model.Companion | null;
9
+ mode?: CompanionModalMode;
10
+ questions: Array<Model.Question>;
11
+ t: (value: Model.TranslationKey) => string;
12
+ }
13
+ declare const CompanionModal: React.FC<Props>;
14
+ export default CompanionModal;
@@ -0,0 +1,5 @@
1
+ declare enum CompanionModalMode {
2
+ CREATE = "create",
3
+ EDIT = "edit"
4
+ }
5
+ export default CompanionModalMode;
@@ -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: (value: Model.User) => void;
8
+ cancel: () => void;
9
9
  forgotPassword: () => void;
10
10
  canChangePassword: boolean;
11
11
  t: (value: Model.TranslationKey) => string;
@@ -14,7 +14,7 @@ interface IFormTemplateTripNext {
14
14
  callbackTripProfile: (tripProfile: Model.TripProfile) => void;
15
15
  userCompanionQuestions: Array<Model.Question>;
16
16
  userCompanions?: Array<Model.Companion>;
17
- companionLoadingList: Array<number>;
17
+ loadingCompanion: boolean;
18
18
  callbackUserCompanionAdd: (userCompoanion: Model.Companion) => void;
19
19
  showTripModeQuestion?: boolean;
20
20
  stepHeaders: {
@@ -9,7 +9,7 @@ export interface StepTravelerInfoProps {
9
9
  cities: Array<Model.City>;
10
10
  userCompanionQuestions: Array<Model.Question>;
11
11
  userCompanions?: Array<Model.Companion>;
12
- companionLoadingList: Array<number>;
12
+ loadingCompanion: boolean;
13
13
  callbackUserCompanionAdd: (userCompoanion: Model.Companion) => void;
14
14
  travelerInfoTips: {
15
15
  iconUrl: 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,19 @@
1
+ import React from 'react';
2
+ import Model from '@tripian/model';
3
+ interface IOPenedHours {
4
+ hourStr: string;
5
+ timezone: string;
6
+ planDate?: string;
7
+ t: (value: Model.TranslationKey) => string;
8
+ }
9
+ interface IHourItem {
10
+ hour: {
11
+ day: string;
12
+ clock: string[];
13
+ };
14
+ lineHeight?: string;
15
+ current?: boolean;
16
+ }
17
+ export declare const HourItem: React.FC<IHourItem>;
18
+ declare const OpenedHours: React.FC<IOPenedHours>;
19
+ export default OpenedHours;
@@ -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;
@@ -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,12 +11,11 @@ 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;
20
17
  planDate?: string;
21
- bookingButtonClick?: (productId: string, poi: Model.Poi) => void;
18
+ reservationButtonClick?: (productId: string, poi: Model.Poi) => void;
22
19
  favoriteLoading: boolean;
23
20
  reservationUrl?: string;
24
21
  hideBookingButton: boolean;
@@ -36,8 +33,10 @@ interface IPoiInfo {
36
33
  hideOffers: boolean;
37
34
  loadingFeedback: boolean;
38
35
  feedbackSubjects: Model.FeedbackSubjects[];
36
+ isBookingClicked: boolean;
37
+ timezone?: string;
39
38
  sendFeedback: (value: Model.FeedbackRequest) => Promise<void>;
40
- placeInfoCallBack?: () => void;
39
+ placeInfoCallBack: () => void;
41
40
  redeemClicked?: () => void;
42
41
  t: (value: Model.TranslationKey) => string;
43
42
  }
@@ -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;
20
- bookingButtonClick?: (productId: string, poi: Model.Poi) => void;
21
- tourTicketButtonClick?: () => void;
9
+ hideActionButtons?: boolean;
10
+ replace?: boolean;
11
+ stepOrder?: number;
12
+ addRemoveReplacePoi: (poi: Model.Poi, removeReplaceAdd: number, from?: string, to?: string) => void;
13
+ partOfDay: string;
14
+ reservationButtonClick?: (productId: string, poi: Model.Poi) => 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
- TOUR_PROVIDER_ID: Model.PROVIDER_ID;
23
- TICKET_PROVIDER_ID: Model.PROVIDER_ID;
24
- RESTAURANT_RESERVATION_PROVIDER_ID: Model.PROVIDER_ID;
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, offerId: number, optInDate: string) => void;
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
- RESTAURANT_RESERVATION_PROVIDER_ID: Model.PROVIDER_ID;
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;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import Model from '@tripian/model';
3
+ interface IShareTripModal {
4
+ poiName?: string;
5
+ poiId: string;
6
+ onCancel: () => void;
7
+ t: (value: Model.TranslationKey) => string;
8
+ }
9
+ declare const ShareTripModal: React.FC<IShareTripModal>;
10
+ export default ShareTripModal;
@@ -4,19 +4,16 @@ 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
- hideOfferIcon: boolean;
19
- hideScore?: boolean;
20
17
  hideStepsTime?: boolean;
21
18
  isWidget?: boolean;
22
19
  hideFeatures?: boolean;
@@ -26,6 +23,7 @@ interface IStepCard {
26
23
  viatorTourIds: string[];
27
24
  toristyTourIds: string[];
28
25
  tourTicketProductsLoading: boolean;
26
+ onBookClick?: (step: Model.Step) => void;
29
27
  t: (value: Model.TranslationKey) => string;
30
28
  }
31
29
  declare const StepCard: React.FC<IStepCard>;
@@ -9,12 +9,11 @@ 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;
16
15
  planDate?: string;
17
- bookingButtonClick?: (productId: string, poi: Model.Poi) => void;
16
+ reservationButtonClick?: (productId: string, poi: Model.Poi) => void;
18
17
  favoriteLoading: boolean;
19
18
  reservationUrl?: string;
20
19
  hideTours: boolean;
@@ -32,8 +31,10 @@ interface IStepInfo {
32
31
  loadingFeedback: boolean;
33
32
  feedbackSubjects: Model.FeedbackSubjects[];
34
33
  sendFeedback: (value: Model.FeedbackRequest) => Promise<void>;
35
- placeInfoCallBack?: () => void;
34
+ placeInfoCallBack: () => void;
36
35
  showStepScoreDetails: boolean;
36
+ isBookingClicked: boolean;
37
+ timezone?: string;
37
38
  t: (value: Model.TranslationKey) => string;
38
39
  }
39
40
  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,10 @@
1
+ import React from 'react';
2
+ interface IStepper {
3
+ stepHeaders: {
4
+ stepId: number;
5
+ header: string;
6
+ }[];
7
+ stepId: number;
8
+ }
9
+ declare const Stepper: React.FC<IStepper>;
10
+ export default Stepper;
@@ -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>;
@@ -4,7 +4,7 @@ interface IUserCompanionSelection {
4
4
  selectedCompanionIds: number[];
5
5
  userCompanionQuestions: Array<Model.Question>;
6
6
  userCompanions?: Array<Model.Companion>;
7
- companionLoadingList: Array<number>;
7
+ loadingCompanion: boolean;
8
8
  callbackUserCompanionAdd: (userCompoanion: Model.Companion) => void;
9
9
  userCompanionSelectionCallBack: (selectedCompanionId: number, isDeleteAction?: boolean) => void;
10
10
  onFocus?: () => void;
@@ -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;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface IFavoriteIconButton {
3
+ favorite: boolean;
4
+ loading?: boolean;
5
+ className?: string;
6
+ clicked: () => void;
7
+ }
8
+ declare const FavoriteIconButton: React.FC<IFavoriteIconButton>;
9
+ export default FavoriteIconButton;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface IShareIconButton {
3
+ className?: string;
4
+ clicked?: () => void;
5
+ }
6
+ declare const ShareIconButton: React.FC<IShareIconButton>;
7
+ export default ShareIconButton;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import 'external-svg-loader';
3
3
  type InfoBoxProps = {
4
- iconUrl: string;
4
+ iconUrl: React.ReactNode;
5
5
  title: string;
6
6
  description: string;
7
7
  };
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  interface IModal {
3
3
  show: boolean;
4
4
  zIndex?: number;
5
- style?: any;
5
+ style?: React.CSSProperties;
6
6
  className?: string;
7
7
  ref?: React.LegacyRef<HTMLDivElement>;
8
8
  backdropClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  interface IPreLoading {
3
3
  bgColor?: string;
4
4
  color?: string;
5
- size?: 'small' | 'large' | 'default';
5
+ size?: 'extra-small' | 'small' | 'large' | 'default';
6
6
  customClass?: string;
7
7
  }
8
8
  declare const PreLoading: React.FC<IPreLoading>;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { InputActionMeta } from 'react-select';
3
3
  import { RSelectOption } from '../RSelect/RSelect';
4
+ import './RSelectMulti.scss';
4
5
  interface IRSelectMulti {
5
6
  options: RSelectOption[];
6
7
  selectedOptionValues: string[];
@@ -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;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface IArrivalDate {
3
+ color?: string;
4
+ size?: string;
5
+ className?: string;
6
+ }
7
+ declare const ArrivalDate: React.FC<IArrivalDate>;
8
+ export default ArrivalDate;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface IArrivalHours {
3
+ color?: string;
4
+ size?: string;
5
+ className?: string;
6
+ }
7
+ declare const ArrivalHours: React.FC<IArrivalHours>;
8
+ export default ArrivalHours;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import IIconSvg from './IIconSvg';
3
+ declare const ArrowRight2: React.FC<IIconSvg>;
4
+ export default ArrowRight2;