@duffel/components 3.12.0 → 3.12.1

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 (255) hide show
  1. package/components/DuffelAncillaries/Counter.d.ts +10 -0
  2. package/components/DuffelAncillaries/DuffelAncillaries.d.ts +3 -0
  3. package/components/DuffelAncillaries/DuffelAncillariesCustomElement.d.ts +12 -0
  4. package/components/DuffelAncillaries/bags/BaggageSelectionCard.d.ts +12 -0
  5. package/components/DuffelAncillaries/bags/BaggageSelectionController.d.ts +14 -0
  6. package/components/DuffelAncillaries/bags/BaggageSelectionModal.d.ts +12 -0
  7. package/components/DuffelAncillaries/bags/BaggageSelectionModalBody.d.ts +12 -0
  8. package/components/DuffelAncillaries/bags/BaggageSelectionModalBodyPassenger.d.ts +14 -0
  9. package/components/DuffelAncillaries/bags/BaggageSelectionModalFooter.d.ts +15 -0
  10. package/components/DuffelAncillaries/bags/BaggageSelectionModalHeader.d.ts +10 -0
  11. package/components/DuffelAncillaries/bags/IncludedBaggageBanner.d.ts +8 -0
  12. package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionCard.d.ts +11 -0
  13. package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModal.d.ts +12 -0
  14. package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalBody.d.ts +8 -0
  15. package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalBodyListItem.d.ts +4 -0
  16. package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalFooter.d.ts +12 -0
  17. package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalHeader.d.ts +2 -0
  18. package/components/DuffelAncillaries/seats/Amenity.d.ts +7 -0
  19. package/components/DuffelAncillaries/seats/DeckSelect.d.ts +15 -0
  20. package/components/DuffelAncillaries/seats/Element.d.ts +16 -0
  21. package/components/DuffelAncillaries/seats/EmptyElement.d.ts +2 -0
  22. package/components/DuffelAncillaries/seats/ExitElement.d.ts +6 -0
  23. package/components/DuffelAncillaries/seats/Legend.d.ts +13 -0
  24. package/components/DuffelAncillaries/seats/Row.d.ts +14 -0
  25. package/components/DuffelAncillaries/seats/RowSection.d.ts +18 -0
  26. package/components/DuffelAncillaries/seats/SeatElement.d.ts +14 -0
  27. package/components/DuffelAncillaries/seats/SeatInfo.d.ts +8 -0
  28. package/components/DuffelAncillaries/seats/SeatMap.d.ts +13 -0
  29. package/components/DuffelAncillaries/seats/SeatMapUnavailable.d.ts +2 -0
  30. package/components/DuffelAncillaries/seats/SeatSelectionCard.d.ts +13 -0
  31. package/components/DuffelAncillaries/seats/SeatSelectionModal.d.ts +15 -0
  32. package/components/DuffelAncillaries/seats/SeatSelectionModalBody.d.ts +4 -0
  33. package/components/DuffelAncillaries/seats/SeatSelectionModalFooter.d.ts +16 -0
  34. package/components/DuffelAncillaries/seats/SeatSelectionModalHeader.d.ts +11 -0
  35. package/components/DuffelAncillaries/seats/SeatUnavailable.d.ts +6 -0
  36. package/components/DuffelCardForm/DuffelCardForm.d.ts +4 -0
  37. package/components/DuffelCardForm/DuffelCardFormCustomElement.d.ts +34 -0
  38. package/components/DuffelCardForm/lib/getIFrameEventListener.d.ts +7 -0
  39. package/components/DuffelCardForm/lib/getIFrameOriginForEnvironment.d.ts +2 -0
  40. package/components/DuffelCardForm/lib/getIframeURL.d.ts +2 -0
  41. package/components/DuffelCardForm/lib/getPathnameForIntent.d.ts +2 -0
  42. package/components/DuffelCardForm/lib/getTokenFromClientKey.d.ts +1 -0
  43. package/components/DuffelCardForm/lib/postMessageToCreateCardForTemporaryUse.d.ts +1 -0
  44. package/components/DuffelCardForm/lib/postMessageToSaveCard.d.ts +1 -0
  45. package/components/DuffelCardForm/lib/postMessageWithStyles.d.ts +2 -0
  46. package/components/DuffelCardForm/lib/types.d.ts +154 -0
  47. package/components/DuffelCardForm/lib/useDuffelCardFormActions.d.ts +24 -0
  48. package/components/DuffelNGSView/AirlineSelector.d.ts +10 -0
  49. package/components/DuffelNGSView/DuffelNGSView.d.ts +14 -0
  50. package/components/DuffelNGSView/FilterControl.d.ts +20 -0
  51. package/components/DuffelNGSView/FilterControls.d.ts +13 -0
  52. package/components/DuffelNGSView/NGSShelfInfoCard.d.ts +7 -0
  53. package/components/DuffelNGSView/NGSSliceFareCard.d.ts +10 -0
  54. package/components/DuffelNGSView/NGSTable.d.ts +15 -0
  55. package/components/DuffelNGSView/SliceSummary.d.ts +7 -0
  56. package/components/DuffelNGSView/SortingControl.d.ts +23 -0
  57. package/components/DuffelNGSView/StopsSelector.d.ts +8 -0
  58. package/components/DuffelNGSView/TimeRangeSelector.d.ts +8 -0
  59. package/components/DuffelNGSView/lib/deduplicate-mapped-offers-by-fare-brand.d.ts +7 -0
  60. package/components/DuffelNGSView/lib/does-slice-have-mixed-cabins.d.ts +4 -0
  61. package/components/DuffelNGSView/lib/filter-results.d.ts +14 -0
  62. package/components/DuffelNGSView/lib/get-initial-filter-values.d.ts +4 -0
  63. package/components/DuffelNGSView/lib/get-max-baggages-for-offer-slice.d.ts +8 -0
  64. package/components/DuffelNGSView/lib/getAirlines.d.ts +4 -0
  65. package/components/DuffelNGSView/lib/group-offers-for-ngs-view.d.ts +6 -0
  66. package/components/DuffelNGSView/lib/index.d.ts +14 -0
  67. package/components/DuffelNGSView/lib/sort-ngs-rows-by-duration.d.ts +5 -0
  68. package/components/DuffelNGSView/lib/sort-ngs-rows-by-recommended.d.ts +2 -0
  69. package/components/DuffelNGSView/lib/sort-ngs-rows-by-shelf-price.d.ts +6 -0
  70. package/components/DuffelNGSView/lib/useFilters.d.ts +28 -0
  71. package/components/DuffelPayments/DuffelPayments.d.ts +11 -0
  72. package/components/DuffelPayments/DuffelPaymentsCustomElement.d.ts +13 -0
  73. package/components/MapboxPlacesLookup/MapboxPlacesLookup.d.ts +12 -0
  74. package/components/MapboxPlacesLookup/MapboxPlacesLookupCustomElement.d.ts +13 -0
  75. package/components/MapboxPlacesLookup/lib/getPlacesFromMapboxClient.d.ts +7 -0
  76. package/components/OfferSlice/OfferSlice.d.ts +7 -0
  77. package/components/OfferSlice/OfferSliceConditions.d.ts +7 -0
  78. package/components/OfferSlice/OfferSliceDetailItem.d.ts +7 -0
  79. package/components/OfferSlice/OfferSliceDetailLayoverItem.d.ts +8 -0
  80. package/components/OfferSlice/OfferSliceDetailTravelItem.d.ts +9 -0
  81. package/components/OfferSlice/lib/getHighlightStyles.d.ts +7 -0
  82. package/components/OfferSliceModal/OfferSliceModal.d.ts +7 -0
  83. package/components/PlacesLookup/PlacesLookup.d.ts +20 -0
  84. package/components/Stays/StaysAmenities.d.ts +9 -0
  85. package/components/Stays/StaysAmenitiesCustomElement.d.ts +12 -0
  86. package/components/Stays/StaysCancellationTimeline/Policy.d.ts +8 -0
  87. package/components/Stays/StaysCancellationTimeline/StaysCancellationTimeline.d.ts +12 -0
  88. package/components/Stays/StaysCancellationTimeline/StaysCancellationTimelineDeposit.d.ts +12 -0
  89. package/components/Stays/StaysCancellationTimeline/StaysCancellationTimelineGuarantee.d.ts +12 -0
  90. package/components/Stays/StaysCancellationTimeline/StaysCancellationTimelinePayNow.d.ts +12 -0
  91. package/components/Stays/StaysCancellationTimeline/TimelineItem.d.ts +15 -0
  92. package/components/Stays/StaysCancellationTimeline/lib/isTimezoneDate.d.ts +4 -0
  93. package/components/Stays/StaysCancellationTimeline/lib/renderTimelineDateTime.d.ts +1 -0
  94. package/components/Stays/StaysRating.d.ts +6 -0
  95. package/components/Stays/StaysRatingCustomElement.d.ts +14 -0
  96. package/components/Stays/StaysRoomRateCard.d.ts +13 -0
  97. package/components/Stays/StaysRoomRateCardCustomElement.d.ts +14 -0
  98. package/components/Stays/StaysSummary.d.ts +12 -0
  99. package/components/Stays/StaysSummaryCustomElement.d.ts +12 -0
  100. package/components/Stays/lib/getRateLabel.d.ts +2 -0
  101. package/components/Stays/lib/types.d.ts +29 -0
  102. package/components/shared/AirlineLogo.d.ts +8 -0
  103. package/components/shared/AnimatedLoaderEllipsis.d.ts +2 -0
  104. package/components/shared/Button.d.ts +23 -0
  105. package/components/shared/Card.d.ts +14 -0
  106. package/components/shared/ErrorBoundary.d.ts +13 -0
  107. package/components/shared/FetchOfferErrorState.d.ts +5 -0
  108. package/components/shared/HSpace.d.ts +28 -0
  109. package/components/shared/Icon.d.ts +98 -0
  110. package/components/shared/IconButton.d.ts +16 -0
  111. package/components/shared/Modal.d.ts +14 -0
  112. package/components/shared/NonIdealState.d.ts +4 -0
  113. package/components/shared/RadioButton.d.ts +7 -0
  114. package/components/shared/SliceCarriersTitle.d.ts +8 -0
  115. package/components/shared/Stamp.d.ts +7 -0
  116. package/components/shared/Tabs.d.ts +16 -0
  117. package/components/shared/VSpace.d.ts +14 -0
  118. package/components/shared/WithComponentStyles.d.ts +7 -0
  119. package/custom-elements.d.ts +12 -0
  120. package/custom-elements.js +70 -0
  121. package/custom-elements.js.map +7 -0
  122. package/fixtures/offer-requests/orq_duplicates.d.ts +2 -0
  123. package/fixtures/passengers/mock_passengers.d.ts +4 -0
  124. package/functions/createThreeDSecureSession/client.d.ts +43 -0
  125. package/functions/createThreeDSecureSession/createThreeDSecureSession.d.ts +25 -0
  126. package/functions/createThreeDSecureSession/initEvervault.d.ts +1 -0
  127. package/functions/createThreeDSecureSession/loadEvervaultScript.d.ts +1 -0
  128. package/functions/hasService.d.ts +3 -0
  129. package/functions.d.ts +10 -0
  130. package/index.d.ts +19 -0
  131. package/index.js +55 -0
  132. package/index.js.map +7 -0
  133. package/lib/captureErrorInSentry.d.ts +1 -0
  134. package/lib/colors.d.ts +31 -0
  135. package/lib/compileCreateOrderPayload.d.ts +13 -0
  136. package/lib/convertDurationToString.d.ts +1 -0
  137. package/lib/createPriceFormatters.d.ts +12 -0
  138. package/lib/fetchFromDuffelAPI.d.ts +8 -0
  139. package/lib/fetchFromFixtures.d.ts +3 -0
  140. package/lib/formatAvailableServices.d.ts +12 -0
  141. package/lib/formatDate.d.ts +2 -0
  142. package/lib/formatSeatMaps.d.ts +4 -0
  143. package/lib/getAirlinesText.d.ts +2 -0
  144. package/lib/getBaggageServiceDescription.d.ts +2 -0
  145. package/lib/getCabinsForSegmentAndDeck.d.ts +3 -0
  146. package/lib/getCarriers.d.ts +6 -0
  147. package/lib/getCurrencyForSeatMaps.d.ts +10 -0
  148. package/lib/getCurrencyForServices.d.ts +11 -0
  149. package/lib/getDateObject.d.ts +10 -0
  150. package/lib/getDateString.d.ts +73 -0
  151. package/lib/getDayDiff.d.ts +5 -0
  152. package/lib/getDurationString.d.ts +1 -0
  153. package/lib/getFareBrandName.d.ts +2 -0
  154. package/lib/getFirstSeatElementMatchingCriteria.d.ts +4 -0
  155. package/lib/getLayoverOriginDestinationKey.d.ts +1 -0
  156. package/lib/getPassengerBySegmentList.d.ts +7 -0
  157. package/lib/getPassengerInitials.d.ts +1 -0
  158. package/lib/getPassengerMapById.d.ts +4 -0
  159. package/lib/getPassengerName.d.ts +2 -0
  160. package/lib/getRowNumber.d.ts +2 -0
  161. package/lib/getSegmentDates.d.ts +5 -0
  162. package/lib/getSegmentFlightNumber.d.ts +2 -0
  163. package/lib/getSegmentList.d.ts +3 -0
  164. package/lib/getServicePriceMapById.d.ts +4 -0
  165. package/lib/getSliceDetails.d.ts +3 -0
  166. package/lib/getSymbols.d.ts +2 -0
  167. package/lib/getTimeString.d.ts +1 -0
  168. package/lib/getTotalAmountForServices.d.ts +4 -0
  169. package/lib/getTotalQuantity.d.ts +2 -0
  170. package/lib/getTravelItem.d.ts +3 -0
  171. package/lib/hasAvailableSeatService.d.ts +3 -0
  172. package/lib/hasBaggageServiceOfSameMetadataTypeAlreadyBeenSelected.d.ts +4 -0
  173. package/lib/hasHighLuminance.d.ts +1 -0
  174. package/lib/hasService.d.ts +2 -0
  175. package/lib/hasWings.d.ts +2 -0
  176. package/lib/isAmenityElement.d.ts +3 -0
  177. package/lib/isBaggageService.d.ts +3 -0
  178. package/lib/isCancelForAnyReasonService.d.ts +3 -0
  179. package/lib/isFixtureOfferId.d.ts +2 -0
  180. package/lib/isISO8601Duration.d.ts +2 -0
  181. package/lib/isPayloadComplete.d.ts +3 -0
  182. package/lib/isSeatElement.d.ts +3 -0
  183. package/lib/isValidDateString.d.ts +6 -0
  184. package/lib/logging.d.ts +46 -0
  185. package/lib/moneyStringFormatter.d.ts +8 -0
  186. package/lib/offerIsExpired.d.ts +2 -0
  187. package/lib/retrieveOffer.d.ts +3 -0
  188. package/lib/retrieveOfferFromDuffelAPI.d.ts +1 -0
  189. package/lib/retrieveSeatMaps.d.ts +3 -0
  190. package/lib/retrieveSeatMapsFromDuffelAPI.d.ts +1 -0
  191. package/lib/setBodyScrollability.d.ts +1 -0
  192. package/lib/toUTCDate.d.ts +1 -0
  193. package/lib/validateProps.d.ts +7 -0
  194. package/lib/withPlural.d.ts +1 -0
  195. package/package.json +1 -1
  196. package/stories/AirlineLogo.stories.d.ts +3 -0
  197. package/stories/AirlineSelector.stories.d.ts +3 -0
  198. package/stories/BaggageSelectionModalHeader.stories.d.ts +6 -0
  199. package/stories/Button.stories.d.ts +15 -0
  200. package/stories/DuffelAncillaries.stories.d.ts +24 -0
  201. package/stories/DuffelCardForm.stories.d.ts +7 -0
  202. package/stories/DuffelNGSView.stories.d.ts +8 -0
  203. package/stories/DuffelPayments.stories.d.ts +7 -0
  204. package/stories/Icon.stories.d.ts +3 -0
  205. package/stories/IconButton.stories.d.ts +8 -0
  206. package/stories/MapboxPlacesLookup.stories.d.ts +5 -0
  207. package/stories/NGSShelfInfoCard.stories.d.ts +3 -0
  208. package/stories/NGSSliceFareCard.stories.d.ts +3 -0
  209. package/stories/OfferSlice.stories.d.ts +5 -0
  210. package/stories/OfferSliceModal.stories.d.ts +6 -0
  211. package/stories/PlacesLookup.stories.d.ts +3 -0
  212. package/stories/SeatMap.stories.d.ts +4 -0
  213. package/stories/SliceCarriersTitle.stories.d.ts +10 -0
  214. package/stories/SliceSummary.stories.d.ts +5 -0
  215. package/stories/StaysAmenities.stories.d.ts +10 -0
  216. package/stories/StaysCancellationTimeline.stories.d.ts +122 -0
  217. package/stories/StaysRating.stories.d.ts +16 -0
  218. package/stories/StaysRoomRateCard.stories.d.ts +141 -0
  219. package/stories/StaysSummary.stories.d.ts +47 -0
  220. package/tests/components/DuffelAncillaries.test.d.ts +1 -0
  221. package/tests/functions/createThreeDSecureSession.test.d.ts +1 -0
  222. package/tests/lib/convertDurationToString.test.d.ts +1 -0
  223. package/tests/lib/createPriceFormatters.test.d.ts +1 -0
  224. package/tests/lib/formatAvailableServices.test.d.ts +1 -0
  225. package/tests/lib/formatSeatMaps.test.d.ts +1 -0
  226. package/tests/lib/getAirlines.test.d.ts +1 -0
  227. package/tests/lib/getAirlinesText.test.d.ts +1 -0
  228. package/tests/lib/getCarriers.test.d.ts +1 -0
  229. package/tests/lib/getCurrencyForServices.test.d.ts +1 -0
  230. package/tests/lib/getDateObject.test.d.ts +1 -0
  231. package/tests/lib/getDateString.spec.d.ts +1 -0
  232. package/tests/lib/getDayDiff.test.d.ts +1 -0
  233. package/tests/lib/getDurationString.test.d.ts +1 -0
  234. package/tests/lib/getFareBrandName.test.d.ts +1 -0
  235. package/tests/lib/getLayoverOriginDestinationKey.test.d.ts +1 -0
  236. package/tests/lib/getRateLabel.spec.d.ts +1 -0
  237. package/tests/lib/getSegmentDates.d.ts +1 -0
  238. package/tests/lib/getSegmentDates.test.d.ts +1 -0
  239. package/tests/lib/getSegmentFlightNumber.test.d.ts +1 -0
  240. package/tests/lib/getSliceDetails.test.d.ts +1 -0
  241. package/tests/lib/getTimeString.test.d.ts +1 -0
  242. package/tests/lib/getTravelItem.test.d.ts +1 -0
  243. package/tests/lib/groupOffersForNGSView.test.d.ts +1 -0
  244. package/tests/lib/hasAvailableSeatService.test.d.ts +1 -0
  245. package/tests/lib/hasBaggageServiceOfSameMetadataTypeAlreadyBeenSelected.test.d.ts +1 -0
  246. package/tests/lib/isValidDateString.test.d.ts +1 -0
  247. package/tests/lib/logging.test.d.ts +1 -0
  248. package/tests/lib/moneyStringFormatter.test.d.ts +1 -0
  249. package/tests/lib/toUTCDate.test.d.ts +1 -0
  250. package/tests/lib/validateProps.test.d.ts +5 -0
  251. package/tsconfig.tsbuildinfo +1 -0
  252. package/types/CurrencyConversion.d.ts +10 -0
  253. package/types/DuffelAncillariesProps.d.ts +127 -0
  254. package/types/TravelDetails.d.ts +77 -0
  255. package/types/index.d.ts +4 -0
