@qite/tide-components 1.0.8 → 1.0.9
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 +346 -90
- package/build/build-cjs/src/booking-product/types.d.ts +10 -0
- package/build/build-cjs/src/search-results/components/itinerary/itinerary-utils.d.ts +12 -0
- package/build/build-esm/index.js +347 -91
- package/build/build-esm/src/booking-product/types.d.ts +10 -0
- package/build/build-esm/src/search-results/components/itinerary/itinerary-utils.d.ts +12 -0
- package/package.json +2 -2
- package/styles/components/_search.scss +20 -1
|
@@ -21,6 +21,16 @@ export interface Settings {
|
|
|
21
21
|
* to the Tide API is unchanged.
|
|
22
22
|
*/
|
|
23
23
|
disableRooms?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* When true, the traveller may pick the same day as departure and return
|
|
26
|
+
* (a 0-night stay), e.g. 20/09 - 20/09. By default a second click on the
|
|
27
|
+
* departure day restarts the selection instead of closing the range, which
|
|
28
|
+
* stays the behaviour for products that always span at least one night.
|
|
29
|
+
*
|
|
30
|
+
* Only affects `searchType: 0`; with `searchType: 1` the return date is
|
|
31
|
+
* dictated by the available date pairs coming from the API.
|
|
32
|
+
*/
|
|
33
|
+
allowSingleDayDateSelect?: boolean;
|
|
24
34
|
/**
|
|
25
35
|
* Icon name shown next to the price whenever a price is available.
|
|
26
36
|
* Defaults to `'ui-bed'` for backwards compatibility. Customers booking
|
|
@@ -7,6 +7,18 @@ export declare const numberOfNights: (segment: PackagingEntryLine) => number;
|
|
|
7
7
|
/** Icon per service type, so every node on the itinerary reads at a glance. */
|
|
8
8
|
export declare const getServiceTypeIcon: (serviceType?: number) => string;
|
|
9
9
|
export declare const getServiceTypeBadgeModifier: (serviceType?: number) => string;
|
|
10
|
+
/**
|
|
11
|
+
* How long a node takes, in the same shape the flight legs are written in — an hour count only
|
|
12
|
+
* once there is one, so a short drive reads as plain minutes.
|
|
13
|
+
*/
|
|
14
|
+
export declare const getTrajectNodeDuration: (node: PackagingTrajectNode) => string;
|
|
15
|
+
/** Icon per way of travelling, where the route records one. */
|
|
16
|
+
export declare const getTransportTypeIcon: (transportType?: number | null) => string | null;
|
|
10
17
|
export declare const POI_TRAJECT_NODE_TYPE = 2;
|
|
18
|
+
/**
|
|
19
|
+
* A point of interest is a place on the map rather than a service, so it gets a marker. Anything
|
|
20
|
+
* else goes by how it is travelled where the route says so — a leg on foot or by bike is sold as
|
|
21
|
+
* nothing, and its service type falls back to a transfer — and by what it is where it does not.
|
|
22
|
+
*/
|
|
11
23
|
export declare const getTrajectNodeIcon: (node: PackagingTrajectNode) => string;
|
|
12
24
|
export declare const getTrajectNodeBadgeModifier: (node: PackagingTrajectNode) => string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qite/tide-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "React components for Tide (booking, product availability, form, ...)",
|
|
5
5
|
"main": "build/build-cjs/index.js",
|
|
6
6
|
"types": "build/build-cjs/src/index.d.ts",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@jsonurl/jsonurl": "^1.1.4",
|
|
38
38
|
"@popperjs/core": "^2.10.2",
|
|
39
|
-
"@qite/tide-client": "^2.0.
|
|
39
|
+
"@qite/tide-client": "^2.0.17",
|
|
40
40
|
"@reduxjs/toolkit": "^2.8.2",
|
|
41
41
|
"@rollup/plugin-commonjs": "^19.0.1",
|
|
42
42
|
"@rollup/plugin-json": "^4.1.0",
|
|
@@ -371,12 +371,12 @@
|
|
|
371
371
|
display: flex;
|
|
372
372
|
flex-direction: column;
|
|
373
373
|
justify-content: center;
|
|
374
|
+
gap: 10px;
|
|
374
375
|
|
|
375
376
|
height: 173.5px;
|
|
376
377
|
padding: 0 20px;
|
|
377
378
|
|
|
378
379
|
&__wrapper {
|
|
379
|
-
padding: 20px 0px;
|
|
380
380
|
display: flex;
|
|
381
381
|
flex-direction: column;
|
|
382
382
|
align-items: center;
|
|
@@ -949,6 +949,25 @@
|
|
|
949
949
|
border: var(--tide-booking-search-results-label-date-border--secondary);
|
|
950
950
|
}
|
|
951
951
|
}
|
|
952
|
+
|
|
953
|
+
// Something inside a day rather than a day of its own: no date, no box, and quieter type,
|
|
954
|
+
// sitting close to what it introduces.
|
|
955
|
+
&--sub {
|
|
956
|
+
grid-template-columns: 1fr;
|
|
957
|
+
grid-template-rows: auto;
|
|
958
|
+
margin-top: 20px;
|
|
959
|
+
|
|
960
|
+
.search__results__label__text {
|
|
961
|
+
height: auto;
|
|
962
|
+
border: none;
|
|
963
|
+
padding: 0px;
|
|
964
|
+
gap: 8px;
|
|
965
|
+
|
|
966
|
+
h3 {
|
|
967
|
+
font-size: 16px;
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
}
|
|
952
971
|
}
|
|
953
972
|
|
|
954
973
|
&__options {
|