mautourco-components 0.2.18 → 0.2.20

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.
Files changed (185) hide show
  1. package/dist/components/atoms/Icon/icons/BookingIcon.d.ts +4 -0
  2. package/dist/components/atoms/Icon/icons/BookingIcon.js +36 -0
  3. package/dist/components/atoms/Icon/icons/BusIcon.js +1 -1
  4. package/dist/components/atoms/Icon/icons/CarFront.d.ts +4 -0
  5. package/dist/components/atoms/Icon/icons/CarFront.js +36 -0
  6. package/dist/components/atoms/Icon/icons/CatamaranIcon.d.ts +4 -0
  7. package/dist/components/atoms/Icon/icons/CatamaranIcon.js +36 -0
  8. package/dist/components/atoms/Icon/icons/ClockIcon.d.ts +4 -0
  9. package/dist/components/atoms/Icon/icons/ClockIcon.js +36 -0
  10. package/dist/components/atoms/Icon/icons/CloseCircleIcon.d.ts +4 -0
  11. package/dist/components/atoms/Icon/icons/CloseCircleIcon.js +36 -0
  12. package/dist/components/atoms/Icon/icons/Land.d.ts +4 -0
  13. package/dist/components/atoms/Icon/icons/Land.js +36 -0
  14. package/dist/components/atoms/Icon/icons/MapIcon.js +1 -1
  15. package/dist/components/atoms/Icon/icons/PlusCircleIcon.js +1 -1
  16. package/dist/components/atoms/Icon/icons/SeaIcon.d.ts +4 -0
  17. package/dist/components/atoms/Icon/icons/SeaIcon.js +36 -0
  18. package/dist/components/atoms/Icon/icons/registry.d.ts +7 -0
  19. package/dist/components/atoms/Icon/icons/registry.js +14 -0
  20. package/dist/components/atoms/Inputs/Input/Input.d.ts +2 -1
  21. package/dist/components/atoms/Inputs/Input/Input.js +1 -1
  22. package/dist/components/atoms/Inputs/Textarea/Textarea.d.ts +3 -1
  23. package/dist/components/atoms/Inputs/Textarea/Textarea.js +7 -5
  24. package/dist/components/molecules/BookingPax/BookingPax.d.ts +7 -0
  25. package/dist/components/molecules/BookingPax/BookingPax.js +21 -0
  26. package/dist/components/molecules/BookingPax/BookingPaxAccom.d.ts +22 -0
  27. package/dist/components/molecules/BookingPax/BookingPaxAccom.js +61 -0
  28. package/dist/components/molecules/BookingPax/BookingPaxClient/BookingPaxClient.css +2090 -0
  29. package/dist/components/molecules/BookingPax/BookingPaxClient/BookingPaxClient.d.ts +31 -0
  30. package/dist/components/molecules/BookingPax/BookingPaxClient/BookingPaxClient.js +96 -0
  31. package/dist/components/molecules/BookingPax/BookingPaxExcursion.d.ts +14 -0
  32. package/dist/components/molecules/BookingPax/BookingPaxExcursion.js +31 -0
  33. package/dist/components/molecules/BookingPax/BookingPaxHeader.d.ts +16 -0
  34. package/dist/components/molecules/BookingPax/BookingPaxHeader.js +28 -0
  35. package/dist/components/molecules/BookingPax/BookingPaxLayout/BookingPaxLayout.css +2103 -0
  36. package/dist/components/molecules/BookingPax/BookingPaxLayout/BookingPaxLayout.d.ts +11 -0
  37. package/dist/components/molecules/BookingPax/BookingPaxLayout/BookingPaxLayout.js +19 -0
  38. package/dist/components/molecules/BookingPax/BookingPaxRemarks.d.ts +5 -0
  39. package/dist/components/molecules/BookingPax/BookingPaxRemarks.js +37 -0
  40. package/dist/components/molecules/BookingPax/BookingPaxTransfer.d.ts +18 -0
  41. package/dist/components/molecules/BookingPax/BookingPaxTransfer.js +40 -0
  42. package/dist/components/molecules/BookingPax/index.d.ts +5 -0
  43. package/dist/components/molecules/BookingPax/index.js +1 -0
  44. package/dist/components/molecules/BookingResume/BookingResume.d.ts +9 -0
  45. package/dist/components/molecules/BookingResume/BookingResume.js +25 -0
  46. package/dist/components/molecules/BookingResume/BookingResumeLayout/BookingResumeLayout.css +2107 -0
  47. package/dist/components/molecules/BookingResume/BookingResumeLayout/BookingResumeLayout.d.ts +11 -0
  48. package/dist/components/molecules/BookingResume/BookingResumeLayout/BookingResumeLayout.js +19 -0
  49. package/dist/components/molecules/BookingResume/ResumeAccom/ResumeAccom.css +2094 -0
  50. package/dist/components/molecules/BookingResume/ResumeAccom/ResumeAccom.d.ts +13 -0
  51. package/dist/components/molecules/BookingResume/ResumeAccom/ResumeAccom.js +26 -0
  52. package/dist/components/molecules/BookingResume/ResumeExcursion/ResumeExcursion.css +2082 -0
  53. package/dist/components/molecules/BookingResume/ResumeExcursion/ResumeExcursion.d.ts +15 -0
  54. package/dist/components/molecules/BookingResume/ResumeExcursion/ResumeExcursion.js +28 -0
  55. package/dist/components/molecules/BookingResume/ResumeOtherService.d.ts +6 -0
  56. package/dist/components/molecules/BookingResume/ResumeOtherService.js +19 -0
  57. package/dist/components/molecules/BookingResume/ResumeTransfer.d.ts +12 -0
  58. package/dist/components/molecules/BookingResume/ResumeTransfer.js +23 -0
  59. package/dist/components/molecules/BookingResume/index.d.ts +6 -0
  60. package/dist/components/molecules/BookingResume/index.js +1 -0
  61. package/dist/components/molecules/Calendar/CalendarInput.d.ts +6 -3
  62. package/dist/components/molecules/Calendar/CalendarInput.js +10 -10
  63. package/dist/components/molecules/DateDisplay/DateDisplay.d.ts +2 -0
  64. package/dist/components/molecules/DateDisplay/DateDisplay.js +2 -2
  65. package/dist/components/molecules/DialogContentPolicy/CancellationLayout/CancellationLayout.css +2142 -0
  66. package/dist/components/molecules/DialogContentPolicy/CancellationLayout/CancellationLayout.d.ts +11 -0
  67. package/dist/components/molecules/DialogContentPolicy/CancellationLayout/CancellationLayout.js +19 -0
  68. package/dist/components/molecules/DialogContentPolicy/DialogCancellationAccom.d.ts +9 -0
  69. package/dist/components/molecules/DialogContentPolicy/DialogCancellationAccom.js +24 -0
  70. package/dist/components/molecules/DialogContentPolicy/DialogCancellationExcursion.d.ts +17 -0
  71. package/dist/components/molecules/DialogContentPolicy/DialogCancellationExcursion.js +20 -0
  72. package/dist/components/molecules/DialogContentPolicy/DialogCancellationList.d.ts +11 -0
  73. package/dist/components/molecules/DialogContentPolicy/DialogCancellationList.js +33 -0
  74. package/dist/components/molecules/DialogContentPolicy/DialogContentPolicy.d.ts +11 -0
  75. package/dist/components/molecules/DialogContentPolicy/DialogContentPolicy.js +27 -0
  76. package/dist/components/molecules/DialogContentPolicy/index.d.ts +4 -0
  77. package/dist/components/molecules/DialogContentPolicy/index.js +1 -0
  78. package/dist/components/molecules/PaxDisplay/PaxDisplay.css +2104 -0
  79. package/dist/components/molecules/PaxDisplay/PaxDisplay.d.ts +7 -0
  80. package/dist/components/molecules/PaxDisplay/PaxDisplay.js +32 -0
  81. package/dist/components/molecules/ServiceInfo/ServiceInfo.css +3 -7
  82. package/dist/components/molecules/ServiceInfo/ServiceInfo.d.ts +1 -0
  83. package/dist/components/molecules/ServiceInfo/ServiceInfo.js +5 -4
  84. package/dist/components/molecules/ServiceTitle/ServiceTitle.css +3 -0
  85. package/dist/components/molecules/ServiceTitle/ServiceTitle.d.ts +7 -1
  86. package/dist/components/molecules/ServiceTitle/ServiceTitle.js +4 -3
  87. package/dist/components/molecules/StepperTimeline/StepperTimeline.css +2151 -0
  88. package/dist/components/molecules/StepperTimeline/StepperTimeline.d.ts +23 -0
  89. package/dist/components/molecules/StepperTimeline/StepperTimeline.js +45 -0
  90. package/dist/components/organisms/Booking/Booking.css +2080 -0
  91. package/dist/components/organisms/Booking/Booking.d.ts +13 -0
  92. package/dist/components/organisms/Booking/Booking.js +37 -0
  93. package/dist/components/organisms/Booking/BookingDocket/BookingDocket.css +2159 -0
  94. package/dist/components/organisms/Booking/BookingDocket/BookingDocket.d.ts +13 -0
  95. package/dist/components/organisms/Booking/BookingDocket/BookingDocket.js +44 -0
  96. package/dist/components/organisms/Booking/BookingHeader.d.ts +8 -0
  97. package/dist/components/organisms/Booking/BookingHeader.js +17 -0
  98. package/dist/components/organisms/Booking/BookingPaxList.d.ts +25 -0
  99. package/dist/components/organisms/Booking/BookingPaxList.js +117 -0
  100. package/dist/components/organisms/Booking/BookingStep/BookingStep.css +2103 -0
  101. package/dist/components/organisms/Booking/BookingStep/BookingStep.d.ts +11 -0
  102. package/dist/components/organisms/Booking/BookingStep/BookingStep.js +30 -0
  103. package/dist/components/organisms/Booking/index.d.ts +3 -0
  104. package/dist/components/organisms/Booking/index.js +1 -0
  105. package/dist/components/organisms/DateTimePicker/DateTimePicker.d.ts +6 -3
  106. package/dist/components/organisms/DateTimePicker/DateTimePicker.js +28 -22
  107. package/dist/components/organisms/DialogBookingConfirm/DialogBookingConfirm.d.ts +10 -0
  108. package/dist/components/organisms/DialogBookingConfirm/DialogBookingConfirm.js +17 -0
  109. package/dist/components/organisms/TabCancellationPolicy/HeaderAccom.js +2 -8
  110. package/dist/components/ui/checkbox.d.ts +4 -0
  111. package/dist/components/ui/checkbox.js +31 -0
  112. package/dist/hooks/useBookingPax.d.ts +8 -0
  113. package/dist/hooks/useBookingPax.js +43 -0
  114. package/dist/hooks/useStays.d.ts +1 -0
  115. package/dist/hooks/useStays.js +11 -0
  116. package/dist/index.d.ts +3 -0
  117. package/dist/index.js +3 -0
  118. package/dist/types/table/booking.types.d.ts +12 -0
  119. package/dist/types/table/detail-resume.types.d.ts +3 -1
  120. package/package.json +4 -1
  121. package/src/components/atoms/Icon/icons/BookingIcon.tsx +40 -0
  122. package/src/components/atoms/Icon/icons/BusIcon.tsx +1 -1
  123. package/src/components/atoms/Icon/icons/CarFront.tsx +44 -0
  124. package/src/components/atoms/Icon/icons/CatamaranIcon.tsx +51 -0
  125. package/src/components/atoms/Icon/icons/ClockIcon.tsx +46 -0
  126. package/src/components/atoms/Icon/icons/CloseCircleIcon.tsx +55 -0
  127. package/src/components/atoms/Icon/icons/Land.tsx +40 -0
  128. package/src/components/atoms/Icon/icons/MapIcon.tsx +6 -2
  129. package/src/components/atoms/Icon/icons/PlusCircleIcon.tsx +1 -1
  130. package/src/components/atoms/Icon/icons/SeaIcon.tsx +47 -0
  131. package/src/components/atoms/Icon/icons/registry.tsx +14 -0
  132. package/src/components/atoms/Inputs/Input/Input.tsx +6 -5
  133. package/src/components/atoms/Inputs/Textarea/Textarea.tsx +18 -4
  134. package/src/components/molecules/BookingPax/BookingPax.tsx +12 -0
  135. package/src/components/molecules/BookingPax/BookingPaxAccom.tsx +120 -0
  136. package/src/components/molecules/BookingPax/BookingPaxClient/BookingPaxClient.css +4 -0
  137. package/src/components/molecules/BookingPax/BookingPaxClient/BookingPaxClient.tsx +188 -0
  138. package/src/components/molecules/BookingPax/BookingPaxExcursion.tsx +77 -0
  139. package/src/components/molecules/BookingPax/BookingPaxHeader.tsx +47 -0
  140. package/src/components/molecules/BookingPax/BookingPaxLayout/BookingPaxLayout.css +15 -0
  141. package/src/components/molecules/BookingPax/BookingPaxLayout/BookingPaxLayout.tsx +25 -0
  142. package/src/components/molecules/BookingPax/BookingPaxRemarks.tsx +46 -0
  143. package/src/components/molecules/BookingPax/BookingPaxTransfer.tsx +121 -0
  144. package/src/components/molecules/BookingPax/index.ts +9 -0
  145. package/src/components/molecules/BookingResume/BookingResume.tsx +16 -0
  146. package/src/components/molecules/BookingResume/BookingResumeLayout/BookingResumeLayout.css +28 -0
  147. package/src/components/molecules/BookingResume/BookingResumeLayout/BookingResumeLayout.tsx +37 -0
  148. package/src/components/molecules/BookingResume/ResumeAccom/ResumeAccom.css +12 -0
  149. package/src/components/molecules/BookingResume/ResumeAccom/ResumeAccom.tsx +63 -0
  150. package/src/components/molecules/BookingResume/ResumeExcursion/ResumeExcursion.css +5 -0
  151. package/src/components/molecules/BookingResume/ResumeExcursion/ResumeExcursion.tsx +75 -0
  152. package/src/components/molecules/BookingResume/ResumeOtherService.tsx +21 -0
  153. package/src/components/molecules/BookingResume/ResumeTransfer.tsx +49 -0
  154. package/src/components/molecules/BookingResume/index.ts +6 -0
  155. package/src/components/molecules/Calendar/CalendarInput.tsx +26 -24
  156. package/src/components/molecules/DateDisplay/DateDisplay.tsx +9 -5
  157. package/src/components/molecules/DialogContentPolicy/CancellationLayout/CancellationLayout.css +37 -0
  158. package/src/components/molecules/DialogContentPolicy/CancellationLayout/CancellationLayout.tsx +28 -0
  159. package/src/components/molecules/DialogContentPolicy/DialogCancellationAccom.tsx +65 -0
  160. package/src/components/molecules/DialogContentPolicy/DialogCancellationExcursion.tsx +59 -0
  161. package/src/components/molecules/DialogContentPolicy/DialogCancellationList.tsx +49 -0
  162. package/src/components/molecules/DialogContentPolicy/DialogContentPolicy.tsx +45 -0
  163. package/src/components/molecules/DialogContentPolicy/index.ts +5 -0
  164. package/src/components/molecules/PaxDisplay/PaxDisplay.css +19 -0
  165. package/src/components/molecules/PaxDisplay/PaxDisplay.tsx +59 -0
  166. package/src/components/molecules/ServiceInfo/ServiceInfo.css +3 -5
  167. package/src/components/molecules/ServiceInfo/ServiceInfo.tsx +18 -3
  168. package/src/components/molecules/ServiceTitle/ServiceTitle.css +1 -1
  169. package/src/components/molecules/ServiceTitle/ServiceTitle.tsx +25 -7
  170. package/src/components/molecules/StepperTimeline/StepperTimeline.css +59 -0
  171. package/src/components/molecules/StepperTimeline/StepperTimeline.tsx +105 -0
  172. package/src/components/organisms/Booking/Booking.css +3 -0
  173. package/src/components/organisms/Booking/Booking.tsx +25 -0
  174. package/src/components/organisms/Booking/BookingDocket/BookingDocket.css +67 -0
  175. package/src/components/organisms/Booking/BookingDocket/BookingDocket.tsx +165 -0
  176. package/src/components/organisms/Booking/BookingHeader.tsx +24 -0
  177. package/src/components/organisms/Booking/BookingPaxList.tsx +224 -0
  178. package/src/components/organisms/Booking/BookingStep/BookingStep.css +12 -0
  179. package/src/components/organisms/Booking/BookingStep/BookingStep.tsx +51 -0
  180. package/src/components/organisms/Booking/index.ts +3 -0
  181. package/src/components/organisms/CarBookingCard/index.ts +1 -0
  182. package/src/components/organisms/DateTimePicker/DateTimePicker.tsx +69 -49
  183. package/src/components/organisms/DialogBookingConfirm/DialogBookingConfirm.tsx +25 -0
  184. package/src/components/organisms/TabCancellationPolicy/HeaderAccom.tsx +2 -8
  185. package/src/components/ui/checkbox.tsx +32 -0
