mautourco-components 0.2.30 → 0.2.31

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 (326) hide show
  1. package/dist/components/atoms/Avatar/Avatar.js +1 -12
  2. package/dist/components/atoms/Button/Button.js +1 -12
  3. package/dist/components/atoms/Checkbox/Checkbox.js +2 -13
  4. package/dist/components/atoms/Chip/Chip.js +1 -12
  5. package/dist/components/atoms/Icon/icons/AccomIcon.js +1 -12
  6. package/dist/components/atoms/Icon/icons/AirIcon.js +1 -12
  7. package/dist/components/atoms/Icon/icons/ArrivalIcon.js +1 -12
  8. package/dist/components/atoms/Icon/icons/ArrowDownOutlineIcon.js +1 -12
  9. package/dist/components/atoms/Icon/icons/ArrowRightOutlineIcon.js +1 -12
  10. package/dist/components/atoms/Icon/icons/BadgeAlertIcon.js +1 -12
  11. package/dist/components/atoms/Icon/icons/BikeIcon.js +1 -12
  12. package/dist/components/atoms/Icon/icons/BookingIcon.js +1 -12
  13. package/dist/components/atoms/Icon/icons/Building2OutlineIcon.js +1 -12
  14. package/dist/components/atoms/Icon/icons/BuildingIcon.js +1 -12
  15. package/dist/components/atoms/Icon/icons/BusIcon.js +1 -12
  16. package/dist/components/atoms/Icon/icons/Calendar2Icon.js +1 -12
  17. package/dist/components/atoms/Icon/icons/CalendarIcon.js +1 -12
  18. package/dist/components/atoms/Icon/icons/CalendarOutlineIcon.js +1 -12
  19. package/dist/components/atoms/Icon/icons/CalendarRangeOutlineIcon.js +1 -12
  20. package/dist/components/atoms/Icon/icons/CarFront.js +1 -12
  21. package/dist/components/atoms/Icon/icons/CarIcon.js +1 -12
  22. package/dist/components/atoms/Icon/icons/CatamaranIcon.js +1 -12
  23. package/dist/components/atoms/Icon/icons/Check.js +1 -12
  24. package/dist/components/atoms/Icon/icons/CheckCircleIcon.js +1 -12
  25. package/dist/components/atoms/Icon/icons/Chevron.js +1 -1
  26. package/dist/components/atoms/Icon/icons/ClockIcon.js +1 -12
  27. package/dist/components/atoms/Icon/icons/Close.js +1 -12
  28. package/dist/components/atoms/Icon/icons/CloseCircleIcon.js +1 -12
  29. package/dist/components/atoms/Icon/icons/DeleteIcon.js +1 -12
  30. package/dist/components/atoms/Icon/icons/DepartureIcon.js +1 -12
  31. package/dist/components/atoms/Icon/icons/EyeIcon.js +1 -12
  32. package/dist/components/atoms/Icon/icons/FacebookIcon.js +1 -12
  33. package/dist/components/atoms/Icon/icons/HomeIcon.js +1 -12
  34. package/dist/components/atoms/Icon/icons/Info2Icon.d.ts +4 -0
  35. package/dist/components/atoms/Icon/icons/Info2Icon.js +25 -0
  36. package/dist/components/atoms/Icon/icons/InfoIcon.js +1 -12
  37. package/dist/components/atoms/Icon/icons/Land.js +1 -12
  38. package/dist/components/atoms/Icon/icons/LineIcon.js +1 -12
  39. package/dist/components/atoms/Icon/icons/LinkedInIcon.js +1 -12
  40. package/dist/components/atoms/Icon/icons/LuggageIcon.js +1 -12
  41. package/dist/components/atoms/Icon/icons/MapIcon.js +1 -12
  42. package/dist/components/atoms/Icon/icons/MapPinIcon.js +1 -12
  43. package/dist/components/atoms/Icon/icons/MautoucoLogo.d.ts +0 -1
  44. package/dist/components/atoms/Icon/icons/MautoucoLogo.js +1 -12
  45. package/dist/components/atoms/Icon/icons/MenuIcon.d.ts +0 -1
  46. package/dist/components/atoms/Icon/icons/MenuIcon.js +1 -12
  47. package/dist/components/atoms/Icon/icons/MicroIcon.js +1 -12
  48. package/dist/components/atoms/Icon/icons/MinusIcon.js +1 -12
  49. package/dist/components/atoms/Icon/icons/MoreIcon.js +1 -12
  50. package/dist/components/atoms/Icon/icons/MoreVerticalIcon.js +1 -12
  51. package/dist/components/atoms/Icon/icons/NightIcon.js +1 -12
  52. package/dist/components/atoms/Icon/icons/PlaneIcon.js +1 -12
  53. package/dist/components/atoms/Icon/icons/PlaneLandingOutlineIcon.js +1 -12
  54. package/dist/components/atoms/Icon/icons/PlaneTakeoffOutlineIcon.js +1 -12
  55. package/dist/components/atoms/Icon/icons/PlusCircleIcon.js +1 -12
  56. package/dist/components/atoms/Icon/icons/PlusIcon.js +1 -12
  57. package/dist/components/atoms/Icon/icons/QuotationIcon.js +1 -12
  58. package/dist/components/atoms/Icon/icons/SeaIcon.js +1 -12
  59. package/dist/components/atoms/Icon/icons/Search.js +1 -12
  60. package/dist/components/atoms/Icon/icons/Settings.js +1 -12
  61. package/dist/components/atoms/Icon/icons/ShipIcon.js +1 -12
  62. package/dist/components/atoms/Icon/icons/StopWatchIcon.js +1 -12
  63. package/dist/components/atoms/Icon/icons/StrollerIcon.js +1 -12
  64. package/dist/components/atoms/Icon/icons/TwitterIcon.js +1 -12
  65. package/dist/components/atoms/Icon/icons/User.js +1 -12
  66. package/dist/components/atoms/Icon/icons/UserIcon.js +1 -12
  67. package/dist/components/atoms/Icon/icons/Utensils.js +1 -12
  68. package/dist/components/atoms/Icon/icons/WalletIcon.js +1 -12
  69. package/dist/components/atoms/Icon/icons/Youtube.js +1 -12
  70. package/dist/components/atoms/Icon/icons/registry.d.ts +1 -0
  71. package/dist/components/atoms/Icon/icons/registry.js +2 -0
  72. package/dist/components/atoms/Illustration/illustrations.js +4 -4
  73. package/dist/components/atoms/Inputs/DropdownInput/DropdownInput.js +1 -12
  74. package/dist/components/atoms/Inputs/Input/Input.d.ts +2 -1
  75. package/dist/components/atoms/Inputs/Input/Input.js +2 -13
  76. package/dist/components/atoms/Link/Link.js +4 -15
  77. package/dist/components/atoms/RatingStar/RatingStar.js +2 -13
  78. package/dist/components/atoms/SegmentedButton/SegmentedButton.js +3 -14
  79. package/dist/components/atoms/SelectedValue/SelectedValue.js +1 -12
  80. package/dist/components/atoms/Slider/Slider.js +1 -12
  81. package/dist/components/atoms/Spinner/Spinner.js +1 -12
  82. package/dist/components/atoms/Tab/Tab.js +1 -1
  83. package/dist/components/atoms/Typography/Typography.js +2 -13
  84. package/dist/components/molecules/AccomodationDocket/AccomodationDocket.js +3 -14
  85. package/dist/components/molecules/ActionDropdown/ActionDropdown.d.ts +0 -1
  86. package/dist/components/molecules/ActionDropdown/ActionDropdown.js +5 -16
  87. package/dist/components/molecules/AddItemButton/AddItemButton.js +1 -12
  88. package/dist/components/molecules/BookingPax/BookingPaxAccom.js +3 -14
  89. package/dist/components/molecules/BookingPax/BookingPaxClient/BookingPaxClient.d.ts +0 -1
  90. package/dist/components/molecules/BookingPax/BookingPaxClient/BookingPaxClient.js +5 -5
  91. package/dist/components/molecules/BookingPax/BookingPaxExcursion.js +1 -12
  92. package/dist/components/molecules/BookingPax/BookingPaxHeader.js +2 -2
  93. package/dist/components/molecules/BookingPax/BookingPaxLayout/BookingPaxLayout.d.ts +0 -1
  94. package/dist/components/molecules/BookingPax/BookingPaxLayout/BookingPaxLayout.js +1 -12
  95. package/dist/components/molecules/BookingPax/BookingPaxRemarks.js +1 -12
  96. package/dist/components/molecules/BookingPax/BookingPaxTransfer.js +1 -12
  97. package/dist/components/molecules/BookingResume/BookingResumeLayout/BookingResumeLayout.js +1 -12
  98. package/dist/components/molecules/BookingResume/ResumeAccom/ResumeAccom.js +1 -12
  99. package/dist/components/molecules/BookingResume/ResumeExcursion/ResumeExcursion.js +1 -12
  100. package/dist/components/molecules/BookingResume/ResumeOtherService.js +1 -12
  101. package/dist/components/molecules/BookingResume/ResumeTransfer.js +1 -12
  102. package/dist/components/molecules/Breadcrumbs/Breadcrumbs.js +1 -12
  103. package/dist/components/molecules/Calendar/CalendarInput.js +2 -13
  104. package/dist/components/molecules/Calendar/DateTime.d.ts +9 -9
  105. package/dist/components/molecules/Calendar/DateTime.js +3 -3
  106. package/dist/components/molecules/Calendar/TimePicker.js +1 -12
  107. package/dist/components/molecules/DateDisplay/DateDisplay.js +2 -13
  108. package/dist/components/molecules/DetailsInfo/DetailsAction.js +2 -13
  109. package/dist/components/molecules/DetailsInfo/DetailsAgency/DetailsAgency.js +1 -12
  110. package/dist/components/molecules/DetailsInfo/DetailsClient/DetailsClient.js +1 -12
  111. package/dist/components/molecules/DetailsInfo/DetailsFile.js +1 -12
  112. package/dist/components/molecules/DetailsInfo/DetailsInfo.d.ts +0 -1
  113. package/dist/components/molecules/DialogContentPolicy/CancellationLayout/CancellationLayout.js +1 -12
  114. package/dist/components/molecules/DialogContentPolicy/DialogCancellationAccom.d.ts +0 -1
  115. package/dist/components/molecules/DialogContentPolicy/DialogCancellationAccom.js +1 -12
  116. package/dist/components/molecules/DialogContentPolicy/DialogCancellationExcursion.d.ts +0 -1
  117. package/dist/components/molecules/DialogContentPolicy/DialogCancellationExcursion.js +1 -12
  118. package/dist/components/molecules/DialogContentPolicy/DialogCancellationList.d.ts +3 -3
  119. package/dist/components/molecules/DialogContentPolicy/DialogCancellationList.js +2 -2
  120. package/dist/components/molecules/DialogContentPolicy/DialogContentPolicy.js +1 -12
  121. package/dist/components/molecules/DocketPrices/DocketPrices.js +1 -12
  122. package/dist/components/molecules/ExcursionDocket/ExcursionDocket.js +1 -12
  123. package/dist/components/molecules/FeatureRow/FeatureRow.js +1 -12
  124. package/dist/components/molecules/FromTo/FromTo.d.ts +0 -1
  125. package/dist/components/molecules/FromTo/FromTo.js +1 -12
  126. package/dist/components/molecules/GlobalAmenities/GlobalAmenities.js +1 -12
  127. package/dist/components/molecules/LocationDropdown/LocationDropdown.js +6 -17
  128. package/dist/components/molecules/MultiSelectDropdown/MultiSelectDropdown.d.ts +1 -0
  129. package/dist/components/molecules/MultiSelectDropdown/MultiSelectDropdown.js +23 -28
  130. package/dist/components/molecules/OtherServiceDocket/OtherServiceDocket.js +1 -12
  131. package/dist/components/molecules/Pagination/Pagination.js +4 -15
  132. package/dist/components/molecules/PaxChips/PaxChips.d.ts +11 -0
  133. package/dist/components/molecules/PaxChips/PaxChips.js +9 -0
  134. package/dist/components/molecules/PaxDisplay/PaxDisplay.d.ts +0 -1
  135. package/dist/components/molecules/PaxDisplay/PaxDisplay.js +5 -16
  136. package/dist/components/molecules/PriceDisplay/PriceDisplay.js +1 -12
  137. package/dist/components/molecules/RatingTab/RatingTab.js +1 -12
  138. package/dist/components/molecules/SectionTitle/SectionTitle.js +1 -12
  139. package/dist/components/molecules/ServiceInfo/ServiceInfo.js +2 -13
  140. package/dist/components/molecules/ServiceLanguages/ServiceLanguages.js +1 -12
  141. package/dist/components/molecules/ServiceSelector/ServiceSelector.js +4 -15
  142. package/dist/components/molecules/ServiceTitle/ServiceTitle.js +1 -12
  143. package/dist/components/molecules/Stepper/Stepper.js +1 -12
  144. package/dist/components/molecules/StepperTimeline/StepperTimeline.js +6 -17
  145. package/dist/components/molecules/TabGroup/TabGroup.js +1 -12
  146. package/dist/components/molecules/TableServiceItem/DetailsCol.js +1 -12
  147. package/dist/components/molecules/TableServiceItem/ItemCol.d.ts +0 -1
  148. package/dist/components/molecules/TableServiceItem/ItemCol.js +2 -13
  149. package/dist/components/molecules/TableServiceItem/RowOtherServices.js +1 -12
  150. package/dist/components/molecules/TableServiceItem/RowTransfer.js +1 -12
  151. package/dist/components/molecules/TableServiceItem/index.d.ts +0 -1
  152. package/dist/components/molecules/TextWithBorderBottom/TextWithBorderBottom.js +1 -1
  153. package/dist/components/molecules/TextWithIcon/TextWithIcon.d.ts +0 -1
  154. package/dist/components/molecules/TextWithIcon/TextWithIcon.js +1 -12
  155. package/dist/components/molecules/TimelineItem/ServiceAccommodation.js +1 -12
  156. package/dist/components/molecules/TimelineItem/ServiceExcursion.js +1 -12
  157. package/dist/components/molecules/TimelineItem/ServiceTransfer.js +1 -12
  158. package/dist/components/molecules/TimelineItem/TimelineHeader.js +1 -12
  159. package/dist/components/molecules/TimelineItem/TimelineItem.d.ts +0 -1
  160. package/dist/components/molecules/TimelineItem/TimelineItem.js +1 -12
  161. package/dist/components/molecules/Toast/Toast.css +2107 -0
  162. package/dist/components/molecules/Toast/Toast.d.ts +2 -2
  163. package/dist/components/molecules/Toast/Toast.js +1 -12
  164. package/dist/components/molecules/TooltipDisplay/TooltipDisplay.js +1 -12
  165. package/dist/components/molecules/TransferDocket/TransferDocket.js +2 -13
  166. package/dist/components/molecules/UserCard/UserCard.js +3 -14
  167. package/dist/components/organisms/Booking/BookingDocket/BookingDocket.d.ts +0 -1
  168. package/dist/components/organisms/Booking/BookingDocket/BookingDocket.js +1 -1
  169. package/dist/components/organisms/Booking/BookingHeader.js +1 -12
  170. package/dist/components/organisms/Booking/BookingStep/BookingStep.js +1 -12
  171. package/dist/components/organisms/CarBookingCard/CarBookingCard.js +2 -2
  172. package/dist/components/organisms/CarBookingCard/CarBookingCardSkeleton.js +1 -12
  173. package/dist/components/organisms/CardContainer/CardContainer.js +1 -12
  174. package/dist/components/organisms/DateTimePicker/DateTimePicker.js +1 -12
  175. package/dist/components/organisms/Dialog/Dialog.js +3 -15
  176. package/dist/components/organisms/DialogBookingAddItem/AddItemNewService.d.ts +16 -0
  177. package/dist/components/organisms/DialogBookingAddItem/AddItemNewService.js +44 -0
  178. package/dist/components/organisms/DialogBookingAddItem/AddItemSelector.d.ts +8 -0
  179. package/dist/components/organisms/DialogBookingAddItem/AddItemSelector.js +12 -0
  180. package/dist/components/organisms/DialogBookingAddItem/DialogBookingAddItem.d.ts +17 -0
  181. package/dist/components/organisms/DialogBookingAddItem/DialogBookingAddItem.js +55 -0
  182. package/dist/components/organisms/DialogBookingAddItem/index.d.ts +3 -0
  183. package/dist/components/organisms/DialogBookingAddItem/index.js +3 -0
  184. package/dist/components/organisms/DialogBookingConfirm/BookingCancellationPolicy.d.ts +2 -2
  185. package/dist/components/organisms/DialogBookingConfirm/BookingCancellationPolicy.js +1 -12
  186. package/dist/components/organisms/DialogBookingConfirm/BookingMailSent.js +1 -12
  187. package/dist/components/organisms/DialogBookingConfirm/BookingReference.js +1 -12
  188. package/dist/components/organisms/DialogBookingConfirm/BookingSuccess.js +1 -12
  189. package/dist/components/organisms/DialogBookingConfirm/DialogBookingConfirm.d.ts +4 -0
  190. package/dist/components/organisms/DialogBookingConfirm/DialogBookingConfirm.js +2 -13
  191. package/dist/components/organisms/DialogCancelService/CancelBooking/CancelBooking.css +2117 -0
  192. package/dist/components/organisms/DialogCancelService/CancelBooking/CancelBooking.d.ts +16 -0
  193. package/dist/components/organisms/DialogCancelService/CancelBooking/CancelBooking.js +28 -0
  194. package/dist/components/organisms/{CancelService → DialogCancelService}/CancelPolicy.d.ts +2 -2
  195. package/dist/components/organisms/DialogCancelService/CancelPolicy.js +8 -0
  196. package/dist/components/organisms/DialogCancelService/ConfirmDelete/ConfirmDelete.js +24 -0
  197. package/dist/components/organisms/{CancelService/CancelService.d.ts → DialogCancelService/DialogCancelService.d.ts} +4 -3
  198. package/dist/components/organisms/DialogCancelService/DialogCancelService.js +14 -0
  199. package/dist/components/organisms/DialogCancelService/FromList.js +18 -0
  200. package/dist/components/organisms/DialogCancelService/index.d.ts +5 -0
  201. package/dist/components/organisms/DialogCancelService/index.js +1 -0
  202. package/dist/components/organisms/DialogComparison/DialogComparison.css +2116 -0
  203. package/dist/components/organisms/DialogComparison/DialogComparison.d.ts +24 -0
  204. package/dist/components/organisms/DialogComparison/DialogComparison.js +69 -0
  205. package/dist/components/organisms/DialogDeleteConfirm/DialogDeleteConfirm.d.ts +14 -0
  206. package/dist/components/organisms/DialogDeleteConfirm/DialogDeleteConfirm.js +11 -0
  207. package/dist/components/organisms/DialogSendingMail/DialogSendingMail.d.ts +11 -0
  208. package/dist/components/organisms/DialogSendingMail/DialogSendingMail.js +8 -0
  209. package/dist/components/organisms/DialogSendingMail/DialogSendingMailContent.d.ts +15 -0
  210. package/dist/components/organisms/DialogSendingMail/DialogSendingMailContent.js +49 -0
  211. package/dist/components/organisms/DialogSendingMail/index.d.ts +4 -0
  212. package/dist/components/organisms/DialogSendingMail/index.js +2 -0
  213. package/dist/components/organisms/DialogSendingMail/sending-mail-schema.d.ts +7 -0
  214. package/dist/components/organisms/DialogSendingMail/sending-mail-schema.js +16 -0
  215. package/dist/components/organisms/Docket/Docket.js +8 -19
  216. package/dist/components/organisms/Footer/Footer.js +3 -14
  217. package/dist/components/organisms/MultipleQuotationDocket/MultipleQuotationDocket.js +2 -13
  218. package/dist/components/organisms/PaxSelector/PaxSelector.js +22 -22
  219. package/dist/components/organisms/QuoteHeader/QuoteHeader.js +2 -13
  220. package/dist/components/organisms/RoundTrip/RoundTrip.js +1 -1
  221. package/dist/components/organisms/SearchBarTransfer/SearchBarTransfer.js +5 -5
  222. package/dist/components/organisms/TabCancellationPolicy/CancellationAccom.js +1 -12
  223. package/dist/components/organisms/TabCancellationPolicy/CancellationExcursion.js +1 -12
  224. package/dist/components/organisms/TabCancellationPolicy/CancellationHeader.d.ts +0 -1
  225. package/dist/components/organisms/TabCancellationPolicy/CancellationTransfer.js +1 -12
  226. package/dist/components/organisms/TabCancellationPolicy/HeaderAccom.js +1 -12
  227. package/dist/components/organisms/TabCancellationPolicy/HeaderExcursion/HeaderTransfer.js +1 -12
  228. package/dist/components/organisms/TabCancellationPolicy/PolicyAccom/PolicyAccom.js +1 -12
  229. package/dist/components/organisms/TabCancellationPolicy/PolicyExcursion.js +1 -12
  230. package/dist/components/organisms/TabCancellationPolicy/PolicyTransfer.js +1 -12
  231. package/dist/components/organisms/TabCancellationPolicy/TabCancellationPolicy.d.ts +0 -1
  232. package/dist/components/organisms/TabCancellationPolicy/TabCancellationPolicyLayout/TabCancellationPolicyLayout.js +1 -12
  233. package/dist/components/organisms/TabServiceDetails/Accommodation.js +1 -1
  234. package/dist/components/organisms/TabServiceDetails/DetailContentTransfer.js +1 -12
  235. package/dist/components/organisms/TabServiceDetails/DetailsContentAccom.js +2 -2
  236. package/dist/components/organisms/TabServiceDetails/DetailsContentExcursion.js +1 -12
  237. package/dist/components/organisms/TabServiceDetails/Excursion.js +1 -1
  238. package/dist/components/organisms/TabServiceDetails/TabServiceDetails.d.ts +0 -1
  239. package/dist/components/organisms/TabServiceDetails/TabServiceDetailsLayout/TabServiceDetailsLayout.js +1 -12
  240. package/dist/components/organisms/TabServiceDetails/Transfer.js +1 -1
  241. package/dist/components/organisms/Table/Table.css +48 -32
  242. package/dist/components/organisms/Table/Table.d.ts +4 -1
  243. package/dist/components/organisms/Table/Table.js +19 -16
  244. package/dist/components/organisms/Table/TableCell.d.ts +1 -1
  245. package/dist/components/organisms/Table/TableCell.js +1 -12
  246. package/dist/components/organisms/Table/columns/booking-cancel-service-columns.js +15 -31
  247. package/dist/components/organisms/Table/columns/booking-columns.js +7 -22
  248. package/dist/components/organisms/Table/columns/comparison-columns.d.ts +3 -0
  249. package/dist/components/organisms/Table/columns/comparison-columns.js +97 -0
  250. package/dist/components/organisms/Table/columns/detail-resume-columns.js +16 -31
  251. package/dist/components/organisms/Table/columns/index.d.ts +11 -7
  252. package/dist/components/organisms/Table/columns/index.js +2 -0
  253. package/dist/components/organisms/Table/columns/quotation-columns.d.ts +4 -1
  254. package/dist/components/organisms/Table/columns/quotation-columns.js +10 -19
  255. package/dist/components/organisms/Timeline/Timeline.js +1 -1
  256. package/dist/components/organisms/TopNavigation/DesktopNav.d.ts +0 -1
  257. package/dist/components/organisms/TopNavigation/DesktopNav.js +5 -16
  258. package/dist/components/organisms/TopNavigation/MobileNav.js +9 -20
  259. package/dist/components/organisms/TransferLine/TransferLine.js +1 -1
  260. package/dist/components/ui/button.d.ts +1 -1
  261. package/dist/components/ui/calendar.js +2 -2
  262. package/dist/components/ui/form.d.ts +24 -0
  263. package/dist/components/ui/form.js +79 -0
  264. package/dist/components/ui/label.d.ts +4 -0
  265. package/dist/components/ui/label.js +30 -0
  266. package/dist/hooks/useBookingPax.d.ts +1 -1
  267. package/dist/index.d.ts +26 -15
  268. package/dist/index.js +10 -2
  269. package/dist/lib/price-formatter.d.ts +1 -0
  270. package/dist/lib/price-formatter.js +13 -0
  271. package/dist/lib/shared-constant.d.ts +1 -0
  272. package/dist/lib/shared-constant.js +1 -0
  273. package/dist/lib/utils.d.ts +1 -2
  274. package/dist/lib/utils.js +1 -1
  275. package/dist/styles/tokens/tokens.d.ts +464 -464
  276. package/package.json +7 -3
  277. package/src/components/atoms/Icon/icons/Info2Icon.tsx +42 -0
  278. package/src/components/atoms/Icon/icons/registry.tsx +2 -0
  279. package/src/components/atoms/Inputs/Input/Input.tsx +4 -2
  280. package/src/components/molecules/Calendar/DateTime.tsx +6 -4
  281. package/src/components/molecules/DialogContentPolicy/DialogCancellationList.tsx +6 -6
  282. package/src/components/molecules/DialogContentPolicy/DialogContentPolicy.tsx +1 -1
  283. package/src/components/molecules/MultiSelectDropdown/MultiSelectDropdown.tsx +117 -82
  284. package/src/components/molecules/PaxChips/PaxChips.tsx +30 -0
  285. package/src/components/molecules/TextWithIcon/TextWithIcon.tsx +2 -2
  286. package/src/components/molecules/Toast/Toast.css +27 -0
  287. package/src/components/molecules/Toast/Toast.tsx +9 -9
  288. package/src/components/organisms/Dialog/Dialog.tsx +85 -64
  289. package/src/components/organisms/{BookingAddItem → DialogBookingAddItem}/AddItemNewService.tsx +17 -2
  290. package/src/components/organisms/{BookingAddItem/BookingAddItem.tsx → DialogBookingAddItem/DialogBookingAddItem.tsx} +6 -6
  291. package/src/components/organisms/{BookingAddItem → DialogBookingAddItem}/index.ts +1 -1
  292. package/src/components/organisms/DialogBookingConfirm/BookingCancellationPolicy.tsx +2 -2
  293. package/src/components/organisms/DialogBookingConfirm/DialogBookingConfirm.tsx +14 -2
  294. package/src/components/organisms/DialogCancelService/CancelBooking/CancelBooking.css +24 -0
  295. package/src/components/organisms/DialogCancelService/CancelBooking/CancelBooking.tsx +98 -0
  296. package/src/components/organisms/{CancelService → DialogCancelService}/CancelPolicy.tsx +4 -4
  297. package/src/components/organisms/{CancelService/CancelService.tsx → DialogCancelService/DialogCancelService.tsx} +7 -5
  298. package/src/components/organisms/DialogCancelService/index.ts +6 -0
  299. package/src/components/organisms/DialogComparison/DialogComparison.css +23 -0
  300. package/src/components/organisms/DialogComparison/DialogComparison.tsx +157 -0
  301. package/src/components/organisms/DialogDeleteConfirm/DialogDeleteConfirm.tsx +57 -0
  302. package/src/components/organisms/DialogSendingMail/DialogSendingMail.tsx +27 -0
  303. package/src/components/organisms/DialogSendingMail/DialogSendingMailContent.tsx +115 -0
  304. package/src/components/organisms/DialogSendingMail/index.ts +5 -0
  305. package/src/components/organisms/DialogSendingMail/sending-mail-schema.ts +19 -0
  306. package/src/components/organisms/Table/Table.css +48 -32
  307. package/src/components/organisms/Table/Table.tsx +24 -5
  308. package/src/components/organisms/Table/columns/booking-cancel-service-columns.tsx +16 -32
  309. package/src/components/organisms/Table/columns/booking-columns.tsx +2 -19
  310. package/src/components/organisms/Table/columns/comparison-columns.tsx +140 -0
  311. package/src/components/organisms/Table/columns/detail-resume-columns.tsx +17 -33
  312. package/src/components/organisms/Table/columns/index.ts +2 -0
  313. package/src/components/organisms/Table/columns/quotation-columns.tsx +17 -9
  314. package/src/components/ui/form.tsx +160 -0
  315. package/src/components/ui/label.tsx +22 -0
  316. package/dist/components/organisms/CancelService/CancelPolicy.js +0 -19
  317. package/dist/components/organisms/CancelService/CancelService.js +0 -23
  318. package/dist/components/organisms/CancelService/ConfirmDelete/ConfirmDelete.js +0 -35
  319. package/dist/components/organisms/CancelService/FromList.js +0 -29
  320. /package/dist/components/organisms/{CancelService → DialogCancelService}/ConfirmDelete/ConfirmDelete.css +0 -0
  321. /package/dist/components/organisms/{CancelService → DialogCancelService}/ConfirmDelete/ConfirmDelete.d.ts +0 -0
  322. /package/dist/components/organisms/{CancelService → DialogCancelService}/FromList.d.ts +0 -0
  323. /package/src/components/organisms/{BookingAddItem → DialogBookingAddItem}/AddItemSelector.tsx +0 -0
  324. /package/src/components/organisms/{CancelService → DialogCancelService}/ConfirmDelete/ConfirmDelete.css +0 -0
  325. /package/src/components/organisms/{CancelService → DialogCancelService}/ConfirmDelete/ConfirmDelete.tsx +0 -0
  326. /package/src/components/organisms/{CancelService → DialogCancelService}/FromList.tsx +0 -0
