mautourco-components 0.2.30 → 0.2.32
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/README.md +54 -24
- 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/mautourco.css +40 -0
- 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,19 +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 { DateDisplay } from '../../../molecules/DateDisplay/DateDisplay';
|
|
5
|
+
import { PaxChips } from '../../../molecules/PaxChips/PaxChips';
|
|
6
|
+
import { priceFormatter } from '../../../../lib/price-formatter';
|
|
17
7
|
import { ServiceType, } from '../../../../types/table/index';
|
|
18
8
|
import { RowAccommodation } from '../../../molecules/TableServiceItem/RowAccommodation';
|
|
19
9
|
import { RowExcursion } from '../../../molecules/TableServiceItem/RowExcursion';
|
|
@@ -115,35 +105,30 @@ export var detailResumeColumns = function (params) {
|
|
|
115
105
|
width: 396,
|
|
116
106
|
cell: function (value, raw) {
|
|
117
107
|
var pax = {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
108
|
+
adult: 0,
|
|
109
|
+
teen: 0,
|
|
110
|
+
infant: 0,
|
|
111
|
+
child: 0,
|
|
122
112
|
};
|
|
123
113
|
switch (value) {
|
|
124
114
|
case ServiceType.ACCOMMODATION:
|
|
125
115
|
case ServiceType.EXCURSION:
|
|
126
116
|
case ServiceType.TRANSFER:
|
|
127
117
|
var item = raw;
|
|
128
|
-
pax.
|
|
129
|
-
pax.
|
|
130
|
-
pax.
|
|
131
|
-
pax.
|
|
118
|
+
pax.adult = item.AdultCount;
|
|
119
|
+
pax.teen = item.TeenCount;
|
|
120
|
+
pax.infant = item.InfantCount;
|
|
121
|
+
pax.child = item.ChildCount;
|
|
132
122
|
break;
|
|
133
123
|
case ServiceType.OTHER_SERVICE:
|
|
134
124
|
var otherService = raw;
|
|
135
|
-
pax.
|
|
136
|
-
pax.
|
|
137
|
-
pax.
|
|
138
|
-
pax.
|
|
125
|
+
pax.adult = otherService.adult_pax;
|
|
126
|
+
pax.teen = otherService.teen_pax;
|
|
127
|
+
pax.infant = otherService.infant_pax;
|
|
128
|
+
pax.child = otherService.child_pax;
|
|
139
129
|
break;
|
|
140
130
|
}
|
|
141
|
-
return
|
|
142
|
-
var _a;
|
|
143
|
-
var count = (_a = pax[k]) !== null && _a !== void 0 ? _a : 0;
|
|
144
|
-
var type = count > 0 ? 'filled' : 'outline';
|
|
145
|
-
return (_jsx(Chip, { label: "".concat(k, " ").concat(count), size: "sm", color: "accent", type: type, className: "!px-3" }, "pax-".concat(index)));
|
|
146
|
-
}) })));
|
|
131
|
+
return _jsx(PaxChips, { pax: pax });
|
|
147
132
|
},
|
|
148
133
|
},
|
|
149
134
|
{
|
|
@@ -173,7 +158,7 @@ export var detailResumeColumns = function (params) {
|
|
|
173
158
|
total.total = otherService.total_price;
|
|
174
159
|
break;
|
|
175
160
|
}
|
|
176
|
-
return (_jsxs("div",
|
|
161
|
+
return (_jsxs("div", { className: "flex items-center justify-between", children: [_jsx(Text, { size: "sm", variant: "bold", children: priceFormatter(total.total, total.currency) }), onRemove && (_jsx(Button, { variant: "destructive", size: "sm", onClick: function () { return onRemove(raw, index); }, children: "Remove" }))] }));
|
|
177
162
|
},
|
|
178
163
|
},
|
|
179
164
|
];
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
declare const columns: {
|
|
2
2
|
quotation: (params: {
|
|
3
|
-
onExpand: (value?: import("../../../..").QuotationListItem
|
|
4
|
-
onAction: (
|
|
3
|
+
onExpand: (value?: import("../../../..").QuotationListItem) => void;
|
|
4
|
+
onAction: (data: {
|
|
5
|
+
isChild?: boolean;
|
|
6
|
+
quote: import("../../../..").QuotationListItem;
|
|
7
|
+
}) => (action: import("../../../..").ActionDropdownType) => void;
|
|
5
8
|
}) => import("../TableCell").ColumnType<import("../../../..").QuotationListItem>[];
|
|
6
9
|
detailResume: (params?: {
|
|
7
|
-
onRemove?: (
|
|
8
|
-
}
|
|
10
|
+
onRemove?: (value: import("../../../..").DetailResumeItem, index?: number) => void;
|
|
11
|
+
}) => import("../TableCell").ColumnType<import("../../../..").DetailResumeItem>[];
|
|
9
12
|
booking: (params: {
|
|
10
|
-
onExpand: (value?: import("../../../../types/table/booking.types").BookingListItem
|
|
13
|
+
onExpand: (value?: import("../../../../types/table/booking.types").BookingListItem) => void;
|
|
11
14
|
onAction: (action: import("../../../..").ActionDropdownType) => void;
|
|
12
15
|
}) => import("../TableCell").ColumnType<import("../../../../types/table/booking.types").BookingListItem>[];
|
|
13
16
|
bookingCancelService: (params?: {
|
|
14
|
-
onRemove?: (
|
|
15
|
-
}
|
|
17
|
+
onRemove?: (value: import("../../../..").DetailResumeItem, index?: number, childIndex?: number) => void;
|
|
18
|
+
}) => import("../TableCell").ColumnType<import("../../../..").DetailResumeItem>[];
|
|
19
|
+
comparison: () => import("../TableCell").ColumnType<import("../../DialogComparison/DialogComparison").ComparisonData>[];
|
|
16
20
|
};
|
|
17
21
|
export { columns };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { bookingCancelServiceColumns } from './booking-cancel-service-columns';
|
|
2
2
|
import { bookingColumns } from './booking-columns';
|
|
3
|
+
import { comparisonColumns } from './comparison-columns';
|
|
3
4
|
import { detailResumeColumns } from './detail-resume-columns';
|
|
4
5
|
import { quotationColumns } from './quotation-columns';
|
|
5
6
|
var columns = {
|
|
@@ -7,5 +8,6 @@ var columns = {
|
|
|
7
8
|
detailResume: detailResumeColumns,
|
|
8
9
|
booking: bookingColumns,
|
|
9
10
|
bookingCancelService: bookingCancelServiceColumns,
|
|
11
|
+
comparison: comparisonColumns,
|
|
10
12
|
};
|
|
11
13
|
export { columns };
|
|
@@ -3,5 +3,8 @@ import { QuotationListItem } from '@/src/types/table/quotation.types';
|
|
|
3
3
|
import { ColumnType } from '../TableCell';
|
|
4
4
|
export declare const quotationColumns: (params: {
|
|
5
5
|
onExpand: (value?: QuotationListItem) => void;
|
|
6
|
-
onAction: (
|
|
6
|
+
onAction: (data: {
|
|
7
|
+
isChild?: boolean;
|
|
8
|
+
quote: QuotationListItem;
|
|
9
|
+
}) => (action: ActionDropdownType) => void;
|
|
7
10
|
}) => ColumnType<QuotationListItem>[];
|
|
@@ -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, Fragment as _Fragment } from "react/jsx-runtime";
|
|
13
2
|
import Button from '../../../atoms/Button/Button';
|
|
14
3
|
import Chip from '../../../atoms/Chip/Chip';
|
|
@@ -24,13 +13,15 @@ export var quotationColumns = function (_a) {
|
|
|
24
13
|
header: 'Quote nb.',
|
|
25
14
|
key: 'file_nb',
|
|
26
15
|
width: 150,
|
|
27
|
-
cell: function (value) { return (_jsx(Text,
|
|
16
|
+
cell: function (value) { return (_jsx(Text, { variant: "medium", size: "sm", children: value })); },
|
|
28
17
|
},
|
|
29
18
|
{
|
|
30
19
|
header: 'Client name',
|
|
31
20
|
key: 'agency_name',
|
|
32
21
|
width: 150,
|
|
33
|
-
cell: function (value
|
|
22
|
+
cell: function (value, _raw, _index, childIndex) {
|
|
23
|
+
return childIndex === undefined && (_jsx(Text, { variant: "medium", size: "sm", children: value }));
|
|
24
|
+
},
|
|
34
25
|
},
|
|
35
26
|
{
|
|
36
27
|
header: 'File status',
|
|
@@ -38,7 +29,7 @@ export var quotationColumns = function (_a) {
|
|
|
38
29
|
width: 160,
|
|
39
30
|
cell: function (value, raw) {
|
|
40
31
|
var isMultiple = raw.children && raw.children.length > 0;
|
|
41
|
-
return (_jsx(Chip,
|
|
32
|
+
return (_jsx(Chip, { color: isMultiple ? 'blue' : chipVariant[value.toLowerCase()], size: "sm", children: isMultiple ? 'Multiple' : value }));
|
|
42
33
|
},
|
|
43
34
|
},
|
|
44
35
|
{
|
|
@@ -47,7 +38,7 @@ export var quotationColumns = function (_a) {
|
|
|
47
38
|
width: 145,
|
|
48
39
|
cell: function (value) {
|
|
49
40
|
var clientType = clientTypeMap[value];
|
|
50
|
-
return (_jsx(Text,
|
|
41
|
+
return (_jsx(Text, { variant: "medium", size: "sm", children: clientType !== null && clientType !== void 0 ? clientType : value }));
|
|
51
42
|
},
|
|
52
43
|
},
|
|
53
44
|
{
|
|
@@ -65,26 +56,26 @@ export var quotationColumns = function (_a) {
|
|
|
65
56
|
width: 350,
|
|
66
57
|
cell: function (value) {
|
|
67
58
|
var _a = value, accom_count = _a.accom_count, transfer_count = _a.transfer_count, tours_count = _a.tours_count;
|
|
68
|
-
return (_jsxs("div",
|
|
59
|
+
return (_jsxs("div", { className: "flex flex-wrap gap-2", children: [_jsx(Chip, { label: "Accomodation ".concat(accom_count), type: accom_count > 0 ? 'filled' : 'outline', color: "accent", size: "sm" }), _jsx(Chip, { label: "Transfer ".concat(transfer_count), type: transfer_count > 0 ? 'filled' : 'outline', color: "accent", size: "sm" }), _jsx(Chip, { label: "Excursion ".concat(tours_count), type: tours_count > 0 ? 'filled' : 'outline', color: "accent", size: "sm" })] }));
|
|
69
60
|
},
|
|
70
61
|
},
|
|
71
62
|
{
|
|
72
63
|
header: 'Created by',
|
|
73
64
|
key: 'created_by',
|
|
74
65
|
width: 160,
|
|
75
|
-
cell: function (value, raw) { return (_jsxs(_Fragment, { children: [_jsxs(Text,
|
|
66
|
+
cell: function (value, raw) { return (_jsxs(_Fragment, { children: [_jsxs(Text, { variant: "medium", size: "sm", leading: "4", children: [raw.file_name, ","] }), _jsx(Text, { variant: "bold", size: "sm", leading: "4", children: value })] })); },
|
|
76
67
|
},
|
|
77
68
|
{
|
|
78
69
|
header: '',
|
|
79
70
|
key: 'actions',
|
|
80
71
|
width: 232,
|
|
81
|
-
cell: function (_value, raw) {
|
|
72
|
+
cell: function (_value, raw, _index, childIndex) {
|
|
82
73
|
var _a;
|
|
83
74
|
var hasChildren = raw.children && raw.children.length > 0;
|
|
84
75
|
var isExpanded = (_a = raw.children) === null || _a === void 0 ? void 0 : _a.some(function (child) { return child.visible; });
|
|
85
76
|
var buttonLabel = isExpanded ? 'See less' : 'See more';
|
|
86
77
|
var isOnRequest = raw.status.toLowerCase() === 'on request';
|
|
87
|
-
return (_jsx("div", { children: hasChildren ? (_jsx(Button,
|
|
78
|
+
return (_jsx("div", { children: hasChildren ? (_jsx(Button, { variant: "outline-primary", size: "sm", trailingIcon: "chevron-down", className: cn('table__button', isExpanded && 'table__button-expanded'), onClick: function () { return onExpand(raw); }, children: buttonLabel })) : (_jsxs("div", { className: "flex items-center gap-x-8", children: [_jsx(Button, { variant: isOnRequest ? 'outline-secondary' : 'secondary', size: "sm", className: "table__button", children: isOnRequest ? 'Request to book' : 'Book now' }), _jsx(ActionDropdown, { data: actionDropdownData(onAction({ isChild: childIndex !== undefined, quote: raw })) })] })) }));
|
|
88
79
|
},
|
|
89
80
|
},
|
|
90
81
|
];
|
|
@@ -16,5 +16,5 @@ import TextWithIcon from '../../molecules/TextWithIcon/TextWithIcon';
|
|
|
16
16
|
import TimelineItem from '../../molecules/TimelineItem/TimelineItem';
|
|
17
17
|
export var Timeline = function (props) {
|
|
18
18
|
var arrival = props.arrival, departure = props.departure, services = props.services, className = props.className;
|
|
19
|
-
return (_jsxs("div",
|
|
19
|
+
return (_jsxs("div", { className: cn('space-y-10', className), children: [_jsxs(TextWithIcon, { icon: "arrival", color: "accent", iconSize: "lg", textSize: "lg", children: ["Arrival :", ' ', _jsx(Text, { variant: "regular", size: "lg", leading: "5", color: "default", as: "span", children: arrival })] }), _jsx("div", { className: "overflow-x-auto", children: _jsx("div", { className: "flex gap-x-3 pb-8 2xl:pb-0", children: services.map(function (service, index) { return (_jsxs(TimelineItem, { children: [service.type === 'transfer' && (_jsx(TimelineItem.Transfer, __assign({}, service.data))), service.type === 'accommodation' && (_jsx(TimelineItem.Accommodation, __assign({}, service.data))), service.type === 'excursion' && (_jsx(TimelineItem.Excursion, __assign({}, service.data)))] }, "tm-".concat(index))); }) }) }), _jsxs(TextWithIcon, { icon: "departure", color: "accent", iconSize: "lg", textSize: "lg", children: ["Departure :", ' ', _jsx(Text, { variant: "regular", size: "lg", leading: "5", color: "default", as: "span", children: departure })] })] }));
|
|
20
20
|
};
|
|
@@ -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 Button from "../../atoms/Button/Button";
|
|
14
3
|
import { UserCard } from "../../molecules/UserCard/UserCard";
|
|
@@ -19,14 +8,14 @@ export var DesktopNav = function (_a) {
|
|
|
19
8
|
e.preventDefault();
|
|
20
9
|
onLinkClick === null || onLinkClick === void 0 ? void 0 : onLinkClick({ label: "Home", route: homeUrl !== null && homeUrl !== void 0 ? homeUrl : "/" });
|
|
21
10
|
};
|
|
22
|
-
return (_jsxs("header",
|
|
11
|
+
return (_jsxs("header", { className: "header", children: [_jsx("div", { className: "header-logo", children: _jsx("a", { href: homeUrl !== null && homeUrl !== void 0 ? homeUrl : "/", onClick: handleLogoClick, className: "header-logo__link", children: Logo ? (_jsx(Logo, { className: "header-logo__image" })) : (_jsx("img", { src: logoUrl, alt: "Mautourco", className: "header-logo__image", draggable: false })) }) }), _jsxs("nav", { className: "header-nav", children: [_jsx("ul", { className: "header-nav__items", children: links === null || links === void 0 ? void 0 : links.map(function (it) {
|
|
23
12
|
var isActive = it.label === active;
|
|
24
|
-
return (_jsx("li",
|
|
13
|
+
return (_jsx("li", { className: "header__item ".concat(isActive ? "header__item--active" : ""), children: it.isButton ? (_jsx(Button, { size: "sm", variant: "outline-secondary", onClick: function (e) {
|
|
25
14
|
e.preventDefault();
|
|
26
15
|
onLinkClick === null || onLinkClick === void 0 ? void 0 : onLinkClick(it);
|
|
27
|
-
}
|
|
16
|
+
}, children: it.label })) : (_jsx("a", { href: it.route, className: "header__item__link", onClick: function (e) {
|
|
28
17
|
e.preventDefault();
|
|
29
18
|
onLinkClick === null || onLinkClick === void 0 ? void 0 : onLinkClick(it);
|
|
30
|
-
}
|
|
31
|
-
}) })
|
|
19
|
+
}, children: it.label })) }, it.label));
|
|
20
|
+
}) }), _jsx("div", { className: "header-nav__user-section ".concat(user ? "header-nav__user-connected-section" : ""), children: user ? (_jsx("div", { className: "header-nav__user-container", children: _jsx(UserCard, { user: user, agencies: agencies || [], selectedAgency: selectedAgency, onSelectAgency: onAgencyChange }) })) : (_jsx(Button, { size: "sm", variant: "secondary", onClick: onLogin, children: "Login" })) })] })] }));
|
|
32
21
|
};
|
|
@@ -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, Fragment as _Fragment } from "react/jsx-runtime";
|
|
13
2
|
import React from "react";
|
|
14
3
|
import Icon from "../../atoms/Icon/Icon";
|
|
@@ -19,27 +8,27 @@ export var MobileNav = function (_a) {
|
|
|
19
8
|
var _b = React.useState(false), open = _b[0], setOpen = _b[1];
|
|
20
9
|
var closeRef = React.useRef(null);
|
|
21
10
|
var Logo = typeof logoUrl === "function" ? logoUrl : null;
|
|
22
|
-
return (_jsxs(_Fragment, { children: [_jsxs("header",
|
|
11
|
+
return (_jsxs(_Fragment, { children: [_jsxs("header", { className: "header", children: [_jsx("button", { "aria-label": "Open Menu", onClick: function () { return setOpen(true); }, children: _jsx(Icon, { name: "menu", size: "sm" }) }), _jsx("div", { className: "header-logo", children: _jsx("a", { href: homeUrl !== null && homeUrl !== void 0 ? homeUrl : "/", className: "header-logo__link", onClick: function (e) {
|
|
23
12
|
e.preventDefault();
|
|
24
13
|
onLinkClick === null || onLinkClick === void 0 ? void 0 : onLinkClick({ label: "Home", route: homeUrl !== null && homeUrl !== void 0 ? homeUrl : "/" });
|
|
25
|
-
}
|
|
14
|
+
}, children: Logo ? (_jsx(Logo, { className: "header-logo__image" })) : (_jsx("img", { src: logoUrl, alt: "Mautourco", className: "header-logo__image", draggable: false })) }) }), _jsx("div", { className: "header-user-actions", children: !user && (_jsx(Button, { size: "sm", variant: "secondary", onClick: function () {
|
|
26
15
|
onLogin === null || onLogin === void 0 ? void 0 : onLogin();
|
|
27
16
|
setOpen(false);
|
|
28
|
-
}
|
|
17
|
+
}, children: "Login" })) })] }), _jsx("div", { "aria-hidden": !open, className: "mobile-nav__backdrop ".concat(open ? "mobile-nav__backdrop--open" : "mobile-nav__backdrop--closed"), onClick: function () { return setOpen(false); } }), _jsxs("aside", { role: "dialog", "aria-modal": "true", "aria-label": "Main menu", className: "\n mobile-nav__sheet\n ".concat(open ? "mobile-nav__sheet--open" : "mobile-nav__sheet--closed", "\n "), children: [_jsxs("div", { className: "mobile-nav__header", children: [_jsx("div", { children: _jsx("button", { ref: closeRef, "aria-label": "Close menu", onClick: function () { return setOpen(false); }, className: "mobile-nav__close-button", children: _jsx(Icon, { name: "close", size: "sm" }) }) }), user ? (_jsx(UserCard, { user: user, agencies: agencies || [], selectedAgency: selectedAgency, onSelectAgency: onAgencyChange })) : (_jsx("a", { href: homeUrl !== null && homeUrl !== void 0 ? homeUrl : "/", className: "header-logo__link", onClick: function (e) {
|
|
29
18
|
e.preventDefault();
|
|
30
19
|
onLinkClick === null || onLinkClick === void 0 ? void 0 : onLinkClick({ label: "Home", route: homeUrl !== null && homeUrl !== void 0 ? homeUrl : "/" });
|
|
31
|
-
}
|
|
20
|
+
}, children: Logo ? (_jsx(Logo, { className: "header-logo__image-mobile" })) : (_jsx("img", { src: logoUrl, alt: "Mautourco", className: "header-logo__image-mobile", draggable: false })) }))] }), _jsx("nav", { className: "mobile-nav__content", children: _jsx("ul", { className: "mobile-nav__list", children: links.map(function (l, i) {
|
|
32
21
|
var activeItem = active && active === l.label;
|
|
33
|
-
return (_jsx("li",
|
|
22
|
+
return (_jsx("li", { className: "header__item ".concat(activeItem ? "header__item--active" : ""), children: _jsx("button", { disabled: l.disabled, onClick: function () {
|
|
34
23
|
onLinkClick === null || onLinkClick === void 0 ? void 0 : onLinkClick(l);
|
|
35
24
|
setOpen(false);
|
|
36
|
-
}, className: "mobile-nav__item-button"
|
|
37
|
-
}) })
|
|
25
|
+
}, className: "mobile-nav__item-button", children: l.label }) }, "".concat(l.route, "-").concat(i)));
|
|
26
|
+
}) }) }), _jsx("div", { className: "mobile-nav__footer", children: user ? (_jsx("div", { className: "mobile-nav__user-info", children: _jsx(Button, { onClick: function () {
|
|
38
27
|
onLogout === null || onLogout === void 0 ? void 0 : onLogout();
|
|
39
28
|
setOpen(false);
|
|
40
|
-
}, className: "mobile-nav__logout-button"
|
|
29
|
+
}, className: "mobile-nav__logout-button", children: "Logout" }) })) : (_jsx(Button, { size: "sm", variant: "secondary", onClick: function () {
|
|
41
30
|
onLogin === null || onLogin === void 0 ? void 0 : onLogin();
|
|
42
31
|
setOpen(false);
|
|
43
|
-
}
|
|
32
|
+
}, children: "Login" })) })] })] }));
|
|
44
33
|
};
|
|
45
34
|
export default MobileNav;
|
|
@@ -183,6 +183,6 @@ var TransferLine = function (_a) {
|
|
|
183
183
|
var isDateEmpty = checkEmpty && (!internalTransferDate || internalTransferDate === '');
|
|
184
184
|
var isPickupEmpty = checkEmpty && !internalPickupPoint;
|
|
185
185
|
var isDropoffEmpty = checkEmpty && !internalDropoffPoint;
|
|
186
|
-
return (_jsxs("div",
|
|
186
|
+
return (_jsxs("div", { className: "transfer-line transfer-line--".concat(type, " ").concat(className), "data-transfer-id": id, children: [showTitle && (_jsxs("div", { className: "transfer-line__header", children: [_jsx(Icon, { name: getTypeIcon(), size: "sm", className: "transfer-line__header-icon" }), _jsx(Text, { size: "sm", variant: "medium", className: "transfer-line__header-label", children: getTypeLabel() })] })), _jsxs("div", { className: "transfer-line__content-container", children: [_jsxs("div", { className: "transfer-line__content", children: [_jsx("div", { className: "transfer-line__field transfer-line__field--pax ".concat(isPaxEmpty ? 'transfer-line__field--error' : ''), children: _jsx(PaxSelector, { label: "Number of pax", value: internalPaxData, onChange: handlePaxChange, placeholder: "2 pax", className: isPaxEmpty ? 'pax-selector--error' : '' }) }), _jsxs("div", { className: "transfer-line__field transfer-line__field--date", children: [_jsx(Text, { size: "sm", variant: "regular", className: "transfer-line__field-label", children: "Transfer date" }), _jsx(DateTimePicker, { placeholder: "DD/MM/YYYY", mode: "calendar", iconPosition: "left", numberOfMonths: 1, iconBGFull: false, showChevron: true, onValueChange: handleDateChange, selectionMode: "single", defaultValue: internalTransferDate, inputClassName: "transfer-line__date-picker", state: isDateEmpty ? 'error' : undefined })] }), _jsx("div", { className: "transfer-line__field transfer-line__field--pickup", children: _jsx(LocationDropdown, { label: "Pick-up point", options: filterLocations('pickup').options, groups: filterLocations('pickup').groups, selectedValue: (internalPickupPoint === null || internalPickupPoint === void 0 ? void 0 : internalPickupPoint.id) || null, onSelectionChange: handlePickupChange, placeholder: "Select a pick-up point", direction: "pickup", type: type === 'inter-hotel' ? 'accommodation' : type === 'arrival' ? 'airport-port' : 'accommodation', showGroupTitles: false, error: isPickupEmpty }) }), _jsx("div", { className: "transfer-line__field transfer-line__field--dropoff", children: _jsx(LocationDropdown, { label: "Drop-off point", options: filterLocations('dropoff').options, groups: filterLocations('dropoff').groups, selectedValue: (internalDropoffPoint === null || internalDropoffPoint === void 0 ? void 0 : internalDropoffPoint.id) || null, onSelectionChange: handleDropoffChange, placeholder: "Select a drop-off point", direction: "dropoff", type: type === 'inter-hotel' ? 'accommodation' : type === 'departure' ? 'airport-port' : 'accommodation', showGroupTitles: false, error: isDropoffEmpty }) })] }), showDelete && (_jsx("div", { className: "transfer-line__delete", children: _jsx("button", { type: "button", className: "transfer-line__delete-btn", onClick: onDelete, "aria-label": "Delete transfer line", children: _jsx(Icon, { name: "delete", size: "sm", className: "transfer-line__delete-icon" }) }) }))] })] }));
|
|
187
187
|
};
|
|
188
188
|
export default TransferLine;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { type VariantProps } from "class-variance-authority";
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "
|
|
4
|
+
variant?: "default" | "link" | "outline" | "secondary" | "destructive" | "ghost" | null | undefined;
|
|
5
5
|
size?: "sm" | "lg" | "default" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
7
7
|
declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
@@ -54,7 +54,7 @@ function Calendar(_a) {
|
|
|
54
54
|
return (_jsx(ChevronDownIcon, __assign({ className: cn("size-4", className) }, props)));
|
|
55
55
|
}, DayButton: CalendarDayButton, WeekNumber: function (_a) {
|
|
56
56
|
var children = _a.children, props = __rest(_a, ["children"]);
|
|
57
|
-
return (_jsx("td", __assign({}, props, { children: _jsx("div",
|
|
57
|
+
return (_jsx("td", __assign({}, props, { children: _jsx("div", { className: "flex size-[--cell-size] items-center justify-center text-center", children: children }) })));
|
|
58
58
|
}, MonthGrid: CustomMonthGrid, CaptionLabel: CustomCaptionLabel }, components) }, props)));
|
|
59
59
|
}
|
|
60
60
|
function CalendarDayButton(_a) {
|
|
@@ -73,7 +73,7 @@ function CalendarDayButton(_a) {
|
|
|
73
73
|
// "data-[selected-single=true]:bg-[#FFAB63] data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-[#FFAB63] data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-[#FFAB63] data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 flex aspect-square h-auto w-full min-w-[--cell-size] flex-col gap-1 font-normal leading-none data-[range-end=true]:rounded-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] [&>span]:text-xs [&>span]:opacity-70",
|
|
74
74
|
defaultClassNames.day, className
|
|
75
75
|
// 'data-[selected-single=true]:!rounded-full data-[range-start=true]:!rounded-full data-[range-end=true]:!rounded-full data-[range-middle=true]:bg-[#FFEBD4]'
|
|
76
|
-
) }, props, { children: _jsx("span",
|
|
76
|
+
) }, props, { children: _jsx("span", { className: "relative z-20", children: day.date.getDate() }) })));
|
|
77
77
|
}
|
|
78
78
|
function CustomMonthGrid(props) {
|
|
79
79
|
return (_jsxs(_Fragment, { children: [_jsx("hr", { className: "calendar--separator" }), _jsx(MonthGrid, __assign({}, props))] }));
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type * as LabelPrimitive from '@radix-ui/react-label';
|
|
2
|
+
import { Slot } from '@radix-ui/react-slot';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { type ControllerProps, type FieldPath, type FieldValues } from 'react-hook-form';
|
|
5
|
+
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: import("react-hook-form").FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
6
|
+
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare const useFormField: () => {
|
|
8
|
+
invalid: boolean;
|
|
9
|
+
isDirty: boolean;
|
|
10
|
+
isTouched: boolean;
|
|
11
|
+
isValidating: boolean;
|
|
12
|
+
error?: import("react-hook-form").FieldError;
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
formItemId: string;
|
|
16
|
+
formDescriptionId: string;
|
|
17
|
+
formMessageId: string;
|
|
18
|
+
};
|
|
19
|
+
declare function FormItem({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
declare function FormLabel({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
declare function FormControl({ ...props }: React.ComponentProps<typeof Slot>): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
declare function FormDescription({ className, ...props }: React.ComponentProps<'p'>): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
declare function FormMessage({ className, ...props }: React.ComponentProps<'p'>): import("react/jsx-runtime").JSX.Element | null;
|
|
24
|
+
export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField, };
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
25
|
+
import { Slot } from '@radix-ui/react-slot';
|
|
26
|
+
import * as React from 'react';
|
|
27
|
+
import { Controller, FormProvider, useFormContext, useFormState, } from 'react-hook-form';
|
|
28
|
+
import { Label } from './label';
|
|
29
|
+
import { cn } from '../../lib/utils';
|
|
30
|
+
var Form = FormProvider;
|
|
31
|
+
var FormFieldContext = React.createContext({});
|
|
32
|
+
var FormField = function (_a) {
|
|
33
|
+
var props = __rest(_a, []);
|
|
34
|
+
return (_jsx(FormFieldContext.Provider, { value: { name: props.name }, children: _jsx(Controller, __assign({}, props)) }));
|
|
35
|
+
};
|
|
36
|
+
var useFormField = function () {
|
|
37
|
+
var fieldContext = React.useContext(FormFieldContext);
|
|
38
|
+
var itemContext = React.useContext(FormItemContext);
|
|
39
|
+
var getFieldState = useFormContext().getFieldState;
|
|
40
|
+
var formState = useFormState({ name: fieldContext.name });
|
|
41
|
+
var fieldState = getFieldState(fieldContext.name, formState);
|
|
42
|
+
if (!fieldContext) {
|
|
43
|
+
throw new Error('useFormField should be used within <FormField>');
|
|
44
|
+
}
|
|
45
|
+
var id = itemContext.id;
|
|
46
|
+
return __assign({ id: id, name: fieldContext.name, formItemId: "".concat(id, "-form-item"), formDescriptionId: "".concat(id, "-form-item-description"), formMessageId: "".concat(id, "-form-item-message") }, fieldState);
|
|
47
|
+
};
|
|
48
|
+
var FormItemContext = React.createContext({});
|
|
49
|
+
function FormItem(_a) {
|
|
50
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
51
|
+
var id = React.useId();
|
|
52
|
+
return (_jsx(FormItemContext.Provider, { value: { id: id }, children: _jsx("div", __assign({ "data-slot": "form-item", className: cn('grid gap-2', className) }, props)) }));
|
|
53
|
+
}
|
|
54
|
+
function FormLabel(_a) {
|
|
55
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
56
|
+
var _b = useFormField(), error = _b.error, formItemId = _b.formItemId;
|
|
57
|
+
return (_jsx(Label, __assign({ "data-slot": "form-label", "data-error": !!error, className: cn('data-[error=true]:text-destructive', className), htmlFor: formItemId }, props)));
|
|
58
|
+
}
|
|
59
|
+
function FormControl(_a) {
|
|
60
|
+
var props = __rest(_a, []);
|
|
61
|
+
var _b = useFormField(), error = _b.error, formItemId = _b.formItemId, formDescriptionId = _b.formDescriptionId, formMessageId = _b.formMessageId;
|
|
62
|
+
return (_jsx(Slot, __assign({ "data-slot": "form-control", id: formItemId, "aria-describedby": !error ? "".concat(formDescriptionId) : "".concat(formDescriptionId, " ").concat(formMessageId), "aria-invalid": !!error }, props)));
|
|
63
|
+
}
|
|
64
|
+
function FormDescription(_a) {
|
|
65
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
66
|
+
var formDescriptionId = useFormField().formDescriptionId;
|
|
67
|
+
return (_jsx("p", __assign({ "data-slot": "form-description", id: formDescriptionId, className: cn('text-muted-foreground text-sm', className) }, props)));
|
|
68
|
+
}
|
|
69
|
+
function FormMessage(_a) {
|
|
70
|
+
var _b;
|
|
71
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
72
|
+
var _c = useFormField(), error = _c.error, formMessageId = _c.formMessageId;
|
|
73
|
+
var body = error ? String((_b = error === null || error === void 0 ? void 0 : error.message) !== null && _b !== void 0 ? _b : '') : props.children;
|
|
74
|
+
if (!body) {
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
77
|
+
return (_jsx("p", __assign({ "data-slot": "form-message", id: formMessageId, className: cn('text-[var(--color-text-state-error)] text-sm', className) }, props, { children: body })));
|
|
78
|
+
}
|
|
79
|
+
export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField, };
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
+
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
25
|
+
import { cn } from '../../lib/utils';
|
|
26
|
+
function Label(_a) {
|
|
27
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
28
|
+
return (_jsx(LabelPrimitive.Root, __assign({ "data-slot": "label", className: cn("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", className) }, props)));
|
|
29
|
+
}
|
|
30
|
+
export { Label };
|
|
@@ -2,7 +2,7 @@ import { BookingPaxClientInfo, BookingPaxClientOptions } from '../components/mol
|
|
|
2
2
|
export default function useBookingPax(selectedClientsInfoIds?: Record<string | number, string[]>): {
|
|
3
3
|
changeOptions: BookingPaxClientOptions | null;
|
|
4
4
|
buildSelectedClients: (clientsInfo: BookingPaxClientInfo[], selectedClientsInfoIds?: Record<string | number, string[]>) => Record<string | number, BookingPaxClientInfo[]>;
|
|
5
|
-
onSelectedClients: (clientsInfo: BookingPaxClientInfo[], onPaxChange?: (
|
|
5
|
+
onSelectedClients: (clientsInfo: BookingPaxClientInfo[], onPaxChange?: (options: BookingPaxClientOptions) => void) => void;
|
|
6
6
|
isSelectedClient: (roomIndex: number, id: string) => boolean;
|
|
7
7
|
onPaxOptionsChange: (options: BookingPaxClientOptions) => void;
|
|
8
8
|
};
|