@@ -0,0 +1,11 @@
1
+ import { IconName } from '@/src/components/atoms/Icon/Icon';
2
+ import React from 'react';
3
+ import './CancellationLayout.css';
4
+ export interface CancellationLayoutProps {
5
+ title: React.ReactNode;
6
+ icon: IconName;
7
+ children?: React.ReactNode;
8
+ className?: string;
9
+ image: string;
10
+ }
11
+ export declare const CancellationLayout: React.FC<CancellationLayoutProps>;
@@ -0,0 +1,19 @@
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 { cn } from '@/src/lib/utils';
14
+ import { ServiceTitle } from '../../ServiceTitle/ServiceTitle';
15
+ import './CancellationLayout.css';
16
+ export var CancellationLayout = function (props) {
17
+ var title = props.title, icon = props.icon, children = props.children, className = props.className, image = props.image;
18
+ return (_jsxs("div", __assign({ className: cn('cancellation-layout', className) }, { children: [_jsx(ServiceTitle, { title: title, icon: icon }), _jsxs("div", __assign({ className: "cancellation-layout__content" }, { children: [_jsx("div", __assign({ className: "cancellation-layout__content-left" }, { children: children })), _jsx("figure", __assign({ className: "cancellation-layout__content-right" }, { children: _jsx("img", { src: image, alt: (title === null || title === void 0 ? void 0 : title.toString()) || '', width: 150, height: 200 }) }))] }))] })));
19
+ };
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { RoomItem } from '@/src/types/table';
3
+ export interface DialogCancellationAccomProps {
4
+ image: string;
5
+ hotelName: string;
6
+ dates: string[];
7
+ rooms: RoomItem[];
8
+ }
9
+ export declare const DialogCancellationAccom: React.FC<DialogCancellationAccomProps>;
@@ -0,0 +1,24 @@
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 useStays from '@/src/hooks/useStays';
14
+ import { Fragment } from 'react';
15
+ import Chip from '../../atoms/Chip/Chip';
16
+ import { Text } from '../../atoms/Typography/Typography';
17
+ import { DateDisplay } from '../DateDisplay/DateDisplay';
18
+ import TextWithIcon from '../TextWithIcon/TextWithIcon';
19
+ import { CancellationLayout } from './CancellationLayout/CancellationLayout';
20
+ export var DialogCancellationAccom = function (props) {
21
+ var image = props.image, hotelName = props.hotelName, dates = props.dates, rooms = props.rooms;
22
+ var stay = useStays(dates);
23
+ return (_jsx(CancellationLayout, __assign({ title: "Accommodation", icon: "accom", image: image }, { children: _jsxs("div", __assign({ className: "space-y-6" }, { children: [_jsxs("div", __assign({ className: "space-y-1" }, { children: [_jsx(Text, __assign({ variant: "bold" }, { children: hotelName })), _jsx(DateDisplay, { dates: dates }), _jsxs(TextWithIcon, __assign({ icon: "night", textLeading: "4" }, { children: [stay, " Nights"] }))] })), _jsx("div", __assign({ className: "" }, { children: rooms.map(function (room, index) { return (_jsxs("div", __assign({ className: "space-y-4" }, { children: [_jsxs("div", __assign({ className: "space-y-1" }, { children: [_jsxs(TextWithIcon, __assign({ icon: "accom", textLeading: "4" }, { children: [index + 1, " Room"] })), _jsx(Text, __assign({ size: "sm" }, { children: room.RoomName }))] })), room.cancellation_policy.map(function (policy) { 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(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))); })] }), "rm-".concat(index))); }) }))] })) })));
24
+ };
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ export interface DialogCancellationExcursionProps {
3
+ image: string;
4
+ excursionName: string;
5
+ date: string;
6
+ policy: {
7
+ title: string;
8
+ description: string;
9
+ };
10
+ details: {
11
+ duration: string;
12
+ meal: string;
13
+ accessibility: string;
14
+ transferType: string;
15
+ };
16
+ }
17
+ export declare const DialogCancellationExcursion: React.FC<DialogCancellationExcursionProps>;
@@ -0,0 +1,20 @@
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 { Text } from '../../atoms/Typography/Typography';
14
+ import { DateDisplay } from '../DateDisplay/DateDisplay';
15
+ import { ServiceInfo } from '../ServiceInfo/ServiceInfo';
16
+ import { CancellationLayout } from './CancellationLayout/CancellationLayout';
17
+ export var DialogCancellationExcursion = function (props) {
18
+ var image = props.image, excursionName = props.excursionName, date = props.date, details = props.details, policy = props.policy;
19
+ return (_jsx(CancellationLayout, __assign({ title: "Excursion", icon: "map", image: image }, { children: _jsxs("div", __assign({ className: "space-y-6" }, { children: [_jsxs("div", __assign({ className: "space-y-1" }, { children: [_jsx(Text, __assign({ variant: "bold" }, { children: excursionName })), _jsx(DateDisplay, { dates: [date] })] })), _jsxs(ServiceInfo, { children: [_jsx(ServiceInfo.Item, __assign({ icon: "stopwatch", label: "Duration" }, { children: details.duration })), _jsx(ServiceInfo.Item, __assign({ icon: "utensils", label: "Meal" }, { children: details.meal })), _jsx(ServiceInfo.Item, __assign({ icon: "bike", label: "Difficulty" }, { children: details.accessibility })), _jsx(ServiceInfo.Item, __assign({ icon: "car", label: "Transfer Type" }, { children: details.transferType }))] }), _jsxs("div", __assign({ className: "" }, { children: [_jsx(Text, __assign({ variant: "bold", size: "xs", leading: "4" }, { children: policy.title })), _jsx(Text, __assign({ size: "xs", leading: "4" }, { children: policy.description }))] }))] })) })));
20
+ };
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { DialogCancellationAccomProps } from './DialogCancellationAccom';
3
+ import { DialogCancellationExcursionProps } from './DialogCancellationExcursion';
4
+ export interface CancellationItem {
5
+ type: 'accommodation' | 'excursion';
6
+ data: DialogCancellationAccomProps | DialogCancellationExcursionProps;
7
+ }
8
+ export interface DialogCancellationListProps {
9
+ cancellations: CancellationItem[];
10
+ }
11
+ export declare const DialogCancellationList: React.FC<DialogCancellationListProps>;
@@ -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 } from "react/jsx-runtime";
13
+ import { DialogCancellationAccom, } from './DialogCancellationAccom';
14
+ import { DialogCancellationExcursion, } from './DialogCancellationExcursion';
15
+ import { DialogContentPolicy } from './DialogContentPolicy';
16
+ export var DialogCancellationList = function (props) {
17
+ var cancellations = props.cancellations;
18
+ var isAccommodation = function (data) {
19
+ return 'hotelName' in data;
20
+ };
21
+ var isExcursion = function (data) {
22
+ return 'excursionName' in data;
23
+ };
24
+ return (_jsx(DialogContentPolicy, { children: cancellations.map(function (c, index) {
25
+ if (c.type === 'accommodation' && isAccommodation(c.data)) {
26
+ return _jsx(DialogCancellationAccom, __assign({}, c.data), "acc-".concat(index));
27
+ }
28
+ if (c.type === 'excursion' && isExcursion(c.data)) {
29
+ return _jsx(DialogCancellationExcursion, __assign({}, c.data), "exc-".concat(index));
30
+ }
31
+ return null;
32
+ }) }));
33
+ };
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ export interface DialogContentPolicyProps {
3
+ children: React.ReactNode;
4
+ onSubmit?: () => void;
5
+ }
6
+ export declare const DialogContentPolicy: {
7
+ (props: DialogContentPolicyProps): import("react/jsx-runtime").JSX.Element;
8
+ Accommodation: React.FC<import("./DialogCancellationAccom").DialogCancellationAccomProps>;
9
+ Excursion: React.FC<import("./DialogCancellationExcursion").DialogCancellationExcursionProps>;
10
+ List: React.FC<import("./DialogCancellationList").DialogCancellationListProps>;
11
+ };
@@ -0,0 +1,27 @@
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 { useState } from 'react';
14
+ import Button from '../../atoms/Button/Button';
15
+ import { Text } from '../../atoms/Typography/Typography';
16
+ import { Checkbox } from '../../ui/checkbox';
17
+ import { DialogCancellationAccom } from './DialogCancellationAccom';
18
+ import { DialogCancellationExcursion } from './DialogCancellationExcursion';
19
+ import { DialogCancellationList } from './DialogCancellationList';
20
+ export var DialogContentPolicy = function (props) {
21
+ var children = props.children, onSubmit = props.onSubmit;
22
+ var _a = useState(false), accepted = _a[0], setAccepted = _a[1];
23
+ return (_jsxs("div", __assign({ className: "cancellation-policy" }, { children: [children, _jsxs("div", __assign({ className: "flex justify-end gap-x-8 py-9" }, { children: [_jsxs("div", __assign({ className: "flex gap-x-2.5 items-center" }, { children: [_jsx("label", __assign({ htmlFor: "accept-terms" }, { children: _jsx(Text, __assign({ size: "sm", as: "span" }, { children: "I've read and accept the cancellation policy." })) })), _jsx(Checkbox, { id: "accept-terms", checked: accepted, onCheckedChange: setAccepted })] })), _jsx(Button, __assign({ className: "w-[250px]", variant: "secondary", disabled: !accepted, onClick: onSubmit }, { children: "Next" }))] }))] })));
24
+ };
25
+ DialogContentPolicy.Accommodation = DialogCancellationAccom;
26
+ DialogContentPolicy.Excursion = DialogCancellationExcursion;
27
+ DialogContentPolicy.List = DialogCancellationList;
@@ -0,0 +1,4 @@
1
+ export * from './DialogContentPolicy';
2
+ export type { CancellationLayoutProps } from './CancellationLayout/CancellationLayout';
3
+ export type { DialogCancellationAccomProps } from './DialogCancellationAccom';
4
+ export type { DialogCancellationExcursionProps } from './DialogCancellationExcursion';
@@ -0,0 +1 @@
1
+ export * from './DialogContentPolicy';