mautourco-components 0.2.21 → 0.2.23
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/Icon/icons/PlusCircleIcon.js +1 -1
- package/dist/components/atoms/Inputs/Input/Input.d.ts +1 -1
- package/dist/components/molecules/AddItemButton/AddItemButton.css +2088 -0
- package/dist/components/molecules/AddItemButton/AddItemButton.d.ts +7 -0
- package/dist/components/molecules/AddItemButton/AddItemButton.js +19 -0
- 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/Calendar/DateTime.d.ts +5 -5
- package/dist/components/molecules/Calendar/DateTime.js +48 -37
- 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/molecules/ServiceSelector/ServiceSelector.d.ts +3 -0
- package/dist/components/molecules/ServiceSelector/ServiceSelector.js +23 -12
- package/dist/components/organisms/Booking/BookingPaxList.d.ts +64 -0
- package/dist/components/organisms/Booking/BookingPaxList.js +19 -0
- package/dist/components/organisms/BookingAddItem/AddItemNewService.d.ts +12 -0
- package/dist/components/organisms/BookingAddItem/AddItemNewService.js +48 -0
- package/dist/components/organisms/BookingAddItem/AddItemSelector.d.ts +9 -0
- package/dist/components/organisms/BookingAddItem/AddItemSelector.js +23 -0
- package/dist/components/organisms/BookingAddItem/BookingAddItem.d.ts +16 -0
- package/dist/components/organisms/BookingAddItem/BookingAddItem.js +66 -0
- package/dist/components/organisms/BookingAddItem/index.d.ts +3 -0
- package/dist/components/organisms/BookingAddItem/index.js +3 -0
- package/dist/components/organisms/DateTimePicker/DateTimePicker.js +11 -7
- 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/PaxSelector/PaxSelector.d.ts +1 -0
- package/dist/components/organisms/PaxSelector/PaxSelector.js +50 -28
- 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/components/ui/popover.js +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.js +4 -2
- package/dist/styles/components/checkbox.css +16 -9
- package/dist/styles/components/molecule/calendarInput.css +3 -4
- package/dist/styles/components/molecule/service-selector.css +70 -21
- package/package.json +1 -2
- package/src/components/atoms/Checkbox/Checkbox.tsx +38 -23
- package/src/components/atoms/Icon/icons/PlusCircleIcon.tsx +2 -2
- package/src/components/atoms/Inputs/Input/Input.tsx +1 -1
- package/src/components/molecules/AddItemButton/AddItemButton.css +5 -0
- package/src/components/molecules/AddItemButton/AddItemButton.tsx +18 -0
- 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/Calendar/DateTime.tsx +69 -53
- package/src/components/molecules/DialogContentPolicy/DialogCancellationList.tsx +32 -12
- package/src/components/molecules/DialogContentPolicy/DialogContentPolicy.tsx +27 -11
- package/src/components/molecules/ServiceSelector/ServiceSelector.tsx +91 -83
- package/src/components/organisms/Booking/BookingPaxList.tsx +64 -0
- package/src/components/organisms/BookingAddItem/AddItemNewService.tsx +95 -0
- package/src/components/organisms/BookingAddItem/AddItemSelector.tsx +43 -0
- package/src/components/organisms/BookingAddItem/BookingAddItem.tsx +120 -0
- package/src/components/organisms/BookingAddItem/index.ts +3 -0
- package/src/components/organisms/DateTimePicker/DateTimePicker.tsx +13 -7
- 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/PaxSelector/PaxSelector.tsx +305 -193
- 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/components/ui/popover.tsx +2 -4
- package/src/styles/components/checkbox.css +16 -9
- package/src/styles/components/molecule/calendarInput.css +12 -13
- package/src/styles/components/molecule/service-selector.css +71 -23
- 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
|
@@ -5,14 +5,39 @@ import { Policy } from './PolicyAccom/PolicyAccom';
|
|
|
5
5
|
import DetailsCancellationPolicy from './TabCancellationPolicy';
|
|
6
6
|
|
|
7
7
|
export interface CancellationAccomProps extends HeaderAccomProps {
|
|
8
|
+
/**
|
|
9
|
+
* The image of the cancellation accommodation.
|
|
10
|
+
*/
|
|
8
11
|
image: string;
|
|
12
|
+
/**
|
|
13
|
+
* Whether the cancellation accommodation is on request.
|
|
14
|
+
*/
|
|
9
15
|
isOnRequest?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* The room policies of the cancellation accommodation.
|
|
18
|
+
*/
|
|
10
19
|
roomPolicies: Array<{
|
|
11
20
|
roomName: string;
|
|
12
21
|
policies: Policy[];
|
|
13
22
|
}>;
|
|
14
23
|
}
|
|
15
24
|
|
|
25
|
+
/**
|
|
26
|
+
* CancellationAccom is a component that allows the user to display the cancellation accommodation.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* <CancellationAccom
|
|
30
|
+
* hotelName="Hotel Name"
|
|
31
|
+
* pax="8 pax"
|
|
32
|
+
* dates={['2024-01-01', '2024-01-02']}
|
|
33
|
+
* image="/images/accom.png"
|
|
34
|
+
* roomPolicies={roomPolicies}
|
|
35
|
+
* isOnRequest={false}
|
|
36
|
+
* />
|
|
37
|
+
*
|
|
38
|
+
* @param props - The props for the CancellationAccom component.
|
|
39
|
+
* @returns The CancellationAccom component.
|
|
40
|
+
*/
|
|
16
41
|
export default function CancellationAccom(props: CancellationAccomProps) {
|
|
17
42
|
const { hotelName, pax, dates, image, roomPolicies, isOnRequest } = props;
|
|
18
43
|
return (
|
|
@@ -3,6 +3,30 @@ import PolicyAccom from './PolicyAccom/PolicyAccom';
|
|
|
3
3
|
import PolicyExcursion from './PolicyExcursion';
|
|
4
4
|
import PolicyTransfer from './PolicyTransfer';
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* CancellationBody is a component that allows the user to display the cancellation body.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* <CancellationBody>
|
|
11
|
+
* <CancellationBody.Accom
|
|
12
|
+
* roomName="Room Name"
|
|
13
|
+
* policies={policies}
|
|
14
|
+
* />
|
|
15
|
+
* <CancellationBody.Excursion
|
|
16
|
+
* name="Excursion Name"
|
|
17
|
+
* date="2024-01-01"
|
|
18
|
+
* pickUpPoint="Pick Up Point"
|
|
19
|
+
* policies={policies}
|
|
20
|
+
* />
|
|
21
|
+
* <CancellationBody.Transfer
|
|
22
|
+
* carName="Car Name"
|
|
23
|
+
* transferData={transferData}
|
|
24
|
+
* />
|
|
25
|
+
* </CancellationBody>
|
|
26
|
+
*
|
|
27
|
+
* @param props - The props for the CancellationBody component.
|
|
28
|
+
* @returns The CancellationBody component.
|
|
29
|
+
*/
|
|
6
30
|
export default function CancellationBody(props: React.PropsWithChildren) {
|
|
7
31
|
return <div className="cancellation-body" {...props} />;
|
|
8
32
|
}
|
|
@@ -3,13 +3,43 @@ import CancellationHeader from './CancellationHeader';
|
|
|
3
3
|
import DetailsCancellationPolicy from './TabCancellationPolicy';
|
|
4
4
|
|
|
5
5
|
export interface CancellationExcursionProps {
|
|
6
|
+
/**
|
|
7
|
+
* The name of the cancellation excursion.
|
|
8
|
+
*/
|
|
6
9
|
name: string;
|
|
10
|
+
/**
|
|
11
|
+
* The date of the cancellation excursion.
|
|
12
|
+
*/
|
|
7
13
|
date: string;
|
|
14
|
+
/**
|
|
15
|
+
* The image of the cancellation excursion.
|
|
16
|
+
*/
|
|
8
17
|
image: string;
|
|
18
|
+
/**
|
|
19
|
+
* The pick up point of the cancellation excursion.
|
|
20
|
+
*/
|
|
9
21
|
pickUpPoint: string;
|
|
22
|
+
/**
|
|
23
|
+
* The policies of the cancellation excursion.
|
|
24
|
+
*/
|
|
10
25
|
policies: string;
|
|
11
26
|
}
|
|
12
27
|
|
|
28
|
+
/**
|
|
29
|
+
* CancellationExcursion is a component that allows the user to display the cancellation excursion.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* <CancellationExcursion
|
|
33
|
+
* name="Excursion Name"
|
|
34
|
+
* date="2024-01-01"
|
|
35
|
+
* image="/images/excursion.png"
|
|
36
|
+
* pickUpPoint="Pick Up Point"
|
|
37
|
+
* policies="Policies"
|
|
38
|
+
* />
|
|
39
|
+
*
|
|
40
|
+
* @param props - The props for the CancellationExcursion component.
|
|
41
|
+
* @returns The CancellationExcursion component.
|
|
42
|
+
*/
|
|
13
43
|
export default function CancellationExcursion(props: CancellationExcursionProps) {
|
|
14
44
|
const { name, date, image, pickUpPoint, policies } = props;
|
|
15
45
|
return (
|
|
@@ -2,6 +2,29 @@ import HeaderAccom from './HeaderAccom';
|
|
|
2
2
|
import HeaderExcursion from './HeaderExcursion';
|
|
3
3
|
import HeaderTransfer from './HeaderExcursion/HeaderTransfer';
|
|
4
4
|
|
|
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
|
export default function CancellationHeader(props: React.PropsWithChildren) {
|
|
6
29
|
return <div className="cancellation-header" {...props} />;
|
|
7
30
|
}
|
|
@@ -4,10 +4,32 @@ import { TransferData } from './HeaderExcursion/HeaderTransfer';
|
|
|
4
4
|
import DetailsCancellationPolicy from './TabCancellationPolicy';
|
|
5
5
|
|
|
6
6
|
export interface CancellationTransferProps {
|
|
7
|
+
/**
|
|
8
|
+
* The image of the cancellation transfer.
|
|
9
|
+
*/
|
|
7
10
|
image: string;
|
|
11
|
+
/**
|
|
12
|
+
* The car name of the cancellation transfer.
|
|
13
|
+
*/
|
|
8
14
|
carName: string;
|
|
15
|
+
/**
|
|
16
|
+
* The transfer data of the cancellation transfer.
|
|
17
|
+
*/
|
|
9
18
|
transferData: TransferData[];
|
|
10
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* CancellationTransfer is a component that allows the user to display the cancellation transfer.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* <CancellationTransfer
|
|
25
|
+
* image="/images/transfer.png"
|
|
26
|
+
* carName="Car Name"
|
|
27
|
+
* transferData={transferData}
|
|
28
|
+
* />
|
|
29
|
+
*
|
|
30
|
+
* @param props - The props for the CancellationTransfer component.
|
|
31
|
+
* @returns The CancellationTransfer component.
|
|
32
|
+
*/
|
|
11
33
|
export default function CancellationTransfer(props: CancellationTransferProps) {
|
|
12
34
|
const { image, carName, transferData } = props;
|
|
13
35
|
return (
|
|
@@ -4,11 +4,33 @@ import { ServiceTitle } from '../../molecules/ServiceTitle/ServiceTitle';
|
|
|
4
4
|
import TextWithIcon from '../../molecules/TextWithIcon/TextWithIcon';
|
|
5
5
|
|
|
6
6
|
export interface HeaderAccomProps {
|
|
7
|
+
/**
|
|
8
|
+
* The hotel name of the header accommodation.
|
|
9
|
+
*/
|
|
7
10
|
hotelName: string;
|
|
11
|
+
/**
|
|
12
|
+
* The pax of the header accommodation.
|
|
13
|
+
*/
|
|
8
14
|
pax: number | string;
|
|
15
|
+
/**
|
|
16
|
+
* The dates of the header accommodation.
|
|
17
|
+
*/
|
|
9
18
|
dates: string[];
|
|
10
19
|
}
|
|
11
20
|
|
|
21
|
+
/**
|
|
22
|
+
* HeaderAccom is a component that allows the user to display the header accommodation.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* <HeaderAccom
|
|
26
|
+
* hotelName="Hotel Name"
|
|
27
|
+
* pax="8 pax"
|
|
28
|
+
* dates={['2024-01-01', '2024-01-02']}
|
|
29
|
+
* />
|
|
30
|
+
*
|
|
31
|
+
* @param props - The props for the HeaderAccom component.
|
|
32
|
+
* @returns
|
|
33
|
+
*/
|
|
12
34
|
export default function HeaderAccom(props: HeaderAccomProps) {
|
|
13
35
|
const { hotelName, pax, dates } = props;
|
|
14
36
|
|
|
@@ -2,10 +2,28 @@ import { DateDisplay } from '../../molecules/DateDisplay/DateDisplay';
|
|
|
2
2
|
import { ServiceTitle } from '../../molecules/ServiceTitle/ServiceTitle';
|
|
3
3
|
|
|
4
4
|
export interface HeaderExcursionProps {
|
|
5
|
+
/**
|
|
6
|
+
* The name of the header excursion.
|
|
7
|
+
*/
|
|
5
8
|
name: string;
|
|
9
|
+
/**
|
|
10
|
+
* The date of the header excursion.
|
|
11
|
+
*/
|
|
6
12
|
date: string;
|
|
7
13
|
}
|
|
8
14
|
|
|
15
|
+
/**
|
|
16
|
+
* HeaderExcursion is a component that allows the user to display the header excursion.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* <HeaderExcursion
|
|
20
|
+
* name="Excursion Name"
|
|
21
|
+
* date="2024-01-01"
|
|
22
|
+
* />
|
|
23
|
+
*
|
|
24
|
+
* @param props - The props for the HeaderExcursion component.
|
|
25
|
+
* @returns The HeaderExcursion component.
|
|
26
|
+
*/
|
|
9
27
|
export default function HeaderExcursion(props: HeaderExcursionProps) {
|
|
10
28
|
const { name, date } = props;
|
|
11
29
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import Chip from '@/src/components/atoms/Chip/Chip';
|
|
1
2
|
import { Fragment } from 'react';
|
|
2
3
|
import { Text } from '../../../atoms/Typography/Typography';
|
|
3
4
|
import { DateDisplay } from '../../../molecules/DateDisplay/DateDisplay';
|
|
@@ -28,10 +29,10 @@ export default function PolicyAccom(props: PolicyAccomProps) {
|
|
|
28
29
|
</div>
|
|
29
30
|
{policies.map((policy, index) => (
|
|
30
31
|
<Fragment key={`policy-${index}`}>
|
|
31
|
-
<
|
|
32
|
+
<Chip type="outline" color="brand" isBlackText>
|
|
32
33
|
Policy period applies{' '}
|
|
33
34
|
<DateDisplay dates={[policy.ValidFrom, policy.ValidTo]} textSize="xs" />
|
|
34
|
-
</
|
|
35
|
+
</Chip>
|
|
35
36
|
<div className="space-y-2">
|
|
36
37
|
<Text variant="bold" size="xs" leading="4">
|
|
37
38
|
{policy.Value} % of total price
|
|
@@ -1,10 +1,28 @@
|
|
|
1
1
|
import { Text } from '../../atoms/Typography/Typography';
|
|
2
2
|
|
|
3
3
|
export interface PolicyExcursionProps {
|
|
4
|
+
/**
|
|
5
|
+
* The pick up point of the policy excursion.
|
|
6
|
+
*/
|
|
4
7
|
pickUpPoint: string;
|
|
8
|
+
/**
|
|
9
|
+
* The policies of the policy excursion.
|
|
10
|
+
*/
|
|
5
11
|
policies: string;
|
|
6
12
|
}
|
|
7
13
|
|
|
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
|
+
*/
|
|
8
26
|
export default function PolicyExcursion(props: PolicyExcursionProps) {
|
|
9
27
|
const { pickUpPoint, policies } = props;
|
|
10
28
|
|
|
@@ -33,6 +33,17 @@ const policies = [
|
|
|
33
33
|
},
|
|
34
34
|
];
|
|
35
35
|
|
|
36
|
+
/**
|
|
37
|
+
* PolicyTransfer is a component that allows the user to display the policy transfer.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* <PolicyTransfer
|
|
41
|
+
* carName="Car Name"
|
|
42
|
+
* />
|
|
43
|
+
*
|
|
44
|
+
* @param props - The props for the PolicyTransfer component.
|
|
45
|
+
* @returns
|
|
46
|
+
*/
|
|
36
47
|
export default function PolicyTransfer(props: PolicyTransferProps) {
|
|
37
48
|
const { carName } = props;
|
|
38
49
|
|
|
@@ -3,6 +3,35 @@ import CancellationExcursion from './CancellationExcursion';
|
|
|
3
3
|
import CancellationTransfer from './CancellationTransfer';
|
|
4
4
|
import TabCancellationPolicyLayout from './TabCancellationPolicyLayout/TabCancellationPolicyLayout';
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* TabCancellationPolicy is a component that allows the user to display the tab cancellation policy.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* <TabCancellationPolicy>
|
|
11
|
+
* <TabCancellationPolicy.Accom
|
|
12
|
+
* hotelName="Hotel Name"
|
|
13
|
+
* pax="8 pax"
|
|
14
|
+
* dates={['2024-01-01', '2024-01-02']}
|
|
15
|
+
* image="/images/accom.png"
|
|
16
|
+
* roomPolicies={roomPolicies}
|
|
17
|
+
* isOnRequest={false}
|
|
18
|
+
* />
|
|
19
|
+
* <TabCancellationPolicy.Excursion
|
|
20
|
+
* name="Excursion Name"
|
|
21
|
+
* date="2024-01-01"
|
|
22
|
+
* image="/images/excursion.png"
|
|
23
|
+
* pickUpPoint="Pick Up Point"
|
|
24
|
+
* policies="Policies"
|
|
25
|
+
* />
|
|
26
|
+
* <TabCancellationPolicy.Transfer
|
|
27
|
+
* carName="Car Name"
|
|
28
|
+
* transferData={transferData}
|
|
29
|
+
* />
|
|
30
|
+
* </TabCancellationPolicy>
|
|
31
|
+
*
|
|
32
|
+
* @param props - The props for the TabCancellationPolicy component.
|
|
33
|
+
* @returns The TabCancellationPolicy component.
|
|
34
|
+
*/
|
|
6
35
|
export default function TabCancellationPolicy(props: React.PropsWithChildren) {
|
|
7
36
|
return <div className="tab-cancellation-policy" {...props} />;
|
|
8
37
|
}
|
|
@@ -3,9 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
|
|
4
4
|
import { cn } from '../../lib/utils';
|
|
5
5
|
|
|
6
|
-
function Popover({
|
|
7
|
-
...props
|
|
8
|
-
}: React.ComponentProps<typeof PopoverPrimitive.Root>) {
|
|
6
|
+
function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>) {
|
|
9
7
|
return <PopoverPrimitive.Root data-slot="popover" {...props} />;
|
|
10
8
|
}
|
|
11
9
|
|
|
@@ -28,7 +26,7 @@ function PopoverContent({
|
|
|
28
26
|
align={align}
|
|
29
27
|
sideOffset={sideOffset}
|
|
30
28
|
className={cn(
|
|
31
|
-
'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2
|
|
29
|
+
'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden border-[var(--color-elevation-state-hover-subtle)] z-[99999]',
|
|
32
30
|
className
|
|
33
31
|
)}
|
|
34
32
|
{...props}
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
.checkbox-container {
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
align-items: center;
|
|
5
|
-
width:
|
|
5
|
+
width: auto;
|
|
6
|
+
min-height: 33px;
|
|
6
7
|
}
|
|
7
8
|
|
|
8
9
|
.checkbox-input {
|
|
@@ -18,13 +19,17 @@
|
|
|
18
19
|
.checkbox-label {
|
|
19
20
|
display: flex;
|
|
20
21
|
align-items: center;
|
|
21
|
-
column-gap: var(
|
|
22
|
+
column-gap: var(
|
|
23
|
+
--checkbox-spacing-inline-gap,
|
|
24
|
+
var(--multiselect-spacing-option-icon-gap, 0.625rem)
|
|
25
|
+
);
|
|
22
26
|
cursor: pointer;
|
|
23
27
|
user-select: none;
|
|
24
28
|
width: 100%;
|
|
25
|
-
padding: var(--checkbox-spacing-label-padding, 0.5rem 0.75rem);
|
|
29
|
+
/* padding: var(--checkbox-spacing-label-padding, 0.5rem 0.75rem); */
|
|
26
30
|
border-radius: var(--checkbox-border-radius, 0.375rem);
|
|
27
|
-
transition: all var(--checkbox-transition-duration, 0.2s)
|
|
31
|
+
transition: all var(--checkbox-transition-duration, 0.2s)
|
|
32
|
+
var(--checkbox-transition-timing, ease-in-out);
|
|
28
33
|
}
|
|
29
34
|
|
|
30
35
|
.checkbox-box {
|
|
@@ -35,12 +40,13 @@
|
|
|
35
40
|
border-radius: var(--checkbox-size-box-border-radius, 0.125rem);
|
|
36
41
|
background-color: var(--color-white);
|
|
37
42
|
opacity: var(--opacity-opacity-100);
|
|
38
|
-
top: var(--checkbox-position-top, 0.125rem);
|
|
39
|
-
left: var(--checkbox-position-left, 0.125rem);
|
|
43
|
+
/* top: var(--checkbox-position-top, 0.125rem);
|
|
44
|
+
left: var(--checkbox-position-left, 0.125rem); */
|
|
40
45
|
display: flex;
|
|
41
46
|
align-items: center;
|
|
42
47
|
justify-content: center;
|
|
43
|
-
transition: all var(--checkbox-transition-duration, 0.2s)
|
|
48
|
+
transition: all var(--checkbox-transition-duration, 0.2s)
|
|
49
|
+
var(--checkbox-transition-timing, ease-in-out);
|
|
44
50
|
flex-shrink: 0;
|
|
45
51
|
}
|
|
46
52
|
|
|
@@ -50,7 +56,8 @@
|
|
|
50
56
|
font-size: var(--checkbox-typography-fontSize, 0.875rem);
|
|
51
57
|
line-height: var(--checkbox-typography-lineHeight, 1.25rem);
|
|
52
58
|
color: var(--color-gray-900);
|
|
53
|
-
transition: color var(--checkbox-transition-duration, 0.2s)
|
|
59
|
+
transition: color var(--checkbox-transition-duration, 0.2s)
|
|
60
|
+
var(--checkbox-transition-timing, ease-in-out);
|
|
54
61
|
}
|
|
55
62
|
|
|
56
63
|
.checkbox-leading {
|
|
@@ -77,7 +84,7 @@
|
|
|
77
84
|
|
|
78
85
|
.checkbox--checked .checkbox-box {
|
|
79
86
|
background-color: var(--color-transparent);
|
|
80
|
-
border-color: var(--
|
|
87
|
+
border-color: var(--color-atoll-green-800);
|
|
81
88
|
}
|
|
82
89
|
|
|
83
90
|
.checkbox--checked .checkbox-label {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.calendar-input {
|
|
2
|
-
@apply w-full h-
|
|
2
|
+
@apply w-full h-12 overflow-hidden p-0 bg-white border border-[var(--color-tuna-500)] flex items-center gap-2 rounded-xl;
|
|
3
3
|
min-width: 0;
|
|
4
4
|
}
|
|
5
5
|
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.calendar-input__icon-button.calendar-input__icon-button--left {
|
|
28
|
-
|
|
28
|
+
@apply justify-end w-fit pl-4;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
.calendar-input__field {
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
/* Ensure label and icon remain visible when wrapper is set to active via data-state */
|
|
65
|
-
.calendar-input-wrapper[data-state=
|
|
66
|
-
.calendar-input-wrapper[data-state=
|
|
65
|
+
.calendar-input-wrapper[data-state='active'] .calendar-input__label,
|
|
66
|
+
.calendar-input-wrapper[data-state='active'] .calendar-input__icon-button {
|
|
67
67
|
@apply visible opacity-100;
|
|
68
68
|
}
|
|
69
69
|
|
|
@@ -80,17 +80,17 @@
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
.calendar-input--default .calendar-input__icon-button--full-bg {
|
|
83
|
-
@apply bg-[var(--color-atoll-green-800)]
|
|
83
|
+
@apply bg-[var(--color-atoll-green-800)];
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
/* Active state (focused) */
|
|
87
87
|
.calendar-input--active {
|
|
88
|
-
@apply border-[var(--color-neutral-800)]
|
|
88
|
+
@apply border-[var(--color-neutral-800)];
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
/* Typing state */
|
|
92
92
|
.calendar-input--typing {
|
|
93
|
-
@apply border-[var(--color-neutral-800)]
|
|
93
|
+
@apply border-[var(--color-neutral-800)];
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
/* Success state */
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
.calendar-input--success .calendar-input__field {
|
|
102
|
-
@apply text-[var(--color-green-700)]
|
|
102
|
+
@apply text-[var(--color-green-700)];
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
.calendar-input--success .calendar-input__icon-button--full-bg {
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
|
|
130
130
|
/* Disabled state */
|
|
131
131
|
.calendar-input--disabled {
|
|
132
|
-
@apply border-[var(--color-neutral-400)] bg-[var(--color-surface-50)]
|
|
132
|
+
@apply border-[var(--color-neutral-400)] bg-[var(--color-surface-50)];
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
.calendar-input--disabled .calendar-input__field {
|
|
@@ -137,11 +137,11 @@
|
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
.calendar-input--disabled .calendar-input__icon-button {
|
|
140
|
-
@apply !bg-none !text-[var(--color-tuna-400)]
|
|
140
|
+
@apply !bg-none !text-[var(--color-tuna-400)];
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
.calendar-input--disabled .calendar-input__icon-button--full-bg {
|
|
144
|
-
@apply !bg-[var(--color-gray-200)] !text-[var(--color-tuna-400)]
|
|
144
|
+
@apply !bg-[var(--color-gray-200)] !text-[var(--color-tuna-400)];
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
/* Responsive design */
|
|
@@ -153,5 +153,4 @@
|
|
|
153
153
|
.calendar-input__input-wrapper {
|
|
154
154
|
@apply px-3 py-2;
|
|
155
155
|
}
|
|
156
|
-
|
|
157
|
-
}
|
|
156
|
+
}
|