@tripian/react 9.3.20 → 9.3.22
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/img/991a63b15ef2612e712ac4640ce971d7.png +0 -0
- package/img/9a2108aa03a6df90a6da7b9195f59b4e.png +0 -0
- package/index.d.ts +5 -1
- package/index.js +4590 -3159
- package/index.js.map +1 -1
- package/min.css +1 -1
- package/package.json +2 -2
- package/providers/kiwi/KiwiHotelCard/KiwiBookingModal/KiwiBookingModal.d.ts +20 -0
- package/providers/kiwi/KiwiHotelCard/KiwiHotelCard.d.ts +1 -0
- package/providers/kiwi/KiwiHotelCard/KiwiHotelInfoModal/KiwiHotelInfoModal.d.ts +36 -0
- package/providers/kiwi/KiwiHotelCard/KiwiRateDetailModal/KiwiRateDetailModal.d.ts +10 -0
- package/providers/kiwi/KiwiHotelCard/KiwiRoomRateModal/KiwiRoomRateModal.d.ts +12 -0
- package/providers/kiwi/currencySymbol.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tripian/react",
|
|
3
|
-
"version": "9.3.
|
|
3
|
+
"version": "9.3.22",
|
|
4
4
|
"description": "Tripian Inc React Components",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@react-google-maps/api": "^2.12.0",
|
|
9
|
-
"@tripian/model": "9.3.
|
|
9
|
+
"@tripian/model": "9.3.11",
|
|
10
10
|
"external-svg-loader": "^1.6.1",
|
|
11
11
|
"moment": "^2.24.0",
|
|
12
12
|
"react": "^18.1.0",
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Providers } from '@tripian/model';
|
|
3
|
+
interface IKiwiBookingModal {
|
|
4
|
+
hotelName: string;
|
|
5
|
+
roomTitle: string;
|
|
6
|
+
rate: Providers.Kiwi.KiwiRate;
|
|
7
|
+
currency: string;
|
|
8
|
+
checkIn: string;
|
|
9
|
+
checkOut: string;
|
|
10
|
+
nightCount: number;
|
|
11
|
+
adults: number;
|
|
12
|
+
children: number;
|
|
13
|
+
propertyCode: string;
|
|
14
|
+
roomCode: string;
|
|
15
|
+
generateExternalId: () => string;
|
|
16
|
+
onClose: () => void;
|
|
17
|
+
onCreateReservation: (req: Providers.Kiwi.KiwiCreateReservationRequest) => Promise<Providers.Kiwi.KiwiCreateReservationResponse>;
|
|
18
|
+
}
|
|
19
|
+
declare const KiwiBookingModal: React.FC<IKiwiBookingModal>;
|
|
20
|
+
export default KiwiBookingModal;
|
|
@@ -7,6 +7,7 @@ interface IKiwiHotelCard {
|
|
|
7
7
|
showVisaBadge?: boolean;
|
|
8
8
|
onHover?: (hotelCode: string | null) => void;
|
|
9
9
|
onSpecialOffersClick?: (hotel: Providers.Kiwi.KiwiSearchHotel) => void;
|
|
10
|
+
onCardClick?: (hotel: Providers.Kiwi.KiwiSearchHotel) => void;
|
|
10
11
|
}
|
|
11
12
|
declare const KiwiHotelCard: React.FC<IKiwiHotelCard>;
|
|
12
13
|
export default KiwiHotelCard;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Providers } from '@tripian/model';
|
|
3
|
+
import { KiwiCitySuggestion } from '../../KiwiHotelSearchBar/KiwiHotelSearchBar';
|
|
4
|
+
interface IKiwiHotelInfoModal {
|
|
5
|
+
hotel: Providers.Kiwi.KiwiSearchHotel;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
fetchPropertyDetail?: (code: string) => Promise<Providers.Kiwi.KiwiPropertyDetail>;
|
|
8
|
+
fetchPropertyAvailability?: (code: string, request: Providers.Kiwi.KiwiPropertyAvailabilityRequest) => Promise<Providers.Kiwi.KiwiPropertyAvailabilityResponse>;
|
|
9
|
+
availabilityRequest?: Providers.Kiwi.KiwiPropertyAvailabilityRequest;
|
|
10
|
+
searchDestination?: string;
|
|
11
|
+
searchCheckIn?: string;
|
|
12
|
+
searchCheckOut?: string;
|
|
13
|
+
searchAdults?: number;
|
|
14
|
+
searchChildren?: number;
|
|
15
|
+
searchCitySuggestions?: KiwiCitySuggestion[];
|
|
16
|
+
onSearchDestinationChange?: (value: string) => void;
|
|
17
|
+
onSearchCitySelect?: (city: KiwiCitySuggestion) => void;
|
|
18
|
+
onSearchCheckInChange?: (value: string) => void;
|
|
19
|
+
onSearchCheckOutChange?: (value: string) => void;
|
|
20
|
+
onSearchAdultsChange?: (value: number) => void;
|
|
21
|
+
onSearchChildrenChange?: (value: number) => void;
|
|
22
|
+
onSearch?: () => void;
|
|
23
|
+
onBookNow?: (hotel: Providers.Kiwi.KiwiSearchHotel, room: Providers.Kiwi.KiwiRoom, rate: Providers.Kiwi.KiwiRate) => void;
|
|
24
|
+
onCreateReservation?: (req: Providers.Kiwi.KiwiCreateReservationRequest) => Promise<Providers.Kiwi.KiwiCreateReservationResponse>;
|
|
25
|
+
onReservationCreated?: (data: Providers.Kiwi.KiwiReservationData, externalId: string) => void;
|
|
26
|
+
generateExternalId?: () => string;
|
|
27
|
+
isFavorite?: boolean;
|
|
28
|
+
onFavoriteToggle?: (hotel: Providers.Kiwi.KiwiSearchHotel) => void;
|
|
29
|
+
showVisaBadge?: boolean;
|
|
30
|
+
dayBadgeText?: string;
|
|
31
|
+
onDayBadgeRemove?: () => void;
|
|
32
|
+
onShare?: (hotel: Providers.Kiwi.KiwiSearchHotel) => void;
|
|
33
|
+
topOffset?: string;
|
|
34
|
+
}
|
|
35
|
+
declare const KiwiHotelInfoModal: React.FC<IKiwiHotelInfoModal>;
|
|
36
|
+
export default KiwiHotelInfoModal;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Providers } from '@tripian/model';
|
|
3
|
+
interface IKiwiRateDetailModal {
|
|
4
|
+
rate: Providers.Kiwi.KiwiRate;
|
|
5
|
+
currency: string;
|
|
6
|
+
nightCount: number;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
}
|
|
9
|
+
declare const KiwiRateDetailModal: React.FC<IKiwiRateDetailModal>;
|
|
10
|
+
export default KiwiRateDetailModal;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Providers } from '@tripian/model';
|
|
3
|
+
interface IKiwiRoomRateModal {
|
|
4
|
+
roomTitle: string;
|
|
5
|
+
rate: Providers.Kiwi.KiwiRate;
|
|
6
|
+
currency: string;
|
|
7
|
+
nightCount: number;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
onBookNow?: () => void;
|
|
10
|
+
}
|
|
11
|
+
declare const KiwiRoomRateModal: React.FC<IKiwiRoomRateModal>;
|
|
12
|
+
export default KiwiRoomRateModal;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getCurrencySymbol: (code: string) => string;
|