mautourco-components 0.2.36 → 0.2.37

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 (240) hide show
  1. package/dist/components/molecules/ActionDropdown/ActionDropdown.d.ts +1 -1
  2. package/dist/components/molecules/ActionDropdown/ActionDropdown.js +4 -4
  3. package/dist/components/molecules/AddItemButton/AddItemButton.d.ts +1 -1
  4. package/dist/components/molecules/AddItemButton/AddItemButton.js +3 -3
  5. package/dist/components/molecules/BookingPax/BookingPax.d.ts +9 -6
  6. package/dist/components/molecules/BookingPax/BookingPax.js +2 -2
  7. package/dist/components/molecules/BookingPax/BookingPaxAccom.d.ts +1 -2
  8. package/dist/components/molecules/BookingPax/BookingPaxAccom.js +2 -2
  9. package/dist/components/molecules/BookingPax/BookingPaxClient/BookingPaxClient.d.ts +1 -1
  10. package/dist/components/molecules/BookingPax/BookingPaxClient/BookingPaxClient.js +2 -2
  11. package/dist/components/molecules/BookingPax/BookingPaxExcursion.d.ts +1 -2
  12. package/dist/components/molecules/BookingPax/BookingPaxExcursion.js +2 -2
  13. package/dist/components/molecules/BookingPax/BookingPaxHeader.d.ts +5 -5
  14. package/dist/components/molecules/BookingPax/BookingPaxHeader.js +2 -2
  15. package/dist/components/molecules/BookingPax/BookingPaxLayout/BookingPaxLayout.d.ts +1 -1
  16. package/dist/components/molecules/BookingPax/BookingPaxLayout/BookingPaxLayout.js +2 -2
  17. package/dist/components/molecules/BookingPax/BookingPaxRemarks.d.ts +1 -2
  18. package/dist/components/molecules/BookingPax/BookingPaxRemarks.js +4 -4
  19. package/dist/components/molecules/BookingPax/BookingPaxTransfer.d.ts +1 -2
  20. package/dist/components/molecules/BookingPax/BookingPaxTransfer.js +2 -2
  21. package/dist/components/molecules/BookingResume/BookingResume.d.ts +13 -8
  22. package/dist/components/molecules/BookingResume/BookingResume.js +2 -2
  23. package/dist/components/molecules/BookingResume/BookingResumeLayout/BookingResumeLayout.d.ts +1 -1
  24. package/dist/components/molecules/BookingResume/BookingResumeLayout/BookingResumeLayout.js +2 -2
  25. package/dist/components/molecules/BookingResume/ResumeAccom/ResumeAccom.d.ts +1 -2
  26. package/dist/components/molecules/BookingResume/ResumeAccom/ResumeAccom.js +2 -2
  27. package/dist/components/molecules/BookingResume/ResumeExcursion/ResumeExcursion.d.ts +1 -2
  28. package/dist/components/molecules/BookingResume/ResumeExcursion/ResumeExcursion.js +2 -2
  29. package/dist/components/molecules/BookingResume/ResumeOtherService.d.ts +1 -2
  30. package/dist/components/molecules/BookingResume/ResumeOtherService.js +2 -2
  31. package/dist/components/molecules/BookingResume/ResumeTransfer.d.ts +1 -2
  32. package/dist/components/molecules/BookingResume/ResumeTransfer.js +2 -2
  33. package/dist/components/molecules/Breadcrumbs/Breadcrumbs.d.ts +1 -2
  34. package/dist/components/molecules/Breadcrumbs/Breadcrumbs.js +2 -2
  35. package/dist/components/molecules/DateDisplay/DateDisplay.d.ts +1 -2
  36. package/dist/components/molecules/DateDisplay/DateDisplay.js +3 -3
  37. package/dist/components/molecules/DetailsInfo/DetailsAction.d.ts +1 -2
  38. package/dist/components/molecules/DetailsInfo/DetailsAction.js +2 -2
  39. package/dist/components/molecules/DetailsInfo/DetailsAgency/DetailsAgency.d.ts +1 -1
  40. package/dist/components/molecules/DetailsInfo/DetailsAgency/DetailsAgency.js +2 -2
  41. package/dist/components/molecules/DetailsInfo/DetailsClient/DetailsClient.d.ts +1 -2
  42. package/dist/components/molecules/DetailsInfo/DetailsClient/DetailsClient.js +2 -2
  43. package/dist/components/molecules/DetailsInfo/DetailsFile.d.ts +1 -2
  44. package/dist/components/molecules/DetailsInfo/DetailsFile.js +2 -2
  45. package/dist/components/molecules/DetailsInfo/DetailsInfo.d.ts +8 -4
  46. package/dist/components/molecules/DialogContentPolicy/CancellationLayout/CancellationLayout.d.ts +1 -1
  47. package/dist/components/molecules/DialogContentPolicy/CancellationLayout/CancellationLayout.js +2 -2
  48. package/dist/components/molecules/DialogContentPolicy/DialogCancellationAccom.d.ts +1 -1
  49. package/dist/components/molecules/DialogContentPolicy/DialogCancellationAccom.js +2 -2
  50. package/dist/components/molecules/DialogContentPolicy/DialogCancellationExcursion.d.ts +1 -1
  51. package/dist/components/molecules/DialogContentPolicy/DialogCancellationExcursion.js +2 -2
  52. package/dist/components/molecules/DialogContentPolicy/DialogCancellationList.d.ts +2 -3
  53. package/dist/components/molecules/DialogContentPolicy/DialogCancellationList.js +4 -4
  54. package/dist/components/molecules/DialogContentPolicy/DialogContentPolicy.d.ts +9 -6
  55. package/dist/components/molecules/DialogContentPolicy/DialogContentPolicy.js +2 -2
  56. package/dist/components/molecules/FromTo/FromTo.d.ts +1 -1
  57. package/dist/components/molecules/FromTo/FromTo.js +2 -2
  58. package/dist/components/molecules/GlobalAmenities/GlobalAmenities.d.ts +1 -2
  59. package/dist/components/molecules/GlobalAmenities/GlobalAmenities.js +2 -2
  60. package/dist/components/molecules/PaxChips/PaxChips.d.ts +1 -2
  61. package/dist/components/molecules/PaxChips/PaxChips.js +2 -2
  62. package/dist/components/molecules/PaxDisplay/PaxDisplay.d.ts +1 -1
  63. package/dist/components/molecules/PaxDisplay/PaxDisplay.js +2 -2
  64. package/dist/components/molecules/ServiceTitle/ServiceTitle.d.ts +1 -1
  65. package/dist/components/molecules/ServiceTitle/ServiceTitle.js +2 -2
  66. package/dist/components/molecules/StepperTimeline/StepperTimeline.d.ts +3 -2
  67. package/dist/components/molecules/StepperTimeline/StepperTimeline.js +2 -2
  68. package/dist/components/molecules/TableServiceItem/DetailsCol.d.ts +1 -1
  69. package/dist/components/molecules/TableServiceItem/DetailsCol.js +2 -2
  70. package/dist/components/molecules/TableServiceItem/ItemCol.d.ts +1 -1
  71. package/dist/components/molecules/TableServiceItem/ItemCol.js +2 -2
  72. package/dist/components/molecules/TableServiceItem/RowAccommodation.d.ts +2 -3
  73. package/dist/components/molecules/TableServiceItem/RowAccommodation.js +9 -6
  74. package/dist/components/molecules/TableServiceItem/RowExcursion.d.ts +3 -4
  75. package/dist/components/molecules/TableServiceItem/RowExcursion.js +5 -5
  76. package/dist/components/molecules/TableServiceItem/RowOtherServices.d.ts +3 -4
  77. package/dist/components/molecules/TableServiceItem/RowOtherServices.js +4 -4
  78. package/dist/components/molecules/TableServiceItem/RowTransfer.d.ts +3 -4
  79. package/dist/components/molecules/TableServiceItem/RowTransfer.js +4 -4
  80. package/dist/components/molecules/TableServiceItem/index.d.ts +4 -4
  81. package/dist/components/molecules/TextWithBorderBottom/TextWithBorderBottom.d.ts +1 -2
  82. package/dist/components/molecules/TextWithBorderBottom/TextWithBorderBottom.js +2 -2
  83. package/dist/components/molecules/TextWithIcon/TextWithIcon.d.ts +1 -1
  84. package/dist/components/molecules/TextWithIcon/TextWithIcon.js +2 -2
  85. package/dist/components/molecules/TimelineItem/ServiceAccommodation.d.ts +1 -2
  86. package/dist/components/molecules/TimelineItem/ServiceAccommodation.js +2 -2
  87. package/dist/components/molecules/TimelineItem/ServiceExcursion.d.ts +1 -2
  88. package/dist/components/molecules/TimelineItem/ServiceExcursion.js +2 -2
  89. package/dist/components/molecules/TimelineItem/ServiceTransfer.d.ts +1 -2
  90. package/dist/components/molecules/TimelineItem/ServiceTransfer.js +2 -2
  91. package/dist/components/molecules/TimelineItem/TimelineHeader.d.ts +1 -2
  92. package/dist/components/molecules/TimelineItem/TimelineHeader.js +2 -2
  93. package/dist/components/molecules/TimelineItem/TimelineItem.d.ts +6 -3
  94. package/dist/components/molecules/Toast/Toast.d.ts +1 -2
  95. package/dist/components/molecules/Toast/Toast.js +3 -3
  96. package/dist/components/molecules/TooltipDisplay/TooltipDisplay.d.ts +1 -1
  97. package/dist/components/molecules/TooltipDisplay/TooltipDisplay.js +2 -2
  98. package/dist/components/organisms/Booking/Booking.d.ts +8 -4
  99. package/dist/components/organisms/Booking/BookingDocket/BookingDocket.d.ts +1 -1
  100. package/dist/components/organisms/Booking/BookingDocket/BookingDocket.js +2 -2
  101. package/dist/components/organisms/Booking/BookingHeader.d.ts +1 -2
  102. package/dist/components/organisms/Booking/BookingHeader.js +2 -2
  103. package/dist/components/organisms/Booking/BookingPaxList.d.ts +1 -2
  104. package/dist/components/organisms/Booking/BookingPaxList.js +2 -2
  105. package/dist/components/organisms/Booking/BookingStep/BookingStep.d.ts +1 -2
  106. package/dist/components/organisms/Booking/BookingStep/BookingStep.js +2 -2
  107. package/dist/components/organisms/DialogBookingAddItem/AddItemNewService.d.ts +1 -1
  108. package/dist/components/organisms/DialogBookingAddItem/AddItemNewService.js +2 -2
  109. package/dist/components/organisms/DialogBookingAddItem/AddItemSelector.d.ts +1 -1
  110. package/dist/components/organisms/DialogBookingAddItem/AddItemSelector.js +3 -3
  111. package/dist/components/organisms/DialogBookingAddItem/DialogBookingAddItem.d.ts +1 -2
  112. package/dist/components/organisms/DialogBookingAddItem/DialogBookingAddItem.js +2 -2
  113. package/dist/components/organisms/DialogBookingConfirm/BookingCancellationPolicy.d.ts +1 -1
  114. package/dist/components/organisms/DialogBookingConfirm/BookingCancellationPolicy.js +2 -2
  115. package/dist/components/organisms/DialogBookingConfirm/BookingMailSent.d.ts +1 -2
  116. package/dist/components/organisms/DialogBookingConfirm/BookingMailSent.js +2 -2
  117. package/dist/components/organisms/DialogBookingConfirm/BookingReference.d.ts +1 -2
  118. package/dist/components/organisms/DialogBookingConfirm/BookingReference.js +2 -2
  119. package/dist/components/organisms/DialogBookingConfirm/BookingSuccess.d.ts +1 -2
  120. package/dist/components/organisms/DialogBookingConfirm/BookingSuccess.js +2 -2
  121. package/dist/components/organisms/DialogBookingConfirm/DialogBookingConfirm.d.ts +11 -7
  122. package/dist/components/organisms/DialogBookingConfirm/DialogBookingConfirm.js +2 -2
  123. package/dist/components/organisms/DialogCancelService/CancelBooking/CancelBooking.d.ts +1 -2
  124. package/dist/components/organisms/DialogCancelService/CancelBooking/CancelBooking.js +2 -2
  125. package/dist/components/organisms/DialogCancelService/CancelPolicy.d.ts +1 -2
  126. package/dist/components/organisms/DialogCancelService/CancelPolicy.js +2 -2
  127. package/dist/components/organisms/DialogCancelService/ConfirmDelete/ConfirmDelete.d.ts +1 -2
  128. package/dist/components/organisms/DialogCancelService/ConfirmDelete/ConfirmDelete.js +2 -2
  129. package/dist/components/organisms/DialogCancelService/DialogCancelService.d.ts +9 -7
  130. package/dist/components/organisms/DialogCancelService/DialogCancelService.js +2 -2
  131. package/dist/components/organisms/DialogCancelService/FromList.d.ts +1 -1
  132. package/dist/components/organisms/DialogCancelService/FromList.js +2 -2
  133. package/dist/components/organisms/DialogComparison/DialogComparison.d.ts +1 -1
  134. package/dist/components/organisms/DialogComparison/DialogComparison.js +2 -2
  135. package/dist/components/organisms/DialogDeleteConfirm/DialogDeleteConfirm.d.ts +8 -6
  136. package/dist/components/organisms/DialogDeleteConfirm/DialogDeleteConfirm.js +2 -2
  137. package/dist/components/organisms/DialogDeleteConfirm/DialogDeleteConfirmMultiple/DialogDeleteConfirmMultiple.d.ts +1 -2
  138. package/dist/components/organisms/DialogDeleteConfirm/DialogDeleteConfirmMultiple/DialogDeleteConfirmMultiple.js +2 -2
  139. package/dist/components/organisms/DialogDeleteConfirm/DialogDeleteConfirmWrapper.d.ts +1 -1
  140. package/dist/components/organisms/DialogDeleteConfirm/DialogDeleteConfirmWrapper.js +2 -2
  141. package/dist/components/organisms/DialogQuoteRename/DialogQuoteRename.d.ts +1 -1
  142. package/dist/components/organisms/DialogQuoteRename/DialogQuoteRename.js +2 -2
  143. package/dist/components/organisms/DialogSendingMail/DialogSendingMail.d.ts +7 -5
  144. package/dist/components/organisms/DialogSendingMail/DialogSendingMail.js +2 -2
  145. package/dist/components/organisms/DialogSendingMail/DialogSendingMailContent.d.ts +1 -2
  146. package/dist/components/organisms/DialogSendingMail/DialogSendingMailContent.js +2 -2
  147. package/dist/components/organisms/DialogSendingMail/DialogSendingMailMultiple/DialogSendingMailMultiple.d.ts +1 -2
  148. package/dist/components/organisms/DialogSendingMail/DialogSendingMailMultiple/DialogSendingMailMultiple.js +2 -2
  149. package/dist/components/organisms/TabServiceDetails/Accommodation.d.ts +1 -2
  150. package/dist/components/organisms/TabServiceDetails/Accommodation.js +2 -2
  151. package/dist/components/organisms/TabServiceDetails/DetailContentTransfer.d.ts +1 -2
  152. package/dist/components/organisms/TabServiceDetails/DetailContentTransfer.js +2 -2
  153. package/dist/components/organisms/TabServiceDetails/DetailsContentAccom.d.ts +14 -1
  154. package/dist/components/organisms/TabServiceDetails/DetailsContentAccom.js +2 -2
  155. package/dist/components/organisms/TabServiceDetails/Excursion.d.ts +1 -2
  156. package/dist/components/organisms/TabServiceDetails/Excursion.js +2 -2
  157. package/dist/components/organisms/TabServiceDetails/TabServiceDetails.d.ts +3 -3
  158. package/dist/components/organisms/TabServiceDetails/Transfer.d.ts +1 -2
  159. package/dist/components/organisms/TabServiceDetails/Transfer.js +2 -2
  160. package/dist/components/organisms/Table/Table.d.ts +1 -1
  161. package/dist/components/organisms/Table/Table.js +2 -2
  162. package/package.json +1 -1
  163. package/src/components/molecules/ActionDropdown/ActionDropdown.tsx +3 -6
  164. package/src/components/molecules/AddItemButton/AddItemButton.tsx +3 -2
  165. package/src/components/molecules/BookingPax/BookingPax.tsx +2 -2
  166. package/src/components/molecules/BookingPax/BookingPaxAccom.tsx +3 -3
  167. package/src/components/molecules/BookingPax/BookingPaxClient/BookingPaxClient.tsx +2 -2
  168. package/src/components/molecules/BookingPax/BookingPaxExcursion.tsx +3 -3
  169. package/src/components/molecules/BookingPax/BookingPaxHeader.tsx +2 -2
  170. package/src/components/molecules/BookingPax/BookingPaxLayout/BookingPaxLayout.tsx +2 -2
  171. package/src/components/molecules/BookingPax/BookingPaxRemarks.tsx +3 -2
  172. package/src/components/molecules/BookingPax/BookingPaxTransfer.tsx +2 -2
  173. package/src/components/molecules/BookingResume/BookingResume.tsx +2 -2
  174. package/src/components/molecules/BookingResume/BookingResumeLayout/BookingResumeLayout.tsx +2 -2
  175. package/src/components/molecules/BookingResume/ResumeAccom/ResumeAccom.tsx +2 -3
  176. package/src/components/molecules/BookingResume/ResumeExcursion/ResumeExcursion.tsx +2 -3
  177. package/src/components/molecules/BookingResume/ResumeOtherService.tsx +2 -3
  178. package/src/components/molecules/BookingResume/ResumeTransfer.tsx +2 -3
  179. package/src/components/molecules/Breadcrumbs/Breadcrumbs.tsx +2 -3
  180. package/src/components/molecules/DateDisplay/DateDisplay.tsx +11 -10
  181. package/src/components/molecules/DetailsInfo/DetailsAction.tsx +2 -3
  182. package/src/components/molecules/DetailsInfo/DetailsAgency/DetailsAgency.tsx +2 -2
  183. package/src/components/molecules/DetailsInfo/DetailsClient/DetailsClient.tsx +2 -3
  184. package/src/components/molecules/DetailsInfo/DetailsFile.tsx +2 -3
  185. package/src/components/molecules/DialogContentPolicy/CancellationLayout/CancellationLayout.tsx +2 -2
  186. package/src/components/molecules/DialogContentPolicy/DialogCancellationAccom.tsx +2 -4
  187. package/src/components/molecules/DialogContentPolicy/DialogCancellationExcursion.tsx +2 -4
  188. package/src/components/molecules/DialogContentPolicy/DialogCancellationList.tsx +4 -5
  189. package/src/components/molecules/DialogContentPolicy/DialogContentPolicy.tsx +2 -2
  190. package/src/components/molecules/FromTo/FromTo.tsx +2 -2
  191. package/src/components/molecules/GlobalAmenities/GlobalAmenities.tsx +2 -3
  192. package/src/components/molecules/PaxChips/PaxChips.tsx +2 -3
  193. package/src/components/molecules/PaxDisplay/PaxDisplay.tsx +2 -2
  194. package/src/components/molecules/ServiceTitle/ServiceTitle.tsx +2 -2
  195. package/src/components/molecules/StepperTimeline/StepperTimeline.tsx +2 -2
  196. package/src/components/molecules/TableServiceItem/DetailsCol.tsx +2 -2
  197. package/src/components/molecules/TableServiceItem/ItemCol.tsx +2 -2
  198. package/src/components/molecules/TableServiceItem/RowAccommodation.tsx +17 -7
  199. package/src/components/molecules/TableServiceItem/RowExcursion.tsx +12 -6
  200. package/src/components/molecules/TableServiceItem/RowOtherServices.tsx +4 -5
  201. package/src/components/molecules/TableServiceItem/RowTransfer.tsx +4 -7
  202. package/src/components/molecules/TextWithBorderBottom/TextWithBorderBottom.tsx +2 -3
  203. package/src/components/molecules/TextWithIcon/TextWithIcon.tsx +2 -2
  204. package/src/components/molecules/TimelineItem/ServiceAccommodation.tsx +2 -3
  205. package/src/components/molecules/TimelineItem/ServiceExcursion.tsx +2 -3
  206. package/src/components/molecules/TimelineItem/ServiceTransfer.tsx +2 -3
  207. package/src/components/molecules/TimelineItem/TimelineHeader.tsx +2 -3
  208. package/src/components/molecules/Toast/Toast.tsx +9 -9
  209. package/src/components/molecules/TooltipDisplay/TooltipDisplay.tsx +2 -2
  210. package/src/components/organisms/Booking/BookingDocket/BookingDocket.tsx +2 -2
  211. package/src/components/organisms/Booking/BookingHeader.tsx +2 -3
  212. package/src/components/organisms/Booking/BookingPaxList.tsx +3 -3
  213. package/src/components/organisms/Booking/BookingStep/BookingStep.tsx +3 -3
  214. package/src/components/organisms/DialogBookingAddItem/AddItemNewService.tsx +2 -2
  215. package/src/components/organisms/DialogBookingAddItem/AddItemSelector.tsx +3 -2
  216. package/src/components/organisms/DialogBookingAddItem/DialogBookingAddItem.tsx +3 -3
  217. package/src/components/organisms/DialogBookingConfirm/BookingCancellationPolicy.tsx +2 -2
  218. package/src/components/organisms/DialogBookingConfirm/BookingMailSent.tsx +2 -3
  219. package/src/components/organisms/DialogBookingConfirm/BookingReference.tsx +3 -3
  220. package/src/components/organisms/DialogBookingConfirm/BookingSuccess.tsx +2 -3
  221. package/src/components/organisms/DialogBookingConfirm/DialogBookingConfirm.tsx +2 -2
  222. package/src/components/organisms/DialogCancelService/CancelBooking/CancelBooking.tsx +3 -3
  223. package/src/components/organisms/DialogCancelService/CancelPolicy.tsx +2 -3
  224. package/src/components/organisms/DialogCancelService/ConfirmDelete/ConfirmDelete.tsx +2 -3
  225. package/src/components/organisms/DialogCancelService/DialogCancelService.tsx +2 -2
  226. package/src/components/organisms/DialogCancelService/FromList.tsx +3 -3
  227. package/src/components/organisms/DialogComparison/DialogComparison.tsx +2 -2
  228. package/src/components/organisms/DialogDeleteConfirm/DialogDeleteConfirm.tsx +2 -2
  229. package/src/components/organisms/DialogDeleteConfirm/DialogDeleteConfirmMultiple/DialogDeleteConfirmMultiple.tsx +3 -5
  230. package/src/components/organisms/DialogDeleteConfirm/DialogDeleteConfirmWrapper.tsx +2 -2
  231. package/src/components/organisms/DialogQuoteRename/DialogQuoteRename.tsx +2 -2
  232. package/src/components/organisms/DialogSendingMail/DialogSendingMail.tsx +2 -2
  233. package/src/components/organisms/DialogSendingMail/DialogSendingMailContent.tsx +3 -5
  234. package/src/components/organisms/DialogSendingMail/DialogSendingMailMultiple/DialogSendingMailMultiple.tsx +3 -5
  235. package/src/components/organisms/TabServiceDetails/Accommodation.tsx +2 -3
  236. package/src/components/organisms/TabServiceDetails/DetailContentTransfer.tsx +2 -3
  237. package/src/components/organisms/TabServiceDetails/DetailsContentAccom.tsx +3 -3
  238. package/src/components/organisms/TabServiceDetails/Excursion.tsx +2 -3
  239. package/src/components/organisms/TabServiceDetails/Transfer.tsx +2 -3
  240. package/src/components/organisms/Table/Table.tsx +2 -2