@@ -1,14 +1,3 @@
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
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
2
  import { Text } from '../../atoms/Typography/Typography';
14
3
  import { ServiceInfo } from '../../molecules/ServiceInfo/ServiceInfo';
@@ -16,5 +5,5 @@ import { ServiceLanguages } from '../../molecules/ServiceLanguages/ServiceLangua
16
5
  import { TextWithBorderBottom } from '../../molecules/TextWithBorderBottom/TextWithBorderBottom';
17
6
  export function DetailsContentExcursion(props) {
18
7
  var excursionTitle = props.excursionTitle, excursionDescription = props.excursionDescription, pickUpPoint = props.pickUpPoint, serviceInfos = props.serviceInfos;
19
- return (_jsxs("div", __assign({ className: "space-y-6" }, { children: [_jsxs("div", __assign({ className: "space-y-4" }, { children: [_jsx(TextWithBorderBottom, __assign({ variant: "bold", size: "xl" }, { children: excursionTitle })), _jsx(Text, __assign({ variant: "medium", leading: "5" }, { children: excursionDescription }))] })), _jsxs("div", __assign({ className: "space-y-2" }, { children: [_jsx(Text, __assign({ variant: "bold", size: "sm", leading: "4" }, { children: "Pick-up point:" })), _jsx(Text, __assign({ size: "sm", leading: "4" }, { children: pickUpPoint }))] })), _jsxs(ServiceInfo, { children: [_jsx(ServiceInfo.Item, __assign({ icon: "micro", label: "Languages" }, { children: _jsx(ServiceLanguages, { languages: serviceInfos.languages }) })), _jsx(ServiceInfo.Item, __assign({ icon: "stopwatch", label: "Duration" }, { children: serviceInfos.duration })), _jsx(ServiceInfo.Item, __assign({ icon: "utensils", label: "Meal" }, { children: serviceInfos.meal })), _jsx(ServiceInfo.Item, __assign({ icon: "bike", label: "Difficulty" }, { children: serviceInfos.difficulty })), serviceInfos.withTransfer && (_jsx(ServiceInfo.Item, { icon: "bus", label: "Prise en charge inclus" }))] })] })));
8
+ return (_jsxs("div", { className: "space-y-6", children: [_jsxs("div", { className: "space-y-4", children: [_jsx(TextWithBorderBottom, { variant: "bold", size: "xl", children: excursionTitle }), _jsx(Text, { variant: "medium", leading: "5", children: excursionDescription })] }), _jsxs("div", { className: "space-y-2", children: [_jsx(Text, { variant: "bold", size: "sm", leading: "4", children: "Pick-up point:" }), _jsx(Text, { size: "sm", leading: "4", children: pickUpPoint })] }), _jsxs(ServiceInfo, { children: [_jsx(ServiceInfo.Item, { icon: "micro", label: "Languages", children: _jsx(ServiceLanguages, { languages: serviceInfos.languages }) }), _jsx(ServiceInfo.Item, { icon: "stopwatch", label: "Duration", children: serviceInfos.duration }), _jsx(ServiceInfo.Item, { icon: "utensils", label: "Meal", children: serviceInfos.meal }), _jsx(ServiceInfo.Item, { icon: "bike", label: "Difficulty", children: serviceInfos.difficulty }), serviceInfos.withTransfer && (_jsx(ServiceInfo.Item, { icon: "bus", label: "Prise en charge inclus" }))] })] }));
20
9
  }
