@qite/tide-booking-component 1.4.29 → 1.4.31
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 +621 -2822
- package/build/build-cjs/search-results/store/search-results-slice.d.ts +6 -3
- package/build/build-cjs/search-results/types.d.ts +9 -12
- package/build/build-esm/index.js +617 -2625
- package/build/build-esm/search-results/store/search-results-slice.d.ts +6 -3
- package/build/build-esm/search-results/types.d.ts +9 -12
- package/package.json +2 -3
- package/src/booking-product/components/dates.tsx +9 -4
- package/src/booking-wizard/components/step-indicator.tsx +11 -2
- package/src/booking-wizard/features/booking/booking-slice.ts +27 -2
- package/src/booking-wizard/features/booking/booking.tsx +32 -15
- package/src/booking-wizard/features/booking/selectors.ts +6 -0
- package/src/booking-wizard/features/flight-options/index.tsx +27 -3
- package/src/booking-wizard/features/product-options/option-room.tsx +1 -1
- package/src/booking-wizard/features/product-options/options-form.tsx +14 -4
- package/src/booking-wizard/features/room-options/room.tsx +1 -1
- package/src/booking-wizard/features/sidebar/index.tsx +4 -1
- package/src/booking-wizard/features/sidebar/sidebar-util.ts +1 -3
- package/src/booking-wizard/features/sidebar/sidebar.tsx +112 -104
- package/src/booking-wizard/features/travelers-form/travelers-form-slice.ts +1 -0
- package/src/booking-wizard/features/travelers-form/travelers-form.tsx +146 -10
- package/src/booking-wizard/settings-context.ts +2 -1
- package/src/booking-wizard/types.ts +1 -0
- package/src/qsm/components/search-input-group/index.tsx +17 -8
- package/src/search-results/components/hotel/hotel-accommodation-results.tsx +78 -83
- package/src/search-results/components/hotel/hotel-card.tsx +54 -24
- package/src/search-results/components/icon.tsx +13 -0
- package/src/search-results/components/item-picker/index.tsx +5 -7
- package/src/search-results/components/search-results-container/search-results-container.tsx +72 -117
- package/src/search-results/components/tab-views/index.tsx +22 -3
- package/src/search-results/features/flights/flight-search-results-self-contained.tsx +0 -13
- package/src/search-results/features/hotels/hotel-flight-search-results-self-contained.tsx +1 -8
- package/src/search-results/features/hotels/hotel-search-results-self-contained.tsx +1 -14
- package/src/search-results/features/roundtrips/roundtrip-search-results-self-contained.tsx +1 -9
- package/src/search-results/store/search-results-slice.ts +11 -4
- package/src/search-results/types.ts +11 -16
- package/src/shared/translations/en-GB.json +5 -1
- package/src/shared/translations/fr-BE.json +5 -1
- package/src/shared/translations/nl-BE.json +5 -1
- package/styles/components/_form.scss +51 -2
- package/styles/components/_passenger-picker.scss +3 -2
- package/styles/components/_qsm.scss +1 -1
- package/styles/qsm/_qsm.scss +67 -6
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { Filter
|
|
1
|
+
import { Filter } from '../types';
|
|
2
|
+
import { BookingPackageItem } from '@qite/tide-client/build/types';
|
|
2
3
|
export interface SearchResultsState {
|
|
3
|
-
results:
|
|
4
|
+
results: BookingPackageItem[];
|
|
4
5
|
isLoading: boolean;
|
|
5
6
|
filters: Filter[];
|
|
6
7
|
sortKey: string | null;
|
|
8
|
+
activeTab: string | null;
|
|
7
9
|
currentPage: number;
|
|
8
10
|
}
|
|
9
11
|
export declare const setResults: import('@reduxjs/toolkit').ActionCreatorWithPayload<
|
|
10
12
|
{
|
|
11
|
-
results:
|
|
13
|
+
results: BookingPackageItem[];
|
|
12
14
|
},
|
|
13
15
|
'searchResults/setResults'
|
|
14
16
|
>,
|
|
@@ -16,6 +18,7 @@ export declare const setResults: import('@reduxjs/toolkit').ActionCreatorWithPay
|
|
|
16
18
|
setFilters: import('@reduxjs/toolkit').ActionCreatorWithPayload<Filter[], 'searchResults/setFilters'>,
|
|
17
19
|
resetFilters: import('@reduxjs/toolkit').ActionCreatorWithPayload<Filter[], 'searchResults/resetFilters'>,
|
|
18
20
|
setSortKey: import('@reduxjs/toolkit').ActionCreatorWithPayload<string | null, 'searchResults/setSortKey'>,
|
|
21
|
+
setActiveTab: import('@reduxjs/toolkit').ActionCreatorWithPayload<string | null, 'searchResults/setActiveTab'>,
|
|
19
22
|
setCurrentPage: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, 'searchResults/setCurrentPage'>,
|
|
20
23
|
resetSearchState: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<'searchResults/resetSearchState'>;
|
|
21
24
|
declare const _default: import('redux').Reducer<SearchResultsState, import('redux').AnyAction>;
|
|
@@ -19,8 +19,6 @@ export interface SearchResultsConfiguration {
|
|
|
19
19
|
showCustomCards?: boolean;
|
|
20
20
|
customCardRenderer?: (result: SearchResult) => ReactNode;
|
|
21
21
|
onResultClick?: (id: string) => void;
|
|
22
|
-
sortingOptions?: SortingOption[];
|
|
23
|
-
onSortChange?: (sortKey: string) => void;
|
|
24
22
|
showMapView?: boolean;
|
|
25
23
|
noResultsLabel?: string;
|
|
26
24
|
isLoading?: boolean;
|
|
@@ -38,6 +36,7 @@ export interface SearchResultsConfiguration {
|
|
|
38
36
|
loading?: string;
|
|
39
37
|
searchResultCTA?: string;
|
|
40
38
|
};
|
|
39
|
+
cmsHotelData?: any[];
|
|
41
40
|
}
|
|
42
41
|
export type FilterType = 'checkbox' | 'toggle' | 'slider' | 'star-rating';
|
|
43
42
|
export type FilterProperty = 'regime' | 'max-duration' | 'price' | 'rating' | 'theme';
|
|
@@ -59,15 +58,6 @@ export interface Filter {
|
|
|
59
58
|
selectedMax?: number;
|
|
60
59
|
selectedRating?: number;
|
|
61
60
|
}
|
|
62
|
-
export interface Sort {
|
|
63
|
-
label: string;
|
|
64
|
-
icon?: ReactNode;
|
|
65
|
-
}
|
|
66
|
-
export interface SortingOption {
|
|
67
|
-
key: 'price-asc' | 'price-desc' | 'duration-asc' | 'duration-desc' | 'rating-asc' | 'rating-desc';
|
|
68
|
-
label: string;
|
|
69
|
-
icon?: ReactNode;
|
|
70
|
-
}
|
|
71
61
|
export interface PaginationConfig {
|
|
72
62
|
totalResults: number;
|
|
73
63
|
currentPage: number;
|
|
@@ -81,9 +71,11 @@ export interface BaseSearchResult {
|
|
|
81
71
|
description?: string;
|
|
82
72
|
location?: string;
|
|
83
73
|
tags?: Tag[];
|
|
84
|
-
price: string;
|
|
74
|
+
price: string | number;
|
|
85
75
|
ctaText: string;
|
|
86
76
|
stars?: number;
|
|
77
|
+
accommodation?: string;
|
|
78
|
+
regime?: string;
|
|
87
79
|
}
|
|
88
80
|
export interface HotelResult extends BaseSearchResult {
|
|
89
81
|
type: 'hotel';
|
|
@@ -121,3 +113,8 @@ export interface TravelClass {
|
|
|
121
113
|
label: string;
|
|
122
114
|
icon?: ReactNode;
|
|
123
115
|
}
|
|
116
|
+
export interface SortingOption {
|
|
117
|
+
key: 'price-asc' | 'price-desc' | 'departure-date' | 'duration-asc' | 'duration-desc' | 'rating-asc' | 'rating-desc';
|
|
118
|
+
label: string;
|
|
119
|
+
icon?: ReactNode;
|
|
120
|
+
}
|