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
|
@@ -25,4 +25,4 @@ export interface ActionDropdownProps {
|
|
|
25
25
|
* @param ActionDropdownProps
|
|
26
26
|
* @returns
|
|
27
27
|
*/
|
|
28
|
-
export declare
|
|
28
|
+
export declare function ActionDropdown(props: ActionDropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -14,9 +14,9 @@ import './ActionDropdown.css';
|
|
|
14
14
|
* @param ActionDropdownProps
|
|
15
15
|
* @returns
|
|
16
16
|
*/
|
|
17
|
-
export
|
|
18
|
-
var data =
|
|
19
|
-
var
|
|
17
|
+
export function ActionDropdown(props) {
|
|
18
|
+
var data = props.data, children = props.children, _a = props.maxWidth, maxWidth = _a === void 0 ? '153px' : _a;
|
|
19
|
+
var _b = useState(false), open = _b[0], setOpen = _b[1];
|
|
20
20
|
return (_jsxs(Popover, { open: open, onOpenChange: setOpen, children: [_jsx(PopoverTrigger, { children: children !== null && children !== void 0 ? children : (_jsx("button", { className: "action-dropdown-trigger", children: _jsx(Icon, { name: "more-vertical" }) })) }), _jsx(PopoverContent, { className: "action-dropdown", style: { '--max-width': maxWidth }, align: "end", side: "bottom", avoidCollisions: false, children: data.map(function (item, index) {
|
|
21
21
|
var defaultButton = (_jsx("button", { onClick: function () {
|
|
22
22
|
var _a;
|
|
@@ -30,4 +30,4 @@ export var ActionDropdown = function (_a) {
|
|
|
30
30
|
}), disabled: item.disabled, children: _jsx(Text, { variant: "medium", size: "sm", as: "span", children: item.label }) }));
|
|
31
31
|
return (_jsx(Fragment, { children: item.disabled ? (_jsx(TooltipDisplay, { content: item.tooltip, side: "left", maxWidth: "290px", children: defaultButton })) : (defaultButton) }, "ad-".concat(index)));
|
|
32
32
|
}) })] }));
|
|
33
|
-
}
|
|
33
|
+
}
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import Icon from '../../atoms/Icon/Icon';
|
|
3
3
|
import { Text } from '../../atoms/Typography/Typography';
|
|
4
4
|
import './AddItemButton.css';
|
|
5
|
-
export
|
|
6
|
-
var label =
|
|
5
|
+
export function AddItemButton(props) {
|
|
6
|
+
var label = props.label, onClick = props.onClick;
|
|
7
7
|
return (_jsxs("button", { className: "add-item-button", onClick: onClick, children: [_jsx(Icon, { name: "plus-circle", size: "lg" }), _jsx(Text, { variant: "medium", children: label })] }));
|
|
8
|
-
}
|
|
8
|
+
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { BookingPaxAccom } from './BookingPaxAccom';
|
|
3
|
+
import { BookingPaxExcursion } from './BookingPaxExcursion';
|
|
4
|
+
import { BookingPaxTransfer } from './BookingPaxTransfer';
|
|
2
5
|
/**
|
|
3
6
|
* BookingPax is a component that allows the user to display the booking pax.
|
|
4
7
|
*
|
|
@@ -42,9 +45,9 @@ import React from 'react';
|
|
|
42
45
|
* @param props - The props for the BookingPax component.
|
|
43
46
|
* @returns The BookingPax component.
|
|
44
47
|
*/
|
|
45
|
-
export declare
|
|
46
|
-
|
|
47
|
-
Accom:
|
|
48
|
-
Excursion:
|
|
49
|
-
Transfer:
|
|
50
|
-
}
|
|
48
|
+
export declare function BookingPax(props: React.PropsWithChildren): import("react/jsx-runtime").JSX.Element;
|
|
49
|
+
export declare namespace BookingPax {
|
|
50
|
+
var Accom: typeof BookingPaxAccom;
|
|
51
|
+
var Excursion: typeof BookingPaxExcursion;
|
|
52
|
+
var Transfer: typeof BookingPaxTransfer;
|
|
53
|
+
}
|
|
@@ -56,9 +56,9 @@ import { BookingPaxTransfer } from './BookingPaxTransfer';
|
|
|
56
56
|
* @param props - The props for the BookingPax component.
|
|
57
57
|
* @returns The BookingPax component.
|
|
58
58
|
*/
|
|
59
|
-
export
|
|
59
|
+
export function BookingPax(props) {
|
|
60
60
|
return _jsx("div", __assign({ className: "booking-pax space-y-6" }, props));
|
|
61
|
-
}
|
|
61
|
+
}
|
|
62
62
|
BookingPax.Accom = BookingPaxAccom;
|
|
63
63
|
BookingPax.Excursion = BookingPaxExcursion;
|
|
64
64
|
BookingPax.Transfer = BookingPaxTransfer;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { BookingPaxClientInfo, BookingPaxClientProps } from './BookingPaxClient/BookingPaxClient';
|
|
3
2
|
export interface BookingPaxAccomRoom {
|
|
4
3
|
/**
|
|
@@ -53,4 +52,4 @@ export interface BookingPaxAccomProps extends Pick<BookingPaxClientProps, 'selec
|
|
|
53
52
|
onRemarkChange?: (value: string) => void;
|
|
54
53
|
onError?: (roomIndex: number, hasError: boolean) => void;
|
|
55
54
|
}
|
|
56
|
-
export declare
|
|
55
|
+
export declare function BookingPaxAccom(props: BookingPaxAccomProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,7 +6,7 @@ import { BookingPaxClient, } from './BookingPaxClient/BookingPaxClient';
|
|
|
6
6
|
import { BookingPaxHeader } from './BookingPaxHeader';
|
|
7
7
|
import { BookingPaxLayout } from './BookingPaxLayout/BookingPaxLayout';
|
|
8
8
|
import { BookingPaxRemarks } from './BookingPaxRemarks';
|
|
9
|
-
export
|
|
9
|
+
export function BookingPaxAccom(props) {
|
|
10
10
|
var rooms = props.rooms, _a = props.clientsInfo, clientsInfo = _a === void 0 ? [] : _a, hotelName = props.hotelName, roomName = props.roomName, selectedClientsInfoIds = props.selectedClientsInfoIds, isSubmitted = props.isSubmitted, onPaxChange = props.onPaxChange, onRemarkChange = props.onRemarkChange, onError = props.onError;
|
|
11
11
|
var _b = useBookingPax(selectedClientsInfoIds), changeOptions = _b.changeOptions, isSelectedClient = _b.isSelectedClient, onPaxOptionsChange = _b.onPaxOptionsChange, onSelectedClients = _b.onSelectedClients;
|
|
12
12
|
// Calculate selected pax count for each room
|
|
@@ -47,4 +47,4 @@ export var BookingPaxAccom = function (props) {
|
|
|
47
47
|
var room = _a.room, roomIndex = _a.roomIndex;
|
|
48
48
|
return (_jsxs("div", { className: "space-y-2", children: [_jsxs(TextWithIcon, { icon: "accom", children: ["Room ", roomIndex + 1] }), _jsx(BookingPaxClient, { id: "accommodation-".concat(roomIndex), clients: clientsInfo, selectedClientsInfoIds: selectedClientsInfoIds, selectedIndex: roomIndex, paxCount: room.paxCount, onPaxChange: onPaxOptionsChange, isSubmitted: isSubmitted })] }, "rm-".concat(roomIndex)));
|
|
49
49
|
}), _jsx(BookingPaxRemarks, { onChange: onRemarkChange })] }));
|
|
50
|
-
}
|
|
50
|
+
}
|
|
@@ -115,4 +115,4 @@ export interface BookingPaxClientProps {
|
|
|
115
115
|
* @param props.onPaxChange - The callback function to call when the pax changes.
|
|
116
116
|
* @returns The BookingPaxClient component.
|
|
117
117
|
*/
|
|
118
|
-
export declare
|
|
118
|
+
export declare function BookingPaxClient(props: BookingPaxClientProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -50,7 +50,7 @@ import './BookingPaxClient.css';
|
|
|
50
50
|
* @param props.onPaxChange - The callback function to call when the pax changes.
|
|
51
51
|
* @returns The BookingPaxClient component.
|
|
52
52
|
*/
|
|
53
|
-
export
|
|
53
|
+
export function BookingPaxClient(props) {
|
|
54
54
|
var clients = props.clients, id = props.id, defaultSelectedClientsInfoIds = props.selectedClientsInfoIds, selectedIndex = props.selectedIndex, _a = props.paxCount, paxCount = _a === void 0 ? 0 : _a, isSubmitted = props.isSubmitted, onPaxChange = props.onPaxChange, onError = props.onError;
|
|
55
55
|
var _b = useState({}), selectedClientsInfoIds = _b[0], setSelectedClientsInfoIds = _b[1];
|
|
56
56
|
var isSelectedClient = useBookingPax(selectedClientsInfoIds).isSelectedClient;
|
|
@@ -116,4 +116,4 @@ export var BookingPaxClient = function (props) {
|
|
|
116
116
|
});
|
|
117
117
|
} }) }) }, client.clientId));
|
|
118
118
|
}) })] }));
|
|
119
|
-
}
|
|
119
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { BookingPaxClientInfo, BookingPaxClientProps } from './BookingPaxClient/BookingPaxClient';
|
|
3
2
|
export type ExcursionType = 'sea' | 'land' | 'catamaran';
|
|
4
3
|
export interface BookingPaxExcursionProps extends Pick<BookingPaxClientProps, 'selectedClientsInfoIds' | 'onPaxChange'> {
|
|
@@ -54,4 +53,4 @@ export interface BookingPaxExcursionProps extends Pick<BookingPaxClientProps, 's
|
|
|
54
53
|
* @param props - The props for the BookingPaxExcursion component.
|
|
55
54
|
* @returns The BookingPaxExcursion component.
|
|
56
55
|
*/
|
|
57
|
-
export declare
|
|
56
|
+
export declare function BookingPaxExcursion(props: BookingPaxExcursionProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -29,11 +29,11 @@ var mapType = {
|
|
|
29
29
|
* @param props - The props for the BookingPaxExcursion component.
|
|
30
30
|
* @returns The BookingPaxExcursion component.
|
|
31
31
|
*/
|
|
32
|
-
export
|
|
32
|
+
export function BookingPaxExcursion(props) {
|
|
33
33
|
var name = props.name, type = props.type, clientsInfo = props.clientsInfo, paxCount = props.paxCount, selectedClientsInfoIds = props.selectedClientsInfoIds, isSubmitted = props.isSubmitted, onPaxChange = props.onPaxChange, onRemarkChange = props.onRemarkChange, onError = props.onError;
|
|
34
34
|
var _a = useBookingPax(selectedClientsInfoIds), changeOptions = _a.changeOptions, onPaxOptionsChange = _a.onPaxOptionsChange, onSelectedClients = _a.onSelectedClients;
|
|
35
35
|
useEffect(function () {
|
|
36
36
|
onSelectedClients(clientsInfo, onPaxChange);
|
|
37
37
|
}, [changeOptions, onPaxChange]);
|
|
38
38
|
return (_jsxs(BookingPaxLayout, { title: "Excursion", icon: "map", className: "booking-pax-accom", header: _jsx(BookingPaxHeader, { children: _jsx(BookingPaxHeader.Name, { name: name, icon: type, location: mapType[type] }) }), children: [_jsx(BookingPaxClient, { id: "excursion", clients: clientsInfo, selectedClientsInfoIds: selectedClientsInfoIds, selectedIndex: 0, paxCount: paxCount, onPaxChange: onPaxOptionsChange, isSubmitted: isSubmitted, onError: onError }), _jsx(BookingPaxRemarks, { onChange: onRemarkChange })] }));
|
|
39
|
-
}
|
|
39
|
+
}
|
|
@@ -24,8 +24,8 @@ export interface BookingPaxWithLocationProps {
|
|
|
24
24
|
*/
|
|
25
25
|
to: string;
|
|
26
26
|
}
|
|
27
|
-
export declare
|
|
28
|
-
|
|
29
|
-
Name: React.FC<BookingPaxWithNameProps>;
|
|
30
|
-
Location: React.FC<BookingPaxWithLocationProps>;
|
|
31
|
-
}
|
|
27
|
+
export declare function BookingPaxHeader(props: React.PropsWithChildren): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export declare namespace BookingPaxHeader {
|
|
29
|
+
var Name: React.FC<BookingPaxWithNameProps>;
|
|
30
|
+
var Location: React.FC<BookingPaxWithLocationProps>;
|
|
31
|
+
}
|
|
@@ -34,8 +34,8 @@ var BookingPaxWithLocation = function (props) {
|
|
|
34
34
|
var from = props.from, to = props.to;
|
|
35
35
|
return (_jsxs("div", { className: "flex items-center gap-x-1", children: [_jsx(Text, { size: "sm", children: from }), _jsx(Icon, { name: "arrow-right-outline", size: "sm" }), _jsx(Text, { size: "sm", children: to })] }));
|
|
36
36
|
};
|
|
37
|
-
export
|
|
37
|
+
export function BookingPaxHeader(props) {
|
|
38
38
|
return _jsx("div", __assign({ className: "booking-pax-header" }, props));
|
|
39
|
-
}
|
|
39
|
+
}
|
|
40
40
|
BookingPaxHeader.Name = BookingPaxWithName;
|
|
41
41
|
BookingPaxHeader.Location = BookingPaxWithLocation;
|
|
@@ -37,4 +37,4 @@ export interface BookingPaxLayoutProps {
|
|
|
37
37
|
* @param props - The props for the BookingPaxLayout component.
|
|
38
38
|
* @returns The BookingPaxLayout component.
|
|
39
39
|
*/
|
|
40
|
-
export declare
|
|
40
|
+
export declare function BookingPaxLayout(props: BookingPaxLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -17,7 +17,7 @@ import './BookingPaxLayout.css';
|
|
|
17
17
|
* @param props - The props for the BookingPaxLayout component.
|
|
18
18
|
* @returns The BookingPaxLayout component.
|
|
19
19
|
*/
|
|
20
|
-
export
|
|
20
|
+
export function BookingPaxLayout(props) {
|
|
21
21
|
var title = props.title, icon = props.icon, header = props.header, children = props.children, className = props.className;
|
|
22
22
|
return (_jsxs("div", { className: cn('booking-pax-layout', className), children: [_jsxs("div", { className: "booking-pax-layout__header", children: [_jsx(ServiceTitle, { title: title, icon: icon }), header] }), _jsx("div", { className: "booking-pax-layout__content", children: children })] }));
|
|
23
|
-
}
|
|
23
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
export interface BookingPaxRemarksProps {
|
|
3
2
|
/**
|
|
4
3
|
* The callback function to call when the remarks changes.
|
|
@@ -16,4 +15,4 @@ export interface BookingPaxRemarksProps {
|
|
|
16
15
|
* @param props - The props for the BookingPaxRemarks component.
|
|
17
16
|
* @returns The BookingPaxRemarks component.
|
|
18
17
|
*/
|
|
19
|
-
export declare
|
|
18
|
+
export declare function BookingPaxRemarks(props: BookingPaxRemarksProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -13,9 +13,9 @@ import { Text } from '../../atoms/Typography/Typography';
|
|
|
13
13
|
* @param props - The props for the BookingPaxRemarks component.
|
|
14
14
|
* @returns The BookingPaxRemarks component.
|
|
15
15
|
*/
|
|
16
|
-
export
|
|
17
|
-
var onChange =
|
|
18
|
-
var
|
|
16
|
+
export function BookingPaxRemarks(props) {
|
|
17
|
+
var onChange = props.onChange;
|
|
18
|
+
var _a = useState(''), remarks = _a[0], setRemarks = _a[1];
|
|
19
19
|
var textareaRef = useRef(null);
|
|
20
20
|
var adjustHeight = function () {
|
|
21
21
|
var textarea = textareaRef.current;
|
|
@@ -34,4 +34,4 @@ export var BookingPaxRemarks = function (_a) {
|
|
|
34
34
|
adjustHeight();
|
|
35
35
|
};
|
|
36
36
|
return (_jsxs("div", { className: "space-y-2", children: [_jsx(Text, { size: "sm", children: "Remarks" }), _jsx(Textarea, { ref: textareaRef, placeholder: "Do you have any remarks?", onInput: handleChange, className: "resize-none overflow-hidden", rows: 1, style: { minHeight: '44px', height: '44px', lineHeight: '1.5' } })] }));
|
|
37
|
-
}
|
|
37
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { DateTimePickerProps } from '../../organisms/DateTimePicker/DateTimePicker';
|
|
3
2
|
import { BookingPaxClientInfo, BookingPaxClientProps } from './BookingPaxClient/BookingPaxClient';
|
|
4
3
|
export type ExcursionType = 'sea' | 'land' | 'catamaran';
|
|
@@ -66,4 +65,4 @@ export declare const mapTransferType: Record<BookingPaxTransferProps['type'], st
|
|
|
66
65
|
* @param props - The props for the BookingPaxTransfer component.
|
|
67
66
|
* @returns The BookingPaxTransfer component.
|
|
68
67
|
*/
|
|
69
|
-
export declare
|
|
68
|
+
export declare function BookingPaxTransfer(props: BookingPaxTransferProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -30,7 +30,7 @@ export var mapTransferType = {
|
|
|
30
30
|
* @param props - The props for the BookingPaxTransfer component.
|
|
31
31
|
* @returns The BookingPaxTransfer component.
|
|
32
32
|
*/
|
|
33
|
-
export
|
|
33
|
+
export function BookingPaxTransfer(props) {
|
|
34
34
|
var from = props.from, to = props.to, type = props.type, clientsInfo = props.clientsInfo, paxCount = props.paxCount, selectedClientsInfoIds = props.selectedClientsInfoIds, isSubmitted = props.isSubmitted, onPaxChange = props.onPaxChange, onRemarkChange = props.onRemarkChange, onTimeChange = props.onTimeChange, onError = props.onError, onFlightNumberChange = props.onFlightNumberChange;
|
|
35
35
|
var _a = useBookingPax(selectedClientsInfoIds), changeOptions = _a.changeOptions, onPaxOptionsChange = _a.onPaxOptionsChange, onSelectedClients = _a.onSelectedClients;
|
|
36
36
|
var handleFlightNumberChange = useCallback(function (e) {
|
|
@@ -43,4 +43,4 @@ export var BookingPaxTransfer = function (props) {
|
|
|
43
43
|
onSelectedClients(clientsInfo, onPaxChange);
|
|
44
44
|
}, [changeOptions, onPaxChange]);
|
|
45
45
|
return (_jsxs(BookingPaxLayout, { title: _jsxs(_Fragment, { children: ["Transfer", ' ', _jsxs(Text, { as: "span", color: "accent", variant: "bold", size: "xl", className: "italic", children: ["(", mapTransferType[type], ")"] })] }), icon: "car", className: "booking-pax-accom", header: _jsx(BookingPaxHeader, { children: _jsx(BookingPaxHeader.Location, { from: from, to: to }) }), children: [type === 'INH' ? (_jsx(DateTimePicker, { icon: "clock", mode: "time", onValueChange: onTimeChange, placeholder: "Time of Transfer" })) : (_jsx(Input, { icon: "arrival", iconPosition: "leading", placeholder: "Flight number", onChange: handleFlightNumberChange })), _jsx(BookingPaxClient, { id: id, clients: clientsInfo, selectedClientsInfoIds: selectedClientsInfoIds, selectedIndex: 0, paxCount: paxCount, isSubmitted: isSubmitted, onPaxChange: onPaxOptionsChange, onError: onError }), _jsx(BookingPaxRemarks, { onChange: onRemarkChange })] }));
|
|
46
|
-
}
|
|
46
|
+
}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
import { BookingResumeLayout } from './BookingResumeLayout/BookingResumeLayout';
|
|
3
|
+
import { ResumeAccom } from './ResumeAccom/ResumeAccom';
|
|
4
|
+
import { ResumeExcursion } from './ResumeExcursion/ResumeExcursion';
|
|
5
|
+
import { ResumeOtherService } from './ResumeOtherService';
|
|
6
|
+
import { ResumeTransfer } from './ResumeTransfer';
|
|
7
|
+
export declare function BookingResume(props: React.PropsWithChildren): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare namespace BookingResume {
|
|
9
|
+
var Layout: typeof BookingResumeLayout;
|
|
10
|
+
var Accommodation: typeof ResumeAccom;
|
|
11
|
+
var Transfer: typeof ResumeTransfer;
|
|
12
|
+
var Excursion: typeof ResumeExcursion;
|
|
13
|
+
var OtherService: typeof ResumeOtherService;
|
|
14
|
+
}
|
|
@@ -15,9 +15,9 @@ import { ResumeAccom } from './ResumeAccom/ResumeAccom';
|
|
|
15
15
|
import { ResumeExcursion } from './ResumeExcursion/ResumeExcursion';
|
|
16
16
|
import { ResumeOtherService } from './ResumeOtherService';
|
|
17
17
|
import { ResumeTransfer } from './ResumeTransfer';
|
|
18
|
-
export
|
|
18
|
+
export function BookingResume(props) {
|
|
19
19
|
return _jsx("div", __assign({ className: "booking-resume space-y-8" }, props));
|
|
20
|
-
}
|
|
20
|
+
}
|
|
21
21
|
BookingResume.Layout = BookingResumeLayout;
|
|
22
22
|
BookingResume.Accommodation = ResumeAccom;
|
|
23
23
|
BookingResume.Transfer = ResumeTransfer;
|
package/dist/components/molecules/BookingResume/BookingResumeLayout/BookingResumeLayout.d.ts
CHANGED
|
@@ -8,4 +8,4 @@ export interface BookingResumeLayoutProps {
|
|
|
8
8
|
children?: React.ReactNode;
|
|
9
9
|
className?: string;
|
|
10
10
|
}
|
|
11
|
-
export declare
|
|
11
|
+
export declare function BookingResumeLayout(props: BookingResumeLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { cn } from '../../../../lib/utils';
|
|
3
3
|
import TextWithIcon from '../../TextWithIcon/TextWithIcon';
|
|
4
4
|
import './BookingResumeLayout.css';
|
|
5
|
-
export
|
|
5
|
+
export function BookingResumeLayout(props) {
|
|
6
6
|
var title = props.title, icon = props.icon, image = props.image, children = props.children, className = props.className;
|
|
7
7
|
return (_jsxs("div", { className: cn('booking-resume-layout', className), children: [_jsx(TextWithIcon, { icon: icon, color: "accent", textSize: "lg", textVariant: "bold", textLeading: "4", children: title }), _jsxs("div", { className: "booking-resume-layout__flex", children: [image && (_jsx("figure", { className: "booking-resume-layout__image", children: _jsx("img", { src: image, alt: "Service image accom", width: 250, height: 200 }) })), _jsx("div", { className: "booking-resume-layout__content", children: children })] })] }));
|
|
8
|
-
}
|
|
8
|
+
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { RoomItem } from '@/src/types/table';
|
|
2
2
|
import { BookingPax } from '@/src/types/table/booking.types';
|
|
3
|
-
import React from 'react';
|
|
4
3
|
import './ResumeAccom.css';
|
|
5
4
|
export interface ResumeAccomProps {
|
|
6
5
|
image: string;
|
|
@@ -10,4 +9,4 @@ export interface ResumeAccomProps {
|
|
|
10
9
|
hotelName: string;
|
|
11
10
|
rooms: Partial<RoomItem>[];
|
|
12
11
|
}
|
|
13
|
-
export declare
|
|
12
|
+
export declare function ResumeAccom(props: ResumeAccomProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,8 +8,8 @@ import { ServiceTitle } from '../../ServiceTitle/ServiceTitle';
|
|
|
8
8
|
import TextWithIcon from '../../TextWithIcon/TextWithIcon';
|
|
9
9
|
import { BookingResumeLayout } from '../BookingResumeLayout/BookingResumeLayout';
|
|
10
10
|
import './ResumeAccom.css';
|
|
11
|
-
export
|
|
11
|
+
export function ResumeAccom(props) {
|
|
12
12
|
var image = props.image, dates = props.dates, clientType = props.clientType, pax = props.pax, rooms = props.rooms, hotelName = props.hotelName;
|
|
13
13
|
var stay = useStays(dates);
|
|
14
14
|
return (_jsxs(BookingResumeLayout, { title: "Accommodation", icon: "accom", image: image, className: "resume-accom", children: [_jsx(ServiceTitle, { title: hotelName }), _jsxs("div", { className: "space-y-2 mt-4", children: [_jsx(DateDisplay, { dates: dates, colorMode: "green" }), _jsxs(TextWithIcon, { icon: "night", children: [stay, " Nights"] }), _jsxs(Text, { variant: "medium", size: "sm", leading: "4", children: [_jsx("strong", { children: "Client types:" }), " ", clientType] }), _jsx(PaxDisplay, { pax: pax }), _jsx("div", { children: rooms.map(function (room, index) { return (_jsxs("div", { className: "space-y-1", children: [_jsx(TextWithIcon, { icon: "accom", textSize: "sm", textVariant: "medium", children: room.RoomName }), _jsx(ServiceInfo.Item, { icon: "utensils", iconSize: "sm", textSize: "sm", textLeading: "4", textVariant: "medium", label: "Meal-Plan", children: room.MealPlan })] }, "rm-".concat(index))); }) })] })] }));
|
|
15
|
-
}
|
|
15
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { BookingPax } from '@/src/types/table/booking.types';
|
|
2
|
-
import React from 'react';
|
|
3
2
|
import './ResumeExcursion.css';
|
|
4
3
|
export interface ResumeExcursionProps {
|
|
5
4
|
image: string;
|
|
@@ -12,4 +11,4 @@ export interface ResumeExcursionProps {
|
|
|
12
11
|
transferType: string;
|
|
13
12
|
type: 'sea' | 'land' | 'catamaran';
|
|
14
13
|
}
|
|
15
|
-
export declare
|
|
14
|
+
export declare function ResumeExcursion(props: ResumeExcursionProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -11,7 +11,7 @@ var mapType = {
|
|
|
11
11
|
land: 'Land excursion',
|
|
12
12
|
catamaran: 'Cruise excursion',
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export function ResumeExcursion(props) {
|
|
15
15
|
var image = props.image, date = props.date, pax = props.pax, pickUpPoint = props.pickUpPoint, duration = props.duration, meal = props.meal, accessibility = props.accessibility, transferType = props.transferType, type = props.type;
|
|
16
16
|
return (_jsx(BookingResumeLayout, { title: "Excursion", icon: "map", image: image, className: "resume-excursion", children: _jsxs("div", { className: "space-y-3", children: [_jsx(DateDisplay, { dates: [date], colorMode: "green" }), _jsxs("div", { className: "space-y-1", children: [_jsx(TextWithIcon, { icon: type, textSize: "sm", textVariant: "medium", children: mapType[type] }), _jsxs(Text, { variant: "medium", size: "sm", leading: "4", children: [_jsx("strong", { children: "Pickup: " }), " ", pickUpPoint] })] }), _jsx(PaxDisplay, { pax: pax }), _jsxs(ServiceInfo, { className: "space-y-1", contentTextVariant: "regular", children: [_jsx(ServiceInfo.Item, { icon: "stopwatch", label: "Duration", children: duration }), _jsx(ServiceInfo.Item, { icon: "utensils", label: "Meal", children: meal }), _jsx(ServiceInfo.Item, { icon: "bike", label: "Difficulty", children: accessibility }), _jsx(ServiceInfo.Item, { icon: "car", label: "Vehicle", children: transferType })] })] }) }));
|
|
17
|
-
}
|
|
17
|
+
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { BookingPax } from '@/src/types/table/booking.types';
|
|
2
|
-
import React from 'react';
|
|
3
2
|
export interface ResumeOtherServiceProps {
|
|
4
3
|
pax: BookingPax;
|
|
5
4
|
}
|
|
6
|
-
export declare
|
|
5
|
+
export declare function ResumeOtherService(props: ResumeOtherServiceProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { PaxDisplay } from '../PaxDisplay/PaxDisplay';
|
|
3
3
|
import TextWithIcon from '../TextWithIcon/TextWithIcon';
|
|
4
4
|
import { BookingResumeLayout } from './BookingResumeLayout/BookingResumeLayout';
|
|
5
|
-
export
|
|
5
|
+
export function ResumeOtherService(props) {
|
|
6
6
|
var pax = props.pax;
|
|
7
7
|
return (_jsx(BookingResumeLayout, { title: "Other Services", icon: "more", children: _jsxs("div", { className: "space-y-1", children: [_jsx(TextWithIcon, { icon: "wallet", children: "Handling Fee" }), _jsx(PaxDisplay, { pax: pax })] }) }));
|
|
8
|
-
}
|
|
8
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { BookingPax } from '@/src/types/table/booking.types';
|
|
2
|
-
import React from 'react';
|
|
3
2
|
import { FromToProps } from '../FromTo/FromTo';
|
|
4
3
|
export interface ResumeTransferProps {
|
|
5
4
|
type: 'ARV' | 'DEP' | 'INH';
|
|
@@ -9,4 +8,4 @@ export interface ResumeTransferProps {
|
|
|
9
8
|
carName: string;
|
|
10
9
|
image: string;
|
|
11
10
|
}
|
|
12
|
-
export declare
|
|
11
|
+
export declare function ResumeTransfer(props: ResumeTransferProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,8 +5,8 @@ import FromTo from '../FromTo/FromTo';
|
|
|
5
5
|
import { PaxDisplay } from '../PaxDisplay/PaxDisplay';
|
|
6
6
|
import TextWithIcon from '../TextWithIcon/TextWithIcon';
|
|
7
7
|
import { BookingResumeLayout } from './BookingResumeLayout/BookingResumeLayout';
|
|
8
|
-
export
|
|
8
|
+
export function ResumeTransfer(props) {
|
|
9
9
|
var type = props.type, pax = props.pax, date = props.date, location = props.location, carName = props.carName, image = props.image;
|
|
10
10
|
var transferType = type === 'ARV' ? 'Arrival' : type === 'DEP' ? 'Departure' : 'Inter-Hotel';
|
|
11
11
|
return (_jsx(BookingResumeLayout, { title: _jsxs(_Fragment, { children: ["Transfer", ' ', _jsx(Text, { color: "accent", as: "span", size: "lg", children: transferType })] }), icon: "car-front", image: image, children: _jsxs("div", { className: "space-y-3", children: [_jsx(DateDisplay, { dates: [date], colorMode: "green" }), _jsx(FromTo, { from: location.from, to: location.to }), _jsxs("div", { className: "space-y-1", children: [_jsx(PaxDisplay, { pax: pax }), _jsx(TextWithIcon, { icon: "car", textSize: "sm", textVariant: "medium", children: carName })] })] }) }));
|
|
12
|
-
}
|
|
12
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import './Breadcrumbs.css';
|
|
3
2
|
export interface BreadcrumbsItem {
|
|
4
3
|
label: string;
|
|
@@ -8,4 +7,4 @@ export interface BreadcrumbsProps {
|
|
|
8
7
|
items: BreadcrumbsItem[];
|
|
9
8
|
onBack?: () => void;
|
|
10
9
|
}
|
|
11
|
-
export declare
|
|
10
|
+
export declare function Breadcrumbs(props: BreadcrumbsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,7 +3,7 @@ import { cn } from '../../../lib/utils';
|
|
|
3
3
|
import Icon from '../../atoms/Icon/Icon';
|
|
4
4
|
import { Text } from '../../atoms/Typography/Typography';
|
|
5
5
|
import './Breadcrumbs.css';
|
|
6
|
-
export
|
|
6
|
+
export function Breadcrumbs(props) {
|
|
7
7
|
var items = props.items, onBack = props.onBack;
|
|
8
8
|
return (_jsxs("ol", { className: "breadcrumbs", children: [_jsxs(Text, { variant: "medium", size: "sm", leading: "4", as: "li", className: "cursor-pointer", onClick: onBack, children: [_jsx(Icon, { name: "chevron-left", size: "sm" }), "Back"] }), items.map(function (item, index) { return (_jsx(Text, { as: "li", variant: "medium", size: "sm", onClick: item.onClick, color: index === items.length - 1 ? 'accent' : 'default', leading: "4", className: cn(index < items.length - 1 && 'cursor-pointer'), children: item.label }, "bc-".concat(index))); })] }));
|
|
9
|
-
}
|
|
9
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { TextProps } from '../../atoms/Typography/Typography';
|
|
3
2
|
import './DateDisplay.css';
|
|
4
3
|
export interface DateDisplayProps {
|
|
@@ -31,4 +30,4 @@ export interface DateDisplayProps {
|
|
|
31
30
|
* @param DateDisplayProps
|
|
32
31
|
* @returns
|
|
33
32
|
*/
|
|
34
|
-
export declare
|
|
33
|
+
export declare function DateDisplay(props: DateDisplayProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -14,8 +14,8 @@ import './DateDisplay.css';
|
|
|
14
14
|
* @param DateDisplayProps
|
|
15
15
|
* @returns
|
|
16
16
|
*/
|
|
17
|
-
export
|
|
18
|
-
var
|
|
17
|
+
export function DateDisplay(props) {
|
|
18
|
+
var _a = props.dates, dates = _a === void 0 ? [] : _a, _b = props.arrowSize, arrowSize = _b === void 0 ? 'sm' : _b, _c = props.calendarSize, calendarSize = _c === void 0 ? 'sm' : _c, _d = props.textSize, textSize = _d === void 0 ? 'sm' : _d, _e = props.colorMode, colorMode = _e === void 0 ? 'black' : _e, _f = props.className, className = _f === void 0 ? '' : _f;
|
|
19
19
|
var formattedDates = useMemo(function () {
|
|
20
20
|
return dates.map(function (d) {
|
|
21
21
|
var dateObj = typeof d === 'string' ? new Date(d) : d;
|
|
@@ -37,4 +37,4 @@ export var DateDisplay = function (_a) {
|
|
|
37
37
|
}
|
|
38
38
|
// Multiple dates display (backward compatibility)
|
|
39
39
|
return (_jsx("div", { className: "date-display date-display--range date-display--".concat(colorMode, " ").concat(className), children: formattedDates.map(function (formattedDate, index) { return (_jsxs(Fragment, { children: [_jsxs("span", { className: "date-display__item", children: [_jsx(Icon, { name: "calendar", size: calendarSize, color: iconColor }), _jsx(Text, { variant: "medium", size: textSize, color: textColor, children: formattedDate })] }), formattedDates.length > 1 && index === 0 && (_jsx(Icon, { name: "arrow-right-outline", size: arrowSize }))] }, "dd-".concat(index))); }) }));
|
|
40
|
-
}
|
|
40
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ActionDropdownType } from '@/src/types/table';
|
|
2
|
-
import React from 'react';
|
|
3
2
|
import { ButtonProps } from '../../atoms/Button/Button';
|
|
4
3
|
import { ActionDropdownItem } from '../ActionDropdown/ActionDropdown';
|
|
5
4
|
export interface DetailsActionProps {
|
|
@@ -11,4 +10,4 @@ export interface DetailsActionProps {
|
|
|
11
10
|
buttonLabel?: string;
|
|
12
11
|
dropdownMaxWidth?: string;
|
|
13
12
|
}
|
|
14
|
-
export declare
|
|
13
|
+
export declare function DetailsAction(props: DetailsActionProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,7 +3,7 @@ import { cn } from '../../../lib/utils';
|
|
|
3
3
|
import { ActionDropdownType } from '../../../types/table/index';
|
|
4
4
|
import Button from '../../atoms/Button/Button';
|
|
5
5
|
import { ActionDropdown } from '../ActionDropdown/ActionDropdown';
|
|
6
|
-
export
|
|
6
|
+
export function DetailsAction(props) {
|
|
7
7
|
var _a = props.data, data = _a === void 0 ? [] : _a, onAction = props.onAction, _b = props.buttonVariant, buttonVariant = _b === void 0 ? 'outline-secondary' : _b, _c = props.buttonClassName, buttonClassName = _c === void 0 ? '' : _c, _d = props.buttonLabel, buttonLabel = _d === void 0 ? 'More options' : _d, dropdownMaxWidth = props.dropdownMaxWidth;
|
|
8
8
|
return (_jsx(ActionDropdown, { maxWidth: dropdownMaxWidth, data: data
|
|
9
9
|
? data
|
|
@@ -33,4 +33,4 @@ export var DetailsAction = function (props) {
|
|
|
33
33
|
},
|
|
34
34
|
},
|
|
35
35
|
], children: _jsx(Button, { variant: buttonVariant, trailingIcon: "chevron-down", size: "sm", className: cn('w-[144px] !justify-between !px-[14px]', buttonClassName), children: buttonLabel }) }));
|
|
36
|
-
}
|
|
36
|
+
}
|
|
@@ -10,4 +10,4 @@ export interface DetailsAgencyProps {
|
|
|
10
10
|
/** Children of the agency */
|
|
11
11
|
children?: React.ReactNode;
|
|
12
12
|
}
|
|
13
|
-
export declare
|
|
13
|
+
export declare function DetailsAgency(props: DetailsAgencyProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import Chip from '../../../atoms/Chip/Chip';
|
|
3
3
|
import { Text } from '../../../atoms/Typography/Typography';
|
|
4
4
|
import './DetailsAgency.css';
|
|
5
|
-
export
|
|
5
|
+
export function DetailsAgency(props) {
|
|
6
6
|
var name = props.name, clientType = props.clientType, isOnRequest = props.isOnRequest, children = props.children;
|
|
7
7
|
return (_jsxs("div", { className: "flex flex-col gap-y-6 items-end", children: [_jsx("img", { src: "/images/mautourco-logo.png", alt: "Mautourco Logo", width: 220 }), _jsxs("div", { className: "details-agency", children: [_jsx(Text, { variant: "bold", color: "accent", children: "Documents details:" }), _jsxs("div", { className: "details-agency__content", children: [_jsxs("div", { className: "details-agency__content-item", children: [_jsx(Text, { variant: "bold", size: "sm", leading: "4", className: "details-agency__content-item-name", children: "Agency" }), _jsx(Text, { size: "sm", leading: "4", children: name })] }), ' ', _jsxs("div", { className: "details-agency__content-item", children: [_jsx(Text, { variant: "bold", size: "sm", leading: "4", className: "details-agency__content-item-name", children: "Client type" }), _jsx(Text, { size: "sm", leading: "4", children: clientType })] })] })] }), isOnRequest && _jsx(Chip, { color: "yellow", children: "Waiting for confirmation" }), children] }));
|
|
8
|
-
}
|
|
8
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import './DetailsClient.css';
|
|
3
2
|
export interface DetailsClientInfoItem {
|
|
4
3
|
firstName: string;
|
|
@@ -10,4 +9,4 @@ export interface DetailsClientInfoProps {
|
|
|
10
9
|
language: string;
|
|
11
10
|
clients: DetailsClientInfoItem[];
|
|
12
11
|
}
|
|
13
|
-
export declare
|
|
12
|
+
export declare function DetailsClientInfo(props: DetailsClientInfoProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,7 +3,7 @@ import Chip from '../../../atoms/Chip/Chip';
|
|
|
3
3
|
import { Text } from '../../../atoms/Typography/Typography';
|
|
4
4
|
import { languagesMap } from '../../ServiceLanguages/constant';
|
|
5
5
|
import './DetailsClient.css';
|
|
6
|
-
export
|
|
6
|
+
export function DetailsClientInfo(props) {
|
|
7
7
|
var language = props.language, clients = props.clients;
|
|
8
8
|
return (_jsxs("div", { className: "details-client", children: [_jsx(Text, { variant: "bold", children: "1. Client's information" }), _jsxs("div", { className: "space-y-4", children: [_jsx(Text, { variant: "medium", size: "lg", children: "Language:" }), _jsxs(Chip, { color: "neutral", size: "md", className: "!px-4", children: [_jsx("i", { className: "fi fi-".concat(languagesMap[language.toLowerCase()]) }), _jsx(Text, { variant: "medium", as: "span", children: language })] })] }), _jsx("div", { className: "flex gap-x-8 flex-wrap", children: clients.map(function (client, index) { return (_jsxs("div", { className: "space-y-4", children: [_jsxs(Text, { variant: "medium", size: "lg", children: [client.type, " No ", index + 1, ' ', client.age > 0 ? (_jsxs(Text, { variant: "regular", size: "lg", as: "span", children: ["(", client.age, " yo)"] })) : ('')] }), _jsxs(Chip, { color: "neutral", size: "md", className: "!px-4", children: [client.firstName, " ", client.lastName] })] }, "cl-".concat(index))); }) })] }));
|
|
9
|
-
}
|
|
9
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
export interface DetailsFileProps {
|
|
3
2
|
/** Number of the file */
|
|
4
3
|
number: string;
|
|
@@ -11,4 +10,4 @@ export interface DetailsFileProps {
|
|
|
11
10
|
/** Show the regular info of the file */
|
|
12
11
|
showRegularInfo?: boolean;
|
|
13
12
|
}
|
|
14
|
-
export declare
|
|
13
|
+
export declare function DetailsFile(props: DetailsFileProps): 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 { Text } from '../../atoms/Typography/Typography';
|
|
3
|
-
export
|
|
3
|
+
export function DetailsFile(props) {
|
|
4
4
|
var number = props.number, name = props.name, _a = props.label, label = _a === void 0 ? 'File number:' : _a, _b = props.withTitle, withTitle = _b === void 0 ? false : _b, _c = props.showRegularInfo, showRegularInfo = _c === void 0 ? true : _c;
|
|
5
5
|
return (_jsxs("div", { className: "grid gap-y-2", children: [withTitle && (_jsx(Text, { variant: "bold", className: "text-2xl", color: "brand", children: label })), showRegularInfo && (_jsxs(Text, { variant: "regular", color: "default", children: [label, " ", number] })), _jsx(Text, { variant: "medium", color: "accent", children: name })] }));
|
|
6
|
-
}
|
|
6
|
+
}
|