@tripian/react 7.1.8 → 8.0.2
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/DestinationSelect/DestinationSelect.d.ts +24 -0
- package/components/FormTemplate/FormTemplateTripNext/StepDestination/StepDestination.d.ts +5 -1
- package/components/PoiCategories/PoiCategories.d.ts +2 -5
- package/components/PoiInfo/PoiInfo.d.ts +0 -1
- package/components/PoiInfo/PoiInfoText/PoiInfoText.d.ts +0 -1
- package/components/PoiRefCard/PoiRefCard.d.ts +0 -1
- package/components/PoiSearchAutoComplete/PoiSearchAutoComplete.d.ts +13 -0
- package/components/StepAlternativeCard/StepAlternativeCard.d.ts +0 -1
- package/components/StepCard/StepCard.d.ts +0 -1
- package/components/StepInfo/StepInfo.d.ts +0 -1
- package/components/base/Badge/Badge.d.ts +7 -0
- package/components/base/RSelectMultiCustom/RSelectMultiCustom.d.ts +15 -0
- package/components/base/Svg/Icons/Distance.d.ts +4 -0
- package/components/base/Svg/Icons/Filter.d.ts +4 -0
- package/components/base/Svg/Icons/index.d.ts +3 -1
- package/components/base/Toggle/Toggle.d.ts +8 -0
- package/components/base/ToggleSwitch/ToggleSwitch.d.ts +1 -0
- package/index.d.ts +4 -1
- package/index.js +46043 -45047
- package/index.js.map +1 -1
- package/min.css +1 -1
- package/package.json +2 -2
- /package/components/{FeedBack → Feedback}/Feedback.d.ts +0 -0
- /package/components/{FeedBack → Feedback}/UserFeedbacks/UserFeedbacks.d.ts +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { InputActionMeta } from 'react-select';
|
|
3
|
+
export declare type RSelectOption = {
|
|
4
|
+
id: number;
|
|
5
|
+
label: string;
|
|
6
|
+
payload?: {
|
|
7
|
+
destinationId: number;
|
|
8
|
+
destinationName: string;
|
|
9
|
+
parentName: string;
|
|
10
|
+
};
|
|
11
|
+
isSelected?: boolean;
|
|
12
|
+
};
|
|
13
|
+
interface IDestinationSelect {
|
|
14
|
+
options: RSelectOption[];
|
|
15
|
+
selectedOptionId?: number;
|
|
16
|
+
onSelectedOptionChange: (selectedOption: RSelectOption) => void;
|
|
17
|
+
onInputChange?: (newValue: string, actionMeta: InputActionMeta) => void;
|
|
18
|
+
placeHolder?: string;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
onFocus?: () => void;
|
|
21
|
+
onBlur?: () => void;
|
|
22
|
+
}
|
|
23
|
+
declare const DestinationSelect: React.FC<IDestinationSelect>;
|
|
24
|
+
export default DestinationSelect;
|
|
@@ -2,7 +2,11 @@ import Model from '@tripian/model';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
export interface StepDestinationProps {
|
|
4
4
|
tripProfile: Model.TripProfile;
|
|
5
|
-
|
|
5
|
+
destinations: {
|
|
6
|
+
destinationId: number;
|
|
7
|
+
destinationName: string;
|
|
8
|
+
parentName: string;
|
|
9
|
+
}[];
|
|
6
10
|
setTripProfile: (tripProfile: Model.TripProfile) => void;
|
|
7
11
|
isTripEdit: boolean;
|
|
8
12
|
destinationTips: {
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import Model from '@tripian/model';
|
|
3
2
|
interface IPoiCategories {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
selectedPoiCategoryIndex: number;
|
|
7
|
-
setSelectedPoiCategoryIndex: (newIndex: number) => void;
|
|
3
|
+
selectedPoiCategoryIndexes: number[];
|
|
4
|
+
setSelectedPoiCategoryIndexes: (newIndex: number[]) => void;
|
|
8
5
|
}
|
|
9
6
|
declare const PoiCategories: React.FC<IPoiCategories>;
|
|
10
7
|
export default PoiCategories;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { RSelectOption } from '../base/RSelect/RSelect';
|
|
3
|
+
interface IPoiSearchAutoComplete {
|
|
4
|
+
inputValue?: string;
|
|
5
|
+
options: RSelectOption[];
|
|
6
|
+
selectedOptionValues: string[];
|
|
7
|
+
onSelectedOptionChange: (selectedOptions: RSelectOption[]) => void;
|
|
8
|
+
onInputChange?: (input: string) => void;
|
|
9
|
+
onCreateOption: (input: string) => void;
|
|
10
|
+
placeHolder?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const PoiSearchAutoComplete: React.FC<IPoiSearchAutoComplete>;
|
|
13
|
+
export default PoiSearchAutoComplete;
|
|
@@ -11,7 +11,6 @@ interface IStepAlternativeCard {
|
|
|
11
11
|
hideReservationIcon: boolean;
|
|
12
12
|
hideTourTicketIcons: boolean;
|
|
13
13
|
hideOfferIcon: boolean;
|
|
14
|
-
readOnly?: boolean;
|
|
15
14
|
}
|
|
16
15
|
declare const StepAlternativeCard: React.FC<IStepAlternativeCard>;
|
|
17
16
|
export default StepAlternativeCard;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { InputActionMeta } from 'react-select';
|
|
3
|
+
import { RSelectOption } from '../RSelect/RSelect';
|
|
4
|
+
interface IRSelectMultiCustom {
|
|
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 RSelectMultiCustom: React.FC<IRSelectMultiCustom>;
|
|
15
|
+
export default RSelectMultiCustom;
|
|
@@ -12,9 +12,11 @@ import Car from './Car';
|
|
|
12
12
|
import Clock from './Clock';
|
|
13
13
|
import Close from './Close';
|
|
14
14
|
import Delete from './Delete';
|
|
15
|
+
import Distance from './Distance';
|
|
15
16
|
import DragDrop from './DragDrop';
|
|
16
17
|
import Drink from './Drink';
|
|
17
18
|
import Favorite from './Favorite';
|
|
19
|
+
import Filter from './Filter';
|
|
18
20
|
import Food from './Food';
|
|
19
21
|
import LandingCalendar from './LandingCalendar';
|
|
20
22
|
import LandingCellPhone from './LandingCellPhone';
|
|
@@ -38,4 +40,4 @@ import ThumbsUp from './ThumbsUp';
|
|
|
38
40
|
import ThumbsUpEmpty from './ThumbsUpEmpty';
|
|
39
41
|
import Time from './Time';
|
|
40
42
|
import Uber from './Uber';
|
|
41
|
-
export { Add, Attraction, Avatar, Bars, Bicycle, Booking, Bookmark, BookmarkFill, Cafe, Calendar, Car, Clock, Close, Delete, DragDrop, Drink, Favorite, Food, LandingCalendar, LandingCellPhone, LandingProfile, LandingThumbsUp, Legs, Link, MustTry, NightLife, NextArrow, Offer, PreviousArrow, Restaurant, Retail, Share, Shopping, SwitchIcon, ThumbsDown, ThumbsDownEmpty, ThumbsUp, ThumbsUpEmpty, Time, 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, };
|
package/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import './styles/global.scss';
|
|
2
2
|
import AccommondationCard from './components/AccommondationCard/AccommondationCard';
|
|
3
3
|
import AccommondationInfo from './components/AccommondationInfo/AccommondationInfo';
|
|
4
|
+
import Badge from './components/base/Badge/Badge';
|
|
4
5
|
import BackButton from './components/base/Button/Icons/BackButton/BackButton';
|
|
5
6
|
import Backdrop from './components/base/Backdrop/Backdrop';
|
|
6
7
|
import BbAccommodationInfo from './providers/bb/components/BbAccommodationInfo/BbAccommodationInfo';
|
|
@@ -72,6 +73,7 @@ import PoiInfoText from './components/PoiInfo/PoiInfoText/PoiInfoText';
|
|
|
72
73
|
import PoiListCard from './components/PoiListCard/PoiListCard';
|
|
73
74
|
import PoiListSearch from './components/PoiListSearch/PoiListSearch';
|
|
74
75
|
import PoiRefCard from './components/PoiRefCard/PoiRefCard';
|
|
76
|
+
import PoiSearchAutoComplete from './components/PoiSearchAutoComplete/PoiSearchAutoComplete';
|
|
75
77
|
import PoiOfferRefCard from './components/PoiOfferRefCard/PoiOfferRefCard';
|
|
76
78
|
import PreAppLoading from './components/base/PreAppLoading/PreAppLoading';
|
|
77
79
|
import PreLoading from './components/base/PreLoading/PreLoading';
|
|
@@ -102,6 +104,7 @@ import TasteCard from './components/TasteCard/TasteCard';
|
|
|
102
104
|
import TasteCard2 from './components/TasteCard2/TasteCard2';
|
|
103
105
|
import TasteInfo from './components/TasteInfo/TasteInfo';
|
|
104
106
|
import TextField from './components/base/TextField/TextField';
|
|
107
|
+
import Toggle from './components/base/Toggle/Toggle';
|
|
105
108
|
import ToggleSwitch from './components/base/ToggleSwitch/ToggleSwitch';
|
|
106
109
|
import TourRefCardProduct from './components/TourRefCardProduct/TourRefCardProduct';
|
|
107
110
|
import TripCard from './components/TripCard/TripCard';
|
|
@@ -114,4 +117,4 @@ import ViatorTourInfoImage from './providers/viator/components/ViatorProductInfo
|
|
|
114
117
|
import QuestionTemplate from './components/QuestionTemplate/QuestionTemplate';
|
|
115
118
|
import BookingDetails from './providers/gyg/components/BookingDetails/BookingDetails';
|
|
116
119
|
import Accordion from './components/base/Accordion/Accordion';
|
|
117
|
-
export { Accordion, AccommondationCard, AccommondationInfo, BackButton, Backdrop, BbAccommodationInfo, BbCarRentInfo, BbTourCard, BbTourInfo, BbTourInfoForm, BbTourInfoImage, BbTourInfoOffer, BbTourInfoText, Booking, BookingDetails, Button, ButtonIcons, BUTTON_TYPES, ButterflyCard, ButterflyCardSlider, CardSlider, Checkbox, CreateIconButton, CloseIconButton, CloseIconButton2, ConfirmModalPopup, Copy, CouponCard, CustomSlider, DatePicker, DateRangePicker, DirectionInfo, Dropdown, FlightCard, FormTemplateAgent, FormTemplateCompanion, FormTemplateLogin, FormTemplateNewPassword, FormTemplateProfile, FormTemplateRegister, FormTemplateResetPassword, FormTemplateTripNext, FormTemplateTripNextWidget, GoogleMaps, GoogleMapsPoiInfo, GygTourCard, GygTourInfoEx, GygTourInfoForm, GygTourInfoImage, GygTourShoppingForm, GygTourOption, IconImage, Img, ImgLazy, Input, ItineraryCardSlider, Label, Loading, Modal, ModalFull, MustTryCard, NumberCounter, NumberInput, Notification, OfferCard, OpeningsForm, PageLoading, PlanChangeDay, PoiCategories, PoiInfo, PoiInfoImage, PoiInfoText, PoiListCard, PoiListSearch, PoiRefCard, PoiOfferRefCard, PreAppLoading, PreLoading, Price, ProgressLoading, ProgressAppLoading, RadioButtonGroup, RatingStars, ReadMoreLess, RefCard, ReservationDetails, ResetPasswordApproved, ResetPasswordEmail, RouteResult, RSelect, SearchThisArea, SideNavigation, StepAlternativeCard, StepCard, StepCardUserReaction, StepInfo, StepTimeframe, Svg, Switch, SvgIcons, QuestionTemplate, TabMenu, TasteCard, TasteCard2, TasteInfo, TextField, ToggleSwitch, TourRefCardProduct, TripCard, TripSavedCard, UserCompanions, UserFeedbacks, ViatorProductCard, ViatorProductInfo, ViatorTourInfoImage, };
|
|
120
|
+
export { Accordion, AccommondationCard, AccommondationInfo, Badge, BackButton, Backdrop, BbAccommodationInfo, BbCarRentInfo, BbTourCard, BbTourInfo, BbTourInfoForm, BbTourInfoImage, BbTourInfoOffer, BbTourInfoText, Booking, BookingDetails, Button, ButtonIcons, BUTTON_TYPES, ButterflyCard, ButterflyCardSlider, CardSlider, Checkbox, CreateIconButton, CloseIconButton, CloseIconButton2, ConfirmModalPopup, Copy, CouponCard, CustomSlider, DatePicker, DateRangePicker, DirectionInfo, Dropdown, FlightCard, FormTemplateAgent, FormTemplateCompanion, FormTemplateLogin, FormTemplateNewPassword, FormTemplateProfile, FormTemplateRegister, FormTemplateResetPassword, FormTemplateTripNext, FormTemplateTripNextWidget, GoogleMaps, GoogleMapsPoiInfo, GygTourCard, GygTourInfoEx, GygTourInfoForm, GygTourInfoImage, GygTourShoppingForm, GygTourOption, IconImage, Img, ImgLazy, Input, ItineraryCardSlider, Label, Loading, Modal, ModalFull, MustTryCard, NumberCounter, NumberInput, Notification, OfferCard, OpeningsForm, PageLoading, PlanChangeDay, PoiCategories, PoiInfo, PoiInfoImage, PoiInfoText, PoiListCard, PoiListSearch, PoiRefCard, PoiSearchAutoComplete, PoiOfferRefCard, PreAppLoading, PreLoading, Price, ProgressLoading, ProgressAppLoading, RadioButtonGroup, RatingStars, ReadMoreLess, RefCard, ReservationDetails, ResetPasswordApproved, ResetPasswordEmail, RouteResult, RSelect, SearchThisArea, SideNavigation, StepAlternativeCard, StepCard, StepCardUserReaction, StepInfo, StepTimeframe, Svg, Switch, SvgIcons, QuestionTemplate, TabMenu, TasteCard, TasteCard2, TasteInfo, TextField, Toggle, ToggleSwitch, TourRefCardProduct, TripCard, TripSavedCard, UserCompanions, UserFeedbacks, ViatorProductCard, ViatorProductInfo, ViatorTourInfoImage, };
|