@duffel/components 3.11.0 → 3.12.0

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 (256) hide show
  1. package/README.md +6 -3
  2. package/package.json +4 -3
  3. package/components/DuffelAncillaries/Counter.d.ts +0 -10
  4. package/components/DuffelAncillaries/DuffelAncillaries.d.ts +0 -3
  5. package/components/DuffelAncillaries/DuffelAncillariesCustomElement.d.ts +0 -12
  6. package/components/DuffelAncillaries/bags/BaggageSelectionCard.d.ts +0 -12
  7. package/components/DuffelAncillaries/bags/BaggageSelectionController.d.ts +0 -14
  8. package/components/DuffelAncillaries/bags/BaggageSelectionModal.d.ts +0 -12
  9. package/components/DuffelAncillaries/bags/BaggageSelectionModalBody.d.ts +0 -12
  10. package/components/DuffelAncillaries/bags/BaggageSelectionModalBodyPassenger.d.ts +0 -14
  11. package/components/DuffelAncillaries/bags/BaggageSelectionModalFooter.d.ts +0 -15
  12. package/components/DuffelAncillaries/bags/BaggageSelectionModalHeader.d.ts +0 -10
  13. package/components/DuffelAncillaries/bags/IncludedBaggageBanner.d.ts +0 -8
  14. package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionCard.d.ts +0 -11
  15. package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModal.d.ts +0 -12
  16. package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalBody.d.ts +0 -8
  17. package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalBodyListItem.d.ts +0 -4
  18. package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalFooter.d.ts +0 -12
  19. package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalHeader.d.ts +0 -2
  20. package/components/DuffelAncillaries/seats/Amenity.d.ts +0 -7
  21. package/components/DuffelAncillaries/seats/DeckSelect.d.ts +0 -15
  22. package/components/DuffelAncillaries/seats/Element.d.ts +0 -16
  23. package/components/DuffelAncillaries/seats/EmptyElement.d.ts +0 -2
  24. package/components/DuffelAncillaries/seats/ExitElement.d.ts +0 -6
  25. package/components/DuffelAncillaries/seats/Legend.d.ts +0 -13
  26. package/components/DuffelAncillaries/seats/Row.d.ts +0 -14
  27. package/components/DuffelAncillaries/seats/RowSection.d.ts +0 -18
  28. package/components/DuffelAncillaries/seats/SeatElement.d.ts +0 -14
  29. package/components/DuffelAncillaries/seats/SeatInfo.d.ts +0 -8
  30. package/components/DuffelAncillaries/seats/SeatMap.d.ts +0 -13
  31. package/components/DuffelAncillaries/seats/SeatMapUnavailable.d.ts +0 -2
  32. package/components/DuffelAncillaries/seats/SeatSelectionCard.d.ts +0 -13
  33. package/components/DuffelAncillaries/seats/SeatSelectionModal.d.ts +0 -15
  34. package/components/DuffelAncillaries/seats/SeatSelectionModalBody.d.ts +0 -4
  35. package/components/DuffelAncillaries/seats/SeatSelectionModalFooter.d.ts +0 -16
  36. package/components/DuffelAncillaries/seats/SeatSelectionModalHeader.d.ts +0 -11
  37. package/components/DuffelAncillaries/seats/SeatUnavailable.d.ts +0 -6
  38. package/components/DuffelCardForm/DuffelCardForm.d.ts +0 -4
  39. package/components/DuffelCardForm/DuffelCardFormCustomElement.d.ts +0 -34
  40. package/components/DuffelCardForm/lib/getIFrameEventListener.d.ts +0 -7
  41. package/components/DuffelCardForm/lib/getIFrameOriginForEnvironment.d.ts +0 -2
  42. package/components/DuffelCardForm/lib/getIframeURL.d.ts +0 -2
  43. package/components/DuffelCardForm/lib/getPathnameForIntent.d.ts +0 -2
  44. package/components/DuffelCardForm/lib/getTokenFromClientKey.d.ts +0 -1
  45. package/components/DuffelCardForm/lib/postMessageToCreateCardForTemporaryUse.d.ts +0 -1
  46. package/components/DuffelCardForm/lib/postMessageToSaveCard.d.ts +0 -1
  47. package/components/DuffelCardForm/lib/postMessageWithStyles.d.ts +0 -2
  48. package/components/DuffelCardForm/lib/types.d.ts +0 -154
  49. package/components/DuffelCardForm/lib/useDuffelCardFormActions.d.ts +0 -24
  50. package/components/DuffelNGSView/AirlineSelector.d.ts +0 -10
  51. package/components/DuffelNGSView/DuffelNGSView.d.ts +0 -14
  52. package/components/DuffelNGSView/FilterControl.d.ts +0 -20
  53. package/components/DuffelNGSView/FilterControls.d.ts +0 -13
  54. package/components/DuffelNGSView/NGSShelfInfoCard.d.ts +0 -7
  55. package/components/DuffelNGSView/NGSSliceFareCard.d.ts +0 -10
  56. package/components/DuffelNGSView/NGSTable.d.ts +0 -15
  57. package/components/DuffelNGSView/SliceSummary.d.ts +0 -7
  58. package/components/DuffelNGSView/SortingControl.d.ts +0 -23
  59. package/components/DuffelNGSView/StopsSelector.d.ts +0 -8
  60. package/components/DuffelNGSView/TimeRangeSelector.d.ts +0 -8
  61. package/components/DuffelNGSView/lib/deduplicate-mapped-offers-by-fare-brand.d.ts +0 -7
  62. package/components/DuffelNGSView/lib/does-slice-have-mixed-cabins.d.ts +0 -4
  63. package/components/DuffelNGSView/lib/filter-results.d.ts +0 -14
  64. package/components/DuffelNGSView/lib/get-initial-filter-values.d.ts +0 -4
  65. package/components/DuffelNGSView/lib/get-max-baggages-for-offer-slice.d.ts +0 -8
  66. package/components/DuffelNGSView/lib/getAirlines.d.ts +0 -4
  67. package/components/DuffelNGSView/lib/group-offers-for-ngs-view.d.ts +0 -6
  68. package/components/DuffelNGSView/lib/index.d.ts +0 -14
  69. package/components/DuffelNGSView/lib/sort-ngs-rows-by-duration.d.ts +0 -5
  70. package/components/DuffelNGSView/lib/sort-ngs-rows-by-recommended.d.ts +0 -2
  71. package/components/DuffelNGSView/lib/sort-ngs-rows-by-shelf-price.d.ts +0 -6
  72. package/components/DuffelNGSView/lib/useFilters.d.ts +0 -28
  73. package/components/DuffelPayments/DuffelPayments.d.ts +0 -11
  74. package/components/DuffelPayments/DuffelPaymentsCustomElement.d.ts +0 -13
  75. package/components/MapboxPlacesLookup/MapboxPlacesLookup.d.ts +0 -12
  76. package/components/MapboxPlacesLookup/MapboxPlacesLookupCustomElement.d.ts +0 -13
  77. package/components/MapboxPlacesLookup/lib/getPlacesFromMapboxClient.d.ts +0 -7
  78. package/components/OfferSlice/OfferSlice.d.ts +0 -7
  79. package/components/OfferSlice/OfferSliceConditions.d.ts +0 -7
  80. package/components/OfferSlice/OfferSliceDetailItem.d.ts +0 -7
  81. package/components/OfferSlice/OfferSliceDetailLayoverItem.d.ts +0 -8
  82. package/components/OfferSlice/OfferSliceDetailTravelItem.d.ts +0 -9
  83. package/components/OfferSlice/lib/getHighlightStyles.d.ts +0 -7
  84. package/components/OfferSliceModal/OfferSliceModal.d.ts +0 -7
  85. package/components/PlacesLookup/PlacesLookup.d.ts +0 -20
  86. package/components/Stays/StaysAmenities.d.ts +0 -9
  87. package/components/Stays/StaysAmenitiesCustomElement.d.ts +0 -12
  88. package/components/Stays/StaysCancellationTimeline/Policy.d.ts +0 -8
  89. package/components/Stays/StaysCancellationTimeline/StaysCancellationTimeline.d.ts +0 -12
  90. package/components/Stays/StaysCancellationTimeline/StaysCancellationTimelineDeposit.d.ts +0 -12
  91. package/components/Stays/StaysCancellationTimeline/StaysCancellationTimelineGuarantee.d.ts +0 -12
  92. package/components/Stays/StaysCancellationTimeline/StaysCancellationTimelinePayNow.d.ts +0 -12
  93. package/components/Stays/StaysCancellationTimeline/TimelineItem.d.ts +0 -15
  94. package/components/Stays/StaysCancellationTimeline/lib/isTimezoneDate.d.ts +0 -4
  95. package/components/Stays/StaysCancellationTimeline/lib/renderTimelineDateTime.d.ts +0 -1
  96. package/components/Stays/StaysRating.d.ts +0 -6
  97. package/components/Stays/StaysRatingCustomElement.d.ts +0 -14
  98. package/components/Stays/StaysRoomRateCard.d.ts +0 -13
  99. package/components/Stays/StaysRoomRateCardCustomElement.d.ts +0 -14
  100. package/components/Stays/StaysSummary.d.ts +0 -12
  101. package/components/Stays/StaysSummaryCustomElement.d.ts +0 -12
  102. package/components/Stays/lib/getRateLabel.d.ts +0 -2
  103. package/components/Stays/lib/types.d.ts +0 -29
  104. package/components/shared/AirlineLogo.d.ts +0 -8
  105. package/components/shared/AnimatedLoaderEllipsis.d.ts +0 -2
  106. package/components/shared/Button.d.ts +0 -23
  107. package/components/shared/Card.d.ts +0 -14
  108. package/components/shared/ErrorBoundary.d.ts +0 -13
  109. package/components/shared/FetchOfferErrorState.d.ts +0 -5
  110. package/components/shared/HSpace.d.ts +0 -28
  111. package/components/shared/Icon.d.ts +0 -98
  112. package/components/shared/IconButton.d.ts +0 -16
  113. package/components/shared/Modal.d.ts +0 -14
  114. package/components/shared/NonIdealState.d.ts +0 -4
  115. package/components/shared/RadioButton.d.ts +0 -7
  116. package/components/shared/SliceCarriersTitle.d.ts +0 -8
  117. package/components/shared/Stamp.d.ts +0 -7
  118. package/components/shared/Tabs.d.ts +0 -16
  119. package/components/shared/VSpace.d.ts +0 -14
  120. package/components/shared/WithComponentStyles.d.ts +0 -7
  121. package/custom-elements.d.ts +0 -12
  122. package/custom-elements.js +0 -70
  123. package/custom-elements.js.map +0 -7
  124. package/fixtures/offer-requests/orq_duplicates.d.ts +0 -2
  125. package/fixtures/passengers/mock_passengers.d.ts +0 -4
  126. package/functions/createThreeDSecureSession/client.d.ts +0 -43
  127. package/functions/createThreeDSecureSession/createThreeDSecureSession.d.ts +0 -25
  128. package/functions/createThreeDSecureSession/initEvervault.d.ts +0 -1
  129. package/functions/createThreeDSecureSession/loadEvervaultScript.d.ts +0 -1
  130. package/functions/hasService.d.ts +0 -3
  131. package/functions.d.ts +0 -10
  132. package/index.d.ts +0 -19
  133. package/index.js +0 -55
  134. package/index.js.map +0 -7
  135. package/lib/captureErrorInSentry.d.ts +0 -1
  136. package/lib/colors.d.ts +0 -31
  137. package/lib/compileCreateOrderPayload.d.ts +0 -13
  138. package/lib/convertDurationToString.d.ts +0 -1
  139. package/lib/createPriceFormatters.d.ts +0 -12
  140. package/lib/fetchFromDuffelAPI.d.ts +0 -8
  141. package/lib/fetchFromFixtures.d.ts +0 -3
  142. package/lib/formatAvailableServices.d.ts +0 -12
  143. package/lib/formatDate.d.ts +0 -2
  144. package/lib/formatSeatMaps.d.ts +0 -4
  145. package/lib/getAirlinesText.d.ts +0 -2
  146. package/lib/getBaggageServiceDescription.d.ts +0 -2
  147. package/lib/getCabinsForSegmentAndDeck.d.ts +0 -3
  148. package/lib/getCarriers.d.ts +0 -6
  149. package/lib/getCurrencyForSeatMaps.d.ts +0 -10
  150. package/lib/getCurrencyForServices.d.ts +0 -11
  151. package/lib/getDateObject.d.ts +0 -10
  152. package/lib/getDateString.d.ts +0 -73
  153. package/lib/getDayDiff.d.ts +0 -5
  154. package/lib/getDurationString.d.ts +0 -1
  155. package/lib/getFareBrandName.d.ts +0 -2
  156. package/lib/getFirstSeatElementMatchingCriteria.d.ts +0 -4
  157. package/lib/getLayoverOriginDestinationKey.d.ts +0 -1
  158. package/lib/getPassengerBySegmentList.d.ts +0 -7
  159. package/lib/getPassengerInitials.d.ts +0 -1
  160. package/lib/getPassengerMapById.d.ts +0 -4
  161. package/lib/getPassengerName.d.ts +0 -2
  162. package/lib/getRowNumber.d.ts +0 -2
  163. package/lib/getSegmentDates.d.ts +0 -5
  164. package/lib/getSegmentFlightNumber.d.ts +0 -2
  165. package/lib/getSegmentList.d.ts +0 -3
  166. package/lib/getServicePriceMapById.d.ts +0 -4
  167. package/lib/getSliceDetails.d.ts +0 -3
  168. package/lib/getSymbols.d.ts +0 -2
  169. package/lib/getTimeString.d.ts +0 -1
  170. package/lib/getTotalAmountForServices.d.ts +0 -4
  171. package/lib/getTotalQuantity.d.ts +0 -2
  172. package/lib/getTravelItem.d.ts +0 -3
  173. package/lib/hasAvailableSeatService.d.ts +0 -3
  174. package/lib/hasBaggageServiceOfSameMetadataTypeAlreadyBeenSelected.d.ts +0 -4
  175. package/lib/hasHighLuminance.d.ts +0 -1
  176. package/lib/hasService.d.ts +0 -2
  177. package/lib/hasWings.d.ts +0 -2
  178. package/lib/isAmenityElement.d.ts +0 -3
  179. package/lib/isBaggageService.d.ts +0 -3
  180. package/lib/isCancelForAnyReasonService.d.ts +0 -3
  181. package/lib/isFixtureOfferId.d.ts +0 -2
  182. package/lib/isISO8601Duration.d.ts +0 -2
  183. package/lib/isPayloadComplete.d.ts +0 -3
  184. package/lib/isSeatElement.d.ts +0 -3
  185. package/lib/isValidDateString.d.ts +0 -6
  186. package/lib/logging.d.ts +0 -46
  187. package/lib/moneyStringFormatter.d.ts +0 -8
  188. package/lib/offerIsExpired.d.ts +0 -2
  189. package/lib/retrieveOffer.d.ts +0 -3
  190. package/lib/retrieveOfferFromDuffelAPI.d.ts +0 -1
  191. package/lib/retrieveSeatMaps.d.ts +0 -3
  192. package/lib/retrieveSeatMapsFromDuffelAPI.d.ts +0 -1
  193. package/lib/setBodyScrollability.d.ts +0 -1
  194. package/lib/toUTCDate.d.ts +0 -1
  195. package/lib/validateProps.d.ts +0 -7
  196. package/lib/withPlural.d.ts +0 -1
  197. package/stories/AirlineLogo.stories.d.ts +0 -3
  198. package/stories/AirlineSelector.stories.d.ts +0 -3
  199. package/stories/BaggageSelectionModalHeader.stories.d.ts +0 -6
  200. package/stories/Button.stories.d.ts +0 -15
  201. package/stories/DuffelAncillaries.stories.d.ts +0 -24
  202. package/stories/DuffelCardForm.stories.d.ts +0 -7
  203. package/stories/DuffelNGSView.stories.d.ts +0 -8
  204. package/stories/DuffelPayments.stories.d.ts +0 -7
  205. package/stories/Icon.stories.d.ts +0 -3
  206. package/stories/IconButton.stories.d.ts +0 -8
  207. package/stories/MapboxPlacesLookup.stories.d.ts +0 -5
  208. package/stories/NGSShelfInfoCard.stories.d.ts +0 -3
  209. package/stories/NGSSliceFareCard.stories.d.ts +0 -3
  210. package/stories/OfferSlice.stories.d.ts +0 -5
  211. package/stories/OfferSliceModal.stories.d.ts +0 -6
  212. package/stories/PlacesLookup.stories.d.ts +0 -3
  213. package/stories/SeatMap.stories.d.ts +0 -4
  214. package/stories/SliceCarriersTitle.stories.d.ts +0 -10
  215. package/stories/SliceSummary.stories.d.ts +0 -5
  216. package/stories/StaysAmenities.stories.d.ts +0 -10
  217. package/stories/StaysCancellationTimeline.stories.d.ts +0 -122
  218. package/stories/StaysRating.stories.d.ts +0 -16
  219. package/stories/StaysRoomRateCard.stories.d.ts +0 -141
  220. package/stories/StaysSummary.stories.d.ts +0 -47
  221. package/tests/components/DuffelAncillaries.test.d.ts +0 -1
  222. package/tests/functions/createThreeDSecureSession.test.d.ts +0 -1
  223. package/tests/lib/convertDurationToString.test.d.ts +0 -1
  224. package/tests/lib/createPriceFormatters.test.d.ts +0 -1
  225. package/tests/lib/formatAvailableServices.test.d.ts +0 -1
  226. package/tests/lib/formatSeatMaps.test.d.ts +0 -1
  227. package/tests/lib/getAirlines.test.d.ts +0 -1
  228. package/tests/lib/getAirlinesText.test.d.ts +0 -1
  229. package/tests/lib/getCarriers.test.d.ts +0 -1
  230. package/tests/lib/getCurrencyForServices.test.d.ts +0 -1
  231. package/tests/lib/getDateObject.test.d.ts +0 -1
  232. package/tests/lib/getDateString.spec.d.ts +0 -1
  233. package/tests/lib/getDayDiff.test.d.ts +0 -1
  234. package/tests/lib/getDurationString.test.d.ts +0 -1
  235. package/tests/lib/getFareBrandName.test.d.ts +0 -1
  236. package/tests/lib/getLayoverOriginDestinationKey.test.d.ts +0 -1
  237. package/tests/lib/getRateLabel.spec.d.ts +0 -1
  238. package/tests/lib/getSegmentDates.d.ts +0 -1
  239. package/tests/lib/getSegmentDates.test.d.ts +0 -1
  240. package/tests/lib/getSegmentFlightNumber.test.d.ts +0 -1
  241. package/tests/lib/getSliceDetails.test.d.ts +0 -1
  242. package/tests/lib/getTimeString.test.d.ts +0 -1
  243. package/tests/lib/getTravelItem.test.d.ts +0 -1
  244. package/tests/lib/groupOffersForNGSView.test.d.ts +0 -1
  245. package/tests/lib/hasAvailableSeatService.test.d.ts +0 -1
  246. package/tests/lib/hasBaggageServiceOfSameMetadataTypeAlreadyBeenSelected.test.d.ts +0 -1
  247. package/tests/lib/isValidDateString.test.d.ts +0 -1
  248. package/tests/lib/logging.test.d.ts +0 -1
  249. package/tests/lib/moneyStringFormatter.test.d.ts +0 -1
  250. package/tests/lib/toUTCDate.test.d.ts +0 -1
  251. package/tests/lib/validateProps.test.d.ts +0 -5
  252. package/tsconfig.tsbuildinfo +0 -1
  253. package/types/CurrencyConversion.d.ts +0 -10
  254. package/types/DuffelAncillariesProps.d.ts +0 -115
  255. package/types/TravelDetails.d.ts +0 -77
  256. package/types/index.d.ts +0 -4
@@ -1,5 +0,0 @@
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;
@@ -1,3 +0,0 @@
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;
@@ -1,3 +0,0 @@
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;
@@ -1,5 +0,0 @@
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;
@@ -1,6 +0,0 @@
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;
@@ -1,3 +0,0 @@
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;
@@ -1,4 +0,0 @@
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;
@@ -1,10 +0,0 @@
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;
@@ -1,5 +0,0 @@
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;
@@ -1,10 +0,0 @@
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
- };
@@ -1,122 +0,0 @@
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
- };
@@ -1,16 +0,0 @@
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
- };
@@ -1,141 +0,0 @@
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
- };
@@ -1,47 +0,0 @@
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
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,5 +0,0 @@
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 {};