mautourco-components 0.2.30 → 0.2.31
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/dist/components/atoms/Avatar/Avatar.js +1 -12
- package/dist/components/atoms/Button/Button.js +1 -12
- package/dist/components/atoms/Checkbox/Checkbox.js +2 -13
- package/dist/components/atoms/Chip/Chip.js +1 -12
- package/dist/components/atoms/Icon/icons/AccomIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/AirIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/ArrivalIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/ArrowDownOutlineIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/ArrowRightOutlineIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/BadgeAlertIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/BikeIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/BookingIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/Building2OutlineIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/BuildingIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/BusIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/Calendar2Icon.js +1 -12
- package/dist/components/atoms/Icon/icons/CalendarIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/CalendarOutlineIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/CalendarRangeOutlineIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/CarFront.js +1 -12
- package/dist/components/atoms/Icon/icons/CarIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/CatamaranIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/Check.js +1 -12
- package/dist/components/atoms/Icon/icons/CheckCircleIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/Chevron.js +1 -1
- package/dist/components/atoms/Icon/icons/ClockIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/Close.js +1 -12
- package/dist/components/atoms/Icon/icons/CloseCircleIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/DeleteIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/DepartureIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/EyeIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/FacebookIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/HomeIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/Info2Icon.d.ts +4 -0
- package/dist/components/atoms/Icon/icons/Info2Icon.js +25 -0
- package/dist/components/atoms/Icon/icons/InfoIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/Land.js +1 -12
- package/dist/components/atoms/Icon/icons/LineIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/LinkedInIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/LuggageIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/MapIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/MapPinIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/MautoucoLogo.d.ts +0 -1
- package/dist/components/atoms/Icon/icons/MautoucoLogo.js +1 -12
- package/dist/components/atoms/Icon/icons/MenuIcon.d.ts +0 -1
- package/dist/components/atoms/Icon/icons/MenuIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/MicroIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/MinusIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/MoreIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/MoreVerticalIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/NightIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/PlaneIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/PlaneLandingOutlineIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/PlaneTakeoffOutlineIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/PlusCircleIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/PlusIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/QuotationIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/SeaIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/Search.js +1 -12
- package/dist/components/atoms/Icon/icons/Settings.js +1 -12
- package/dist/components/atoms/Icon/icons/ShipIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/StopWatchIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/StrollerIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/TwitterIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/User.js +1 -12
- package/dist/components/atoms/Icon/icons/UserIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/Utensils.js +1 -12
- package/dist/components/atoms/Icon/icons/WalletIcon.js +1 -12
- package/dist/components/atoms/Icon/icons/Youtube.js +1 -12
- package/dist/components/atoms/Icon/icons/registry.d.ts +1 -0
- package/dist/components/atoms/Icon/icons/registry.js +2 -0
- package/dist/components/atoms/Illustration/illustrations.js +4 -4
- package/dist/components/atoms/Inputs/DropdownInput/DropdownInput.js +1 -12
- package/dist/components/atoms/Inputs/Input/Input.d.ts +2 -1
- package/dist/components/atoms/Inputs/Input/Input.js +2 -13
- package/dist/components/atoms/Link/Link.js +4 -15
- package/dist/components/atoms/RatingStar/RatingStar.js +2 -13
- package/dist/components/atoms/SegmentedButton/SegmentedButton.js +3 -14
- package/dist/components/atoms/SelectedValue/SelectedValue.js +1 -12
- package/dist/components/atoms/Slider/Slider.js +1 -12
- package/dist/components/atoms/Spinner/Spinner.js +1 -12
- package/dist/components/atoms/Tab/Tab.js +1 -1
- package/dist/components/atoms/Typography/Typography.js +2 -13
- package/dist/components/molecules/AccomodationDocket/AccomodationDocket.js +3 -14
- package/dist/components/molecules/ActionDropdown/ActionDropdown.d.ts +0 -1
- package/dist/components/molecules/ActionDropdown/ActionDropdown.js +5 -16
- package/dist/components/molecules/AddItemButton/AddItemButton.js +1 -12
- package/dist/components/molecules/BookingPax/BookingPaxAccom.js +3 -14
- package/dist/components/molecules/BookingPax/BookingPaxClient/BookingPaxClient.d.ts +0 -1
- package/dist/components/molecules/BookingPax/BookingPaxClient/BookingPaxClient.js +5 -5
- package/dist/components/molecules/BookingPax/BookingPaxExcursion.js +1 -12
- package/dist/components/molecules/BookingPax/BookingPaxHeader.js +2 -2
- package/dist/components/molecules/BookingPax/BookingPaxLayout/BookingPaxLayout.d.ts +0 -1
- package/dist/components/molecules/BookingPax/BookingPaxLayout/BookingPaxLayout.js +1 -12
- package/dist/components/molecules/BookingPax/BookingPaxRemarks.js +1 -12
- package/dist/components/molecules/BookingPax/BookingPaxTransfer.js +1 -12
- package/dist/components/molecules/BookingResume/BookingResumeLayout/BookingResumeLayout.js +1 -12
- package/dist/components/molecules/BookingResume/ResumeAccom/ResumeAccom.js +1 -12
- package/dist/components/molecules/BookingResume/ResumeExcursion/ResumeExcursion.js +1 -12
- package/dist/components/molecules/BookingResume/ResumeOtherService.js +1 -12
- package/dist/components/molecules/BookingResume/ResumeTransfer.js +1 -12
- package/dist/components/molecules/Breadcrumbs/Breadcrumbs.js +1 -12
- package/dist/components/molecules/Calendar/CalendarInput.js +2 -13
- package/dist/components/molecules/Calendar/DateTime.d.ts +9 -9
- package/dist/components/molecules/Calendar/DateTime.js +3 -3
- package/dist/components/molecules/Calendar/TimePicker.js +1 -12
- package/dist/components/molecules/DateDisplay/DateDisplay.js +2 -13
- package/dist/components/molecules/DetailsInfo/DetailsAction.js +2 -13
- package/dist/components/molecules/DetailsInfo/DetailsAgency/DetailsAgency.js +1 -12
- package/dist/components/molecules/DetailsInfo/DetailsClient/DetailsClient.js +1 -12
- package/dist/components/molecules/DetailsInfo/DetailsFile.js +1 -12
- package/dist/components/molecules/DetailsInfo/DetailsInfo.d.ts +0 -1
- package/dist/components/molecules/DialogContentPolicy/CancellationLayout/CancellationLayout.js +1 -12
- package/dist/components/molecules/DialogContentPolicy/DialogCancellationAccom.d.ts +0 -1
- package/dist/components/molecules/DialogContentPolicy/DialogCancellationAccom.js +1 -12
- package/dist/components/molecules/DialogContentPolicy/DialogCancellationExcursion.d.ts +0 -1
- package/dist/components/molecules/DialogContentPolicy/DialogCancellationExcursion.js +1 -12
- package/dist/components/molecules/DialogContentPolicy/DialogCancellationList.d.ts +3 -3
- package/dist/components/molecules/DialogContentPolicy/DialogCancellationList.js +2 -2
- package/dist/components/molecules/DialogContentPolicy/DialogContentPolicy.js +1 -12
- package/dist/components/molecules/DocketPrices/DocketPrices.js +1 -12
- package/dist/components/molecules/ExcursionDocket/ExcursionDocket.js +1 -12
- package/dist/components/molecules/FeatureRow/FeatureRow.js +1 -12
- package/dist/components/molecules/FromTo/FromTo.d.ts +0 -1
- package/dist/components/molecules/FromTo/FromTo.js +1 -12
- package/dist/components/molecules/GlobalAmenities/GlobalAmenities.js +1 -12
- package/dist/components/molecules/LocationDropdown/LocationDropdown.js +6 -17
- package/dist/components/molecules/MultiSelectDropdown/MultiSelectDropdown.d.ts +1 -0
- package/dist/components/molecules/MultiSelectDropdown/MultiSelectDropdown.js +23 -28
- package/dist/components/molecules/OtherServiceDocket/OtherServiceDocket.js +1 -12
- package/dist/components/molecules/Pagination/Pagination.js +4 -15
- package/dist/components/molecules/PaxChips/PaxChips.d.ts +11 -0
- package/dist/components/molecules/PaxChips/PaxChips.js +9 -0
- package/dist/components/molecules/PaxDisplay/PaxDisplay.d.ts +0 -1
- package/dist/components/molecules/PaxDisplay/PaxDisplay.js +5 -16
- package/dist/components/molecules/PriceDisplay/PriceDisplay.js +1 -12
- package/dist/components/molecules/RatingTab/RatingTab.js +1 -12
- package/dist/components/molecules/SectionTitle/SectionTitle.js +1 -12
- package/dist/components/molecules/ServiceInfo/ServiceInfo.js +2 -13
- package/dist/components/molecules/ServiceLanguages/ServiceLanguages.js +1 -12
- package/dist/components/molecules/ServiceSelector/ServiceSelector.js +4 -15
- package/dist/components/molecules/ServiceTitle/ServiceTitle.js +1 -12
- package/dist/components/molecules/Stepper/Stepper.js +1 -12
- package/dist/components/molecules/StepperTimeline/StepperTimeline.js +6 -17
- package/dist/components/molecules/TabGroup/TabGroup.js +1 -12
- package/dist/components/molecules/TableServiceItem/DetailsCol.js +1 -12
- package/dist/components/molecules/TableServiceItem/ItemCol.d.ts +0 -1
- package/dist/components/molecules/TableServiceItem/ItemCol.js +2 -13
- package/dist/components/molecules/TableServiceItem/RowOtherServices.js +1 -12
- package/dist/components/molecules/TableServiceItem/RowTransfer.js +1 -12
- package/dist/components/molecules/TableServiceItem/index.d.ts +0 -1
- package/dist/components/molecules/TextWithBorderBottom/TextWithBorderBottom.js +1 -1
- package/dist/components/molecules/TextWithIcon/TextWithIcon.d.ts +0 -1
- package/dist/components/molecules/TextWithIcon/TextWithIcon.js +1 -12
- package/dist/components/molecules/TimelineItem/ServiceAccommodation.js +1 -12
- package/dist/components/molecules/TimelineItem/ServiceExcursion.js +1 -12
- package/dist/components/molecules/TimelineItem/ServiceTransfer.js +1 -12
- package/dist/components/molecules/TimelineItem/TimelineHeader.js +1 -12
- package/dist/components/molecules/TimelineItem/TimelineItem.d.ts +0 -1
- package/dist/components/molecules/TimelineItem/TimelineItem.js +1 -12
- package/dist/components/molecules/Toast/Toast.css +2107 -0
- package/dist/components/molecules/Toast/Toast.d.ts +2 -2
- package/dist/components/molecules/Toast/Toast.js +1 -12
- package/dist/components/molecules/TooltipDisplay/TooltipDisplay.js +1 -12
- package/dist/components/molecules/TransferDocket/TransferDocket.js +2 -13
- package/dist/components/molecules/UserCard/UserCard.js +3 -14
- package/dist/components/organisms/Booking/BookingDocket/BookingDocket.d.ts +0 -1
- package/dist/components/organisms/Booking/BookingDocket/BookingDocket.js +1 -1
- package/dist/components/organisms/Booking/BookingHeader.js +1 -12
- package/dist/components/organisms/Booking/BookingStep/BookingStep.js +1 -12
- package/dist/components/organisms/CarBookingCard/CarBookingCard.js +2 -2
- package/dist/components/organisms/CarBookingCard/CarBookingCardSkeleton.js +1 -12
- package/dist/components/organisms/CardContainer/CardContainer.js +1 -12
- package/dist/components/organisms/DateTimePicker/DateTimePicker.js +1 -12
- package/dist/components/organisms/Dialog/Dialog.js +3 -15
- package/dist/components/organisms/DialogBookingAddItem/AddItemNewService.d.ts +16 -0
- package/dist/components/organisms/DialogBookingAddItem/AddItemNewService.js +44 -0
- package/dist/components/organisms/DialogBookingAddItem/AddItemSelector.d.ts +8 -0
- package/dist/components/organisms/DialogBookingAddItem/AddItemSelector.js +12 -0
- package/dist/components/organisms/DialogBookingAddItem/DialogBookingAddItem.d.ts +17 -0
- package/dist/components/organisms/DialogBookingAddItem/DialogBookingAddItem.js +55 -0
- package/dist/components/organisms/DialogBookingAddItem/index.d.ts +3 -0
- package/dist/components/organisms/DialogBookingAddItem/index.js +3 -0
- package/dist/components/organisms/DialogBookingConfirm/BookingCancellationPolicy.d.ts +2 -2
- package/dist/components/organisms/DialogBookingConfirm/BookingCancellationPolicy.js +1 -12
- package/dist/components/organisms/DialogBookingConfirm/BookingMailSent.js +1 -12
- package/dist/components/organisms/DialogBookingConfirm/BookingReference.js +1 -12
- package/dist/components/organisms/DialogBookingConfirm/BookingSuccess.js +1 -12
- package/dist/components/organisms/DialogBookingConfirm/DialogBookingConfirm.d.ts +4 -0
- package/dist/components/organisms/DialogBookingConfirm/DialogBookingConfirm.js +2 -13
- package/dist/components/organisms/DialogCancelService/CancelBooking/CancelBooking.css +2117 -0
- package/dist/components/organisms/DialogCancelService/CancelBooking/CancelBooking.d.ts +16 -0
- package/dist/components/organisms/DialogCancelService/CancelBooking/CancelBooking.js +28 -0
- package/dist/components/organisms/{CancelService → DialogCancelService}/CancelPolicy.d.ts +2 -2
- package/dist/components/organisms/DialogCancelService/CancelPolicy.js +8 -0
- package/dist/components/organisms/DialogCancelService/ConfirmDelete/ConfirmDelete.js +24 -0
- package/dist/components/organisms/{CancelService/CancelService.d.ts → DialogCancelService/DialogCancelService.d.ts} +4 -3
- package/dist/components/organisms/DialogCancelService/DialogCancelService.js +14 -0
- package/dist/components/organisms/DialogCancelService/FromList.js +18 -0
- package/dist/components/organisms/DialogCancelService/index.d.ts +5 -0
- package/dist/components/organisms/DialogCancelService/index.js +1 -0
- package/dist/components/organisms/DialogComparison/DialogComparison.css +2116 -0
- package/dist/components/organisms/DialogComparison/DialogComparison.d.ts +24 -0
- package/dist/components/organisms/DialogComparison/DialogComparison.js +69 -0
- package/dist/components/organisms/DialogDeleteConfirm/DialogDeleteConfirm.d.ts +14 -0
- package/dist/components/organisms/DialogDeleteConfirm/DialogDeleteConfirm.js +11 -0
- package/dist/components/organisms/DialogSendingMail/DialogSendingMail.d.ts +11 -0
- package/dist/components/organisms/DialogSendingMail/DialogSendingMail.js +8 -0
- package/dist/components/organisms/DialogSendingMail/DialogSendingMailContent.d.ts +15 -0
- package/dist/components/organisms/DialogSendingMail/DialogSendingMailContent.js +49 -0
- package/dist/components/organisms/DialogSendingMail/index.d.ts +4 -0
- package/dist/components/organisms/DialogSendingMail/index.js +2 -0
- package/dist/components/organisms/DialogSendingMail/sending-mail-schema.d.ts +7 -0
- package/dist/components/organisms/DialogSendingMail/sending-mail-schema.js +16 -0
- package/dist/components/organisms/Docket/Docket.js +8 -19
- package/dist/components/organisms/Footer/Footer.js +3 -14
- package/dist/components/organisms/MultipleQuotationDocket/MultipleQuotationDocket.js +2 -13
- package/dist/components/organisms/PaxSelector/PaxSelector.js +22 -22
- package/dist/components/organisms/QuoteHeader/QuoteHeader.js +2 -13
- package/dist/components/organisms/RoundTrip/RoundTrip.js +1 -1
- package/dist/components/organisms/SearchBarTransfer/SearchBarTransfer.js +5 -5
- package/dist/components/organisms/TabCancellationPolicy/CancellationAccom.js +1 -12
- package/dist/components/organisms/TabCancellationPolicy/CancellationExcursion.js +1 -12
- package/dist/components/organisms/TabCancellationPolicy/CancellationHeader.d.ts +0 -1
- package/dist/components/organisms/TabCancellationPolicy/CancellationTransfer.js +1 -12
- package/dist/components/organisms/TabCancellationPolicy/HeaderAccom.js +1 -12
- package/dist/components/organisms/TabCancellationPolicy/HeaderExcursion/HeaderTransfer.js +1 -12
- package/dist/components/organisms/TabCancellationPolicy/PolicyAccom/PolicyAccom.js +1 -12
- package/dist/components/organisms/TabCancellationPolicy/PolicyExcursion.js +1 -12
- package/dist/components/organisms/TabCancellationPolicy/PolicyTransfer.js +1 -12
- package/dist/components/organisms/TabCancellationPolicy/TabCancellationPolicy.d.ts +0 -1
- package/dist/components/organisms/TabCancellationPolicy/TabCancellationPolicyLayout/TabCancellationPolicyLayout.js +1 -12
- package/dist/components/organisms/TabServiceDetails/Accommodation.js +1 -1
- package/dist/components/organisms/TabServiceDetails/DetailContentTransfer.js +1 -12
- package/dist/components/organisms/TabServiceDetails/DetailsContentAccom.js +2 -2
- package/dist/components/organisms/TabServiceDetails/DetailsContentExcursion.js +1 -12
- package/dist/components/organisms/TabServiceDetails/Excursion.js +1 -1
- package/dist/components/organisms/TabServiceDetails/TabServiceDetails.d.ts +0 -1
- package/dist/components/organisms/TabServiceDetails/TabServiceDetailsLayout/TabServiceDetailsLayout.js +1 -12
- package/dist/components/organisms/TabServiceDetails/Transfer.js +1 -1
- package/dist/components/organisms/Table/Table.css +48 -32
- package/dist/components/organisms/Table/Table.d.ts +4 -1
- package/dist/components/organisms/Table/Table.js +19 -16
- package/dist/components/organisms/Table/TableCell.d.ts +1 -1
- package/dist/components/organisms/Table/TableCell.js +1 -12
- package/dist/components/organisms/Table/columns/booking-cancel-service-columns.js +15 -31
- package/dist/components/organisms/Table/columns/booking-columns.js +7 -22
- package/dist/components/organisms/Table/columns/comparison-columns.d.ts +3 -0
- package/dist/components/organisms/Table/columns/comparison-columns.js +97 -0
- package/dist/components/organisms/Table/columns/detail-resume-columns.js +16 -31
- package/dist/components/organisms/Table/columns/index.d.ts +11 -7
- package/dist/components/organisms/Table/columns/index.js +2 -0
- package/dist/components/organisms/Table/columns/quotation-columns.d.ts +4 -1
- package/dist/components/organisms/Table/columns/quotation-columns.js +10 -19
- package/dist/components/organisms/Timeline/Timeline.js +1 -1
- package/dist/components/organisms/TopNavigation/DesktopNav.d.ts +0 -1
- package/dist/components/organisms/TopNavigation/DesktopNav.js +5 -16
- package/dist/components/organisms/TopNavigation/MobileNav.js +9 -20
- package/dist/components/organisms/TransferLine/TransferLine.js +1 -1
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/calendar.js +2 -2
- package/dist/components/ui/form.d.ts +24 -0
- package/dist/components/ui/form.js +79 -0
- package/dist/components/ui/label.d.ts +4 -0
- package/dist/components/ui/label.js +30 -0
- package/dist/hooks/useBookingPax.d.ts +1 -1
- package/dist/index.d.ts +26 -15
- package/dist/index.js +10 -2
- package/dist/lib/price-formatter.d.ts +1 -0
- package/dist/lib/price-formatter.js +13 -0
- package/dist/lib/shared-constant.d.ts +1 -0
- package/dist/lib/shared-constant.js +1 -0
- package/dist/lib/utils.d.ts +1 -2
- package/dist/lib/utils.js +1 -1
- package/dist/styles/tokens/tokens.d.ts +464 -464
- package/package.json +7 -3
- package/src/components/atoms/Icon/icons/Info2Icon.tsx +42 -0
- package/src/components/atoms/Icon/icons/registry.tsx +2 -0
- package/src/components/atoms/Inputs/Input/Input.tsx +4 -2
- package/src/components/molecules/Calendar/DateTime.tsx +6 -4
- package/src/components/molecules/DialogContentPolicy/DialogCancellationList.tsx +6 -6
- package/src/components/molecules/DialogContentPolicy/DialogContentPolicy.tsx +1 -1
- package/src/components/molecules/MultiSelectDropdown/MultiSelectDropdown.tsx +117 -82
- package/src/components/molecules/PaxChips/PaxChips.tsx +30 -0
- package/src/components/molecules/TextWithIcon/TextWithIcon.tsx +2 -2
- package/src/components/molecules/Toast/Toast.css +27 -0
- package/src/components/molecules/Toast/Toast.tsx +9 -9
- package/src/components/organisms/Dialog/Dialog.tsx +85 -64
- package/src/components/organisms/{BookingAddItem → DialogBookingAddItem}/AddItemNewService.tsx +17 -2
- package/src/components/organisms/{BookingAddItem/BookingAddItem.tsx → DialogBookingAddItem/DialogBookingAddItem.tsx} +6 -6
- package/src/components/organisms/{BookingAddItem → DialogBookingAddItem}/index.ts +1 -1
- package/src/components/organisms/DialogBookingConfirm/BookingCancellationPolicy.tsx +2 -2
- package/src/components/organisms/DialogBookingConfirm/DialogBookingConfirm.tsx +14 -2
- package/src/components/organisms/DialogCancelService/CancelBooking/CancelBooking.css +24 -0
- package/src/components/organisms/DialogCancelService/CancelBooking/CancelBooking.tsx +98 -0
- package/src/components/organisms/{CancelService → DialogCancelService}/CancelPolicy.tsx +4 -4
- package/src/components/organisms/{CancelService/CancelService.tsx → DialogCancelService/DialogCancelService.tsx} +7 -5
- package/src/components/organisms/DialogCancelService/index.ts +6 -0
- package/src/components/organisms/DialogComparison/DialogComparison.css +23 -0
- package/src/components/organisms/DialogComparison/DialogComparison.tsx +157 -0
- package/src/components/organisms/DialogDeleteConfirm/DialogDeleteConfirm.tsx +57 -0
- package/src/components/organisms/DialogSendingMail/DialogSendingMail.tsx +27 -0
- package/src/components/organisms/DialogSendingMail/DialogSendingMailContent.tsx +115 -0
- package/src/components/organisms/DialogSendingMail/index.ts +5 -0
- package/src/components/organisms/DialogSendingMail/sending-mail-schema.ts +19 -0
- package/src/components/organisms/Table/Table.css +48 -32
- package/src/components/organisms/Table/Table.tsx +24 -5
- package/src/components/organisms/Table/columns/booking-cancel-service-columns.tsx +16 -32
- package/src/components/organisms/Table/columns/booking-columns.tsx +2 -19
- package/src/components/organisms/Table/columns/comparison-columns.tsx +140 -0
- package/src/components/organisms/Table/columns/detail-resume-columns.tsx +17 -33
- package/src/components/organisms/Table/columns/index.ts +2 -0
- package/src/components/organisms/Table/columns/quotation-columns.tsx +17 -9
- package/src/components/ui/form.tsx +160 -0
- package/src/components/ui/label.tsx +22 -0
- package/dist/components/organisms/CancelService/CancelPolicy.js +0 -19
- package/dist/components/organisms/CancelService/CancelService.js +0 -23
- package/dist/components/organisms/CancelService/ConfirmDelete/ConfirmDelete.js +0 -35
- package/dist/components/organisms/CancelService/FromList.js +0 -29
- /package/dist/components/organisms/{CancelService → DialogCancelService}/ConfirmDelete/ConfirmDelete.css +0 -0
- /package/dist/components/organisms/{CancelService → DialogCancelService}/ConfirmDelete/ConfirmDelete.d.ts +0 -0
- /package/dist/components/organisms/{CancelService → DialogCancelService}/FromList.d.ts +0 -0
- /package/src/components/organisms/{BookingAddItem → DialogBookingAddItem}/AddItemSelector.tsx +0 -0
- /package/src/components/organisms/{CancelService → DialogCancelService}/ConfirmDelete/ConfirmDelete.css +0 -0
- /package/src/components/organisms/{CancelService → DialogCancelService}/ConfirmDelete/ConfirmDelete.tsx +0 -0
- /package/src/components/organisms/{CancelService → DialogCancelService}/FromList.tsx +0 -0
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { AnimatePresence, domAnimation, LazyMotion } from 'motion/react';
|
|
2
|
+
import * as motion from 'motion/react-m';
|
|
1
3
|
import React, { useCallback, useEffect, useRef } from 'react';
|
|
2
4
|
import { createPortal } from 'react-dom';
|
|
3
5
|
import { useMobile } from '../../../hooks/useMobile';
|
|
@@ -268,74 +270,93 @@ export const Dialog: React.FC<DialogProps> = ({
|
|
|
268
270
|
.filter(Boolean)
|
|
269
271
|
.join(' ');
|
|
270
272
|
|
|
271
|
-
if (!isOpen) {
|
|
272
|
-
return null;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
273
|
const dialogContent = (
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
{/* Dialog content */}
|
|
291
|
-
<div className={contentClasses}>
|
|
292
|
-
{/* Header */}
|
|
293
|
-
<div className={headerClasses}>
|
|
294
|
-
<h2 id={titleId} className={titleClasses}>
|
|
295
|
-
{title}
|
|
296
|
-
</h2>
|
|
297
|
-
{showCloseButton && (
|
|
298
|
-
<button
|
|
299
|
-
type="button"
|
|
300
|
-
className={closeButtonClasses}
|
|
301
|
-
onClick={onClose}
|
|
302
|
-
aria-label="Close dialog">
|
|
303
|
-
<Icon name="close" size="md" />
|
|
304
|
-
</button>
|
|
305
|
-
)}
|
|
306
|
-
</div>
|
|
274
|
+
<LazyMotion features={domAnimation}>
|
|
275
|
+
<AnimatePresence>
|
|
276
|
+
{isOpen && (
|
|
277
|
+
<>
|
|
278
|
+
{/* Overlay */}
|
|
279
|
+
<motion.div
|
|
280
|
+
className="dialog-overlay"
|
|
281
|
+
onClick={handleOverlayClick}
|
|
282
|
+
aria-hidden="true"
|
|
283
|
+
initial={{ opacity: 0 }}
|
|
284
|
+
animate={{ opacity: 1 }}
|
|
285
|
+
exit={{ opacity: 0 }}
|
|
286
|
+
transition={{ duration: 0.2, ease: 'easeInOut' }}
|
|
287
|
+
/>
|
|
307
288
|
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
289
|
+
{/* Dialog container */}
|
|
290
|
+
<motion.div
|
|
291
|
+
className="dialog"
|
|
292
|
+
role="dialog"
|
|
293
|
+
aria-modal="true"
|
|
294
|
+
aria-labelledby={titleId}
|
|
295
|
+
aria-describedby={bodyId}
|
|
296
|
+
ref={dialogRef}
|
|
297
|
+
tabIndex={-1}
|
|
298
|
+
onClick={handleOverlayClick}
|
|
299
|
+
initial={{ opacity: 0, y: 20 }}
|
|
300
|
+
animate={{ opacity: 1, y: 0 }}
|
|
301
|
+
exit={{ opacity: 0, y: 20 }}
|
|
302
|
+
transition={{ duration: 0.25, ease: 'easeOut' }}>
|
|
303
|
+
{/* Dialog content */}
|
|
304
|
+
<motion.div
|
|
305
|
+
className={contentClasses}
|
|
306
|
+
initial={{ opacity: 0 }}
|
|
307
|
+
animate={{ opacity: 1 }}
|
|
308
|
+
exit={{ opacity: 0 }}
|
|
309
|
+
transition={{ duration: 0.2, delay: 0.05 }}>
|
|
310
|
+
{/* Header */}
|
|
311
|
+
<div className={headerClasses}>
|
|
312
|
+
<h2 id={titleId} className={titleClasses}>
|
|
313
|
+
{title}
|
|
314
|
+
</h2>
|
|
315
|
+
{showCloseButton && (
|
|
316
|
+
<button
|
|
317
|
+
type="button"
|
|
318
|
+
className={closeButtonClasses}
|
|
319
|
+
onClick={onClose}
|
|
320
|
+
aria-label="Close dialog">
|
|
321
|
+
<Icon name="close" size="md" />
|
|
322
|
+
</button>
|
|
323
|
+
)}
|
|
324
|
+
</div>
|
|
312
325
|
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
{footer ? (
|
|
317
|
-
footer
|
|
318
|
-
) : (
|
|
319
|
-
<div className={footerButtonsClasses}>
|
|
320
|
-
<Button
|
|
321
|
-
variant="outline-secondary"
|
|
322
|
-
size={isMobileSize ? 'sm' : 'md'}
|
|
323
|
-
onClick={handleSecondaryClick}>
|
|
324
|
-
{secondaryButtonText}
|
|
325
|
-
</Button>
|
|
326
|
-
<Button
|
|
327
|
-
variant="secondary"
|
|
328
|
-
size={isMobileSize ? 'sm' : 'md'}
|
|
329
|
-
onClick={handlePrimaryClick}>
|
|
330
|
-
{primaryButtonText}
|
|
331
|
-
</Button>
|
|
326
|
+
{/* Body */}
|
|
327
|
+
<div id={bodyId} className={bodyClasses}>
|
|
328
|
+
<div className="dialog__body-content">{children}</div>
|
|
332
329
|
</div>
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
330
|
+
|
|
331
|
+
{/* Footer */}
|
|
332
|
+
{showFooter && (
|
|
333
|
+
<div className={footerClasses}>
|
|
334
|
+
{footer ? (
|
|
335
|
+
footer
|
|
336
|
+
) : (
|
|
337
|
+
<div className={footerButtonsClasses}>
|
|
338
|
+
<Button
|
|
339
|
+
variant="outline-secondary"
|
|
340
|
+
size={isMobileSize ? 'sm' : 'md'}
|
|
341
|
+
onClick={handleSecondaryClick}>
|
|
342
|
+
{secondaryButtonText}
|
|
343
|
+
</Button>
|
|
344
|
+
<Button
|
|
345
|
+
variant="secondary"
|
|
346
|
+
size={isMobileSize ? 'sm' : 'md'}
|
|
347
|
+
onClick={handlePrimaryClick}>
|
|
348
|
+
{primaryButtonText}
|
|
349
|
+
</Button>
|
|
350
|
+
</div>
|
|
351
|
+
)}
|
|
352
|
+
</div>
|
|
353
|
+
)}
|
|
354
|
+
</motion.div>
|
|
355
|
+
</motion.div>
|
|
356
|
+
</>
|
|
357
|
+
)}
|
|
358
|
+
</AnimatePresence>
|
|
359
|
+
</LazyMotion>
|
|
339
360
|
);
|
|
340
361
|
|
|
341
362
|
// Use portal to render at the document body level
|
package/src/components/organisms/{BookingAddItem → DialogBookingAddItem}/AddItemNewService.tsx
RENAMED
|
@@ -9,12 +9,18 @@ import ServiceSelector, {
|
|
|
9
9
|
} from '../../molecules/ServiceSelector';
|
|
10
10
|
import DateTimePicker from '../DateTimePicker/DateTimePicker';
|
|
11
11
|
|
|
12
|
+
export interface AddItemNewServicePayload {
|
|
13
|
+
clients: BookingPaxClientInfo[];
|
|
14
|
+
dates?: string | string[];
|
|
15
|
+
service: ServiceType;
|
|
16
|
+
}
|
|
17
|
+
|
|
12
18
|
export interface AddItemNewServiceProps {
|
|
13
19
|
options?: ServiceOption[];
|
|
14
20
|
date: string | string[];
|
|
15
21
|
clients: BookingPaxClientInfo[];
|
|
16
22
|
onServiceChange: (service: ServiceType) => void;
|
|
17
|
-
onNext: (
|
|
23
|
+
onNext: (payload: AddItemNewServicePayload) => void;
|
|
18
24
|
onBack: () => void;
|
|
19
25
|
}
|
|
20
26
|
|
|
@@ -22,6 +28,8 @@ export const AddItemNewService: React.FC<AddItemNewServiceProps> = (props) => {
|
|
|
22
28
|
const { date, options, clients, onServiceChange, onNext, onBack } = props;
|
|
23
29
|
const [service, setService] = useState<ServiceType>('accommodation');
|
|
24
30
|
const [selectedClients, setSelectedClients] = useState<BookingPaxClientInfo[]>([]);
|
|
31
|
+
const [dates, setDates] = useState<string | string[]>(date ?? []);
|
|
32
|
+
|
|
25
33
|
const handleServiceChange = (service: ServiceType) => {
|
|
26
34
|
onServiceChange(service);
|
|
27
35
|
setService(service);
|
|
@@ -61,6 +69,7 @@ export const AddItemNewService: React.FC<AddItemNewServiceProps> = (props) => {
|
|
|
61
69
|
iconPosition="left"
|
|
62
70
|
iconBGFull={false}
|
|
63
71
|
showChevron={true}
|
|
72
|
+
onValueChange={setDates}
|
|
64
73
|
/>
|
|
65
74
|
</div>
|
|
66
75
|
</div>
|
|
@@ -85,7 +94,13 @@ export const AddItemNewService: React.FC<AddItemNewServiceProps> = (props) => {
|
|
|
85
94
|
</Button>
|
|
86
95
|
<Button
|
|
87
96
|
variant="secondary"
|
|
88
|
-
onClick={() =>
|
|
97
|
+
onClick={() =>
|
|
98
|
+
onNext({
|
|
99
|
+
clients: selectedClients,
|
|
100
|
+
dates: Array.isArray(dates) ? dates : [dates],
|
|
101
|
+
service: service,
|
|
102
|
+
})
|
|
103
|
+
}
|
|
89
104
|
disabled={selectedClients.length === 0}>
|
|
90
105
|
Next
|
|
91
106
|
</Button>
|
|
@@ -5,10 +5,10 @@ import { BookingPaxClientInfo } from '../../molecules/BookingPax';
|
|
|
5
5
|
import { ServiceOption, ServiceType } from '../../molecules/ServiceSelector';
|
|
6
6
|
import { DEFAULT_SERVICE_SELECTOR_OPTIONS } from '../../molecules/ServiceSelector/ServiceSelector';
|
|
7
7
|
import Dialog from '../Dialog/Dialog';
|
|
8
|
-
import { AddItemNewService } from './AddItemNewService';
|
|
8
|
+
import { AddItemNewService, AddItemNewServicePayload } from './AddItemNewService';
|
|
9
9
|
import { AddItemSelector, AddItemType } from './AddItemSelector';
|
|
10
10
|
|
|
11
|
-
export interface
|
|
11
|
+
export interface DialogBookingAddItemProps {
|
|
12
12
|
open: boolean;
|
|
13
13
|
serviceDate?: string | string[];
|
|
14
14
|
serviceOptions?: ServiceOption[];
|
|
@@ -16,11 +16,11 @@ export interface BookingAddItemProps {
|
|
|
16
16
|
setOpen: (open: boolean) => void;
|
|
17
17
|
onAddItem?: (type: AddItemType) => void;
|
|
18
18
|
onServiceChange?: (service: ServiceType) => void;
|
|
19
|
-
onValidatePax?: (
|
|
19
|
+
onValidatePax?: (payload: AddItemNewServicePayload) => void;
|
|
20
20
|
onBackToSelector?: () => void;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
export const
|
|
23
|
+
export const DialogBookingAddItem: React.FC<DialogBookingAddItemProps> = (props) => {
|
|
24
24
|
const {
|
|
25
25
|
open,
|
|
26
26
|
serviceDate = [],
|
|
@@ -75,7 +75,7 @@ export const BookingAddItem: React.FC<BookingAddItemProps> = (props) => {
|
|
|
75
75
|
transition={{ duration: 0.2, ease: 'easeInOut' }}
|
|
76
76
|
style={{ overflow: 'hidden' }}>
|
|
77
77
|
<div ref={contentRef}>
|
|
78
|
-
<AnimatePresence mode="wait">
|
|
78
|
+
<AnimatePresence mode="wait" initial={false}>
|
|
79
79
|
{selectedType === AddItemType.EXISTING ? (
|
|
80
80
|
<motion.div
|
|
81
81
|
key="add-item-new-service"
|
|
@@ -94,7 +94,7 @@ export const BookingAddItem: React.FC<BookingAddItemProps> = (props) => {
|
|
|
94
94
|
)
|
|
95
95
|
}
|
|
96
96
|
clients={clients}
|
|
97
|
-
onNext={(
|
|
97
|
+
onNext={(payload) => onValidatePax?.(payload)}
|
|
98
98
|
onBack={() => {
|
|
99
99
|
onBackToSelector?.();
|
|
100
100
|
setSelectedType(null);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DialogContentPolicy } from '../../molecules/DialogContentPolicy';
|
|
2
|
-
import {
|
|
2
|
+
import { CancellationPolicyItem } from '../../molecules/DialogContentPolicy/DialogCancellationList';
|
|
3
3
|
import { DialogBookingConfirm } from './DialogBookingConfirm';
|
|
4
4
|
|
|
5
5
|
export interface BookingCancellationPolicyProps {
|
|
@@ -14,7 +14,7 @@ export interface BookingCancellationPolicyProps {
|
|
|
14
14
|
/**
|
|
15
15
|
* The cancellations to display.
|
|
16
16
|
*/
|
|
17
|
-
cancellations:
|
|
17
|
+
cancellations: CancellationPolicyItem[];
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
/**
|
|
@@ -26,6 +26,11 @@ interface DialogBookingConfirmProps {
|
|
|
26
26
|
* The class name of the dialog.
|
|
27
27
|
*/
|
|
28
28
|
className?: string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Whether to close the dialog when the overlay is clicked.
|
|
32
|
+
*/
|
|
33
|
+
closeOnOverlayClick?: boolean;
|
|
29
34
|
}
|
|
30
35
|
|
|
31
36
|
/**
|
|
@@ -45,7 +50,14 @@ interface DialogBookingConfirmProps {
|
|
|
45
50
|
* @returns The DialogBookingConfirm component.
|
|
46
51
|
*/
|
|
47
52
|
export const DialogBookingConfirm = (props: DialogBookingConfirmProps) => {
|
|
48
|
-
const {
|
|
53
|
+
const {
|
|
54
|
+
open,
|
|
55
|
+
title,
|
|
56
|
+
children,
|
|
57
|
+
setOpen,
|
|
58
|
+
className,
|
|
59
|
+
closeOnOverlayClick = false,
|
|
60
|
+
} = props;
|
|
49
61
|
|
|
50
62
|
return (
|
|
51
63
|
<Dialog
|
|
@@ -54,7 +66,7 @@ export const DialogBookingConfirm = (props: DialogBookingConfirmProps) => {
|
|
|
54
66
|
title={title}
|
|
55
67
|
className={className}
|
|
56
68
|
showFooter={false}
|
|
57
|
-
closeOnOverlayClick={
|
|
69
|
+
closeOnOverlayClick={closeOnOverlayClick}>
|
|
58
70
|
{children}
|
|
59
71
|
</Dialog>
|
|
60
72
|
);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
.cancel-booking {
|
|
2
|
+
@apply space-y-6;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.cancel-booking__header {
|
|
6
|
+
@apply flex items-start gap-4;
|
|
7
|
+
.card-service-accom {
|
|
8
|
+
flex: 0 0 290px;
|
|
9
|
+
min-height: 0;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.cancel-booking__header-info {
|
|
14
|
+
@apply grow space-y-2;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.cancel-booking__cancellations {
|
|
18
|
+
@apply overflow-y-auto -mr-5 pr-2.5;
|
|
19
|
+
max-height: 350px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.cancel-booking__footer {
|
|
23
|
+
@apply flex justify-end gap-x-5 pt-9 pb-2;
|
|
24
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import Button from '@/src/components/atoms/Button/Button';
|
|
2
|
+
import CardServiceAccom from '@/src/components/atoms/CardServiceAccom/CardServiceAccom';
|
|
3
|
+
import Checkbox from '@/src/components/atoms/Checkbox/Checkbox';
|
|
4
|
+
import { Heading, Text } from '@/src/components/atoms/Typography/Typography';
|
|
5
|
+
import {
|
|
6
|
+
CancellationPolicyItem,
|
|
7
|
+
CancellationsList,
|
|
8
|
+
} from '@/src/components/molecules/DialogContentPolicy/DialogCancellationList';
|
|
9
|
+
import { PaxChips, PaxCount } from '@/src/components/molecules/PaxChips/PaxChips';
|
|
10
|
+
import React, { useState } from 'react';
|
|
11
|
+
import './CancelBooking.css';
|
|
12
|
+
|
|
13
|
+
export interface CancelBookingProps {
|
|
14
|
+
bookingNo: string;
|
|
15
|
+
pax: PaxCount;
|
|
16
|
+
bookingDetails: {
|
|
17
|
+
number: string;
|
|
18
|
+
agency: string;
|
|
19
|
+
client: string;
|
|
20
|
+
};
|
|
21
|
+
cancellationPolicies: CancellationPolicyItem[];
|
|
22
|
+
onSubmit: () => void;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const CancelBooking: React.FC<CancelBookingProps> = (props) => {
|
|
26
|
+
const { bookingNo, cancellationPolicies, pax, bookingDetails, onSubmit } = props;
|
|
27
|
+
const [accepted, setAccepted] = useState(false);
|
|
28
|
+
|
|
29
|
+
const bookingDetailsList = [
|
|
30
|
+
{
|
|
31
|
+
label: 'Booking no. :',
|
|
32
|
+
value: bookingDetails.number,
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
label: 'Agency :',
|
|
36
|
+
value: bookingDetails.agency,
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
label: 'Client type :',
|
|
40
|
+
value: bookingDetails.client,
|
|
41
|
+
},
|
|
42
|
+
];
|
|
43
|
+
|
|
44
|
+
return (
|
|
45
|
+
<div className="cancel-booking">
|
|
46
|
+
<Text>
|
|
47
|
+
This action is irreversible, and you won’t be able to undo it. If you are certain
|
|
48
|
+
you want to cancel you booking, please confirm below.
|
|
49
|
+
</Text>
|
|
50
|
+
<div className="cancel-booking__header">
|
|
51
|
+
<div className="cancel-booking__header-info">
|
|
52
|
+
<Heading level={6} as="h3" color="brand">
|
|
53
|
+
Booking °{bookingNo}
|
|
54
|
+
</Heading>
|
|
55
|
+
<Text>Booking cancellation</Text>
|
|
56
|
+
<PaxChips pax={pax} />
|
|
57
|
+
</div>
|
|
58
|
+
<CardServiceAccom className="space-y-4">
|
|
59
|
+
<Text color="accent" variant="bold">
|
|
60
|
+
Documents details
|
|
61
|
+
</Text>
|
|
62
|
+
<div className="space-y-2">
|
|
63
|
+
{bookingDetailsList.map((detail) => (
|
|
64
|
+
<div key={detail.label} className="grid grid-cols-2 gap-x-4">
|
|
65
|
+
<Text variant="bold" size="sm" leading="4" as="span">
|
|
66
|
+
{detail.label}
|
|
67
|
+
</Text>
|
|
68
|
+
<Text size="sm" leading="4" as="span">
|
|
69
|
+
{detail.value}
|
|
70
|
+
</Text>
|
|
71
|
+
</div>
|
|
72
|
+
))}
|
|
73
|
+
</div>
|
|
74
|
+
</CardServiceAccom>
|
|
75
|
+
</div>
|
|
76
|
+
<div className="cancel-booking__cancellations">
|
|
77
|
+
<CancellationsList cancellations={cancellationPolicies} />
|
|
78
|
+
</div>
|
|
79
|
+
<div className="cancel-booking__footer">
|
|
80
|
+
<div className="flex gap-x-2.5 items-center">
|
|
81
|
+
<Checkbox
|
|
82
|
+
checked={accepted}
|
|
83
|
+
onChange={setAccepted}
|
|
84
|
+
label="I've read and accept the cancellation policy."
|
|
85
|
+
labelPosition="leading"
|
|
86
|
+
/>
|
|
87
|
+
</div>
|
|
88
|
+
<Button
|
|
89
|
+
className="w-[250px]"
|
|
90
|
+
variant="secondary"
|
|
91
|
+
disabled={!accepted}
|
|
92
|
+
onClick={onSubmit}>
|
|
93
|
+
Confirm cancellation
|
|
94
|
+
</Button>
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
);
|
|
98
|
+
};
|
|
@@ -2,15 +2,15 @@ import React from 'react';
|
|
|
2
2
|
import Button from '../../atoms/Button/Button';
|
|
3
3
|
import { Text } from '../../atoms/Typography/Typography';
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
CancellationPolicyItem,
|
|
6
|
+
CancellationsList,
|
|
7
7
|
} from '../../molecules/DialogContentPolicy/DialogCancellationList';
|
|
8
8
|
|
|
9
9
|
export interface CancelPolicyProps {
|
|
10
10
|
/**
|
|
11
11
|
* The cancellations to display.
|
|
12
12
|
*/
|
|
13
|
-
cancellations:
|
|
13
|
+
cancellations: CancellationPolicyItem[];
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Whether the policy is transgressed.
|
|
@@ -50,7 +50,7 @@ export const CancelPolicy: React.FC<CancelPolicyProps> = (props) => {
|
|
|
50
50
|
</Text>
|
|
51
51
|
)}
|
|
52
52
|
<div className="max-h-[400px] overflow-y-auto -mr-5 pr-2.5">
|
|
53
|
-
<
|
|
53
|
+
<CancellationsList cancellations={cancellations} />
|
|
54
54
|
</div>
|
|
55
55
|
|
|
56
56
|
<div className="flex justify-end mt-9">
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DialogBookingConfirm } from '../DialogBookingConfirm';
|
|
3
|
+
import { CancelBooking } from './CancelBooking/CancelBooking';
|
|
3
4
|
import { CancelPolicy } from './CancelPolicy';
|
|
4
5
|
import { ConfirmDelete } from './ConfirmDelete/ConfirmDelete';
|
|
5
6
|
import { FromList } from './FromList';
|
|
6
7
|
|
|
7
|
-
export interface
|
|
8
|
+
export interface DialogCancelServiceProps {
|
|
8
9
|
open: boolean;
|
|
9
10
|
children?: React.ReactNode;
|
|
10
11
|
title?: string;
|
|
@@ -12,7 +13,7 @@ export interface CancelServiceProps {
|
|
|
12
13
|
setOpen: (open: boolean) => void;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
|
-
export const
|
|
16
|
+
export const DialogCancelService = (props: DialogCancelServiceProps) => {
|
|
16
17
|
const { open, children, title, className, setOpen } = props;
|
|
17
18
|
return (
|
|
18
19
|
<DialogBookingConfirm
|
|
@@ -25,6 +26,7 @@ export const CancelService = (props: CancelServiceProps) => {
|
|
|
25
26
|
);
|
|
26
27
|
};
|
|
27
28
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
DialogCancelService.FromList = FromList;
|
|
30
|
+
DialogCancelService.Confirm = ConfirmDelete;
|
|
31
|
+
DialogCancelService.CancelPolicy = CancelPolicy;
|
|
32
|
+
DialogCancelService.Booking = CancelBooking;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './DialogCancelService';
|
|
2
|
+
|
|
3
|
+
export type { CancelBookingProps } from './CancelBooking/CancelBooking';
|
|
4
|
+
export type { CancelPolicyProps } from './CancelPolicy';
|
|
5
|
+
export type { ConfirmDeleteProps } from './ConfirmDelete/ConfirmDelete';
|
|
6
|
+
export type { FromListProps } from './FromList';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
.dialog-comparison__list {
|
|
2
|
+
@apply max-w-full overflow-x-auto pb-6;
|
|
3
|
+
@apply flex items-start gap-x-6;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.dialog-comparison__item {
|
|
7
|
+
@apply px-5 py-6 space-y-4;
|
|
8
|
+
flex: 0 0 572px;
|
|
9
|
+
border: solid 1px var(--color-border-medium);
|
|
10
|
+
border-radius: var(--border-radius-rounded-xl);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.dialog-comparison__footer {
|
|
14
|
+
@apply flex justify-end pt-9 pb-2;
|
|
15
|
+
.button {
|
|
16
|
+
width: 250px;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.dialog-comparison__filter {
|
|
21
|
+
@apply mb-6;
|
|
22
|
+
max-width: 364px;
|
|
23
|
+
}
|