@duffel/components 2.7.20 → 3.0.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.
- package/.circleci/config.yml +67 -0
- package/.eslintrc.js +47 -0
- package/.github/renovate.json +16 -0
- package/.github/workflows/autoapprove.yml +18 -0
- package/.github/workflows/release.yml +89 -0
- package/.husky/post-commit +4 -0
- package/.husky/pre-commit +4 -0
- package/.nvmrc +1 -0
- package/.prettierignore +2 -0
- package/.storybook/Storyshots.test.js +3 -0
- package/.storybook/__snapshots__/Storyshots.test.js.snap +48318 -0
- package/.storybook/main.ts +33 -0
- package/.storybook/preview.tsx +28 -0
- package/.tool-versions +1 -0
- package/CONTRIBUTING.md +83 -0
- package/README.md +53 -15
- package/__mocks__/styleMock.js +6 -0
- package/babel.config.js +20 -0
- package/commitlint.config.js +4 -0
- package/config/esbuild.base.config.js +18 -0
- package/config/esbuild.cdn.config.js +51 -0
- package/config/esbuild.dev.config.js +46 -0
- package/config/esbuild.react.config.js +42 -0
- package/jest.config.ts +14 -0
- package/package.json +135 -193
- package/react-dist/components/DuffelAncillaries/Card.d.ts +14 -0
- package/react-dist/components/DuffelAncillaries/Counter.d.ts +10 -0
- package/react-dist/components/DuffelAncillaries/DuffelAncillaries.d.ts +3 -0
- package/react-dist/components/DuffelAncillaries/DuffelAncillariesCustomElement.d.ts +13 -0
- package/react-dist/components/DuffelAncillaries/bags/BaggageSelectionCard.d.ts +11 -0
- package/react-dist/components/DuffelAncillaries/bags/BaggageSelectionController.d.ts +13 -0
- package/react-dist/components/DuffelAncillaries/bags/BaggageSelectionModal.d.ts +11 -0
- package/react-dist/components/DuffelAncillaries/bags/BaggageSelectionModalBody.d.ts +11 -0
- package/react-dist/components/DuffelAncillaries/bags/BaggageSelectionModalBodyPassenger.d.ts +13 -0
- package/react-dist/components/DuffelAncillaries/bags/BaggageSelectionModalFooter.d.ts +14 -0
- package/react-dist/components/DuffelAncillaries/bags/BaggageSelectionModalHeader.d.ts +9 -0
- package/react-dist/components/DuffelAncillaries/bags/IncludedBaggageBanner.d.ts +7 -0
- package/react-dist/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionCard.d.ts +10 -0
- package/react-dist/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModal.d.ts +11 -0
- package/react-dist/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalBody.d.ts +7 -0
- package/react-dist/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalBodyListItem.d.ts +4 -0
- package/react-dist/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalFooter.d.ts +11 -0
- package/react-dist/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalHeader.d.ts +2 -0
- package/react-dist/components/DuffelAncillaries/seats/Amenity.d.ts +6 -0
- package/react-dist/components/DuffelAncillaries/seats/DeckSelect.d.ts +15 -0
- package/react-dist/components/DuffelAncillaries/seats/Element.d.ts +15 -0
- package/react-dist/components/DuffelAncillaries/seats/EmptyElement.d.ts +2 -0
- package/react-dist/components/DuffelAncillaries/seats/ExitElement.d.ts +6 -0
- package/react-dist/components/DuffelAncillaries/seats/Legend.d.ts +12 -0
- package/react-dist/components/DuffelAncillaries/seats/Row.d.ts +13 -0
- package/react-dist/components/DuffelAncillaries/seats/RowSection.d.ts +17 -0
- package/react-dist/components/DuffelAncillaries/seats/SeatElement.d.ts +13 -0
- package/react-dist/components/DuffelAncillaries/seats/SeatInfo.d.ts +7 -0
- package/react-dist/components/DuffelAncillaries/seats/SeatMap.d.ts +12 -0
- package/react-dist/components/DuffelAncillaries/seats/SeatMapUnavailable.d.ts +2 -0
- package/react-dist/components/DuffelAncillaries/seats/SeatSelectionCard.d.ts +13 -0
- package/react-dist/components/DuffelAncillaries/seats/SeatSelectionModal.d.ts +13 -0
- package/react-dist/components/DuffelAncillaries/seats/SeatSelectionModalBody.d.ts +4 -0
- package/react-dist/components/DuffelAncillaries/seats/SeatSelectionModalFooter.d.ts +16 -0
- package/react-dist/components/DuffelAncillaries/seats/SeatSelectionModalHeader.d.ts +10 -0
- package/react-dist/components/DuffelAncillaries/seats/SeatUnavailable.d.ts +5 -0
- package/react-dist/components/DuffelPayments/DuffelPayments.d.ts +11 -0
- package/react-dist/components/DuffelPayments/DuffelPaymentsCustomElement.d.ts +14 -0
- package/react-dist/components/shared/AnimatedLoaderEllipsis.d.ts +2 -0
- package/react-dist/components/shared/Button.d.ts +23 -0
- package/react-dist/components/shared/ErrorBoundary.d.ts +13 -0
- package/react-dist/components/shared/FetchOfferErrorState.d.ts +5 -0
- package/react-dist/components/shared/Icon.d.ts +44 -0
- package/react-dist/components/shared/IconButton.d.ts +16 -0
- package/react-dist/components/shared/Modal.d.ts +11 -0
- package/react-dist/components/shared/NonIdealState.d.ts +4 -0
- package/react-dist/components/shared/Stamp.d.ts +7 -0
- package/react-dist/components/shared/Tabs.d.ts +16 -0
- package/react-dist/custom-elements.d.ts +6 -0
- package/react-dist/custom-elements.js +37 -0
- package/react-dist/custom-elements.js.map +7 -0
- package/react-dist/index.d.ts +7 -0
- package/react-dist/index.js +37 -0
- package/react-dist/index.js.map +7 -0
- package/react-dist/lib/captureErrorInSentry.d.ts +1 -0
- package/react-dist/lib/compileCreateOrderPayload.d.ts +14 -0
- package/react-dist/lib/createPriceFormatters.d.ts +12 -0
- package/react-dist/lib/fetchFromDuffelAPI.d.ts +8 -0
- package/react-dist/lib/fetchFromFixtures.d.ts +4 -0
- package/react-dist/lib/formatAvailableServices.d.ts +12 -0
- package/react-dist/lib/formatDate.d.ts +2 -0
- package/react-dist/lib/formatSeatMaps.d.ts +4 -0
- package/react-dist/lib/getBaggageServiceDescription.d.ts +2 -0
- package/react-dist/lib/getCabinsForSegmentAndDeck.d.ts +2 -0
- package/react-dist/lib/getCurrencyForSeatMaps.d.ts +10 -0
- package/react-dist/lib/getCurrencyForServices.d.ts +11 -0
- package/react-dist/lib/getFirstSeatElementMatchingCriteria.d.ts +3 -0
- package/react-dist/lib/getPassengerBySegmentList.d.ts +6 -0
- package/react-dist/lib/getPassengerInitials.d.ts +1 -0
- package/react-dist/lib/getPassengerMapById.d.ts +3 -0
- package/react-dist/lib/getPassengerName.d.ts +3 -0
- package/react-dist/lib/getRowNumber.d.ts +2 -0
- package/react-dist/lib/getSegmentList.d.ts +2 -0
- package/react-dist/lib/getServicePriceMapById.d.ts +3 -0
- package/react-dist/lib/getSymbols.d.ts +2 -0
- package/react-dist/lib/getTotalAmountForServices.d.ts +6 -0
- package/react-dist/lib/getTotalQuantity.d.ts +2 -0
- package/react-dist/lib/hasService.d.ts +2 -0
- package/react-dist/lib/hasServiceOfSameMetadataTypeAlreadyBeenSelected.d.ts +3 -0
- package/react-dist/lib/hasWings.d.ts +2 -0
- package/react-dist/lib/isBaggageService.d.ts +2 -0
- package/react-dist/lib/isCancelForAnyReasonService.d.ts +2 -0
- package/react-dist/lib/isFixtureOfferId.d.ts +2 -0
- package/react-dist/lib/isPayloadComplete.d.ts +2 -0
- package/react-dist/lib/isSeatElement.d.ts +2 -0
- package/react-dist/lib/logging.d.ts +46 -0
- package/react-dist/lib/moneyStringFormatter.d.ts +8 -0
- package/react-dist/lib/offerIsExpired.d.ts +2 -0
- package/react-dist/lib/retrieveOffer.d.ts +2 -0
- package/react-dist/lib/retrieveOfferFromDuffelAPI.d.ts +1 -0
- package/react-dist/lib/retrieveSeatMaps.d.ts +2 -0
- package/react-dist/lib/retrieveSeatMapsFromDuffelAPI.d.ts +1 -0
- package/react-dist/lib/setBodyScrollability.d.ts +1 -0
- package/react-dist/lib/validateProps.d.ts +7 -0
- package/react-dist/lib/withPlural.d.ts +1 -0
- package/react-dist/types/Aircraft.d.ts +14 -0
- package/react-dist/types/Airline.d.ts +14 -0
- package/react-dist/types/Airport.d.ts +44 -0
- package/react-dist/types/City.d.ts +18 -0
- package/react-dist/types/CreateOrderPayload.d.ts +72 -0
- package/react-dist/types/CurrencyConversion.d.ts +10 -0
- package/react-dist/types/DuffelAncillariesProps.d.ts +70 -0
- package/react-dist/types/Offer.d.ts +711 -0
- package/react-dist/types/Order.d.ts +8 -0
- package/react-dist/types/Place.d.ts +8 -0
- package/react-dist/types/SeatMap.d.ts +190 -0
- package/react-dist/types/index.d.ts +11 -0
- package/scripts/generate-fixture.ts +200 -0
- package/scripts/upload-to-cdn.sh +34 -0
- package/scripts.tsconfig.json +11 -0
- package/src/components/DuffelAncillaries/Card.tsx +126 -0
- package/src/components/DuffelAncillaries/Counter.tsx +40 -0
- package/src/components/DuffelAncillaries/DuffelAncillaries.tsx +344 -0
- package/src/components/DuffelAncillaries/DuffelAncillariesCustomElement.tsx +124 -0
- package/src/components/DuffelAncillaries/bags/BaggageSelectionCard.tsx +96 -0
- package/src/components/DuffelAncillaries/bags/BaggageSelectionController.tsx +88 -0
- package/src/components/DuffelAncillaries/bags/BaggageSelectionModal.tsx +81 -0
- package/src/components/DuffelAncillaries/bags/BaggageSelectionModalBody.tsx +60 -0
- package/src/components/DuffelAncillaries/bags/BaggageSelectionModalBodyPassenger.tsx +122 -0
- package/src/components/DuffelAncillaries/bags/BaggageSelectionModalFooter.tsx +81 -0
- package/src/components/DuffelAncillaries/bags/BaggageSelectionModalHeader.tsx +76 -0
- package/src/components/DuffelAncillaries/bags/IncludedBaggageBanner.tsx +51 -0
- package/src/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionCard.tsx +90 -0
- package/src/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModal.tsx +63 -0
- package/src/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalBody.tsx +56 -0
- package/src/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalBodyListItem.tsx +11 -0
- package/src/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalFooter.tsx +74 -0
- package/src/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalHeader.tsx +9 -0
- package/src/components/DuffelAncillaries/seats/Amenity.tsx +21 -0
- package/src/components/DuffelAncillaries/seats/DeckSelect.tsx +27 -0
- package/src/components/DuffelAncillaries/seats/Element.tsx +52 -0
- package/src/components/DuffelAncillaries/seats/EmptyElement.tsx +5 -0
- package/src/components/DuffelAncillaries/seats/ExitElement.tsx +17 -0
- package/src/components/DuffelAncillaries/seats/Legend.tsx +60 -0
- package/src/components/DuffelAncillaries/seats/Row.tsx +47 -0
- package/src/components/DuffelAncillaries/seats/RowSection.tsx +78 -0
- package/src/components/DuffelAncillaries/seats/SeatElement.tsx +120 -0
- package/src/components/DuffelAncillaries/seats/SeatInfo.tsx +32 -0
- package/src/components/DuffelAncillaries/seats/SeatMap.tsx +81 -0
- package/src/components/DuffelAncillaries/seats/SeatMapUnavailable.tsx +21 -0
- package/src/components/DuffelAncillaries/seats/SeatSelectionCard.tsx +103 -0
- package/src/components/DuffelAncillaries/seats/SeatSelectionModal.tsx +142 -0
- package/src/components/DuffelAncillaries/seats/SeatSelectionModalBody.tsx +13 -0
- package/src/components/DuffelAncillaries/seats/SeatSelectionModalFooter.tsx +82 -0
- package/src/components/DuffelAncillaries/seats/SeatSelectionModalHeader.tsx +87 -0
- package/src/components/DuffelAncillaries/seats/SeatUnavailable.tsx +14 -0
- package/src/components/DuffelPayments/DuffelPayments.tsx +218 -0
- package/src/components/DuffelPayments/DuffelPaymentsCustomElement.tsx +130 -0
- package/src/components/shared/AnimatedLoaderEllipsis.tsx +5 -0
- package/src/components/shared/Button.tsx +63 -0
- package/src/components/shared/ErrorBoundary.tsx +54 -0
- package/src/components/shared/FetchOfferErrorState.tsx +35 -0
- package/src/components/shared/Icon.tsx +152 -0
- package/src/components/shared/IconButton.tsx +42 -0
- package/src/components/shared/Modal.tsx +40 -0
- package/src/components/shared/NonIdealState.tsx +28 -0
- package/src/components/shared/Stamp.tsx +29 -0
- package/src/components/shared/Tabs.tsx +36 -0
- package/src/custom-elements.ts +13 -0
- package/src/examples/client-side/README.md +30 -0
- package/src/examples/client-side/index.html +57 -0
- package/src/examples/full-stack/README.md +34 -0
- package/src/examples/full-stack/index.html +48 -0
- package/src/examples/full-stack/server.mjs +158 -0
- package/src/examples/just-typescript/README.md +37 -0
- package/src/examples/just-typescript/package.json +16 -0
- package/src/examples/just-typescript/src/index.html +23 -0
- package/src/examples/just-typescript/src/index.ts +36 -0
- package/src/examples/just-typescript/yarn.lock +154 -0
- package/src/examples/payments-custom-element/README.md +17 -0
- package/src/examples/payments-custom-element/index.html +43 -0
- package/src/examples/payments-just-typescript/README.md +37 -0
- package/src/examples/payments-just-typescript/package.json +16 -0
- package/src/examples/payments-just-typescript/src/index.html +23 -0
- package/src/examples/payments-just-typescript/src/index.ts +18 -0
- package/src/examples/payments-just-typescript/yarn.lock +154 -0
- package/src/examples/react-app/README.md +37 -0
- package/src/examples/react-app/package.json +20 -0
- package/src/examples/react-app/src/index.html +19 -0
- package/src/examples/react-app/src/index.tsx +48 -0
- package/src/examples/react-app/yarn.lock +219 -0
- package/src/fixtures/offers/off_0000AUde3KwTztSRK1cznH.json +497 -0
- package/src/fixtures/offers/off_0000AVx4lUFFKW8PsPeQeQ.json +307 -0
- package/src/fixtures/offers/off_1.json +497 -0
- package/src/fixtures/passengers/mock_passengers.ts +26 -0
- package/src/fixtures/seat-maps/off_0000AUde3KwTztSRK1cznH.json +6852 -0
- package/src/fixtures/seat-maps/off_0000AVx4lUFFKW8PsPeQeQ.json +1 -0
- package/src/fixtures/seat-maps/off_1.json +6852 -0
- package/src/index.ts +7 -0
- package/src/lib/captureErrorInSentry.ts +42 -0
- package/src/lib/compileCreateOrderPayload.ts +63 -0
- package/src/lib/createPriceFormatters.ts +73 -0
- package/src/lib/fetchFromDuffelAPI.ts +54 -0
- package/src/lib/fetchFromFixtures.ts +18 -0
- package/src/lib/formatAvailableServices.ts +91 -0
- package/src/lib/formatDate.ts +20 -0
- package/src/lib/formatSeatMaps.ts +81 -0
- package/src/lib/getBaggageServiceDescription.ts +42 -0
- package/src/lib/getCabinsForSegmentAndDeck.ts +4 -0
- package/src/lib/getCurrencyForSeatMaps.ts +22 -0
- package/src/lib/getCurrencyForServices.ts +24 -0
- package/src/lib/getFirstSeatElementMatchingCriteria.ts +22 -0
- package/src/lib/getPassengerBySegmentList.ts +10 -0
- package/src/lib/getPassengerInitials.ts +6 -0
- package/src/lib/getPassengerMapById.ts +17 -0
- package/src/lib/getPassengerName.ts +37 -0
- package/src/lib/getRowNumber.ts +16 -0
- package/src/lib/getSegmentList.ts +7 -0
- package/src/lib/getServicePriceMapById.ts +20 -0
- package/src/lib/getSymbols.ts +22 -0
- package/src/lib/getTotalAmountForServices.ts +72 -0
- package/src/lib/getTotalQuantity.ts +5 -0
- package/src/lib/hasService.ts +24 -0
- package/src/lib/hasServiceOfSameMetadataTypeAlreadyBeenSelected.ts +35 -0
- package/src/lib/hasWings.ts +8 -0
- package/src/lib/isBaggageService.ts +8 -0
- package/src/lib/isCancelForAnyReasonService.ts +9 -0
- package/src/lib/isFixtureOfferId.ts +4 -0
- package/src/lib/isPayloadComplete.ts +11 -0
- package/src/lib/isSeatElement.ts +10 -0
- package/src/lib/logging.ts +120 -0
- package/src/lib/moneyStringFormatter.ts +34 -0
- package/src/lib/offerIsExpired.ts +5 -0
- package/src/lib/retrieveOffer.ts +54 -0
- package/src/lib/retrieveOfferFromDuffelAPI.ts +13 -0
- package/src/lib/retrieveSeatMaps.ts +55 -0
- package/src/lib/retrieveSeatMapsFromDuffelAPI.ts +13 -0
- package/src/lib/setBodyScrollability.ts +7 -0
- package/src/lib/validateProps.ts +37 -0
- package/src/lib/withPlural.ts +8 -0
- package/src/stories/BaggageSelectionModalHeader.stories.tsx +21 -0
- package/src/stories/Button.stories.tsx +69 -0
- package/src/stories/DuffelAncillaries.stories.tsx +126 -0
- package/src/stories/DuffelPayments.stories.tsx +34 -0
- package/src/stories/Icon.stories.tsx +35 -0
- package/src/stories/IconButton.stories.tsx +25 -0
- package/src/styles/colors.css +22 -0
- package/src/styles/components/Amenity.css +23 -0
- package/src/styles/components/BaggageDisplay.css +25 -0
- package/src/styles/components/Button.css +161 -0
- package/src/styles/components/Card.css +52 -0
- package/src/styles/components/CfarSelectionModal.css +34 -0
- package/src/styles/components/Counter.css +18 -0
- package/src/styles/components/DuffelPayments.css +42 -0
- package/src/styles/components/IconButton.css +63 -0
- package/src/styles/components/Legend.css +58 -0
- package/src/styles/components/Loader.css +37 -0
- package/src/styles/components/LoadingState.css +81 -0
- package/src/styles/components/Modal.css +84 -0
- package/src/styles/components/PassengerSelect.css +93 -0
- package/src/styles/components/PassengersLayout.css +90 -0
- package/src/styles/components/Row.css +70 -0
- package/src/styles/components/Seat.css +57 -0
- package/src/styles/components/SeatInfo.css +61 -0
- package/src/styles/components/SeatMap.css +24 -0
- package/src/styles/components/SeatSelect.css +92 -0
- package/src/styles/components/Segment.css +17 -0
- package/src/styles/components/SelectionSegment.css +10 -0
- package/src/styles/components/Summary.css +70 -0
- package/src/styles/components/Tabs.css +49 -0
- package/src/styles/flex.css +5 -0
- package/src/styles/font-families.css +47 -0
- package/src/styles/global.css +51 -0
- package/src/styles/margin.css +3 -0
- package/src/styles/spacing.css +18 -0
- package/src/styles/transitions.css +3 -0
- package/src/styles/typography.css +13 -0
- package/src/tests/components/DuffelAncillaries.test.tsx +342 -0
- package/src/tests/lib/createPriceFormatters.test.tsx +152 -0
- package/src/tests/lib/formatAvailableServices.test.tsx +79 -0
- package/src/tests/lib/formatSeatMaps.test.tsx +49 -0
- package/src/tests/lib/getCurrencyForServices.test.tsx +44 -0
- package/src/tests/lib/hasServiceOfSameMetadataTypeAlreadyBeenSelected.test.ts +86 -0
- package/src/tests/lib/logging.test.tsx +32 -0
- package/src/tests/lib/moneyStringFormatter.test.tsx +12 -0
- package/src/tests/lib/validateProps.test.tsx +57 -0
- package/src/types/Aircraft.ts +16 -0
- package/src/types/Airline.ts +16 -0
- package/src/types/Airport.ts +54 -0
- package/src/types/City.ts +21 -0
- package/src/types/CreateOrderPayload.ts +99 -0
- package/src/types/CurrencyConversion.ts +10 -0
- package/src/types/DuffelAncillariesProps.ts +108 -0
- package/src/types/Offer.ts +851 -0
- package/src/types/Order.ts +6 -0
- package/src/types/Place.ts +6 -0
- package/src/types/SeatMap.ts +231 -0
- package/src/types/index.ts +11 -0
- package/tsconfig.json +52 -0
- package/LICENSE +0 -21
- package/dist/AdditionalBaggage.esm.js +0 -1
- package/dist/AdditionalBaggage.js +0 -1
- package/dist/AdditionalBaggage.min.css +0 -408
- package/dist/AdditionalBaggage.umd.min.js +0 -2
- package/dist/AdditionalBaggage.umd.min.js.LICENSE.txt +0 -60
- package/dist/AdditionalBaggageSelection.esm.js +0 -1
- package/dist/AdditionalBaggageSelection.js +0 -1
- package/dist/AdditionalBaggageSelection.min.css +0 -744
- package/dist/AdditionalBaggageSelection.umd.min.js +0 -2
- package/dist/AdditionalBaggageSelection.umd.min.js.LICENSE.txt +0 -93
- package/dist/CardPayment.esm.js +0 -2
- package/dist/CardPayment.esm.js.LICENSE.txt +0 -6
- package/dist/CardPayment.js +0 -2
- package/dist/CardPayment.js.LICENSE.txt +0 -6
- package/dist/CardPayment.min.css +0 -233
- package/dist/CardPayment.umd.min.js +0 -2
- package/dist/CardPayment.umd.min.js.LICENSE.txt +0 -61
- package/dist/SeatSelection.esm.js +0 -1
- package/dist/SeatSelection.js +0 -1
- package/dist/SeatSelection.min.css +0 -1127
- package/dist/SeatSelection.umd.min.js +0 -2
- package/dist/SeatSelection.umd.min.js.LICENSE.txt +0 -60
- package/dist/duffel-components.d.ts +0 -1614
- package/dist/duffel-components.esm.js +0 -2
- package/dist/duffel-components.esm.js.LICENSE.txt +0 -6
- package/dist/duffel-components.js +0 -2
- package/dist/duffel-components.js.LICENSE.txt +0 -6
- package/dist/duffel-components.min.css +0 -1280
- package/dist/duffel-components.umd.min.js +0 -2
- package/dist/duffel-components.umd.min.js.LICENSE.txt +0 -102
|
@@ -1,408 +0,0 @@
|
|
|
1
|
-
.duffel-components .ff-icon {
|
|
2
|
-
margin-left: initial;
|
|
3
|
-
display: block;
|
|
4
|
-
fill: currentColor;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.duffel-components .duffel-button {
|
|
8
|
-
--BUTTON-BASE-COLOR: rgb(var(--ACCENT));
|
|
9
|
-
--BUTTON-HOVER-COLOR: rgba(var(--ACCENT), var(--ACCENT-LIGHT-300));
|
|
10
|
-
--BUTTON-FONT-SIZE: var(--FONT-SIZES-C1);
|
|
11
|
-
--BUTTON-ICON-SIZE: 24px;
|
|
12
|
-
--BUTTON-RADIUS: 5px;
|
|
13
|
-
--BUTTON-SPACING: 2px 40px;
|
|
14
|
-
--BUTTON-ICON-SPACING: 8px;
|
|
15
|
-
--BUTTON-ICON-MARGIN: 12px;
|
|
16
|
-
--TRANSITION-CUBIC-BEZIER: cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
17
|
-
|
|
18
|
-
-webkit-appearance: none;
|
|
19
|
-
align-items: center;
|
|
20
|
-
background-color: inherit;
|
|
21
|
-
border: 2px solid var(--BUTTON-BASE-COLOR);
|
|
22
|
-
border-radius: var(--BUTTON-RADIUS);
|
|
23
|
-
box-sizing: border-box;
|
|
24
|
-
color: inherit;
|
|
25
|
-
cursor: pointer;
|
|
26
|
-
display: flex;
|
|
27
|
-
font-family: var(--FONT-FAMILY);
|
|
28
|
-
font-size: inherit;
|
|
29
|
-
font-weight: normal;
|
|
30
|
-
line-height: 1;
|
|
31
|
-
margin: 0;
|
|
32
|
-
padding: var(--BUTTON-SPACING);
|
|
33
|
-
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
34
|
-
-webkit-user-select: none;
|
|
35
|
-
-moz-user-select: none;
|
|
36
|
-
user-select: none;
|
|
37
|
-
transition: background-color 0.3s var(--TRANSITION-CUBIC-BEZIER),
|
|
38
|
-
border-color 0.3s var(--TRANSITION-CUBIC-BEZIER),
|
|
39
|
-
color 0.3s var(--TRANSITION-CUBIC-BEZIER);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.duffel-components .duffel-button.duffel-button--icon-only {
|
|
43
|
-
padding: var(--BUTTON-ICON-SPACING);
|
|
44
|
-
height: 40px;
|
|
45
|
-
width: 40px;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.duffel-components .duffel-button.duffel-button--icon-only > svg {
|
|
49
|
-
--BUTTON-ICON-SIZE: 24px;
|
|
50
|
-
margin: 0 auto;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.duffel-components .duffel-button__text {
|
|
54
|
-
display: block;
|
|
55
|
-
font-size: var(--BUTTON-FONT-SIZE);
|
|
56
|
-
font-weight: 600;
|
|
57
|
-
line-height: 1.5;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.duffel-components .duffel-button:focus {
|
|
61
|
-
outline-offset: 0.25em;
|
|
62
|
-
outline: 2px solid rgb(--ACCENT);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.duffel-components .duffel-button--primary {
|
|
66
|
-
--BUTTON-HOVER-COLOR: rgba(var(--ACCENT), var(--ACCENT-LIGHT-300));
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.duffel-components .duffel-button--muted {
|
|
70
|
-
--BUTTON-BASE-COLOR: rgba(var(--ACCENT), var(--ACCENT-LIGHT-100));
|
|
71
|
-
--BUTTON-HOVER-COLOR: rgba(var(--ACCENT), var(--ACCENT-LIGHT-1000));
|
|
72
|
-
|
|
73
|
-
border-color: transparent;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.duffel-components .duffel-button--muted.duffel-button--solid:hover,
|
|
77
|
-
.duffel-components .duffel-button--muted.duffel-button--solid:active {
|
|
78
|
-
color: rgb(var(--WHITE));
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.duffel-components .duffel-button--solid {
|
|
82
|
-
background-color: var(--BUTTON-BASE-COLOR);
|
|
83
|
-
color: rgb(var(--WHITE));
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.duffel-components .duffel-button--solid.duffel-button--muted {
|
|
87
|
-
color: rgb(var(--ACCENT));
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.duffel-components .duffel-button--solid:hover,
|
|
91
|
-
.duffel-components .duffel-button--solid:active {
|
|
92
|
-
border-color: transparent;
|
|
93
|
-
background-color: var(--BUTTON-HOVER-COLOR);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.duffel-components .duffel-button--is-disabled {
|
|
97
|
-
cursor: default;
|
|
98
|
-
opacity: 0.4;
|
|
99
|
-
-webkit-user-select: none;
|
|
100
|
-
-moz-user-select: none;
|
|
101
|
-
user-select: none;
|
|
102
|
-
pointer-events: none;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.duffel-components .duffel-button .duffel-button__icon {
|
|
106
|
-
display: block;
|
|
107
|
-
height: var(--BUTTON-ICON-SIZE);
|
|
108
|
-
width: var(--BUTTON-ICON-SIZE);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.duffel-components .duffel-button .duffel-button__icon--before {
|
|
112
|
-
margin-right: var(--BUTTON-ICON-MARGIN);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.duffel-components .duffel-button .duffel-button__icon--after {
|
|
116
|
-
margin-left: var(--BUTTON-ICON-MARGIN);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
@media screen and (min-width: 768px) {.duffel-components .duffel-button {
|
|
120
|
-
--BUTTON-FONT-SIZE: var(--FONT-SIZES-C1);
|
|
121
|
-
--BUTTON-ICON-SIZE: 18px;
|
|
122
|
-
--BUTTON-SPACING: 4px 16px;
|
|
123
|
-
line-height: 24px
|
|
124
|
-
}
|
|
125
|
-
.duffel-components .duffel-button:not(.duffel-button--icon-only) {
|
|
126
|
-
height: 40px;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.duffel-components .duffel-button.duffel-button--icon-only {
|
|
130
|
-
padding: var(--BUTTON-ICON-SPACING);
|
|
131
|
-
height: 40px;
|
|
132
|
-
width: 40px;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.duffel-components .popover-container {
|
|
137
|
-
width: 320px;
|
|
138
|
-
padding: var(--SPACING-SM-1);
|
|
139
|
-
border: 1px solid rgba(59, 64, 86, 0.1);
|
|
140
|
-
border-radius: 8px;
|
|
141
|
-
background: white;
|
|
142
|
-
z-index: 999;
|
|
143
|
-
box-shadow: 0px 1px 4px rgba(59, 64, 86, 0.3);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
@-webkit-keyframes opacity-animation {
|
|
147
|
-
0%,
|
|
148
|
-
80%,
|
|
149
|
-
100% {
|
|
150
|
-
opacity: 0.3;
|
|
151
|
-
}
|
|
152
|
-
40% {
|
|
153
|
-
opacity: 1;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
@keyframes opacity-animation {
|
|
158
|
-
0%,
|
|
159
|
-
80%,
|
|
160
|
-
100% {
|
|
161
|
-
opacity: 0.3;
|
|
162
|
-
}
|
|
163
|
-
40% {
|
|
164
|
-
opacity: 1;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.duffel-components .spinner {
|
|
169
|
-
align-items: center;
|
|
170
|
-
display: flex;
|
|
171
|
-
justify-content: center;
|
|
172
|
-
pointer-events: none;
|
|
173
|
-
width: 100%;
|
|
174
|
-
height: 12px;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.duffel-components .spinner-dot {
|
|
178
|
-
-webkit-animation: opacity-animation 1.4s infinite ease-in-out both;
|
|
179
|
-
animation: opacity-animation 1.4s infinite ease-in-out both;
|
|
180
|
-
background-color: currentcolor;
|
|
181
|
-
border-radius: 100%;
|
|
182
|
-
display: inline-block;
|
|
183
|
-
margin: 0px 4px;
|
|
184
|
-
height: 12px;
|
|
185
|
-
width: 12px;
|
|
186
|
-
flex: 0 0 auto;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
.duffel-components .small {
|
|
190
|
-
height: 8px;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
.duffel-components .small.spinner-dot {
|
|
194
|
-
height: 8px;
|
|
195
|
-
width: 8px;
|
|
196
|
-
margin: 0 2px;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
.duffel-components .primary.spinner-dot {
|
|
200
|
-
background-color: var(--BLUE-500);
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
.duffel-components .muted.spinner-dot {
|
|
204
|
-
background-color: var(--GREY-400);
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.duffel-components .danger.spinner-dot {
|
|
208
|
-
background-color: var(--RED-400);
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
.duffel-components .one {
|
|
212
|
-
-webkit-animation-delay: -0.32s;
|
|
213
|
-
animation-delay: -0.32s;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
.duffel-components .two {
|
|
217
|
-
-webkit-animation-delay: -0.16s;
|
|
218
|
-
animation-delay: -0.16s;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
.duffel-components .seat-map__tab-select {
|
|
222
|
-
width: 100%;
|
|
223
|
-
max-width: 400px;
|
|
224
|
-
display: flex;
|
|
225
|
-
text-align: center;
|
|
226
|
-
min-height: var(--SPACING-LG-1);
|
|
227
|
-
margin-bottom: var(--SPACING-MD-3);
|
|
228
|
-
border: 2px solid var(--GREY-200);
|
|
229
|
-
border-radius: 3px;
|
|
230
|
-
background-color: var(--GREY-200);
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
.duffel-components .seat-map__tab-select-option {
|
|
234
|
-
-webkit-appearance: none;
|
|
235
|
-
-moz-appearance: none;
|
|
236
|
-
appearance: none;
|
|
237
|
-
outline: none;
|
|
238
|
-
margin: 0;
|
|
239
|
-
border: none;
|
|
240
|
-
padding: var(--SPACING-XS-2) var(--SPACING-SM-3);
|
|
241
|
-
font-weight: 600;
|
|
242
|
-
font-size: var(--FONT-SIZES-C2);
|
|
243
|
-
width: 100%;
|
|
244
|
-
color: var(--GREY-900);
|
|
245
|
-
background-color: var(--GREY-200);
|
|
246
|
-
cursor: pointer;
|
|
247
|
-
border-radius: 3px;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
.duffel-components .seat-map__tab-select-option:hover,
|
|
251
|
-
.duffel-components .seat-map__tab-select-option:focus,
|
|
252
|
-
.duffel-components .seat-map__tab-select-option:active {
|
|
253
|
-
color: rgba(var(--ACCENT), var(--ACCENT-LIGHT-1000));
|
|
254
|
-
background-color: rgba(var(--ACCENT), var(--ACCENT-LIGHT-200));
|
|
255
|
-
transition: var(--TRANSITIONS-CUBIC-BEZIER);
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
.duffel-components .seat-map__tab-select-option--selected {
|
|
259
|
-
color: var(--GREY-900);
|
|
260
|
-
background-color: rgba(var(--WHITE), 1);
|
|
261
|
-
box-shadow: 0px 0px 0px 1px rgba(var(--BLACK), 0.05),
|
|
262
|
-
0px 2px 12px rgba(var(--BLACK), 0.08);
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
.duffel-components .seat-map__tab-select-option:first-child {
|
|
266
|
-
margin-right: 1px;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
.duffel-components .seat-map__tab-select-option:last-child {
|
|
270
|
-
margin-left: 1px;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
.duffel-components {
|
|
274
|
-
--FONT-FAMILY: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
|
|
275
|
-
'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
|
276
|
-
sans-serif;
|
|
277
|
-
--FONT-SIZES-C0: 20px;
|
|
278
|
-
--FONT-SIZES-C1: 16px;
|
|
279
|
-
--FONT-SIZES-C2: 14px;
|
|
280
|
-
--FONT-SIZES-C3: 12px;
|
|
281
|
-
--FONT-SIZES-H2: 32px;
|
|
282
|
-
--FONT-SIZES-H3: 28px;
|
|
283
|
-
--FONT-SIZES-H4: 24px;
|
|
284
|
-
--FONT-SIZES-H5: 20px;
|
|
285
|
-
--SPACING-XL-3: 128px;
|
|
286
|
-
--SPACING-XL-2: 64px;
|
|
287
|
-
--SPACING-XL-1: 56px;
|
|
288
|
-
--SPACING-LG-3: 48px;
|
|
289
|
-
--SPACING-LG-2: 40px;
|
|
290
|
-
--SPACING-LG-1: 32px;
|
|
291
|
-
--SPACING-MD-3: 24px;
|
|
292
|
-
--SPACING-MD-2: 20px;
|
|
293
|
-
--SPACING-MD-1: 18px;
|
|
294
|
-
--SPACING-SM-3: 16px;
|
|
295
|
-
--SPACING-SM-2: 12px;
|
|
296
|
-
--SPACING-SM-1: 8px;
|
|
297
|
-
--SPACING-XS-3: 6px;
|
|
298
|
-
--SPACING-XS-2: 4px;
|
|
299
|
-
--SPACING-XS-1: 2px;
|
|
300
|
-
--SPACING-NONE: 0;
|
|
301
|
-
--GREY-100: #f7f5f9;
|
|
302
|
-
--GREY-200: #e2e2e8;
|
|
303
|
-
--GREY-400: #ababb4;
|
|
304
|
-
--GREY-500: #86868e;
|
|
305
|
-
--GREY-600: #696972;
|
|
306
|
-
--GREY-700: #4b4b55;
|
|
307
|
-
--GREY-900: #29292e;
|
|
308
|
-
--RED: #e3350f;
|
|
309
|
-
--BLACK: 0, 0, 0;
|
|
310
|
-
--WHITE: 255, 255, 255;
|
|
311
|
-
--ACCENT: 57, 111, 233;
|
|
312
|
-
--ACCENT-LIGHT-100: 0.08;
|
|
313
|
-
--ACCENT-LIGHT-200: 0.24;
|
|
314
|
-
--ACCENT-LIGHT-300: 0.48;
|
|
315
|
-
--ACCENT-LIGHT-1000: 1;
|
|
316
|
-
--TRANSITIONS-CUBIC-BEZIER: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
317
|
-
box-sizing: border-box;
|
|
318
|
-
-webkit-overflow-scrolling: touch;
|
|
319
|
-
-webkit-font-smoothing: antialiased;
|
|
320
|
-
font-family: var(--FONT-FAMILY);
|
|
321
|
-
overflow: hidden;
|
|
322
|
-
height: 100%;
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
.duffel-components .counter {
|
|
326
|
-
display: flex;
|
|
327
|
-
align-items: center;
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
.duffel-components .counter__count-label {
|
|
331
|
-
font-size: var(--FONT-SIZES-C2);
|
|
332
|
-
text-align: center;
|
|
333
|
-
align-self: center;
|
|
334
|
-
color: var(--GREY-900);
|
|
335
|
-
width: var(--SPACING-LG-2);
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
@media screen and (min-width: 768px) {
|
|
339
|
-
.duffel-components .counter__count-label {
|
|
340
|
-
width: var(--SPACING-LG-1);
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
.duffel-components .baggage-display {
|
|
345
|
-
display: flex;
|
|
346
|
-
align-items: center;
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
.duffel-components .baggage-display__content {
|
|
350
|
-
margin-left: var(--SPACING-SM-1);
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
.duffel-components .baggage-display__label {
|
|
354
|
-
color: var(--grey-900);
|
|
355
|
-
font-size: var(--FONT-SIZES-C2);
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
.duffel-components .baggage-display__price {
|
|
359
|
-
font-size: var(--FONT-SIZES-C2);
|
|
360
|
-
color: var(--GREY-600);
|
|
361
|
-
margin-left: var(--SPACING-XS-2);
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
.duffel-components .baggage-display__specs {
|
|
365
|
-
margin-top: var(--SPACING-XS-2);
|
|
366
|
-
font-size: var(--FONT-SIZES-C3);
|
|
367
|
-
color: var(--GREY-600);
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
.duffel-components .baggage-selection__control-container {
|
|
371
|
-
display: flex;
|
|
372
|
-
align-items: center;
|
|
373
|
-
justify-content: space-between;
|
|
374
|
-
margin-bottom: var(--SPACING-SM-1);
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
.duffel-components .baggage-selection__control-container:last-child {
|
|
378
|
-
margin-bottom: 0;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
.duffel-components .baggage-selection__control-price {
|
|
382
|
-
margin-right: var(--SPACING-SM-3);
|
|
383
|
-
line-height: var(--SPACING-MD-3);
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
.duffel-components .baggage-selection__control {
|
|
387
|
-
display: flex;
|
|
388
|
-
align-items: center;
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
.duffel-components .baggage-selection__no-bag {
|
|
392
|
-
display: flex;
|
|
393
|
-
align-items: center;
|
|
394
|
-
color: var(--GREY-900);
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
.duffel-components .baggage-selection__no-bag-circle {
|
|
398
|
-
background-color: rgb(var(--ACCENT));
|
|
399
|
-
color: white;
|
|
400
|
-
margin-right: var(--SPACING-SM-1);
|
|
401
|
-
border-radius: 50%;
|
|
402
|
-
width: var(--SPACING-LG-2);
|
|
403
|
-
height: var(--SPACING-LG-2);
|
|
404
|
-
display: flex;
|
|
405
|
-
justify-content: center;
|
|
406
|
-
align-items: center;
|
|
407
|
-
}
|
|
408
|
-
|