@@ -25,5 +25,5 @@ import { DetailsContentExcursion, } from './DetailsContentExcursion';
25
25
  import TabServiceDetails from './TabServiceDetails';
26
26
  export var Excursion = function (props) {
27
27
  var images = props.images, rest = __rest(props, ["images"]);
28
- return (_jsx(TabServiceDetails.Layout, __assign({ title: "Excursion", icon: "map", images: images }, { children: _jsx(DetailsContentExcursion, __assign({}, rest)) })));
28
+ return (_jsx(TabServiceDetails.Layout, { title: "Excursion", icon: "map", images: images, children: _jsx(DetailsContentExcursion, __assign({}, rest)) }));
29
29
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import TabServiceDetailsLayout from './TabServiceDetailsLayout/TabServiceDetailsLayout';
3
2
  declare function TabServiceDetails(props: React.PropsWithChildren): import("react/jsx-runtime").JSX.Element;
4
3
  declare namespace TabServiceDetails {
@@ -1,14 +1,3 @@
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
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
2
  import { useMobile } from '../../../../hooks/useMobile';
14
3
  import { cn } from '../../../../lib/utils';
@@ -35,5 +24,5 @@ import './TabServiceDetailsLayout.css';
35
24
  export default function TabServiceDetailsLayout(props) {
36
25
  var title = props.title, icon = props.icon, isOnRequest = props.isOnRequest, children = props.children, images = props.images, mobileContent = props.mobileContent;
37
26
  var isMobile = useMobile(1280).isMobile;
38
- return (_jsxs("div", { children: [_jsxs("div", __assign({ className: "details-service__layout" }, { children: [_jsxs(TextWithIcon, __assign({ icon: icon, color: isOnRequest ? 'yellow' : 'accent', textVariant: "bold" }, { children: [title, isOnRequest && _jsx(Chip, __assign({ color: "yellow" }, { children: "On request" }))] })), _jsxs("div", __assign({ className: "details-service__layout-flex" }, { children: [_jsxs("div", __assign({ className: "details-service__layout-flex-images" }, { children: [images[0] && (_jsx("figure", __assign({ className: cn(images.length === 1 && 'single-image') }, { children: _jsx("img", { src: images[0], alt: title, width: 400, height: 400 }) }), images[0])), images.length > 1 && (_jsx("div", __assign({ className: "details-service__layout-flex-images-grid" }, { children: images.slice(1, 3).map(function (image) { return (_jsx("figure", { children: _jsx("img", { src: image, alt: title, width: 400, height: 400 }) }, image)); }) })))] })), _jsx("div", __assign({ className: "details-service__layout-content" }, { children: _jsx("div", __assign({ className: "details-service__layout-content-body" }, { children: children })) }))] }))] })), isMobile && mobileContent] }));
27
+ return (_jsxs("div", { children: [_jsxs("div", { className: "details-service__layout", children: [_jsxs(TextWithIcon, { icon: icon, color: isOnRequest ? 'yellow' : 'accent', textVariant: "bold", children: [title, isOnRequest && _jsx(Chip, { color: "yellow", children: "On request" })] }), _jsxs("div", { className: "details-service__layout-flex", children: [_jsxs("div", { className: "details-service__layout-flex-images", children: [images[0] && (_jsx("figure", { className: cn(images.length === 1 && 'single-image'), children: _jsx("img", { src: images[0], alt: title, width: 400, height: 400 }) }, images[0])), images.length > 1 && (_jsx("div", { className: "details-service__layout-flex-images-grid", children: images.slice(1, 3).map(function (image) { return (_jsx("figure", { children: _jsx("img", { src: image, alt: title, width: 400, height: 400 }) }, image)); }) }))] }), _jsx("div", { className: "details-service__layout-content", children: _jsx("div", { className: "details-service__layout-content-body", children: children }) })] })] }), isMobile && mobileContent] }));
39
28
  }
@@ -15,5 +15,5 @@ import TabCancellationPolicy from '../TabCancellationPolicy/TabCancellationPolic
15
15
  import { DetailContentTransfer, } from './DetailContentTransfer';
16
16
  export var Transfer = function (props) {
17
17
  var image = props.image, transferData = props.transferData, transferDetails = props.transferDetails;
18
- return (_jsx(TabCancellationPolicy.Layout, __assign({ title: "Transfer", icon: "car", image: image, header: _jsx(CancellationHeader, { children: _jsx(CancellationHeader.Transfer, { data: transferData }) }) }, { children: _jsx(DetailContentTransfer, __assign({}, transferDetails)) })));
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
  };
@@ -2202,7 +2202,7 @@
2202
2202
  &::after {
2203
2203
  content: '';
2204
2204
  position: absolute;
2205
- inset: -1px;
2205
+ inset: -1px -1px 1px -1px;
2206
2206
  pointer-events: none;
2207
2207
  max-width: 100%;
2208
2208
  background-image:
@@ -2289,48 +2289,64 @@
2289
2289
 
2290
2290
  .table__total {
2291
2291
  tr {
2292
- border: 1px solid transparent;
2292
+ border: 1px solid var(--divider-color-default);
2293
+ border-left: none;
2294
+ border-right: none;
2293
2295
  position: relative;
2294
- &::after {
2295
- content: '';
2296
- position: absolute;
2297
- inset: -1px;
2298
- pointer-events: none;
2299
- background-image:
2300
- repeating-linear-gradient(
2301
- to right,
2302
- var(--divider-color-default) 0,
2303
- var(--divider-color-default) 12px,
2304
- transparent 12px,
2305
- transparent 24px
2306
- ),
2307
- repeating-linear-gradient(
2308
- to right,
2309
- var(--divider-color-default) 0,
2310
- var(--divider-color-default) 12px,
2311
- transparent 12px,
2312
- transparent 24px
2313
- );
2314
- background-size:
2315
- 100% 1px,
2316
- 100% 1px;
2317
- background-position: top, bottom;
2318
- background-repeat: repeat-x, repeat-x;
2319
- }
2320
2296
  }
2321
2297
  td {
2322
2298
  padding-block: var(--spacing-padding-px-4);
2323
2299
  &:last-child {
2324
- width: 160px;
2325
- @media (min-width: 1680px) {
2326
- width: var(--last-column-width);
2327
- }
2300
+ /* width: 160px;*/
2301
+ /* @media (min-width: 1680px) {
2302
+ } */
2303
+ width: var(--last-column-width);
2328
2304
  }
2329
2305
  }
2330
2306
  }
2331
2307
 
2308
+ .table__total--dashed tr {
2309
+ border: 1px solid transparent;
2310
+ position: relative;
2311
+ &::after {
2312
+ content: '';
2313
+ position: absolute;
2314
+ inset: -1px;
2315
+ pointer-events: none;
2316
+ background-image:
2317
+ repeating-linear-gradient(
2318
+ to right,
2319
+ var(--divider-color-default) 0,
2320
+ var(--divider-color-default) 12px,
2321
+ transparent 12px,
2322
+ transparent 24px
2323
+ ),
2324
+ repeating-linear-gradient(
2325
+ to right,
2326
+ var(--divider-color-default) 0,
2327
+ var(--divider-color-default) 12px,
2328
+ transparent 12px,
2329
+ transparent 24px
2330
+ );
2331
+ background-size:
2332
+ 100% 1px,
2333
+ 100% 1px;
2334
+ background-position: top, bottom;
2335
+ background-repeat: repeat-x, repeat-x;
2336
+ }
2337
+ }
2338
+
2332
2339
  .table__row-with-children {
2333
2340
  > td {
2334
2341
  padding: 0;
2335
2342
  }
2343
+ .table__row-nested {
2344
+ border-top: none;
2345
+ }
2346
+ .table .table__nested-wrapper tr {
2347
+ border-top: none;
2348
+ &:last-child {
2349
+ border-bottom: solid 1px var(--color-surface-300);
2350
+ }
2351
+ }
2336
2352
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PaginationProps } from '../../molecules/Pagination/Pagination';
3
2
  import './Table.css';
4
3
  import { ColumnType } from './TableCell';
@@ -31,6 +30,10 @@ export interface TableProps<T extends TableRowData<T>> {
31
30
  totalRows?: Record<string, string | number>;
32
31
  /** Whether the child rows are visible */
33
32
  isGrouped?: boolean;
33
+ /** Whether the total rows are bordered with a dashed border */
34
+ isTotalBorderDash?: boolean;
35
+ /** Whether the last column is visible */
36
+ totalSubstractedSpace?: number;
34
37
  }
35
38
  /**
36
39
  * A table component for displaying structured data in rows and columns. Supports customizable column definitions and data rows.
@@ -10,6 +10,7 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { priceFormatter } from '../../../lib/price-formatter';
13
14
  import { cn } from '../../../lib/utils';
14
15
  import { AnimatePresence, domAnimation, LazyMotion } from 'motion/react';
15
16
  import * as motion from 'motion/react-m';
@@ -42,12 +43,12 @@ var NestedContent = function (_a) {
42
43
  }
43
44
  }, [children]);
44
45
  var Tag = isGrouped ? 'div' : motion.div;
45
- return (_jsx(Tag, __assign({ ref: contentRef, initial: { height: 0, opacity: 0 }, animate: { height: height, opacity: 1 }, exit: { height: 0, opacity: 0 }, transition: {
46
+ return (_jsx(Tag, { ref: contentRef, initial: { height: 0, opacity: 0 }, animate: { height: height, opacity: 1 }, exit: { height: 0, opacity: 0 }, transition: {
46
47
  height: { duration: 0.2, ease: 'easeInOut' },
47
48
  opacity: { duration: 0.15, ease: 'easeInOut' },
48
- }, className: "table__nested-wrapper" }, { children: _jsx("table", __assign({ className: "table" }, { children: _jsx("tbody", { children: children.map(function (child, childIndex) { return (_jsx("tr", __assign({ className: cn(child.className, {
49
+ }, className: "table__nested-wrapper", children: _jsx("table", { className: "table", children: _jsx("tbody", { children: children.map(function (child, childIndex) { return (_jsx("tr", { className: cn(child.className, {
49
50
  'table__row-clickable': onClickRow,
50
- }), onClick: function (e) { return onClickRow === null || onClickRow === void 0 ? void 0 : onClickRow(e, child); } }, { children: _jsx(TableCell, { columns: columns, row: child, rowIndex: childIndex, childIndex: childIndex }) }), "ch-".concat(rowIndex, "-").concat(childIndex))); }) }) })) })));
51
+ }), onClick: function (e) { return onClickRow === null || onClickRow === void 0 ? void 0 : onClickRow(e, child); }, children: _jsx(TableCell, { columns: columns, row: child, rowIndex: childIndex, childIndex: childIndex }) }, "ch-".concat(rowIndex, "-").concat(childIndex))); }) }) }) }));
51
52
  };
52
53
  /**
53
54
  * A table component for displaying structured data in rows and columns. Supports customizable column definitions and data rows.
@@ -65,33 +66,35 @@ var NestedContent = function (_a) {
65
66
  *
66
67
  */
67
68
  export var Table = function (props) {
68
- var columns = props.columns, data = props.data, pagination = props.pagination, isGrouped = props.isGrouped, _a = props.totalRows, totalRows = _a === void 0 ? {} : _a, onClickRow = props.onClickRow;
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;
69
70
  var normalizeLastColumnWidth = function () {
70
71
  var width = columns[columns.length - 1].width;
71
72
  if (typeof width === 'number') {
72
- return "".concat(width - 10, "px");
73
+ return "".concat(width - totalSubstractedSpace, "px");
73
74
  }
74
75
  return width;
75
76
  };
76
77
  var hasTotal = Object.keys(totalRows).length > 0;
77
- return (_jsx(LazyMotion, __assign({ features: domAnimation }, { children: _jsxs("div", { children: [_jsx("div", __assign({ className: cn('table-container', { 'table-container--no-total': !hasTotal }) }, { children: _jsxs("table", __assign({ className: "table" }, { children: [_jsx("thead", __assign({ className: "table__header" }, { children: _jsx("tr", { children: columns.map(function (column, columnIndex) { return (_jsx("th", __assign({ className: column.className, style: column.width
78
+ return (_jsx(LazyMotion, { features: domAnimation, children: _jsxs("div", { children: [_jsx("div", { className: cn('table-container', { 'table-container--no-total': !hasTotal }), children: _jsxs("table", { className: "table", children: [_jsx("thead", { className: "table__header", children: _jsx("tr", { children: columns.map(function (column, columnIndex) { return (_jsx("th", { className: column.className, style: column.width
78
79
  ? { minWidth: column.width, width: column.width }
79
- : undefined }, { children: _jsx(Text, __assign({ variant: "bold", size: "sm" }, { children: column.header })) }), "hd-".concat(columnIndex))); }) }) })), _jsx("tbody", __assign({ className: "table__body" }, { children: data.map(function (row, rowIndex) {
80
+ : undefined, children: _jsx(Text, { variant: "bold", size: "sm", children: column.header }) }, "hd-".concat(columnIndex))); }) }) }), _jsx("tbody", { className: "table__body", children: data.map(function (row, rowIndex) {
80
81
  var _a, _b;
81
82
  var hasVisibleChildren = (_a = row.children) === null || _a === void 0 ? void 0 : _a.some(function (child) { return child.visible; });
82
- var defaultTable = (_jsx("tr", __assign({ className: cn(row.className, {
83
+ var defaultTable = (_jsx("tr", { className: cn(row.className, {
83
84
  'table__row-nested': (_b = row.children) === null || _b === void 0 ? void 0 : _b.length,
84
85
  'table__row-clickable': onClickRow,
85
- }), onClick: function (e) { return onClickRow === null || onClickRow === void 0 ? void 0 : onClickRow(e, row); } }, { children: _jsx(TableCell, { columns: columns, row: row, rowIndex: rowIndex }) })));
86
- return (_jsx(Fragment, { children: isGrouped ? (row.children && row.children.length > 0 ? (_jsx("tr", __assign({ className: "table__row-grouped" }, { children: _jsx("td", __assign({ colSpan: columns.length }, { children: _jsx(NestedContent, { isGrouped: isGrouped, rowIndex: rowIndex, columns: columns, children: row.children || [], onClickRow: onClickRow }) })) }))) : (defaultTable)) : !row.children ? (defaultTable) : (_jsx("tr", __assign({ className: "table__row-with-children", onClick: function (e) { return onClickRow === null || onClickRow === void 0 ? void 0 : onClickRow(e, row); } }, { children: _jsx("td", __assign({ colSpan: columns.length, className: cn({
86
+ }), onClick: function (e) { return onClickRow === null || onClickRow === void 0 ? void 0 : onClickRow(e, row); }, children: _jsx(TableCell, { columns: columns, row: row, rowIndex: rowIndex }) }));
87
+ return (_jsx(Fragment, { children: isGrouped ? (row.children && row.children.length > 0 ? (_jsx("tr", { className: "table__row-grouped", children: _jsx("td", { colSpan: columns.length, children: _jsx(NestedContent, { isGrouped: isGrouped, rowIndex: rowIndex, columns: columns, children: row.children || [], onClickRow: onClickRow }) }) })) : (defaultTable)) : !row.children ? (defaultTable) : (_jsx("tr", { className: "table__row-with-children", onClick: function (e) { return onClickRow === null || onClickRow === void 0 ? void 0 : onClickRow(e, row); }, children: _jsx("td", { colSpan: columns.length, className: cn({
87
88
  'table__children--visible': hasVisibleChildren,
88
- }) }, { children: _jsx("table", __assign({ className: "table" }, { children: _jsxs("tbody", { children: [defaultTable, _jsx(AnimatePresence, __assign({ initial: false }, { children: hasVisibleChildren && (_jsx("tr", __assign({ className: cn('table__no-hover', {
89
+ }), children: _jsx("table", { className: "table", children: _jsxs("tbody", { children: [defaultTable, _jsx(AnimatePresence, { initial: false, children: hasVisibleChildren && (_jsx("tr", { className: cn('table__no-hover', {
89
90
  'table__row-nested': row.children && row.children.length > 0,
90
- }) }, { children: _jsx("td", __assign({ colSpan: columns.length, className: "table__cell-nested" }, { children: _jsx(NestedContent, { rowIndex: rowIndex, columns: columns, children: row.children || [] }) })) }), "nested-".concat(rowIndex))) }))] }) })) })) }))) }, "rw-".concat(rowIndex)));
91
- }) }))] })) })), hasTotal && (_jsx("div", __assign({ className: "table__total-container" }, { children: _jsx("table", __assign({ className: "table" }, { children: _jsx("tbody", __assign({ className: "table__total" }, { children: _jsxs("tr", { children: [_jsx("td", { colSpan: columns.length - 1 }), _jsx("td", __assign({ style: {
91
+ }), children: _jsx("td", { colSpan: columns.length, className: "table__cell-nested", children: _jsx(NestedContent, { rowIndex: rowIndex, columns: columns, children: row.children || [] }) }) }, "nested-".concat(rowIndex))) })] }) }) }) })) }, "rw-".concat(rowIndex)));
92
+ }) })] }) }), hasTotal && (_jsx("div", { className: 'table__total-container', children: _jsx("table", { className: "table", children: _jsx("tbody", { className: cn('table__total', {
93
+ 'table__total--dashed': isTotalBorderDash,
94
+ }), children: _jsxs("tr", { children: [_jsx("td", { colSpan: columns.length - 1 }), _jsx("td", { style: {
92
95
  '--last-column-width': normalizeLastColumnWidth(),
93
- } }, { children: _jsxs("div", __assign({ className: "relative" }, { children: [_jsxs(Text, __assign({ size: "md", variant: "bold", className: "absolute top-0 -left-3 -translate-x-full" }, { children: ["Total :", ' '] })), _jsx("div", { children: Object.entries(totalRows).map(function (_a) {
96
+ }, children: _jsxs("div", { className: "relative", children: [_jsxs(Text, { size: "md", variant: "bold", className: "absolute top-0 -left-3 -translate-x-full", children: ["Total :", ' '] }), _jsx("div", { children: Object.entries(totalRows).map(function (_a) {
94
97
  var currency = _a[0], total = _a[1];
95
- return (_jsx("div", { children: _jsxs(Text, __assign({ size: "md", variant: "bold" }, { children: [currency, " ", total] })) }, currency));
96
- }) })] })) }))] }) })) })) }))), pagination && (_jsx("div", __assign({ className: "flex justify-end mt-4" }, { children: _jsx(Pagination, __assign({}, pagination)) })))] }) })));
98
+ return (_jsx("div", { children: _jsx(Text, { size: "md", variant: "bold", children: priceFormatter(total, currency) }) }, currency));
99
+ }) })] }) })] }) }) }) })), pagination && (_jsx("div", { className: "flex justify-end mt-4", children: _jsx(Pagination, __assign({}, pagination)) }))] }) }));
97
100
  };
@@ -13,4 +13,4 @@ export interface TableCellProps<T = TableRowData> {
13
13
  rowIndex: number;
14
14
  childIndex?: number;
15
15
  }
16
- export declare const TableCell: <T extends TableRowData<any>>(props: TableCellProps<T>) => import("react/jsx-runtime").JSX.Element;
16
+ export declare const TableCell: <T extends TableRowData>(props: TableCellProps<T>) => import("react/jsx-runtime").JSX.Element;
@@ -1,16 +1,5 @@
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
1
  import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
13
2
  export var TableCell = function (props) {
14
3
  var columns = props.columns, row = props.row, rowIndex = props.rowIndex, childIndex = props.childIndex;
15
- return (_jsx(_Fragment, { children: columns.map(function (column, columnIndex) { return (_jsx("td", __assign({ style: column.width ? { minWidth: column.width, width: column.width } : undefined }, { children: column.key === 'actions' ? (_jsx("div", { children: column.cell({}, row, rowIndex, childIndex) })) : (column.cell(row[column.key], row, rowIndex, childIndex)) }), "cl-".concat(rowIndex, "-").concat(columnIndex))); }) }));
4
+ return (_jsx(_Fragment, { children: columns.map(function (column, columnIndex) { return (_jsx("td", { style: column.width ? { minWidth: column.width, width: column.width } : undefined, children: column.key === 'actions' ? (_jsx("div", { children: column.cell({}, row, rowIndex, childIndex) })) : (column.cell(row[column.key], row, rowIndex, childIndex)) }, "cl-".concat(rowIndex, "-").concat(columnIndex))); }) }));
16
5
  };
@@ -1,19 +1,8 @@
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
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
13
2
  import Button from '../../../atoms/Button/Button';
14
- import Chip from '../../../atoms/Chip/Chip';
15
3
  import { Text } from '../../../atoms/Typography/Typography';
16
4
  import { DateDisplay } from '../../../molecules/DateDisplay/DateDisplay';
5
+ import { PaxChips } from '../../../molecules/PaxChips/PaxChips';
17
6
  import { ServiceType, } from '../../../../types/table/index';
18
7
  import { RowAccommodation } from '../../../molecules/TableServiceItem/RowAccommodation';
19
8
  import { RowExcursion } from '../../../molecules/TableServiceItem/RowExcursion';
@@ -114,35 +103,30 @@ export var bookingCancelServiceColumns = function (params) {
114
103
  width: 329,
115
104
  cell: function (value, raw) {
116
105
  var pax = {
117
- Adult: 0,
118
- Teen: 0,
119
- Infant: 0,
120
- Child: 0,
106
+ adult: 0,
107
+ teen: 0,
108
+ infant: 0,
109
+ child: 0,
121
110
  };
122
111
  switch (value) {
123
112
  case ServiceType.ACCOMMODATION:
124
113
  case ServiceType.EXCURSION:
125
114
  case ServiceType.TRANSFER:
126
115
  var item = raw;
127
- pax.Adult = item.AdultCount;
128
- pax.Teen = item.TeenCount;
129
- pax.Infant = item.InfantCount;
130
- pax.Child = item.ChildCount;
116
+ pax.adult = item.AdultCount;
117
+ pax.teen = item.TeenCount;
118
+ pax.infant = item.InfantCount;
119
+ pax.child = item.ChildCount;
131
120
  break;
132
121
  case ServiceType.OTHER_SERVICE:
133
122
  var otherService = raw;
134
- pax.Adult = otherService.adult_pax;
135
- pax.Teen = otherService.teen_pax;
136
- pax.Infant = otherService.infant_pax;
137
- pax.Child = otherService.child_pax;
123
+ pax.adult = otherService.adult_pax;
124
+ pax.teen = otherService.teen_pax;
125
+ pax.infant = otherService.infant_pax;
126
+ pax.child = otherService.child_pax;
138
127
  break;
139
128
  }
140
- return (_jsx("div", __assign({ className: "flex items-center gap-x-3" }, { children: Object.keys(pax).map(function (k, index) {
141
- var _a;
142
- var count = (_a = pax[k]) !== null && _a !== void 0 ? _a : 0;
143
- var type = count > 0 ? 'filled' : 'outline';
144
- return (_jsx(Chip, { label: "".concat(k, " ").concat(count), size: "sm", color: "accent", type: type, className: "!px-3" }, "pax-".concat(index)));
145
- }) })));
129
+ return _jsx(PaxChips, { pax: pax });
146
130
  },
147
131
  },
148
132
  {
@@ -175,7 +159,7 @@ export var bookingCancelServiceColumns = function (params) {
175
159
  break;
176
160
  }
177
161
  var showRemoveButton = onRemove && raw.Type !== ServiceType.OTHER_SERVICE && childIndex === 0;
178
- return (_jsxs("div", __assign({ className: "flex items-center justify-between" }, { children: [_jsxs(Text, __assign({ size: "sm", variant: "bold" }, { children: [total.currency, " ", total.total] })), showRemoveButton && (_jsx(Button, __assign({ variant: "destructive", size: "sm", onClick: function () { return onRemove(raw, index, childIndex); } }, { children: "Remove" })))] })));
162
+ return (_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs(Text, { size: "sm", variant: "bold", children: [total.currency, " ", total.total] }), showRemoveButton && (_jsx(Button, { variant: "destructive", size: "sm", onClick: function () { return onRemove(raw, index, childIndex); }, children: "Remove" }))] }));
179
163
  },
