@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.
@@ -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;