@@ -9,4 +9,4 @@ export interface FromListProps<T extends TableRowData<T> = DetailResumeItem> {
9
9
  onCancel?: () => void;
10
10
  onSaveAndUpdate?: () => void;
11
11
  }
12
- export declare const FromList: <T extends TableRowData<T> = DetailResumeItem>(props: FromListProps<T>) => import("react/jsx-runtime").JSX.Element;
12
+ export declare function FromList<T extends TableRowData<T> = DetailResumeItem>(props: FromListProps<T>): import("react/jsx-runtime").JSX.Element;
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import Button from '../../atoms/Button/Button';
3
3
  import { Table } from '../Table';
4
4
  import { columns as defaultColumns } from '../Table/columns';
5
- export var FromList = function (props) {
5
+ export function FromList(props) {
6
6
  var data = props.data, columns = props.columns, totalRows = props.totalRows, onRemove = props.onRemove, onCancel = props.onCancel, onSaveAndUpdate = props.onSaveAndUpdate;
7
7
  // When using default columns, we need to ensure T is compatible with DetailResumeItem
8
8
  var defaultColumnsResult = columns
@@ -15,4 +15,4 @@ export var FromList = function (props) {
15
15
  : undefined,
16
16
  });
17
17
  return (_jsxs("div", { className: "pb-20", children: [_jsx(Table, { columns: defaultColumnsResult, data: data, totalRows: totalRows, isGrouped: true }), _jsxs("div", { className: "flex justify-end gap-x-4 [&>*]:w-[250px] absolute bottom-0 right-2 left-0 p-6 bg-white", children: [_jsx(Button, { variant: "outline-secondary", size: "sm", onClick: onCancel, children: "Cancel" }), _jsx(Button, { variant: "secondary", size: "sm", onClick: onSaveAndUpdate, children: "Save and update" })] })] }));
18
- };
18
+ }
@@ -21,4 +21,4 @@ export declare const isComparisonAccommodation: (data: ComparisonData) => data i
21
21
  export declare const isComparisonTransfer: (data: ComparisonData) => data is ComparisonData & DetailResumeTransfer;
