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,14 +1,3 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
2
|
import { Text } from '../../atoms/Typography/Typography';
|
|
14
3
|
import { ServiceInfo } from '../../molecules/ServiceInfo/ServiceInfo';
|
|
@@ -16,5 +5,5 @@ import { ServiceLanguages } from '../../molecules/ServiceLanguages/ServiceLangua
|
|
|
16
5
|
import { TextWithBorderBottom } from '../../molecules/TextWithBorderBottom/TextWithBorderBottom';
|
|
17
6
|
export function DetailsContentExcursion(props) {
|
|
18
7
|
var excursionTitle = props.excursionTitle, excursionDescription = props.excursionDescription, pickUpPoint = props.pickUpPoint, serviceInfos = props.serviceInfos;
|
|
19
|
-
return (_jsxs("div",
|
|
8
|
+
return (_jsxs("div", { className: "space-y-6", children: [_jsxs("div", { className: "space-y-4", children: [_jsx(TextWithBorderBottom, { variant: "bold", size: "xl", children: excursionTitle }), _jsx(Text, { variant: "medium", leading: "5", children: excursionDescription })] }), _jsxs("div", { className: "space-y-2", children: [_jsx(Text, { variant: "bold", size: "sm", leading: "4", children: "Pick-up point:" }), _jsx(Text, { size: "sm", leading: "4", children: pickUpPoint })] }), _jsxs(ServiceInfo, { children: [_jsx(ServiceInfo.Item, { icon: "micro", label: "Languages", children: _jsx(ServiceLanguages, { languages: serviceInfos.languages }) }), _jsx(ServiceInfo.Item, { icon: "stopwatch", label: "Duration", children: serviceInfos.duration }), _jsx(ServiceInfo.Item, { icon: "utensils", label: "Meal", children: serviceInfos.meal }), _jsx(ServiceInfo.Item, { icon: "bike", label: "Difficulty", children: serviceInfos.difficulty }), serviceInfos.withTransfer && (_jsx(ServiceInfo.Item, { icon: "bus", label: "Prise en charge inclus" }))] })] }));
|
|
20
9
|
}
|
|
@@ -25,5 +25,5 @@ import { DetailsContentExcursion, } from './DetailsContentExcursion';
|
|
|
25
25
|
import TabServiceDetails from './TabServiceDetails';
|
|
26
26
|
export var Excursion = function (props) {
|
|
27
27
|
var images = props.images, rest = __rest(props, ["images"]);
|
|
28
|
-
return (_jsx(TabServiceDetails.Layout,
|
|
28
|
+
return (_jsx(TabServiceDetails.Layout, { title: "Excursion", icon: "map", images: images, children: _jsx(DetailsContentExcursion, __assign({}, rest)) }));
|
|
29
29
|
};
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
2
|
import { useMobile } from '../../../../hooks/useMobile';
|
|
14
3
|
import { cn } from '../../../../lib/utils';
|
|
@@ -35,5 +24,5 @@ import './TabServiceDetailsLayout.css';
|
|
|
35
24
|
export default function TabServiceDetailsLayout(props) {
|
|
36
25
|
var title = props.title, icon = props.icon, isOnRequest = props.isOnRequest, children = props.children, images = props.images, mobileContent = props.mobileContent;
|
|
37
26
|
var isMobile = useMobile(1280).isMobile;
|
|
38
|
-
return (_jsxs("div", { children: [_jsxs("div",
|
|
27
|
+
return (_jsxs("div", { children: [_jsxs("div", { className: "details-service__layout", children: [_jsxs(TextWithIcon, { icon: icon, color: isOnRequest ? 'yellow' : 'accent', textVariant: "bold", children: [title, isOnRequest && _jsx(Chip, { color: "yellow", children: "On request" })] }), _jsxs("div", { className: "details-service__layout-flex", children: [_jsxs("div", { className: "details-service__layout-flex-images", children: [images[0] && (_jsx("figure", { className: cn(images.length === 1 && 'single-image'), children: _jsx("img", { src: images[0], alt: title, width: 400, height: 400 }) }, images[0])), images.length > 1 && (_jsx("div", { className: "details-service__layout-flex-images-grid", children: images.slice(1, 3).map(function (image) { return (_jsx("figure", { children: _jsx("img", { src: image, alt: title, width: 400, height: 400 }) }, image)); }) }))] }), _jsx("div", { className: "details-service__layout-content", children: _jsx("div", { className: "details-service__layout-content-body", children: children }) })] })] }), isMobile && mobileContent] }));
|
|
39
28
|
}
|
|
@@ -15,5 +15,5 @@ import TabCancellationPolicy from '../TabCancellationPolicy/TabCancellationPolic
|
|
|
15
15
|
import { DetailContentTransfer, } from './DetailContentTransfer';
|
|
16
16
|
export var Transfer = function (props) {
|
|
17
17
|
var image = props.image, transferData = props.transferData, transferDetails = props.transferDetails;
|
|
18
|
-
return (_jsx(TabCancellationPolicy.Layout,
|
|
18
|
+
return (_jsx(TabCancellationPolicy.Layout, { title: "Transfer", icon: "car", image: image, header: _jsx(CancellationHeader, { children: _jsx(CancellationHeader.Transfer, { data: transferData }) }), children: _jsx(DetailContentTransfer, __assign({}, transferDetails)) }));
|
|
19
19
|
};
|
|
@@ -2202,7 +2202,7 @@
|
|
|
2202
2202
|
&::after {
|
|
2203
2203
|
content: '';
|
|
2204
2204
|
position: absolute;
|
|
2205
|
-
inset: -1px;
|
|
2205
|
+
inset: -1px -1px 1px -1px;
|
|
2206
2206
|
pointer-events: none;
|
|
2207
2207
|
max-width: 100%;
|
|
2208
2208
|
background-image:
|
|
@@ -2289,48 +2289,64 @@
|
|
|
2289
2289
|
|
|
2290
2290
|
.table__total {
|
|
2291
2291
|
tr {
|
|
2292
|
-
border: 1px solid
|
|
2292
|
+
border: 1px solid var(--divider-color-default);
|
|
2293
|
+
border-left: none;
|
|
2294
|
+
border-right: none;
|
|
2293
2295
|
position: relative;
|
|
2294
|
-
&::after {
|
|
2295
|
-
content: '';
|
|
2296
|
-
position: absolute;
|
|
2297
|
-
inset: -1px;
|
|
2298
|
-
pointer-events: none;
|
|
2299
|
-
background-image:
|
|
2300
|
-
repeating-linear-gradient(
|
|
2301
|
-
to right,
|
|
2302
|
-
var(--divider-color-default) 0,
|
|
2303
|
-
var(--divider-color-default) 12px,
|
|
2304
|
-
transparent 12px,
|
|
2305
|
-
transparent 24px
|
|
2306
|
-
),
|
|
2307
|
-
repeating-linear-gradient(
|
|
2308
|
-
to right,
|
|
2309
|
-
var(--divider-color-default) 0,
|
|
2310
|
-
var(--divider-color-default) 12px,
|
|
2311
|
-
transparent 12px,
|
|
2312
|
-
transparent 24px
|
|
2313
|
-
);
|
|
2314
|
-
background-size:
|
|
2315
|
-
100% 1px,
|
|
2316
|
-
100% 1px;
|
|
2317
|
-
background-position: top, bottom;
|
|
2318
|
-
background-repeat: repeat-x, repeat-x;
|
|
2319
|
-
}
|
|
2320
2296
|
}
|
|
2321
2297
|
td {
|
|
2322
2298
|
padding-block: var(--spacing-padding-px-4);
|
|
2323
2299
|
&:last-child {
|
|
2324
|
-
width: 160px
|
|
2325
|
-
@media (min-width: 1680px) {
|
|
2326
|
-
|
|
2327
|
-
|
|
2300
|
+
/* width: 160px;*/
|
|
2301
|
+
/* @media (min-width: 1680px) {
|
|
2302
|
+
} */
|
|
2303
|
+
width: var(--last-column-width);
|
|
2328
2304
|
}
|
|
2329
2305
|
}
|
|
2330
2306
|
}
|
|
2331
2307
|
|
|
2308
|
+
.table__total--dashed tr {
|
|
2309
|
+
border: 1px solid transparent;
|
|
2310
|
+
position: relative;
|
|
2311
|
+
&::after {
|
|
2312
|
+
content: '';
|
|
2313
|
+
position: absolute;
|
|
2314
|
+
inset: -1px;
|
|
2315
|
+
pointer-events: none;
|
|
2316
|
+
background-image:
|
|
2317
|
+
repeating-linear-gradient(
|
|
2318
|
+
to right,
|
|
2319
|
+
var(--divider-color-default) 0,
|
|
2320
|
+
var(--divider-color-default) 12px,
|
|
2321
|
+
transparent 12px,
|
|
2322
|
+
transparent 24px
|
|
2323
|
+
),
|
|
2324
|
+
repeating-linear-gradient(
|
|
2325
|
+
to right,
|
|
2326
|
+
var(--divider-color-default) 0,
|
|
2327
|
+
var(--divider-color-default) 12px,
|
|
2328
|
+
transparent 12px,
|
|
2329
|
+
transparent 24px
|
|
2330
|
+
);
|
|
2331
|
+
background-size:
|
|
2332
|
+
100% 1px,
|
|
2333
|
+
100% 1px;
|
|
2334
|
+
background-position: top, bottom;
|
|
2335
|
+
background-repeat: repeat-x, repeat-x;
|
|
2336
|
+
}
|
|
2337
|
+
}
|
|
2338
|
+
|
|
2332
2339
|
.table__row-with-children {
|
|
2333
2340
|
> td {
|
|
2334
2341
|
padding: 0;
|
|
2335
2342
|
}
|
|
2343
|
+
.table__row-nested {
|
|
2344
|
+
border-top: none;
|
|
2345
|
+
}
|
|
2346
|
+
.table .table__nested-wrapper tr {
|
|
2347
|
+
border-top: none;
|
|
2348
|
+
&:last-child {
|
|
2349
|
+
border-bottom: solid 1px var(--color-surface-300);
|
|
2350
|
+
}
|
|
2351
|
+
}
|
|
2336
2352
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { PaginationProps } from '../../molecules/Pagination/Pagination';
|
|
3
2
|
import './Table.css';
|
|
4
3
|
import { ColumnType } from './TableCell';
|
|
@@ -31,6 +30,10 @@ export interface TableProps<T extends TableRowData<T>> {
|
|
|
31
30
|
totalRows?: Record<string, string | number>;
|
|
32
31
|
/** Whether the child rows are visible */
|
|
33
32
|
isGrouped?: boolean;
|
|
33
|
+
/** Whether the total rows are bordered with a dashed border */
|
|
34
|
+
isTotalBorderDash?: boolean;
|
|
35
|
+
/** Whether the last column is visible */
|
|
36
|
+
totalSubstractedSpace?: number;
|
|
34
37
|
}
|
|
35
38
|
/**
|
|
36
39
|
* A table component for displaying structured data in rows and columns. Supports customizable column definitions and data rows.
|
|
@@ -10,6 +10,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { priceFormatter } from '../../../lib/price-formatter';
|
|
13
14
|
import { cn } from '../../../lib/utils';
|
|
14
15
|
import { AnimatePresence, domAnimation, LazyMotion } from 'motion/react';
|
|
15
16
|
import * as motion from 'motion/react-m';
|
|
@@ -42,12 +43,12 @@ var NestedContent = function (_a) {
|
|
|
42
43
|
}
|
|
43
44
|
}, [children]);
|
|
44
45
|
var Tag = isGrouped ? 'div' : motion.div;
|
|
45
|
-
return (_jsx(Tag,
|
|
46
|
+
return (_jsx(Tag, { ref: contentRef, initial: { height: 0, opacity: 0 }, animate: { height: height, opacity: 1 }, exit: { height: 0, opacity: 0 }, transition: {
|
|
46
47
|
height: { duration: 0.2, ease: 'easeInOut' },
|
|
47
48
|
opacity: { duration: 0.15, ease: 'easeInOut' },
|
|
48
|
-
}, className: "table__nested-wrapper"
|
|
49
|
+
}, className: "table__nested-wrapper", children: _jsx("table", { className: "table", children: _jsx("tbody", { children: children.map(function (child, childIndex) { return (_jsx("tr", { className: cn(child.className, {
|
|
49
50
|
'table__row-clickable': onClickRow,
|
|
50
|
-
}), onClick: function (e) { return onClickRow === null || onClickRow === void 0 ? void 0 : onClickRow(e, child); }
|
|
51
|
+
}), onClick: function (e) { return onClickRow === null || onClickRow === void 0 ? void 0 : onClickRow(e, child); }, children: _jsx(TableCell, { columns: columns, row: child, rowIndex: childIndex, childIndex: childIndex }) }, "ch-".concat(rowIndex, "-").concat(childIndex))); }) }) }) }));
|
|
51
52
|
};
|
|
52
53
|
/**
|
|
53
54
|
* A table component for displaying structured data in rows and columns. Supports customizable column definitions and data rows.
|
|
@@ -65,33 +66,35 @@ var NestedContent = function (_a) {
|
|
|
65
66
|
*
|
|
66
67
|
*/
|
|
67
68
|
export var Table = function (props) {
|
|
68
|
-
var columns = props.columns, data = props.data, pagination = props.pagination, isGrouped = props.isGrouped, _a = props.totalRows, totalRows = _a === void 0 ? {} : _a, onClickRow = props.onClickRow;
|
|
69
|
+
var columns = props.columns, data = props.data, pagination = props.pagination, isGrouped = props.isGrouped, _a = props.totalRows, totalRows = _a === void 0 ? {} : _a, _b = props.isTotalBorderDash, isTotalBorderDash = _b === void 0 ? true : _b, _c = props.totalSubstractedSpace, totalSubstractedSpace = _c === void 0 ? 10 : _c, onClickRow = props.onClickRow;
|
|
69
70
|
var normalizeLastColumnWidth = function () {
|
|
70
71
|
var width = columns[columns.length - 1].width;
|
|
71
72
|
if (typeof width === 'number') {
|
|
72
|
-
return "".concat(width -
|
|
73
|
+
return "".concat(width - totalSubstractedSpace, "px");
|
|
73
74
|
}
|
|
74
75
|
return width;
|
|
75
76
|
};
|
|
76
77
|
var hasTotal = Object.keys(totalRows).length > 0;
|
|
77
|
-
return (_jsx(LazyMotion,
|
|
78
|
+
return (_jsx(LazyMotion, { features: domAnimation, children: _jsxs("div", { children: [_jsx("div", { className: cn('table-container', { 'table-container--no-total': !hasTotal }), children: _jsxs("table", { className: "table", children: [_jsx("thead", { className: "table__header", children: _jsx("tr", { children: columns.map(function (column, columnIndex) { return (_jsx("th", { className: column.className, style: column.width
|
|
78
79
|
? { minWidth: column.width, width: column.width }
|
|
79
|
-
: undefined
|
|
80
|
+
: undefined, children: _jsx(Text, { variant: "bold", size: "sm", children: column.header }) }, "hd-".concat(columnIndex))); }) }) }), _jsx("tbody", { className: "table__body", children: data.map(function (row, rowIndex) {
|
|
80
81
|
var _a, _b;
|
|
81
82
|
var hasVisibleChildren = (_a = row.children) === null || _a === void 0 ? void 0 : _a.some(function (child) { return child.visible; });
|
|
82
|
-
var defaultTable = (_jsx("tr",
|
|
83
|
+
var defaultTable = (_jsx("tr", { className: cn(row.className, {
|
|
83
84
|
'table__row-nested': (_b = row.children) === null || _b === void 0 ? void 0 : _b.length,
|
|
84
85
|
'table__row-clickable': onClickRow,
|
|
85
|
-
}), onClick: function (e) { return onClickRow === null || onClickRow === void 0 ? void 0 : onClickRow(e, row); }
|
|
86
|
-
return (_jsx(Fragment, { children: isGrouped ? (row.children && row.children.length > 0 ? (_jsx("tr",
|
|
86
|
+
}), onClick: function (e) { return onClickRow === null || onClickRow === void 0 ? void 0 : onClickRow(e, row); }, children: _jsx(TableCell, { columns: columns, row: row, rowIndex: rowIndex }) }));
|
|
87
|
+
return (_jsx(Fragment, { children: isGrouped ? (row.children && row.children.length > 0 ? (_jsx("tr", { className: "table__row-grouped", children: _jsx("td", { colSpan: columns.length, children: _jsx(NestedContent, { isGrouped: isGrouped, rowIndex: rowIndex, columns: columns, children: row.children || [], onClickRow: onClickRow }) }) })) : (defaultTable)) : !row.children ? (defaultTable) : (_jsx("tr", { className: "table__row-with-children", onClick: function (e) { return onClickRow === null || onClickRow === void 0 ? void 0 : onClickRow(e, row); }, children: _jsx("td", { colSpan: columns.length, className: cn({
|
|
87
88
|
'table__children--visible': hasVisibleChildren,
|
|
88
|
-
})
|
|
89
|
+
}), children: _jsx("table", { className: "table", children: _jsxs("tbody", { children: [defaultTable, _jsx(AnimatePresence, { initial: false, children: hasVisibleChildren && (_jsx("tr", { className: cn('table__no-hover', {
|
|
89
90
|
'table__row-nested': row.children && row.children.length > 0,
|
|
90
|
-
})
|
|
91
|
-
}) })
|
|
91
|
+
}), children: _jsx("td", { colSpan: columns.length, className: "table__cell-nested", children: _jsx(NestedContent, { rowIndex: rowIndex, columns: columns, children: row.children || [] }) }) }, "nested-".concat(rowIndex))) })] }) }) }) })) }, "rw-".concat(rowIndex)));
|
|
92
|
+
}) })] }) }), hasTotal && (_jsx("div", { className: 'table__total-container', children: _jsx("table", { className: "table", children: _jsx("tbody", { className: cn('table__total', {
|
|
93
|
+
'table__total--dashed': isTotalBorderDash,
|
|
94
|
+
}), children: _jsxs("tr", { children: [_jsx("td", { colSpan: columns.length - 1 }), _jsx("td", { style: {
|
|
92
95
|
'--last-column-width': normalizeLastColumnWidth(),
|
|
93
|
-
}
|
|
96
|
+
}, children: _jsxs("div", { className: "relative", children: [_jsxs(Text, { size: "md", variant: "bold", className: "absolute top-0 -left-3 -translate-x-full", children: ["Total :", ' '] }), _jsx("div", { children: Object.entries(totalRows).map(function (_a) {
|
|
94
97
|
var currency = _a[0], total = _a[1];
|
|
95
|
-
return (_jsx("div", { children:
|
|
96
|
-
}) })] })
|
|
98
|
+
return (_jsx("div", { children: _jsx(Text, { size: "md", variant: "bold", children: priceFormatter(total, currency) }) }, currency));
|
|
99
|
+
}) })] }) })] }) }) }) })), pagination && (_jsx("div", { className: "flex justify-end mt-4", children: _jsx(Pagination, __assign({}, pagination)) }))] }) }));
|
|
97
100
|
};
|
|
@@ -13,4 +13,4 @@ export interface TableCellProps<T = TableRowData> {
|
|
|
13
13
|
rowIndex: number;
|
|
14
14
|
childIndex?: number;
|
|
15
15
|
}
|
|
16
|
-
export declare const TableCell: <T extends TableRowData
|
|
16
|
+
export declare const TableCell: <T extends TableRowData>(props: TableCellProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
1
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
13
2
|
export var TableCell = function (props) {
|
|
14
3
|
var columns = props.columns, row = props.row, rowIndex = props.rowIndex, childIndex = props.childIndex;
|
|
15
|
-
return (_jsx(_Fragment, { children: columns.map(function (column, columnIndex) { return (_jsx("td",
|
|
4
|
+
return (_jsx(_Fragment, { children: columns.map(function (column, columnIndex) { return (_jsx("td", { style: column.width ? { minWidth: column.width, width: column.width } : undefined, children: column.key === 'actions' ? (_jsx("div", { children: column.cell({}, row, rowIndex, childIndex) })) : (column.cell(row[column.key], row, rowIndex, childIndex)) }, "cl-".concat(rowIndex, "-").concat(columnIndex))); }) }));
|
|
16
5
|
};
|
|
@@ -1,19 +1,8 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
2
|
import Button from '../../../atoms/Button/Button';
|
|
14
|
-
import Chip from '../../../atoms/Chip/Chip';
|
|
15
3
|
import { Text } from '../../../atoms/Typography/Typography';
|
|
16
4
|
import { DateDisplay } from '../../../molecules/DateDisplay/DateDisplay';
|
|
5
|
+
import { PaxChips } from '../../../molecules/PaxChips/PaxChips';
|
|
17
6
|
import { ServiceType, } from '../../../../types/table/index';
|
|
18
7
|
import { RowAccommodation } from '../../../molecules/TableServiceItem/RowAccommodation';
|
|
19
8
|
import { RowExcursion } from '../../../molecules/TableServiceItem/RowExcursion';
|
|
@@ -114,35 +103,30 @@ export var bookingCancelServiceColumns = function (params) {
|
|
|
114
103
|
width: 329,
|
|
115
104
|
cell: function (value, raw) {
|
|
116
105
|
var pax = {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
106
|
+
adult: 0,
|
|
107
|
+
teen: 0,
|
|
108
|
+
infant: 0,
|
|
109
|
+
child: 0,
|
|
121
110
|
};
|
|
122
111
|
switch (value) {
|
|
123
112
|
case ServiceType.ACCOMMODATION:
|
|
124
113
|
case ServiceType.EXCURSION:
|
|
125
114
|
case ServiceType.TRANSFER:
|
|
126
115
|
var item = raw;
|
|
127
|
-
pax.
|
|
128
|
-
pax.
|
|
129
|
-
pax.
|
|
130
|
-
pax.
|
|
116
|
+
pax.adult = item.AdultCount;
|
|
117
|
+
pax.teen = item.TeenCount;
|
|
118
|
+
pax.infant = item.InfantCount;
|
|
119
|
+
pax.child = item.ChildCount;
|
|
131
120
|
break;
|
|
132
121
|
case ServiceType.OTHER_SERVICE:
|
|
133
122
|
var otherService = raw;
|
|
134
|
-
pax.
|
|
135
|
-
pax.
|
|
136
|
-
pax.
|
|
137
|
-
pax.
|
|
123
|
+
pax.adult = otherService.adult_pax;
|
|
124
|
+
pax.teen = otherService.teen_pax;
|
|
125
|
+
pax.infant = otherService.infant_pax;
|
|
126
|
+
pax.child = otherService.child_pax;
|
|
138
127
|
break;
|
|
139
128
|
}
|
|
140
|
-
return
|
|
141
|
-
var _a;
|
|
142
|
-
var count = (_a = pax[k]) !== null && _a !== void 0 ? _a : 0;
|
|
143
|
-
var type = count > 0 ? 'filled' : 'outline';
|
|
144
|
-
return (_jsx(Chip, { label: "".concat(k, " ").concat(count), size: "sm", color: "accent", type: type, className: "!px-3" }, "pax-".concat(index)));
|
|
145
|
-
}) })));
|
|
129
|
+
return _jsx(PaxChips, { pax: pax });
|
|
146
130
|
},
|
|
147
131
|
},
|
|
148
132
|
{
|
|
@@ -175,7 +159,7 @@ export var bookingCancelServiceColumns = function (params) {
|
|
|
175
159
|
break;
|
|
176
160
|
}
|
|
177
161
|
var showRemoveButton = onRemove && raw.Type !== ServiceType.OTHER_SERVICE && childIndex === 0;
|
|
178
|
-
return (_jsxs("div",
|
|
162
|
+
return (_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs(Text, { size: "sm", variant: "bold", children: [total.currency, " ", total.total] }), showRemoveButton && (_jsx(Button, { variant: "destructive", size: "sm", onClick: function () { return onRemove(raw, index, childIndex); }, children: "Remove" }))] }));
|
|
179
163
|
},
|
|
180
164
|
},
|
|
181
165
|
];
|
|
@@ -1,20 +1,9 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
2
|
import Button from '../../../atoms/Button/Button';
|
|
14
|
-
import Chip from '../../../atoms/Chip/Chip';
|
|
15
3
|
import { Text } from '../../../atoms/Typography/Typography';
|
|
16
4
|
import { ActionDropdown } from '../../../molecules/ActionDropdown/ActionDropdown';
|
|
17
5
|
import { DateDisplay } from '../../../molecules/DateDisplay/DateDisplay';
|
|
6
|
+
import { PaxChips } from '../../../molecules/PaxChips/PaxChips';
|
|
18
7
|
import { actionDropdownData } from '../constant';
|
|
19
8
|
export var bookingColumns = function (_a) {
|
|
20
9
|
var onExpand = _a.onExpand, onAction = _a.onAction;
|
|
@@ -23,20 +12,20 @@ export var bookingColumns = function (_a) {
|
|
|
23
12
|
header: 'Quote nb.',
|
|
24
13
|
key: 'booking_id',
|
|
25
14
|
width: 150,
|
|
26
|
-
cell: function (value) { return (_jsx(Text,
|
|
15
|
+
cell: function (value) { return (_jsx(Text, { variant: "medium", size: "sm", children: value })); },
|
|
27
16
|
},
|
|
28
17
|
{
|
|
29
18
|
header: 'Client name',
|
|
30
19
|
key: 'agency_name',
|
|
31
20
|
width: 150,
|
|
32
|
-
cell: function (value) { return (_jsx(Text,
|
|
21
|
+
cell: function (value) { return (_jsx(Text, { variant: "medium", size: "sm", children: value })); },
|
|
33
22
|
},
|
|
34
23
|
{
|
|
35
24
|
header: 'Type',
|
|
36
25
|
key: 'status',
|
|
37
26
|
width: 145,
|
|
38
27
|
cell: function (value) {
|
|
39
|
-
return (_jsx(Text,
|
|
28
|
+
return (_jsx(Text, { variant: "medium", size: "sm", children: "STD" }));
|
|
40
29
|
},
|
|
41
30
|
},
|
|
42
31
|
{
|
|
@@ -56,11 +45,7 @@ export var bookingColumns = function (_a) {
|
|
|
56
45
|
var paxDetails = value;
|
|
57
46
|
var paxDetailsKeys = Object.keys(paxDetails);
|
|
58
47
|
if (paxDetailsKeys.length) {
|
|
59
|
-
return
|
|
60
|
-
return (_jsx(Chip, { label: "".concat(key, " ").concat(paxDetails[key]), type: paxDetails[key] > 0
|
|
61
|
-
? 'filled'
|
|
62
|
-
: 'outline', color: "accent", size: "sm" }));
|
|
63
|
-
}) })));
|
|
48
|
+
return _jsx(PaxChips, { pax: paxDetails });
|
|
64
49
|
}
|
|
65
50
|
return _jsx(_Fragment, {});
|
|
66
51
|
},
|
|
@@ -69,14 +54,14 @@ export var bookingColumns = function (_a) {
|
|
|
69
54
|
header: 'Created by',
|
|
70
55
|
key: 'created_by',
|
|
71
56
|
width: 160,
|
|
72
|
-
cell: function (value) { return (_jsx(Text,
|
|
57
|
+
cell: function (value) { return (_jsx(Text, { variant: "medium", size: "sm", children: value })); },
|
|
73
58
|
},
|
|
74
59
|
{
|
|
75
60
|
header: '',
|
|
76
61
|
key: 'actions',
|
|
77
62
|
width: 232,
|
|
78
63
|
cell: function (_value, raw) {
|
|
79
|
-
return (_jsx("div", { children: _jsxs("div",
|
|
64
|
+
return (_jsx("div", { children: _jsxs("div", { className: "flex items-center gap-x-8", children: [_jsxs("div", { className: "flex items-center gap-x-3", children: [_jsx(Button, { variant: "secondary", size: "sm", className: "w-[89px]", children: "Proforma" }), _jsx(Button, { variant: "outline-secondary", size: "sm", className: "w-[89px]", children: "Voucher" })] }), _jsx(ActionDropdown, { data: actionDropdownData(onAction) })] }) }));
|
|
80
65
|
},
|
|
81
66
|
},
|
|
82
67
|
];
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { Text } from '../../../atoms/Typography/Typography';
|
|
3
|
+
import { RowAccommodation } from '../../../molecules/TableServiceItem/RowAccommodation';
|
|
4
|
+
import { RowExcursion } from '../../../molecules/TableServiceItem/RowExcursion';
|
|
5
|
+
import { RowOtherServices } from '../../../molecules/TableServiceItem/RowOtherServices';
|
|
6
|
+
import { RowTransfer } from '../../../molecules/TableServiceItem/RowTransfer';
|
|
7
|
+
import { priceFormatter } from '../../../../lib/price-formatter';
|
|
8
|
+
import { ServiceType } from '../../../../types/table/index';
|
|
9
|
+
import { isComparisonAccommodation, isComparisonExcursion, isComparisonOtherService, isComparisonTransfer, } from '../../DialogComparison/DialogComparison';
|
|
10
|
+
var COLUMNS_WIDTH = 532 / 3;
|
|
11
|
+
export var comparisonColumns = function () {
|
|
12
|
+
return [
|
|
13
|
+
{
|
|
14
|
+
header: 'Item',
|
|
15
|
+
key: 'Type',
|
|
16
|
+
width: COLUMNS_WIDTH,
|
|
17
|
+
cell: function (value, raw) {
|
|
18
|
+
if (isComparisonAccommodation(raw)) {
|
|
19
|
+
var accom = raw;
|
|
20
|
+
return (_jsx(RowAccommodation.FirstCol, { serviceName: raw.HotelName, offers: raw.Offers, status: raw.RoomStatus }));
|
|
21
|
+
}
|
|
22
|
+
if (isComparisonExcursion(raw)) {
|
|
23
|
+
return _jsx(RowExcursion.FirstCol, { serviceName: raw.ExcursionName });
|
|
24
|
+
}
|
|
25
|
+
if (isComparisonTransfer(raw)) {
|
|
26
|
+
var transfer = raw;
|
|
27
|
+
return (_jsx(RowTransfer.FirstCol, { serviceName: transfer.VehicleTypeName, transferType: transfer.TransferType, from: transfer.LocationFromName, to: transfer.LocationToName }));
|
|
28
|
+
}
|
|
29
|
+
if (value === ServiceType.OTHER_SERVICE) {
|
|
30
|
+
return _jsx(RowOtherServices.FirstCol, {});
|
|
31
|
+
}
|
|
32
|
+
return _jsx(_Fragment, {});
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
header: 'Details',
|
|
37
|
+
key: 'Type',
|
|
38
|
+
width: COLUMNS_WIDTH,
|
|
39
|
+
cell: function (value, raw, index) {
|
|
40
|
+
if (isComparisonAccommodation(raw)) {
|
|
41
|
+
return (_jsx(RowAccommodation.DetailsCol, { data: {
|
|
42
|
+
RoomName: raw.RoomName,
|
|
43
|
+
Dates: raw.Dates,
|
|
44
|
+
ClientCategory: raw.ClientCategory,
|
|
45
|
+
MealPlan: raw.MealPlan,
|
|
46
|
+
}, index: (index || 0) + 1 }));
|
|
47
|
+
}
|
|
48
|
+
if (isComparisonExcursion(raw)) {
|
|
49
|
+
return (_jsx(RowExcursion.DetailsCol, { data: {
|
|
50
|
+
languages: raw.AvailableLanguages,
|
|
51
|
+
duration: raw.Duration,
|
|
52
|
+
accessibility: raw.Accessibility,
|
|
53
|
+
transferType: raw.TransferType,
|
|
54
|
+
} }));
|
|
55
|
+
}
|
|
56
|
+
if (isComparisonTransfer(raw)) {
|
|
57
|
+
return (_jsx(RowTransfer.DetailsCol, { data: {
|
|
58
|
+
carType: raw.VehicleTypeName,
|
|
59
|
+
clientType: 'STD',
|
|
60
|
+
} }));
|
|
61
|
+
}
|
|
62
|
+
if (value === ServiceType.OTHER_SERVICE) {
|
|
63
|
+
return _jsx(RowOtherServices.DetailsCol, {});
|
|
64
|
+
}
|
|
65
|
+
return _jsx(_Fragment, {});
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
header: 'Price',
|
|
70
|
+
key: 'Type',
|
|
71
|
+
width: COLUMNS_WIDTH,
|
|
72
|
+
cell: function (_value, raw) {
|
|
73
|
+
var total = {
|
|
74
|
+
currency: undefined,
|
|
75
|
+
total: undefined,
|
|
76
|
+
};
|
|
77
|
+
if (isComparisonAccommodation(raw)) {
|
|
78
|
+
total.currency = raw.Currency;
|
|
79
|
+
total.total = raw.Total;
|
|
80
|
+
}
|
|
81
|
+
if (isComparisonExcursion(raw)) {
|
|
82
|
+
total.currency = raw.Currency;
|
|
83
|
+
total.total = raw.TotalPrice;
|
|
84
|
+
}
|
|
85
|
+
if (isComparisonTransfer(raw)) {
|
|
86
|
+
total.currency = raw.Currency;
|
|
87
|
+
total.total = raw.TotalPrice;
|
|
88
|
+
}
|
|
89
|
+
if (isComparisonOtherService(raw)) {
|
|
90
|
+
total.currency = raw.currency;
|
|
91
|
+
total.total = raw.total_price;
|
|
92
|
+
}
|
|
93
|
+
return (_jsx("div", { className: "flex items-center justify-between", children: _jsx(Text, { size: "sm", variant: "bold", children: priceFormatter(total.total, total.currency) }) }));
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
];
|
|
97
|
+
};
|