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
|
@@ -13,9 +13,9 @@ export interface FromListProps<T extends TableRowData<T> = DetailResumeItem> {
|
|
|
13
13
|
onSaveAndUpdate?: () => void;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
export
|
|
16
|
+
export function FromList<T extends TableRowData<T> = DetailResumeItem>(
|
|
17
17
|
props: FromListProps<T>
|
|
18
|
-
)
|
|
18
|
+
) {
|
|
19
19
|
const { data, columns, totalRows, onRemove, onCancel, onSaveAndUpdate } = props;
|
|
20
20
|
|
|
21
21
|
// When using default columns, we need to ensure T is compatible with DetailResumeItem
|
|
@@ -47,4 +47,4 @@ export const FromList = <T extends TableRowData<T> = DetailResumeItem>(
|
|
|
47
47
|
</div>
|
|
48
48
|
</div>
|
|
49
49
|
);
|
|
50
|
-
}
|
|
50
|
+
}
|
|
@@ -62,7 +62,7 @@ export const isComparisonOtherService = (
|
|
|
62
62
|
return data.Type === ServiceType.OTHER_SERVICE;
|
|
63
63
|
};
|
|
64
64
|
|
|
65
|
-
export
|
|
65
|
+
export function DialogComparison(props: DialogComparisonProps) {
|
|
66
66
|
const { open, data, columns, setOpen, onBookNow } = props;
|
|
67
67
|
const [selectedValues, setSelectedValues] = useState<string[]>([]);
|
|
68
68
|
const [filteredData, setFilteredData] = useState<MultiComparisonData[]>(data);
|
|
@@ -154,4 +154,4 @@ export const DialogComparison = (props: DialogComparisonProps) => {
|
|
|
154
154
|
</div>
|
|
155
155
|
</DialogBookingConfirm>
|
|
156
156
|
);
|
|
157
|
-
}
|
|
157
|
+
}
|
|
@@ -20,7 +20,7 @@ const DialogDeleteConfirmText = (props: { children: React.ReactNode }) => {
|
|
|
20
20
|
);
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
-
export
|
|
23
|
+
export function DialogDeleteConfirm(props: DialogDeleteConfirmProps) {
|
|
24
24
|
const { open, title, children, setOpen } = props;
|
|
25
25
|
return (
|
|
26
26
|
<DialogBookingConfirm
|
|
@@ -32,7 +32,7 @@ export const DialogDeleteConfirm = (props: DialogDeleteConfirmProps) => {
|
|
|
32
32
|
{children}
|
|
33
33
|
</DialogBookingConfirm>
|
|
34
34
|
);
|
|
35
|
-
}
|
|
35
|
+
}
|
|
36
36
|
|
|
37
37
|
DialogDeleteConfirm.Text = DialogDeleteConfirmText;
|
|
38
38
|
DialogDeleteConfirm.Wrapper = DialogDeleteConfirmWrapper;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Toast from '@/src/components/molecules/Toast';
|
|
2
|
-
import
|
|
2
|
+
import { useEffect, useState } from 'react';
|
|
3
3
|
import Checkbox from '../../../atoms/Checkbox/Checkbox';
|
|
4
4
|
import { DialogDeleteConfirm } from '../DialogDeleteConfirm';
|
|
5
5
|
import './DialogDeleteConfirmMultiple.css';
|
|
@@ -15,9 +15,7 @@ export interface DialogDeleteConfirmMultipleProps {
|
|
|
15
15
|
quotes: AvailableQuote[];
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
export
|
|
19
|
-
props
|
|
20
|
-
) => {
|
|
18
|
+
export function DialogDeleteConfirmMultiple(props: DialogDeleteConfirmMultipleProps) {
|
|
21
19
|
const { quotes, onCancel, onDelete } = props;
|
|
22
20
|
|
|
23
21
|
const [selectedQuotes, setSelectedQuotes] = useState<string[]>([]);
|
|
@@ -81,4 +79,4 @@ export const DialogDeleteConfirmMultiple: React.FC<DialogDeleteConfirmMultiplePr
|
|
|
81
79
|
</div>
|
|
82
80
|
</DialogDeleteConfirm.Wrapper>
|
|
83
81
|
);
|
|
84
|
-
}
|
|
82
|
+
}
|
|
@@ -9,7 +9,7 @@ export interface DialogDeleteConfirmWrapperProps {
|
|
|
9
9
|
children: React.ReactNode;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
export
|
|
12
|
+
export function DialogDeleteConfirmWrapper(props: DialogDeleteConfirmWrapperProps) {
|
|
13
13
|
const {
|
|
14
14
|
onCancel,
|
|
15
15
|
cancelText = 'Cancel',
|
|
@@ -31,4 +31,4 @@ export const DialogDeleteConfirmWrapper = (props: DialogDeleteConfirmWrapperProp
|
|
|
31
31
|
</div>
|
|
32
32
|
</div>
|
|
33
33
|
);
|
|
34
|
-
}
|
|
34
|
+
}
|
|
@@ -11,7 +11,7 @@ export interface DialogQuoteRenameProps {
|
|
|
11
11
|
onSubmit: (quoteName: string) => void;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export
|
|
14
|
+
export function DialogQuoteRename(props: DialogQuoteRenameProps) {
|
|
15
15
|
const { open, setOpen, quoteName, onSubmit } = props;
|
|
16
16
|
const [value, setValue] = useState(quoteName);
|
|
17
17
|
|
|
@@ -45,4 +45,4 @@ export const DialogQuoteRename = (props: DialogQuoteRenameProps) => {
|
|
|
45
45
|
</div>
|
|
46
46
|
</DialogBookingConfirm>
|
|
47
47
|
);
|
|
48
|
-
}
|
|
48
|
+
}
|
|
@@ -10,7 +10,7 @@ export interface DialogSendingMailProps {
|
|
|
10
10
|
type?: 'booking' | 'quotation';
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
export
|
|
13
|
+
export function DialogSendingMail(props: DialogSendingMailProps) {
|
|
14
14
|
const { open, setOpen, children, type = 'booking' } = props;
|
|
15
15
|
|
|
16
16
|
return (
|
|
@@ -23,7 +23,7 @@ export const DialogSendingMail = (props: DialogSendingMailProps) => {
|
|
|
23
23
|
{children}
|
|
24
24
|
</DialogBookingConfirm>
|
|
25
25
|
);
|
|
26
|
-
}
|
|
26
|
+
}
|
|
27
27
|
|
|
28
28
|
DialogSendingMail.SingleQuote = DialogSendingMailContent;
|
|
29
29
|
DialogSendingMail.MultipleQuotes = DialogSendingMailMultiple;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { zodResolver } from '@hookform/resolvers/zod';
|
|
2
|
-
import
|
|
2
|
+
import { useEffect } from 'react';
|
|
3
3
|
import { useForm } from 'react-hook-form';
|
|
4
4
|
import Button from '../../atoms/Button/Button';
|
|
5
5
|
import Input from '../../atoms/Inputs/Input/Input';
|
|
@@ -21,9 +21,7 @@ export interface DialogSendingMailContentProps {
|
|
|
21
21
|
onCancel?: () => void;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
export
|
|
25
|
-
props
|
|
26
|
-
) => {
|
|
24
|
+
export function DialogSendingMailContent(props: DialogSendingMailContentProps) {
|
|
27
25
|
const { userInfo, subject, type, onSubmit, onPreviewAttachment, onCancel } = props;
|
|
28
26
|
|
|
29
27
|
const messageText = () => {
|
|
@@ -113,4 +111,4 @@ export const DialogSendingMailContent: React.FC<DialogSendingMailContentProps> =
|
|
|
113
111
|
</form>
|
|
114
112
|
</Form>
|
|
115
113
|
);
|
|
116
|
-
}
|
|
114
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Checkbox from '@/src/components/atoms/Checkbox/Checkbox';
|
|
2
2
|
import SelectedValue from '@/src/components/atoms/SelectedValue/SelectedValue';
|
|
3
|
-
import
|
|
3
|
+
import { useEffect, useMemo, useState } from 'react';
|
|
4
4
|
import {
|
|
5
5
|
DialogSendingMailContent,
|
|
6
6
|
DialogSendingMailContentProps,
|
|
@@ -57,9 +57,7 @@ export interface DialogSendingMailMultipleProps extends Omit<
|
|
|
57
57
|
*
|
|
58
58
|
* @param props - The props of the component
|
|
59
59
|
*/
|
|
60
|
-
export
|
|
61
|
-
props
|
|
62
|
-
) => {
|
|
60
|
+
export function DialogSendingMailMultiple(props: DialogSendingMailMultipleProps) {
|
|
63
61
|
const { data, onSelected, onSubmit, onPreviewAttachment, ...rest } = props;
|
|
64
62
|
|
|
65
63
|
const [isSelectAll, setIsSelectAll] = useState(false);
|
|
@@ -179,4 +177,4 @@ export const DialogSendingMailMultiple: React.FC<DialogSendingMailMultipleProps>
|
|
|
179
177
|
/>
|
|
180
178
|
</div>
|
|
181
179
|
);
|
|
182
|
-
}
|
|
180
|
+
}
|
|
@@ -1,37 +1,36 @@
|
|
|
1
1
|
.quote-header {
|
|
2
2
|
@apply w-full;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
width: 206px;
|
|
7
|
-
}
|
|
3
|
+
.quote-header__button {
|
|
4
|
+
width: 206px;
|
|
5
|
+
}
|
|
8
6
|
|
|
9
|
-
.quote-header__title {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
7
|
+
.quote-header__title {
|
|
8
|
+
@apply px-2 relative mb-10;
|
|
9
|
+
&::before {
|
|
10
|
+
content: '';
|
|
11
|
+
@apply absolute top-1/2 left-0 -translate-y-1/2;
|
|
12
|
+
@apply w-1 h-8;
|
|
13
|
+
background-color: var(--color-elevation-brand-subtle);
|
|
14
|
+
}
|
|
16
15
|
}
|
|
17
|
-
}
|
|
18
16
|
|
|
19
|
-
.quote-header__search-container {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
.quote-header__search-container {
|
|
18
|
+
@apply mt-12;
|
|
19
|
+
@apply flex justify-between;
|
|
20
|
+
> button {
|
|
21
|
+
@apply gap-x-2.5;
|
|
22
|
+
min-width: 129px;
|
|
23
|
+
}
|
|
25
24
|
}
|
|
26
|
-
}
|
|
27
25
|
|
|
28
|
-
.quote-header__search {
|
|
29
|
-
|
|
30
|
-
}
|
|
26
|
+
.quote-header__search {
|
|
27
|
+
width: 364px;
|
|
28
|
+
}
|
|
31
29
|
|
|
32
|
-
.quote-header__filters {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
.quote-header__filters {
|
|
31
|
+
@apply flex gap-3 my-8;
|
|
32
|
+
.dropdown-container {
|
|
33
|
+
width: 139px;
|
|
34
|
+
}
|
|
36
35
|
}
|
|
37
36
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { DetailsContentAccom, DetailsContentAccomProps } from './DetailsContentAccom';
|
|
3
2
|
import TabServiceDetails from './TabServiceDetails';
|
|
4
3
|
|
|
@@ -26,7 +25,7 @@ export interface AccommodationProps extends DetailsContentAccomProps {
|
|
|
26
25
|
* @param props - Props of the Accommodation component
|
|
27
26
|
* @returns The Accommodation component
|
|
28
27
|
*/
|
|
29
|
-
export
|
|
28
|
+
export function Accommodation(props: AccommodationProps) {
|
|
30
29
|
const { images, isOnRequest, ...rest } = props;
|
|
31
30
|
return (
|
|
32
31
|
<TabServiceDetails.Layout
|
|
@@ -42,4 +41,4 @@ export const Accommodation: React.FC<AccommodationProps> = (props) => {
|
|
|
42
41
|
<DetailsContentAccom {...rest} />
|
|
43
42
|
</TabServiceDetails.Layout>
|
|
44
43
|
);
|
|
45
|
-
}
|
|
44
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import Chip from '../../atoms/Chip/Chip';
|
|
3
2
|
|
|
4
3
|
export interface DetailContentTransferProps {
|
|
@@ -9,7 +8,7 @@ export interface DetailContentTransferProps {
|
|
|
9
8
|
luggageTruck?: number;
|
|
10
9
|
}
|
|
11
10
|
|
|
12
|
-
export
|
|
11
|
+
export function DetailContentTransfer(props: DetailContentTransferProps) {
|
|
13
12
|
const { pax, clientType, carName, airConditioning, luggageTruck } = props;
|
|
14
13
|
return (
|
|
15
14
|
<div className="flex gap-4">
|
|
@@ -42,4 +41,4 @@ export const DetailContentTransfer: React.FC<DetailContentTransferProps> = (prop
|
|
|
42
41
|
)}
|
|
43
42
|
</div>
|
|
44
43
|
);
|
|
45
|
-
}
|
|
44
|
+
}
|
|
@@ -44,9 +44,9 @@ export interface DetailsContentAccomProps {
|
|
|
44
44
|
* @param props - Props of the DetailsContentAccomBody component
|
|
45
45
|
* @returns The DetailsContentAccomBody component
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
function DetailsContentAccomBody(
|
|
48
48
|
props: Omit<DetailsContentAccomProps, 'roomTitle' | 'roomDescription'>
|
|
49
|
-
)
|
|
49
|
+
) {
|
|
50
50
|
const { roomsInfo, globalAmenities } = props;
|
|
51
51
|
return (
|
|
52
52
|
<div className="space-y-4">
|
|
@@ -85,7 +85,7 @@ const DetailsContentAccomBody = (
|
|
|
85
85
|
</div>
|
|
86
86
|
</div>
|
|
87
87
|
);
|
|
88
|
-
}
|
|
88
|
+
}
|
|
89
89
|
|
|
90
90
|
/**
|
|
91
91
|
* Details content for the Accommodation component.
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import {
|
|
3
2
|
DetailsContentExcursion,
|
|
4
3
|
DetailsContentExcursionProps,
|
|
@@ -10,11 +9,11 @@ export interface ExcursionProps extends DetailsContentExcursionProps {
|
|
|
10
9
|
images: string[];
|
|
11
10
|
}
|
|
12
11
|
|
|
13
|
-
export
|
|
12
|
+
export function Excursion(props: ExcursionProps) {
|
|
14
13
|
const { images, ...rest } = props;
|
|
15
14
|
return (
|
|
16
15
|
<TabServiceDetails.Layout title="Excursion" icon="map" images={images}>
|
|
17
16
|
<DetailsContentExcursion {...rest} />
|
|
18
17
|
</TabServiceDetails.Layout>
|
|
19
18
|
);
|
|
20
|
-
}
|
|
19
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import CancellationHeader from '../TabCancellationPolicy/CancellationHeader';
|
|
3
2
|
import { TransferData } from '../TabCancellationPolicy/HeaderExcursion/HeaderTransfer';
|
|
4
3
|
import TabCancellationPolicy from '../TabCancellationPolicy/TabCancellationPolicy';
|
|
@@ -16,7 +15,7 @@ export interface TransferProps {
|
|
|
16
15
|
transferDetails: DetailContentTransferProps;
|
|
17
16
|
}
|
|
18
17
|
|
|
19
|
-
export
|
|
18
|
+
export function Transfer(props: TransferProps) {
|
|
20
19
|
const { image, transferData, transferDetails } = props;
|
|
21
20
|
return (
|
|
22
21
|
<TabCancellationPolicy.Layout
|
|
@@ -31,4 +30,4 @@ export const Transfer: React.FC<TransferProps> = (props) => {
|
|
|
31
30
|
<DetailContentTransfer {...transferDetails} />
|
|
32
31
|
</TabCancellationPolicy.Layout>
|
|
33
32
|
);
|
|
34
|
-
}
|
|
33
|
+
}
|
|
@@ -139,7 +139,7 @@ const NestedContent = <T extends TableRowData<T>>({
|
|
|
139
139
|
* @returns React.ReactNode
|
|
140
140
|
*
|
|
141
141
|
*/
|
|
142
|
-
export
|
|
142
|
+
export function Table<T extends TableRowData<T>>(props: TableProps<T>) {
|
|
143
143
|
const {
|
|
144
144
|
columns,
|
|
145
145
|
data,
|
|
@@ -309,4 +309,4 @@ export const Table = <T extends TableRowData<T>>(props: TableProps<T>) => {
|
|
|
309
309
|
</div>
|
|
310
310
|
</LazyMotion>
|
|
311
311
|
);
|
|
312
|
-
}
|
|
312
|
+
}
|