180
164
  },
181
165
  ];
@@ -1,20 +1,9 @@
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
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
13
2
  import Button from '../../../atoms/Button/Button';
14
- import Chip from '../../../atoms/Chip/Chip';
15
3
  import { Text } from '../../../atoms/Typography/Typography';
16
4
  import { ActionDropdown } from '../../../molecules/ActionDropdown/ActionDropdown';
17
5
  import { DateDisplay } from '../../../molecules/DateDisplay/DateDisplay';
6
+ import { PaxChips } from '../../../molecules/PaxChips/PaxChips';
18
7
  import { actionDropdownData } from '../constant';
19
8
  export var bookingColumns = function (_a) {
20
9
  var onExpand = _a.onExpand, onAction = _a.onAction;
@@ -23,20 +12,20 @@ export var bookingColumns = function (_a) {
23
12
  header: 'Quote nb.',
24
13
  key: 'booking_id',
25
14
  width: 150,
26
- cell: function (value) { return (_jsx(Text, __assign({ variant: "medium", size: "sm" }, { children: value }))); },
15
+ cell: function (value) { return (_jsx(Text, { variant: "medium", size: "sm", children: value })); },
27
16
  },
28
17
  {
29
18
  header: 'Client name',
30
19
  key: 'agency_name',
31
20
  width: 150,
32
- cell: function (value) { return (_jsx(Text, __assign({ variant: "medium", size: "sm" }, { children: value }))); },
21
+ cell: function (value) { return (_jsx(Text, { variant: "medium", size: "sm", children: value })); },
33
22
  },
34
23
  {
35
24
  header: 'Type',
36
25
  key: 'status',
37
26
  width: 145,
38
27
  cell: function (value) {
39
- return (_jsx(Text, __assign({ variant: "medium", size: "sm" }, { children: "STD" })));
28
+ return (_jsx(Text, { variant: "medium", size: "sm", children: "STD" }));
40
29
  },
41
30
  },
42
31
  {
@@ -56,11 +45,7 @@ export var bookingColumns = function (_a) {
56
45
  var paxDetails = value;
57
46
  var paxDetailsKeys = Object.keys(paxDetails);
58
47
  if (paxDetailsKeys.length) {
59
- return (_jsx("div", __assign({ className: "flex flex-wrap gap-2" }, { children: paxDetailsKeys.map(function (key) {
60
- return (_jsx(Chip, { label: "".concat(key, " ").concat(paxDetails[key]), type: paxDetails[key] > 0
61
- ? 'filled'
62
- : 'outline', color: "accent", size: "sm" }));
63
- }) })));
48
+ return _jsx(PaxChips, { pax: paxDetails });
64
49
  }
65
50
  return _jsx(_Fragment, {});
66
51
  },
@@ -69,14 +54,14 @@ export var bookingColumns = function (_a) {
69
54
  header: 'Created by',
70
55
  key: 'created_by',
71
56
  width: 160,
72
- cell: function (value) { return (_jsx(Text, __assign({ variant: "medium", size: "sm" }, { children: value }))); },
57
+ cell: function (value) { return (_jsx(Text, { variant: "medium", size: "sm", children: value })); },
73
58
  },
74
59
  {
75
60
  header: '',
76
61
  key: 'actions',
77
62
  width: 232,
78
63
  cell: function (_value, raw) {
79
- return (_jsx("div", { children: _jsxs("div", __assign({ className: "flex items-center gap-x-8" }, { children: [_jsxs("div", __assign({ className: "flex items-center gap-x-3" }, { children: [_jsx(Button, __assign({ variant: "secondary", size: "sm", className: "w-[89px]" }, { children: "Proforma" })), _jsx(Button, __assign({ variant: "outline-secondary", size: "sm", className: "w-[89px]" }, { children: "Voucher" }))] })), _jsx(ActionDropdown, { data: actionDropdownData(onAction) })] })) }));
64
+ return (_jsx("div", { children: _jsxs("div", { className: "flex items-center gap-x-8", children: [_jsxs("div", { className: "flex items-center gap-x-3", children: [_jsx(Button, { variant: "secondary", size: "sm", className: "w-[89px]", children: "Proforma" }), _jsx(Button, { variant: "outline-secondary", size: "sm", className: "w-[89px]", children: "Voucher" })] }), _jsx(ActionDropdown, { data: actionDropdownData(onAction) })] }) }));
80
65
  },
81
66
  },
82
67
  ];
@@ -0,0 +1,3 @@
1
+ import { ComparisonData } from '../../DialogComparison/DialogComparison';
2
+ import { ColumnType } from '../TableCell';
3
+ export declare const comparisonColumns: () => ColumnType<ComparisonData>[];
@@ -0,0 +1,97 @@
1
+ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { Text } from '../../../atoms/Typography/Typography';
3
+ import { RowAccommodation } from '../../../molecules/TableServiceItem/RowAccommodation';
4
+ import { RowExcursion } from '../../../molecules/TableServiceItem/RowExcursion';
5
+ import { RowOtherServices } from '../../../molecules/TableServiceItem/RowOtherServices';
6
+ import { RowTransfer } from '../../../molecules/TableServiceItem/RowTransfer';
7
+ import { priceFormatter } from '../../../../lib/price-formatter';
8
+ import { ServiceType } from '../../../../types/table/index';
9
+ import { isComparisonAccommodation, isComparisonExcursion, isComparisonOtherService, isComparisonTransfer, } from '../../DialogComparison/DialogComparison';
10
+ var COLUMNS_WIDTH = 532 / 3;
11
+ export var comparisonColumns = function () {
12
+ return [
13
+ {
14
+ header: 'Item',
15
+ key: 'Type',
16
+ width: COLUMNS_WIDTH,
17
+ cell: function (value, raw) {
18
+ if (isComparisonAccommodation(raw)) {
19
+ var accom = raw;
20
+ return (_jsx(RowAccommodation.FirstCol, { serviceName: raw.HotelName, offers: raw.Offers, status: raw.RoomStatus }));
21
+ }
22
+ if (isComparisonExcursion(raw)) {
23
+ return _jsx(RowExcursion.FirstCol, { serviceName: raw.ExcursionName });
24
+ }
25
+ if (isComparisonTransfer(raw)) {
26
+ var transfer = raw;
27
+ return (_jsx(RowTransfer.FirstCol, { serviceName: transfer.VehicleTypeName, transferType: transfer.TransferType, from: transfer.LocationFromName, to: transfer.LocationToName }));
28
+ }
29
+ if (value === ServiceType.OTHER_SERVICE) {
30
+ return _jsx(RowOtherServices.FirstCol, {});
31
+ }
32
+ return _jsx(_Fragment, {});
33
+ },
34
+ },
35
+ {
36
+ header: 'Details',
37
+ key: 'Type',
38
+ width: COLUMNS_WIDTH,
39
+ cell: function (value, raw, index) {
40
+ if (isComparisonAccommodation(raw)) {
41
+ return (_jsx(RowAccommodation.DetailsCol, { data: {
42
+ RoomName: raw.RoomName,
43
+ Dates: raw.Dates,
44
+ ClientCategory: raw.ClientCategory,
45
+ MealPlan: raw.MealPlan,
46
+ }, index: (index || 0) + 1 }));
47
+ }
48
+ if (isComparisonExcursion(raw)) {
49
+ return (_jsx(RowExcursion.DetailsCol, { data: {
50
+ languages: raw.AvailableLanguages,
51
+ duration: raw.Duration,
52
+ accessibility: raw.Accessibility,
53
+ transferType: raw.TransferType,
54
+ } }));
55
+ }
56
+ if (isComparisonTransfer(raw)) {
57
+ return (_jsx(RowTransfer.DetailsCol, { data: {
58
+ carType: raw.VehicleTypeName,
59
+ clientType: 'STD',
60
+ } }));
61
+ }
62
+ if (value === ServiceType.OTHER_SERVICE) {
63
+ return _jsx(RowOtherServices.DetailsCol, {});
64
+ }
65
+ return _jsx(_Fragment, {});
66
+ },
67
+ },
68
+ {
69
+ header: 'Price',
70
+ key: 'Type',
71
+ width: COLUMNS_WIDTH,
72
+ cell: function (_value, raw) {
73
+ var total = {
74
+ currency: undefined,
75
+ total: undefined,
76
+ };
77
+ if (isComparisonAccommodation(raw)) {
78
+ total.currency = raw.Currency;
79
+ total.total = raw.Total;
80
+ }
81
+ if (isComparisonExcursion(raw)) {
82
+ total.currency = raw.Currency;
83
+ total.total = raw.TotalPrice;
84
+ }
85
+ if (isComparisonTransfer(raw)) {
86
+ total.currency = raw.Currency;
87
+ total.total = raw.TotalPrice;
88
+ }
89
+ if (isComparisonOtherService(raw)) {
90
+ total.currency = raw.currency;
91
+ total.total = raw.total_price;
92
+ }
93
+ return (_jsx("div", { className: "flex items-center justify-between", children: _jsx(Text, { size: "sm", variant: "bold", children: priceFormatter(total.total, total.currency) }) }));
94
+ },
95
+ },
96
+ ];
97
+ };