22
22
  export declare const isComparisonExcursion: (data: ComparisonData) => data is ComparisonData & DetailResumeExcursion;
23
23
  export declare const isComparisonOtherService: (data: ComparisonData) => data is ComparisonData & DetailResumeOtherService;
24
- export declare const DialogComparison: (props: DialogComparisonProps) => import("react/jsx-runtime").JSX.Element;
24
+ export declare function DialogComparison(props: DialogComparisonProps): import("react/jsx-runtime").JSX.Element;
@@ -20,7 +20,7 @@ export var isComparisonExcursion = function (data) {
20
20
  export var isComparisonOtherService = function (data) {
21
21
  return data.Type === ServiceType.OTHER_SERVICE;
22
22
  };
23
- export var DialogComparison = function (props) {
23
+ export function DialogComparison(props) {
24
24
  var open = props.open, data = props.data, columns = props.columns, setOpen = props.setOpen, onBookNow = props.onBookNow;
25
25
  var _a = useState([]), selectedValues = _a[0], setSelectedValues = _a[1];
26
26
  var _b = useState(data), filteredData = _b[0], setFilteredData = _b[1];
@@ -66,4 +66,4 @@ export var DialogComparison = function (props) {
66
66
  filteredData: filteredData,
67
67
  });
68
68
  }, children: "Book now" }) })] }) }));
