@tripian/react 6.0.4 → 6.0.5

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.
@@ -2,7 +2,7 @@ import Model from '@tripian/model';
2
2
  import React from 'react';
3
3
  export interface StepDestinationProps {
4
4
  tripProfile: Model.TripProfile;
5
- cities: Array<Model.City>;
5
+ cities: Model.City[];
6
6
  setTripProfile: (tripProfile: Model.TripProfile) => void;
7
7
  isTripEdit: boolean;
8
8
  destinationTips: {
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import Model from '@tripian/model';
3
3
  interface IUserCompanionSelection {
4
- selectedCompanionIds: Array<number> | null;
4
+ selectedCompanionIds: number[];
5
5
  userCompanionQuestions: Array<Model.Question>;
6
6
  userCompanions?: Array<Model.Companion>;
7
7
  companionLoadingList: Array<number>;
@@ -1,19 +1,17 @@
1
1
  import React from 'react';
2
2
  import { InputActionMeta } from 'react-select';
3
3
  import './RSelect.scss';
4
- interface IRSelectOption {
5
- id: string;
4
+ export declare type RSelectOption = {
5
+ value: string;
6
6
  label: string;
7
- payload?: any;
8
- isSelected?: boolean;
9
- }
7
+ };
10
8
  interface IRSelect {
11
- options: Array<IRSelectOption>;
12
- onSelectedChanged: (selectedOption: IRSelectOption) => void;
13
- defaultOptionId?: string;
14
- disabled?: boolean;
9
+ options: RSelectOption[];
10
+ selectedOptionValue?: string;
11
+ onSelectedOptionChange: (selectedOption: RSelectOption) => void;
15
12
  onInputChange?: (newValue: string, actionMeta: InputActionMeta) => void;
16
13
  placeHolder?: string;
14
+ disabled?: boolean;
17
15
  onFocus?: () => void;
18
16
  onBlur?: () => void;
19
17
  }
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { InputActionMeta } from 'react-select';
3
+ import { RSelectOption } from '../RSelect/RSelect';
4
+ interface IRSelectMulti {
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 RSelectMulti: React.FC<IRSelectMulti>;
15
+ export default RSelectMulti;
package/index.d.ts CHANGED
@@ -28,8 +28,6 @@ import FormTemplateNewPassword from './components/FormTemplate/FormTemplateNewPa
28
28
  import FormTemplateProfile from './components/FormTemplate/FormTemplateProfile/FormTemplateProfile';
29
29
  import FormTemplateRegister from './components/FormTemplate/FormTemplateRegister/FormTemplateRegister';
30
30
  import FormTemplateResetPassword from './components/FormTemplate/FormTemplateResetPassword/FormTemplateResetPassword';
31
- import FormTemplateTrip from './components/FormTemplate/FormTemplateTrip/FormTemplateTrip';
32
- import FormTemplateTrip2 from './components/FormTemplate/FormTemplateTrip2/FormTemplateTrip2';
33
31
  import FormTemplateTripNext from './components/FormTemplate/FormTemplateTripNext/FormTemplateTripNext';
34
32
  import GoogleMaps from './components/GoogleMaps/GoogleMaps';
35
33
  import GoogleMapsPoiInfo from './components/GoogleMapsPoiInfo/GoogleMapsPoiInfo';
@@ -94,4 +92,4 @@ import UserCompanions from './components/UserCompanions/UserCompanions';
94
92
  import QuestionTemplate from './components/QuestionTemplate/QuestionTemplate';
95
93
  import BookingDetails from './providers/gyg/components/BookingDetails/BookingDetails';
96
94
  import Accordion from './components/base/Accordion/Accordion';
97
- export { Accordion, AccommendationCard, AccommendationInfo, Backdrop, BbAccommodationInfo, BbCarRentInfo, BbTourCard, BbTourInfo, Booking, BookingDetails, Button, ButtonIcons, BUTTON_TYPES, ButterflyCard, ButterflyCardSlider, CardSlider, Checkbox, CloseIconButton, ConfirmModalPopup, DatePicker, DateRangePicker, DirectionInfo, Dropdown, FlightCard, FormTemplateAgent, FormTemplateCompanion, FormTemplateLogin, FormTemplateNewPassword, FormTemplateProfile, FormTemplateRegister, FormTemplateResetPassword, FormTemplateTrip, FormTemplateTrip2, FormTemplateTripNext, GlxTourCard, GlxTourInfo, GoogleMaps, GoogleMapsPoiInfo, GygTourCard, GygTourInfo, IconImage, Img, ImgLazy, Input, Label, Loading, Modal, ModalFull, MustTryCard, NumberCounter, NumberInput, Notification, OpeningsForm, PageLoading, PlanChangeDay, PoiCategories, PoiInfo, PoiInfoImage, PoiInfoText, PoiListCard, PoiListSearch, PoiRefCard, PoiOfferRefCard, PreLoading, Price, ProgressLoading, ProgressAppLoading, RadioButtonGroup, RatingStars, RefCard, ReservationDetails, ResetPasswordApproved, ResetPasswordEmail, RouteResult, RSelect, SearchThisArea, SideNavigation, StepAlternativeCard, StepCard, StepCardUserReaction, StepInfo, StepTimeframe, Svg, Switch, SvgIcons, QuestionTemplate, TabMenu, TasteCard, TasteCard2, TasteInfo, TextField, TourRefCard, TourRefCardProduct, TripCard, UserCompanions, };
95
+ export { Accordion, AccommendationCard, AccommendationInfo, Backdrop, BbAccommodationInfo, BbCarRentInfo, BbTourCard, BbTourInfo, Booking, BookingDetails, Button, ButtonIcons, BUTTON_TYPES, ButterflyCard, ButterflyCardSlider, CardSlider, Checkbox, CloseIconButton, ConfirmModalPopup, DatePicker, DateRangePicker, DirectionInfo, Dropdown, FlightCard, FormTemplateAgent, FormTemplateCompanion, FormTemplateLogin, FormTemplateNewPassword, FormTemplateProfile, FormTemplateRegister, FormTemplateResetPassword, FormTemplateTripNext, GlxTourCard, GlxTourInfo, GoogleMaps, GoogleMapsPoiInfo, GygTourCard, GygTourInfo, IconImage, Img, ImgLazy, Input, Label, Loading, Modal, ModalFull, MustTryCard, NumberCounter, NumberInput, Notification, OpeningsForm, PageLoading, PlanChangeDay, PoiCategories, PoiInfo, PoiInfoImage, PoiInfoText, PoiListCard, PoiListSearch, PoiRefCard, PoiOfferRefCard, PreLoading, Price, ProgressLoading, ProgressAppLoading, RadioButtonGroup, RatingStars, RefCard, ReservationDetails, ResetPasswordApproved, ResetPasswordEmail, RouteResult, RSelect, SearchThisArea, SideNavigation, StepAlternativeCard, StepCard, StepCardUserReaction, StepInfo, StepTimeframe, Svg, Switch, SvgIcons, QuestionTemplate, TabMenu, TasteCard, TasteCard2, TasteInfo, TextField, TourRefCard, TourRefCardProduct, TripCard, UserCompanions, };