mautourco-components 0.2.35 → 0.2.37
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.d.ts +1 -4
- package/dist/components/organisms/QuoteHeader/QuoteHeader.js +2 -3
- 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.tsx +2 -4
- 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,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { Text } from '../../atoms/Typography/Typography';
|
|
3
2
|
import FromTo, { FromToProps } from '../FromTo/FromTo';
|
|
4
3
|
import { DetailsCol as DetailsColComponent } from './DetailsCol';
|
|
@@ -21,7 +20,7 @@ export function RowTransfer() {
|
|
|
21
20
|
return <></>;
|
|
22
21
|
}
|
|
23
22
|
|
|
24
|
-
export
|
|
23
|
+
export function DetailsCol(props: RowTransferProps) {
|
|
25
24
|
const { data } = props;
|
|
26
25
|
|
|
27
26
|
return (
|
|
@@ -32,11 +31,9 @@ export const DetailsCol: React.FC<RowTransferProps> = (props) => {
|
|
|
32
31
|
]}
|
|
33
32
|
/>
|
|
34
33
|
);
|
|
35
|
-
}
|
|
34
|
+
}
|
|
36
35
|
|
|
37
|
-
|
|
38
|
-
props
|
|
39
|
-
) => {
|
|
36
|
+
function FirstCol(props: Omit<ItemColProps, 'serviceType' | 'status'> & FromToProps) {
|
|
40
37
|
const { serviceName, offers, transferType, from, to } = props;
|
|
41
38
|
|
|
42
39
|
return (
|
|
@@ -54,7 +51,7 @@ const FirstCol: React.FC<Omit<ItemColProps, 'serviceType' | 'status'> & FromToPr
|
|
|
54
51
|
<FromTo from={from} to={to} />
|
|
55
52
|
</ItemCol>
|
|
56
53
|
);
|
|
57
|
-
}
|
|
54
|
+
}
|
|
58
55
|
|
|
59
56
|
RowTransfer.FirstCol = FirstCol;
|
|
60
57
|
RowTransfer.DetailsCol = DetailsCol;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { Text, TextProps } from '../../atoms/Typography/Typography';
|
|
3
2
|
import './TextWithBorderBottom.css';
|
|
4
3
|
|
|
5
|
-
export
|
|
4
|
+
export function TextWithBorderBottom(props: TextProps) {
|
|
6
5
|
const { children, ...rest } = props;
|
|
7
6
|
return (
|
|
8
7
|
<div className="text-border-bottom">
|
|
9
8
|
<Text {...rest}>{children}</Text>
|
|
10
9
|
</div>
|
|
11
10
|
);
|
|
12
|
-
}
|
|
11
|
+
}
|
|
@@ -42,7 +42,7 @@ export interface TextWithIconProps {
|
|
|
42
42
|
* @param TextWithIconProps
|
|
43
43
|
* @returns
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
function TextWithIcon(props: TextWithIconProps) {
|
|
46
46
|
const {
|
|
47
47
|
icon,
|
|
48
48
|
children,
|
|
@@ -76,6 +76,6 @@ const TextWithIcon: React.FC<TextWithIconProps> = (props) => {
|
|
|
76
76
|
</Text>
|
|
77
77
|
</div>
|
|
78
78
|
);
|
|
79
|
-
}
|
|
79
|
+
}
|
|
80
80
|
|
|
81
81
|
export default TextWithIcon;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { Text } from '../../atoms/Typography/Typography';
|
|
3
2
|
import { DateDisplay } from '../DateDisplay/DateDisplay';
|
|
4
3
|
import { DetailsCol, DetailsColData } from '../TableServiceItem/DetailsCol';
|
|
@@ -11,7 +10,7 @@ export interface ServiceAccommodationProps {
|
|
|
11
10
|
isOnRequest?: boolean;
|
|
12
11
|
}
|
|
13
12
|
|
|
14
|
-
export
|
|
13
|
+
export function ServiceAccommodation(props: ServiceAccommodationProps) {
|
|
15
14
|
const { hotelName, details, dates, isOnRequest } = props;
|
|
16
15
|
|
|
17
16
|
return (
|
|
@@ -26,4 +25,4 @@ export const ServiceAccommodation: React.FC<ServiceAccommodationProps> = (props)
|
|
|
26
25
|
</div>
|
|
27
26
|
</div>
|
|
28
27
|
);
|
|
29
|
-
}
|
|
28
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { Text } from '../../atoms/Typography/Typography';
|
|
3
2
|
import { DateDisplay } from '../DateDisplay/DateDisplay';
|
|
4
3
|
import { DetailsCol, DetailsColData } from '../TableServiceItem/DetailsCol';
|
|
@@ -10,7 +9,7 @@ export interface ServiceExcursionProps {
|
|
|
10
9
|
date: string;
|
|
11
10
|
}
|
|
12
11
|
|
|
13
|
-
export
|
|
12
|
+
export function ServiceExcursion(props: ServiceExcursionProps) {
|
|
14
13
|
const { name, details, date } = props;
|
|
15
14
|
|
|
16
15
|
return (
|
|
@@ -25,4 +24,4 @@ export const ServiceExcursion: React.FC<ServiceExcursionProps> = (props) => {
|
|
|
25
24
|
</div>
|
|
26
25
|
</div>
|
|
27
26
|
);
|
|
28
|
-
}
|
|
27
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import FromTo from '../FromTo/FromTo';
|
|
3
2
|
import { DetailsCol, DetailsColData } from '../TableServiceItem/DetailsCol';
|
|
4
3
|
import { TimelineHeader } from './TimelineHeader';
|
|
@@ -12,7 +11,7 @@ export interface ServiceTransferProps {
|
|
|
12
11
|
details: DetailsColData[];
|
|
13
12
|
}
|
|
14
13
|
|
|
15
|
-
export
|
|
14
|
+
export function ServiceTransfer(props: ServiceTransferProps) {
|
|
16
15
|
const { transferType, location, details } = props;
|
|
17
16
|
|
|
18
17
|
return (
|
|
@@ -22,4 +21,4 @@ export const ServiceTransfer: React.FC<ServiceTransferProps> = (props) => {
|
|
|
22
21
|
<DetailsCol data={details} className="gap-y-2" />
|
|
23
22
|
</div>
|
|
24
23
|
);
|
|
25
|
-
}
|
|
24
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { cn } from '@/src/lib/utils';
|
|
2
|
-
import React from 'react';
|
|
3
2
|
import Chip from '../../atoms/Chip/Chip';
|
|
4
3
|
import Icon, { IconName } from '../../atoms/Icon/Icon';
|
|
5
4
|
import { Text } from '../../atoms/Typography/Typography';
|
|
@@ -12,7 +11,7 @@ export interface TimelineHeaderProps {
|
|
|
12
11
|
isOnRequest?: boolean;
|
|
13
12
|
}
|
|
14
13
|
|
|
15
|
-
export
|
|
14
|
+
export function TimelineHeader(props: TimelineHeaderProps) {
|
|
16
15
|
const { icon = 'car', title, extraText, isOnRequest = false } = props;
|
|
17
16
|
return (
|
|
18
17
|
<div className={cn('timeline-header', isOnRequest && 'timeline-header--request')}>
|
|
@@ -38,4 +37,4 @@ export const TimelineHeader: React.FC<TimelineHeaderProps> = (props) => {
|
|
|
38
37
|
</div>
|
|
39
38
|
</div>
|
|
40
39
|
);
|
|
41
|
-
}
|
|
40
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import '../../../styles/components/molecule/toast.css';
|
|
3
2
|
import Icon from '../../atoms/Icon/Icon';
|
|
4
3
|
import { IconName } from '../../atoms/Icon/icons/registry';
|
|
@@ -28,13 +27,14 @@ export interface ToastProps {
|
|
|
28
27
|
* @param ToastProps
|
|
29
28
|
* @returns
|
|
30
29
|
*/
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
30
|
+
function Toast(props: ToastProps) {
|
|
31
|
+
const {
|
|
32
|
+
text,
|
|
33
|
+
type = 'informational',
|
|
34
|
+
className = '',
|
|
35
|
+
iconName = 'badge-alert',
|
|
36
|
+
showIcon = true,
|
|
37
|
+
} = props;
|
|
38
38
|
return (
|
|
39
39
|
<div className={`toast toast--${type} ${className}`.trim()}>
|
|
40
40
|
<div className="toast__container">
|
|
@@ -49,6 +49,6 @@ const Toast: React.FC<ToastProps> = ({
|
|
|
49
49
|
</div>
|
|
50
50
|
</div>
|
|
51
51
|
);
|
|
52
|
-
}
|
|
52
|
+
}
|
|
53
53
|
|
|
54
54
|
export default Toast;
|
|
@@ -17,7 +17,7 @@ export interface TooltipDisplayProps {
|
|
|
17
17
|
maxWidth?: `${number}px`;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
export
|
|
20
|
+
export function TooltipDisplay(props: TooltipDisplayProps) {
|
|
21
21
|
const { children, content, side = 'right', maxWidth = '300px' } = props;
|
|
22
22
|
return (
|
|
23
23
|
<Tooltip>
|
|
@@ -31,4 +31,4 @@ export const TooltipDisplay: React.FC<TooltipDisplayProps> = (props) => {
|
|
|
31
31
|
</TooltipContent>
|
|
32
32
|
</Tooltip>
|
|
33
33
|
);
|
|
34
|
-
}
|
|
34
|
+
}
|
|
@@ -31,7 +31,7 @@ export interface BookingDocketProps {
|
|
|
31
31
|
resumes: BookingDocketItem[];
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
export
|
|
34
|
+
export function BookingDocket(props: BookingDocketProps) {
|
|
35
35
|
const { dates, resumes } = props;
|
|
36
36
|
const [isBookingOpen, setIsBookingOpen] = useState(false);
|
|
37
37
|
const contentRef = useRef<HTMLDivElement>(null);
|
|
@@ -162,4 +162,4 @@ export const BookingDocket: React.FC<BookingDocketProps> = (props) => {
|
|
|
162
162
|
</div>
|
|
163
163
|
</LazyMotion>
|
|
164
164
|
);
|
|
165
|
-
}
|
|
165
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { Heading, Text } from '../../atoms/Typography/Typography';
|
|
3
2
|
|
|
4
3
|
export interface BookingHeaderProps {
|
|
@@ -8,7 +7,7 @@ export interface BookingHeaderProps {
|
|
|
8
7
|
isBooking?: boolean;
|
|
9
8
|
}
|
|
10
9
|
|
|
11
|
-
export
|
|
10
|
+
export function BookingHeader(props: BookingHeaderProps) {
|
|
12
11
|
const { fileNumber, reference, isBooking, location } = props;
|
|
13
12
|
return (
|
|
14
13
|
<div className="space-y-2">
|
|
@@ -21,4 +20,4 @@ export const BookingHeader: React.FC<BookingHeaderProps> = (props) => {
|
|
|
21
20
|
</Text>
|
|
22
21
|
</div>
|
|
23
22
|
);
|
|
24
|
-
}
|
|
23
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { useCallback, useEffect, useState } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
BookingPax,
|
|
4
4
|
BookingPaxAccomProps,
|
|
@@ -124,7 +124,7 @@ const isTransferData = (
|
|
|
124
124
|
* @param props - The props for the BookingPaxList component.
|
|
125
125
|
* @returns The BookingPaxList component.
|
|
126
126
|
*/
|
|
127
|
-
export
|
|
127
|
+
export function BookingPaxList(props: BookingPaxProps) {
|
|
128
128
|
const {
|
|
129
129
|
data,
|
|
130
130
|
isSubmitted,
|
|
@@ -285,4 +285,4 @@ export const BookingPaxList: React.FC<BookingPaxProps> = (props) => {
|
|
|
285
285
|
})}
|
|
286
286
|
</BookingPax>
|
|
287
287
|
);
|
|
288
|
-
}
|
|
288
|
+
}
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
StepperTimeline,
|
|
4
4
|
StepperTimelineItem,
|
|
5
5
|
} from '@/src/components/molecules/StepperTimeline/StepperTimeline';
|
|
6
|
-
import
|
|
6
|
+
import { useEffect, useState } from 'react';
|
|
7
7
|
import './BookingStep.css';
|
|
8
8
|
|
|
9
9
|
export interface BookingStepProps {
|
|
@@ -15,7 +15,7 @@ export interface BookingStepProps {
|
|
|
15
15
|
onNextClick?: (step: StepperTimelineItem, index: number) => void;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
export
|
|
18
|
+
export function BookingStep(props: BookingStepProps) {
|
|
19
19
|
const { steps, className, nextDisabled, currentStep, onStepChange, onNextClick } =
|
|
20
20
|
props;
|
|
21
21
|
|
|
@@ -54,4 +54,4 @@ export const BookingStep: React.FC<BookingStepProps> = (props) => {
|
|
|
54
54
|
</Button>
|
|
55
55
|
</div>
|
|
56
56
|
);
|
|
57
|
-
}
|
|
57
|
+
}
|
|
@@ -24,7 +24,7 @@ export interface AddItemNewServiceProps {
|
|
|
24
24
|
onBack: () => void;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
export
|
|
27
|
+
export function AddItemNewService(props: AddItemNewServiceProps) {
|
|
28
28
|
const { date, options, clients, onServiceChange, onNext, onBack } = props;
|
|
29
29
|
const [service, setService] = useState<ServiceType>('accommodation');
|
|
30
30
|
const [selectedClients, setSelectedClients] = useState<BookingPaxClientInfo[]>([]);
|
|
@@ -113,4 +113,4 @@ export const AddItemNewService: React.FC<AddItemNewServiceProps> = (props) => {
|
|
|
113
113
|
</div>
|
|
114
114
|
</div>
|
|
115
115
|
);
|
|
116
|
-
}
|
|
116
|
+
}
|
|
@@ -10,7 +10,8 @@ export interface AddItemSelectorProps {
|
|
|
10
10
|
onAddItem?: (type: AddItemType) => void;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
export
|
|
13
|
+
export function AddItemSelector(props: AddItemSelectorProps) {
|
|
14
|
+
const { onAddItem } = props;
|
|
14
15
|
return (
|
|
15
16
|
<div className="space-y-9">
|
|
16
17
|
<Text size="sm" variant="medium">
|
|
@@ -40,4 +41,4 @@ export const AddItemSelector: React.FC<AddItemSelectorProps> = ({ onAddItem }) =
|
|
|
40
41
|
</Text>
|
|
41
42
|
</div>
|
|
42
43
|
);
|
|
43
|
-
}
|
|
44
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AnimatePresence, domAnimation, LazyMotion } from 'motion/react';
|
|
2
2
|
import * as motion from 'motion/react-m';
|
|
3
|
-
import
|
|
3
|
+
import { useLayoutEffect, useRef, useState } from 'react';
|
|
4
4
|
import { BookingPaxClientInfo } from '../../molecules/BookingPax';
|
|
5
5
|
import { ServiceOption, ServiceType } from '../../molecules/ServiceSelector';
|
|
6
6
|
import { DEFAULT_SERVICE_SELECTOR_OPTIONS } from '../../molecules/ServiceSelector/ServiceSelector';
|
|
@@ -20,7 +20,7 @@ export interface DialogBookingAddItemProps {
|
|
|
20
20
|
onBackToSelector?: () => void;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
export
|
|
23
|
+
export function DialogBookingAddItem(props: DialogBookingAddItemProps) {
|
|
24
24
|
const {
|
|
25
25
|
open,
|
|
26
26
|
serviceDate = [],
|
|
@@ -117,4 +117,4 @@ export const DialogBookingAddItem: React.FC<DialogBookingAddItemProps> = (props)
|
|
|
117
117
|
</LazyMotion>
|
|
118
118
|
</Dialog>
|
|
119
119
|
);
|
|
120
|
-
}
|
|
120
|
+
}
|
|
@@ -30,7 +30,7 @@ export interface BookingCancellationPolicyProps {
|
|
|
30
30
|
* @param props - The props for the BookingCancellationPolicy component.
|
|
31
31
|
* @returns The BookingCancellationPolicy component.
|
|
32
32
|
*/
|
|
33
|
-
export
|
|
33
|
+
export function BookingCancellationPolicy(props: BookingCancellationPolicyProps) {
|
|
34
34
|
const { open, setOpen, cancellations } = props;
|
|
35
35
|
return (
|
|
36
36
|
<DialogBookingConfirm
|
|
@@ -41,4 +41,4 @@ export const BookingCancellationPolicy = (props: BookingCancellationPolicyProps)
|
|
|
41
41
|
<DialogContentPolicy.List cancellations={cancellations} />
|
|
42
42
|
</DialogBookingConfirm>
|
|
43
43
|
);
|
|
44
|
-
}
|
|
44
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Button, Heading } from '@/src';
|
|
2
|
-
import React from 'react';
|
|
3
2
|
import { DialogBookingConfirm } from './DialogBookingConfirm';
|
|
4
3
|
|
|
5
4
|
export interface BookingMailSentProps {
|
|
@@ -30,7 +29,7 @@ export interface BookingMailSentProps {
|
|
|
30
29
|
* @param props - The props for the BookingMailSent component.
|
|
31
30
|
* @returns
|
|
32
31
|
*/
|
|
33
|
-
export
|
|
32
|
+
export function BookingMailSent(props: BookingMailSentProps) {
|
|
34
33
|
const { open, setOpen, onNext } = props;
|
|
35
34
|
return (
|
|
36
35
|
<DialogBookingConfirm open={open} setOpen={setOpen} className="!max-w-[800px]">
|
|
@@ -53,4 +52,4 @@ export const BookingMailSent: React.FC<BookingMailSentProps> = (props) => {
|
|
|
53
52
|
</div>
|
|
54
53
|
</DialogBookingConfirm>
|
|
55
54
|
);
|
|
56
|
-
}
|
|
55
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { useState } from 'react';
|
|
2
2
|
import Button from '../../atoms/Button/Button';
|
|
3
3
|
import Input from '../../atoms/Inputs/Input/Input';
|
|
4
4
|
import { Text } from '../../atoms/Typography/Typography';
|
|
@@ -38,7 +38,7 @@ export interface BookingReferenceProps {
|
|
|
38
38
|
* @param props - The props for the BookingReference component.
|
|
39
39
|
* @returns The BookingReference component.
|
|
40
40
|
*/
|
|
41
|
-
export
|
|
41
|
+
export function BookingReference(props: BookingReferenceProps) {
|
|
42
42
|
const { open, setOpen, onCancel, onConfirm } = props;
|
|
43
43
|
const [reference, setReference] = useState('');
|
|
44
44
|
return (
|
|
@@ -71,4 +71,4 @@ export const BookingReference: React.FC<BookingReferenceProps> = (props) => {
|
|
|
71
71
|
</div>
|
|
72
72
|
</DialogBookingConfirm>
|
|
73
73
|
);
|
|
74
|
-
}
|
|
74
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Button, Heading, Text } from '@/src';
|
|
2
|
-
import React from 'react';
|
|
3
2
|
import { DialogBookingConfirm } from './DialogBookingConfirm';
|
|
4
3
|
|
|
5
4
|
export interface BookingSuccessProps {
|
|
@@ -36,7 +35,7 @@ export interface BookingSuccessProps {
|
|
|
36
35
|
* @param props - The props for the BookingSuccess component.
|
|
37
36
|
* @returns The BookingSuccess component.
|
|
38
37
|
*/
|
|
39
|
-
export
|
|
38
|
+
export function BookingSuccess(props: BookingSuccessProps) {
|
|
40
39
|
const { open, bookingName, setOpen, onNext } = props;
|
|
41
40
|
return (
|
|
42
41
|
<DialogBookingConfirm open={open} setOpen={setOpen} className="!max-w-[800px]">
|
|
@@ -64,4 +63,4 @@ export const BookingSuccess: React.FC<BookingSuccessProps> = (props) => {
|
|
|
64
63
|
</div>
|
|
65
64
|
</DialogBookingConfirm>
|
|
66
65
|
);
|
|
67
|
-
}
|
|
66
|
+
}
|
|
@@ -49,7 +49,7 @@ interface DialogBookingConfirmProps {
|
|
|
49
49
|
* @param props - The props for the DialogBookingConfirm component.
|
|
50
50
|
* @returns The DialogBookingConfirm component.
|
|
51
51
|
*/
|
|
52
|
-
export
|
|
52
|
+
export function DialogBookingConfirm(props: DialogBookingConfirmProps) {
|
|
53
53
|
const {
|
|
54
54
|
open,
|
|
55
55
|
title,
|
|
@@ -70,7 +70,7 @@ export const DialogBookingConfirm = (props: DialogBookingConfirmProps) => {
|
|
|
70
70
|
{children}
|
|
71
71
|
</Dialog>
|
|
72
72
|
);
|
|
73
|
-
}
|
|
73
|
+
}
|
|
74
74
|
|
|
75
75
|
DialogBookingConfirm.Reference = BookingReference;
|
|
76
76
|
DialogBookingConfirm.CancellationPolicy = BookingCancellationPolicy;
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
CancellationsList,
|
|
8
8
|
} from '@/src/components/molecules/DialogContentPolicy/DialogCancellationList';
|
|
9
9
|
import { PaxChips, PaxCount } from '@/src/components/molecules/PaxChips/PaxChips';
|
|
10
|
-
import
|
|
10
|
+
import { useState } from 'react';
|
|
11
11
|
import './CancelBooking.css';
|
|
12
12
|
|
|
13
13
|
export interface CancelBookingProps {
|
|
@@ -22,7 +22,7 @@ export interface CancelBookingProps {
|
|
|
22
22
|
onSubmit: () => void;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
export
|
|
25
|
+
export function CancelBooking(props: CancelBookingProps) {
|
|
26
26
|
const { bookingNo, cancellationPolicies, pax, bookingDetails, onSubmit } = props;
|
|
27
27
|
const [accepted, setAccepted] = useState(false);
|
|
28
28
|
|
|
@@ -95,4 +95,4 @@ export const CancelBooking: React.FC<CancelBookingProps> = (props) => {
|
|
|
95
95
|
</div>
|
|
96
96
|
</div>
|
|
97
97
|
);
|
|
98
|
-
}
|
|
98
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import Button from '../../atoms/Button/Button';
|
|
3
2
|
import { Text } from '../../atoms/Typography/Typography';
|
|
4
3
|
import {
|
|
@@ -38,7 +37,7 @@ export interface CancelPolicyProps {
|
|
|
38
37
|
onProceedToPayment?: () => void;
|
|
39
38
|
}
|
|
40
39
|
|
|
41
|
-
export
|
|
40
|
+
export function CancelPolicy(props: CancelPolicyProps) {
|
|
42
41
|
const { cancellations, isPolicyTransgressed, isProcessing, onProceedToPayment } = props;
|
|
43
42
|
return (
|
|
44
43
|
<div>
|
|
@@ -65,4 +64,4 @@ export const CancelPolicy: React.FC<CancelPolicyProps> = (props) => {
|
|
|
65
64
|
</div>
|
|
66
65
|
</div>
|
|
67
66
|
);
|
|
68
|
-
}
|
|
67
|
+
}
|
|
@@ -3,7 +3,6 @@ import { IconName } from '@/src/components/atoms/Icon/Icon';
|
|
|
3
3
|
import FromTo from '@/src/components/molecules/FromTo/FromTo';
|
|
4
4
|
import TextWithIcon from '@/src/components/molecules/TextWithIcon/TextWithIcon';
|
|
5
5
|
import { ServiceType } from '@/src/types/table';
|
|
6
|
-
import React from 'react';
|
|
7
6
|
import { Text } from '../../../atoms/Typography/Typography';
|
|
8
7
|
import './ConfirmDelete.css';
|
|
9
8
|
|
|
@@ -32,7 +31,7 @@ const mappedServiceName: Record<ConfirmDeleteProps['serviceType'], string> = {
|
|
|
32
31
|
[ServiceType.OTHER_SERVICE]: 'Other Service',
|
|
33
32
|
};
|
|
34
33
|
|
|
35
|
-
export
|
|
34
|
+
export function ConfirmDelete(props: ConfirmDeleteProps) {
|
|
36
35
|
const { serviceType, serviceName, transferData, onCancel, onDelete } = props;
|
|
37
36
|
return (
|
|
38
37
|
<div className="confirm-delete">
|
|
@@ -64,4 +63,4 @@ export const ConfirmDelete: React.FC<ConfirmDeleteProps> = (props) => {
|
|
|
64
63
|
</div>
|
|
65
64
|
</div>
|
|
66
65
|
);
|
|
67
|
-
}
|
|
66
|
+
}
|
|
@@ -13,7 +13,7 @@ export interface DialogCancelServiceProps {
|
|
|
13
13
|
setOpen: (open: boolean) => void;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
export
|
|
16
|
+
export function DialogCancelService(props: DialogCancelServiceProps) {
|
|
17
17
|
const { open, children, title, className, setOpen } = props;
|
|
18
18
|
return (
|
|
19
19
|
<DialogBookingConfirm
|
|
@@ -24,7 +24,7 @@ export const DialogCancelService = (props: DialogCancelServiceProps) => {
|
|
|
24
24
|
{children}
|
|
25
25
|
</DialogBookingConfirm>
|
|
26
26
|
);
|
|
27
|
-
}
|
|
27
|
+
}
|
|
28
28
|
|
|
29
29
|
DialogCancelService.FromList = FromList;
|
|
30
30
|
DialogCancelService.Confirm = ConfirmDelete;
|
|
@@ -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;
|