69
- };
69
+ }
@@ -1,15 +1,17 @@
1
1
  import React from 'react';
2
+ import { DialogDeleteConfirmMultiple } from './DialogDeleteConfirmMultiple/DialogDeleteConfirmMultiple';
3
+ import { DialogDeleteConfirmWrapper } from './DialogDeleteConfirmWrapper';
2
4
  export interface DialogDeleteConfirmProps {
3
5
  open: boolean;
4
6
  setOpen: (open: boolean) => void;
5
7
  title: string;
6
8
  children?: React.ReactNode;
7
9
  }
8
- export declare const DialogDeleteConfirm: {
9
- (props: DialogDeleteConfirmProps): import("react/jsx-runtime").JSX.Element;
10
- Text: (props: {
10
+ export declare function DialogDeleteConfirm(props: DialogDeleteConfirmProps): import("react/jsx-runtime").JSX.Element;
11
+ export declare namespace DialogDeleteConfirm {
12
+ var Text: (props: {
11
13
  children: React.ReactNode;
12
14
  }) => import("react/jsx-runtime").JSX.Element;
13
- Wrapper: (props: import("./DialogDeleteConfirmWrapper").DialogDeleteConfirmWrapperProps) => import("react/jsx-runtime").JSX.Element;
14
- Multiple: React.FC<import("./DialogDeleteConfirmMultiple/DialogDeleteConfirmMultiple").DialogDeleteConfirmMultipleProps>;
15
- };
15
+ var Wrapper: typeof DialogDeleteConfirmWrapper;
16
+ var Multiple: typeof DialogDeleteConfirmMultiple;
17
+ }
@@ -7,10 +7,10 @@ var DialogDeleteConfirmText = function (props) {
7
7
  var children = props.children;
8
8
  return (_jsx(Text, { variant: "medium", size: "sm", leading: "4", children: children }));
9
9
  };
10
- export var DialogDeleteConfirm = function (props) {
10
+ export function DialogDeleteConfirm(props) {
11
11
  var open = props.open, title = props.title, children = props.children, setOpen = props.setOpen;
12
12
  return (_jsx(DialogBookingConfirm, { open: open, setOpen: setOpen, title: title, className: "!max-w-[500px]", closeOnOverlayClick: true, children: children }));
13
- };
13
+ }
14
14
  DialogDeleteConfirm.Text = DialogDeleteConfirmText;
15
15
  DialogDeleteConfirm.Wrapper = DialogDeleteConfirmWrapper;
16
16
  DialogDeleteConfirm.Multiple = DialogDeleteConfirmMultiple;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import './DialogDeleteConfirmMultiple.css';
3
2
  export interface AvailableQuote {
4
3
  id: string;
@@ -9,4 +8,4 @@ export interface DialogDeleteConfirmMultipleProps {
9
8
  onDelete?: (selectedQuotes: string[]) => void;
10
9
  quotes: AvailableQuote[];
11
10
  }
12
- export declare const DialogDeleteConfirmMultiple: React.FC<DialogDeleteConfirmMultipleProps>;
11
+ export declare function DialogDeleteConfirmMultiple(props: DialogDeleteConfirmMultipleProps): import("react/jsx-runtime").JSX.Element;
@@ -13,7 +13,7 @@ import { useEffect, useState } from 'react';
13
13
  import Checkbox from '../../../atoms/Checkbox/Checkbox';
14
14
  import { DialogDeleteConfirm } from '../DialogDeleteConfirm';
15
15
  import './DialogDeleteConfirmMultiple.css';
16
- export var DialogDeleteConfirmMultiple = function (props) {
16
+ export function DialogDeleteConfirmMultiple(props) {
17
17
  var quotes = props.quotes, onCancel = props.onCancel, onDelete = props.onDelete;
18
18
  var _a = useState([]), selectedQuotes = _a[0], setSelectedQuotes = _a[1];
19
19
  var _b = useState(false), isSelectAll = _b[0], setIsSelectAll = _b[1];
@@ -41,4 +41,4 @@ export var DialogDeleteConfirmMultiple = function (props) {
41
41
  setIsSelectAll(selectedQuotes.length === quotes.length);
42
42
  }, [selectedQuotes, quotes]);
43
43
  return (_jsx(DialogDeleteConfirm.Wrapper, { onCancel: onCancel, onOk: handleDeleteQuotes, children: _jsxs("div", { className: "confirm-multiple", children: [_jsx(Checkbox, { label: "Select all quotations", checked: isSelectAll, onChange: handleSelectAllQuotes, labelPosition: "leading", className: "confirm-multiple__all" }), _jsx("ul", { className: "mb-1", children: quotes.map(function (quote) { return (_jsx("li", { children: _jsx(Checkbox, { label: quote.name, checked: selectedQuotes.includes(quote.id), onChange: function () { return handleSelectQuote(quote); }, labelPosition: "leading" }) }, quote.id)); }) }), isSelectAll && (_jsx(Toast, { text: "Caution: This would delete all quotations created.", type: "warning", showIcon: false }))] }) }));
44
- };
44
+ }
@@ -7,4 +7,4 @@ export interface DialogDeleteConfirmWrapperProps {
7
7
  okText?: string;
8
8
  children: React.ReactNode;
9
9
  }
10
- export declare const DialogDeleteConfirmWrapper: (props: DialogDeleteConfirmWrapperProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare function DialogDeleteConfirmWrapper(props: DialogDeleteConfirmWrapperProps): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import Button from '../../atoms/Button/Button';
3
- export var DialogDeleteConfirmWrapper = function (props) {
3
+ export function DialogDeleteConfirmWrapper(props) {
4
4
  var onCancel = props.onCancel, _a = props.cancelText, cancelText = _a === void 0 ? 'Cancel' : _a, _b = props.okVariant, okVariant = _b === void 0 ? 'destructive' : _b, onOk = props.onOk, _c = props.okText, okText = _c === void 0 ? 'Delete' : _c, children = props.children;
5
5
  return (_jsxs("div", { className: "space-y-9", children: [children, _jsxs("div", { className: "grid grid-cols-2 gap-x-4", children: [_jsx(Button, { variant: "outline-secondary", onClick: onCancel, size: "sm", children: cancelText }), _jsx(Button, { variant: okVariant, onClick: onOk, size: "sm", children: okText })] })] }));
6
- };
6
+ }
@@ -4,4 +4,4 @@ export interface DialogQuoteRenameProps {
4
4
  quoteName: string;
5
5
  onSubmit: (quoteName: string) => void;
6
6
  }
7
- export declare const DialogQuoteRename: (props: DialogQuoteRenameProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare function DialogQuoteRename(props: DialogQuoteRenameProps): import("react/jsx-runtime").JSX.Element;
@@ -4,11 +4,11 @@ import Button from '../../atoms/Button/Button';
4
4
  import Input from '../../atoms/Inputs/Input/Input';
5
5
  import { Text } from '../../atoms/Typography/Typography';
6
6
  import { DialogBookingConfirm } from '../DialogBookingConfirm';
7
- export var DialogQuoteRename = function (props) {
7
+ export function DialogQuoteRename(props) {
8
8
  var open = props.open, setOpen = props.setOpen, quoteName = props.quoteName, onSubmit = props.onSubmit;
9
9
  var _a = useState(quoteName), value = _a[0], setValue = _a[1];
10
10
  var handleQuoteNameChange = function (e) {
11
11
  setValue(e.target.value);
12
12
  };
13
13
  return (_jsx(DialogBookingConfirm, { open: open, setOpen: setOpen, title: "Rename Quotation", className: "!max-w-[500px]", children: _jsxs("div", { className: "space-y-9", children: [_jsxs("div", { className: "space-y-2", children: [_jsx("label", { htmlFor: "quote-name", children: _jsx(Text, { as: "span", size: "sm", children: "Quotation name" }) }), _jsx(Input, { id: "quote-name", value: value, onChange: handleQuoteNameChange })] }), _jsxs("div", { className: "grid grid-cols-2 gap-x-4 pb-2", children: [_jsx(Button, { variant: "outline-secondary", onClick: function () { return setOpen(false); }, size: "sm", children: "Cancel" }), _jsx(Button, { variant: "secondary", onClick: function () { return onSubmit(value); }, size: "sm", children: "Save changes" })] })] }) }));
14
- };
14
+ }
@@ -1,12 +1,14 @@
1
1
  import React from 'react';
2
+ import { DialogSendingMailContent } from './DialogSendingMailContent';
3
+ import { DialogSendingMailMultiple } from './DialogSendingMailMultiple/DialogSendingMailMultiple';
2
4
  export interface DialogSendingMailProps {
3
5
  open: boolean;
4
6
  setOpen: (open: boolean) => void;
5
7
  children: React.ReactNode;
6
8
  type?: 'booking' | 'quotation';
7
9
  }
8
- export declare const DialogSendingMail: {
9
- (props: DialogSendingMailProps): import("react/jsx-runtime").JSX.Element;
10
- SingleQuote: React.FC<import("./DialogSendingMailContent").DialogSendingMailContentProps>;
11
- MultipleQuotes: React.FC<import("./DialogSendingMailMultiple/DialogSendingMailMultiple").DialogSendingMailMultipleProps>;
12
- };
10
+ export declare function DialogSendingMail(props: DialogSendingMailProps): import("react/jsx-runtime").JSX.Element;
11
+ export declare namespace DialogSendingMail {
12
+ var SingleQuote: typeof DialogSendingMailContent;
13
+ var MultipleQuotes: typeof DialogSendingMailMultiple;
14
+ }
@@ -2,9 +2,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { DialogBookingConfirm } from '../DialogBookingConfirm';
3
3
  import { DialogSendingMailContent } from './DialogSendingMailContent';
4
4
  import { DialogSendingMailMultiple } from './DialogSendingMailMultiple/DialogSendingMailMultiple';
5
- export var DialogSendingMail = function (props) {
5
+ export function DialogSendingMail(props) {
6
6
  var open = props.open, setOpen = props.setOpen, children = props.children, _a = props.type, type = _a === void 0 ? 'booking' : _a;
7
7
  return (_jsx(DialogBookingConfirm, { open: open, title: "Send ".concat(type, " via mail"), setOpen: setOpen, className: "!max-w-[800px]", closeOnOverlayClick: true, children: children }));
8
- };
8
+ }
9
9
  DialogSendingMail.SingleQuote = DialogSendingMailContent;
10
10
  DialogSendingMail.MultipleQuotes = DialogSendingMailMultiple;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { SendingMailSchema } from './sending-mail-schema';
3
2
  export interface DialogSendingMailContentProps {
4
3
  userInfo: {
@@ -12,4 +11,4 @@ export interface DialogSendingMailContentProps {
12
11
  onPreviewAttachment?: () => void;
13
12
  onCancel?: () => void;
14
13
  }
15
- export declare const DialogSendingMailContent: React.FC<DialogSendingMailContentProps>;
14
+ export declare function DialogSendingMailContent(props: DialogSendingMailContentProps): import("react/jsx-runtime").JSX.Element;
@@ -19,7 +19,7 @@ import Textarea from '../../atoms/Inputs/Textarea/Textarea';
19
19
  import Toast from '../../molecules/Toast/Toast';
20
20
  import { Form, FormControl, FormField, FormItem, FormMessage } from '../../ui/form';
21
21
  import { sendingMailSchema } from './sending-mail-schema';
22
- export var DialogSendingMailContent = function (props) {
22
+ export function DialogSendingMailContent(props) {
23
23
  var userInfo = props.userInfo, subject = props.subject, type = props.type, onSubmit = props.onSubmit, onPreviewAttachment = props.onPreviewAttachment, onCancel = props.onCancel;
24
24
  var messageText = function () {
25
25
  var name = "".concat(userInfo.firstName, " ").concat(userInfo.lastName);
@@ -46,4 +46,4 @@ export var DialogSendingMailContent = function (props) {
46
46
  var field = _a.field;
47
47
  return (_jsx(FormItem, { children: _jsxs("div", { className: "relative", children: [_jsx(FormControl, { children: _jsx(Textarea, __assign({ placeholder: "Write your email here... *" }, field)) }), _jsx(FormMessage, { className: "absolute bottom-0 translate-y-4" })] }) }));
48
48
  } }), _jsx(Button, { type: "button", size: "sm", onClick: onPreviewAttachment, children: "Preview Attachment" })] }), _jsx(Toast, { showIcon: false, type: "warning", className: "mt-8", text: "Disclaimer: Email formatting may appear distorted in certain older email clients (e.g Outlook Classic ). Content will remain intact, but the visual layout may differ from the original" }), _jsxs("div", { className: "flex justify-end gap-4 [&>*]:w-[250px] pb-2 pt-9", children: [_jsx(Button, { type: "button", variant: "outline-secondary", size: "sm", onClick: onCancel, children: "Cancel" }), _jsx(Button, { type: "submit", variant: "secondary", size: "sm", children: "Send" })] })] }) })));
