@licklist/design 0.44.486-dev.59 → 0.44.486-dev.6

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 (409) hide show
  1. package/dist/assets/logo/bookedit.svg +11 -9
  2. package/dist/assets/logo/bookedit.svg.js +1 -1
  3. package/dist/assets/logo/licklist.svg +2 -0
  4. package/dist/assets/logo/licklist.svg.js +1 -1
  5. package/dist/date-time-button/DateTimeButton.d.ts +1 -7
  6. package/dist/date-time-button/DateTimeButton.d.ts.map +1 -1
  7. package/dist/date-time-button/DateTimeButton.js +1 -1
  8. package/dist/events/edit-event-modal/IntervalInput.d.ts.map +1 -1
  9. package/dist/events/edit-event-modal/IntervalInput.js +1 -1
  10. package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.js +1 -1
  11. package/dist/events/edit-event-modal/utils/getDefaultProductSet.d.ts.map +1 -1
  12. package/dist/events/edit-event-modal/utils/getDefaultProductSet.js +1 -1
  13. package/dist/events/event-card/EventCard.d.ts.map +1 -1
  14. package/dist/events/event-card/EventCard.js +1 -1
  15. package/dist/events/event-card/utils.d.ts +0 -2
  16. package/dist/events/event-card/utils.d.ts.map +1 -1
  17. package/dist/events/event-card/utils.js +1 -1
  18. package/dist/events/event-venue-map/hooks/useImage.d.ts.map +1 -1
  19. package/dist/events/event-venue-map/hooks/useImage.js +1 -1
  20. package/dist/file-upload/FileUpload.d.ts.map +1 -1
  21. package/dist/file-upload/FileUpload.js +1 -1
  22. package/dist/iframe/activity-cards/activity-card/ActivityCard.d.ts +12 -0
  23. package/dist/iframe/activity-cards/activity-card/ActivityCard.d.ts.map +1 -0
  24. package/dist/iframe/activity-cards/activity-card/ActivityCard.js +1 -0
  25. package/dist/iframe/activity-cards/index.d.ts +3 -0
  26. package/dist/iframe/activity-cards/index.d.ts.map +1 -0
  27. package/dist/iframe/activity-cards/list-activity-card/ListActivityCard.d.ts +12 -0
  28. package/dist/iframe/activity-cards/list-activity-card/ListActivityCard.d.ts.map +1 -0
  29. package/dist/iframe/activity-cards/list-activity-card/ListActivityCard.js +1 -0
  30. package/dist/iframe/event/event-calendar/EventCalendar.d.ts +7 -0
  31. package/dist/iframe/event/event-calendar/EventCalendar.d.ts.map +1 -0
  32. package/dist/iframe/event/event-calendar/EventCalendar.js +1 -0
  33. package/dist/iframe/event/event-calendar/components/CalendarButtons/CalendarButtons.d.ts +6 -0
  34. package/dist/iframe/event/event-calendar/components/CalendarButtons/CalendarButtons.d.ts.map +1 -0
  35. package/dist/iframe/event/event-calendar/components/CalendarButtons/CalendarButtons.js +1 -0
  36. package/dist/iframe/event/event-calendar/components/CalendarButtons/index.d.ts.map +1 -0
  37. package/dist/iframe/event/event-calendar/components/CalendarDate/CalendarDate.d.ts +12 -0
  38. package/dist/iframe/event/event-calendar/components/CalendarDate/CalendarDate.d.ts.map +1 -0
  39. package/dist/iframe/event/event-calendar/components/CalendarDate/CalendarDate.js +1 -0
  40. package/dist/iframe/event/event-calendar/components/CalendarDate/index.d.ts +3 -0
  41. package/dist/iframe/event/event-calendar/components/CalendarDate/index.d.ts.map +1 -0
  42. package/dist/iframe/event/event-calendar/components/CalendarDates/CalendarDates.d.ts +7 -0
  43. package/dist/iframe/event/event-calendar/components/CalendarDates/CalendarDates.d.ts.map +1 -0
  44. package/dist/iframe/event/event-calendar/components/CalendarDates/CalendarDates.js +1 -0
  45. package/dist/iframe/event/event-calendar/components/CalendarDates/index.d.ts.map +1 -0
  46. package/dist/iframe/event/event-calendar/components/CalendarSelect/CalendarSelect.d.ts.map +1 -0
  47. package/dist/iframe/event/event-calendar/components/CalendarSelect/CalendarSelect.js +1 -0
  48. package/dist/iframe/event/event-calendar/components/CalendarSelect/index.d.ts.map +1 -0
  49. package/dist/iframe/event/event-calendar/components/CalendarWeekdays/CalendarWeekdays.d.ts.map +1 -0
  50. package/dist/iframe/event/event-calendar/components/CalendarWeekdays/index.d.ts.map +1 -0
  51. package/dist/iframe/event/event-calendar/index.d.ts +4 -0
  52. package/dist/iframe/event/event-calendar/index.d.ts.map +1 -0
  53. package/dist/iframe/event/event-calendar/types/index.d.ts +6 -0
  54. package/dist/iframe/event/event-calendar/types/index.d.ts.map +1 -0
  55. package/dist/iframe/event/event-calendar/utils/index.d.ts +3 -0
  56. package/dist/iframe/event/event-calendar/utils/index.d.ts.map +1 -0
  57. package/dist/iframe/event/event-calendar/utils/index.js +1 -0
  58. package/dist/iframe/event/event-details/EventDetails.d.ts +10 -0
  59. package/dist/iframe/event/event-details/EventDetails.d.ts.map +1 -0
  60. package/dist/iframe/event/event-details/EventDetails.js +1 -0
  61. package/dist/iframe/event/event-details/components/category-product/CategoryProduct.d.ts +9 -0
  62. package/dist/iframe/event/event-details/components/category-product/CategoryProduct.d.ts.map +1 -0
  63. package/dist/iframe/event/event-details/components/category-product/CategoryProduct.js +1 -0
  64. package/dist/iframe/event/event-details/components/category-product/index.d.ts +2 -0
  65. package/dist/iframe/event/event-details/components/category-product/index.d.ts.map +1 -0
  66. package/dist/iframe/event/event-details/components/event-details-form/EventDetailsForm.d.ts +26 -0
  67. package/dist/iframe/event/event-details/components/event-details-form/EventDetailsForm.d.ts.map +1 -0
  68. package/dist/iframe/event/event-details/components/event-details-form/EventDetailsForm.js +1 -0
  69. package/dist/iframe/event/event-details/components/event-details-form/index.d.ts +2 -0
  70. package/dist/iframe/event/event-details/components/event-details-form/index.d.ts.map +1 -0
  71. package/dist/iframe/event/event-details/components/number-of-people-input/NumberOfPeopleInput.d.ts.map +1 -0
  72. package/dist/iframe/event/event-details/components/number-of-people-input/NumberOfPeopleInput.js +1 -0
  73. package/dist/{number-of-people-input/components → iframe/event/event-details/components/number-of-people-input/component}/RenderNumberOfPeopleInputComponent.d.ts +3 -2
  74. package/dist/iframe/event/event-details/components/number-of-people-input/component/RenderNumberOfPeopleInputComponent.d.ts.map +1 -0
  75. package/dist/iframe/event/event-details/components/number-of-people-input/component/RenderNumberOfPeopleInputComponent.js +1 -0
  76. package/dist/iframe/event/event-details/components/number-of-people-input/component/index.d.ts +2 -0
  77. package/dist/iframe/event/event-details/components/number-of-people-input/component/index.d.ts.map +1 -0
  78. package/dist/iframe/event/event-details/components/number-of-people-input/index.d.ts +2 -0
  79. package/dist/iframe/event/event-details/components/number-of-people-input/index.d.ts.map +1 -0
  80. package/dist/iframe/event/event-details/components/product-category-view/ProductCategoryView.d.ts +8 -0
  81. package/dist/iframe/event/event-details/components/product-category-view/ProductCategoryView.d.ts.map +1 -0
  82. package/dist/iframe/event/event-details/components/product-category-view/ProductCategoryView.js +1 -0
  83. package/dist/iframe/event/event-details/components/product-category-view/index.d.ts +2 -0
  84. package/dist/iframe/event/event-details/components/product-category-view/index.d.ts.map +1 -0
  85. package/dist/iframe/event/event-details/index.d.ts +2 -0
  86. package/dist/iframe/event/event-details/index.d.ts.map +1 -0
  87. package/dist/iframe/event/event-details/utils/index.d.ts +2 -0
  88. package/dist/iframe/event/event-details/utils/index.d.ts.map +1 -0
  89. package/dist/iframe/event/event-details/utils/routes.d.ts +2 -0
  90. package/dist/iframe/event/event-details/utils/routes.d.ts.map +1 -0
  91. package/dist/iframe/event/event-details/utils/routes.js +1 -0
  92. package/dist/iframe/event/index.d.ts +2 -0
  93. package/dist/iframe/event/index.d.ts.map +1 -1
  94. package/dist/iframe/event/ticket-description/TicketDescription.d.ts.map +1 -1
  95. package/dist/iframe/event/ticket-description/TicketDescription.js +1 -1
  96. package/dist/iframe/index.d.ts +2 -2
  97. package/dist/iframe/index.d.ts.map +1 -1
  98. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts +1 -1
  99. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts.map +1 -1
  100. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.js +1 -1
  101. package/dist/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/BookingSummaryAccordion.js +1 -1
  102. package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts +1 -2
  103. package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts.map +1 -1
  104. package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts.map +1 -1
  105. package/dist/iframe/order-process/components/BookingSummary/utils/index.js +1 -1
  106. package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.d.ts +1 -1
  107. package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.d.ts.map +1 -1
  108. package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.js +1 -1
  109. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts.map +1 -1
  110. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.js +1 -1
  111. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts +0 -1
  112. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts.map +1 -1
  113. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.js +1 -1
  114. package/dist/iframe/order-process/components/ErrorModal/ErrorModal.d.ts +1 -2
  115. package/dist/iframe/order-process/components/ErrorModal/ErrorModal.d.ts.map +1 -1
  116. package/dist/iframe/order-process/components/ErrorModal/ErrorModal.js +1 -1
  117. package/dist/iframe/order-process/components/Timer/utils/index.d.ts +1 -1
  118. package/dist/iframe/order-process/components/Timer/utils/index.d.ts.map +1 -1
  119. package/dist/iframe/order-process/components/Timer/utils/index.js +1 -1
  120. package/dist/iframe/order-process/components/utils/useCategoryVerification.d.ts +3 -4
  121. package/dist/iframe/order-process/components/utils/useCategoryVerification.d.ts.map +1 -1
  122. package/dist/iframe/order-process/components/utils/useCategoryVerification.js +1 -1
  123. package/dist/iframe/order-process/constants.d.ts +0 -1
  124. package/dist/iframe/order-process/constants.d.ts.map +1 -1
  125. package/dist/iframe/order-process/constants.js +1 -1
  126. package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.d.ts.map +1 -1
  127. package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.js +1 -1
  128. package/dist/iframe/payment/order-items-table/hooks/useTableData.d.ts.map +1 -1
  129. package/dist/iframe/payment/order-items-table/hooks/useTableData.js +1 -1
  130. package/dist/iframe/payment/order-items-table/types/index.d.ts +1 -7
  131. package/dist/iframe/payment/order-items-table/types/index.d.ts.map +1 -1
  132. package/dist/index.d.ts +0 -3
  133. package/dist/index.d.ts.map +1 -1
  134. package/dist/index.js +1 -1
  135. package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
  136. package/dist/notification/email-template/control/EmailTemplateControl.js +1 -1
  137. package/dist/product-set/control/ProductSetControl.d.ts +1 -2
  138. package/dist/product-set/control/ProductSetControl.d.ts.map +1 -1
  139. package/dist/product-set/control/ProductSetControl.js +1 -1
  140. package/dist/product-set/control/ProductSetRecurrenceControl.d.ts.map +1 -1
  141. package/dist/product-set/control/ProductSetRecurrenceControl.js +1 -1
  142. package/dist/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
  143. package/dist/product-set/form/ProductCategoriesControl.js +1 -1
  144. package/dist/product-set/form/ProductsControl.d.ts +1 -3
  145. package/dist/product-set/form/ProductsControl.d.ts.map +1 -1
  146. package/dist/product-set/form/ProductsControl.js +1 -1
  147. package/dist/product-set/product/ProductControl.d.ts +1 -2
  148. package/dist/product-set/product/ProductControl.d.ts.map +1 -1
  149. package/dist/product-set/product/ProductControl.js +1 -1
  150. package/dist/product-set/product/duration/ProductDurationControl.js +1 -1
  151. package/dist/product-set/product-category/ProductCategoryControl.d.ts +1 -0
  152. package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
  153. package/dist/product-set/product-category/ProductCategoryControl.js +1 -1
  154. package/dist/recurrence-input/RecurrenceEndInput.d.ts +1 -8
  155. package/dist/recurrence-input/RecurrenceEndInput.d.ts.map +1 -1
  156. package/dist/recurrence-input/RecurrenceEndInput.js +1 -1
  157. package/dist/recurrence-input/RecurrenceInput.d.ts +1 -2
  158. package/dist/recurrence-input/RecurrenceInput.d.ts.map +1 -1
  159. package/dist/recurrence-input/RecurrenceInput.js +1 -1
  160. package/dist/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.d.ts +1 -4
  161. package/dist/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.d.ts.map +1 -1
  162. package/dist/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.js +1 -1
  163. package/dist/recurring-date-picker-input/RecurringDatePickerInput.d.ts +0 -1
  164. package/dist/recurring-date-picker-input/RecurringDatePickerInput.d.ts.map +1 -1
  165. package/dist/recurring-date-picker-input/RecurringDatePickerInput.js +1 -1
  166. package/dist/report/form/ReportForm.d.ts.map +1 -1
  167. package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
  168. package/dist/sales/booking/results/components/ResultCard.js +1 -1
  169. package/dist/sales/coupon/control/CouponFormControl.d.ts.map +1 -1
  170. package/dist/sales/coupon/control/CouponFormControl.js +1 -1
  171. package/dist/sales/manual-booking/summary/ManualBookingSummary.d.ts +1 -3
  172. package/dist/sales/manual-booking/summary/ManualBookingSummary.d.ts.map +1 -1
  173. package/dist/sales/manual-booking/summary/ManualBookingSummary.js +1 -1
  174. package/dist/sales/source-of-sales/SourceOfSalesChart.d.ts.map +1 -1
  175. package/dist/sales/source-of-sales/SourceOfSalesChart.js +1 -1
  176. package/dist/snippet/snippet-template/preview/Preview.d.ts.map +1 -1
  177. package/dist/snippet/snippet-template/preview/Preview.js +1 -1
  178. package/dist/static/RestrictedAccess.d.ts.map +1 -1
  179. package/dist/static/form-number-input/FormNumberInput.d.ts +1 -2
  180. package/dist/static/form-number-input/FormNumberInput.d.ts.map +1 -1
  181. package/dist/static/form-number-input/FormNumberInput.js +1 -1
  182. package/dist/styles/events/EventCard.scss +3 -10
  183. package/dist/styles/form/CustomCheckbox.scss +0 -5
  184. package/dist/styles/header/Header.scss +4 -0
  185. package/dist/styles/{activity-card/GridActivitiesCard.scss → iframe-customers-journey/ActivitiesCard.scss} +1 -1
  186. package/{src/styles/activity-card/ListActivitiesCard.scss → dist/styles/iframe-customers-journey/ActivitiesSelectedCard.scss} +1 -2
  187. package/dist/styles/{date-time-button → iframe-customers-journey}/DateTimeButton.scss +12 -6
  188. package/dist/styles/iframe-customers-journey/_index.scss +3 -0
  189. package/dist/styles/iframe-events/Card.scss +0 -1
  190. package/dist/styles/notification/Notification.scss +0 -4
  191. package/dist/styles/packages.scss +1 -3
  192. package/dist/styles/resources-blocking/_index.scss +0 -5
  193. package/dist/styles/sales/BookingResults.scss +1 -9
  194. package/dist/styles/themes/bookedit/_index.scss +0 -1
  195. package/dist/types/iframe.d.ts +0 -1
  196. package/dist/types/iframe.d.ts.map +1 -1
  197. package/dist/virtualized/components/VirtualizedWindowScroller.d.ts.map +1 -1
  198. package/dist/virtualized/components/VirtualizedWindowScroller.js +1 -1
  199. package/dist/zone/form/components/AvailableTimesControl.d.ts.map +1 -1
  200. package/dist/zone/form/components/AvailableTimesControl.js +1 -1
  201. package/dist/zone/form/components/ZoneControl.d.ts.map +1 -1
  202. package/dist/zone/form/components/ZoneControl.js +1 -1
  203. package/dist/zone/form/components/ZoneRecurrencesControl.d.ts.map +1 -1
  204. package/dist/zone/form/components/ZoneRecurrencesControl.js +1 -1
  205. package/dist/zone/form/utils/dates.d.ts.map +1 -1
  206. package/dist/zone/form/utils/dates.js +1 -1
  207. package/package.json +3 -3
  208. package/src/assets/logo/bookedit.svg +11 -9
  209. package/src/assets/logo/licklist.svg +2 -0
  210. package/src/date-time-button/DateTimeButton.stories.tsx +0 -17
  211. package/src/date-time-button/DateTimeButton.tsx +22 -19
  212. package/src/events/edit-event-modal/IntervalInput.tsx +0 -3
  213. package/src/events/edit-event-modal/component/EditEventForm/EditEventForm.stories.tsx +9 -0
  214. package/src/events/edit-event-modal/component/EditEventForm/EditEventForm.tsx +1 -1
  215. package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +1 -2
  216. package/src/events/event-card/EventCard.tsx +2 -6
  217. package/src/events/event-card/utils.ts +0 -13
  218. package/src/events/event-venue-map/hooks/useImage.tsx +8 -17
  219. package/src/file-upload/FileUpload.tsx +1 -3
  220. package/src/iframe/{activity-card → activity-cards/activity-card}/ActivityCard.stories.tsx +1 -24
  221. package/src/iframe/activity-cards/activity-card/ActivityCard.tsx +38 -0
  222. package/src/iframe/activity-cards/index.ts +2 -0
  223. package/src/iframe/activity-cards/list-activity-card/ListActivityCard.stories.tsx +52 -0
  224. package/src/iframe/activity-cards/list-activity-card/ListActivityCard.tsx +49 -0
  225. package/src/iframe/event/event-calendar/EventCalendar.stories.tsx +36 -0
  226. package/src/iframe/event/event-calendar/EventCalendar.tsx +27 -0
  227. package/src/{calendar → iframe/event/event-calendar}/components/CalendarButtons/CalendarButtons.tsx +14 -31
  228. package/src/iframe/event/event-calendar/components/CalendarDate/CalendarDate.tsx +51 -0
  229. package/src/iframe/event/event-calendar/components/CalendarDate/index.ts +2 -0
  230. package/src/{calendar → iframe/event/event-calendar}/components/CalendarDates/CalendarDates.tsx +19 -24
  231. package/src/{calendar → iframe/event/event-calendar}/components/CalendarSelect/CalendarSelect.tsx +1 -1
  232. package/src/iframe/event/event-calendar/index.ts +6 -0
  233. package/src/iframe/event/event-calendar/types/index.ts +6 -0
  234. package/src/iframe/event/event-calendar/utils/index.ts +11 -0
  235. package/src/iframe/event/event-details/EventDetails.stories.tsx +187 -0
  236. package/src/iframe/event/event-details/EventDetails.tsx +92 -0
  237. package/src/iframe/event/event-details/EventDetailsOneStepForm.stories.tsx +123 -0
  238. package/src/iframe/event/event-details/components/category-product/CategoryProduct.tsx +109 -0
  239. package/src/iframe/event/event-details/components/category-product/index.ts +1 -0
  240. package/src/iframe/event/event-details/components/event-details-form/EventDetailsForm.tsx +250 -0
  241. package/src/iframe/event/event-details/components/event-details-form/index.ts +5 -0
  242. package/src/{number-of-people-input → iframe/event/event-details/components/number-of-people-input}/NumberOfPeopleInput.tsx +1 -1
  243. package/src/{number-of-people-input/components → iframe/event/event-details/components/number-of-people-input/component}/RenderNumberOfPeopleInputComponent.tsx +3 -3
  244. package/src/iframe/event/event-details/components/number-of-people-input/component/index.ts +1 -0
  245. package/src/iframe/event/event-details/components/number-of-people-input/index.ts +1 -0
  246. package/src/iframe/event/event-details/components/product-category-view/ProductCategoryView.tsx +34 -0
  247. package/src/iframe/event/event-details/components/product-category-view/index.ts +1 -0
  248. package/src/iframe/event/event-details/index.ts +1 -0
  249. package/src/iframe/event/event-details/utils/index.ts +1 -0
  250. package/src/iframe/event/event-details/utils/routes.ts +6 -0
  251. package/src/iframe/event/event-venue-map/IframeEventVenueMap.stories.tsx +2 -1
  252. package/src/iframe/event/index.ts +7 -0
  253. package/src/iframe/event/ticket-description/TicketDescription.stories.tsx +2 -8
  254. package/src/iframe/event/ticket-description/TicketDescription.tsx +2 -7
  255. package/src/iframe/index.ts +3 -1
  256. package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +3 -4
  257. package/src/iframe/order-process/components/BookingSummary/types/index.ts +1 -2
  258. package/src/iframe/order-process/components/BookingSummary/utils/index.ts +0 -2
  259. package/src/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.stories.tsx +1 -0
  260. package/src/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.tsx +8 -17
  261. package/src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx +15 -1
  262. package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +0 -5
  263. package/src/iframe/order-process/components/ErrorModal/ErrorModal.tsx +9 -12
  264. package/src/iframe/order-process/components/Timer/utils/index.ts +9 -6
  265. package/src/iframe/order-process/components/utils/useCategoryVerification.ts +32 -62
  266. package/src/iframe/order-process/constants.ts +0 -1
  267. package/src/iframe/page/Page.stories.tsx +2 -2
  268. package/src/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.tsx +1 -6
  269. package/src/iframe/payment/order-items-table/hooks/useTableData.tsx +99 -11
  270. package/src/iframe/payment/order-items-table/types/index.ts +1 -18
  271. package/src/iframe/payment/payment-page/PaymentPage.stories.tsx +1 -1
  272. package/src/iframe/payment/payment-page/PaymentPage.tsx +4 -4
  273. package/src/index.ts +0 -3
  274. package/src/notification/email-template/control/EmailTemplateControl.tsx +1 -26
  275. package/src/product-set/control/ProductSetControl.tsx +0 -36
  276. package/src/product-set/control/ProductSetRecurrenceControl.tsx +4 -8
  277. package/src/product-set/form/ProductCategoriesControl.tsx +1 -2
  278. package/src/product-set/form/ProductSetForm.stories.tsx +6 -3
  279. package/src/product-set/form/ProductsControl.tsx +0 -10
  280. package/src/product-set/product/ProductControl.tsx +1 -28
  281. package/src/product-set/product/duration/ProductDurationControl.tsx +1 -1
  282. package/src/product-set/product-category/ProductCategory.stories.tsx +1 -0
  283. package/src/product-set/product-category/ProductCategoryControl.tsx +30 -1
  284. package/src/provider/location-input/LocationInputDescription.tsx +2 -2
  285. package/src/recurrence-input/RecurrenceEndInput.tsx +10 -28
  286. package/src/recurrence-input/RecurrenceInput.tsx +2 -12
  287. package/src/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.tsx +21 -24
  288. package/src/recurring-date-picker-input/RecurringDatePickerInput.tsx +0 -9
  289. package/src/report/form/ReportForm.tsx +1 -1
  290. package/src/sales/booking/results/BookingResults.stories.tsx +7 -0
  291. package/src/sales/booking/results/components/ResultCard.tsx +3 -9
  292. package/src/sales/coupon/control/CouponFormControl.tsx +0 -5
  293. package/src/sales/guest-profile/previous-bookings/PreviousBookings.stories.tsx +7 -0
  294. package/src/sales/manual-booking/summary/ManualBookingSummary.tsx +5 -20
  295. package/src/sales/source-of-sales/SourceOfSalesChart.tsx +28 -31
  296. package/src/snippet/snippet-template/preview/Preview.tsx +2 -14
  297. package/src/static/RestrictedAccess.tsx +1 -1
  298. package/src/static/form-number-input/FormNumberInput.tsx +1 -8
  299. package/src/styles/events/EventCard.scss +3 -10
  300. package/src/styles/form/CustomCheckbox.scss +0 -5
  301. package/src/styles/header/Header.scss +4 -0
  302. package/src/styles/{activity-card/GridActivitiesCard.scss → iframe-customers-journey/ActivitiesCard.scss} +1 -1
  303. package/{dist/styles/activity-card/ListActivitiesCard.scss → src/styles/iframe-customers-journey/ActivitiesSelectedCard.scss} +1 -2
  304. package/src/styles/{date-time-button → iframe-customers-journey}/DateTimeButton.scss +12 -6
  305. package/src/styles/iframe-customers-journey/_index.scss +3 -0
  306. package/src/styles/iframe-events/Card.scss +0 -1
  307. package/src/styles/notification/Notification.scss +0 -4
  308. package/src/styles/packages.scss +1 -3
  309. package/src/styles/resources-blocking/_index.scss +0 -5
  310. package/src/styles/sales/BookingResults.scss +1 -9
  311. package/src/styles/themes/bookedit/_index.scss +0 -1
  312. package/src/types/iframe.ts +0 -1
  313. package/src/typings.d.ts +0 -11
  314. package/src/virtualized/components/VirtualizedWindowScroller.tsx +1 -2
  315. package/src/zone/form/components/AvailableTimesControl.tsx +9 -4
  316. package/src/zone/form/components/ZoneControl.tsx +0 -2
  317. package/src/zone/form/components/ZoneRecurrencesControl.tsx +35 -27
  318. package/src/zone/form/utils/dates.ts +36 -29
  319. package/dist/assets/iframe/available.svg.js +0 -1
  320. package/dist/assets/iframe/limited.svg.js +0 -1
  321. package/dist/assets/iframe/soldOut.svg.js +0 -1
  322. package/dist/assets/logo/favicon.svg +0 -12
  323. package/dist/availability-indicator/AvailabilityIndicator.d.ts +0 -9
  324. package/dist/availability-indicator/AvailabilityIndicator.d.ts.map +0 -1
  325. package/dist/availability-indicator/AvailabilityIndicator.js +0 -1
  326. package/dist/availability-indicator/index.d.ts +0 -2
  327. package/dist/availability-indicator/index.d.ts.map +0 -1
  328. package/dist/calendar/Calendar.d.ts +0 -21
  329. package/dist/calendar/Calendar.d.ts.map +0 -1
  330. package/dist/calendar/Calendar.js +0 -1
  331. package/dist/calendar/components/CalendarButtons/CalendarButtons.d.ts +0 -6
  332. package/dist/calendar/components/CalendarButtons/CalendarButtons.d.ts.map +0 -1
  333. package/dist/calendar/components/CalendarButtons/CalendarButtons.js +0 -1
  334. package/dist/calendar/components/CalendarButtons/index.d.ts.map +0 -1
  335. package/dist/calendar/components/CalendarDates/CalendarDates.d.ts +0 -5
  336. package/dist/calendar/components/CalendarDates/CalendarDates.d.ts.map +0 -1
  337. package/dist/calendar/components/CalendarDates/CalendarDates.js +0 -1
  338. package/dist/calendar/components/CalendarDates/index.d.ts.map +0 -1
  339. package/dist/calendar/components/CalendarSelect/CalendarSelect.d.ts.map +0 -1
  340. package/dist/calendar/components/CalendarSelect/CalendarSelect.js +0 -1
  341. package/dist/calendar/components/CalendarSelect/index.d.ts.map +0 -1
  342. package/dist/calendar/components/CalendarWeekdays/CalendarWeekdays.d.ts.map +0 -1
  343. package/dist/calendar/components/CalendarWeekdays/index.d.ts.map +0 -1
  344. package/dist/calendar/index.d.ts +0 -4
  345. package/dist/calendar/index.d.ts.map +0 -1
  346. package/dist/calendar/utils/index.d.ts +0 -5
  347. package/dist/calendar/utils/index.d.ts.map +0 -1
  348. package/dist/calendar/utils/index.js +0 -1
  349. package/dist/iframe/activity-card/ActivityCard.d.ts +0 -17
  350. package/dist/iframe/activity-card/ActivityCard.d.ts.map +0 -1
  351. package/dist/iframe/activity-card/ActivityCard.js +0 -1
  352. package/dist/iframe/activity-card/index.d.ts +0 -2
  353. package/dist/iframe/activity-card/index.d.ts.map +0 -1
  354. package/dist/iframe/payment/order-items-table/types/index.js +0 -1
  355. package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts +0 -3
  356. package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts.map +0 -1
  357. package/dist/iframe/payment/order-items-table/utils/paymentSummary.js +0 -1
  358. package/dist/number-of-people-input/NumberOfPeopleInput.d.ts.map +0 -1
  359. package/dist/number-of-people-input/NumberOfPeopleInput.js +0 -1
  360. package/dist/number-of-people-input/components/RenderNumberOfPeopleInputComponent.d.ts.map +0 -1
  361. package/dist/number-of-people-input/components/RenderNumberOfPeopleInputComponent.js +0 -1
  362. package/dist/number-of-people-input/components/index.d.ts +0 -2
  363. package/dist/number-of-people-input/components/index.d.ts.map +0 -1
  364. package/dist/number-of-people-input/index.d.ts +0 -3
  365. package/dist/number-of-people-input/index.d.ts.map +0 -1
  366. package/dist/styles/activity-card/_index.scss +0 -2
  367. package/dist/styles/availability-indicator/AvailabilityIndicator.scss +0 -7
  368. package/dist/styles/availability-indicator/_index.scss +0 -1
  369. package/dist/styles/date-time-button/_index.scss +0 -1
  370. package/dist/zone/form/components/GameDurationControl.d.ts +0 -7
  371. package/dist/zone/form/components/GameDurationControl.d.ts.map +0 -1
  372. package/dist/zone/form/components/GameDurationControl.js +0 -1
  373. package/src/assets/logo/favicon.svg +0 -12
  374. package/src/availability-indicator/AvailabilityIndicator.tsx +0 -59
  375. package/src/availability-indicator/index.ts +0 -1
  376. package/src/calendar/Calendar.stories.tsx +0 -33
  377. package/src/calendar/Calendar.tsx +0 -46
  378. package/src/calendar/index.ts +0 -3
  379. package/src/calendar/utils/index.ts +0 -28
  380. package/src/iframe/activity-card/ActivityCard.tsx +0 -77
  381. package/src/iframe/activity-card/index.ts +0 -1
  382. package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +0 -118
  383. package/src/number-of-people-input/components/RenderNumberOfPeopleInputComponent.stories.tsx +0 -92
  384. package/src/number-of-people-input/components/index.ts +0 -1
  385. package/src/number-of-people-input/index.ts +0 -2
  386. package/src/styles/activity-card/_index.scss +0 -2
  387. package/src/styles/availability-indicator/AvailabilityIndicator.scss +0 -7
  388. package/src/styles/availability-indicator/_index.scss +0 -1
  389. package/src/styles/date-time-button/_index.scss +0 -1
  390. package/src/zone/form/components/GameDurationControl.tsx +0 -46
  391. /package/dist/assets/iframe/{available.svg → dateInfo/available.svg} +0 -0
  392. /package/dist/assets/iframe/{limited.svg → dateInfo/limited.svg} +0 -0
  393. /package/dist/assets/iframe/{soldOut.svg → dateInfo/soldOut.svg} +0 -0
  394. /package/dist/{calendar → iframe/event/event-calendar}/components/CalendarButtons/index.d.ts +0 -0
  395. /package/dist/{calendar → iframe/event/event-calendar}/components/CalendarDates/index.d.ts +0 -0
  396. /package/dist/{calendar → iframe/event/event-calendar}/components/CalendarSelect/CalendarSelect.d.ts +0 -0
  397. /package/dist/{calendar → iframe/event/event-calendar}/components/CalendarSelect/index.d.ts +0 -0
  398. /package/dist/{calendar → iframe/event/event-calendar}/components/CalendarWeekdays/CalendarWeekdays.d.ts +0 -0
  399. /package/dist/{calendar → iframe/event/event-calendar}/components/CalendarWeekdays/CalendarWeekdays.js +0 -0
  400. /package/dist/{calendar → iframe/event/event-calendar}/components/CalendarWeekdays/index.d.ts +0 -0
  401. /package/dist/{number-of-people-input → iframe/event/event-details/components/number-of-people-input}/NumberOfPeopleInput.d.ts +0 -0
  402. /package/src/assets/iframe/{available.svg → dateInfo/available.svg} +0 -0
  403. /package/src/assets/iframe/{limited.svg → dateInfo/limited.svg} +0 -0
  404. /package/src/assets/iframe/{soldOut.svg → dateInfo/soldOut.svg} +0 -0
  405. /package/src/{calendar → iframe/event/event-calendar}/components/CalendarButtons/index.ts +0 -0
  406. /package/src/{calendar → iframe/event/event-calendar}/components/CalendarDates/index.ts +0 -0
  407. /package/src/{calendar → iframe/event/event-calendar}/components/CalendarSelect/index.ts +0 -0
  408. /package/src/{calendar → iframe/event/event-calendar}/components/CalendarWeekdays/CalendarWeekdays.tsx +0 -0
  409. /package/src/{calendar → iframe/event/event-calendar}/components/CalendarWeekdays/index.ts +0 -0
