@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
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
.seat-map {
|
|
2
|
+
background-color: rgba(var(--WHITE), 1);
|
|
3
|
+
padding: var(--SPACING-SM-3);
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
align-items: center;
|
|
7
|
+
width: fit-content;
|
|
8
|
+
min-height: 100%;
|
|
9
|
+
margin-inline: auto;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.seat-map__legend-container {
|
|
13
|
+
margin-bottom: var(--SPACING-MD-3);
|
|
14
|
+
width: fit-content;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.seat-map__map-container {
|
|
18
|
+
display: grid;
|
|
19
|
+
grid-template-columns: repeat(var(--CABIN-AISLES), auto var(--SPACING-LG-1)) auto;
|
|
20
|
+
grid-column-gap: var(--SPACING-XS-2);
|
|
21
|
+
align-items: center;
|
|
22
|
+
width: min-content;
|
|
23
|
+
margin: 0 var(--SPACING-SM-2);
|
|
24
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
.seat-selection {
|
|
2
|
+
--SEAT-SELECTION-BOX-SHADOW: 0px 0px 0px 1px rgba(var(--BLACK), 0.05),
|
|
3
|
+
0px 4px 24px rgba(var(--BLACK), 0.08);
|
|
4
|
+
background-color: rgb(var(--WHITE));
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 100%;
|
|
9
|
+
padding: 0;
|
|
10
|
+
position: relative;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.seat-selection__content {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
align-items: center;
|
|
17
|
+
flex-grow: 1;
|
|
18
|
+
border-bottom: 1px solid rgba(59, 64, 86, 0.1);
|
|
19
|
+
height: calc(100% - 177px);
|
|
20
|
+
overflow: auto;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.seat-selection__content-child--passengers {
|
|
24
|
+
display: none;
|
|
25
|
+
padding-top: var(--SPACING-LG-1);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.seat-selection__content-child--map {
|
|
29
|
+
width: 100%;
|
|
30
|
+
height: 100%;
|
|
31
|
+
display: flex;
|
|
32
|
+
justify-content: space-between;
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.seat-selection__mobile-seat-info {
|
|
37
|
+
align-self: center;
|
|
38
|
+
position: absolute;
|
|
39
|
+
bottom: 187px;
|
|
40
|
+
width: calc(100% - 20px);
|
|
41
|
+
padding: var(--SPACING-XS-3);
|
|
42
|
+
margin-bottom: var(--SPACING-SM-2);
|
|
43
|
+
height: auto;
|
|
44
|
+
background-color: white;
|
|
45
|
+
border-radius: 8px;
|
|
46
|
+
z-index: 100;
|
|
47
|
+
box-shadow: var(--SEAT-SELECTION-BOX-SHADOW);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.seat-selection__confirmation {
|
|
51
|
+
padding: var(--SPACING-MD-3);
|
|
52
|
+
box-shadow: var(--SEAT-SELECTION-BOX-SHADOW);
|
|
53
|
+
position: sticky;
|
|
54
|
+
bottom: 0;
|
|
55
|
+
background-color: rgb(var(--WHITE));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@media screen and (min-width: 768px) {
|
|
59
|
+
.seat-selection__content {
|
|
60
|
+
height: auto;
|
|
61
|
+
padding: 0;
|
|
62
|
+
flex-direction: row;
|
|
63
|
+
align-items: initial;
|
|
64
|
+
max-height: calc(100vh - 115px);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.seat-selection__confirmation {
|
|
68
|
+
padding: var(--SPACING-LG-1);
|
|
69
|
+
box-shadow: none;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.seat-selection__content-child--passengers {
|
|
73
|
+
overflow: auto;
|
|
74
|
+
border-right: 1px solid var(--GREY-200);
|
|
75
|
+
display: flex;
|
|
76
|
+
flex-direction: column;
|
|
77
|
+
position: sticky;
|
|
78
|
+
top: 0;
|
|
79
|
+
flex: 1 0 auto;
|
|
80
|
+
min-width: 415px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.seat-selection__content-child--passengers > div:not(.passenger-selection) {
|
|
84
|
+
margin-left: var(--SPACING-LG-1);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.seat-selection__content-child--map {
|
|
88
|
+
height: auto;
|
|
89
|
+
align-items: center;
|
|
90
|
+
overflow: auto;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
.passenger-segment__title {
|
|
2
|
+
color: var(--GREY-900);
|
|
3
|
+
font-style: normal;
|
|
4
|
+
font-size: var(--FONT-SIZES-C1);
|
|
5
|
+
font-weight: 600;
|
|
6
|
+
line-height: var(--SPACING-MD-3);
|
|
7
|
+
padding: 0 0 0 var(--SPACING-LG-1);
|
|
8
|
+
margin: 0 0 var(--SPACING-SM-1);
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.passenger-segment__chevron {
|
|
14
|
+
/* We use important here because this margin can get overwritten by the icon one */
|
|
15
|
+
margin: 0 var(--SPACING-SM-1) !important;
|
|
16
|
+
color: var(--GREY-400);
|
|
17
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
.summary__segment {
|
|
2
|
+
border-bottom: 1px solid var(--GREY-200);
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: space-between;
|
|
6
|
+
margin-bottom: var(--SPACING-SM-3);
|
|
7
|
+
padding-bottom: var(--SPACING-SM-3);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.summary > .passenger-segment__title {
|
|
11
|
+
padding: 0;
|
|
12
|
+
margin: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.summary-passenger {
|
|
16
|
+
color: var(--GREY-900);
|
|
17
|
+
font-size: var(--FONT-SIZES-C1);
|
|
18
|
+
font-weight: normal;
|
|
19
|
+
margin: 0;
|
|
20
|
+
padding: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.summary__description-cost {
|
|
24
|
+
display: flex;
|
|
25
|
+
justify-content: space-between;
|
|
26
|
+
font-size: var(--FONT-SIZES-C1);
|
|
27
|
+
margin-bottom: var(--SPACING-SM-3);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.summary:not(.summary--mobile) {
|
|
31
|
+
padding-top: 0;
|
|
32
|
+
display: none;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.summary__actions {
|
|
36
|
+
display: flex;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.summary__actions--previous {
|
|
40
|
+
transform: rotate(180deg);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.summary__actions > button:last-of-type {
|
|
44
|
+
flex: 1 auto;
|
|
45
|
+
justify-content: center;
|
|
46
|
+
margin-left: var(--SPACING-SM-3);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@media screen and (min-width: 768px) {
|
|
50
|
+
.summary:not(.summary--mobile) {
|
|
51
|
+
display: flex;
|
|
52
|
+
justify-content: space-between;
|
|
53
|
+
align-items: center;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.summary--mobile {
|
|
57
|
+
display: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.summary__description-title {
|
|
61
|
+
color: var(--GREY-900);
|
|
62
|
+
font-size: var(--FONT-SIZES-H5);
|
|
63
|
+
line-height: 26px;
|
|
64
|
+
margin-bottom: var(--SPACING-XS-2);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.summary__confirmation-btn:last-child {
|
|
68
|
+
margin-left: var(--SPACING-SM-1);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
.seat-map__tab-select {
|
|
2
|
+
width: 100%;
|
|
3
|
+
max-width: 400px;
|
|
4
|
+
display: flex;
|
|
5
|
+
text-align: center;
|
|
6
|
+
min-height: var(--SPACING-LG-1);
|
|
7
|
+
margin-bottom: var(--SPACING-MD-3);
|
|
8
|
+
border: 2px solid var(--GREY-200);
|
|
9
|
+
border-radius: 3px;
|
|
10
|
+
background-color: var(--GREY-200);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.seat-map__tab-select-option {
|
|
14
|
+
appearance: none;
|
|
15
|
+
outline: none;
|
|
16
|
+
margin: 0;
|
|
17
|
+
border: none;
|
|
18
|
+
padding: var(--SPACING-XS-2) var(--SPACING-SM-3);
|
|
19
|
+
font-weight: 600;
|
|
20
|
+
font-size: var(--FONT-SIZES-C2);
|
|
21
|
+
width: 100%;
|
|
22
|
+
color: var(--GREY-900);
|
|
23
|
+
background-color: var(--GREY-200);
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
border-radius: 3px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.seat-map__tab-select-option:hover,
|
|
29
|
+
.seat-map__tab-select-option:focus,
|
|
30
|
+
.seat-map__tab-select-option:active {
|
|
31
|
+
color: rgba(var(--ACCENT), var(--ACCENT-LIGHT-1000));
|
|
32
|
+
background-color: rgba(var(--ACCENT), var(--ACCENT-LIGHT-200));
|
|
33
|
+
transition: var(--TRANSITIONS-CUBIC-BEZIER);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.seat-map__tab-select-option--selected {
|
|
37
|
+
color: var(--GREY-900);
|
|
38
|
+
background-color: rgba(var(--WHITE), 1);
|
|
39
|
+
box-shadow: 0px 0px 0px 1px rgba(var(--BLACK), 0.05),
|
|
40
|
+
0px 2px 12px rgba(var(--BLACK), 0.08);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.seat-map__tab-select-option:first-child {
|
|
44
|
+
margin-right: 1px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.seat-map__tab-select-option:last-child {
|
|
48
|
+
margin-left: 1px;
|
|
49
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
.p1--semibold {
|
|
2
|
+
font-family: var(--FONT-FAMILY);
|
|
3
|
+
font-size: 16px;
|
|
4
|
+
font-weight: 600;
|
|
5
|
+
line-height: 24px;
|
|
6
|
+
letter-spacing: 0em;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.p1--regular {
|
|
10
|
+
font-family: var(--FONT-FAMILY);
|
|
11
|
+
font-size: 16px;
|
|
12
|
+
font-weight: 400;
|
|
13
|
+
line-height: 24px;
|
|
14
|
+
letter-spacing: 0em;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.p2--regular {
|
|
18
|
+
font-family: var(--FONT-FAMILY);
|
|
19
|
+
font-size: 14px;
|
|
20
|
+
font-weight: 400;
|
|
21
|
+
line-height: 20px;
|
|
22
|
+
letter-spacing: 0em;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.p2--semibold {
|
|
26
|
+
font-family: var(--FONT-FAMILY);
|
|
27
|
+
font-size: 14px;
|
|
28
|
+
font-weight: 600;
|
|
29
|
+
line-height: 20px;
|
|
30
|
+
letter-spacing: 0em;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.p3--regular {
|
|
34
|
+
font-family: var(--FONT-FAMILY);
|
|
35
|
+
font-size: 12px;
|
|
36
|
+
font-weight: 400;
|
|
37
|
+
line-height: 16px;
|
|
38
|
+
letter-spacing: 0em;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.h3--semibold {
|
|
42
|
+
font-family: var(--FONT-FAMILY);
|
|
43
|
+
font-size: 20px;
|
|
44
|
+
font-weight: 600;
|
|
45
|
+
line-height: 28px;
|
|
46
|
+
letter-spacing: 0em;
|
|
47
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
@import "./colors.css";
|
|
2
|
+
@import "./flex.css";
|
|
3
|
+
@import "./font-families.css";
|
|
4
|
+
@import "./margin.css";
|
|
5
|
+
@import "./spacing.css";
|
|
6
|
+
@import "./transitions.css";
|
|
7
|
+
@import "./typography.css";
|
|
8
|
+
|
|
9
|
+
@import "./components/Amenity.css";
|
|
10
|
+
@import "./components/BaggageDisplay.css";
|
|
11
|
+
@import "./components/Button.css";
|
|
12
|
+
@import "./components/CfarSelectionModal.css";
|
|
13
|
+
@import "./components/Card.css";
|
|
14
|
+
@import "./components/Counter.css";
|
|
15
|
+
@import "./components/DuffelPayments.css";
|
|
16
|
+
@import "./components/IconButton.css";
|
|
17
|
+
@import "./components/Legend.css";
|
|
18
|
+
@import "./components/Loader.css";
|
|
19
|
+
@import "./components/LoadingState.css";
|
|
20
|
+
@import "./components/Modal.css";
|
|
21
|
+
@import "./components/PassengerSelect.css";
|
|
22
|
+
@import "./components/PassengersLayout.css";
|
|
23
|
+
@import "./components/Row.css";
|
|
24
|
+
@import "./components/Seat.css";
|
|
25
|
+
@import "./components/SeatInfo.css";
|
|
26
|
+
@import "./components/SeatMap.css";
|
|
27
|
+
@import "./components/SeatSelect.css";
|
|
28
|
+
@import "./components/Segment.css";
|
|
29
|
+
@import "./components/SelectionSegment.css";
|
|
30
|
+
@import "./components/Summary.css";
|
|
31
|
+
@import "./components/Tabs.css";
|
|
32
|
+
|
|
33
|
+
.duffel-components {
|
|
34
|
+
--BUTTON-RADIUS: 5px;
|
|
35
|
+
--TRANSITION-CUBIC-BEZIER: cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
36
|
+
|
|
37
|
+
box-sizing: border-box;
|
|
38
|
+
-webkit-overflow-scrolling: touch;
|
|
39
|
+
-webkit-font-smoothing: antialiased;
|
|
40
|
+
font-family: var(--FONT-FAMILY);
|
|
41
|
+
overflow: hidden;
|
|
42
|
+
height: 100%;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
h1,
|
|
46
|
+
h2,
|
|
47
|
+
h3,
|
|
48
|
+
h4,
|
|
49
|
+
p {
|
|
50
|
+
margin: 0;
|
|
51
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.duffel-components {
|
|
2
|
+
--SPACING-XL-3: 128px;
|
|
3
|
+
--SPACING-XL-2: 64px;
|
|
4
|
+
--SPACING-XL-1: 56px;
|
|
5
|
+
--SPACING-LG-3: 48px;
|
|
6
|
+
--SPACING-LG-2: 40px;
|
|
7
|
+
--SPACING-LG-1: 32px;
|
|
8
|
+
--SPACING-MD-3: 24px;
|
|
9
|
+
--SPACING-MD-2: 20px;
|
|
10
|
+
--SPACING-MD-1: 18px;
|
|
11
|
+
--SPACING-SM-3: 16px;
|
|
12
|
+
--SPACING-SM-2: 12px;
|
|
13
|
+
--SPACING-SM-1: 8px;
|
|
14
|
+
--SPACING-XS-3: 6px;
|
|
15
|
+
--SPACING-XS-2: 4px;
|
|
16
|
+
--SPACING-XS-1: 2px;
|
|
17
|
+
--SPACING-NONE: 0;
|
|
18
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
.duffel-components {
|
|
2
|
+
--FONT-FAMILY: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
|
|
3
|
+
"Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
|
|
4
|
+
sans-serif;
|
|
5
|
+
--FONT-SIZES-C0: 20px;
|
|
6
|
+
--FONT-SIZES-C1: 16px;
|
|
7
|
+
--FONT-SIZES-C2: 14px;
|
|
8
|
+
--FONT-SIZES-C3: 12px;
|
|
9
|
+
--FONT-SIZES-H2: 32px;
|
|
10
|
+
--FONT-SIZES-H3: 28px;
|
|
11
|
+
--FONT-SIZES-H4: 24px;
|
|
12
|
+
--FONT-SIZES-H5: 20px;
|
|
13
|
+
}
|