@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.
- package/components/DuffelAncillaries/Counter.d.ts +10 -0
- package/components/DuffelAncillaries/DuffelAncillaries.d.ts +3 -0
- package/components/DuffelAncillaries/DuffelAncillariesCustomElement.d.ts +12 -0
- package/components/DuffelAncillaries/bags/BaggageSelectionCard.d.ts +12 -0
- package/components/DuffelAncillaries/bags/BaggageSelectionController.d.ts +14 -0
- package/components/DuffelAncillaries/bags/BaggageSelectionModal.d.ts +12 -0
- package/components/DuffelAncillaries/bags/BaggageSelectionModalBody.d.ts +12 -0
- package/components/DuffelAncillaries/bags/BaggageSelectionModalBodyPassenger.d.ts +14 -0
- package/components/DuffelAncillaries/bags/BaggageSelectionModalFooter.d.ts +15 -0
- package/components/DuffelAncillaries/bags/BaggageSelectionModalHeader.d.ts +10 -0
- package/components/DuffelAncillaries/bags/IncludedBaggageBanner.d.ts +8 -0
- package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionCard.d.ts +11 -0
- package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModal.d.ts +12 -0
- package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalBody.d.ts +8 -0
- package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalBodyListItem.d.ts +4 -0
- package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalFooter.d.ts +12 -0
- package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalHeader.d.ts +2 -0
- package/components/DuffelAncillaries/seats/Amenity.d.ts +7 -0
- package/components/DuffelAncillaries/seats/DeckSelect.d.ts +15 -0
- package/components/DuffelAncillaries/seats/Element.d.ts +16 -0
- package/components/DuffelAncillaries/seats/EmptyElement.d.ts +2 -0
- package/components/DuffelAncillaries/seats/ExitElement.d.ts +6 -0
- package/components/DuffelAncillaries/seats/Legend.d.ts +13 -0
- package/components/DuffelAncillaries/seats/Row.d.ts +14 -0
- package/components/DuffelAncillaries/seats/RowSection.d.ts +18 -0
- package/components/DuffelAncillaries/seats/SeatElement.d.ts +14 -0
- package/components/DuffelAncillaries/seats/SeatInfo.d.ts +8 -0
- package/components/DuffelAncillaries/seats/SeatMap.d.ts +13 -0
- package/components/DuffelAncillaries/seats/SeatMapUnavailable.d.ts +2 -0
- package/components/DuffelAncillaries/seats/SeatSelectionCard.d.ts +13 -0
- package/components/DuffelAncillaries/seats/SeatSelectionModal.d.ts +15 -0
- package/components/DuffelAncillaries/seats/SeatSelectionModalBody.d.ts +4 -0
- package/components/DuffelAncillaries/seats/SeatSelectionModalFooter.d.ts +16 -0
- package/components/DuffelAncillaries/seats/SeatSelectionModalHeader.d.ts +11 -0
- package/components/DuffelAncillaries/seats/SeatUnavailable.d.ts +6 -0
- package/components/DuffelCardForm/DuffelCardForm.d.ts +4 -0
- package/components/DuffelCardForm/DuffelCardFormCustomElement.d.ts +34 -0
- package/components/DuffelCardForm/lib/getIFrameEventListener.d.ts +7 -0
- package/components/DuffelCardForm/lib/getIFrameOriginForEnvironment.d.ts +2 -0
- package/components/DuffelCardForm/lib/getIframeURL.d.ts +2 -0
- package/components/DuffelCardForm/lib/getPathnameForIntent.d.ts +2 -0
- package/components/DuffelCardForm/lib/getTokenFromClientKey.d.ts +1 -0
- package/components/DuffelCardForm/lib/postMessageToCreateCardForTemporaryUse.d.ts +1 -0
- package/components/DuffelCardForm/lib/postMessageToSaveCard.d.ts +1 -0
- package/components/DuffelCardForm/lib/postMessageWithStyles.d.ts +2 -0
- package/components/DuffelCardForm/lib/types.d.ts +154 -0
- package/components/DuffelCardForm/lib/useDuffelCardFormActions.d.ts +24 -0
- package/components/DuffelNGSView/AirlineSelector.d.ts +10 -0
- package/components/DuffelNGSView/DuffelNGSView.d.ts +14 -0
- package/components/DuffelNGSView/FilterControl.d.ts +20 -0
- package/components/DuffelNGSView/FilterControls.d.ts +13 -0
- package/components/DuffelNGSView/NGSShelfInfoCard.d.ts +7 -0
- package/components/DuffelNGSView/NGSSliceFareCard.d.ts +10 -0
- package/components/DuffelNGSView/NGSTable.d.ts +15 -0
- package/components/DuffelNGSView/SliceSummary.d.ts +7 -0
- package/components/DuffelNGSView/SortingControl.d.ts +23 -0
- package/components/DuffelNGSView/StopsSelector.d.ts +8 -0
- package/components/DuffelNGSView/TimeRangeSelector.d.ts +8 -0
- package/components/DuffelNGSView/lib/deduplicate-mapped-offers-by-fare-brand.d.ts +7 -0
- package/components/DuffelNGSView/lib/does-slice-have-mixed-cabins.d.ts +4 -0
- package/components/DuffelNGSView/lib/filter-results.d.ts +14 -0
- package/components/DuffelNGSView/lib/get-initial-filter-values.d.ts +4 -0
- package/components/DuffelNGSView/lib/get-max-baggages-for-offer-slice.d.ts +8 -0
- package/components/DuffelNGSView/lib/getAirlines.d.ts +4 -0
- package/components/DuffelNGSView/lib/group-offers-for-ngs-view.d.ts +6 -0
- package/components/DuffelNGSView/lib/index.d.ts +14 -0
- package/components/DuffelNGSView/lib/sort-ngs-rows-by-duration.d.ts +5 -0
- package/components/DuffelNGSView/lib/sort-ngs-rows-by-recommended.d.ts +2 -0
- package/components/DuffelNGSView/lib/sort-ngs-rows-by-shelf-price.d.ts +6 -0
- package/components/DuffelNGSView/lib/useFilters.d.ts +28 -0
- package/components/DuffelPayments/DuffelPayments.d.ts +11 -0
- package/components/DuffelPayments/DuffelPaymentsCustomElement.d.ts +13 -0
- package/components/MapboxPlacesLookup/MapboxPlacesLookup.d.ts +12 -0
- package/components/MapboxPlacesLookup/MapboxPlacesLookupCustomElement.d.ts +13 -0
- package/components/MapboxPlacesLookup/lib/getPlacesFromMapboxClient.d.ts +7 -0
- package/components/OfferSlice/OfferSlice.d.ts +7 -0
- package/components/OfferSlice/OfferSliceConditions.d.ts +7 -0
- package/components/OfferSlice/OfferSliceDetailItem.d.ts +7 -0
- package/components/OfferSlice/OfferSliceDetailLayoverItem.d.ts +8 -0
- package/components/OfferSlice/OfferSliceDetailTravelItem.d.ts +9 -0
- package/components/OfferSlice/lib/getHighlightStyles.d.ts +7 -0
- package/components/OfferSliceModal/OfferSliceModal.d.ts +7 -0
- package/components/PlacesLookup/PlacesLookup.d.ts +20 -0
- package/components/Stays/StaysAmenities.d.ts +9 -0
- package/components/Stays/StaysAmenitiesCustomElement.d.ts +12 -0
- package/components/Stays/StaysCancellationTimeline/Policy.d.ts +8 -0
- package/components/Stays/StaysCancellationTimeline/StaysCancellationTimeline.d.ts +12 -0
- package/components/Stays/StaysCancellationTimeline/StaysCancellationTimelineDeposit.d.ts +12 -0
- package/components/Stays/StaysCancellationTimeline/StaysCancellationTimelineGuarantee.d.ts +12 -0
- package/components/Stays/StaysCancellationTimeline/StaysCancellationTimelinePayNow.d.ts +12 -0
- package/components/Stays/StaysCancellationTimeline/TimelineItem.d.ts +15 -0
- package/components/Stays/StaysCancellationTimeline/lib/isTimezoneDate.d.ts +4 -0
- package/components/Stays/StaysCancellationTimeline/lib/renderTimelineDateTime.d.ts +1 -0
- package/components/Stays/StaysRating.d.ts +6 -0
- package/components/Stays/StaysRatingCustomElement.d.ts +14 -0
- package/components/Stays/StaysRoomRateCard.d.ts +13 -0
- package/components/Stays/StaysRoomRateCardCustomElement.d.ts +14 -0
- package/components/Stays/StaysSummary.d.ts +12 -0
- package/components/Stays/StaysSummaryCustomElement.d.ts +12 -0
- package/components/Stays/lib/getRateLabel.d.ts +2 -0
- package/components/Stays/lib/types.d.ts +29 -0
- package/components/shared/AirlineLogo.d.ts +8 -0
- package/components/shared/AnimatedLoaderEllipsis.d.ts +2 -0
- package/components/shared/Button.d.ts +23 -0
- package/components/shared/Card.d.ts +14 -0
- package/components/shared/ErrorBoundary.d.ts +13 -0
- package/components/shared/FetchOfferErrorState.d.ts +5 -0
- package/components/shared/HSpace.d.ts +28 -0
- package/components/shared/Icon.d.ts +98 -0
- package/components/shared/IconButton.d.ts +16 -0
- package/components/shared/Modal.d.ts +14 -0
- package/components/shared/NonIdealState.d.ts +4 -0
- package/components/shared/RadioButton.d.ts +7 -0
- package/components/shared/SliceCarriersTitle.d.ts +8 -0
- package/components/shared/Stamp.d.ts +7 -0
- package/components/shared/Tabs.d.ts +16 -0
- package/components/shared/VSpace.d.ts +14 -0
- package/components/shared/WithComponentStyles.d.ts +7 -0
- package/custom-elements.d.ts +12 -0
- package/custom-elements.js +70 -0
- package/custom-elements.js.map +7 -0
- package/fixtures/offer-requests/orq_duplicates.d.ts +2 -0
- package/fixtures/passengers/mock_passengers.d.ts +4 -0
- package/functions/createThreeDSecureSession/client.d.ts +43 -0
- package/functions/createThreeDSecureSession/createThreeDSecureSession.d.ts +25 -0
- package/functions/createThreeDSecureSession/initEvervault.d.ts +1 -0
- package/functions/createThreeDSecureSession/loadEvervaultScript.d.ts +1 -0
- package/functions/hasService.d.ts +3 -0
- package/functions.d.ts +10 -0
- package/index.d.ts +19 -0
- package/index.js +55 -0
- package/index.js.map +7 -0
- package/lib/captureErrorInSentry.d.ts +1 -0
- package/lib/colors.d.ts +31 -0
- package/lib/compileCreateOrderPayload.d.ts +13 -0
- package/lib/convertDurationToString.d.ts +1 -0
- package/lib/createPriceFormatters.d.ts +12 -0
- package/lib/fetchFromDuffelAPI.d.ts +8 -0
- package/lib/fetchFromFixtures.d.ts +3 -0
- package/lib/formatAvailableServices.d.ts +12 -0
- package/lib/formatDate.d.ts +2 -0
- package/lib/formatSeatMaps.d.ts +4 -0
- package/lib/getAirlinesText.d.ts +2 -0
- package/lib/getBaggageServiceDescription.d.ts +2 -0
- package/lib/getCabinsForSegmentAndDeck.d.ts +3 -0
- package/lib/getCarriers.d.ts +6 -0
- package/lib/getCurrencyForSeatMaps.d.ts +10 -0
- package/lib/getCurrencyForServices.d.ts +11 -0
- package/lib/getDateObject.d.ts +10 -0
- package/lib/getDateString.d.ts +73 -0
- package/lib/getDayDiff.d.ts +5 -0
- package/lib/getDurationString.d.ts +1 -0
- package/lib/getFareBrandName.d.ts +2 -0
- package/lib/getFirstSeatElementMatchingCriteria.d.ts +4 -0
- package/lib/getLayoverOriginDestinationKey.d.ts +1 -0
- package/lib/getPassengerBySegmentList.d.ts +7 -0
- package/lib/getPassengerInitials.d.ts +1 -0
- package/lib/getPassengerMapById.d.ts +4 -0
- package/lib/getPassengerName.d.ts +2 -0
- package/lib/getRowNumber.d.ts +2 -0
- package/lib/getSegmentDates.d.ts +5 -0
- package/lib/getSegmentFlightNumber.d.ts +2 -0
- package/lib/getSegmentList.d.ts +3 -0
- package/lib/getServicePriceMapById.d.ts +4 -0
- package/lib/getSliceDetails.d.ts +3 -0
- package/lib/getSymbols.d.ts +2 -0
- package/lib/getTimeString.d.ts +1 -0
- package/lib/getTotalAmountForServices.d.ts +4 -0
- package/lib/getTotalQuantity.d.ts +2 -0
- package/lib/getTravelItem.d.ts +3 -0
- package/lib/hasAvailableSeatService.d.ts +3 -0
- package/lib/hasBaggageServiceOfSameMetadataTypeAlreadyBeenSelected.d.ts +4 -0
- package/lib/hasHighLuminance.d.ts +1 -0
- package/lib/hasService.d.ts +2 -0
- package/lib/hasWings.d.ts +2 -0
- package/lib/isAmenityElement.d.ts +3 -0
- package/lib/isBaggageService.d.ts +3 -0
- package/lib/isCancelForAnyReasonService.d.ts +3 -0
- package/lib/isFixtureOfferId.d.ts +2 -0
- package/lib/isISO8601Duration.d.ts +2 -0
- package/lib/isPayloadComplete.d.ts +3 -0
- package/lib/isSeatElement.d.ts +3 -0
- package/lib/isValidDateString.d.ts +6 -0
- package/lib/logging.d.ts +46 -0
- package/lib/moneyStringFormatter.d.ts +8 -0
- package/lib/offerIsExpired.d.ts +2 -0
- package/lib/retrieveOffer.d.ts +3 -0
- package/lib/retrieveOfferFromDuffelAPI.d.ts +1 -0
- package/lib/retrieveSeatMaps.d.ts +3 -0
- package/lib/retrieveSeatMapsFromDuffelAPI.d.ts +1 -0
- package/lib/setBodyScrollability.d.ts +1 -0
- package/lib/toUTCDate.d.ts +1 -0
- package/lib/validateProps.d.ts +7 -0
- package/lib/withPlural.d.ts +1 -0
- package/package.json +1 -1
- package/stories/AirlineLogo.stories.d.ts +3 -0
- package/stories/AirlineSelector.stories.d.ts +3 -0
- package/stories/BaggageSelectionModalHeader.stories.d.ts +6 -0
- package/stories/Button.stories.d.ts +15 -0
- package/stories/DuffelAncillaries.stories.d.ts +24 -0
- package/stories/DuffelCardForm.stories.d.ts +7 -0
- package/stories/DuffelNGSView.stories.d.ts +8 -0
- package/stories/DuffelPayments.stories.d.ts +7 -0
- package/stories/Icon.stories.d.ts +3 -0
- package/stories/IconButton.stories.d.ts +8 -0
- package/stories/MapboxPlacesLookup.stories.d.ts +5 -0
- package/stories/NGSShelfInfoCard.stories.d.ts +3 -0
- package/stories/NGSSliceFareCard.stories.d.ts +3 -0
- package/stories/OfferSlice.stories.d.ts +5 -0
- package/stories/OfferSliceModal.stories.d.ts +6 -0
- package/stories/PlacesLookup.stories.d.ts +3 -0
- package/stories/SeatMap.stories.d.ts +4 -0
- package/stories/SliceCarriersTitle.stories.d.ts +10 -0
- package/stories/SliceSummary.stories.d.ts +5 -0
- package/stories/StaysAmenities.stories.d.ts +10 -0
- package/stories/StaysCancellationTimeline.stories.d.ts +122 -0
- package/stories/StaysRating.stories.d.ts +16 -0
- package/stories/StaysRoomRateCard.stories.d.ts +141 -0
- package/stories/StaysSummary.stories.d.ts +47 -0
- package/tests/components/DuffelAncillaries.test.d.ts +1 -0
- package/tests/functions/createThreeDSecureSession.test.d.ts +1 -0
- package/tests/lib/convertDurationToString.test.d.ts +1 -0
- package/tests/lib/createPriceFormatters.test.d.ts +1 -0
- package/tests/lib/formatAvailableServices.test.d.ts +1 -0
- package/tests/lib/formatSeatMaps.test.d.ts +1 -0
- package/tests/lib/getAirlines.test.d.ts +1 -0
- package/tests/lib/getAirlinesText.test.d.ts +1 -0
- package/tests/lib/getCarriers.test.d.ts +1 -0
- package/tests/lib/getCurrencyForServices.test.d.ts +1 -0
- package/tests/lib/getDateObject.test.d.ts +1 -0
- package/tests/lib/getDateString.spec.d.ts +1 -0
- package/tests/lib/getDayDiff.test.d.ts +1 -0
- package/tests/lib/getDurationString.test.d.ts +1 -0
- package/tests/lib/getFareBrandName.test.d.ts +1 -0
- package/tests/lib/getLayoverOriginDestinationKey.test.d.ts +1 -0
- package/tests/lib/getRateLabel.spec.d.ts +1 -0
- package/tests/lib/getSegmentDates.d.ts +1 -0
- package/tests/lib/getSegmentDates.test.d.ts +1 -0
- package/tests/lib/getSegmentFlightNumber.test.d.ts +1 -0
- package/tests/lib/getSliceDetails.test.d.ts +1 -0
- package/tests/lib/getTimeString.test.d.ts +1 -0
- package/tests/lib/getTravelItem.test.d.ts +1 -0
- package/tests/lib/groupOffersForNGSView.test.d.ts +1 -0
- package/tests/lib/hasAvailableSeatService.test.d.ts +1 -0
- package/tests/lib/hasBaggageServiceOfSameMetadataTypeAlreadyBeenSelected.test.d.ts +1 -0
- package/tests/lib/isValidDateString.test.d.ts +1 -0
- package/tests/lib/logging.test.d.ts +1 -0
- package/tests/lib/moneyStringFormatter.test.d.ts +1 -0
- package/tests/lib/toUTCDate.test.d.ts +1 -0
- package/tests/lib/validateProps.test.d.ts +5 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/types/CurrencyConversion.d.ts +10 -0
- package/types/DuffelAncillariesProps.d.ts +127 -0
- package/types/TravelDetails.d.ts +77 -0
- 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,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,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 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|