@@ -0,0 +1,8 @@
1
+ import type { StoryObj } from "@storybook/react";
2
+ import { IconButton } from "../components/shared/IconButton";
3
+ declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/dist/types-a5624094").R, import("@storybook/csf").Args>;
4
+ export default _default;
5
+ type IconButtonStory = StoryObj<typeof IconButton>;
6
+ export declare const Default: IconButtonStory;
7
+ export declare const WithOutlinedVariant: IconButtonStory;
8
+ export declare const DisabledWithOutlinedVariant: IconButtonStory;
@@ -0,0 +1,5 @@
1
+ import "../styles/components/PlacesLookup.css";
2
+ declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/dist/types-a5624094").R, import("@storybook/csf").Args>;
3
+ export default _default;
4
+ export declare const Default: React.FC;
5
+ export declare const WithStyles: React.FC;
@@ -0,0 +1,3 @@
1
+ declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/dist/types-a5624094").R, import("@storybook/csf").Args>;
2
+ export default _default;
3
+ export declare const FullList: React.FC;
@@ -0,0 +1,3 @@
1
+ declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/dist/types-a5624094").R, import("@storybook/csf").Args>;
2
+ export default _default;
3
+ export declare const FullList: React.FC;
@@ -0,0 +1,5 @@
1
+ declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/dist/types-a5624094").R, import("@storybook/csf").Args>;
2
+ export default _default;
3
+ export declare const Default: React.FC;
4
+ export declare const WithStop: React.FC;
5
+ export declare const WithStopAnd2Segments: React.FC;
@@ -0,0 +1,6 @@
1
+ declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/dist/types-a5624094").R, import("@storybook/csf").Args>;
2
+ export default _default;
3
+ export declare const Default: React.FC;
4
+ export declare const WithStop: React.FC;
5
+ export declare const WithStopAnd2Segments: React.FC;
6
+ export declare const WithLayovers: React.FC;
@@ -0,0 +1,3 @@
1
+ declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/dist/types-a5624094").R, import("@storybook/csf").Args>;
2
+ export default _default;
3
+ export declare const Default: React.FC;
@@ -0,0 +1,4 @@
1
+ declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/dist/types-a5624094").R, import("@storybook/csf").Args>;
2
+ export default _default;
3
+ export declare const Default: React.FC;
4
+ export declare const Qantas: React.FC;
@@ -0,0 +1,10 @@
1
+ import { SliceCarriersTitle } from "@components/shared/SliceCarriersTitle";
2
+ import { StoryObj } from "@storybook/react";
3
+ declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/dist/types-a5624094").R, import("@storybook/csf").Args>;
4
+ export default _default;
5
+ type SliceCarriersTitleStory = StoryObj<typeof SliceCarriersTitle>;
6
+ export declare const OneSegmentWithSameOperatingCarrier: SliceCarriersTitleStory;
7
+ export declare const OneSegmentWithDifferentOperatingCarrier: SliceCarriersTitleStory;
8
+ export declare const TwoSegmentsWithTwoDifferentoperatingCarrier: SliceCarriersTitleStory;
9
+ export declare const TwoSegmentsWithTwoDifferentMarketingAndoperatingCarrier: SliceCarriersTitleStory;
10
+ export declare const ALongOne: SliceCarriersTitleStory;
@@ -0,0 +1,5 @@
1
+ declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/dist/types-a5624094").R, import("@storybook/csf").Args>;
2
+ export default _default;
3
+ export declare const Default: React.FC;
4
+ export declare const WithStop: React.FC;
5
+ export declare const WithStopAnd2Segments: React.FC;
@@ -0,0 +1,10 @@
1
+ /// <reference types="@duffel/api" />
2
+ import { StaysAmenitiesProps } from "@components/Stays/StaysAmenities";
3
+ declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/dist/types-a5624094").R, import("@storybook/csf").Args>;
4
+ export default _default;
5
+ export declare const Default: {
6
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-a5624094").R, StaysAmenitiesProps>;
7
+ args: {
8
+ amenities: import("@duffel/api/types").StaysAmenity[] | null;
9
+ };
10
+ };
@@ -0,0 +1,122 @@
1
+ import { StaysCancellationTimelineProps } from "../components/Stays/StaysCancellationTimeline/StaysCancellationTimeline";
2
+ declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/dist/types-a5624094").R, import("@storybook/csf").Args>;
3
+ export default _default;
4
+ export declare const FullAndPartialRefundable: {
5
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-a5624094").R, StaysCancellationTimelineProps>;
6
+ args: {
7
+ cancellationTimeline: {
8
+ refund_amount: string;
9
+ currency: string;
10
+ before: string;
11
+ }[];
12
+ totalAmount: string;
13
+ checkInDate: string;
14
+ bookingDate: string;
15
+ };
16
+ };
17
+ export declare const FullAndPartialRefundableWithCheckInTime: {
18
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-a5624094").R, StaysCancellationTimelineProps>;
19
+ args: {
20
+ cancellationTimeline: {
21
+ refund_amount: string;
22
+ currency: string;
23
+ before: string;
24
+ }[];
25
+ totalAmount: string;
26
+ checkInDate: string;
27
+ checkInAfterTime: string;
28
+ bookingDate: string;
29
+ };
30
+ };
31
+ export declare const FullRefundableOnly: {
32
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-a5624094").R, StaysCancellationTimelineProps>;
33
+ args: {
34
+ cancellationTimeline: {
35
+ refund_amount: string;
36
+ currency: string;
37
+ before: string;
38
+ }[];
39
+ totalAmount: string;
40
+ checkInDate: string;
41
+ bookingDate: string;
42
+ };
43
+ };
44
+ export declare const NotRefundable: {
45
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-a5624094").R, StaysCancellationTimelineProps>;
46
+ args: {
47
+ cancellationTimeline: never[];
48
+ bookingDate: string;
49
+ };
50
+ };
51
+ export declare const PartialRefundableDeposit: {
52
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-a5624094").R, StaysCancellationTimelineProps>;
53
+ args: {
54
+ cancellationTimeline: {
55
+ refund_amount: string;
56
+ currency: string;
57
+ before: string;
58
+ }[];
59
+ totalAmount: string;
60
+ checkInDate: string;
61
+ bookingDate: string;
62
+ paymentType: string;
63
+ };
64
+ };
65
+ export declare const FullRefundableOnlyDeposit: {
66
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-a5624094").R, StaysCancellationTimelineProps>;
67
+ args: {
68
+ cancellationTimeline: {
69
+ refund_amount: string;
70
+ currency: string;
71
+ before: string;
72
+ }[];
73
+ totalAmount: string;
74
+ checkInDate: string;
75
+ bookingDate: string;
76
+ paymentType: string;
77
+ };
78
+ };
79
+ export declare const NotRefundableDeposit: {
80
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-a5624094").R, StaysCancellationTimelineProps>;
81
+ args: {
82
+ cancellationTimeline: never[];
83
+ bookingDate: string;
84
+ paymentType: string;
85
+ };
86
+ };
87
+ export declare const PartialRefundableGuarantee: {
88
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-a5624094").R, StaysCancellationTimelineProps>;
89
+ args: {
90
+ cancellationTimeline: {
91
+ refund_amount: string;
92
+ currency: string;
93
+ before: string;
94
+ }[];
95
+ totalAmount: string;
96
+ checkInDate: string;
97
+ bookingDate: string;
98
+ paymentType: string;
99
+ };
100
+ };
101
+ export declare const FullRefundableOnlyGuarantee: {
102
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-a5624094").R, StaysCancellationTimelineProps>;
103
+ args: {
104
+ cancellationTimeline: {
105
+ refund_amount: string;
106
+ currency: string;
107
+ before: string;
108
+ }[];
109
+ totalAmount: string;
110
+ checkInDate: string;
111
+ bookingDate: string;
112
+ paymentType: string;
113
+ };
114
+ };
115
+ export declare const NotRefundableGuarantee: {
116
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-a5624094").R, StaysCancellationTimelineProps>;
117
+ args: {
118
+ cancellationTimeline: never[];
119
+ bookingDate: string;
120
+ paymentType: string;
121
+ };
122
+ };
@@ -0,0 +1,16 @@
1
+ import { StaysRatingProps } from "@components/Stays/StaysRating";
2
+ declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/dist/types-a5624094").R, import("@storybook/csf").Args>;
3
+ export default _default;
4
+ export declare const Default: {
5
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-a5624094").R, StaysRatingProps>;
6
+ args: {
7
+ rating: number;
8
+ };
9
+ };
10
+ export declare const Small: {
11
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-a5624094").R, StaysRatingProps>;
12
+ args: {
13
+ rating: number;
14
+ small: boolean;
15
+ };
16
+ };
@@ -0,0 +1,141 @@
1
+ /// <reference types="@duffel/api" />
2
+ import { StaysRoomRateCardProps } from "@components/Stays/StaysRoomRateCard";
3
+ declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/dist/types-a5624094").R, import("@storybook/csf").Args>;
4
+ export default _default;
5
+ export declare const RateWithMinimalInformation: {
6
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-a5624094").R, {
7
+ roomRates: StaysRoomRateCardProps[];
8
+ }>;
9
+ args: {
10
+ roomRates: {
11
+ rate: import("@duffel/api/types").StaysRoomRate;
12
+ numberOfNights: number;
13
+ }[];
14
+ };
15
+ };
16
+ export declare const PayLaterRate: {
17
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-a5624094").R, {
18
+ roomRates: StaysRoomRateCardProps[];
19
+ }>;
20
+ args: {
21
+ roomRates: {
22
+ rate: {
23
+ available_payment_methods: string[];
24
+ payment_type: string;
25
+ source: string;
26
+ id: string;
27
+ cancellation_timeline: {
28
+ refund_amount: string;
29
+ currency: string;
30
+ before: string;
31
+ }[];
32
+ quantity_available: number | null;
33
+ base_amount: string | null;
34
+ base_currency: string;
35
+ board_type: "room_only" | "breakfast" | "half_board" | "full_board" | "all_inclusive";
36
+ conditions: import("@duffel/api/types").StaysRateCondition[];
37
+ due_at_accommodation_amount: string | null;
38
+ due_at_accommodation_currency: string;
39
+ fee_amount: string | null;
40
+ fee_currency: string;
41
+ tax_amount: string | null;
42
+ tax_currency: string;
43
+ total_amount: string;
44
+ total_currency: string;
45
+ supported_loyalty_programme: import("@duffel/api/types").StaysLoyaltyProgrammeReference | null;
46
+ loyalty_programme_required: boolean;
47
+ };
48
+ numberOfNights: number;
49
+ searchNumberOfRooms: number;
50
+ }[];
51
+ };
52
+ };
53
+ export declare const RateWithCompleteInformation: {
54
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-a5624094").R, {
55
+ roomRates: StaysRoomRateCardProps[];
56
+ }>;
57
+ args: {
58
+ roomRates: {
59
+ rate: import("@duffel/api/types").StaysRoomRate;
60
+ numberOfNights: number;
61
+ searchNumberOfRooms: number;
62
+ }[];
63
+ };
64
+ };
65
+ export declare const RatesCrossComparison: {
66
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-a5624094").R, {
67
+ roomRates: StaysRoomRateCardProps[];
68
+ }>;
69
+ args: {
70
+ roomRates: ({
71
+ rate: import("@duffel/api/types").StaysRoomRate;
72
+ numberOfNights: number;
73
+ } | {
74
+ rate: {
75
+ available_payment_methods: string[];
76
+ payment_type: string;
77
+ source: string;
78
+ id: string;
79
+ cancellation_timeline: {
80
+ refund_amount: string;
81
+ currency: string;
82
+ before: string;
83
+ }[];
84
+ quantity_available: number | null;
85
+ base_amount: string | null;
86
+ base_currency: string;
87
+ board_type: "room_only" | "breakfast" | "half_board" | "full_board" | "all_inclusive";
88
+ conditions: import("@duffel/api/types").StaysRateCondition[];
89
+ due_at_accommodation_amount: string | null;
90
+ due_at_accommodation_currency: string;
91
+ fee_amount: string | null;
92
+ fee_currency: string;
93
+ tax_amount: string | null;
94
+ tax_currency: string;
95
+ total_amount: string;
96
+ total_currency: string;
97
+ supported_loyalty_programme: import("@duffel/api/types").StaysLoyaltyProgrammeReference | null;
98
+ loyalty_programme_required: boolean;
99
+ };
100
+ numberOfNights: number;
101
+ searchNumberOfRooms: number;
102
+ })[];
103
+ };
104
+ };
105
+ export declare const DepositRate: {
106
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-a5624094").R, {
107
+ roomRates: StaysRoomRateCardProps[];
108
+ }>;
109
+ args: {
110
+ roomRates: {
111
+ rate: {
112
+ available_payment_methods: string[];
113
+ payment_type: string;
114
+ source: string;
115
+ id: string;
116
+ cancellation_timeline: {
117
+ refund_amount: string;
118
+ currency: string;
119
+ before: string;
120
+ }[];
121
+ quantity_available: number | null;
122
+ base_amount: string | null;
123
+ base_currency: string;
124
+ board_type: "room_only" | "breakfast" | "half_board" | "full_board" | "all_inclusive";
125
+ conditions: import("@duffel/api/types").StaysRateCondition[];
126
+ due_at_accommodation_amount: string | null;
127
+ due_at_accommodation_currency: string;
128
+ fee_amount: string | null;
129
+ fee_currency: string;
130
+ tax_amount: string | null;
131
+ tax_currency: string;
132
+ total_amount: string;
133
+ total_currency: string;
134
+ supported_loyalty_programme: import("@duffel/api/types").StaysLoyaltyProgrammeReference | null;
135
+ loyalty_programme_required: boolean;
136
+ };
137
+ numberOfNights: number;
138
+ searchNumberOfRooms: number;
139
+ }[];
140
+ };
141
+ };
@@ -0,0 +1,47 @@
1
+ /// <reference types="@duffel/api" />
2
+ import { StaysSummaryProps } from "@components/Stays/StaysSummary";
3
+ import { StaysAccommodation } from "@duffel/api/types";
4
+ declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/dist/types-a5624094").R, import("@storybook/csf").Args>;
5
+ export default _default;
6
+ export declare const Default: {
7
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-a5624094").R, StaysSummaryProps>;
8
+ args: {
9
+ accommodation: StaysAccommodation;
10
+ checkInDate: Date;
11
+ checkOutDate: Date;
12
+ numRooms: number;
13
+ supportedLoyaltyProgramme: string;
14
+ loyaltyProgrammeAccountNumber: string;
15
+ accommodationSpecialRequests: string;
16
+ };
17
+ };
18
+ export declare const WithNoPhoto: {
19
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-a5624094").R, StaysSummaryProps>;
20
+ args: {
21
+ accommodation: {
22
+ photos: never[];
23
+ id: string;
24
+ amenities: import("@duffel/api/types").StaysAmenity[] | null;
25
+ chain: import("@duffel/api/types").StaysChain | null;
26
+ brand: import("@duffel/api/types").StaysAccommodationBrand | null;
27
+ check_in_information: {
28
+ check_out_before_time: string;
29
+ check_in_after_time: string;
30
+ } | null;
31
+ key_collection: import("@duffel/api/types").StaysBookingKeyCollection | null;
32
+ description?: string | undefined;
33
+ email: string | null;
34
+ location: import("@duffel/api/types").StaysLocation;
35
+ name: string;
36
+ phone_number: string | null;
37
+ ratings: import("@duffel/api/types").StaysRating[] | null;
38
+ rating: number | null;
39
+ review_score: number | null;
40
+ rooms: import("@duffel/api/types").StaysRoom[];
41
+ supported_loyalty_programme: import("@duffel/api/types").StaysLoyaltyProgrammeReference | null;
42
+ };
43
+ checkInDate: Date;
44
+ checkOutDate: Date;
45
+ numRooms: number;
46
+ };
47
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * In this file, we want to allow usage of @ts-ignore so
3
+ * that we can test functions with invalid props.
4
+ */
5
+ export {};