49
- };
49
+ }
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { DialogSendingMailContentProps } from '../DialogSendingMailContent';
3
2
  import { SendingMailSchema } from '../sending-mail-schema';
4
3
  import './DialogSendingMailMultiple.css';
@@ -43,4 +42,4 @@ export interface DialogSendingMailMultipleProps extends Omit<DialogSendingMailCo
43
42
  *
44
43
  * @param props - The props of the component
45
44
  */
46
- export declare const DialogSendingMailMultiple: React.FC<DialogSendingMailMultipleProps>;
45
+ export declare function DialogSendingMailMultiple(props: DialogSendingMailMultipleProps): import("react/jsx-runtime").JSX.Element;
@@ -59,7 +59,7 @@ import './DialogSendingMailMultiple.css';
59
59
  *
60
60
  * @param props - The props of the component
61
61
  */
62
- export var DialogSendingMailMultiple = function (props) {
62
+ export function DialogSendingMailMultiple(props) {
63
63
  var data = props.data, onSelected = props.onSelected, onSubmit = props.onSubmit, onPreviewAttachment = props.onPreviewAttachment, rest = __rest(props, ["data", "onSelected", "onSubmit", "onPreviewAttachment"]);
64
64
  var _a = useState(false), isSelectAll = _a[0], setIsSelectAll = _a[1];
65
65
  var _b = useState(data), remainingQuotes = _b[0], setRemainingQuotes = _b[1];
@@ -138,4 +138,4 @@ export var DialogSendingMailMultiple = function (props) {
138
138
  formData: data,
139
139
  });
140
140
  } }))] }));
