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
|
@@ -9,4 +9,4 @@ export interface FromListProps<T extends TableRowData<T> = DetailResumeItem> {
|
|
|
9
9
|
onCancel?: () => void;
|
|
10
10
|
onSaveAndUpdate?: () => void;
|
|
11
11
|
}
|
|
12
|
-
export declare
|
|
12
|
+
export declare function FromList<T extends TableRowData<T> = DetailResumeItem>(props: FromListProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import Button from '../../atoms/Button/Button';
|
|
3
3
|
import { Table } from '../Table';
|
|
4
4
|
import { columns as defaultColumns } from '../Table/columns';
|
|
5
|
-
export
|
|
5
|
+
export function FromList(props) {
|
|
6
6
|
var data = props.data, columns = props.columns, totalRows = props.totalRows, onRemove = props.onRemove, onCancel = props.onCancel, onSaveAndUpdate = props.onSaveAndUpdate;
|
|
7
7
|
// When using default columns, we need to ensure T is compatible with DetailResumeItem
|
|
8
8
|
var defaultColumnsResult = columns
|
|
@@ -15,4 +15,4 @@ export var FromList = function (props) {
|
|
|
15
15
|
: undefined,
|
|
16
16
|
});
|
|
17
17
|
return (_jsxs("div", { className: "pb-20", children: [_jsx(Table, { columns: defaultColumnsResult, data: data, totalRows: totalRows, isGrouped: true }), _jsxs("div", { className: "flex justify-end gap-x-4 [&>*]:w-[250px] absolute bottom-0 right-2 left-0 p-6 bg-white", children: [_jsx(Button, { variant: "outline-secondary", size: "sm", onClick: onCancel, children: "Cancel" }), _jsx(Button, { variant: "secondary", size: "sm", onClick: onSaveAndUpdate, children: "Save and update" })] })] }));
|
|
18
|
-
}
|
|
18
|
+
}
|
|
@@ -21,4 +21,4 @@ export declare const isComparisonAccommodation: (data: ComparisonData) => data i
|
|
|
21
21
|
export declare const isComparisonTransfer: (data: ComparisonData) => data is ComparisonData & DetailResumeTransfer;
|
|
22
22
|
export declare const isComparisonExcursion: (data: ComparisonData) => data is ComparisonData & DetailResumeExcursion;
|
|
23
23
|
export declare const isComparisonOtherService: (data: ComparisonData) => data is ComparisonData & DetailResumeOtherService;
|
|
24
|
-
export declare
|
|
24
|
+
export declare function DialogComparison(props: DialogComparisonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -20,7 +20,7 @@ export var isComparisonExcursion = function (data) {
|
|
|
20
20
|
export var isComparisonOtherService = function (data) {
|
|
21
21
|
return data.Type === ServiceType.OTHER_SERVICE;
|
|
22
22
|
};
|
|
23
|
-
export
|
|
23
|
+
export function DialogComparison(props) {
|
|
24
24
|
var open = props.open, data = props.data, columns = props.columns, setOpen = props.setOpen, onBookNow = props.onBookNow;
|
|
25
25
|
var _a = useState([]), selectedValues = _a[0], setSelectedValues = _a[1];
|
|
26
26
|
var _b = useState(data), filteredData = _b[0], setFilteredData = _b[1];
|
|
@@ -66,4 +66,4 @@ export var DialogComparison = function (props) {
|
|
|
66
66
|
filteredData: filteredData,
|
|
67
67
|
});
|
|
68
68
|
}, children: "Book now" }) })] }) }));
|
|
69
|
-
}
|
|
69
|
+
}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { DialogDeleteConfirmMultiple } from './DialogDeleteConfirmMultiple/DialogDeleteConfirmMultiple';
|
|
3
|
+
import { DialogDeleteConfirmWrapper } from './DialogDeleteConfirmWrapper';
|
|
2
4
|
export interface DialogDeleteConfirmProps {
|
|
3
5
|
open: boolean;
|
|
4
6
|
setOpen: (open: boolean) => void;
|
|
5
7
|
title: string;
|
|
6
8
|
children?: React.ReactNode;
|
|
7
9
|
}
|
|
8
|
-
export declare
|
|
9
|
-
|
|
10
|
-
Text: (props: {
|
|
10
|
+
export declare function DialogDeleteConfirm(props: DialogDeleteConfirmProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare namespace DialogDeleteConfirm {
|
|
12
|
+
var Text: (props: {
|
|
11
13
|
children: React.ReactNode;
|
|
12
14
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
Wrapper:
|
|
14
|
-
Multiple:
|
|
15
|
-
}
|
|
15
|
+
var Wrapper: typeof DialogDeleteConfirmWrapper;
|
|
16
|
+
var Multiple: typeof DialogDeleteConfirmMultiple;
|
|
17
|
+
}
|
|
@@ -7,10 +7,10 @@ var DialogDeleteConfirmText = function (props) {
|
|
|
7
7
|
var children = props.children;
|
|
8
8
|
return (_jsx(Text, { variant: "medium", size: "sm", leading: "4", children: children }));
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export function DialogDeleteConfirm(props) {
|
|
11
11
|
var open = props.open, title = props.title, children = props.children, setOpen = props.setOpen;
|
|
12
12
|
return (_jsx(DialogBookingConfirm, { open: open, setOpen: setOpen, title: title, className: "!max-w-[500px]", closeOnOverlayClick: true, children: children }));
|
|
13
|
-
}
|
|
13
|
+
}
|
|
14
14
|
DialogDeleteConfirm.Text = DialogDeleteConfirmText;
|
|
15
15
|
DialogDeleteConfirm.Wrapper = DialogDeleteConfirmWrapper;
|
|
16
16
|
DialogDeleteConfirm.Multiple = DialogDeleteConfirmMultiple;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import './DialogDeleteConfirmMultiple.css';
|
|
3
2
|
export interface AvailableQuote {
|
|
4
3
|
id: string;
|
|
@@ -9,4 +8,4 @@ export interface DialogDeleteConfirmMultipleProps {
|
|
|
9
8
|
onDelete?: (selectedQuotes: string[]) => void;
|
|
10
9
|
quotes: AvailableQuote[];
|
|
11
10
|
}
|
|
12
|
-
export declare
|
|
11
|
+
export declare function DialogDeleteConfirmMultiple(props: DialogDeleteConfirmMultipleProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -13,7 +13,7 @@ import { useEffect, useState } from 'react';
|
|
|
13
13
|
import Checkbox from '../../../atoms/Checkbox/Checkbox';
|
|
14
14
|
import { DialogDeleteConfirm } from '../DialogDeleteConfirm';
|
|
15
15
|
import './DialogDeleteConfirmMultiple.css';
|
|
16
|
-
export
|
|
16
|
+
export function DialogDeleteConfirmMultiple(props) {
|
|
17
17
|
var quotes = props.quotes, onCancel = props.onCancel, onDelete = props.onDelete;
|
|
18
18
|
var _a = useState([]), selectedQuotes = _a[0], setSelectedQuotes = _a[1];
|
|
19
19
|
var _b = useState(false), isSelectAll = _b[0], setIsSelectAll = _b[1];
|
|
@@ -41,4 +41,4 @@ export var DialogDeleteConfirmMultiple = function (props) {
|
|
|
41
41
|
setIsSelectAll(selectedQuotes.length === quotes.length);
|
|
42
42
|
}, [selectedQuotes, quotes]);
|
|
43
43
|
return (_jsx(DialogDeleteConfirm.Wrapper, { onCancel: onCancel, onOk: handleDeleteQuotes, children: _jsxs("div", { className: "confirm-multiple", children: [_jsx(Checkbox, { label: "Select all quotations", checked: isSelectAll, onChange: handleSelectAllQuotes, labelPosition: "leading", className: "confirm-multiple__all" }), _jsx("ul", { className: "mb-1", children: quotes.map(function (quote) { return (_jsx("li", { children: _jsx(Checkbox, { label: quote.name, checked: selectedQuotes.includes(quote.id), onChange: function () { return handleSelectQuote(quote); }, labelPosition: "leading" }) }, quote.id)); }) }), isSelectAll && (_jsx(Toast, { text: "Caution: This would delete all quotations created.", type: "warning", showIcon: false }))] }) }));
|
|
44
|
-
}
|
|
44
|
+
}
|
|
@@ -7,4 +7,4 @@ export interface DialogDeleteConfirmWrapperProps {
|
|
|
7
7
|
okText?: string;
|
|
8
8
|
children: React.ReactNode;
|
|
9
9
|
}
|
|
10
|
-
export declare
|
|
10
|
+
export declare function DialogDeleteConfirmWrapper(props: DialogDeleteConfirmWrapperProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import Button from '../../atoms/Button/Button';
|
|
3
|
-
export
|
|
3
|
+
export function DialogDeleteConfirmWrapper(props) {
|
|
4
4
|
var onCancel = props.onCancel, _a = props.cancelText, cancelText = _a === void 0 ? 'Cancel' : _a, _b = props.okVariant, okVariant = _b === void 0 ? 'destructive' : _b, onOk = props.onOk, _c = props.okText, okText = _c === void 0 ? 'Delete' : _c, children = props.children;
|
|
5
5
|
return (_jsxs("div", { className: "space-y-9", children: [children, _jsxs("div", { className: "grid grid-cols-2 gap-x-4", children: [_jsx(Button, { variant: "outline-secondary", onClick: onCancel, size: "sm", children: cancelText }), _jsx(Button, { variant: okVariant, onClick: onOk, size: "sm", children: okText })] })] }));
|
|
6
|
-
}
|
|
6
|
+
}
|
|
@@ -4,4 +4,4 @@ export interface DialogQuoteRenameProps {
|
|
|
4
4
|
quoteName: string;
|
|
5
5
|
onSubmit: (quoteName: string) => void;
|
|
6
6
|
}
|
|
7
|
-
export declare
|
|
7
|
+
export declare function DialogQuoteRename(props: DialogQuoteRenameProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,11 +4,11 @@ import Button from '../../atoms/Button/Button';
|
|
|
4
4
|
import Input from '../../atoms/Inputs/Input/Input';
|
|
5
5
|
import { Text } from '../../atoms/Typography/Typography';
|
|
6
6
|
import { DialogBookingConfirm } from '../DialogBookingConfirm';
|
|
7
|
-
export
|
|
7
|
+
export function DialogQuoteRename(props) {
|
|
8
8
|
var open = props.open, setOpen = props.setOpen, quoteName = props.quoteName, onSubmit = props.onSubmit;
|
|
9
9
|
var _a = useState(quoteName), value = _a[0], setValue = _a[1];
|
|
10
10
|
var handleQuoteNameChange = function (e) {
|
|
11
11
|
setValue(e.target.value);
|
|
12
12
|
};
|
|
13
13
|
return (_jsx(DialogBookingConfirm, { open: open, setOpen: setOpen, title: "Rename Quotation", className: "!max-w-[500px]", children: _jsxs("div", { className: "space-y-9", children: [_jsxs("div", { className: "space-y-2", children: [_jsx("label", { htmlFor: "quote-name", children: _jsx(Text, { as: "span", size: "sm", children: "Quotation name" }) }), _jsx(Input, { id: "quote-name", value: value, onChange: handleQuoteNameChange })] }), _jsxs("div", { className: "grid grid-cols-2 gap-x-4 pb-2", children: [_jsx(Button, { variant: "outline-secondary", onClick: function () { return setOpen(false); }, size: "sm", children: "Cancel" }), _jsx(Button, { variant: "secondary", onClick: function () { return onSubmit(value); }, size: "sm", children: "Save changes" })] })] }) }));
|
|
14
|
-
}
|
|
14
|
+
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { DialogSendingMailContent } from './DialogSendingMailContent';
|
|
3
|
+
import { DialogSendingMailMultiple } from './DialogSendingMailMultiple/DialogSendingMailMultiple';
|
|
2
4
|
export interface DialogSendingMailProps {
|
|
3
5
|
open: boolean;
|
|
4
6
|
setOpen: (open: boolean) => void;
|
|
5
7
|
children: React.ReactNode;
|
|
6
8
|
type?: 'booking' | 'quotation';
|
|
7
9
|
}
|
|
8
|
-
export declare
|
|
9
|
-
|
|
10
|
-
SingleQuote:
|
|
11
|
-
MultipleQuotes:
|
|
12
|
-
}
|
|
10
|
+
export declare function DialogSendingMail(props: DialogSendingMailProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare namespace DialogSendingMail {
|
|
12
|
+
var SingleQuote: typeof DialogSendingMailContent;
|
|
13
|
+
var MultipleQuotes: typeof DialogSendingMailMultiple;
|
|
14
|
+
}
|
|
@@ -2,9 +2,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { DialogBookingConfirm } from '../DialogBookingConfirm';
|
|
3
3
|
import { DialogSendingMailContent } from './DialogSendingMailContent';
|
|
4
4
|
import { DialogSendingMailMultiple } from './DialogSendingMailMultiple/DialogSendingMailMultiple';
|
|
5
|
-
export
|
|
5
|
+
export function DialogSendingMail(props) {
|
|
6
6
|
var open = props.open, setOpen = props.setOpen, children = props.children, _a = props.type, type = _a === void 0 ? 'booking' : _a;
|
|
7
7
|
return (_jsx(DialogBookingConfirm, { open: open, title: "Send ".concat(type, " via mail"), setOpen: setOpen, className: "!max-w-[800px]", closeOnOverlayClick: true, children: children }));
|
|
8
|
-
}
|
|
8
|
+
}
|
|
9
9
|
DialogSendingMail.SingleQuote = DialogSendingMailContent;
|
|
10
10
|
DialogSendingMail.MultipleQuotes = DialogSendingMailMultiple;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { SendingMailSchema } from './sending-mail-schema';
|
|
3
2
|
export interface DialogSendingMailContentProps {
|
|
4
3
|
userInfo: {
|
|
@@ -12,4 +11,4 @@ export interface DialogSendingMailContentProps {
|
|
|
12
11
|
onPreviewAttachment?: () => void;
|
|
13
12
|
onCancel?: () => void;
|
|
14
13
|
}
|
|
15
|
-
export declare
|
|
14
|
+
export declare function DialogSendingMailContent(props: DialogSendingMailContentProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -19,7 +19,7 @@ import Textarea from '../../atoms/Inputs/Textarea/Textarea';
|
|
|
19
19
|
import Toast from '../../molecules/Toast/Toast';
|
|
20
20
|
import { Form, FormControl, FormField, FormItem, FormMessage } from '../../ui/form';
|
|
21
21
|
import { sendingMailSchema } from './sending-mail-schema';
|
|
22
|
-
export
|
|
22
|
+
export function DialogSendingMailContent(props) {
|
|
23
23
|
var userInfo = props.userInfo, subject = props.subject, type = props.type, onSubmit = props.onSubmit, onPreviewAttachment = props.onPreviewAttachment, onCancel = props.onCancel;
|
|
24
24
|
var messageText = function () {
|
|
25
25
|
var name = "".concat(userInfo.firstName, " ").concat(userInfo.lastName);
|
|
@@ -46,4 +46,4 @@ export var DialogSendingMailContent = function (props) {
|
|
|
46
46
|
var field = _a.field;
|
|
47
47
|
return (_jsx(FormItem, { children: _jsxs("div", { className: "relative", children: [_jsx(FormControl, { children: _jsx(Textarea, __assign({ placeholder: "Write your email here... *" }, field)) }), _jsx(FormMessage, { className: "absolute bottom-0 translate-y-4" })] }) }));
|
|
48
48
|
} }), _jsx(Button, { type: "button", size: "sm", onClick: onPreviewAttachment, children: "Preview Attachment" })] }), _jsx(Toast, { showIcon: false, type: "warning", className: "mt-8", text: "Disclaimer: Email formatting may appear distorted in certain older email clients (e.g Outlook Classic ). Content will remain intact, but the visual layout may differ from the original" }), _jsxs("div", { className: "flex justify-end gap-4 [&>*]:w-[250px] pb-2 pt-9", children: [_jsx(Button, { type: "button", variant: "outline-secondary", size: "sm", onClick: onCancel, children: "Cancel" }), _jsx(Button, { type: "submit", variant: "secondary", size: "sm", children: "Send" })] })] }) })));
|
|
49
|
-
}
|
|
49
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { DialogSendingMailContentProps } from '../DialogSendingMailContent';
|
|
3
2
|
import { SendingMailSchema } from '../sending-mail-schema';
|
|
4
3
|
import './DialogSendingMailMultiple.css';
|
|
@@ -43,4 +42,4 @@ export interface DialogSendingMailMultipleProps extends Omit<DialogSendingMailCo
|
|
|
43
42
|
*
|
|
44
43
|
* @param props - The props of the component
|
|
45
44
|
*/
|
|
46
|
-
export declare
|
|
45
|
+
export declare function DialogSendingMailMultiple(props: DialogSendingMailMultipleProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -59,7 +59,7 @@ import './DialogSendingMailMultiple.css';
|
|
|
59
59
|
*
|
|
60
60
|
* @param props - The props of the component
|
|
61
61
|
*/
|
|
62
|
-
export
|
|
62
|
+
export function DialogSendingMailMultiple(props) {
|
|
63
63
|
var data = props.data, onSelected = props.onSelected, onSubmit = props.onSubmit, onPreviewAttachment = props.onPreviewAttachment, rest = __rest(props, ["data", "onSelected", "onSubmit", "onPreviewAttachment"]);
|
|
64
64
|
var _a = useState(false), isSelectAll = _a[0], setIsSelectAll = _a[1];
|
|
65
65
|
var _b = useState(data), remainingQuotes = _b[0], setRemainingQuotes = _b[1];
|
|
@@ -138,4 +138,4 @@ export var DialogSendingMailMultiple = function (props) {
|
|
|
138
138
|
formData: data,
|
|
139
139
|
});
|
|
140
140
|
} }))] }));
|
|
141
|
-
}
|
|
141
|
+
}
|
|
@@ -2077,66 +2077,92 @@
|
|
|
2077
2077
|
|
|
2078
2078
|
.quote-header {
|
|
2079
2079
|
width: 100%;
|
|
2080
|
-
|
|
2080
|
+
.quote-header__button {
|
|
2081
|
+
width: 206px;
|
|
2082
|
+
}
|
|
2081
2083
|
|
|
2082
|
-
.quote-
|
|
2083
|
-
|
|
2084
|
-
}
|
|
2084
|
+
.quote-header__title {
|
|
2085
|
+
position: relative;
|
|
2086
|
+
}
|
|
2085
2087
|
|
|
2086
|
-
.quote-header__title {
|
|
2087
|
-
|
|
2088
|
-
margin-bottom: 2.5rem;
|
|
2089
|
-
padding-left: 0.5rem;
|
|
2090
|
-
padding-right: 0.5rem;
|
|
2091
|
-
&::before {
|
|
2092
|
-
content: '';
|
|
2088
|
+
.quote-header__title {
|
|
2089
|
+
margin-bottom: 2.5rem;
|
|
2093
2090
|
}
|
|
2094
|
-
|
|
2095
|
-
|
|
2091
|
+
|
|
2092
|
+
.quote-header__title {
|
|
2093
|
+
padding-left: 0.5rem;
|
|
2094
|
+
padding-right: 0.5rem;
|
|
2096
2095
|
}
|
|
2097
|
-
|
|
2098
|
-
|
|
2096
|
+
|
|
2097
|
+
.quote-header__title {
|
|
2098
|
+
&::before {
|
|
2099
|
+
content: '';
|
|
2100
|
+
}
|
|
2101
|
+
&::before {
|
|
2102
|
+
position: absolute;
|
|
2103
|
+
}
|
|
2104
|
+
&::before {
|
|
2105
|
+
top: 50%;
|
|
2106
|
+
}
|
|
2107
|
+
&::before {
|
|
2108
|
+
left: 0px;
|
|
2109
|
+
}
|
|
2110
|
+
&::before {
|
|
2111
|
+
--tw-translate-y: -50%;
|
|
2112
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
2113
|
+
}
|
|
2114
|
+
&::before {
|
|
2115
|
+
height: 2rem;
|
|
2116
|
+
}
|
|
2117
|
+
&::before {
|
|
2118
|
+
width: 0.25rem;
|
|
2119
|
+
}
|
|
2120
|
+
&::before {
|
|
2121
|
+
background-color: var(--color-elevation-brand-subtle);
|
|
2122
|
+
}
|
|
2099
2123
|
}
|
|
2100
|
-
|
|
2101
|
-
|
|
2124
|
+
|
|
2125
|
+
.quote-header__search-container {
|
|
2126
|
+
margin-top: 3rem;
|
|
2102
2127
|
}
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2128
|
+
|
|
2129
|
+
.quote-header__search-container {
|
|
2130
|
+
display: flex;
|
|
2106
2131
|
}
|
|
2107
|
-
|
|
2108
|
-
|
|
2132
|
+
|
|
2133
|
+
.quote-header__search-container {
|
|
2134
|
+
justify-content: space-between;
|
|
2109
2135
|
}
|
|
2110
|
-
|
|
2111
|
-
|
|
2136
|
+
|
|
2137
|
+
.quote-header__search-container {
|
|
2138
|
+
> button {
|
|
2139
|
+
column-gap: 0.625rem;
|
|
2140
|
+
}
|
|
2141
|
+
> button {
|
|
2142
|
+
min-width: 129px;
|
|
2143
|
+
}
|
|
2112
2144
|
}
|
|
2113
|
-
|
|
2114
|
-
|
|
2145
|
+
|
|
2146
|
+
.quote-header__search {
|
|
2147
|
+
width: 364px;
|
|
2115
2148
|
}
|
|
2116
|
-
}
|
|
2117
2149
|
|
|
2118
|
-
.quote-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
justify-content: space-between;
|
|
2122
|
-
> button {
|
|
2123
|
-
column-gap: 0.625rem;
|
|
2150
|
+
.quote-header__filters {
|
|
2151
|
+
margin-top: 2rem;
|
|
2152
|
+
margin-bottom: 2rem;
|
|
2124
2153
|
}
|
|
2125
|
-
|
|
2126
|
-
|
|
2154
|
+
|
|
2155
|
+
.quote-header__filters {
|
|
2156
|
+
display: flex;
|
|
2127
2157
|
}
|
|
2128
|
-
}
|
|
2129
2158
|
|
|
2130
|
-
.quote-
|
|
2131
|
-
|
|
2132
|
-
}
|
|
2159
|
+
.quote-header__filters {
|
|
2160
|
+
gap: 0.75rem;
|
|
2161
|
+
}
|
|
2133
2162
|
|
|
2134
|
-
.quote-header__filters {
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
gap: 0.75rem;
|
|
2139
|
-
.dropdown-container {
|
|
2140
|
-
width: 139px;
|
|
2163
|
+
.quote-header__filters {
|
|
2164
|
+
.dropdown-container {
|
|
2165
|
+
width: 139px;
|
|
2166
|
+
}
|
|
2141
2167
|
}
|
|
2142
2168
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { DetailsContentAccomProps } from './DetailsContentAccom';
|
|
3
2
|
export interface AccommodationProps extends DetailsContentAccomProps {
|
|
4
3
|
/** Images of the accommodation */
|
|
@@ -23,4 +22,4 @@ export interface AccommodationProps extends DetailsContentAccomProps {
|
|
|
23
22
|
* @param props - Props of the Accommodation component
|
|
24
23
|
* @returns The Accommodation component
|
|
25
24
|
*/
|
|
26
|
-
export declare
|
|
25
|
+
export declare function Accommodation(props: AccommodationProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -40,7 +40,7 @@ import TabServiceDetails from './TabServiceDetails';
|
|
|
40
40
|
* @param props - Props of the Accommodation component
|
|
41
41
|
* @returns The Accommodation component
|
|
42
42
|
*/
|
|
43
|
-
export
|
|
43
|
+
export function Accommodation(props) {
|
|
44
44
|
var images = props.images, isOnRequest = props.isOnRequest, rest = __rest(props, ["images", "isOnRequest"]);
|
|
45
45
|
return (_jsx(TabServiceDetails.Layout, { title: "Accommodation", icon: "accom", isOnRequest: isOnRequest, images: images, mobileContent: _jsx("div", { className: "mt-8", children: _jsx(DetailsContentAccom.Body, __assign({}, rest)) }), children: _jsx(DetailsContentAccom, __assign({}, rest)) }));
|
|
46
|
-
}
|
|
46
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
export interface DetailContentTransferProps {
|
|
3
2
|
pax: string;
|
|
4
3
|
clientType: string;
|
|
@@ -6,4 +5,4 @@ export interface DetailContentTransferProps {
|
|
|
6
5
|
airConditioning?: boolean;
|
|
7
6
|
luggageTruck?: number;
|
|
8
7
|
}
|
|
9
|
-
export declare
|
|
8
|
+
export declare function DetailContentTransfer(props: DetailContentTransferProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import Chip from '../../atoms/Chip/Chip';
|
|
3
|
-
export
|
|
3
|
+
export function DetailContentTransfer(props) {
|
|
4
4
|
var pax = props.pax, clientType = props.clientType, carName = props.carName, airConditioning = props.airConditioning, luggageTruck = props.luggageTruck;
|
|
5
5
|
return (_jsxs("div", { className: "flex gap-4", children: [_jsx(Chip, { type: "outline", color: "brand", label: pax, leadingIcon: "user", isBlackText: true }), _jsx(Chip, { type: "outline", color: "brand", label: "Client type: ".concat(clientType), leadingIcon: "user", isBlackText: true }), _jsx(Chip, { type: "outline", color: "brand", label: carName, leadingIcon: "car", isBlackText: true }), airConditioning && (_jsx(Chip, { type: "outline", color: "brand", label: "Air conditioning", leadingIcon: "air", isBlackText: true })), luggageTruck && (_jsx(Chip, { type: "outline", color: "brand", label: "Luggage truck: ".concat(luggageTruck > 1 ? "x".concat(luggageTruck) : luggageTruck), leadingIcon: "luggage", isBlackText: true }))] }));
|
|
6
|
-
}
|
|
6
|
+
}
|
|
@@ -21,6 +21,18 @@ export interface DetailsContentAccomProps {
|
|
|
21
21
|
/** Rooms info */
|
|
22
22
|
roomsInfo: RoomsInfo[];
|
|
23
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* Body for the DetailsContentAccom component.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* <DetailsContentAccomBody
|
|
29
|
+
* roomsInfo={roomsInfo}
|
|
30
|
+
* globalAmenities={globalAmenities}
|
|
31
|
+
* />
|
|
32
|
+
* @param props - Props of the DetailsContentAccomBody component
|
|
33
|
+
* @returns The DetailsContentAccomBody component
|
|
34
|
+
*/
|
|
35
|
+
declare function DetailsContentAccomBody(props: Omit<DetailsContentAccomProps, 'roomTitle' | 'roomDescription'>): import("react/jsx-runtime").JSX.Element;
|
|
24
36
|
/**
|
|
25
37
|
* Details content for the Accommodation component.
|
|
26
38
|
*
|
|
@@ -37,5 +49,6 @@ export interface DetailsContentAccomProps {
|
|
|
37
49
|
*/
|
|
38
50
|
export declare function DetailsContentAccom(props: DetailsContentAccomProps): import("react/jsx-runtime").JSX.Element;
|
|
39
51
|
export declare namespace DetailsContentAccom {
|
|
40
|
-
var Body:
|
|
52
|
+
var Body: typeof DetailsContentAccomBody;
|
|
41
53
|
}
|
|
54
|
+
export {};
|
|
@@ -39,10 +39,10 @@ import TextWithIcon from '../../molecules/TextWithIcon/TextWithIcon';
|
|
|
39
39
|
* @param props - Props of the DetailsContentAccomBody component
|
|
40
40
|
* @returns The DetailsContentAccomBody component
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
function DetailsContentAccomBody(props) {
|
|
43
43
|
var roomsInfo = props.roomsInfo, globalAmenities = props.globalAmenities;
|
|
44
44
|
return (_jsxs("div", { className: "space-y-4", children: [_jsx("div", { className: "grid grid-cols-2 gap-x-4", children: roomsInfo.map(function (room, index) { return (_jsxs("div", { className: "space-y-4", children: [_jsx(TextWithIcon, { icon: "accom", textVariant: "bold", textSize: "sm", children: room.roomName }), _jsxs("div", { className: "flex flex-wrap gap-2", children: [_jsxs(Chip, { color: "brand", type: "outline", leadingIcon: "user", isBlackText: true, children: [room.roomPax, " pax"] }), _jsx(Chip, { color: "brand", type: "outline", leadingIcon: "user", isBlackText: true, children: room.clientType }), _jsx(Chip, { color: "brand", type: "outline", leadingIcon: "utensils", isBlackText: true, children: room.mealPlan })] }), _jsx("div", { className: "flex flex-wrap gap-2", children: room.roomAmenities.map(function (amenity, index) { return (_jsx(Chip, { color: "accent", type: "outline", isBlackText: true, children: amenity }, "ra-".concat(index))); }) })] }, "ri-".concat(index))); }) }), _jsxs("div", { className: "grid grid-cols-2 gap-x-8", children: [_jsx(GlobalAmenities, { amenities: globalAmenities }), _jsx(CardServiceAccom, { className: "flex items-center justify-center", children: _jsx(Text, { variant: "bold", children: "Coming soon" }) })] })] }));
|
|
45
|
-
}
|
|
45
|
+
}
|
|
46
46
|
/**
|
|
47
47
|
* Details content for the Accommodation component.
|
|
48
48
|
*
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { DetailsContentExcursionProps } from './DetailsContentExcursion';
|
|
3
2
|
export interface ExcursionProps extends DetailsContentExcursionProps {
|
|
4
3
|
/** Images of the excursion */
|
|
5
4
|
images: string[];
|
|
6
5
|
}
|
|
7
|
-
export declare
|
|
6
|
+
export declare function Excursion(props: ExcursionProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -23,7 +23,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
import { DetailsContentExcursion, } from './DetailsContentExcursion';
|
|
25
25
|
import TabServiceDetails from './TabServiceDetails';
|
|
26
|
-
export
|
|
26
|
+
export function Excursion(props) {
|
|
27
27
|
var images = props.images, rest = __rest(props, ["images"]);
|
|
28
28
|
return (_jsx(TabServiceDetails.Layout, { title: "Excursion", icon: "map", images: images, children: _jsx(DetailsContentExcursion, __assign({}, rest)) }));
|
|
29
|
-
}
|
|
29
|
+
}
|
|
@@ -2,8 +2,8 @@ import TabServiceDetailsLayout from './TabServiceDetailsLayout/TabServiceDetails
|
|
|
2
2
|
declare function TabServiceDetails(props: React.PropsWithChildren): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
declare namespace TabServiceDetails {
|
|
4
4
|
var Layout: typeof TabServiceDetailsLayout;
|
|
5
|
-
var Accommodation: import("
|
|
6
|
-
var Excursion: import("
|
|
7
|
-
var Transfer: import("
|
|
5
|
+
var Accommodation: typeof import("./Accommodation").Accommodation;
|
|
6
|
+
var Excursion: typeof import("./Excursion").Excursion;
|
|
7
|
+
var Transfer: typeof import("./Transfer").Transfer;
|
|
8
8
|
}
|
|
9
9
|
export default TabServiceDetails;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { TransferData } from '../TabCancellationPolicy/HeaderExcursion/HeaderTransfer';
|
|
3
2
|
import { DetailContentTransferProps } from './DetailContentTransfer';
|
|
4
3
|
export interface TransferProps {
|
|
@@ -9,4 +8,4 @@ export interface TransferProps {
|
|
|
9
8
|
/** Details of the transfer */
|
|
10
9
|
transferDetails: DetailContentTransferProps;
|
|
11
10
|
}
|
|
12
|
-
export declare
|
|
11
|
+
export declare function Transfer(props: TransferProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -13,7 +13,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
13
13
|
import CancellationHeader from '../TabCancellationPolicy/CancellationHeader';
|
|
14
14
|
import TabCancellationPolicy from '../TabCancellationPolicy/TabCancellationPolicy';
|
|
15
15
|
import { DetailContentTransfer, } from './DetailContentTransfer';
|
|
16
|
-
export
|
|
16
|
+
export function Transfer(props) {
|
|
17
17
|
var image = props.image, transferData = props.transferData, transferDetails = props.transferDetails;
|
|
18
18
|
return (_jsx(TabCancellationPolicy.Layout, { title: "Transfer", icon: "car", image: image, header: _jsx(CancellationHeader, { children: _jsx(CancellationHeader.Transfer, { data: transferData }) }), children: _jsx(DetailContentTransfer, __assign({}, transferDetails)) }));
|
|
19
|
-
}
|
|
19
|
+
}
|
|
@@ -50,4 +50,4 @@ export interface TableProps<T extends TableRowData<T>> {
|
|
|
50
50
|
* @returns React.ReactNode
|
|
51
51
|
*
|
|
52
52
|
*/
|
|
53
|
-
export declare
|
|
53
|
+
export declare function Table<T extends TableRowData<T>>(props: TableProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -65,7 +65,7 @@ var NestedContent = function (_a) {
|
|
|
65
65
|
* @returns React.ReactNode
|
|
66
66
|
*
|
|
67
67
|
*/
|
|
68
|
-
export
|
|
68
|
+
export function Table(props) {
|
|
69
69
|
var columns = props.columns, data = props.data, pagination = props.pagination, isGrouped = props.isGrouped, _a = props.totalRows, totalRows = _a === void 0 ? {} : _a, _b = props.isTotalBorderDash, isTotalBorderDash = _b === void 0 ? true : _b, _c = props.totalSubstractedSpace, totalSubstractedSpace = _c === void 0 ? 10 : _c, onClickRow = props.onClickRow;
|
|
70
70
|
var normalizeLastColumnWidth = function () {
|
|
71
71
|
var width = columns[columns.length - 1].width;
|
|
@@ -97,4 +97,4 @@ export var Table = function (props) {
|
|
|
97
97
|
var currency = _a[0], total = _a[1];
|
|
98
98
|
return (_jsx("div", { children: _jsx(Text, { size: "md", variant: "bold", children: priceFormatter(total, currency) }) }, currency));
|
|
99
99
|
}) })] }) })] }) }) }) })), pagination && (_jsx("div", { className: "flex justify-end mt-4", children: _jsx(Pagination, __assign({}, pagination)) }))] }) }));
|
|
100
|
-
}
|
|
100
|
+
}
|
package/package.json
CHANGED
|
@@ -34,11 +34,8 @@ export interface ActionDropdownProps {
|
|
|
34
34
|
* @param ActionDropdownProps
|
|
35
35
|
* @returns
|
|
36
36
|
*/
|
|
37
|
-
export
|
|
38
|
-
data,
|
|
39
|
-
children,
|
|
40
|
-
maxWidth = '153px',
|
|
41
|
-
}) => {
|
|
37
|
+
export function ActionDropdown(props: ActionDropdownProps) {
|
|
38
|
+
const { data, children, maxWidth = '153px' } = props;
|
|
42
39
|
const [open, setOpen] = useState(false);
|
|
43
40
|
|
|
44
41
|
return (
|
|
@@ -94,4 +91,4 @@ export const ActionDropdown: React.FC<ActionDropdownProps> = ({
|
|
|
94
91
|
</PopoverContent>
|
|
95
92
|
</Popover>
|
|
96
93
|
);
|
|
97
|
-
}
|
|
94
|
+
}
|
|
@@ -8,11 +8,12 @@ export interface AddItemButtonProps {
|
|
|
8
8
|
onClick?: () => void;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
export
|
|
11
|
+
export function AddItemButton(props: AddItemButtonProps) {
|
|
12
|
+
const { label, onClick } = props;
|
|
12
13
|
return (
|
|
13
14
|
<button className="add-item-button" onClick={onClick}>
|
|
14
15
|
<Icon name="plus-circle" size="lg" />
|
|
15
16
|
<Text variant="medium">{label}</Text>
|
|
16
17
|
</button>
|
|
17
18
|
);
|
|
18
|
-
}
|
|
19
|
+
}
|
|
@@ -46,9 +46,9 @@ import { BookingPaxTransfer } from './BookingPaxTransfer';
|
|
|
46
46
|
* @param props - The props for the BookingPax component.
|
|
47
47
|
* @returns The BookingPax component.
|
|
48
48
|
*/
|
|
49
|
-
export
|
|
49
|
+
export function BookingPax(props: React.PropsWithChildren) {
|
|
50
50
|
return <div className="booking-pax space-y-6" {...props} />;
|
|
51
|
-
}
|
|
51
|
+
}
|
|
52
52
|
|
|
53
53
|
BookingPax.Accom = BookingPaxAccom;
|
|
54
54
|
BookingPax.Excursion = BookingPaxExcursion;
|