@tripian/react 8.1.1 → 8.2.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.
@@ -6,7 +6,7 @@ interface IPoiInfo {
6
6
  poi: Model.Poi;
7
7
  favorite: boolean;
8
8
  toggleFavorite: (poi: Model.Poi, willFavorite: boolean) => void;
9
- addRemoveReplacePoi: (poi: Model.Poi, removeReplaceAdd: number) => void;
9
+ addRemoveReplacePoi: (poi: Model.Poi, removeReplaceAdd: number, from?: string, to?: string) => void;
10
10
  close: (poi: Model.Poi) => void;
11
11
  dayNumbers?: number[];
12
12
  stepOrder?: number;
@@ -8,7 +8,7 @@ interface IPoiInfoText {
8
8
  favoriteClick: (favorite: boolean) => void;
9
9
  stepOrder?: number;
10
10
  replace?: boolean;
11
- addRemoveReplacePoi: (poi: Model.Poi, removeReplaceAdd: number) => void;
11
+ addRemoveReplacePoi: (poi: Model.Poi, removeReplaceAdd: number, from?: string, to?: string) => void;
12
12
  hideActionButtons?: boolean;
13
13
  dayNumbers?: number[];
14
14
  planDate?: string;
@@ -7,7 +7,7 @@ interface IPoiRefCard {
7
7
  dayNumbers?: number[];
8
8
  buttonType?: number;
9
9
  poiCardClicked: (alternativePoi: Model.Poi) => void;
10
- addRemoveAlternativePoi?: (poi: Model.Poi) => void;
10
+ addRemoveAlternativePoi?: (poi: Model.Poi, from?: string, to?: string) => void;
11
11
  TOUR_PROVIDER_IDS: Model.PROVIDER_ID[];
12
12
  TICKET_PROVIDER_IDS: Model.PROVIDER_ID[];
13
13
  RESTAURANT_RESERVATION_PROVIDER_IDS: Model.PROVIDER_ID[];
@@ -9,6 +9,7 @@ interface IStepCard {
9
9
  alternativeReplace: (alternativePoi: Model.Poi) => void;
10
10
  showAlternativesChange: (stepId: number, show: boolean) => void;
11
11
  showAlternatives?: boolean;
12
+ timesClicked: (from: string, to: string) => void;
12
13
  TOUR_PROVIDER_IDS: Model.PROVIDER_ID[];
13
14
  TICKET_PROVIDER_IDS: Model.PROVIDER_ID[];
14
15
  RESTAURANT_RESERVATION_PROVIDER_IDS: Model.PROVIDER_ID[];
@@ -12,6 +12,7 @@ interface IStepCardUserReaction {
12
12
  thumbs?: number;
13
13
  thumbsLoading: boolean;
14
14
  thumbsClicked: (like: number) => void;
15
+ timesClicked: (from: string, to: string) => void;
15
16
  userReactionUndo: () => void;
16
17
  userReactionRemoveStep: () => void;
17
18
  TOUR_PROVIDER_IDS: Model.PROVIDER_ID[];
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ export declare const hourRange: string[];
3
+ export declare const minuteRange: string[];
4
+ export declare const timeRange: Array<string>;
5
+ export declare const startTimeRange: (all?: boolean) => string[];
6
+ export declare const endTimeRange: (startHour?: string) => string[];
7
+ export declare const oneHourForward: (hour: string) => string;
8
+ interface IStepTimes {
9
+ times: {
10
+ from?: string;
11
+ to?: string;
12
+ };
13
+ timesClicked: (from?: string, to?: string) => void;
14
+ buttonText: string;
15
+ duration?: string;
16
+ }
17
+ declare const StepTimes: React.FC<IStepTimes>;
18
+ export default StepTimes;
@@ -0,0 +1,12 @@
1
+ import React, { Ref } from 'react';
2
+ interface ICustomPopover {
3
+ show: boolean;
4
+ style?: Partial<CSSStyleDeclaration>;
5
+ className?: string;
6
+ ref?: Ref<HTMLElement>;
7
+ backdropClick?: (e: MouseEvent) => void;
8
+ content: JSX.Element;
9
+ children: JSX.Element;
10
+ }
11
+ declare const CustomPopover: React.FC<ICustomPopover>;
12
+ export default CustomPopover;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import IIconSvg from './IIconSvg';
3
+ declare const Info: React.FC<IIconSvg>;
4
+ export default Info;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import IIconSvg from './IIconSvg';
3
+ declare const Info2: React.FC<IIconSvg>;
4
+ export default Info2;
@@ -40,4 +40,6 @@ import ThumbsUp from './ThumbsUp';
40
40
  import ThumbsUpEmpty from './ThumbsUpEmpty';
41
41
  import Time from './Time';
42
42
  import Uber from './Uber';
43
- export { Add, Attraction, Avatar, Bars, Bicycle, Booking, Bookmark, BookmarkFill, Cafe, Calendar, Car, Clock, Close, Delete, Distance, DragDrop, Drink, Favorite, Filter, Food, LandingCalendar, LandingCellPhone, LandingProfile, LandingThumbsUp, Legs, Link, MustTry, NightLife, NextArrow, Offer, PreviousArrow, Restaurant, Retail, Share, Shopping, SwitchIcon, ThumbsDown, ThumbsDownEmpty, ThumbsUp, ThumbsUpEmpty, Time, Uber, };
43
+ import Info from './Info';
44
+ import Info2 from './Info2';
45
+ export { Add, Attraction, Avatar, Bars, Bicycle, Booking, Bookmark, BookmarkFill, Cafe, Calendar, Car, Clock, Close, Delete, Distance, DragDrop, Drink, Favorite, Filter, Food, LandingCalendar, LandingCellPhone, LandingProfile, LandingThumbsUp, Legs, Link, MustTry, NightLife, NextArrow, Offer, PreviousArrow, Restaurant, Retail, Share, Shopping, SwitchIcon, ThumbsDown, ThumbsDownEmpty, ThumbsUp, ThumbsUpEmpty, Time, Uber, Info, Info2, };