@tripian/react 9.3.16 → 9.3.18
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/4d72cc0e02f29a79235ff15b71b67d8d.png +0 -0
- package/img/f554f5060b97b83f777a00ac87126eb2.png +0 -0
- package/index.d.ts +9 -1
- package/index.js +797 -8
- package/index.js.map +1 -1
- package/min.css +1 -1
- package/package.json +2 -2
- package/providers/kiwi/KiwiHotelCard/KiwiHotelCard.d.ts +12 -0
- package/providers/kiwi/KiwiHotelCard/KiwiHotelCardImage/KiwiHotelCardImage.d.ts +9 -0
- package/providers/kiwi/KiwiHotelCard/KiwiSpecialOffersModal/KiwiSpecialOffersModal.d.ts +9 -0
- package/providers/kiwi/KiwiHotelCard/KiwiVisaBenefitsModal/KiwiVisaBenefitsModal.d.ts +6 -0
- package/providers/kiwi/KiwiHotelFilterBar/KiwiHotelFilterBar.d.ts +14 -0
- package/providers/kiwi/KiwiHotelFilterModal/KiwiHotelFilterModal.d.ts +20 -0
- package/providers/kiwi/KiwiHotelSearchBar/KiwiHotelSearchBar.d.ts +25 -0
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tripian/react",
|
|
3
|
-
"version": "9.3.
|
|
3
|
+
"version": "9.3.18",
|
|
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.10",
|
|
10
10
|
"external-svg-loader": "^1.6.1",
|
|
11
11
|
"moment": "^2.24.0",
|
|
12
12
|
"react": "^18.1.0",
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Providers } from '@tripian/model';
|
|
3
|
+
interface IKiwiHotelCard {
|
|
4
|
+
hotel: Providers.Kiwi.KiwiSearchHotel;
|
|
5
|
+
isFavorite?: boolean;
|
|
6
|
+
onFavoriteToggle?: (hotel: Providers.Kiwi.KiwiSearchHotel) => void;
|
|
7
|
+
showVisaBadge?: boolean;
|
|
8
|
+
onHover?: (hotelCode: string | null) => void;
|
|
9
|
+
onSpecialOffersClick?: (hotel: Providers.Kiwi.KiwiSearchHotel) => void;
|
|
10
|
+
}
|
|
11
|
+
declare const KiwiHotelCard: React.FC<IKiwiHotelCard>;
|
|
12
|
+
export default KiwiHotelCard;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Providers } from '@tripian/model';
|
|
3
|
+
interface IKiwiSpecialOffersModal {
|
|
4
|
+
hotelName: string;
|
|
5
|
+
specialOffers?: Providers.Kiwi.KiwiSpecialOffer[];
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
}
|
|
8
|
+
declare const KiwiSpecialOffersModal: React.FC<IKiwiSpecialOffersModal>;
|
|
9
|
+
export default KiwiSpecialOffersModal;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Model from '@tripian/model';
|
|
3
|
+
export type KiwiSortOption = '' | 'price_low_to_high' | 'price_high_to_low' | 'recently_added' | 'star_rating' | 'average_rating' | 'alphabetical';
|
|
4
|
+
interface IKiwiHotelFilterBar {
|
|
5
|
+
sortBy: KiwiSortOption;
|
|
6
|
+
onSortChange: (sort: KiwiSortOption) => void;
|
|
7
|
+
onShowMapToggle?: () => void;
|
|
8
|
+
onFilterToggle?: () => void;
|
|
9
|
+
showMap?: boolean;
|
|
10
|
+
resultCount?: number;
|
|
11
|
+
t: (value: Model.TranslationKey) => string;
|
|
12
|
+
}
|
|
13
|
+
declare const KiwiHotelFilterBar: React.FC<IKiwiHotelFilterBar>;
|
|
14
|
+
export default KiwiHotelFilterBar;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Providers } from '@tripian/model';
|
|
3
|
+
export interface KiwiHotelFilters {
|
|
4
|
+
locations: string[];
|
|
5
|
+
specialOffers: boolean;
|
|
6
|
+
ratings: number[];
|
|
7
|
+
settings: string[];
|
|
8
|
+
styles: string[];
|
|
9
|
+
interests: string[];
|
|
10
|
+
brands: string[];
|
|
11
|
+
}
|
|
12
|
+
export declare const EMPTY_FILTERS: KiwiHotelFilters;
|
|
13
|
+
interface IKiwiHotelFilterModal {
|
|
14
|
+
hotels: Providers.Kiwi.KiwiSearchHotel[];
|
|
15
|
+
filters: KiwiHotelFilters;
|
|
16
|
+
onApply: (filters: KiwiHotelFilters) => void;
|
|
17
|
+
onClose: () => void;
|
|
18
|
+
}
|
|
19
|
+
declare const KiwiHotelFilterModal: React.FC<IKiwiHotelFilterModal>;
|
|
20
|
+
export default KiwiHotelFilterModal;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Model from '@tripian/model';
|
|
3
|
+
export type KiwiCitySuggestion = {
|
|
4
|
+
id: number;
|
|
5
|
+
name: string;
|
|
6
|
+
parentName: string;
|
|
7
|
+
};
|
|
8
|
+
interface IKiwiHotelSearchBar {
|
|
9
|
+
destination: string;
|
|
10
|
+
checkInDate: string;
|
|
11
|
+
checkOutDate: string;
|
|
12
|
+
adults: number;
|
|
13
|
+
children: number;
|
|
14
|
+
citySuggestions?: KiwiCitySuggestion[];
|
|
15
|
+
onDestinationChange: (value: string) => void;
|
|
16
|
+
onCitySelect?: (city: KiwiCitySuggestion) => void;
|
|
17
|
+
onCheckInChange: (value: string) => void;
|
|
18
|
+
onCheckOutChange: (value: string) => void;
|
|
19
|
+
onAdultsChange: (value: number) => void;
|
|
20
|
+
onChildrenChange: (value: number) => void;
|
|
21
|
+
onSearch: () => void;
|
|
22
|
+
t: (value: Model.TranslationKey) => string;
|
|
23
|
+
}
|
|
24
|
+
declare const KiwiHotelSearchBar: React.FC<IKiwiHotelSearchBar>;
|
|
25
|
+
export default KiwiHotelSearchBar;
|