@qite/tide-components 1.0.8 → 1.0.10

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.
Files changed (79) hide show
  1. package/build/build-cjs/index.js +585 -319
  2. package/build/build-cjs/src/booking-product/types.d.ts +10 -0
  3. package/build/build-cjs/src/search-results/components/itinerary/itinerary-utils.d.ts +12 -0
  4. package/build/build-cjs/src/search-results/types.d.ts +12 -0
  5. package/build/build-esm/index.js +586 -320
  6. package/build/build-esm/src/booking-product/types.d.ts +10 -0
  7. package/build/build-esm/src/search-results/components/itinerary/itinerary-utils.d.ts +12 -0
  8. package/build/build-esm/src/search-results/types.d.ts +12 -0
  9. package/package.json +2 -2
  10. package/styles/abstracts/_mixins.scss +74 -74
  11. package/styles/abstracts/_variables.scss +57 -57
  12. package/styles/base/_fonts.scss +2 -2
  13. package/styles/base/_normalize.scss +227 -227
  14. package/styles/base/_typography.scss +35 -35
  15. package/styles/booking-joker-variables.scss +596 -596
  16. package/styles/booking-product-variables.scss +330 -330
  17. package/styles/booking-product.scss +438 -438
  18. package/styles/booking-qsm-variables.scss +501 -501
  19. package/styles/booking-qsm.scss +52 -52
  20. package/styles/booking-search-results-variables.scss +734 -734
  21. package/styles/booking-search-results.scss +53 -53
  22. package/styles/booking-wizard-variables.scss +603 -603
  23. package/styles/booking-wizard.scss +61 -61
  24. package/styles/components/_accordion.scss +67 -67
  25. package/styles/components/_animations.scss +39 -39
  26. package/styles/components/_base.scss +107 -107
  27. package/styles/components/_booking.scss +906 -906
  28. package/styles/components/_breadcrumb.scss +92 -92
  29. package/styles/components/_button.scss +238 -238
  30. package/styles/components/_checkbox.scss +230 -230
  31. package/styles/components/_contact.scss +255 -255
  32. package/styles/components/_content.scss +336 -336
  33. package/styles/components/_cta.scss +238 -238
  34. package/styles/components/_date-list.scss +41 -41
  35. package/styles/components/_date-range-picker.scss +223 -223
  36. package/styles/components/_decrement-increment.scss +35 -35
  37. package/styles/components/_dropdown.scss +77 -77
  38. package/styles/components/_error.scss +50 -50
  39. package/styles/components/_faq.scss +30 -30
  40. package/styles/components/_flight-option.scss +1432 -1432
  41. package/styles/components/_flyin.scss +830 -830
  42. package/styles/components/_footer.scss +135 -135
  43. package/styles/components/_form.scss +1693 -1693
  44. package/styles/components/_gallery.scss +317 -317
  45. package/styles/components/_header.scss +113 -113
  46. package/styles/components/_image-with-text.scss +206 -206
  47. package/styles/components/_img-slider.scss +175 -175
  48. package/styles/components/_info-message.scss +75 -75
  49. package/styles/components/_input.scss +35 -35
  50. package/styles/components/_list.scss +185 -185
  51. package/styles/components/_loader.scss +152 -152
  52. package/styles/components/_login.scss +140 -140
  53. package/styles/components/_map-view.scss +1100 -1100
  54. package/styles/components/_mixins.scss +579 -579
  55. package/styles/components/_navbar.scss +765 -765
  56. package/styles/components/_passenger-picker.scss +306 -306
  57. package/styles/components/_phone-input.scss +8 -8
  58. package/styles/components/_placeholders.scss +165 -165
  59. package/styles/components/_pricing-summary.scss +163 -163
  60. package/styles/components/_qsm.scss +17 -17
  61. package/styles/components/_radiobutton.scss +170 -170
  62. package/styles/components/_search.scss +2197 -2178
  63. package/styles/components/_select-wrapper.scss +81 -81
  64. package/styles/components/_slider.scss +128 -128
  65. package/styles/components/_spinner.scss +29 -29
  66. package/styles/components/_step-indicators.scss +187 -187
  67. package/styles/components/_table.scss +81 -81
  68. package/styles/components/_tide-form.scss +578 -578
  69. package/styles/components/_tree.scss +648 -648
  70. package/styles/components/_typeahead.scss +275 -275
  71. package/styles/components/_variables.scss +89 -89
  72. package/styles/content-blocks-variables.scss +543 -543
  73. package/styles/content-blocks.scss +66 -66
  74. package/styles/font.scss +2 -2
  75. package/styles/qsm/_calendar.scss +274 -274
  76. package/styles/qsm/_qsm.scss +1097 -1097
  77. package/styles/search.scss +1200 -1200
  78. package/styles/tide-form-variables.scss +275 -275
  79. package/styles/tide-form.scss +56 -56
@@ -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;
@@ -50,6 +50,18 @@ export interface SearchResultsConfiguration {
50
50
  * node's remaining results in the fly-in.
51
51
  */
52
52
  hideShowMoreResults?: boolean;
53
+ /**
54
+ * From the website portal configuration. When true a traject day's activity suggestions are
55
+ * only searched after the traveller asks for them; when false they load automatically once
56
+ * the trip has resolved.
57
+ */
58
+ loadDayActivitiesOnDemand?: boolean;
59
+ /**
60
+ * From the website portal configuration. When true a traject hotel's card row is filled up
61
+ * with non-preferred hotels found in the area (API or internal Tide); when false the row only
62
+ * holds the hotels configured on the node.
63
+ */
64
+ showNonPreferredHotels?: boolean;
53
65
  generatePaymentUrl?: boolean;
54
66
  entryStatus?: number;
55
67
  customEntryStatusId?: number;