mautourco-components 0.2.21 → 0.2.22
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/atoms/Checkbox/Checkbox.d.ts +3 -2
- package/dist/components/atoms/Checkbox/Checkbox.js +16 -6
- package/dist/components/atoms/Inputs/Input/Input.d.ts +1 -1
- package/dist/components/molecules/BookingPax/BookingPax.d.ts +43 -0
- package/dist/components/molecules/BookingPax/BookingPax.js +43 -0
- package/dist/components/molecules/BookingPax/BookingPaxAccom.d.ts +34 -0
- package/dist/components/molecules/BookingPax/BookingPaxClient/BookingPaxClient.css +10 -0
- package/dist/components/molecules/BookingPax/BookingPaxClient/BookingPaxClient.d.ts +89 -1
- package/dist/components/molecules/BookingPax/BookingPaxClient/BookingPaxClient.js +34 -11
- package/dist/components/molecules/BookingPax/BookingPaxExcursion.d.ts +43 -0
- package/dist/components/molecules/BookingPax/BookingPaxExcursion.js +19 -0
- package/dist/components/molecules/BookingPax/BookingPaxHeader.d.ts +15 -0
- package/dist/components/molecules/BookingPax/BookingPaxHeader.js +13 -0
- package/dist/components/molecules/BookingPax/BookingPaxLayout/BookingPaxLayout.d.ts +30 -0
- package/dist/components/molecules/BookingPax/BookingPaxLayout/BookingPaxLayout.js +15 -0
- package/dist/components/molecules/BookingPax/BookingPaxRemarks.d.ts +14 -0
- package/dist/components/molecules/BookingPax/BookingPaxRemarks.js +11 -0
- package/dist/components/molecules/BookingPax/BookingPaxTransfer.d.ts +51 -0
- package/dist/components/molecules/BookingPax/BookingPaxTransfer.js +19 -2
- package/dist/components/molecules/BookingPax/index.d.ts +1 -0
- package/dist/components/molecules/BookingPax/index.js +1 -0
- package/dist/components/molecules/DialogContentPolicy/DialogCancellationList.d.ts +20 -0
- package/dist/components/molecules/DialogContentPolicy/DialogCancellationList.js +17 -6
- package/dist/components/molecules/DialogContentPolicy/DialogContentPolicy.d.ts +18 -0
- package/dist/components/molecules/DialogContentPolicy/DialogContentPolicy.js +14 -3
- package/dist/components/organisms/Booking/BookingPaxList.d.ts +64 -0
- package/dist/components/organisms/Booking/BookingPaxList.js +19 -0
- package/dist/components/organisms/Dialog/Dialog.d.ts +1 -1
- package/dist/components/organisms/Dialog/Dialog.js +4 -4
- package/dist/components/organisms/DialogBookingConfirm/BookingCancellationPolicy.d.ts +29 -0
- package/dist/components/organisms/DialogBookingConfirm/BookingCancellationPolicy.js +31 -0
- package/dist/components/organisms/DialogBookingConfirm/BookingMailSent.d.ts +29 -0
- package/dist/components/organisms/DialogBookingConfirm/BookingMailSent.js +31 -0
- package/dist/components/organisms/DialogBookingConfirm/BookingReference.d.ts +35 -0
- package/dist/components/organisms/DialogBookingConfirm/BookingReference.js +37 -0
- package/dist/components/organisms/DialogBookingConfirm/BookingSuccess.d.ts +35 -0
- package/dist/components/organisms/DialogBookingConfirm/BookingSuccess.js +33 -0
- package/dist/components/organisms/DialogBookingConfirm/DialogBookingConfirm.d.ts +39 -2
- package/dist/components/organisms/DialogBookingConfirm/DialogBookingConfirm.js +25 -1
- package/dist/components/organisms/DialogBookingConfirm/index.d.ts +5 -0
- package/dist/components/organisms/DialogBookingConfirm/index.js +1 -0
- package/dist/components/organisms/TabCancellationPolicy/CancellationAccom.d.ts +25 -0
- package/dist/components/organisms/TabCancellationPolicy/CancellationAccom.js +16 -0
- package/dist/components/organisms/TabCancellationPolicy/CancellationBody.d.ts +24 -0
- package/dist/components/organisms/TabCancellationPolicy/CancellationBody.js +24 -0
- package/dist/components/organisms/TabCancellationPolicy/CancellationExcursion.d.ts +30 -0
- package/dist/components/organisms/TabCancellationPolicy/CancellationExcursion.js +15 -0
- package/dist/components/organisms/TabCancellationPolicy/CancellationHeader.d.ts +23 -0
- package/dist/components/organisms/TabCancellationPolicy/CancellationHeader.js +23 -0
- package/dist/components/organisms/TabCancellationPolicy/CancellationTransfer.d.ts +22 -0
- package/dist/components/organisms/TabCancellationPolicy/CancellationTransfer.js +13 -0
- package/dist/components/organisms/TabCancellationPolicy/HeaderAccom.d.ts +22 -0
- package/dist/components/organisms/TabCancellationPolicy/HeaderAccom.js +13 -0
- package/dist/components/organisms/TabCancellationPolicy/HeaderExcursion.d.ts +18 -0
- package/dist/components/organisms/TabCancellationPolicy/HeaderExcursion.js +12 -0
- package/dist/components/organisms/TabCancellationPolicy/PolicyAccom/PolicyAccom.css +7 -0
- package/dist/components/organisms/TabCancellationPolicy/PolicyAccom/PolicyAccom.js +2 -1
- package/dist/components/organisms/TabCancellationPolicy/PolicyExcursion.d.ts +18 -0
- package/dist/components/organisms/TabCancellationPolicy/PolicyExcursion.js +12 -0
- package/dist/components/organisms/TabCancellationPolicy/PolicyTransfer.d.ts +11 -0
- package/dist/components/organisms/TabCancellationPolicy/PolicyTransfer.js +11 -0
- package/dist/components/organisms/TabCancellationPolicy/TabCancellationPolicy.d.ts +29 -0
- package/dist/components/organisms/TabCancellationPolicy/TabCancellationPolicy.js +29 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +2 -2
- package/dist/styles/components/checkbox.css +11 -5
- package/package.json +1 -2
- package/src/components/atoms/Checkbox/Checkbox.tsx +38 -23
- package/src/components/atoms/Inputs/Input/Input.tsx +1 -1
- package/src/components/molecules/BookingPax/BookingPax.tsx +43 -0
- package/src/components/molecules/BookingPax/BookingPaxAccom.tsx +34 -0
- package/src/components/molecules/BookingPax/BookingPaxClient/BookingPaxClient.css +6 -0
- package/src/components/molecules/BookingPax/BookingPaxClient/BookingPaxClient.tsx +92 -18
- package/src/components/molecules/BookingPax/BookingPaxExcursion.tsx +43 -0
- package/src/components/molecules/BookingPax/BookingPaxHeader.tsx +28 -1
- package/src/components/molecules/BookingPax/BookingPaxLayout/BookingPaxLayout.tsx +30 -0
- package/src/components/molecules/BookingPax/BookingPaxRemarks.tsx +14 -0
- package/src/components/molecules/BookingPax/BookingPaxTransfer.tsx +52 -2
- package/src/components/molecules/BookingPax/index.ts +2 -0
- package/src/components/molecules/DialogContentPolicy/DialogCancellationList.tsx +32 -12
- package/src/components/molecules/DialogContentPolicy/DialogContentPolicy.tsx +27 -11
- package/src/components/organisms/Booking/BookingPaxList.tsx +64 -0
- package/src/components/organisms/Dialog/Dialog.tsx +13 -20
- package/src/components/organisms/DialogBookingConfirm/BookingCancellationPolicy.tsx +44 -0
- package/src/components/organisms/DialogBookingConfirm/BookingMailSent.tsx +56 -0
- package/src/components/organisms/DialogBookingConfirm/BookingReference.tsx +74 -0
- package/src/components/organisms/DialogBookingConfirm/BookingSuccess.tsx +67 -0
- package/src/components/organisms/DialogBookingConfirm/DialogBookingConfirm.tsx +43 -2
- package/src/components/organisms/DialogBookingConfirm/index.ts +6 -0
- package/src/components/organisms/TabCancellationPolicy/CancellationAccom.tsx +25 -0
- package/src/components/organisms/TabCancellationPolicy/CancellationBody.tsx +24 -0
- package/src/components/organisms/TabCancellationPolicy/CancellationExcursion.tsx +30 -0
- package/src/components/organisms/TabCancellationPolicy/CancellationHeader.tsx +23 -0
- package/src/components/organisms/TabCancellationPolicy/CancellationTransfer.tsx +22 -0
- package/src/components/organisms/TabCancellationPolicy/HeaderAccom.tsx +22 -0
- package/src/components/organisms/TabCancellationPolicy/HeaderExcursion.tsx +18 -0
- package/src/components/organisms/TabCancellationPolicy/PolicyAccom/PolicyAccom.css +3 -0
- package/src/components/organisms/TabCancellationPolicy/PolicyAccom/PolicyAccom.tsx +3 -2
- package/src/components/organisms/TabCancellationPolicy/PolicyExcursion.tsx +18 -0
- package/src/components/organisms/TabCancellationPolicy/PolicyTransfer.tsx +11 -0
- package/src/components/organisms/TabCancellationPolicy/TabCancellationPolicy.tsx +29 -0
- package/src/styles/components/checkbox.css +11 -5
- package/dist/components/ui/checkbox.d.ts +0 -4
- package/dist/components/ui/checkbox.js +0 -31
- package/src/components/ui/checkbox.tsx +0 -32
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { Button, Heading, Text } from '@/src';
|
|
14
|
+
import { DialogBookingConfirm } from './DialogBookingConfirm';
|
|
15
|
+
/**
|
|
16
|
+
* BookingSuccess is a component that allows the user to display the booking success.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* <BookingSuccess
|
|
20
|
+
* open={open}
|
|
21
|
+
* bookingName={bookingName}
|
|
22
|
+
* setOpen={setOpen}
|
|
23
|
+
* onNext={onNext}
|
|
24
|
+
* />
|
|
25
|
+
*
|
|
26
|
+
*
|
|
27
|
+
* @param props - The props for the BookingSuccess component.
|
|
28
|
+
* @returns The BookingSuccess component.
|
|
29
|
+
*/
|
|
30
|
+
export var BookingSuccess = function (props) {
|
|
31
|
+
var open = props.open, bookingName = props.bookingName, setOpen = props.setOpen, onNext = props.onNext;
|
|
32
|
+
return (_jsx(DialogBookingConfirm, __assign({ open: open, setOpen: setOpen, className: "!max-w-[800px]" }, { children: _jsxs("div", __assign({ className: "space-y-9" }, { children: [_jsxs("div", __assign({ className: "space-y-8" }, { children: [_jsx("img", { src: "/images/svg/booking-confirm.svg", alt: "Booking success", className: "mx-auto", width: 150, height: 150 }), _jsxs("div", __assign({ className: "text-center" }, { children: [_jsx(Heading, __assign({ as: "p", level: 6, variant: "medium" }, { children: "Your booking has been successfully confirmed!" })), _jsxs(Text, __assign({ variant: "bold", size: "lg" }, { children: ["\"", bookingName, "\""] }))] }))] })), _jsx(Button, __assign({ variant: "secondary", onClick: onNext, className: "w-full" }, { children: "Confirm booking" }))] })) })));
|
|
33
|
+
};
|
|
@@ -1,10 +1,47 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
interface DialogBookingConfirmProps {
|
|
3
|
+
/**
|
|
4
|
+
* Whether the dialog is open.
|
|
5
|
+
*/
|
|
3
6
|
open: boolean;
|
|
4
|
-
|
|
7
|
+
/**
|
|
8
|
+
* The title of the dialog.
|
|
9
|
+
*/
|
|
10
|
+
title?: string;
|
|
11
|
+
/**
|
|
12
|
+
* The children of the dialog.
|
|
13
|
+
*/
|
|
5
14
|
children: React.ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* The callback function to call when the dialog is closed.
|
|
17
|
+
*/
|
|
6
18
|
setOpen: (open: boolean) => void;
|
|
19
|
+
/**
|
|
20
|
+
* The class name of the dialog.
|
|
21
|
+
*/
|
|
7
22
|
className?: string;
|
|
8
23
|
}
|
|
9
|
-
|
|
24
|
+
/**
|
|
25
|
+
* DialogBookingConfirm is a component that allows the user to display the booking confirmation.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* <DialogBookingConfirm
|
|
29
|
+
* open={open}
|
|
30
|
+
* title={title}
|
|
31
|
+
* children={children}
|
|
32
|
+
* setOpen={setOpen}
|
|
33
|
+
* className={className}
|
|
34
|
+
* />
|
|
35
|
+
*
|
|
36
|
+
*
|
|
37
|
+
* @param props - The props for the DialogBookingConfirm component.
|
|
38
|
+
* @returns The DialogBookingConfirm component.
|
|
39
|
+
*/
|
|
40
|
+
export declare const DialogBookingConfirm: {
|
|
41
|
+
(props: DialogBookingConfirmProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
Reference: React.FC<import("./BookingReference").BookingReferenceProps>;
|
|
43
|
+
CancellationPolicy: (props: import("./BookingCancellationPolicy").BookingCancellationPolicyProps) => import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
Success: React.FC<import("./BookingSuccess").BookingSuccessProps>;
|
|
45
|
+
MailSent: React.FC<import("./BookingMailSent").BookingMailSentProps>;
|
|
46
|
+
};
|
|
10
47
|
export {};
|
|
@@ -11,7 +11,31 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import Dialog from '../Dialog/Dialog';
|
|
14
|
+
import { BookingCancellationPolicy } from './BookingCancellationPolicy';
|
|
15
|
+
import { BookingMailSent } from './BookingMailSent';
|
|
16
|
+
import { BookingReference } from './BookingReference';
|
|
17
|
+
import { BookingSuccess } from './BookingSuccess';
|
|
18
|
+
/**
|
|
19
|
+
* DialogBookingConfirm is a component that allows the user to display the booking confirmation.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* <DialogBookingConfirm
|
|
23
|
+
* open={open}
|
|
24
|
+
* title={title}
|
|
25
|
+
* children={children}
|
|
26
|
+
* setOpen={setOpen}
|
|
27
|
+
* className={className}
|
|
28
|
+
* />
|
|
29
|
+
*
|
|
30
|
+
*
|
|
31
|
+
* @param props - The props for the DialogBookingConfirm component.
|
|
32
|
+
* @returns The DialogBookingConfirm component.
|
|
33
|
+
*/
|
|
14
34
|
export var DialogBookingConfirm = function (props) {
|
|
15
35
|
var open = props.open, title = props.title, children = props.children, setOpen = props.setOpen, className = props.className;
|
|
16
|
-
return (_jsx(Dialog, __assign({ isOpen: open, onClose: function () { return setOpen(false); }, title: title, className: className, showFooter: false }, { children: children })));
|
|
36
|
+
return (_jsx(Dialog, __assign({ isOpen: open, onClose: function () { return setOpen(false); }, title: title, className: className, showFooter: false, closeOnOverlayClick: false }, { children: children })));
|
|
17
37
|
};
|
|
38
|
+
DialogBookingConfirm.Reference = BookingReference;
|
|
39
|
+
DialogBookingConfirm.CancellationPolicy = BookingCancellationPolicy;
|
|
40
|
+
DialogBookingConfirm.Success = BookingSuccess;
|
|
41
|
+
DialogBookingConfirm.MailSent = BookingMailSent;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from './DialogBookingConfirm';
|
|
2
|
+
export type { BookingCancellationPolicyProps } from './BookingCancellationPolicy';
|
|
3
|
+
export type { BookingMailSentProps } from './BookingMailSent';
|
|
4
|
+
export type { BookingReferenceProps } from './BookingReference';
|
|
5
|
+
export type { BookingSuccessProps } from './BookingSuccess';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DialogBookingConfirm';
|
|
@@ -1,11 +1,36 @@
|
|
|
1
1
|
import { HeaderAccomProps } from './HeaderAccom';
|
|
2
2
|
import { Policy } from './PolicyAccom/PolicyAccom';
|
|
3
3
|
export interface CancellationAccomProps extends HeaderAccomProps {
|
|
4
|
+
/**
|
|
5
|
+
* The image of the cancellation accommodation.
|
|
6
|
+
*/
|
|
4
7
|
image: string;
|
|
8
|
+
/**
|
|
9
|
+
* Whether the cancellation accommodation is on request.
|
|
10
|
+
*/
|
|
5
11
|
isOnRequest?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* The room policies of the cancellation accommodation.
|
|
14
|
+
*/
|
|
6
15
|
roomPolicies: Array<{
|
|
7
16
|
roomName: string;
|
|
8
17
|
policies: Policy[];
|
|
9
18
|
}>;
|
|
10
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* CancellationAccom is a component that allows the user to display the cancellation accommodation.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* <CancellationAccom
|
|
25
|
+
* hotelName="Hotel Name"
|
|
26
|
+
* pax="8 pax"
|
|
27
|
+
* dates={['2024-01-01', '2024-01-02']}
|
|
28
|
+
* image="/images/accom.png"
|
|
29
|
+
* roomPolicies={roomPolicies}
|
|
30
|
+
* isOnRequest={false}
|
|
31
|
+
* />
|
|
32
|
+
*
|
|
33
|
+
* @param props - The props for the CancellationAccom component.
|
|
34
|
+
* @returns The CancellationAccom component.
|
|
35
|
+
*/
|
|
11
36
|
export default function CancellationAccom(props: CancellationAccomProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -13,6 +13,22 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
13
13
|
import CancellationBody from './CancellationBody';
|
|
14
14
|
import CancellationHeader from './CancellationHeader';
|
|
15
15
|
import DetailsCancellationPolicy from './TabCancellationPolicy';
|
|
16
|
+
/**
|
|
17
|
+
* CancellationAccom is a component that allows the user to display the cancellation accommodation.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* <CancellationAccom
|
|
21
|
+
* hotelName="Hotel Name"
|
|
22
|
+
* pax="8 pax"
|
|
23
|
+
* dates={['2024-01-01', '2024-01-02']}
|
|
24
|
+
* image="/images/accom.png"
|
|
25
|
+
* roomPolicies={roomPolicies}
|
|
26
|
+
* isOnRequest={false}
|
|
27
|
+
* />
|
|
28
|
+
*
|
|
29
|
+
* @param props - The props for the CancellationAccom component.
|
|
30
|
+
* @returns The CancellationAccom component.
|
|
31
|
+
*/
|
|
16
32
|
export default function CancellationAccom(props) {
|
|
17
33
|
var hotelName = props.hotelName, pax = props.pax, dates = props.dates, image = props.image, roomPolicies = props.roomPolicies, isOnRequest = props.isOnRequest;
|
|
18
34
|
return (_jsx(DetailsCancellationPolicy.Layout, __assign({ title: "Accommodation", icon: "accom", isOnRequest: isOnRequest, image: image, header: _jsx(CancellationHeader, { children: _jsx(CancellationHeader.Accom, { hotelName: hotelName, pax: pax, dates: dates }) }) }, { children: _jsx(CancellationBody, { children: roomPolicies.map(function (roomPolicy, index) { return (_jsx(CancellationBody.Accom, { roomName: roomPolicy.roomName, policies: roomPolicy.policies }, index)); }) }) })));
|
|
@@ -2,6 +2,30 @@ import React from 'react';
|
|
|
2
2
|
import PolicyAccom from './PolicyAccom/PolicyAccom';
|
|
3
3
|
import PolicyExcursion from './PolicyExcursion';
|
|
4
4
|
import PolicyTransfer from './PolicyTransfer';
|
|
5
|
+
/**
|
|
6
|
+
* CancellationBody is a component that allows the user to display the cancellation body.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* <CancellationBody>
|
|
10
|
+
* <CancellationBody.Accom
|
|
11
|
+
* roomName="Room Name"
|
|
12
|
+
* policies={policies}
|
|
13
|
+
* />
|
|
14
|
+
* <CancellationBody.Excursion
|
|
15
|
+
* name="Excursion Name"
|
|
16
|
+
* date="2024-01-01"
|
|
17
|
+
* pickUpPoint="Pick Up Point"
|
|
18
|
+
* policies={policies}
|
|
19
|
+
* />
|
|
20
|
+
* <CancellationBody.Transfer
|
|
21
|
+
* carName="Car Name"
|
|
22
|
+
* transferData={transferData}
|
|
23
|
+
* />
|
|
24
|
+
* </CancellationBody>
|
|
25
|
+
*
|
|
26
|
+
* @param props - The props for the CancellationBody component.
|
|
27
|
+
* @returns The CancellationBody component.
|
|
28
|
+
*/
|
|
5
29
|
declare function CancellationBody(props: React.PropsWithChildren): import("react/jsx-runtime").JSX.Element;
|
|
6
30
|
declare namespace CancellationBody {
|
|
7
31
|
var Accom: typeof PolicyAccom;
|
|
@@ -13,6 +13,30 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
13
13
|
import PolicyAccom from './PolicyAccom/PolicyAccom';
|
|
14
14
|
import PolicyExcursion from './PolicyExcursion';
|
|
15
15
|
import PolicyTransfer from './PolicyTransfer';
|
|
16
|
+
/**
|
|
17
|
+
* CancellationBody is a component that allows the user to display the cancellation body.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* <CancellationBody>
|
|
21
|
+
* <CancellationBody.Accom
|
|
22
|
+
* roomName="Room Name"
|
|
23
|
+
* policies={policies}
|
|
24
|
+
* />
|
|
25
|
+
* <CancellationBody.Excursion
|
|
26
|
+
* name="Excursion Name"
|
|
27
|
+
* date="2024-01-01"
|
|
28
|
+
* pickUpPoint="Pick Up Point"
|
|
29
|
+
* policies={policies}
|
|
30
|
+
* />
|
|
31
|
+
* <CancellationBody.Transfer
|
|
32
|
+
* carName="Car Name"
|
|
33
|
+
* transferData={transferData}
|
|
34
|
+
* />
|
|
35
|
+
* </CancellationBody>
|
|
36
|
+
*
|
|
37
|
+
* @param props - The props for the CancellationBody component.
|
|
38
|
+
* @returns The CancellationBody component.
|
|
39
|
+
*/
|
|
16
40
|
export default function CancellationBody(props) {
|
|
17
41
|
return _jsx("div", __assign({ className: "cancellation-body" }, props));
|
|
18
42
|
}
|
|
@@ -1,8 +1,38 @@
|
|
|
1
1
|
export interface CancellationExcursionProps {
|
|
2
|
+
/**
|
|
3
|
+
* The name of the cancellation excursion.
|
|
4
|
+
*/
|
|
2
5
|
name: string;
|
|
6
|
+
/**
|
|
7
|
+
* The date of the cancellation excursion.
|
|
8
|
+
*/
|
|
3
9
|
date: string;
|
|
10
|
+
/**
|
|
11
|
+
* The image of the cancellation excursion.
|
|
12
|
+
*/
|
|
4
13
|
image: string;
|
|
14
|
+
/**
|
|
15
|
+
* The pick up point of the cancellation excursion.
|
|
16
|
+
*/
|
|
5
17
|
pickUpPoint: string;
|
|
18
|
+
/**
|
|
19
|
+
* The policies of the cancellation excursion.
|
|
20
|
+
*/
|
|
6
21
|
policies: string;
|
|
7
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* CancellationExcursion is a component that allows the user to display the cancellation excursion.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* <CancellationExcursion
|
|
28
|
+
* name="Excursion Name"
|
|
29
|
+
* date="2024-01-01"
|
|
30
|
+
* image="/images/excursion.png"
|
|
31
|
+
* pickUpPoint="Pick Up Point"
|
|
32
|
+
* policies="Policies"
|
|
33
|
+
* />
|
|
34
|
+
*
|
|
35
|
+
* @param props - The props for the CancellationExcursion component.
|
|
36
|
+
* @returns The CancellationExcursion component.
|
|
37
|
+
*/
|
|
8
38
|
export default function CancellationExcursion(props: CancellationExcursionProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -13,6 +13,21 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
13
13
|
import CancellationBody from './CancellationBody';
|
|
14
14
|
import CancellationHeader from './CancellationHeader';
|
|
15
15
|
import DetailsCancellationPolicy from './TabCancellationPolicy';
|
|
16
|
+
/**
|
|
17
|
+
* CancellationExcursion is a component that allows the user to display the cancellation excursion.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* <CancellationExcursion
|
|
21
|
+
* name="Excursion Name"
|
|
22
|
+
* date="2024-01-01"
|
|
23
|
+
* image="/images/excursion.png"
|
|
24
|
+
* pickUpPoint="Pick Up Point"
|
|
25
|
+
* policies="Policies"
|
|
26
|
+
* />
|
|
27
|
+
*
|
|
28
|
+
* @param props - The props for the CancellationExcursion component.
|
|
29
|
+
* @returns The CancellationExcursion component.
|
|
30
|
+
*/
|
|
16
31
|
export default function CancellationExcursion(props) {
|
|
17
32
|
var name = props.name, date = props.date, image = props.image, pickUpPoint = props.pickUpPoint, policies = props.policies;
|
|
18
33
|
return (_jsx(DetailsCancellationPolicy.Layout, __assign({ title: "Excursion", icon: "map", isOnRequest: false, image: image, header: _jsx(CancellationHeader, { children: _jsx(CancellationHeader.Excursion, { name: name, date: date }) }) }, { children: _jsx(CancellationBody, { children: _jsx(CancellationBody.Excursion, { pickUpPoint: pickUpPoint, policies: policies }) }) })));
|
|
@@ -2,6 +2,29 @@
|
|
|
2
2
|
import HeaderAccom from './HeaderAccom';
|
|
3
3
|
import HeaderExcursion from './HeaderExcursion';
|
|
4
4
|
import HeaderTransfer from './HeaderExcursion/HeaderTransfer';
|
|
5
|
+
/**
|
|
6
|
+
* CancellationHeader is a component that allows the user to display the cancellation header.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* <CancellationHeader>
|
|
10
|
+
* <CancellationHeader.Accom
|
|
11
|
+
* hotelName="Hotel Name"
|
|
12
|
+
* pax="8 pax"
|
|
13
|
+
* dates={['2024-01-01', '2024-01-02']}
|
|
14
|
+
* />
|
|
15
|
+
* <CancellationHeader.Excursion
|
|
16
|
+
* name="Excursion Name"
|
|
17
|
+
* date="2024-01-01"
|
|
18
|
+
* />
|
|
19
|
+
* <CancellationHeader.Transfer
|
|
20
|
+
* carName="Car Name"
|
|
21
|
+
* transferData={transferData}
|
|
22
|
+
* />
|
|
23
|
+
* </CancellationHeader>
|
|
24
|
+
*
|
|
25
|
+
* @param props - The props for the CancellationHeader component.
|
|
26
|
+
* @returns The CancellationHeader component.
|
|
27
|
+
*/
|
|
5
28
|
declare function CancellationHeader(props: React.PropsWithChildren): import("react/jsx-runtime").JSX.Element;
|
|
6
29
|
declare namespace CancellationHeader {
|
|
7
30
|
var Accom: typeof HeaderAccom;
|
|
@@ -13,6 +13,29 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
13
13
|
import HeaderAccom from './HeaderAccom';
|
|
14
14
|
import HeaderExcursion from './HeaderExcursion';
|
|
15
15
|
import HeaderTransfer from './HeaderExcursion/HeaderTransfer';
|
|
16
|
+
/**
|
|
17
|
+
* CancellationHeader is a component that allows the user to display the cancellation header.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* <CancellationHeader>
|
|
21
|
+
* <CancellationHeader.Accom
|
|
22
|
+
* hotelName="Hotel Name"
|
|
23
|
+
* pax="8 pax"
|
|
24
|
+
* dates={['2024-01-01', '2024-01-02']}
|
|
25
|
+
* />
|
|
26
|
+
* <CancellationHeader.Excursion
|
|
27
|
+
* name="Excursion Name"
|
|
28
|
+
* date="2024-01-01"
|
|
29
|
+
* />
|
|
30
|
+
* <CancellationHeader.Transfer
|
|
31
|
+
* carName="Car Name"
|
|
32
|
+
* transferData={transferData}
|
|
33
|
+
* />
|
|
34
|
+
* </CancellationHeader>
|
|
35
|
+
*
|
|
36
|
+
* @param props - The props for the CancellationHeader component.
|
|
37
|
+
* @returns The CancellationHeader component.
|
|
38
|
+
*/
|
|
16
39
|
export default function CancellationHeader(props) {
|
|
17
40
|
return _jsx("div", __assign({ className: "cancellation-header" }, props));
|
|
18
41
|
}
|
|
@@ -1,7 +1,29 @@
|
|
|
1
1
|
import { TransferData } from './HeaderExcursion/HeaderTransfer';
|
|
2
2
|
export interface CancellationTransferProps {
|
|
3
|
+
/**
|
|
4
|
+
* The image of the cancellation transfer.
|
|
5
|
+
*/
|
|
3
6
|
image: string;
|
|
7
|
+
/**
|
|
8
|
+
* The car name of the cancellation transfer.
|
|
9
|
+
*/
|
|
4
10
|
carName: string;
|
|
11
|
+
/**
|
|
12
|
+
* The transfer data of the cancellation transfer.
|
|
13
|
+
*/
|
|
5
14
|
transferData: TransferData[];
|
|
6
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* CancellationTransfer is a component that allows the user to display the cancellation transfer.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* <CancellationTransfer
|
|
21
|
+
* image="/images/transfer.png"
|
|
22
|
+
* carName="Car Name"
|
|
23
|
+
* transferData={transferData}
|
|
24
|
+
* />
|
|
25
|
+
*
|
|
26
|
+
* @param props - The props for the CancellationTransfer component.
|
|
27
|
+
* @returns The CancellationTransfer component.
|
|
28
|
+
*/
|
|
7
29
|
export default function CancellationTransfer(props: CancellationTransferProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -13,6 +13,19 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
13
13
|
import CancellationBody from './CancellationBody';
|
|
14
14
|
import CancellationHeader from './CancellationHeader';
|
|
15
15
|
import DetailsCancellationPolicy from './TabCancellationPolicy';
|
|
16
|
+
/**
|
|
17
|
+
* CancellationTransfer is a component that allows the user to display the cancellation transfer.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* <CancellationTransfer
|
|
21
|
+
* image="/images/transfer.png"
|
|
22
|
+
* carName="Car Name"
|
|
23
|
+
* transferData={transferData}
|
|
24
|
+
* />
|
|
25
|
+
*
|
|
26
|
+
* @param props - The props for the CancellationTransfer component.
|
|
27
|
+
* @returns The CancellationTransfer component.
|
|
28
|
+
*/
|
|
16
29
|
export default function CancellationTransfer(props) {
|
|
17
30
|
var image = props.image, carName = props.carName, transferData = props.transferData;
|
|
18
31
|
return (_jsx(DetailsCancellationPolicy.Layout, __assign({ title: "Transfer", icon: "car", isOnRequest: false, image: image, header: _jsx(CancellationHeader, { children: _jsx(CancellationHeader.Transfer, { data: transferData }) }) }, { children: _jsx(CancellationBody, { children: _jsx(CancellationBody.Transfer, { carName: carName }) }) })));
|
|
@@ -1,6 +1,28 @@
|
|
|
1
1
|
export interface HeaderAccomProps {
|
|
2
|
+
/**
|
|
3
|
+
* The hotel name of the header accommodation.
|
|
4
|
+
*/
|
|
2
5
|
hotelName: string;
|
|
6
|
+
/**
|
|
7
|
+
* The pax of the header accommodation.
|
|
8
|
+
*/
|
|
3
9
|
pax: number | string;
|
|
10
|
+
/**
|
|
11
|
+
* The dates of the header accommodation.
|
|
12
|
+
*/
|
|
4
13
|
dates: string[];
|
|
5
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* HeaderAccom is a component that allows the user to display the header accommodation.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* <HeaderAccom
|
|
20
|
+
* hotelName="Hotel Name"
|
|
21
|
+
* pax="8 pax"
|
|
22
|
+
* dates={['2024-01-01', '2024-01-02']}
|
|
23
|
+
* />
|
|
24
|
+
*
|
|
25
|
+
* @param props - The props for the HeaderAccom component.
|
|
26
|
+
* @returns
|
|
27
|
+
*/
|
|
6
28
|
export default function HeaderAccom(props: HeaderAccomProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -14,6 +14,19 @@ import useStays from '@/src/hooks/useStays';
|
|
|
14
14
|
import { DateDisplay } from '../../molecules/DateDisplay/DateDisplay';
|
|
15
15
|
import { ServiceTitle } from '../../molecules/ServiceTitle/ServiceTitle';
|
|
16
16
|
import TextWithIcon from '../../molecules/TextWithIcon/TextWithIcon';
|
|
17
|
+
/**
|
|
18
|
+
* HeaderAccom is a component that allows the user to display the header accommodation.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* <HeaderAccom
|
|
22
|
+
* hotelName="Hotel Name"
|
|
23
|
+
* pax="8 pax"
|
|
24
|
+
* dates={['2024-01-01', '2024-01-02']}
|
|
25
|
+
* />
|
|
26
|
+
*
|
|
27
|
+
* @param props - The props for the HeaderAccom component.
|
|
28
|
+
* @returns
|
|
29
|
+
*/
|
|
17
30
|
export default function HeaderAccom(props) {
|
|
18
31
|
var hotelName = props.hotelName, pax = props.pax, dates = props.dates;
|
|
19
32
|
var stay = useStays(dates);
|
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
export interface HeaderExcursionProps {
|
|
2
|
+
/**
|
|
3
|
+
* The name of the header excursion.
|
|
4
|
+
*/
|
|
2
5
|
name: string;
|
|
6
|
+
/**
|
|
7
|
+
* The date of the header excursion.
|
|
8
|
+
*/
|
|
3
9
|
date: string;
|
|
4
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* HeaderExcursion is a component that allows the user to display the header excursion.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* <HeaderExcursion
|
|
16
|
+
* name="Excursion Name"
|
|
17
|
+
* date="2024-01-01"
|
|
18
|
+
* />
|
|
19
|
+
*
|
|
20
|
+
* @param props - The props for the HeaderExcursion component.
|
|
21
|
+
* @returns The HeaderExcursion component.
|
|
22
|
+
*/
|
|
5
23
|
export default function HeaderExcursion(props: HeaderExcursionProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { DateDisplay } from '../../molecules/DateDisplay/DateDisplay';
|
|
3
3
|
import { ServiceTitle } from '../../molecules/ServiceTitle/ServiceTitle';
|
|
4
|
+
/**
|
|
5
|
+
* HeaderExcursion is a component that allows the user to display the header excursion.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* <HeaderExcursion
|
|
9
|
+
* name="Excursion Name"
|
|
10
|
+
* date="2024-01-01"
|
|
11
|
+
* />
|
|
12
|
+
*
|
|
13
|
+
* @param props - The props for the HeaderExcursion component.
|
|
14
|
+
* @returns The HeaderExcursion component.
|
|
15
|
+
*/
|
|
4
16
|
export default function HeaderExcursion(props) {
|
|
5
17
|
var name = props.name, date = props.date;
|
|
6
18
|
return (_jsxs("div", { children: [_jsx(ServiceTitle, { title: name, textSize: "sm" }), _jsx(DateDisplay, { dates: [date], arrowSize: "xs", calendarSize: "xs" })] }));
|
|
@@ -2081,6 +2081,13 @@
|
|
|
2081
2081
|
margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));
|
|
2082
2082
|
}
|
|
2083
2083
|
|
|
2084
|
+
|
|
2085
|
+
.policy-accom {
|
|
2086
|
+
.chip__label {
|
|
2087
|
+
column-gap: 1rem;
|
|
2088
|
+
}
|
|
2089
|
+
}
|
|
2090
|
+
|
|
2084
2091
|
.policy-accom__period {
|
|
2085
2092
|
display: inline-flex;
|
|
2086
2093
|
align-items: center;
|
|
@@ -10,6 +10,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import Chip from '@/src/components/atoms/Chip/Chip';
|
|
13
14
|
import { Fragment } from 'react';
|
|
14
15
|
import { Text } from '../../../atoms/Typography/Typography';
|
|
15
16
|
import { DateDisplay } from '../../../molecules/DateDisplay/DateDisplay';
|
|
@@ -17,5 +18,5 @@ import TextWithIcon from '../../../molecules/TextWithIcon/TextWithIcon';
|
|
|
17
18
|
import './PolicyAccom.css';
|
|
18
19
|
export default function PolicyAccom(props) {
|
|
19
20
|
var roomName = props.roomName, policies = props.policies, index = props.index;
|
|
20
|
-
return (_jsxs("div", __assign({ className: "policy-accom" }, { children: [_jsxs("div", __assign({ className: "grid gap-y-1" }, { children: [_jsxs(TextWithIcon, __assign({ icon: "accom" }, { children: ["Room ", index !== undefined && index + 1] })), _jsx(Text, __assign({ size: "sm" }, { children: roomName }))] })), policies.map(function (policy, index) { return (_jsxs(Fragment, { children: [_jsxs(
|
|
21
|
+
return (_jsxs("div", __assign({ className: "policy-accom" }, { children: [_jsxs("div", __assign({ className: "grid gap-y-1" }, { children: [_jsxs(TextWithIcon, __assign({ icon: "accom" }, { children: ["Room ", index !== undefined && index + 1] })), _jsx(Text, __assign({ size: "sm" }, { children: roomName }))] })), policies.map(function (policy, index) { return (_jsxs(Fragment, { children: [_jsxs(Chip, __assign({ type: "outline", color: "brand", isBlackText: true }, { children: ["Policy period applies", ' ', _jsx(DateDisplay, { dates: [policy.ValidFrom, policy.ValidTo], textSize: "xs" })] })), _jsxs("div", __assign({ className: "space-y-2" }, { children: [_jsxs(Text, __assign({ variant: "bold", size: "xs", leading: "4" }, { children: [policy.Value, " % of total price"] })), _jsx(Text, __assign({ size: "xs", leading: "4" }, { children: policy.Description }))] }))] }, "policy-".concat(index))); })] })));
|
|
21
22
|
}
|
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
export interface PolicyExcursionProps {
|
|
2
|
+
/**
|
|
3
|
+
* The pick up point of the policy excursion.
|
|
4
|
+
*/
|
|
2
5
|
pickUpPoint: string;
|
|
6
|
+
/**
|
|
7
|
+
* The policies of the policy excursion.
|
|
8
|
+
*/
|
|
3
9
|
policies: string;
|
|
4
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* PolicyExcursion is a component that allows the user to display the policy excursion.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* <PolicyExcursion
|
|
16
|
+
* pickUpPoint="Pick Up Point"
|
|
17
|
+
* policies="Policies"
|
|
18
|
+
* />
|
|
19
|
+
*
|
|
20
|
+
* @param props - The props for the PolicyExcursion component.
|
|
21
|
+
* @returns
|
|
22
|
+
*/
|
|
5
23
|
export default function PolicyExcursion(props: PolicyExcursionProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -11,6 +11,18 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { Text } from '../../atoms/Typography/Typography';
|
|
14
|
+
/**
|
|
15
|
+
* PolicyExcursion is a component that allows the user to display the policy excursion.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* <PolicyExcursion
|
|
19
|
+
* pickUpPoint="Pick Up Point"
|
|
20
|
+
* policies="Policies"
|
|
21
|
+
* />
|
|
22
|
+
*
|
|
23
|
+
* @param props - The props for the PolicyExcursion component.
|
|
24
|
+
* @returns
|
|
25
|
+
*/
|
|
14
26
|
export default function PolicyExcursion(props) {
|
|
15
27
|
var pickUpPoint = props.pickUpPoint, policies = props.policies;
|
|
16
28
|
return (_jsxs("div", __assign({ className: "policy-excursion space-y-6" }, { children: [_jsxs("div", __assign({ className: "space-y-2" }, { children: [_jsx(Text, __assign({ variant: "bold", size: "xs", leading: "4" }, { children: "Pick-up point:" })), _jsx(Text, __assign({ size: "xs", leading: "4" }, { children: pickUpPoint }))] })), _jsx(Text, __assign({ size: "xs", leading: "4" }, { children: policies }))] })));
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
export interface PolicyTransferProps {
|
|
2
2
|
carName: string;
|
|
3
3
|
}
|
|
4
|
+
/**
|
|
5
|
+
* PolicyTransfer is a component that allows the user to display the policy transfer.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* <PolicyTransfer
|
|
9
|
+
* carName="Car Name"
|
|
10
|
+
* />
|
|
11
|
+
*
|
|
12
|
+
* @param props - The props for the PolicyTransfer component.
|
|
13
|
+
* @returns
|
|
14
|
+
*/
|
|
4
15
|
export default function PolicyTransfer(props: PolicyTransferProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -38,6 +38,17 @@ var policies = [
|
|
|
38
38
|
policy: '100% applicable fee claimed to the Operator',
|
|
39
39
|
},
|
|
40
40
|
];
|
|
41
|
+
/**
|
|
42
|
+
* PolicyTransfer is a component that allows the user to display the policy transfer.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* <PolicyTransfer
|
|
46
|
+
* carName="Car Name"
|
|
47
|
+
* />
|
|
48
|
+
*
|
|
49
|
+
* @param props - The props for the PolicyTransfer component.
|
|
50
|
+
* @returns
|
|
51
|
+
*/
|
|
41
52
|
export default function PolicyTransfer(props) {
|
|
42
53
|
var carName = props.carName;
|
|
43
54
|
return (_jsxs("div", __assign({ className: "policy-excursion" }, { children: [_jsx(TextWithIcon, __assign({ icon: "car", textVariant: "bold", iconSize: "md", textSize: "md" }, { children: carName })), _jsx("div", __assign({ className: "grid grid-cols-2 xl:grid-cols-3 gap-x-4" }, { children: policies.map(function (policy, index) { return (_jsxs("div", __assign({ className: "mt-4" }, { children: [_jsx(Text, __assign({ variant: "medium", size: "sm", leading: "4" }, { children: policy.title })), _jsx("ul", __assign({ className: "pl-8" }, { children: _jsx("li", __assign({ className: "list-disc" }, { children: _jsx(Text, __assign({ size: "sm", leading: "4" }, { children: policy.policy })) })) }))] }), "policy-".concat(index))); }) }))] })));
|