141
- };
141
+ }
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { DetailsContentAccomProps } from './DetailsContentAccom';
3
2
  export interface AccommodationProps extends DetailsContentAccomProps {
4
3
  /** Images of the accommodation */
@@ -23,4 +22,4 @@ export interface AccommodationProps extends DetailsContentAccomProps {
23
22
  * @param props - Props of the Accommodation component
24
23
  * @returns The Accommodation component
25
24
  */
26
- export declare const Accommodation: React.FC<AccommodationProps>;
25
+ export declare function Accommodation(props: AccommodationProps): import("react/jsx-runtime").JSX.Element;
@@ -40,7 +40,7 @@ import TabServiceDetails from './TabServiceDetails';
40
40
  * @param props - Props of the Accommodation component
41
41
  * @returns The Accommodation component
42
42
  */
43
- export var Accommodation = function (props) {
43
+ export function Accommodation(props) {
44
44
  var images = props.images, isOnRequest = props.isOnRequest, rest = __rest(props, ["images", "isOnRequest"]);
45
45
  return (_jsx(TabServiceDetails.Layout, { title: "Accommodation", icon: "accom", isOnRequest: isOnRequest, images: images, mobileContent: _jsx("div", { className: "mt-8", children: _jsx(DetailsContentAccom.Body, __assign({}, rest)) }), children: _jsx(DetailsContentAccom, __assign({}, rest)) }));
46
- };
46
+ }
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  export interface DetailContentTransferProps {
3
2
  pax: string;
4
3
  clientType: string;
@@ -6,4 +5,4 @@ export interface DetailContentTransferProps {
6
5
  airConditioning?: boolean;
7
6
  luggageTruck?: number;
8
7
  }
9
- export declare const DetailContentTransfer: React.FC<DetailContentTransferProps>;
8
+ export declare function DetailContentTransfer(props: DetailContentTransferProps): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import Chip from '../../atoms/Chip/Chip';
3
- export var DetailContentTransfer = function (props) {
3
+ export function DetailContentTransfer(props) {
4
4
  var pax = props.pax, clientType = props.clientType, carName = props.carName, airConditioning = props.airConditioning, luggageTruck = props.luggageTruck;
5
5
  return (_jsxs("div", { className: "flex gap-4", children: [_jsx(Chip, { type: "outline", color: "brand", label: pax, leadingIcon: "user", isBlackText: true }), _jsx(Chip, { type: "outline", color: "brand", label: "Client type: ".concat(clientType), leadingIcon: "user", isBlackText: true }), _jsx(Chip, { type: "outline", color: "brand", label: carName, leadingIcon: "car", isBlackText: true }), airConditioning && (_jsx(Chip, { type: "outline", color: "brand", label: "Air conditioning", leadingIcon: "air", isBlackText: true })), luggageTruck && (_jsx(Chip, { type: "outline", color: "brand", label: "Luggage truck: ".concat(luggageTruck > 1 ? "x".concat(luggageTruck) : luggageTruck), leadingIcon: "luggage", isBlackText: true }))] }));
6
- };
6
+ }
@@ -21,6 +21,18 @@ export interface DetailsContentAccomProps {
21
21
  /** Rooms info */
22
22
  roomsInfo: RoomsInfo[];
23
23
  }
24
+ /**
25
+ * Body for the DetailsContentAccom component.
26
+ *
27
+ * @example
28
+ * <DetailsContentAccomBody
29
+ * roomsInfo={roomsInfo}
30
+ * globalAmenities={globalAmenities}
31
+ * />
32
+ * @param props - Props of the DetailsContentAccomBody component
33
+ * @returns The DetailsContentAccomBody component
34
+ */
35
+ declare function DetailsContentAccomBody(props: Omit<DetailsContentAccomProps, 'roomTitle' | 'roomDescription'>): import("react/jsx-runtime").JSX.Element;
24
36
  /**
25
37
  * Details content for the Accommodation component.
26
38
  *
@@ -37,5 +49,6 @@ export interface DetailsContentAccomProps {
37
49
  */
38
50
  export declare function DetailsContentAccom(props: DetailsContentAccomProps): import("react/jsx-runtime").JSX.Element;
39
51
  export declare namespace DetailsContentAccom {
40
- var Body: (props: Omit<DetailsContentAccomProps, "roomTitle" | "roomDescription">) => import("react/jsx-runtime").JSX.Element;
52
+ var Body: typeof DetailsContentAccomBody;
41
53
  }
54
+ export {};
@@ -39,10 +39,10 @@ import TextWithIcon from '../../molecules/TextWithIcon/TextWithIcon';
39
39
  * @param props - Props of the DetailsContentAccomBody component
40
40
  * @returns The DetailsContentAccomBody component
41
41
  */
42
- var DetailsContentAccomBody = function (props) {
42
+ function DetailsContentAccomBody(props) {
43
43
  var roomsInfo = props.roomsInfo, globalAmenities = props.globalAmenities;
44
44
  return (_jsxs("div", { className: "space-y-4", children: [_jsx("div", { className: "grid grid-cols-2 gap-x-4", children: roomsInfo.map(function (room, index) { return (_jsxs("div", { className: "space-y-4", children: [_jsx(TextWithIcon, { icon: "accom", textVariant: "bold", textSize: "sm", children: room.roomName }), _jsxs("div", { className: "flex flex-wrap gap-2", children: [_jsxs(Chip, { color: "brand", type: "outline", leadingIcon: "user", isBlackText: true, children: [room.roomPax, " pax"] }), _jsx(Chip, { color: "brand", type: "outline", leadingIcon: "user", isBlackText: true, children: room.clientType }), _jsx(Chip, { color: "brand", type: "outline", leadingIcon: "utensils", isBlackText: true, children: room.mealPlan })] }), _jsx("div", { className: "flex flex-wrap gap-2", children: room.roomAmenities.map(function (amenity, index) { return (_jsx(Chip, { color: "accent", type: "outline", isBlackText: true, children: amenity }, "ra-".concat(index))); }) })] }, "ri-".concat(index))); }) }), _jsxs("div", { className: "grid grid-cols-2 gap-x-8", children: [_jsx(GlobalAmenities, { amenities: globalAmenities }), _jsx(CardServiceAccom, { className: "flex items-center justify-center", children: _jsx(Text, { variant: "bold", children: "Coming soon" }) })] })] }));
45
- };
45
+ }
46
46
  /**
47
47
  * Details content for the Accommodation component.
48
48
  *
@@ -1,7 +1,6 @@
1
- import React from 'react';
2
1
  import { DetailsContentExcursionProps } from './DetailsContentExcursion';
3
2
  export interface ExcursionProps extends DetailsContentExcursionProps {
4
3
  /** Images of the excursion */
5
4
  images: string[];
6
5
  }
7
- export declare const Excursion: React.FC<ExcursionProps>;
6
+ export declare function Excursion(props: ExcursionProps): import("react/jsx-runtime").JSX.Element;
@@ -23,7 +23,7 @@ var __rest = (this && this.__rest) || function (s, e) {
23
23
  import { jsx as _jsx } from "react/jsx-runtime";
24
24
  import { DetailsContentExcursion, } from './DetailsContentExcursion';
25
25
  import TabServiceDetails from './TabServiceDetails';
26
- export var Excursion = function (props) {
26
+ export function Excursion(props) {
27
27
  var images = props.images, rest = __rest(props, ["images"]);
28
28
  return (_jsx(TabServiceDetails.Layout, { title: "Excursion", icon: "map", images: images, children: _jsx(DetailsContentExcursion, __assign({}, rest)) }));
29
- };
29
+ }
@@ -2,8 +2,8 @@ import TabServiceDetailsLayout from './TabServiceDetailsLayout/TabServiceDetails
2
2
  declare function TabServiceDetails(props: React.PropsWithChildren): import("react/jsx-runtime").JSX.Element;
3
3
  declare namespace TabServiceDetails {
4
4
  var Layout: typeof TabServiceDetailsLayout;
5
- var Accommodation: import("react").FC<import("./Accommodation").AccommodationProps>;
6
- var Excursion: import("react").FC<import("./Excursion").ExcursionProps>;
7
- var Transfer: import("react").FC<import("./Transfer").TransferProps>;
5
+ var Accommodation: typeof import("./Accommodation").Accommodation;
6
+ var Excursion: typeof import("./Excursion").Excursion;
7
+ var Transfer: typeof import("./Transfer").Transfer;
8
8
  }
9
9
  export default TabServiceDetails;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { TransferData } from '../TabCancellationPolicy/HeaderExcursion/HeaderTransfer';
3
2
  import { DetailContentTransferProps } from './DetailContentTransfer';
4
3
  export interface TransferProps {
@@ -9,4 +8,4 @@ export interface TransferProps {
9
8
  /** Details of the transfer */
10
9
  transferDetails: DetailContentTransferProps;
11
10
  }
12
- export declare const Transfer: React.FC<TransferProps>;
11
+ export declare function Transfer(props: TransferProps): import("react/jsx-runtime").JSX.Element;
@@ -13,7 +13,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
13
13
  import CancellationHeader from '../TabCancellationPolicy/CancellationHeader';
14
14
  import TabCancellationPolicy from '../TabCancellationPolicy/TabCancellationPolicy';
15
15
  import { DetailContentTransfer, } from './DetailContentTransfer';
16
- export var Transfer = function (props) {
16
+ export function Transfer(props) {
17
17
  var image = props.image, transferData = props.transferData, transferDetails = props.transferDetails;
18
18
  return (_jsx(TabCancellationPolicy.Layout, { title: "Transfer", icon: "car", image: image, header: _jsx(CancellationHeader, { children: _jsx(CancellationHeader.Transfer, { data: transferData }) }), children: _jsx(DetailContentTransfer, __assign({}, transferDetails)) }));
19
- };
19
+ }
@@ -50,4 +50,4 @@ export interface TableProps<T extends TableRowData<T>> {
50
50
  * @returns React.ReactNode
51
51
  *
52
52
  */
53
- export declare const Table: <T extends TableRowData<T>>(props: TableProps<T>) => import("react/jsx-runtime").JSX.Element;
53
+ export declare function Table<T extends TableRowData<T>>(props: TableProps<T>): import("react/jsx-runtime").JSX.Element;
@@ -65,7 +65,7 @@ var NestedContent = function (_a) {
65
65
  * @returns React.ReactNode
66
66
  *
67
67
  */
68
- export var Table = function (props) {
68
+ export function Table(props) {
69
69
  var columns = props.columns, data = props.data, pagination = props.pagination, isGrouped = props.isGrouped, _a = props.totalRows, totalRows = _a === void 0 ? {} : _a, _b = props.isTotalBorderDash, isTotalBorderDash = _b === void 0 ? true : _b, _c = props.totalSubstractedSpace, totalSubstractedSpace = _c === void 0 ? 10 : _c, onClickRow = props.onClickRow;
70
70
  var normalizeLastColumnWidth = function () {
71
71
  var width = columns[columns.length - 1].width;
@@ -97,4 +97,4 @@ export var Table = function (props) {
97
97
  var currency = _a[0], total = _a[1];
98
98
  return (_jsx("div", { children: _jsx(Text, { size: "md", variant: "bold", children: priceFormatter(total, currency) }) }, currency));
99
99
  }) })] }) })] }) }) }) })), pagination && (_jsx("div", { className: "flex justify-end mt-4", children: _jsx(Pagination, __assign({}, pagination)) }))] }) }));