@@ -1,7 +1,10 @@
1
- export const fancyTimeFormat = (milliseconds: number) => {
2
- const totalSeconds = Math.floor(milliseconds / 1000);
3
- const minutes = Math.floor(totalSeconds / 60);
4
- const seconds = totalSeconds % 60;
5
- const formattedSecs = seconds < 10 ? `0${seconds}` : `${seconds}`;
6
- return `${minutes}:${formattedSecs}`;
1
+ export const fancyTimeFormat = (miliseconds: number) => {
2
+ const date = new Date(miliseconds);
3
+ const mins = date.getMinutes();
4
+ const secs = date.getSeconds();
5
+ let timerString = "";
6
+
7
+ timerString += `${mins}:${secs < 10 ? "0" : ""}`;
8
+ timerString += `${secs}`;
9
+ return timerString;
7
10
  };
@@ -1,82 +1,52 @@
1
- import { ProductCategory } from "@licklist/core/dist/DataMapper/Product/ProductCategoryDataMapper";
2
- import { Currency } from "@licklist/core/dist/Config";
3
- import { useIntl } from "react-intl";
4
1
  import { useTranslation } from "react-i18next";
5
- import { Order } from "src/types";
2
+ import { MenuStep, Order } from "src/types";
6
3
 
7
4
  interface CategoryError {
8
5
  message: string;
9
- id?: number;
6
+ id: number;
10
7
  }
11
8
 
12
9
  // TODO it's temporary solution, please remove it later
13
10
  export const useCategoryVerification = () => {
14
11
  const { t } = useTranslation("Validation");
15
- const { formatNumber } = useIntl();
12
+
16
13
  return (
17
14
  values: Record<Order["id"], Order>,
18
- productCategories?: ProductCategory[],
19
- isLastPage?: boolean
15
+ step: MenuStep
20
16
  ): CategoryError | void => {
21
- let errorMessage: { id?: number; message: string } | void;
17
+ let errorMessage;
18
+
22
19
  const productArray = Object.values(values).filter(
23
20
  (product) => product?.quantity > 0
24
21
  );
25
- const sumOfMinSpends = productCategories.reduce((acc, productCategory) => {
26
- const { products } = productCategory;
27
- const selectedProducts = products.filter((product) =>
28
- productArray.map((el) => el.id).includes(product?.id)
29
- );
30
- const productMinSpendsSum = selectedProducts.reduce((sum, product) => {
31
- const quantity =
32
- productArray.find((selected) => selected.id === product.id)
33
- ?.quantity || 1;
34
- return sum + product.minSpend * quantity;
35
- }, 0);
36
-
37
- return acc + productMinSpendsSum;
38
- }, 0);
39
-
40
- const totalPrice = productArray.reduce(
41
- (total, product) => total + product.price * product.quantity,
42
- 0
43
- );
44
-
45
- productCategories.forEach(({ minSubItems, maxSubItems, id, name }) => {
46
- if (!minSubItems && !maxSubItems) return;
47
22
 
48
- const categoryProductsQuantity = productArray.filter(
49
- (product) => product?.productsCategoryId === id
50
- ).length;
51
-
52
- if (minSubItems && categoryProductsQuantity < minSubItems) {
53
- const message = t("Validation:fieldMinNumber", {
54
- min: minSubItems,
55
- attribute: `number of products in the ${name} category`,
56
- });
57
- errorMessage = { id, message };
58
-
59
- return;
60
- }
61
-
62
- if (maxSubItems && categoryProductsQuantity > maxSubItems) {
63
- const message = t("Validation:fieldMaxNumber", {
64
- max: maxSubItems,
65
- attribute: `number of products in the ${name} category`,
66
- });
67
- errorMessage = { id, message };
23
+ step?.productCategories.forEach(
24
+ ({ minSubItems, maxSubItems, id, name }) => {
25
+ if (!minSubItems && !maxSubItems) return;
26
+
27
+ const categoryProductsQuantity = productArray.filter(
28
+ (product) => product?.productsCategoryId === id
29
+ ).length;
30
+
31
+ if (minSubItems && categoryProductsQuantity < minSubItems) {
32
+ const message = t("Validation:fieldMinNumber", {
33
+ min: minSubItems,
34
+ attribute: `number of products in the ${name} category`,
35
+ });
36
+ errorMessage = { id, message };
37
+
38
+ return;
39
+ }
40
+
41
+ if (maxSubItems && categoryProductsQuantity > maxSubItems) {
42
+ const message = t("Validation:fieldMaxNumber", {
43
+ max: maxSubItems,
44
+ attribute: `number of products in the ${name} category`,
45
+ });
46
+ errorMessage = { id, message };
47
+ }
68
48
  }
69
- });
70
-
71
- if (totalPrice < sumOfMinSpends && !errorMessage && isLastPage) {
72
- const message = t("Design:minimumSpendSumValidation", {
73
- minSpend: formatNumber(sumOfMinSpends, {
74
- style: "currency",
75
- currency: Currency.GBP,
76
- }),
77
- }) as string;
78
- errorMessage = { message };
79
- }
49
+ );
80
50
 
81
51
  return errorMessage;
82
52
  };
@@ -1,2 +1 @@
1
1
  export const STEP_FORM_ID = "STEP_FORM";
2
- export const MIN_SPEND_ERROR = "MIN_SPEND_ERROR";
@@ -6,7 +6,7 @@ import { Page } from "./Page";
6
6
  import { PageHeader } from "./components/PageHeader";
7
7
  import { PageBody } from "./components/PageBody";
8
8
  import { IframeEventCard } from "../event/event-card/IframeEventCard";
9
- import { CalendarSelect } from "../../calendar/components/CalendarSelect";
9
+ import { CalendarSelect } from "../event/event-calendar/components/CalendarSelect";
10
10
 
11
11
  export default {
12
12
  title: "Iframe/Page/Page",
@@ -219,7 +219,7 @@ export function Default() {
219
219
  <>
220
220
  <CalendarSelect
221
221
  options={[{ label: "Floor 1", value: "1" }]}
222
- value="1"
222
+ value={"1"}
223
223
  onChange={(chagedId: string) => console.log({ chagedId })}
224
224
  />
225
225
  </>
@@ -26,12 +26,7 @@ export const LeftBlock = ({
26
26
  <div className={clsx("left-block", className)} {...props}>
27
27
  {pageTitle && (
28
28
  <div className="navigation">
29
- {typeof pageTitle === "string" ? (
30
- <div className="title">{pageTitle}</div>
31
- ) : (
32
- pageTitle
33
- )}
34
-
29
+ <div className="title">{pageTitle}</div>
35
30
  {component}
36
31
  </div>
37
32
  )}
@@ -9,9 +9,15 @@ import {
9
9
  PAYMENT_TYPE_NET_PROFIT,
10
10
  } from "@licklist/core/dist/DataMapper/Order/PaymentDataMapper";
11
11
  import { StaticTableData } from "../../../../table";
12
- import { getProductQuantityAndPrice, getTotalSumByCategory } from "../utils";
12
+ import {
13
+ getProductQuantityAndPrice,
14
+ calculateTotalDiscount,
15
+ calculateTotalPrice,
16
+ getPaymentValueByType,
17
+ getExternalPaymentDetail,
18
+ getTotalSumByCategory,
19
+ } from "../utils";
13
20
  import { OrderItemsTableProps, SummaryItem } from "../types";
14
- import { getOrderSummaryItems } from "../utils/paymentSummary";
15
21
 
16
22
  const CURRENCY_DEFAULT = "GBP";
17
23
  export const PAYMENT_TYPE_TRANSLATE_KEYS = {
@@ -108,7 +114,9 @@ export const useTableData = ({
108
114
  );
109
115
  };
110
116
 
111
- const renderSummaryItems = (summaryItems: SummaryItem[]) => {
117
+ const renderSummaryItems = (
118
+ summaryItems: { translateKey: string; price: number }[]
119
+ ) => {
112
120
  return summaryItems.map(({ translateKey, price }) => {
113
121
  return {
114
122
  key: uniqueId(`summary-info-${translateKey}`),
@@ -119,6 +127,93 @@ export const useTableData = ({
119
127
  });
120
128
  };
121
129
 
130
+ const paymentNotProcessedSummary = () => {
131
+ const externalPaymentDetail = paymentDetail
132
+ ? getExternalPaymentDetail(paymentDetail)
133
+ : undefined;
134
+
135
+ const total = calculateTotalPrice(order, externalPaymentDetail);
136
+
137
+ const summaryItems: SummaryItem[] = [
138
+ {
139
+ translateKey: "amountTotal",
140
+ price: total,
141
+ },
142
+ ];
143
+
144
+ if (externalDiscount) {
145
+ summaryItems.push({
146
+ price: externalDiscount,
147
+ translateKey: "amountWithDiscount",
148
+ });
149
+ }
150
+
151
+ if (externalPaymentDetail) {
152
+ return [...summaryItems, ...getExternalPaymentDetail(paymentDetail)];
153
+ }
154
+
155
+ return summaryItems;
156
+ };
157
+
158
+ const processedPaymentSummary = () => {
159
+ const externalPaymentDetail =
160
+ paymentDetail && !order.payments.length
161
+ ? getExternalPaymentDetail(paymentDetail)
162
+ : Object.keys(PAYMENT_TYPE_TRANSLATE_KEYS).map((key) => {
163
+ return {
164
+ translateKey: PAYMENT_TYPE_TRANSLATE_KEYS[key],
165
+ price: getPaymentValueByType(order.payments, key),
166
+ };
167
+ });
168
+
169
+ const total = calculateTotalPrice(order, externalPaymentDetail);
170
+
171
+ const totalDiscount = calculateTotalDiscount(order.payments);
172
+ const totalWithDiscount = total - Number(totalDiscount);
173
+ let summaryItems: SummaryItem[] = [
174
+ {
175
+ translateKey: "amountTotal",
176
+ price: total,
177
+ },
178
+ ];
179
+
180
+ if (totalDiscount) {
181
+ summaryItems.push({
182
+ translateKey: "amountWithDiscount",
183
+ price: totalWithDiscount < 0 ? 0 : totalWithDiscount,
184
+ });
185
+ }
186
+
187
+ if (paymentDetail && !order.payments.length) {
188
+ return [...summaryItems, ...externalPaymentDetail];
189
+ }
190
+
191
+ summaryItems.push({
192
+ translateKey: "totalPaid",
193
+ price: totalWithDiscount <= 0 ? 0 : order.totalAmount,
194
+ });
195
+ if (totalWithDiscount <= 0) {
196
+ return summaryItems;
197
+ }
198
+ summaryItems = [...summaryItems, ...externalPaymentDetail];
199
+
200
+ if (totalWithDiscount > order.totalAmount) {
201
+ summaryItems.push({
202
+ translateKey: "remainingToPay",
203
+ price: totalWithDiscount - order.totalAmount,
204
+ });
205
+ }
206
+ return summaryItems;
207
+ };
208
+
209
+ const getOrderSummaryItems = () => {
210
+ if (!isPaymentProcessed) {
211
+ return paymentNotProcessedSummary();
212
+ }
213
+
214
+ return processedPaymentSummary();
215
+ };
216
+
122
217
  const data = useMemo(
123
218
  () => {
124
219
  if (!order) {
@@ -127,14 +222,7 @@ export const useTableData = ({
127
222
 
128
223
  return [
129
224
  ...renderProductsContent(),
130
- ...renderSummaryItems(
131
- getOrderSummaryItems({
132
- order,
133
- paymentDetail,
134
- isPaymentProcessed,
135
- externalDiscount,
136
- })
137
- ),
225
+ ...renderSummaryItems(getOrderSummaryItems()),
138
226
  ];
139
227
  },
140
228
  // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -1,24 +1,7 @@
1
1
  import { Order } from "@licklist/core/dist/DataMapper/Order/OrderDataMapper";
2
2
  import { PaymentDetail } from "@licklist/core/dist/DataMapper/Order/PaymentDetailDataMapper";
3
3
 
4
- export const AMOUNT_TOTAL = "amountTotal";
5
- export const AMOUNT_WITH_DISCOUNT = "amountWithDiscount";
6
- export const TOTAL_PAID = "totalPaid";
7
- export const REMAINING_TO_PAY = "remainingToPay";
8
-
9
- export const SUMMARY_TRANSLATE_KEYS = [
10
- AMOUNT_TOTAL,
11
- AMOUNT_WITH_DISCOUNT,
12
- TOTAL_PAID,
13
- REMAINING_TO_PAY,
14
- ];
15
-
16
- export type SUMMARY_TRANSLATE_KEY = typeof SUMMARY_TRANSLATE_KEYS[number];
17
-
18
- export type SummaryItem = {
19
- translateKey: SUMMARY_TRANSLATE_KEY;
20
- price: number;
21
- };
4
+ export type SummaryItem = { translateKey: string; price: number };
22
5
 
23
6
  export type OrderItemsTableProps = {
24
7
  order?: Order;
@@ -38,7 +38,7 @@ Default.args = {
38
38
  },
39
39
  numberOfPeople: 1,
40
40
  },
41
- shouldHidePeopleAmount: true,
41
+ isNotShownPeopleAmount: true,
42
42
  menuSteps: [],
43
43
  },
44
44
  };
@@ -100,18 +100,18 @@ export const PaymentPage = ({
100
100
  );
101
101
  }
102
102
 
103
- const orderTotalAmountByFormValues = cartSumByOrderProducts(
103
+ const orderTotalAmounByFormValues = cartSumByOrderProducts(
104
104
  bookingSummaryProps && bookingSummaryProps?.formValues
105
105
  ? Object.values(bookingSummaryProps?.formValues)
106
106
  : undefined
107
107
  );
108
108
 
109
- // User can fill promo code only in iframe application.
109
+ // User can fill promocode only in iframe appcliation.
110
110
  // It didn't possible via payment link. This check will
111
111
  // be applied when there are no metadata and in case when
112
112
  // orderValues sum is greater than amount in order.
113
113
  const isCalculatedAmountGreaterThanOrderAmount =
114
- orderTotalAmountByFormValues > data?.amount;
114
+ orderTotalAmounByFormValues > data?.amount;
115
115
 
116
116
  return (
117
117
  <Page
@@ -164,7 +164,7 @@ export const PaymentPage = ({
164
164
  <SummaryTotalBlock
165
165
  label={t("total")}
166
166
  amount={
167
- orderTotalAmountByFormValues +
167
+ orderTotalAmounByFormValues +
168
168
  (bookingSummaryProps?.transactionFee || 0)
169
169
  }
170
170
  />
package/src/index.ts CHANGED
@@ -39,6 +39,3 @@ export * from "./radio-card";
39
39
  export * from "./image-radio-input";
40
40
  export * from "./sorting-select";
41
41
  export * from "./date-time-button";
42
- export * from "./calendar";
43
- export * from "./availability-indicator";
44
- export * from "./number-of-people-input";
@@ -314,38 +314,13 @@ export const EmailTemplateControl = React.forwardRef(
314
314
  <Row className="mb-4">
315
315
  <Form.Group as={Col}>
316
316
  <Form.Label>{t("Design:emailBody")}</Form.Label>
317
-
318
- <div className="alert alert-warning" role="alert">
319
- Due to the mail services limitations on the length of the email
320
- body that can be sent or received - maximum length is set to
321
- 65,535 characters.
322
- </div>
323
-
324
- <div className={`email-editor ${errors.body && "is-invalid"}`}>
317
+ <div className="email-editor">
325
318
  <EmailEditor
326
319
  ref={ref}
327
320
  onReady={onReadyEditor}
328
321
  style={{ height: "50rem" }}
329
322
  />
330
-
331
- <input
332
- type="hidden"
333
- name="body"
334
- {...register("body", {
335
- maxLength: {
336
- value: 65535,
337
- message: t("Validation:fieldMaxLength", {
338
- attribute: t("body"),
339
- max: 65535,
340
- }) as string,
341
- },
342
- })}
343
- />
344
323
  </div>
345
-
346
- <Form.Control.Feedback type="invalid">
347
- {errors.body?.message}
348
- </Form.Control.Feedback>
349
324
  </Form.Group>
350
325
  </Row>
351
326
  <Row>
@@ -7,13 +7,8 @@ import {
7
7
  OPERATIONAL_COST_CUSTOMER,
8
8
  OPERATIONAL_COST_PROVIDER,
9
9
  OPERATIONAL_COST_TYPES,
10
- RELY_ON_PEOPLE_QUANTITY,
11
- RELY_ON_PEOPLE_PRODUCT_CAPACITY_QUANTITY,
12
- RELY_ON_PEOPLE_PRODUCT_QUANTITY,
13
10
  OperationalCostType,
14
11
  ProductSetType,
15
- RELY_ON_PEOPLE_TYPES,
16
- RelyOnPeopleType,
17
12
  } from "@licklist/core/dist/DataMapper/Product/ProductSetDataMapper";
18
13
  import { useId } from "@react-aria/utils";
19
14
  import { FieldSet } from "@licklist/core/dist/DataMapper/Order/FieldSetDataMapper";
@@ -39,12 +34,6 @@ const OPERATIONAL_COST_TITLES = {
39
34
  [OPERATIONAL_COST_CUSTOMER]: "operationalCostCustomer",
40
35
  } as const;
41
36
 
42
- const RELY_ON_PEOPLE_TYPE_TITLES = {
43
- [RELY_ON_PEOPLE_PRODUCT_CAPACITY_QUANTITY]: "peopleProductCapacityQuantity",
44
- [RELY_ON_PEOPLE_PRODUCT_QUANTITY]: "peopleProductQuantity",
45
- [RELY_ON_PEOPLE_QUANTITY]: "peopleQuantity",
46
- };
47
-
48
37
  export interface TemplateItem {
49
38
  id: string;
50
39
  value: EmailTemplate | SmsTemplate;
@@ -59,7 +48,6 @@ export interface ProductSetControlValues extends DateAndRecurrenceInputValues {
59
48
  isDefault: boolean;
60
49
  operationalCost: OperationalCostType;
61
50
  productGroups?: SelectItem[];
62
- relyOnPeopleType?: RelyOnPeopleType | null;
63
51
  fieldSetId?: number;
64
52
  steps?: Step[];
65
53
  emailTemplates?: TemplateItem[];
@@ -112,7 +100,6 @@ export function ProductSetControl({
112
100
 
113
101
  const nameId = useId();
114
102
  const termsAndConditionsId = useId();
115
- const relyOnPeopleTypeId = useId();
116
103
 
117
104
  return (
118
105
  <Row
@@ -233,29 +220,6 @@ export function ProductSetControl({
233
220
  </Form.Control>
234
221
  </Form.Group>
235
222
 
236
- <Form.Group controlId={relyOnPeopleTypeId}>
237
- <Form.Label>{t("peopleQuantityType")}</Form.Label>
238
- <Form.Control
239
- {...register("relyOnPeopleType")}
240
- as="select"
241
- defaultValue={null}
242
- >
243
- <option value="">{t("notRequired")}</option>
244
- {Object.keys(RELY_ON_PEOPLE_TYPES).map((relyOnPeopleType) => (
245
- <option
246
- value={RELY_ON_PEOPLE_TYPES[relyOnPeopleType]}
247
- key={RELY_ON_PEOPLE_TYPES[relyOnPeopleType]}
248
- >
249
- {t(
250
- RELY_ON_PEOPLE_TYPE_TITLES[
251
- RELY_ON_PEOPLE_TYPES[relyOnPeopleType]
252
- ]
253
- )}
254
- </option>
255
- ))}
256
- </Form.Control>
257
- </Form.Group>
258
-
259
223
  <Form.Group controlId={termsAndConditionsId}>
260
224
  <Form.Label>{t("Design:termsAndConditions")}</Form.Label>
261
225
  <Form.Control
@@ -56,14 +56,10 @@ export const ProductSetRecurrenceControl = ({
56
56
  {formatDate(menuRecurrence.startDate, {
57
57
  dateStyle: "medium",
58
58
  })}{" "}
59
- {menuRecurrence.endDate && (
60
- <>
61
- {"- "}
62
- {formatDate(menuRecurrence.endDate, {
63
- dateStyle: "medium",
64
- })}
65
- </>
66
- )}
59
+ -{" "}
60
+ {formatDate(menuRecurrence.endDate, {
61
+ dateStyle: "medium",
62
+ })}
67
63
  </span>
68
64
 
69
65
  <div
@@ -48,6 +48,7 @@ const getCategoryDefaultValue = (
48
48
  maxSubItems: null,
49
49
  quantityType: QUANTITY_TYPE_STANDARD,
50
50
  type: categoryType,
51
+ isRelyOnPeople: categoryType === CATEGORY_TYPE_TICKETS,
51
52
  isTimeRelated: false,
52
53
  collectUserInfo: false,
53
54
  hasTicket: categoryType === CATEGORY_TYPE_TICKETS,
@@ -71,7 +72,6 @@ export function ProductCategoriesControl({
71
72
  providerHasMap,
72
73
  expandedProductCategories,
73
74
  setExpandedProductCategories,
74
- zones,
75
75
  } = useContext(ProductSetLoadingContext);
76
76
  const form = useFormContext<ProductSetFormValues>();
77
77
  const [isSelectCategoryVisible, setIsSelectCategoryVisible] = useState(false);
@@ -287,7 +287,6 @@ export function ProductCategoriesControl({
287
287
  quantityType={productCategory.quantityType}
288
288
  hasTicket={productCategory?.hasTicket}
289
289
  stepIndex={stepIndex}
290
- zones={zones}
291
290
  productCategoryIndex={index}
292
291
  categoryType={productCategory.type}
293
292
  />
@@ -11,7 +11,6 @@ import {
11
11
  import {
12
12
  OPERATIONAL_COST_CUSTOMER,
13
13
  OPERATIONAL_COST_PROVIDER,
14
- RELY_ON_PEOPLE_PRODUCT_QUANTITY,
15
14
  } from "@licklist/core/dist/DataMapper/Product/ProductSetDataMapper";
16
15
  import { FieldSet } from "@licklist/core/dist/DataMapper/Order/FieldSetDataMapper";
17
16
  import { ProductSetForm, ProductSetFormProps } from "./ProductSetForm";
@@ -75,7 +74,6 @@ Default.args = {
75
74
  {
76
75
  createdAt: "2023-05-08T15:55:28.000+03:00",
77
76
  deletedAt: null,
78
- defaultDuration: 30,
79
77
  description: "Zone description 2",
80
78
  id: 2,
81
79
  image: null,
@@ -105,7 +103,6 @@ Default.args = {
105
103
  termsAndConditions: "",
106
104
  isDefault: true,
107
105
  operationalCost: OPERATIONAL_COST_CUSTOMER,
108
- relyOnPeopleType: RELY_ON_PEOPLE_PRODUCT_QUANTITY,
109
106
  steps: [
110
107
  {
111
108
  id: 1,
@@ -117,6 +114,7 @@ Default.args = {
117
114
  minSubItems: 1,
118
115
  maxSubItems: 10,
119
116
  quantityType: "constant",
117
+ isRelyOnPeople: false,
120
118
  isTimeRelated: false,
121
119
  hasTicket: false,
122
120
  allowDeposits: false,
@@ -185,6 +183,7 @@ Default.args = {
185
183
  minSubItems: 0,
186
184
  maxSubItems: 0,
187
185
  quantityType: "recharging",
186
+ isRelyOnPeople: false,
188
187
  isTimeRelated: false,
189
188
  hasTicket: false,
190
189
  allowDeposits: false,
@@ -203,6 +202,7 @@ Default.args = {
203
202
  minSubItems: 0,
204
203
  maxSubItems: 0,
205
204
  quantityType: "recharging",
205
+ isRelyOnPeople: false,
206
206
  isTimeRelated: false,
207
207
  hasTicket: false,
208
208
  allowDeposits: false,
@@ -288,6 +288,7 @@ Default.args = {
288
288
  minSubItems: 0,
289
289
  maxSubItems: null,
290
290
  quantityType: "recharging",
291
+ isRelyOnPeople: false,
291
292
  isTimeRelated: false,
292
293
  hasTicket: false,
293
294
  allowDeposits: false,
@@ -896,6 +897,7 @@ Valid.args = {
896
897
  minSubItems: 0,
897
898
  maxSubItems: 0,
898
899
  quantityType: "recharging",
900
+ isRelyOnPeople: false,
899
901
  isTimeRelated: false,
900
902
  hasTicket: false,
901
903
  allowDeposits: false,
@@ -1110,6 +1112,7 @@ Valid.args = {
1110
1112
  minSubItems: 0,
1111
1113
  maxSubItems: 0,
1112
1114
  quantityType: "recharging",
1115
+ isRelyOnPeople: false,
1113
1116
  isTimeRelated: false,
1114
1117
  hasTicket: false,
1115
1118
  allowDeposits: false,
@@ -14,7 +14,6 @@ import { generateUuid } from "@licklist/core/dist/Services";
14
14
  import HookFormService from "@licklist/plugins/dist/services/Form/HookFormService";
15
15
 
16
16
  import { CategoryType } from "@licklist/core/dist/DataMapper/Product/ProductCategoryDataMapper";
17
- import { Zone } from "@licklist/core/dist/DataMapper/Provider/ZoneDataMapper";
18
17
  import { ProductControl, ProductControlProps, ProductSetFormValues } from "..";
19
18
  import { SortableTree } from "../../sortable-tree";
20
19
  import { CreateProductSetItem } from "../item/CreateProductSetItem";
@@ -33,7 +32,6 @@ interface ProductsControlProps extends WithIsLoading {
33
32
  productCategoryIndex: number;
34
33
  hasTicket?: boolean;
35
34
  categoryType: CategoryType;
36
- zones?: Zone[];
37
35
  }
38
36
 
39
37
  const getDefaultProductValue = (sort: number): Product => ({
@@ -76,7 +74,6 @@ export function ProductsControl({
76
74
  productCategoryIndex,
77
75
  hasTicket,
78
76
  categoryType,
79
- zones,
80
77
  }: ProductsControlProps) {
81
78
  const { t } = useTranslation("Design");
82
79
  const form = useFormContext<ProductSetFormValues>();
@@ -92,12 +89,6 @@ export function ProductsControl({
92
89
  getValues,
93
90
  } = form;
94
91
 
95
- const zoneId = watch(
96
- `steps.${stepIndex}.productCategories.${productCategoryIndex}.zoneId`
97
- );
98
-
99
- const catergoryZone = zones?.find((zone) => zone.id === Number(zoneId));
100
-
101
92
  const productControlFieldName =
102
93
  `steps.${stepIndex}.productCategories.${productCategoryIndex}.products` as const;
103
94
 
@@ -254,7 +245,6 @@ export function ProductsControl({
254
245
  onProductNameChange={onChange}
255
246
  hasTicket={hasTicket}
256
247
  categoryType={categoryType}
257
- zoneDuration={catergoryZone?.defaultDuration}
258
248
  />
259
249
  }
260
250
  onDelete={() => onProductRemove(index)}