mautourco-components 0.2.36 → 0.2.38
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/molecules/ActionDropdown/ActionDropdown.d.ts +1 -1
- package/dist/components/molecules/ActionDropdown/ActionDropdown.js +4 -4
- package/dist/components/molecules/AddItemButton/AddItemButton.d.ts +1 -1
- package/dist/components/molecules/AddItemButton/AddItemButton.js +3 -3
- package/dist/components/molecules/BookingPax/BookingPax.d.ts +9 -6
- package/dist/components/molecules/BookingPax/BookingPax.js +2 -2
- package/dist/components/molecules/BookingPax/BookingPaxAccom.d.ts +1 -2
- package/dist/components/molecules/BookingPax/BookingPaxAccom.js +2 -2
- package/dist/components/molecules/BookingPax/BookingPaxClient/BookingPaxClient.d.ts +1 -1
- package/dist/components/molecules/BookingPax/BookingPaxClient/BookingPaxClient.js +2 -2
- package/dist/components/molecules/BookingPax/BookingPaxExcursion.d.ts +1 -2
- package/dist/components/molecules/BookingPax/BookingPaxExcursion.js +2 -2
- package/dist/components/molecules/BookingPax/BookingPaxHeader.d.ts +5 -5
- package/dist/components/molecules/BookingPax/BookingPaxHeader.js +2 -2
- package/dist/components/molecules/BookingPax/BookingPaxLayout/BookingPaxLayout.d.ts +1 -1
- package/dist/components/molecules/BookingPax/BookingPaxLayout/BookingPaxLayout.js +2 -2
- package/dist/components/molecules/BookingPax/BookingPaxRemarks.d.ts +1 -2
- package/dist/components/molecules/BookingPax/BookingPaxRemarks.js +4 -4
- package/dist/components/molecules/BookingPax/BookingPaxTransfer.d.ts +1 -2
- package/dist/components/molecules/BookingPax/BookingPaxTransfer.js +2 -2
- package/dist/components/molecules/BookingResume/BookingResume.d.ts +13 -8
- package/dist/components/molecules/BookingResume/BookingResume.js +2 -2
- package/dist/components/molecules/BookingResume/BookingResumeLayout/BookingResumeLayout.d.ts +1 -1
- package/dist/components/molecules/BookingResume/BookingResumeLayout/BookingResumeLayout.js +2 -2
- package/dist/components/molecules/BookingResume/ResumeAccom/ResumeAccom.d.ts +1 -2
- package/dist/components/molecules/BookingResume/ResumeAccom/ResumeAccom.js +2 -2
- package/dist/components/molecules/BookingResume/ResumeExcursion/ResumeExcursion.d.ts +1 -2
- package/dist/components/molecules/BookingResume/ResumeExcursion/ResumeExcursion.js +2 -2
- package/dist/components/molecules/BookingResume/ResumeOtherService.d.ts +1 -2
- package/dist/components/molecules/BookingResume/ResumeOtherService.js +2 -2
- package/dist/components/molecules/BookingResume/ResumeTransfer.d.ts +1 -2
- package/dist/components/molecules/BookingResume/ResumeTransfer.js +2 -2
- package/dist/components/molecules/Breadcrumbs/Breadcrumbs.d.ts +1 -2
- package/dist/components/molecules/Breadcrumbs/Breadcrumbs.js +2 -2
- package/dist/components/molecules/DateDisplay/DateDisplay.d.ts +1 -2
- package/dist/components/molecules/DateDisplay/DateDisplay.js +3 -3
- package/dist/components/molecules/DetailsInfo/DetailsAction.d.ts +1 -2
- package/dist/components/molecules/DetailsInfo/DetailsAction.js +2 -2
- package/dist/components/molecules/DetailsInfo/DetailsAgency/DetailsAgency.d.ts +1 -1
- package/dist/components/molecules/DetailsInfo/DetailsAgency/DetailsAgency.js +2 -2
- package/dist/components/molecules/DetailsInfo/DetailsClient/DetailsClient.d.ts +1 -2
- package/dist/components/molecules/DetailsInfo/DetailsClient/DetailsClient.js +2 -2
- package/dist/components/molecules/DetailsInfo/DetailsFile.d.ts +1 -2
- package/dist/components/molecules/DetailsInfo/DetailsFile.js +2 -2
- package/dist/components/molecules/DetailsInfo/DetailsInfo.d.ts +8 -4
- package/dist/components/molecules/DialogContentPolicy/CancellationLayout/CancellationLayout.d.ts +1 -1
- package/dist/components/molecules/DialogContentPolicy/CancellationLayout/CancellationLayout.js +2 -2
- package/dist/components/molecules/DialogContentPolicy/DialogCancellationAccom.d.ts +1 -1
- package/dist/components/molecules/DialogContentPolicy/DialogCancellationAccom.js +2 -2
- package/dist/components/molecules/DialogContentPolicy/DialogCancellationExcursion.d.ts +1 -1
- package/dist/components/molecules/DialogContentPolicy/DialogCancellationExcursion.js +2 -2
- package/dist/components/molecules/DialogContentPolicy/DialogCancellationList.d.ts +2 -3
- package/dist/components/molecules/DialogContentPolicy/DialogCancellationList.js +4 -4
- package/dist/components/molecules/DialogContentPolicy/DialogContentPolicy.d.ts +9 -6
- package/dist/components/molecules/DialogContentPolicy/DialogContentPolicy.js +2 -2
- package/dist/components/molecules/FromTo/FromTo.d.ts +1 -1
- package/dist/components/molecules/FromTo/FromTo.js +2 -2
- package/dist/components/molecules/GlobalAmenities/GlobalAmenities.d.ts +1 -2
- package/dist/components/molecules/GlobalAmenities/GlobalAmenities.js +2 -2
- package/dist/components/molecules/PaxChips/PaxChips.d.ts +1 -2
- package/dist/components/molecules/PaxChips/PaxChips.js +2 -2
- package/dist/components/molecules/PaxDisplay/PaxDisplay.d.ts +1 -1
- package/dist/components/molecules/PaxDisplay/PaxDisplay.js +2 -2
- package/dist/components/molecules/ServiceTitle/ServiceTitle.d.ts +1 -1
- package/dist/components/molecules/ServiceTitle/ServiceTitle.js +2 -2
- package/dist/components/molecules/StepperTimeline/StepperTimeline.d.ts +3 -2
- package/dist/components/molecules/StepperTimeline/StepperTimeline.js +2 -2
- package/dist/components/molecules/TableServiceItem/DetailsCol.d.ts +1 -1
- package/dist/components/molecules/TableServiceItem/DetailsCol.js +2 -2
- package/dist/components/molecules/TableServiceItem/ItemCol.d.ts +1 -1
- package/dist/components/molecules/TableServiceItem/ItemCol.js +2 -2
- package/dist/components/molecules/TableServiceItem/RowAccommodation.d.ts +2 -3
- package/dist/components/molecules/TableServiceItem/RowAccommodation.js +9 -6
- package/dist/components/molecules/TableServiceItem/RowExcursion.d.ts +3 -4
- package/dist/components/molecules/TableServiceItem/RowExcursion.js +5 -5
- package/dist/components/molecules/TableServiceItem/RowOtherServices.d.ts +3 -4
- package/dist/components/molecules/TableServiceItem/RowOtherServices.js +4 -4
- package/dist/components/molecules/TableServiceItem/RowTransfer.d.ts +3 -4
- package/dist/components/molecules/TableServiceItem/RowTransfer.js +4 -4
- package/dist/components/molecules/TableServiceItem/index.d.ts +4 -4
- package/dist/components/molecules/TextWithBorderBottom/TextWithBorderBottom.d.ts +1 -2
- package/dist/components/molecules/TextWithBorderBottom/TextWithBorderBottom.js +2 -2
- package/dist/components/molecules/TextWithIcon/TextWithIcon.d.ts +1 -1
- package/dist/components/molecules/TextWithIcon/TextWithIcon.js +2 -2
- package/dist/components/molecules/TimelineItem/ServiceAccommodation.d.ts +1 -2
- package/dist/components/molecules/TimelineItem/ServiceAccommodation.js +2 -2
- package/dist/components/molecules/TimelineItem/ServiceExcursion.d.ts +1 -2
- package/dist/components/molecules/TimelineItem/ServiceExcursion.js +2 -2
- package/dist/components/molecules/TimelineItem/ServiceTransfer.d.ts +1 -2
- package/dist/components/molecules/TimelineItem/ServiceTransfer.js +2 -2
- package/dist/components/molecules/TimelineItem/TimelineHeader.d.ts +1 -2
- package/dist/components/molecules/TimelineItem/TimelineHeader.js +2 -2
- package/dist/components/molecules/TimelineItem/TimelineItem.d.ts +6 -3
- package/dist/components/molecules/Toast/Toast.d.ts +1 -2
- package/dist/components/molecules/Toast/Toast.js +3 -3
- package/dist/components/molecules/TooltipDisplay/TooltipDisplay.d.ts +1 -1
- package/dist/components/molecules/TooltipDisplay/TooltipDisplay.js +2 -2
- package/dist/components/organisms/Booking/Booking.d.ts +8 -4
- package/dist/components/organisms/Booking/BookingDocket/BookingDocket.d.ts +1 -1
- package/dist/components/organisms/Booking/BookingDocket/BookingDocket.js +2 -2
- package/dist/components/organisms/Booking/BookingHeader.d.ts +1 -2
- package/dist/components/organisms/Booking/BookingHeader.js +2 -2
- package/dist/components/organisms/Booking/BookingPaxList.d.ts +1 -2
- package/dist/components/organisms/Booking/BookingPaxList.js +2 -2
- package/dist/components/organisms/Booking/BookingStep/BookingStep.d.ts +1 -2
- package/dist/components/organisms/Booking/BookingStep/BookingStep.js +2 -2
- package/dist/components/organisms/DialogBookingAddItem/AddItemNewService.d.ts +1 -1
- package/dist/components/organisms/DialogBookingAddItem/AddItemNewService.js +2 -2
- package/dist/components/organisms/DialogBookingAddItem/AddItemSelector.d.ts +1 -1
- package/dist/components/organisms/DialogBookingAddItem/AddItemSelector.js +3 -3
- package/dist/components/organisms/DialogBookingAddItem/DialogBookingAddItem.d.ts +1 -2
- package/dist/components/organisms/DialogBookingAddItem/DialogBookingAddItem.js +2 -2
- package/dist/components/organisms/DialogBookingConfirm/BookingCancellationPolicy.d.ts +1 -1
- package/dist/components/organisms/DialogBookingConfirm/BookingCancellationPolicy.js +2 -2
- package/dist/components/organisms/DialogBookingConfirm/BookingMailSent.d.ts +1 -2
- package/dist/components/organisms/DialogBookingConfirm/BookingMailSent.js +2 -2
- package/dist/components/organisms/DialogBookingConfirm/BookingReference.d.ts +1 -2
- package/dist/components/organisms/DialogBookingConfirm/BookingReference.js +2 -2
- package/dist/components/organisms/DialogBookingConfirm/BookingSuccess.d.ts +1 -2
- package/dist/components/organisms/DialogBookingConfirm/BookingSuccess.js +2 -2
- package/dist/components/organisms/DialogBookingConfirm/DialogBookingConfirm.d.ts +11 -7
- package/dist/components/organisms/DialogBookingConfirm/DialogBookingConfirm.js +2 -2
- package/dist/components/organisms/DialogCancelService/CancelBooking/CancelBooking.d.ts +1 -2
- package/dist/components/organisms/DialogCancelService/CancelBooking/CancelBooking.js +2 -2
- package/dist/components/organisms/DialogCancelService/CancelPolicy.d.ts +1 -2
- package/dist/components/organisms/DialogCancelService/CancelPolicy.js +2 -2
- package/dist/components/organisms/DialogCancelService/ConfirmDelete/ConfirmDelete.d.ts +1 -2
- package/dist/components/organisms/DialogCancelService/ConfirmDelete/ConfirmDelete.js +2 -2
- package/dist/components/organisms/DialogCancelService/DialogCancelService.d.ts +9 -7
- package/dist/components/organisms/DialogCancelService/DialogCancelService.js +2 -2
- package/dist/components/organisms/DialogCancelService/FromList.d.ts +1 -1
- package/dist/components/organisms/DialogCancelService/FromList.js +2 -2
- package/dist/components/organisms/DialogComparison/DialogComparison.d.ts +1 -1
- package/dist/components/organisms/DialogComparison/DialogComparison.js +2 -2
- package/dist/components/organisms/DialogDeleteConfirm/DialogDeleteConfirm.d.ts +8 -6
- package/dist/components/organisms/DialogDeleteConfirm/DialogDeleteConfirm.js +2 -2
- package/dist/components/organisms/DialogDeleteConfirm/DialogDeleteConfirmMultiple/DialogDeleteConfirmMultiple.d.ts +1 -2
- package/dist/components/organisms/DialogDeleteConfirm/DialogDeleteConfirmMultiple/DialogDeleteConfirmMultiple.js +2 -2
- package/dist/components/organisms/DialogDeleteConfirm/DialogDeleteConfirmWrapper.d.ts +1 -1
- package/dist/components/organisms/DialogDeleteConfirm/DialogDeleteConfirmWrapper.js +2 -2
- package/dist/components/organisms/DialogQuoteRename/DialogQuoteRename.d.ts +1 -1
- package/dist/components/organisms/DialogQuoteRename/DialogQuoteRename.js +2 -2
- package/dist/components/organisms/DialogSendingMail/DialogSendingMail.d.ts +7 -5
- package/dist/components/organisms/DialogSendingMail/DialogSendingMail.js +2 -2
- package/dist/components/organisms/DialogSendingMail/DialogSendingMailContent.d.ts +1 -2
- package/dist/components/organisms/DialogSendingMail/DialogSendingMailContent.js +2 -2
- package/dist/components/organisms/DialogSendingMail/DialogSendingMailMultiple/DialogSendingMailMultiple.d.ts +1 -2
- package/dist/components/organisms/DialogSendingMail/DialogSendingMailMultiple/DialogSendingMailMultiple.js +2 -2
- package/dist/components/organisms/QuoteHeader/QuoteHeader.css +72 -46
- package/dist/components/organisms/TabServiceDetails/Accommodation.d.ts +1 -2
- package/dist/components/organisms/TabServiceDetails/Accommodation.js +2 -2
- package/dist/components/organisms/TabServiceDetails/DetailContentTransfer.d.ts +1 -2
- package/dist/components/organisms/TabServiceDetails/DetailContentTransfer.js +2 -2
- package/dist/components/organisms/TabServiceDetails/DetailsContentAccom.d.ts +14 -1
- package/dist/components/organisms/TabServiceDetails/DetailsContentAccom.js +2 -2
- package/dist/components/organisms/TabServiceDetails/Excursion.d.ts +1 -2
- package/dist/components/organisms/TabServiceDetails/Excursion.js +2 -2
- package/dist/components/organisms/TabServiceDetails/TabServiceDetails.d.ts +3 -3
- package/dist/components/organisms/TabServiceDetails/Transfer.d.ts +1 -2
- package/dist/components/organisms/TabServiceDetails/Transfer.js +2 -2
- package/dist/components/organisms/Table/Table.d.ts +1 -1
- package/dist/components/organisms/Table/Table.js +2 -2
- package/package.json +1 -1
- package/src/components/molecules/ActionDropdown/ActionDropdown.tsx +3 -6
- package/src/components/molecules/AddItemButton/AddItemButton.tsx +3 -2
- package/src/components/molecules/BookingPax/BookingPax.tsx +2 -2
- package/src/components/molecules/BookingPax/BookingPaxAccom.tsx +3 -3
- package/src/components/molecules/BookingPax/BookingPaxClient/BookingPaxClient.tsx +2 -2
- package/src/components/molecules/BookingPax/BookingPaxExcursion.tsx +3 -3
- package/src/components/molecules/BookingPax/BookingPaxHeader.tsx +2 -2
- package/src/components/molecules/BookingPax/BookingPaxLayout/BookingPaxLayout.tsx +2 -2
- package/src/components/molecules/BookingPax/BookingPaxRemarks.tsx +3 -2
- package/src/components/molecules/BookingPax/BookingPaxTransfer.tsx +2 -2
- package/src/components/molecules/BookingResume/BookingResume.tsx +2 -2
- package/src/components/molecules/BookingResume/BookingResumeLayout/BookingResumeLayout.tsx +2 -2
- package/src/components/molecules/BookingResume/ResumeAccom/ResumeAccom.tsx +2 -3
- package/src/components/molecules/BookingResume/ResumeExcursion/ResumeExcursion.tsx +2 -3
- package/src/components/molecules/BookingResume/ResumeOtherService.tsx +2 -3
- package/src/components/molecules/BookingResume/ResumeTransfer.tsx +2 -3
- package/src/components/molecules/Breadcrumbs/Breadcrumbs.tsx +2 -3
- package/src/components/molecules/DateDisplay/DateDisplay.tsx +11 -10
- package/src/components/molecules/DetailsInfo/DetailsAction.tsx +2 -3
- package/src/components/molecules/DetailsInfo/DetailsAgency/DetailsAgency.tsx +2 -2
- package/src/components/molecules/DetailsInfo/DetailsClient/DetailsClient.tsx +2 -3
- package/src/components/molecules/DetailsInfo/DetailsFile.tsx +2 -3
- package/src/components/molecules/DialogContentPolicy/CancellationLayout/CancellationLayout.tsx +2 -2
- package/src/components/molecules/DialogContentPolicy/DialogCancellationAccom.tsx +2 -4
- package/src/components/molecules/DialogContentPolicy/DialogCancellationExcursion.tsx +2 -4
- package/src/components/molecules/DialogContentPolicy/DialogCancellationList.tsx +4 -5
- package/src/components/molecules/DialogContentPolicy/DialogContentPolicy.tsx +2 -2
- package/src/components/molecules/FromTo/FromTo.tsx +2 -2
- package/src/components/molecules/GlobalAmenities/GlobalAmenities.tsx +2 -3
- package/src/components/molecules/PaxChips/PaxChips.tsx +2 -3
- package/src/components/molecules/PaxDisplay/PaxDisplay.tsx +2 -2
- package/src/components/molecules/ServiceTitle/ServiceTitle.tsx +2 -2
- package/src/components/molecules/StepperTimeline/StepperTimeline.tsx +2 -2
- package/src/components/molecules/TableServiceItem/DetailsCol.tsx +2 -2
- package/src/components/molecules/TableServiceItem/ItemCol.tsx +2 -2
- package/src/components/molecules/TableServiceItem/RowAccommodation.tsx +17 -7
- package/src/components/molecules/TableServiceItem/RowExcursion.tsx +12 -6
- package/src/components/molecules/TableServiceItem/RowOtherServices.tsx +4 -5
- package/src/components/molecules/TableServiceItem/RowTransfer.tsx +4 -7
- package/src/components/molecules/TextWithBorderBottom/TextWithBorderBottom.tsx +2 -3
- package/src/components/molecules/TextWithIcon/TextWithIcon.tsx +2 -2
- package/src/components/molecules/TimelineItem/ServiceAccommodation.tsx +2 -3
- package/src/components/molecules/TimelineItem/ServiceExcursion.tsx +2 -3
- package/src/components/molecules/TimelineItem/ServiceTransfer.tsx +2 -3
- package/src/components/molecules/TimelineItem/TimelineHeader.tsx +2 -3
- package/src/components/molecules/Toast/Toast.tsx +9 -9
- package/src/components/molecules/TooltipDisplay/TooltipDisplay.tsx +2 -2
- package/src/components/organisms/Booking/BookingDocket/BookingDocket.tsx +2 -2
- package/src/components/organisms/Booking/BookingHeader.tsx +2 -3
- package/src/components/organisms/Booking/BookingPaxList.tsx +3 -3
- package/src/components/organisms/Booking/BookingStep/BookingStep.tsx +3 -3
- package/src/components/organisms/DialogBookingAddItem/AddItemNewService.tsx +2 -2
- package/src/components/organisms/DialogBookingAddItem/AddItemSelector.tsx +3 -2
- package/src/components/organisms/DialogBookingAddItem/DialogBookingAddItem.tsx +3 -3
- package/src/components/organisms/DialogBookingConfirm/BookingCancellationPolicy.tsx +2 -2
- package/src/components/organisms/DialogBookingConfirm/BookingMailSent.tsx +2 -3
- package/src/components/organisms/DialogBookingConfirm/BookingReference.tsx +3 -3
- package/src/components/organisms/DialogBookingConfirm/BookingSuccess.tsx +2 -3
- package/src/components/organisms/DialogBookingConfirm/DialogBookingConfirm.tsx +2 -2
- package/src/components/organisms/DialogCancelService/CancelBooking/CancelBooking.tsx +3 -3
- package/src/components/organisms/DialogCancelService/CancelPolicy.tsx +2 -3
- package/src/components/organisms/DialogCancelService/ConfirmDelete/ConfirmDelete.tsx +2 -3
- package/src/components/organisms/DialogCancelService/DialogCancelService.tsx +2 -2
- package/src/components/organisms/DialogCancelService/FromList.tsx +3 -3
- package/src/components/organisms/DialogComparison/DialogComparison.tsx +2 -2
- package/src/components/organisms/DialogDeleteConfirm/DialogDeleteConfirm.tsx +2 -2
- package/src/components/organisms/DialogDeleteConfirm/DialogDeleteConfirmMultiple/DialogDeleteConfirmMultiple.tsx +3 -5
- package/src/components/organisms/DialogDeleteConfirm/DialogDeleteConfirmWrapper.tsx +2 -2
- package/src/components/organisms/DialogQuoteRename/DialogQuoteRename.tsx +2 -2
- package/src/components/organisms/DialogSendingMail/DialogSendingMail.tsx +2 -2
- package/src/components/organisms/DialogSendingMail/DialogSendingMailContent.tsx +3 -5
- package/src/components/organisms/DialogSendingMail/DialogSendingMailMultiple/DialogSendingMailMultiple.tsx +3 -5
- package/src/components/organisms/QuoteHeader/QuoteHeader.css +26 -27
- package/src/components/organisms/TabServiceDetails/Accommodation.tsx +2 -3
- package/src/components/organisms/TabServiceDetails/DetailContentTransfer.tsx +2 -3
- package/src/components/organisms/TabServiceDetails/DetailsContentAccom.tsx +3 -3
- package/src/components/organisms/TabServiceDetails/Excursion.tsx +2 -3
- package/src/components/organisms/TabServiceDetails/Transfer.tsx +2 -3
- package/src/components/organisms/Table/Table.tsx +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import useBookingPax from '@/src/hooks/useBookingPax';
|
|
2
|
-
import
|
|
2
|
+
import { useEffect, useMemo, useRef } from 'react';
|
|
3
3
|
import TextWithIcon from '../TextWithIcon/TextWithIcon';
|
|
4
4
|
import {
|
|
5
5
|
BookingPaxClient,
|
|
@@ -69,7 +69,7 @@ export interface BookingPaxAccomProps extends Pick<
|
|
|
69
69
|
onError?: (roomIndex: number, hasError: boolean) => void;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
export
|
|
72
|
+
export function BookingPaxAccom(props: BookingPaxAccomProps) {
|
|
73
73
|
const {
|
|
74
74
|
rooms,
|
|
75
75
|
clientsInfo = [],
|
|
@@ -151,4 +151,4 @@ export const BookingPaxAccom: React.FC<BookingPaxAccomProps> = (props) => {
|
|
|
151
151
|
<BookingPaxRemarks onChange={onRemarkChange} />
|
|
152
152
|
</BookingPaxLayout>
|
|
153
153
|
);
|
|
154
|
-
}
|
|
154
|
+
}
|
|
@@ -123,7 +123,7 @@ export interface BookingPaxClientProps {
|
|
|
123
123
|
* @param props.onPaxChange - The callback function to call when the pax changes.
|
|
124
124
|
* @returns The BookingPaxClient component.
|
|
125
125
|
*/
|
|
126
|
-
export
|
|
126
|
+
export function BookingPaxClient(props: BookingPaxClientProps) {
|
|
127
127
|
const {
|
|
128
128
|
clients,
|
|
129
129
|
id,
|
|
@@ -259,4 +259,4 @@ export const BookingPaxClient: React.FC<BookingPaxClientProps> = (props) => {
|
|
|
259
259
|
</div>
|
|
260
260
|
</div>
|
|
261
261
|
);
|
|
262
|
-
}
|
|
262
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import useBookingPax from '@/src/hooks/useBookingPax';
|
|
2
|
-
import
|
|
2
|
+
import { useEffect } from 'react';
|
|
3
3
|
import {
|
|
4
4
|
BookingPaxClient,
|
|
5
5
|
BookingPaxClientInfo,
|
|
@@ -74,7 +74,7 @@ const mapType: Record<BookingPaxExcursionProps['type'], string> = {
|
|
|
74
74
|
* @param props - The props for the BookingPaxExcursion component.
|
|
75
75
|
* @returns The BookingPaxExcursion component.
|
|
76
76
|
*/
|
|
77
|
-
export
|
|
77
|
+
export function BookingPaxExcursion(props: BookingPaxExcursionProps) {
|
|
78
78
|
const {
|
|
79
79
|
name,
|
|
80
80
|
type,
|
|
@@ -117,4 +117,4 @@ export const BookingPaxExcursion: React.FC<BookingPaxExcursionProps> = (props) =
|
|
|
117
117
|
<BookingPaxRemarks onChange={onRemarkChange} />
|
|
118
118
|
</BookingPaxLayout>
|
|
119
119
|
);
|
|
120
|
-
}
|
|
120
|
+
}
|
|
@@ -66,9 +66,9 @@ const BookingPaxWithLocation: React.FC<BookingPaxWithLocationProps> = (props) =>
|
|
|
66
66
|
);
|
|
67
67
|
};
|
|
68
68
|
|
|
69
|
-
export
|
|
69
|
+
export function BookingPaxHeader(props: React.PropsWithChildren) {
|
|
70
70
|
return <div className="booking-pax-header" {...props} />;
|
|
71
|
-
}
|
|
71
|
+
}
|
|
72
72
|
|
|
73
73
|
BookingPaxHeader.Name = BookingPaxWithName;
|
|
74
74
|
BookingPaxHeader.Location = BookingPaxWithLocation;
|
|
@@ -41,7 +41,7 @@ export interface BookingPaxLayoutProps {
|
|
|
41
41
|
* @param props - The props for the BookingPaxLayout component.
|
|
42
42
|
* @returns The BookingPaxLayout component.
|
|
43
43
|
*/
|
|
44
|
-
export
|
|
44
|
+
export function BookingPaxLayout(props: BookingPaxLayoutProps) {
|
|
45
45
|
const { title, icon, header, children, className } = props;
|
|
46
46
|
return (
|
|
47
47
|
<div className={cn('booking-pax-layout', className)}>
|
|
@@ -52,4 +52,4 @@ export const BookingPaxLayout: React.FC<BookingPaxLayoutProps> = (props) => {
|
|
|
52
52
|
<div className="booking-pax-layout__content">{children}</div>
|
|
53
53
|
</div>
|
|
54
54
|
);
|
|
55
|
-
}
|
|
55
|
+
}
|
|
@@ -20,7 +20,8 @@ export interface BookingPaxRemarksProps {
|
|
|
20
20
|
* @param props - The props for the BookingPaxRemarks component.
|
|
21
21
|
* @returns The BookingPaxRemarks component.
|
|
22
22
|
*/
|
|
23
|
-
export
|
|
23
|
+
export function BookingPaxRemarks(props: BookingPaxRemarksProps) {
|
|
24
|
+
const { onChange } = props;
|
|
24
25
|
const [remarks, setRemarks] = useState('');
|
|
25
26
|
|
|
26
27
|
const textareaRef = useRef<HTMLTextAreaElement>(null);
|
|
@@ -57,4 +58,4 @@ export const BookingPaxRemarks: React.FC<BookingPaxRemarksProps> = ({ onChange }
|
|
|
57
58
|
/>
|
|
58
59
|
</div>
|
|
59
60
|
);
|
|
60
|
-
}
|
|
61
|
+
}
|
|
@@ -89,7 +89,7 @@ export const mapTransferType: Record<BookingPaxTransferProps['type'], string> =
|
|
|
89
89
|
* @param props - The props for the BookingPaxTransfer component.
|
|
90
90
|
* @returns The BookingPaxTransfer component.
|
|
91
91
|
*/
|
|
92
|
-
export
|
|
92
|
+
export function BookingPaxTransfer(props: BookingPaxTransferProps) {
|
|
93
93
|
const {
|
|
94
94
|
from,
|
|
95
95
|
to,
|
|
@@ -168,4 +168,4 @@ export const BookingPaxTransfer: React.FC<BookingPaxTransferProps> = (props) =>
|
|
|
168
168
|
<BookingPaxRemarks onChange={onRemarkChange} />
|
|
169
169
|
</BookingPaxLayout>
|
|
170
170
|
);
|
|
171
|
-
}
|
|
171
|
+
}
|
|
@@ -5,9 +5,9 @@ import { ResumeExcursion } from './ResumeExcursion/ResumeExcursion';
|
|
|
5
5
|
import { ResumeOtherService } from './ResumeOtherService';
|
|
6
6
|
import { ResumeTransfer } from './ResumeTransfer';
|
|
7
7
|
|
|
8
|
-
export
|
|
8
|
+
export function BookingResume(props: React.PropsWithChildren) {
|
|
9
9
|
return <div className="booking-resume space-y-8" {...props} />;
|
|
10
|
-
}
|
|
10
|
+
}
|
|
11
11
|
|
|
12
12
|
BookingResume.Layout = BookingResumeLayout;
|
|
13
13
|
BookingResume.Accommodation = ResumeAccom;
|
|
@@ -12,7 +12,7 @@ export interface BookingResumeLayoutProps {
|
|
|
12
12
|
className?: string;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
export
|
|
15
|
+
export function BookingResumeLayout(props: BookingResumeLayoutProps) {
|
|
16
16
|
const { title, icon, image, children, className } = props;
|
|
17
17
|
return (
|
|
18
18
|
<div className={cn('booking-resume-layout', className)}>
|
|
@@ -34,4 +34,4 @@ export const BookingResumeLayout: React.FC<BookingResumeLayoutProps> = (props) =
|
|
|
34
34
|
</div>
|
|
35
35
|
</div>
|
|
36
36
|
);
|
|
37
|
-
}
|
|
37
|
+
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import useStays from '@/src/hooks/useStays';
|
|
2
2
|
import { RoomItem } from '@/src/types/table';
|
|
3
3
|
import { BookingPax } from '@/src/types/table/booking.types';
|
|
4
|
-
import React from 'react';
|
|
5
4
|
import { Text } from '../../../atoms/Typography/Typography';
|
|
6
5
|
import { DateDisplay } from '../../DateDisplay/DateDisplay';
|
|
7
6
|
import { PaxDisplay } from '../../PaxDisplay/PaxDisplay';
|
|
@@ -20,7 +19,7 @@ export interface ResumeAccomProps {
|
|
|
20
19
|
rooms: Partial<RoomItem>[];
|
|
21
20
|
}
|
|
22
21
|
|
|
23
|
-
export
|
|
22
|
+
export function ResumeAccom(props: ResumeAccomProps) {
|
|
24
23
|
const { image, dates, clientType, pax, rooms, hotelName } = props;
|
|
25
24
|
|
|
26
25
|
const stay = useStays(dates);
|
|
@@ -60,4 +59,4 @@ export const ResumeAccom: React.FC<ResumeAccomProps> = (props) => {
|
|
|
60
59
|
</div>
|
|
61
60
|
</BookingResumeLayout>
|
|
62
61
|
);
|
|
63
|
-
}
|
|
62
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { BookingPax } from '@/src/types/table/booking.types';
|
|
2
|
-
import React from 'react';
|
|
3
2
|
import { Text } from '../../../atoms/Typography/Typography';
|
|
4
3
|
import { DateDisplay } from '../../DateDisplay/DateDisplay';
|
|
5
4
|
import { PaxDisplay } from '../../PaxDisplay/PaxDisplay';
|
|
@@ -26,7 +25,7 @@ const mapType: Record<ResumeExcursionProps['type'], string> = {
|
|
|
26
25
|
catamaran: 'Cruise excursion',
|
|
27
26
|
};
|
|
28
27
|
|
|
29
|
-
export
|
|
28
|
+
export function ResumeExcursion(props: ResumeExcursionProps) {
|
|
30
29
|
const {
|
|
31
30
|
image,
|
|
32
31
|
date,
|
|
@@ -72,4 +71,4 @@ export const ResumeExcursion: React.FC<ResumeExcursionProps> = (props) => {
|
|
|
72
71
|
</div>
|
|
73
72
|
</BookingResumeLayout>
|
|
74
73
|
);
|
|
75
|
-
}
|
|
74
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { BookingPax } from '@/src/types/table/booking.types';
|
|
2
|
-
import React from 'react';
|
|
3
2
|
import { PaxDisplay } from '../PaxDisplay/PaxDisplay';
|
|
4
3
|
import TextWithIcon from '../TextWithIcon/TextWithIcon';
|
|
5
4
|
import { BookingResumeLayout } from './BookingResumeLayout/BookingResumeLayout';
|
|
@@ -8,7 +7,7 @@ export interface ResumeOtherServiceProps {
|
|
|
8
7
|
pax: BookingPax;
|
|
9
8
|
}
|
|
10
9
|
|
|
11
|
-
export
|
|
10
|
+
export function ResumeOtherService(props: ResumeOtherServiceProps) {
|
|
12
11
|
const { pax } = props;
|
|
13
12
|
return (
|
|
14
13
|
<BookingResumeLayout title="Other Services" icon="more">
|
|
@@ -18,4 +17,4 @@ export const ResumeOtherService: React.FC<ResumeOtherServiceProps> = (props) =>
|
|
|
18
17
|
</div>
|
|
19
18
|
</BookingResumeLayout>
|
|
20
19
|
);
|
|
21
|
-
}
|
|
20
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { BookingPax } from '@/src/types/table/booking.types';
|
|
2
|
-
import React from 'react';
|
|
3
2
|
import { Text } from '../../atoms/Typography/Typography';
|
|
4
3
|
import { DateDisplay } from '../DateDisplay/DateDisplay';
|
|
5
4
|
import FromTo, { FromToProps } from '../FromTo/FromTo';
|
|
@@ -16,7 +15,7 @@ export interface ResumeTransferProps {
|
|
|
16
15
|
image: string;
|
|
17
16
|
}
|
|
18
17
|
|
|
19
|
-
export
|
|
18
|
+
export function ResumeTransfer(props: ResumeTransferProps) {
|
|
20
19
|
const { type, pax, date, location, carName, image } = props;
|
|
21
20
|
|
|
22
21
|
const transferType =
|
|
@@ -46,4 +45,4 @@ export const ResumeTransfer: React.FC<ResumeTransferProps> = (props) => {
|
|
|
46
45
|
</div>
|
|
47
46
|
</BookingResumeLayout>
|
|
48
47
|
);
|
|
49
|
-
}
|
|
48
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { cn } from '@/src/lib/utils';
|
|
2
|
-
import React from 'react';
|
|
3
2
|
import Icon from '../../atoms/Icon/Icon';
|
|
4
3
|
import { Text } from '../../atoms/Typography/Typography';
|
|
5
4
|
import './Breadcrumbs.css';
|
|
@@ -14,7 +13,7 @@ export interface BreadcrumbsProps {
|
|
|
14
13
|
onBack?: () => void;
|
|
15
14
|
}
|
|
16
15
|
|
|
17
|
-
export
|
|
16
|
+
export function Breadcrumbs(props: BreadcrumbsProps) {
|
|
18
17
|
const { items, onBack } = props;
|
|
19
18
|
|
|
20
19
|
return (
|
|
@@ -44,4 +43,4 @@ export const Breadcrumbs: React.FC<BreadcrumbsProps> = (props) => {
|
|
|
44
43
|
))}
|
|
45
44
|
</ol>
|
|
46
45
|
);
|
|
47
|
-
}
|
|
46
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { format, isValid } from 'date-fns';
|
|
2
|
-
import
|
|
2
|
+
import { Fragment, useMemo } from 'react';
|
|
3
3
|
import Icon from '../../atoms/Icon/Icon';
|
|
4
4
|
import { Text, TextProps } from '../../atoms/Typography/Typography';
|
|
5
5
|
import './DateDisplay.css';
|
|
@@ -35,14 +35,15 @@ export interface DateDisplayProps {
|
|
|
35
35
|
* @param DateDisplayProps
|
|
36
36
|
* @returns
|
|
37
37
|
*/
|
|
38
|
-
export
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
38
|
+
export function DateDisplay(props: DateDisplayProps) {
|
|
39
|
+
const {
|
|
40
|
+
dates = [],
|
|
41
|
+
arrowSize = 'sm',
|
|
42
|
+
calendarSize = 'sm',
|
|
43
|
+
textSize = 'sm',
|
|
44
|
+
colorMode = 'black',
|
|
45
|
+
className = '',
|
|
46
|
+
} = props;
|
|
46
47
|
const formattedDates = useMemo(() => {
|
|
47
48
|
return dates.map((d) => {
|
|
48
49
|
const dateObj = typeof d === 'string' ? new Date(d) : d;
|
|
@@ -92,4 +93,4 @@ export const DateDisplay: React.FC<DateDisplayProps> = ({
|
|
|
92
93
|
))}
|
|
93
94
|
</div>
|
|
94
95
|
);
|
|
95
|
-
}
|
|
96
|
+
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { cn } from '@/src/lib/utils';
|
|
2
2
|
import { ActionDropdownType } from '@/src/types/table';
|
|
3
|
-
import React from 'react';
|
|
4
3
|
import Button, { ButtonProps } from '../../atoms/Button/Button';
|
|
5
4
|
import { ActionDropdown, ActionDropdownItem } from '../ActionDropdown/ActionDropdown';
|
|
6
5
|
|
|
@@ -14,7 +13,7 @@ export interface DetailsActionProps {
|
|
|
14
13
|
dropdownMaxWidth?: string;
|
|
15
14
|
}
|
|
16
15
|
|
|
17
|
-
export
|
|
16
|
+
export function DetailsAction(props: DetailsActionProps) {
|
|
18
17
|
const {
|
|
19
18
|
data = [],
|
|
20
19
|
onAction,
|
|
@@ -65,4 +64,4 @@ export const DetailsAction: React.FC<DetailsActionProps> = (props) => {
|
|
|
65
64
|
</Button>
|
|
66
65
|
</ActionDropdown>
|
|
67
66
|
);
|
|
68
|
-
}
|
|
67
|
+
}
|
|
@@ -14,7 +14,7 @@ export interface DetailsAgencyProps {
|
|
|
14
14
|
children?: React.ReactNode;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
export
|
|
17
|
+
export function DetailsAgency(props: DetailsAgencyProps) {
|
|
18
18
|
const { name, clientType, isOnRequest, children } = props;
|
|
19
19
|
return (
|
|
20
20
|
<div className="flex flex-col gap-y-6 items-end">
|
|
@@ -54,4 +54,4 @@ export const DetailsAgency: React.FC<DetailsAgencyProps> = (props) => {
|
|
|
54
54
|
{children}
|
|
55
55
|
</div>
|
|
56
56
|
);
|
|
57
|
-
}
|
|
57
|
+
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import Chip from '@/src/components/atoms/Chip/Chip';
|
|
2
2
|
import { Text } from '@/src/components/atoms/Typography/Typography';
|
|
3
|
-
import React from 'react';
|
|
4
3
|
import { languagesMap } from '../../ServiceLanguages/constant';
|
|
5
4
|
import './DetailsClient.css';
|
|
6
5
|
|
|
@@ -16,7 +15,7 @@ export interface DetailsClientInfoProps {
|
|
|
16
15
|
clients: DetailsClientInfoItem[];
|
|
17
16
|
}
|
|
18
17
|
|
|
19
|
-
export
|
|
18
|
+
export function DetailsClientInfo(props: DetailsClientInfoProps) {
|
|
20
19
|
const { language, clients } = props;
|
|
21
20
|
return (
|
|
22
21
|
<div className="details-client">
|
|
@@ -53,4 +52,4 @@ export const DetailsClientInfo: React.FC<DetailsClientInfoProps> = (props) => {
|
|
|
53
52
|
</div>
|
|
54
53
|
</div>
|
|
55
54
|
);
|
|
56
|
-
}
|
|
55
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { Text } from '../../atoms/Typography/Typography';
|
|
3
2
|
|
|
4
3
|
export interface DetailsFileProps {
|
|
@@ -14,7 +13,7 @@ export interface DetailsFileProps {
|
|
|
14
13
|
showRegularInfo?: boolean;
|
|
15
14
|
}
|
|
16
15
|
|
|
17
|
-
export
|
|
16
|
+
export function DetailsFile(props: DetailsFileProps) {
|
|
18
17
|
const {
|
|
19
18
|
number,
|
|
20
19
|
name,
|
|
@@ -39,4 +38,4 @@ export const DetailsFile: React.FC<DetailsFileProps> = (props) => {
|
|
|
39
38
|
</Text>
|
|
40
39
|
</div>
|
|
41
40
|
);
|
|
42
|
-
}
|
|
41
|
+
}
|
package/src/components/molecules/DialogContentPolicy/CancellationLayout/CancellationLayout.tsx
CHANGED
|
@@ -15,7 +15,7 @@ export interface CancellationLayoutProps {
|
|
|
15
15
|
currency?: string;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
export
|
|
18
|
+
export function CancellationLayout(props: CancellationLayoutProps) {
|
|
19
19
|
const { title, icon, children, className, image, cancellationFee, currency } = props;
|
|
20
20
|
return (
|
|
21
21
|
<div className={cn('cancellation-layout', className)}>
|
|
@@ -36,4 +36,4 @@ export const CancellationLayout: React.FC<CancellationLayoutProps> = (props) =>
|
|
|
36
36
|
)}
|
|
37
37
|
</div>
|
|
38
38
|
);
|
|
39
|
-
}
|
|
39
|
+
}
|
|
@@ -16,9 +16,7 @@ export interface DialogCancellationAccomProps {
|
|
|
16
16
|
currency?: string;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
export
|
|
20
|
-
props
|
|
21
|
-
) => {
|
|
19
|
+
export function DialogCancellationAccom(props: DialogCancellationAccomProps) {
|
|
22
20
|
const { image, hotelName, dates, rooms, cancellationFee, currency } = props;
|
|
23
21
|
const stay = useStays(dates);
|
|
24
22
|
|
|
@@ -69,4 +67,4 @@ export const DialogCancellationAccom: React.FC<DialogCancellationAccomProps> = (
|
|
|
69
67
|
</div>
|
|
70
68
|
</CancellationLayout>
|
|
71
69
|
);
|
|
72
|
-
}
|
|
70
|
+
}
|
|
@@ -21,9 +21,7 @@ export interface DialogCancellationExcursionProps {
|
|
|
21
21
|
currency?: string;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
export
|
|
25
|
-
props
|
|
26
|
-
) => {
|
|
24
|
+
export function DialogCancellationExcursion(props: DialogCancellationExcursionProps) {
|
|
27
25
|
const { image, excursionName, date, details, policy, cancellationFee, currency } =
|
|
28
26
|
props;
|
|
29
27
|
|
|
@@ -64,4 +62,4 @@ export const DialogCancellationExcursion: React.FC<DialogCancellationExcursionPr
|
|
|
64
62
|
</div>
|
|
65
63
|
</CancellationLayout>
|
|
66
64
|
);
|
|
67
|
-
}
|
|
65
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import {
|
|
3
2
|
DialogCancellationAccom,
|
|
4
3
|
DialogCancellationAccomProps,
|
|
@@ -39,7 +38,7 @@ const isExcursion = (
|
|
|
39
38
|
return 'excursionName' in data;
|
|
40
39
|
};
|
|
41
40
|
|
|
42
|
-
export
|
|
41
|
+
export function CancellationsList(props: DialogCancellationListProps) {
|
|
43
42
|
const { cancellations } = props;
|
|
44
43
|
return (
|
|
45
44
|
<>
|
|
@@ -54,7 +53,7 @@ export const CancellationsList = (props: DialogCancellationListProps) => {
|
|
|
54
53
|
})}
|
|
55
54
|
</>
|
|
56
55
|
);
|
|
57
|
-
}
|
|
56
|
+
}
|
|
58
57
|
|
|
59
58
|
/**
|
|
60
59
|
* DialogCancellationList is a component that allows the user to display the cancellations.
|
|
@@ -67,10 +66,10 @@ export const CancellationsList = (props: DialogCancellationListProps) => {
|
|
|
67
66
|
* @param props - The props for the DialogCancellationList component.
|
|
68
67
|
* @returns The DialogCancellationList component.
|
|
69
68
|
*/
|
|
70
|
-
export
|
|
69
|
+
export function DialogCancellationList(props: DialogCancellationListProps) {
|
|
71
70
|
return (
|
|
72
71
|
<DialogContentPolicy>
|
|
73
72
|
<CancellationsList {...props} />
|
|
74
73
|
</DialogContentPolicy>
|
|
75
74
|
);
|
|
76
|
-
}
|
|
75
|
+
}
|
|
@@ -28,7 +28,7 @@ export interface DialogContentPolicyProps {
|
|
|
28
28
|
* @param props - The props for the DialogContentPolicy component.
|
|
29
29
|
* @returns The DialogContentPolicy component.
|
|
30
30
|
*/
|
|
31
|
-
export
|
|
31
|
+
export function DialogContentPolicy(props: DialogContentPolicyProps) {
|
|
32
32
|
const { children, onSubmit } = props;
|
|
33
33
|
const [accepted, setAccepted] = useState<boolean>(false);
|
|
34
34
|
|
|
@@ -54,7 +54,7 @@ export const DialogContentPolicy = (props: DialogContentPolicyProps) => {
|
|
|
54
54
|
</div>
|
|
55
55
|
</div>
|
|
56
56
|
);
|
|
57
|
-
}
|
|
57
|
+
}
|
|
58
58
|
|
|
59
59
|
DialogContentPolicy.Accommodation = DialogCancellationAccom;
|
|
60
60
|
DialogContentPolicy.Excursion = DialogCancellationExcursion;
|
|
@@ -7,7 +7,7 @@ export interface FromToProps {
|
|
|
7
7
|
transferType?: string;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
function FromTo(props: Omit<FromToProps, 'transferType'>) {
|
|
11
11
|
const { from, to } = props;
|
|
12
12
|
|
|
13
13
|
const getTransferLocationName = (location?: string) => {
|
|
@@ -26,6 +26,6 @@ const FromTo: React.FC<Omit<FromToProps, 'transferType'>> = (props) => {
|
|
|
26
26
|
</Text>
|
|
27
27
|
</div>
|
|
28
28
|
);
|
|
29
|
-
}
|
|
29
|
+
}
|
|
30
30
|
|
|
31
31
|
export default FromTo;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import CardServiceAccom from '../../atoms/CardServiceAccom/CardServiceAccom';
|
|
3
2
|
import Chip from '../../atoms/Chip/Chip';
|
|
4
3
|
import { Text } from '../../atoms/Typography/Typography';
|
|
@@ -12,7 +11,7 @@ export interface GlobalAmenitiesProps {
|
|
|
12
11
|
amenities: GlobalAmenity[];
|
|
13
12
|
}
|
|
14
13
|
|
|
15
|
-
export
|
|
14
|
+
export function GlobalAmenities(props: GlobalAmenitiesProps) {
|
|
16
15
|
const { amenities } = props;
|
|
17
16
|
return (
|
|
18
17
|
<CardServiceAccom className="space-y-4" withBorderLeft>
|
|
@@ -32,4 +31,4 @@ export const GlobalAmenities: React.FC<GlobalAmenitiesProps> = (props) => {
|
|
|
32
31
|
</div>
|
|
33
32
|
</CardServiceAccom>
|
|
34
33
|
);
|
|
35
|
-
}
|
|
34
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import Chip from '../../atoms/Chip/Chip';
|
|
3
2
|
|
|
4
3
|
export interface PaxCount {
|
|
@@ -12,7 +11,7 @@ export interface PaxChipsProps {
|
|
|
12
11
|
pax: PaxCount;
|
|
13
12
|
}
|
|
14
13
|
|
|
15
|
-
export
|
|
14
|
+
export function PaxChips(props: PaxChipsProps) {
|
|
16
15
|
const { pax } = props;
|
|
17
16
|
return (
|
|
18
17
|
<div className="flex flex-wrap gap-2">
|
|
@@ -27,4 +26,4 @@ export const PaxChips: React.FC<PaxChipsProps> = (props) => {
|
|
|
27
26
|
))}
|
|
28
27
|
</div>
|
|
29
28
|
);
|
|
30
|
-
}
|
|
29
|
+
}
|
|
@@ -15,7 +15,7 @@ const paxLabel: Record<keyof BookingPax, string> = {
|
|
|
15
15
|
infant: 'Infant',
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
-
export
|
|
18
|
+
export function PaxDisplay(props: PaxDisplayProps) {
|
|
19
19
|
const { pax } = props;
|
|
20
20
|
return (
|
|
21
21
|
<div className="pax-display">
|
|
@@ -56,4 +56,4 @@ export const PaxDisplay: React.FC<PaxDisplayProps> = (props) => {
|
|
|
56
56
|
))}
|
|
57
57
|
</div>
|
|
58
58
|
);
|
|
59
|
-
}
|
|
59
|
+
}
|
|
@@ -13,7 +13,7 @@ export interface ServiceTitleProps {
|
|
|
13
13
|
iconSize?: IconBaseProps['size'];
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
export
|
|
16
|
+
export function ServiceTitle(props: ServiceTitleProps) {
|
|
17
17
|
const {
|
|
18
18
|
title,
|
|
19
19
|
textSize = 'md',
|
|
@@ -34,4 +34,4 @@ export const ServiceTitle: React.FC<ServiceTitleProps> = (props) => {
|
|
|
34
34
|
<span>{title}</span>
|
|
35
35
|
</Text>
|
|
36
36
|
);
|
|
37
|
-
}
|
|
37
|
+
}
|
|
@@ -23,7 +23,7 @@ export interface StepperTimelineProps {
|
|
|
23
23
|
onChange?: (step: StepperTimelineItem, index: number) => void;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
function StepperTimelineItem(props: StepperTimelineItemProps) {
|
|
27
27
|
const { label, current, index, textAlign = 'center', onChange } = props;
|
|
28
28
|
return (
|
|
29
29
|
<div className="stepper-timeline-item">
|
|
@@ -47,7 +47,7 @@ const StepperTimelineItem: React.FC<StepperTimelineItemProps> = (props) => {
|
|
|
47
47
|
</div>
|
|
48
48
|
</div>
|
|
49
49
|
);
|
|
50
|
-
}
|
|
50
|
+
}
|
|
51
51
|
|
|
52
52
|
export function StepperTimeline(props: StepperTimelineProps) {
|
|
53
53
|
const { steps, className, currentIndex = 0, onChange } = props;
|
|
@@ -14,7 +14,7 @@ export interface DetailsColProps {
|
|
|
14
14
|
className?: string;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
export
|
|
17
|
+
export function DetailsCol(props: DetailsColProps) {
|
|
18
18
|
const { data, className } = props;
|
|
19
19
|
|
|
20
20
|
return (
|
|
@@ -26,4 +26,4 @@ export const DetailsCol: React.FC<DetailsColProps> = (props) => {
|
|
|
26
26
|
))}
|
|
27
27
|
</div>
|
|
28
28
|
);
|
|
29
|
-
}
|
|
29
|
+
}
|
|
@@ -15,7 +15,7 @@ export interface ItemColProps {
|
|
|
15
15
|
children?: React.ReactNode;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
export
|
|
18
|
+
export function ItemCol(props: ItemColProps) {
|
|
19
19
|
const {
|
|
20
20
|
serviceType,
|
|
21
21
|
serviceName,
|
|
@@ -65,4 +65,4 @@ export const ItemCol: React.FC<ItemColProps> = (props) => {
|
|
|
65
65
|
)}
|
|
66
66
|
</div>
|
|
67
67
|
);
|
|
68
|
-
}
|
|
68
|
+
}
|