100
- };
100
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mautourco-components",
3
- "version": "0.2.36",
3
+ "version": "0.2.37",
4
4
  "private": false,
5
5
  "description": "Bibliothèque de composants Motorco pour le redesign",
6
6
  "main": "dist/index.js",
@@ -34,11 +34,8 @@ export interface ActionDropdownProps {
34
34
  * @param ActionDropdownProps
35
35
  * @returns
36
36
  */
37
- export const ActionDropdown: React.FC<ActionDropdownProps> = ({
38
- data,
39
- children,
40
- maxWidth = '153px',
41
- }) => {
37
+ export function ActionDropdown(props: ActionDropdownProps) {
38
+ const { data, children, maxWidth = '153px' } = props;
42
39
  const [open, setOpen] = useState(false);
43
40
 
44
41
  return (
@@ -94,4 +91,4 @@ export const ActionDropdown: React.FC<ActionDropdownProps> = ({
94
91
  </PopoverContent>
95
92
  </Popover>
96
93
  );
97
- };
94
+ }
@@ -8,11 +8,12 @@ export interface AddItemButtonProps {
8
8
  onClick?: () => void;
9
9
  }
10
10
 
11
- export const AddItemButton: React.FC<AddItemButtonProps> = ({ label, onClick }) => {
11
+ export function AddItemButton(props: AddItemButtonProps) {
12
+ const { label, onClick } = props;
12
13
  return (
13
14
  <button className="add-item-button" onClick={onClick}>
14
15
  <Icon name="plus-circle" size="lg" />
15
16
  <Text variant="medium">{label}</Text>
16
17
  </button>
17
18
  );
18
- };
19
+ }
@@ -46,9 +46,9 @@ import { BookingPaxTransfer } from './BookingPaxTransfer';
46
46
  * @param props - The props for the BookingPax component.
47
47
  * @returns The BookingPax component.
48
48
  */
49
- export const BookingPax = (props: React.PropsWithChildren) => {
49
+ export function BookingPax(props: React.PropsWithChildren) {
50
50
  return <div className="booking-pax space-y-6" {...props} />;
51
- };
51
+ }
52
52
 
53
53
  BookingPax.Accom = BookingPaxAccom;
54
54
  BookingPax.Excursion = BookingPaxExcursion;
@@ -1,5 +1,5 @@
1
1
  import useBookingPax from '@/src/hooks/useBookingPax';
2
- import React, { useEffect, useMemo, useRef } from 'react';
2
+ import { useEffect, useMemo, useRef } from 'react';
3
3
  import TextWithIcon from '../TextWithIcon/TextWithIcon';
4
4
  import {
5
5
  BookingPaxClient,
@@ -69,7 +69,7 @@ export interface BookingPaxAccomProps extends Pick<
69
69
  onError?: (roomIndex: number, hasError: boolean) => void;
70
70
  }
71
71
 
72
- export const BookingPaxAccom: React.FC<BookingPaxAccomProps> = (props) => {
72
+ export function BookingPaxAccom(props: BookingPaxAccomProps) {
73
73
  const {
74
74
  rooms,
75
75
  clientsInfo = [],
@@ -151,4 +151,4 @@ export const BookingPaxAccom: React.FC<BookingPaxAccomProps> = (props) => {
151
151
  <BookingPaxRemarks onChange={onRemarkChange} />
152
152
  </BookingPaxLayout>
153
153
  );
154
- };
154
+ }
@@ -123,7 +123,7 @@ export interface BookingPaxClientProps {
123
123
  * @param props.onPaxChange - The callback function to call when the pax changes.
124
124
  * @returns The BookingPaxClient component.
125
125
  */
126
- export const BookingPaxClient: React.FC<BookingPaxClientProps> = (props) => {
126
+ export function BookingPaxClient(props: BookingPaxClientProps) {
127
127
  const {
128
128
  clients,
129
129
  id,
@@ -259,4 +259,4 @@ export const BookingPaxClient: React.FC<BookingPaxClientProps> = (props) => {
259
259
  </div>
260
260
  </div>
261
261
  );
262
- };
262
+ }
@@ -1,5 +1,5 @@
1
1
  import useBookingPax from '@/src/hooks/useBookingPax';
2
- import React, { useEffect } from 'react';
2
+ import { useEffect } from 'react';
3
3
  import {
4
4
  BookingPaxClient,
5
5
  BookingPaxClientInfo,
@@ -74,7 +74,7 @@ const mapType: Record<BookingPaxExcursionProps['type'], string> = {
74
74
  * @param props - The props for the BookingPaxExcursion component.
75
75
  * @returns The BookingPaxExcursion component.
76
76
  */
77
- export const BookingPaxExcursion: React.FC<BookingPaxExcursionProps> = (props) => {
77
+ export function BookingPaxExcursion(props: BookingPaxExcursionProps) {
78
78
  const {
79
79
  name,
80
80
  type,
@@ -117,4 +117,4 @@ export const BookingPaxExcursion: React.FC<BookingPaxExcursionProps> = (props) =
117
117
  <BookingPaxRemarks onChange={onRemarkChange} />
118
118
  </BookingPaxLayout>
119
119
  );
120
- };
120
+ }
@@ -66,9 +66,9 @@ const BookingPaxWithLocation: React.FC<BookingPaxWithLocationProps> = (props) =>
66
66
  );
67
67
  };
68
68
 
69
- export const BookingPaxHeader = (props: React.PropsWithChildren) => {
69
+ export function BookingPaxHeader(props: React.PropsWithChildren) {
70
70
  return <div className="booking-pax-header" {...props} />;
71
- };
71
+ }
72
72
 
73
73
  BookingPaxHeader.Name = BookingPaxWithName;
74
74
  BookingPaxHeader.Location = BookingPaxWithLocation;
@@ -41,7 +41,7 @@ export interface BookingPaxLayoutProps {
41
41
  * @param props - The props for the BookingPaxLayout component.
42
42
  * @returns The BookingPaxLayout component.
43
43
  */
44
- export const BookingPaxLayout: React.FC<BookingPaxLayoutProps> = (props) => {
44
+ export function BookingPaxLayout(props: BookingPaxLayoutProps) {
45
45
  const { title, icon, header, children, className } = props;
46
46
  return (
47
47
  <div className={cn('booking-pax-layout', className)}>
@@ -52,4 +52,4 @@ export const BookingPaxLayout: React.FC<BookingPaxLayoutProps> = (props) => {
52
52
  <div className="booking-pax-layout__content">{children}</div>
53
53
  </div>
54
54
  );
55
- };
55
+ }
@@ -20,7 +20,8 @@ export interface BookingPaxRemarksProps {
20
20
  * @param props - The props for the BookingPaxRemarks component.
21
21
  * @returns The BookingPaxRemarks component.
22
22
  */
23
- export const BookingPaxRemarks: React.FC<BookingPaxRemarksProps> = ({ onChange }) => {
23
+ export function BookingPaxRemarks(props: BookingPaxRemarksProps) {
24
+ const { onChange } = props;
24
25
  const [remarks, setRemarks] = useState('');
25
26
 
26
27
  const textareaRef = useRef<HTMLTextAreaElement>(null);
@@ -57,4 +58,4 @@ export const BookingPaxRemarks: React.FC<BookingPaxRemarksProps> = ({ onChange }
57
58
  />
58
59
  </div>
59
60
  );
60
- };
61
+ }
@@ -89,7 +89,7 @@ export const mapTransferType: Record<BookingPaxTransferProps['type'], string> =
89
89
  * @param props - The props for the BookingPaxTransfer component.
90
90
  * @returns The BookingPaxTransfer component.
91
91
  */
92
- export const BookingPaxTransfer: React.FC<BookingPaxTransferProps> = (props) => {
92
+ export function BookingPaxTransfer(props: BookingPaxTransferProps) {
93
93
  const {
94
94
  from,
95
95
  to,
@@ -168,4 +168,4 @@ export const BookingPaxTransfer: React.FC<BookingPaxTransferProps> = (props) =>
168
168
  <BookingPaxRemarks onChange={onRemarkChange} />
169
169
  </BookingPaxLayout>
170
170
  );
171
- };
171
+ }
@@ -5,9 +5,9 @@ import { ResumeExcursion } from './ResumeExcursion/ResumeExcursion';
5
5
  import { ResumeOtherService } from './ResumeOtherService';
6
6
  import { ResumeTransfer } from './ResumeTransfer';
7
7
 
8
- export const BookingResume = (props: React.PropsWithChildren) => {
8
+ export function BookingResume(props: React.PropsWithChildren) {
9
9
  return <div className="booking-resume space-y-8" {...props} />;
10
- };
10
+ }
11
11
 
12
12
  BookingResume.Layout = BookingResumeLayout;
13
13
  BookingResume.Accommodation = ResumeAccom;