@qite/tide-booking-component 1.4.34 → 1.4.36
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/build/build-cjs/index.js +1628 -376
- package/build/build-cjs/qsm/types.d.ts +0 -1
- package/build/build-cjs/search-results/components/filters/filters.d.ts +2 -2
- package/build/build-cjs/search-results/components/flight/flight-results.d.ts +2 -0
- package/build/build-cjs/search-results/components/hotel/hotel-card.d.ts +1 -0
- package/build/build-cjs/search-results/components/itinerary/index.d.ts +2 -2
- package/build/build-cjs/search-results/store/search-results-slice.d.ts +11 -2
- package/build/build-cjs/search-results/types.d.ts +4 -14
- package/build/build-esm/index.js +1628 -376
- package/build/build-esm/qsm/types.d.ts +0 -1
- package/build/build-esm/search-results/components/filters/filters.d.ts +2 -2
- package/build/build-esm/search-results/components/flight/flight-results.d.ts +2 -0
- package/build/build-esm/search-results/components/hotel/hotel-card.d.ts +1 -0
- package/build/build-esm/search-results/components/itinerary/index.d.ts +2 -2
- package/build/build-esm/search-results/store/search-results-slice.d.ts +11 -2
- package/build/build-esm/search-results/types.d.ts +4 -14
- package/package.json +2 -2
- package/src/booking-wizard/features/booking/booking-self-contained.tsx +0 -1
- package/src/booking-wizard/features/travelers-form/controls/gender-control.tsx +5 -5
- package/src/booking-wizard/features/travelers-form/travelers-form.tsx +10 -10
- package/src/content/components/icon.tsx +1 -1
- package/src/content/features/content-page/content-page-self-contained.tsx +0 -1
- package/src/qsm/components/QSMContainer/qsm-container.tsx +15 -13
- package/src/qsm/components/mobile-filter-modal/index.tsx +12 -10
- package/src/qsm/components/travel-class-picker/index.tsx +5 -3
- package/src/qsm/components/travel-input/index.tsx +15 -12
- package/src/qsm/components/travel-input-group/index.tsx +14 -3
- package/src/qsm/components/travel-nationality-picker/index.tsx +5 -3
- package/src/qsm/components/travel-type-picker/index.tsx +5 -3
- package/src/qsm/qsm-configuration-context.ts +0 -1
- package/src/qsm/types.ts +0 -1
- package/src/search-results/components/filters/filters.tsx +15 -16
- package/src/search-results/components/flight/flight-results.tsx +168 -1099
- package/src/search-results/components/hotel/hotel-accommodation-results.tsx +21 -24
- package/src/search-results/components/hotel/hotel-card.tsx +4 -3
- package/src/search-results/components/icon.tsx +1 -1
- package/src/search-results/components/itinerary/index.tsx +233 -131
- package/src/search-results/components/round-trip/round-trip-results.tsx +1 -1
- package/src/search-results/components/search-results-container/search-results-container.tsx +45 -33
- package/src/search-results/components/spinner/spinner.tsx +3 -1
- package/src/search-results/components/tab-views/index.tsx +13 -7
- package/src/search-results/features/flights/flight-search-results-self-contained.tsx +4 -13
- package/src/search-results/features/hotels/hotel-flight-search-results-self-contained.tsx +5 -1
- package/src/search-results/features/hotels/hotel-search-results-self-contained.tsx +4 -13
- package/src/search-results/features/roundtrips/roundtrip-search-results-self-contained.tsx +5 -1
- package/src/search-results/store/search-results-slice.ts +37 -3
- package/src/search-results/types.ts +2 -15
- package/src/shared/translations/ar-SA.json +70 -0
- package/src/shared/translations/da-DK.json +70 -0
- package/src/shared/translations/de-DE.json +70 -0
- package/src/shared/translations/en-GB.json +71 -1
- package/src/shared/translations/es-ES.json +70 -0
- package/src/shared/translations/fr-BE.json +71 -1
- package/src/shared/translations/fr-FR.json +70 -0
- package/src/shared/translations/is-IS.json +72 -2
- package/src/shared/translations/it-IT.json +70 -0
- package/src/shared/translations/ja-JP.json +72 -2
- package/src/shared/translations/nl-BE.json +70 -0
- package/src/shared/translations/nl-NL.json +70 -0
- package/src/shared/translations/no-NO.json +72 -2
- package/src/shared/translations/pl-PL.json +70 -0
- package/src/shared/translations/pt-PT.json +70 -0
- package/src/shared/translations/sv-SE.json +72 -2
- package/styles/components/_search.scss +7 -1
|
@@ -2,8 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import { Filter } from '../../types';
|
|
3
3
|
interface FiltersProps {
|
|
4
4
|
filters: Filter[];
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
handleSetIsOpen: () => void;
|
|
7
7
|
handleApplyFilters: () => void;
|
|
8
8
|
isLoading?: boolean;
|
|
9
9
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { Filter } from '../types';
|
|
2
|
-
import { BookingPackageItem } from '@qite/tide-client/build/types';
|
|
2
|
+
import { BookingPackage, BookingPackageItem, EntryLight } from '@qite/tide-client/build/types';
|
|
3
3
|
export interface SearchResultsState {
|
|
4
4
|
results: BookingPackageItem[];
|
|
5
5
|
selectedHotelId: number | null;
|
|
6
|
+
bookingPackageDetails: BookingPackage | null;
|
|
7
|
+
entry: EntryLight | null;
|
|
6
8
|
isLoading: boolean;
|
|
7
9
|
filters: Filter[];
|
|
8
10
|
sortKey: string | null;
|
|
@@ -11,6 +13,13 @@ export interface SearchResultsState {
|
|
|
11
13
|
}
|
|
12
14
|
export declare const setResults: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
13
15
|
results: BookingPackageItem[];
|
|
14
|
-
}, "searchResults/setResults">, setSelectedHotel: import("@reduxjs/toolkit").ActionCreatorWithPayload<number | null, "searchResults/setSelectedHotel">,
|
|
16
|
+
}, "searchResults/setResults">, setSelectedHotel: import("@reduxjs/toolkit").ActionCreatorWithPayload<number | null, "searchResults/setSelectedHotel">, setBookingPackageDetails: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
17
|
+
details: BookingPackage;
|
|
18
|
+
}, "searchResults/setBookingPackageDetails">, setEntry: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
19
|
+
entry: EntryLight;
|
|
20
|
+
}, "searchResults/setEntry">, selectFlight: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
21
|
+
flightOptionId: string;
|
|
22
|
+
isDeparture: boolean;
|
|
23
|
+
}, "searchResults/selectFlight">, setIsLoading: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "searchResults/setIsLoading">, setFilters: import("@reduxjs/toolkit").ActionCreatorWithPayload<Filter[], "searchResults/setFilters">, resetFilters: import("@reduxjs/toolkit").ActionCreatorWithPayload<Filter[], "searchResults/resetFilters">, setSortKey: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "searchResults/setSortKey">, setActiveTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "searchResults/setActiveTab">, setCurrentPage: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "searchResults/setCurrentPage">, resetSearchState: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"searchResults/resetSearchState">;
|
|
15
24
|
declare const _default: import("redux").Reducer<SearchResultsState, import("redux").AnyAction>;
|
|
16
25
|
export default _default;
|
|
@@ -19,24 +19,14 @@ export interface SearchResultsConfiguration {
|
|
|
19
19
|
showCustomCards?: boolean;
|
|
20
20
|
customCardRenderer?: (result: SearchResult) => ReactNode;
|
|
21
21
|
showMapView?: boolean;
|
|
22
|
-
noResultsLabel?: string;
|
|
23
22
|
isLoading?: boolean;
|
|
24
23
|
customSpinner?: ReactNode;
|
|
25
|
-
translations?: {
|
|
26
|
-
filters?: string;
|
|
27
|
-
filterTitle?: string;
|
|
28
|
-
resetButton?: string;
|
|
29
|
-
sortBy?: string;
|
|
30
|
-
noResults?: string;
|
|
31
|
-
totalResultsLabel?: string;
|
|
32
|
-
luggageIncluded?: string;
|
|
33
|
-
cancel?: string;
|
|
34
|
-
apply?: string;
|
|
35
|
-
loading?: string;
|
|
36
|
-
searchResultCTA?: string;
|
|
37
|
-
};
|
|
38
24
|
cmsHotelData?: any[];
|
|
39
25
|
languageCode?: string;
|
|
26
|
+
destinationImage?: {
|
|
27
|
+
url: string;
|
|
28
|
+
alt: string;
|
|
29
|
+
};
|
|
40
30
|
}
|
|
41
31
|
export type FilterType = 'checkbox' | 'toggle' | 'slider' | 'star-rating';
|
|
42
32
|
export type FilterProperty = 'regime' | 'max-duration' | 'price' | 'rating' | 'theme';
|