@licklist/design 0.44.486-dev.83 → 0.44.486-dev.9

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 (461) 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 -6
  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.js +1 -1
  12. package/dist/events/event-card/EventCard.d.ts.map +1 -1
  13. package/dist/events/event-card/EventCard.js +1 -1
  14. package/dist/events/event-card/utils.d.ts +0 -29
  15. package/dist/events/event-card/utils.d.ts.map +1 -1
  16. package/dist/events/event-card/utils.js +1 -1
  17. package/dist/events/event-statistic-modal/EventStatisticModal.d.ts +1 -3
  18. package/dist/events/event-statistic-modal/EventStatisticModal.d.ts.map +1 -1
  19. package/dist/events/event-statistic-modal/EventStatisticModal.js +1 -1
  20. package/dist/events/event-statistic-modal/hooks/useTableData.d.ts +1 -2
  21. package/dist/events/event-statistic-modal/hooks/useTableData.d.ts.map +1 -1
  22. package/dist/events/event-statistic-modal/hooks/useTableData.js +1 -1
  23. package/dist/events/event-statistic-modal/utils/index.d.ts +1 -1
  24. package/dist/events/event-statistic-modal/utils/index.d.ts.map +1 -1
  25. package/dist/events/event-statistic-modal/utils/index.js +1 -1
  26. package/dist/events/event-venue-map/hooks/useImage.d.ts.map +1 -1
  27. package/dist/events/event-venue-map/hooks/useImage.js +1 -1
  28. package/dist/file-upload/FileUpload.d.ts.map +1 -1
  29. package/dist/file-upload/FileUpload.js +1 -1
  30. package/dist/iframe/activity-cards/activity-card/ActivityCard.d.ts +12 -0
  31. package/dist/iframe/activity-cards/activity-card/ActivityCard.d.ts.map +1 -0
  32. package/dist/iframe/activity-cards/activity-card/ActivityCard.js +1 -0
  33. package/dist/iframe/activity-cards/index.d.ts +3 -0
  34. package/dist/iframe/activity-cards/index.d.ts.map +1 -0
  35. package/dist/iframe/activity-cards/list-activity-card/ListActivityCard.d.ts +12 -0
  36. package/dist/iframe/activity-cards/list-activity-card/ListActivityCard.d.ts.map +1 -0
  37. package/dist/iframe/activity-cards/list-activity-card/ListActivityCard.js +1 -0
  38. package/dist/iframe/event/event-calendar/EventCalendar.d.ts +7 -0
  39. package/dist/iframe/event/event-calendar/EventCalendar.d.ts.map +1 -0
  40. package/dist/iframe/event/event-calendar/EventCalendar.js +1 -0
  41. package/dist/iframe/event/event-calendar/components/CalendarButtons/CalendarButtons.d.ts +6 -0
  42. package/dist/iframe/event/event-calendar/components/CalendarButtons/CalendarButtons.d.ts.map +1 -0
  43. package/dist/iframe/event/event-calendar/components/CalendarButtons/CalendarButtons.js +1 -0
  44. package/dist/iframe/event/event-calendar/components/CalendarButtons/index.d.ts.map +1 -0
  45. package/dist/iframe/event/event-calendar/components/CalendarDate/CalendarDate.d.ts +12 -0
  46. package/dist/iframe/event/event-calendar/components/CalendarDate/CalendarDate.d.ts.map +1 -0
  47. package/dist/iframe/event/event-calendar/components/CalendarDate/CalendarDate.js +1 -0
  48. package/dist/iframe/event/event-calendar/components/CalendarDate/index.d.ts +3 -0
  49. package/dist/iframe/event/event-calendar/components/CalendarDate/index.d.ts.map +1 -0
  50. package/dist/iframe/event/event-calendar/components/CalendarDates/CalendarDates.d.ts +7 -0
  51. package/dist/iframe/event/event-calendar/components/CalendarDates/CalendarDates.d.ts.map +1 -0
  52. package/dist/iframe/event/event-calendar/components/CalendarDates/CalendarDates.js +1 -0
  53. package/dist/iframe/event/event-calendar/components/CalendarDates/index.d.ts.map +1 -0
  54. package/dist/iframe/event/event-calendar/components/CalendarSelect/CalendarSelect.d.ts.map +1 -0
  55. package/dist/iframe/event/event-calendar/components/CalendarSelect/CalendarSelect.js +1 -0
  56. package/dist/iframe/event/event-calendar/components/CalendarSelect/index.d.ts.map +1 -0
  57. package/dist/iframe/event/event-calendar/components/CalendarWeekdays/CalendarWeekdays.d.ts.map +1 -0
  58. package/dist/iframe/event/event-calendar/components/CalendarWeekdays/index.d.ts.map +1 -0
  59. package/dist/iframe/event/event-calendar/index.d.ts +4 -0
  60. package/dist/iframe/event/event-calendar/index.d.ts.map +1 -0
  61. package/dist/iframe/event/event-calendar/types/index.d.ts +6 -0
  62. package/dist/iframe/event/event-calendar/types/index.d.ts.map +1 -0
  63. package/dist/iframe/event/event-calendar/utils/index.d.ts +3 -0
  64. package/dist/iframe/event/event-calendar/utils/index.d.ts.map +1 -0
  65. package/dist/iframe/event/event-calendar/utils/index.js +1 -0
  66. package/dist/iframe/event/event-details/EventDetails.d.ts +10 -0
  67. package/dist/iframe/event/event-details/EventDetails.d.ts.map +1 -0
  68. package/dist/iframe/event/event-details/EventDetails.js +1 -0
  69. package/dist/iframe/event/event-details/components/category-product/CategoryProduct.d.ts +9 -0
  70. package/dist/iframe/event/event-details/components/category-product/CategoryProduct.d.ts.map +1 -0
  71. package/dist/iframe/event/event-details/components/category-product/CategoryProduct.js +1 -0
  72. package/dist/iframe/event/event-details/components/category-product/index.d.ts +2 -0
  73. package/dist/iframe/event/event-details/components/category-product/index.d.ts.map +1 -0
  74. package/dist/iframe/event/event-details/components/event-details-form/EventDetailsForm.d.ts +26 -0
  75. package/dist/iframe/event/event-details/components/event-details-form/EventDetailsForm.d.ts.map +1 -0
  76. package/dist/iframe/event/event-details/components/event-details-form/EventDetailsForm.js +1 -0
  77. package/dist/iframe/event/event-details/components/event-details-form/index.d.ts +2 -0
  78. package/dist/iframe/event/event-details/components/event-details-form/index.d.ts.map +1 -0
  79. package/dist/iframe/event/event-details/components/number-of-people-input/NumberOfPeopleInput.d.ts.map +1 -0
  80. package/dist/iframe/event/event-details/components/number-of-people-input/NumberOfPeopleInput.js +1 -0
  81. package/dist/{number-of-people-input/components → iframe/event/event-details/components/number-of-people-input/component}/RenderNumberOfPeopleInputComponent.d.ts +3 -2
  82. package/dist/iframe/event/event-details/components/number-of-people-input/component/RenderNumberOfPeopleInputComponent.d.ts.map +1 -0
  83. package/dist/iframe/event/event-details/components/number-of-people-input/component/RenderNumberOfPeopleInputComponent.js +1 -0
  84. package/dist/iframe/event/event-details/components/number-of-people-input/component/index.d.ts +2 -0
  85. package/dist/iframe/event/event-details/components/number-of-people-input/component/index.d.ts.map +1 -0
  86. package/dist/iframe/event/event-details/components/number-of-people-input/index.d.ts +2 -0
  87. package/dist/iframe/event/event-details/components/number-of-people-input/index.d.ts.map +1 -0
  88. package/dist/iframe/event/event-details/components/product-category-view/ProductCategoryView.d.ts +8 -0
  89. package/dist/iframe/event/event-details/components/product-category-view/ProductCategoryView.d.ts.map +1 -0
  90. package/dist/iframe/event/event-details/components/product-category-view/ProductCategoryView.js +1 -0
  91. package/dist/iframe/event/event-details/components/product-category-view/index.d.ts +2 -0
  92. package/dist/iframe/event/event-details/components/product-category-view/index.d.ts.map +1 -0
  93. package/dist/iframe/event/event-details/index.d.ts +2 -0
  94. package/dist/iframe/event/event-details/index.d.ts.map +1 -0
  95. package/dist/iframe/event/event-details/utils/index.d.ts +2 -0
  96. package/dist/iframe/event/event-details/utils/index.d.ts.map +1 -0
  97. package/dist/iframe/event/event-details/utils/routes.d.ts +2 -0
  98. package/dist/iframe/event/event-details/utils/routes.d.ts.map +1 -0
  99. package/dist/iframe/event/event-details/utils/routes.js +1 -0
  100. package/dist/iframe/event/index.d.ts +2 -0
  101. package/dist/iframe/event/index.d.ts.map +1 -1
  102. package/dist/iframe/event/ticket-description/TicketDescription.d.ts.map +1 -1
  103. package/dist/iframe/event/ticket-description/TicketDescription.js +1 -1
  104. package/dist/iframe/index.d.ts +2 -2
  105. package/dist/iframe/index.d.ts.map +1 -1
  106. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts +1 -1
  107. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.js +1 -1
  108. package/dist/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/BookingSummaryAccordion.js +1 -1
  109. package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts +1 -1
  110. package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts.map +1 -1
  111. package/dist/iframe/order-process/components/BookingSummary/utils/index.js +1 -1
  112. package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.d.ts.map +1 -1
  113. package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.js +1 -1
  114. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts.map +1 -1
  115. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.js +1 -1
  116. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts +1 -4
  117. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts.map +1 -1
  118. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.js +1 -1
  119. package/dist/iframe/order-process/components/ErrorModal/ErrorModal.d.ts +1 -2
  120. package/dist/iframe/order-process/components/ErrorModal/ErrorModal.d.ts.map +1 -1
  121. package/dist/iframe/order-process/components/ErrorModal/ErrorModal.js +1 -1
  122. package/dist/iframe/order-process/components/Timer/utils/index.d.ts +1 -1
  123. package/dist/iframe/order-process/components/Timer/utils/index.d.ts.map +1 -1
  124. package/dist/iframe/order-process/components/Timer/utils/index.js +1 -1
  125. package/dist/iframe/order-process/components/utils/useCategoryVerification.d.ts +2 -2
  126. package/dist/iframe/order-process/components/utils/useCategoryVerification.d.ts.map +1 -1
  127. package/dist/iframe/order-process/components/utils/useCategoryVerification.js +1 -1
  128. package/dist/iframe/order-process/constants.d.ts +0 -1
  129. package/dist/iframe/order-process/constants.d.ts.map +1 -1
  130. package/dist/iframe/order-process/constants.js +1 -1
  131. package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.d.ts.map +1 -1
  132. package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.js +1 -1
  133. package/dist/index.d.ts +0 -3
  134. package/dist/index.d.ts.map +1 -1
  135. package/dist/index.js +1 -1
  136. package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
  137. package/dist/notification/email-template/control/EmailTemplateControl.js +1 -1
  138. package/dist/product-set/control/DateAndRecurrenceInput.d.ts +1 -5
  139. package/dist/product-set/control/DateAndRecurrenceInput.d.ts.map +1 -1
  140. package/dist/product-set/control/DateAndRecurrenceInput.js +1 -1
  141. package/dist/product-set/control/ProductSetControl.d.ts +3 -6
  142. package/dist/product-set/control/ProductSetControl.d.ts.map +1 -1
  143. package/dist/product-set/control/ProductSetControl.js +1 -1
  144. package/dist/product-set/control/ProductSetRecurrenceControl.d.ts +1 -2
  145. package/dist/product-set/control/ProductSetRecurrenceControl.d.ts.map +1 -1
  146. package/dist/product-set/control/ProductSetRecurrenceControl.js +1 -1
  147. package/dist/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
  148. package/dist/product-set/form/ProductCategoriesControl.js +1 -1
  149. package/dist/product-set/form/ProductSetForm.d.ts +1 -3
  150. package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
  151. package/dist/product-set/form/ProductSetForm.js +1 -1
  152. package/dist/product-set/form/ProductsControl.d.ts +1 -3
  153. package/dist/product-set/form/ProductsControl.d.ts.map +1 -1
  154. package/dist/product-set/form/ProductsControl.js +1 -1
  155. package/dist/product-set/product/ProductControl.d.ts +1 -2
  156. package/dist/product-set/product/ProductControl.d.ts.map +1 -1
  157. package/dist/product-set/product/ProductControl.js +1 -1
  158. package/dist/product-set/product/duration/ProductDurationControl.js +1 -1
  159. package/dist/product-set/product-category/ProductCategoryControl.d.ts +1 -0
  160. package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
  161. package/dist/product-set/product-category/ProductCategoryControl.js +1 -1
  162. package/dist/product-set/utils/index.d.ts +0 -10
  163. package/dist/product-set/utils/index.d.ts.map +1 -1
  164. package/dist/product-set/utils/index.js +1 -1
  165. package/dist/provider/location-input/LocationInput.d.ts.map +1 -1
  166. package/dist/provider/location-input/LocationInput.js +1 -1
  167. package/dist/provider/location-input/index.d.ts +0 -1
  168. package/dist/provider/location-input/index.d.ts.map +1 -1
  169. package/dist/provider/provider-details-input/ProviderDetailsInput.d.ts.map +1 -1
  170. package/dist/provider/provider-details-input/ProviderDetailsInput.js +1 -1
  171. package/dist/provider/provider-form/ProviderForm.js +1 -1
  172. package/dist/provider/venue-form/VenueForm.d.ts +1 -3
  173. package/dist/provider/venue-form/VenueForm.d.ts.map +1 -1
  174. package/dist/provider/venue-form/VenueForm.js +1 -1
  175. package/dist/recurrence-input/RecurrenceEndInput.d.ts +1 -8
  176. package/dist/recurrence-input/RecurrenceEndInput.d.ts.map +1 -1
  177. package/dist/recurrence-input/RecurrenceEndInput.js +1 -1
  178. package/dist/recurrence-input/RecurrenceInput.d.ts +1 -2
  179. package/dist/recurrence-input/RecurrenceInput.d.ts.map +1 -1
  180. package/dist/recurrence-input/RecurrenceInput.js +1 -1
  181. package/dist/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.d.ts +1 -4
  182. package/dist/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.d.ts.map +1 -1
  183. package/dist/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.js +1 -1
  184. package/dist/recurring-date-picker-input/RecurringDatePickerInput.d.ts +0 -1
  185. package/dist/recurring-date-picker-input/RecurringDatePickerInput.d.ts.map +1 -1
  186. package/dist/recurring-date-picker-input/RecurringDatePickerInput.js +1 -1
  187. package/dist/report/form/ReportForm.d.ts.map +1 -1
  188. package/dist/sales/booking/results/BookingResults.d.ts +1 -3
  189. package/dist/sales/booking/results/BookingResults.d.ts.map +1 -1
  190. package/dist/sales/booking/results/BookingResults.js +1 -1
  191. package/dist/sales/booking/results/components/ResultCard.d.ts +1 -3
  192. package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
  193. package/dist/sales/booking/results/components/ResultCard.js +1 -1
  194. package/dist/sales/coupon/control/CouponFormControl.d.ts.map +1 -1
  195. package/dist/sales/coupon/control/CouponFormControl.js +1 -1
  196. package/dist/sales/filters/SaleFilters.d.ts +0 -1
  197. package/dist/sales/filters/SaleFilters.d.ts.map +1 -1
  198. package/dist/sales/manual-booking/summary/ManualBookingSummary.d.ts +1 -3
  199. package/dist/sales/manual-booking/summary/ManualBookingSummary.d.ts.map +1 -1
  200. package/dist/sales/manual-booking/summary/ManualBookingSummary.js +1 -1
  201. package/dist/sales/payment-form/SalePaymentForm.js +1 -1
  202. package/dist/sales/source-of-sales/SourceOfSalesChart.d.ts.map +1 -1
  203. package/dist/sales/source-of-sales/SourceOfSalesChart.js +1 -1
  204. package/dist/snippet/snippet-template/preview/Preview.d.ts.map +1 -1
  205. package/dist/snippet/snippet-template/preview/Preview.js +1 -1
  206. package/dist/static/RestrictedAccess.d.ts.map +1 -1
  207. package/dist/static/form-number-input/FormNumberInput.d.ts +1 -2
  208. package/dist/static/form-number-input/FormNumberInput.d.ts.map +1 -1
  209. package/dist/static/form-number-input/FormNumberInput.js +1 -1
  210. package/dist/styles/events/EventCard.scss +5 -12
  211. package/dist/styles/form/CustomCheckbox.scss +0 -6
  212. package/dist/styles/header/Header.scss +4 -0
  213. package/{src/styles/activity-card/GridActivitiesCard.scss → dist/styles/iframe-customers-journey/ActivitiesCard.scss} +9 -1
  214. package/dist/styles/{activity-card/ListActivitiesCard.scss → iframe-customers-journey/ActivitiesSelectedCard.scss} +1 -2
  215. package/dist/styles/{date-time-button → iframe-customers-journey}/DateTimeButton.scss +12 -6
  216. package/dist/styles/iframe-customers-journey/_index.scss +3 -0
  217. package/dist/styles/iframe-events/Card.scss +0 -1
  218. package/dist/styles/notification/Notification.scss +0 -4
  219. package/dist/styles/packages.scss +1 -3
  220. package/dist/styles/resources-blocking/_index.scss +0 -16
  221. package/dist/styles/sales/BookingResults.scss +6 -14
  222. package/dist/styles/themes/bookedit/_index.scss +0 -1
  223. package/dist/styles/zones/ZoneForm.scss +0 -3
  224. package/dist/types/iframe.d.ts +0 -1
  225. package/dist/types/iframe.d.ts.map +1 -1
  226. package/dist/virtualized/components/VirtualizedWindowScroller.d.ts.map +1 -1
  227. package/dist/virtualized/components/VirtualizedWindowScroller.js +1 -1
  228. package/dist/zone/form/ZoneForm.d.ts +1 -1
  229. package/dist/zone/form/ZoneForm.d.ts.map +1 -1
  230. package/dist/zone/form/ZoneForm.js +1 -1
  231. package/dist/zone/form/components/AvailableTimesControl.d.ts +0 -2
  232. package/dist/zone/form/components/AvailableTimesControl.d.ts.map +1 -1
  233. package/dist/zone/form/components/AvailableTimesControl.js +1 -1
  234. package/dist/zone/form/components/ZoneControl.d.ts +1 -1
  235. package/dist/zone/form/components/ZoneControl.d.ts.map +1 -1
  236. package/dist/zone/form/components/ZoneControl.js +1 -1
  237. package/dist/zone/form/components/ZoneRecurrencesControl.d.ts +1 -1
  238. package/dist/zone/form/components/ZoneRecurrencesControl.d.ts.map +1 -1
  239. package/dist/zone/form/components/ZoneRecurrencesControl.js +1 -1
  240. package/dist/zone/form/utils/dates.d.ts.map +1 -1
  241. package/dist/zone/form/utils/dates.js +1 -1
  242. package/package.json +3 -3
  243. package/src/assets/logo/bookedit.svg +11 -9
  244. package/src/assets/logo/licklist.svg +2 -0
  245. package/src/date-time-button/DateTimeButton.stories.tsx +0 -17
  246. package/src/date-time-button/DateTimeButton.tsx +22 -24
  247. package/src/events/edit-event-modal/IntervalInput.tsx +0 -3
  248. package/src/events/edit-event-modal/component/EditEventForm/EditEventForm.stories.tsx +12 -0
  249. package/src/events/edit-event-modal/component/EditEventForm/EditEventForm.tsx +1 -1
  250. package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +2 -2
  251. package/src/events/event-card/EventCard.tsx +2 -6
  252. package/src/events/event-card/utils.ts +16 -89
  253. package/src/events/event-statistic-modal/EventStatisticModal.tsx +1 -5
  254. package/src/events/event-statistic-modal/hooks/useTableData.tsx +5 -12
  255. package/src/events/event-statistic-modal/utils/index.ts +34 -39
  256. package/src/events/event-venue-map/hooks/useImage.tsx +8 -17
  257. package/src/file-upload/FileUpload.tsx +1 -3
  258. package/src/iframe/activity-cards/activity-card/ActivityCard.stories.tsx +52 -0
  259. package/src/iframe/activity-cards/activity-card/ActivityCard.tsx +38 -0
  260. package/src/iframe/activity-cards/index.ts +2 -0
  261. package/src/iframe/activity-cards/list-activity-card/ListActivityCard.stories.tsx +52 -0
  262. package/src/iframe/activity-cards/list-activity-card/ListActivityCard.tsx +49 -0
  263. package/src/iframe/event/event-calendar/EventCalendar.stories.tsx +36 -0
  264. package/src/iframe/event/event-calendar/EventCalendar.tsx +27 -0
  265. package/src/{calendar → iframe/event/event-calendar}/components/CalendarButtons/CalendarButtons.tsx +14 -31
  266. package/src/iframe/event/event-calendar/components/CalendarDate/CalendarDate.tsx +51 -0
  267. package/src/iframe/event/event-calendar/components/CalendarDate/index.ts +2 -0
  268. package/src/{calendar → iframe/event/event-calendar}/components/CalendarDates/CalendarDates.tsx +19 -24
  269. package/src/{calendar → iframe/event/event-calendar}/components/CalendarSelect/CalendarSelect.tsx +1 -1
  270. package/src/iframe/event/event-calendar/index.ts +6 -0
  271. package/src/iframe/event/event-calendar/types/index.ts +6 -0
  272. package/src/iframe/event/event-calendar/utils/index.ts +11 -0
  273. package/src/iframe/event/event-details/EventDetails.stories.tsx +187 -0
  274. package/src/iframe/event/event-details/EventDetails.tsx +92 -0
  275. package/src/iframe/event/event-details/EventDetailsOneStepForm.stories.tsx +123 -0
  276. package/src/iframe/event/event-details/components/category-product/CategoryProduct.tsx +109 -0
  277. package/src/iframe/event/event-details/components/category-product/index.ts +1 -0
  278. package/src/iframe/event/event-details/components/event-details-form/EventDetailsForm.tsx +250 -0
  279. package/src/iframe/event/event-details/components/event-details-form/index.ts +5 -0
  280. package/src/{number-of-people-input → iframe/event/event-details/components/number-of-people-input}/NumberOfPeopleInput.tsx +1 -1
  281. package/src/{number-of-people-input/components → iframe/event/event-details/components/number-of-people-input/component}/RenderNumberOfPeopleInputComponent.tsx +3 -3
  282. package/src/iframe/event/event-details/components/number-of-people-input/component/index.ts +1 -0
  283. package/src/iframe/event/event-details/components/number-of-people-input/index.ts +1 -0
  284. package/src/iframe/event/event-details/components/product-category-view/ProductCategoryView.tsx +34 -0
  285. package/src/iframe/event/event-details/components/product-category-view/index.ts +1 -0
  286. package/src/iframe/event/event-details/index.ts +1 -0
  287. package/src/iframe/event/event-details/utils/index.ts +1 -0
  288. package/src/iframe/event/event-details/utils/routes.ts +6 -0
  289. package/src/iframe/event/event-venue-map/IframeEventVenueMap.stories.tsx +2 -1
  290. package/src/iframe/event/index.ts +7 -0
  291. package/src/iframe/event/ticket-description/TicketDescription.stories.tsx +2 -8
  292. package/src/iframe/event/ticket-description/TicketDescription.tsx +2 -7
  293. package/src/iframe/index.ts +3 -1
  294. package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +2 -2
  295. package/src/iframe/order-process/components/BookingSummary/types/index.ts +1 -1
  296. package/src/iframe/order-process/components/BookingSummary/utils/index.ts +0 -2
  297. package/src/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.stories.tsx +1 -0
  298. package/src/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.tsx +7 -16
  299. package/src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx +15 -1
  300. package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +29 -15
  301. package/src/iframe/order-process/components/ErrorModal/ErrorModal.tsx +9 -12
  302. package/src/iframe/order-process/components/Timer/utils/index.ts +9 -6
  303. package/src/iframe/order-process/components/utils/useCategoryVerification.ts +5 -36
  304. package/src/iframe/order-process/constants.ts +0 -1
  305. package/src/iframe/page/Page.stories.tsx +2 -2
  306. package/src/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.tsx +6 -13
  307. package/src/iframe/payment/payment-page/PaymentPage.stories.tsx +1 -1
  308. package/src/iframe/payment/payment-page/PaymentPage.tsx +4 -4
  309. package/src/index.ts +0 -3
  310. package/src/notification/email-template/control/EmailTemplateControl.tsx +1 -26
  311. package/src/product-set/control/DateAndRecurrenceInput.tsx +2 -75
  312. package/src/product-set/control/ProductSetControl.stories.tsx +2 -0
  313. package/src/product-set/control/ProductSetControl.tsx +10 -66
  314. package/src/product-set/control/ProductSetRecurrenceControl.tsx +5 -14
  315. package/src/product-set/form/ProductCategoriesControl.tsx +1 -2
  316. package/src/product-set/form/ProductSetForm.stories.tsx +12 -9
  317. package/src/product-set/form/ProductSetForm.tsx +3 -19
  318. package/src/product-set/form/ProductsControl.tsx +0 -10
  319. package/src/product-set/product/ProductControl.tsx +1 -28
  320. package/src/product-set/product/duration/ProductDurationControl.tsx +1 -1
  321. package/src/product-set/product-category/ProductCategory.stories.tsx +1 -0
  322. package/src/product-set/product-category/ProductCategoryControl.tsx +30 -1
  323. package/src/product-set/utils/index.ts +0 -38
  324. package/src/provider/location-input/LocationInput.tsx +20 -21
  325. package/src/provider/location-input/LocationInputDescription.tsx +2 -2
  326. package/src/provider/location-input/index.ts +1 -1
  327. package/src/provider/provider-details-input/ProviderDetailsInput.tsx +13 -5
  328. package/src/provider/venue-form/VenueForm.stories.tsx +0 -24
  329. package/src/provider/venue-form/VenueForm.tsx +4 -55
  330. package/src/recurrence-input/RecurrenceEndInput.tsx +10 -28
  331. package/src/recurrence-input/RecurrenceInput.tsx +2 -12
  332. package/src/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.tsx +11 -21
  333. package/src/recurring-date-picker-input/RecurringDatePickerInput.tsx +0 -9
  334. package/src/report/form/ReportForm.tsx +1 -1
  335. package/src/sales/booking/results/BookingResults.stories.tsx +7 -12
  336. package/src/sales/booking/results/BookingResults.tsx +0 -7
  337. package/src/sales/booking/results/components/ResultCard.tsx +6 -62
  338. package/src/sales/coupon/control/CouponFormControl.tsx +0 -5
  339. package/src/sales/filters/SaleFilters.tsx +0 -1
  340. package/src/sales/guest-profile/previous-bookings/PreviousBookings.stories.tsx +7 -0
  341. package/src/sales/manual-booking/summary/ManualBookingSummary.tsx +5 -20
  342. package/src/sales/source-of-sales/SourceOfSalesChart.tsx +28 -31
  343. package/src/snippet/snippet-template/preview/Preview.tsx +2 -14
  344. package/src/static/RestrictedAccess.tsx +1 -1
  345. package/src/static/form-number-input/FormNumberInput.tsx +1 -8
  346. package/src/styles/events/EventCard.scss +5 -12
  347. package/src/styles/form/CustomCheckbox.scss +0 -6
  348. package/src/styles/header/Header.scss +4 -0
  349. package/{dist/styles/activity-card/GridActivitiesCard.scss → src/styles/iframe-customers-journey/ActivitiesCard.scss} +9 -1
  350. package/src/styles/{activity-card/ListActivitiesCard.scss → iframe-customers-journey/ActivitiesSelectedCard.scss} +1 -2
  351. package/src/styles/{date-time-button → iframe-customers-journey}/DateTimeButton.scss +12 -6
  352. package/src/styles/iframe-customers-journey/_index.scss +3 -0
  353. package/src/styles/iframe-events/Card.scss +0 -1
  354. package/src/styles/notification/Notification.scss +0 -4
  355. package/src/styles/packages.scss +1 -3
  356. package/src/styles/resources-blocking/_index.scss +0 -16
  357. package/src/styles/sales/BookingResults.scss +6 -14
  358. package/src/styles/themes/bookedit/_index.scss +0 -1
  359. package/src/styles/zones/ZoneForm.scss +0 -3
  360. package/src/types/iframe.ts +0 -1
  361. package/src/typings.d.ts +0 -11
  362. package/src/virtualized/components/VirtualizedWindowScroller.tsx +1 -2
  363. package/src/zone/form/ZoneForm.tsx +2 -1
  364. package/src/zone/form/components/AvailableTimesControl.tsx +88 -89
  365. package/src/zone/form/components/ZoneControl.tsx +5 -4
  366. package/src/zone/form/components/ZoneRecurrencesControl.tsx +59 -3
  367. package/src/zone/form/utils/dates.ts +36 -29
  368. package/dist/assets/iframe/available.svg.js +0 -1
  369. package/dist/assets/iframe/limited.svg.js +0 -1
  370. package/dist/assets/iframe/soldOut.svg.js +0 -1
  371. package/dist/assets/logo/favicon.svg +0 -12
  372. package/dist/availability-indicator/AvailabilityIndicator.d.ts +0 -10
  373. package/dist/availability-indicator/AvailabilityIndicator.d.ts.map +0 -1
  374. package/dist/availability-indicator/AvailabilityIndicator.js +0 -1
  375. package/dist/availability-indicator/index.d.ts +0 -2
  376. package/dist/availability-indicator/index.d.ts.map +0 -1
  377. package/dist/calendar/Calendar.d.ts +0 -19
  378. package/dist/calendar/Calendar.d.ts.map +0 -1
  379. package/dist/calendar/Calendar.js +0 -1
  380. package/dist/calendar/components/CalendarButtons/CalendarButtons.d.ts +0 -6
  381. package/dist/calendar/components/CalendarButtons/CalendarButtons.d.ts.map +0 -1
  382. package/dist/calendar/components/CalendarButtons/CalendarButtons.js +0 -1
  383. package/dist/calendar/components/CalendarButtons/index.d.ts.map +0 -1
  384. package/dist/calendar/components/CalendarDates/CalendarDates.d.ts +0 -5
  385. package/dist/calendar/components/CalendarDates/CalendarDates.d.ts.map +0 -1
  386. package/dist/calendar/components/CalendarDates/CalendarDates.js +0 -1
  387. package/dist/calendar/components/CalendarDates/index.d.ts.map +0 -1
  388. package/dist/calendar/components/CalendarSelect/CalendarSelect.d.ts.map +0 -1
  389. package/dist/calendar/components/CalendarSelect/CalendarSelect.js +0 -1
  390. package/dist/calendar/components/CalendarSelect/index.d.ts.map +0 -1
  391. package/dist/calendar/components/CalendarWeekdays/CalendarWeekdays.d.ts.map +0 -1
  392. package/dist/calendar/components/CalendarWeekdays/index.d.ts.map +0 -1
  393. package/dist/calendar/index.d.ts +0 -4
  394. package/dist/calendar/index.d.ts.map +0 -1
  395. package/dist/calendar/utils/index.d.ts +0 -5
  396. package/dist/calendar/utils/index.d.ts.map +0 -1
  397. package/dist/calendar/utils/index.js +0 -1
  398. package/dist/iframe/activity-card/ActivityCard.d.ts +0 -15
  399. package/dist/iframe/activity-card/ActivityCard.d.ts.map +0 -1
  400. package/dist/iframe/activity-card/ActivityCard.js +0 -1
  401. package/dist/iframe/activity-card/index.d.ts +0 -2
  402. package/dist/iframe/activity-card/index.d.ts.map +0 -1
  403. package/dist/number-of-people-input/NumberOfPeopleInput.d.ts.map +0 -1
  404. package/dist/number-of-people-input/NumberOfPeopleInput.js +0 -1
  405. package/dist/number-of-people-input/components/RenderNumberOfPeopleInputComponent.d.ts.map +0 -1
  406. package/dist/number-of-people-input/components/RenderNumberOfPeopleInputComponent.js +0 -1
  407. package/dist/number-of-people-input/components/index.d.ts +0 -2
  408. package/dist/number-of-people-input/components/index.d.ts.map +0 -1
  409. package/dist/number-of-people-input/index.d.ts +0 -3
  410. package/dist/number-of-people-input/index.d.ts.map +0 -1
  411. package/dist/provider/location-input/components/FormGroupControll.d.ts +0 -7
  412. package/dist/provider/location-input/components/FormGroupControll.d.ts.map +0 -1
  413. package/dist/provider/location-input/components/FormGroupControll.js +0 -1
  414. package/dist/provider/location-input/components/index.d.ts +0 -2
  415. package/dist/provider/location-input/components/index.d.ts.map +0 -1
  416. package/dist/styles/activity-card/_index.scss +0 -2
  417. package/dist/styles/availability-indicator/AvailabilityIndicator.scss +0 -7
  418. package/dist/styles/availability-indicator/_index.scss +0 -1
  419. package/dist/styles/date-time-button/_index.scss +0 -1
  420. package/dist/zone/form/components/GameDurationControl.d.ts +0 -7
  421. package/dist/zone/form/components/GameDurationControl.d.ts.map +0 -1
  422. package/dist/zone/form/components/GameDurationControl.js +0 -1
  423. package/src/assets/logo/favicon.svg +0 -12
  424. package/src/availability-indicator/AvailabilityIndicator.tsx +0 -67
  425. package/src/availability-indicator/index.ts +0 -1
  426. package/src/calendar/Calendar.stories.tsx +0 -33
  427. package/src/calendar/Calendar.tsx +0 -45
  428. package/src/calendar/index.ts +0 -3
  429. package/src/calendar/utils/index.ts +0 -28
  430. package/src/iframe/activity-card/ActivityCard.stories.tsx +0 -51
  431. package/src/iframe/activity-card/ActivityCard.tsx +0 -66
  432. package/src/iframe/activity-card/index.ts +0 -1
  433. package/src/number-of-people-input/components/RenderNumberOfPeopleInputComponent.stories.tsx +0 -92
  434. package/src/number-of-people-input/components/index.ts +0 -1
  435. package/src/number-of-people-input/index.ts +0 -2
  436. package/src/provider/location-input/components/FormGroupControll.tsx +0 -16
  437. package/src/provider/location-input/components/index.ts +0 -1
  438. package/src/styles/activity-card/_index.scss +0 -2
  439. package/src/styles/availability-indicator/AvailabilityIndicator.scss +0 -7
  440. package/src/styles/availability-indicator/_index.scss +0 -1
  441. package/src/styles/date-time-button/_index.scss +0 -1
  442. package/src/zone/form/components/GameDurationControl.tsx +0 -46
  443. /package/dist/assets/iframe/{available.svg → dateInfo/available.svg} +0 -0
  444. /package/dist/assets/iframe/{limited.svg → dateInfo/limited.svg} +0 -0
  445. /package/dist/assets/iframe/{soldOut.svg → dateInfo/soldOut.svg} +0 -0
  446. /package/dist/{calendar → iframe/event/event-calendar}/components/CalendarButtons/index.d.ts +0 -0
  447. /package/dist/{calendar → iframe/event/event-calendar}/components/CalendarDates/index.d.ts +0 -0
  448. /package/dist/{calendar → iframe/event/event-calendar}/components/CalendarSelect/CalendarSelect.d.ts +0 -0
  449. /package/dist/{calendar → iframe/event/event-calendar}/components/CalendarSelect/index.d.ts +0 -0
  450. /package/dist/{calendar → iframe/event/event-calendar}/components/CalendarWeekdays/CalendarWeekdays.d.ts +0 -0
  451. /package/dist/{calendar → iframe/event/event-calendar}/components/CalendarWeekdays/CalendarWeekdays.js +0 -0
  452. /package/dist/{calendar → iframe/event/event-calendar}/components/CalendarWeekdays/index.d.ts +0 -0
  453. /package/dist/{number-of-people-input → iframe/event/event-details/components/number-of-people-input}/NumberOfPeopleInput.d.ts +0 -0
  454. /package/src/assets/iframe/{available.svg → dateInfo/available.svg} +0 -0
  455. /package/src/assets/iframe/{limited.svg → dateInfo/limited.svg} +0 -0
  456. /package/src/assets/iframe/{soldOut.svg → dateInfo/soldOut.svg} +0 -0
  457. /package/src/{calendar → iframe/event/event-calendar}/components/CalendarButtons/index.ts +0 -0
  458. /package/src/{calendar → iframe/event/event-calendar}/components/CalendarDates/index.ts +0 -0
  459. /package/src/{calendar → iframe/event/event-calendar}/components/CalendarSelect/index.ts +0 -0
  460. /package/src/{calendar → iframe/event/event-calendar}/components/CalendarWeekdays/CalendarWeekdays.tsx +0 -0
  461. /package/src/{calendar → iframe/event/event-calendar}/components/CalendarWeekdays/index.ts +0 -0
@@ -0,0 +1,123 @@
1
+ import { Meta } from "@storybook/react";
2
+ import React, { useState } from "react";
3
+ import { boolean } from "@storybook/addon-knobs";
4
+ import { EventDetails } from "./EventDetails";
5
+
6
+ export default {
7
+ title: "Iframe/Event/EventDetailsOneStepForm",
8
+ component: EventDetails,
9
+ } as Meta;
10
+
11
+ const productCategories = [
12
+ {
13
+ id: 1,
14
+ name: "Early Bird General Admission",
15
+ products: [
16
+ {
17
+ id: 7,
18
+ name: "Beer",
19
+ description: `Ticket is valid for students and non students.
20
+ You do not need student ID for this event but do require regular age ID e.g. driving licence or passport.
21
+ Ticket valid for entry before 11.30pm for 12.30am showtime.`,
22
+ minQuantity: 1,
23
+ maxQuantity: 10,
24
+ price: 1,
25
+ },
26
+ {
27
+ id: 8,
28
+ name: "Wine",
29
+ description: `Ticket is valid for students and non students.
30
+ You do not need student ID for this event but do require regular age ID e.g. driving licence or passport.
31
+ Ticket valid for entry before 11.30pm for 12.30am showtime.`,
32
+ minQuantity: 1,
33
+ maxQuantity: 10,
34
+ price: 1,
35
+ isRequired: true,
36
+ },
37
+ ],
38
+ },
39
+ {
40
+ id: 2,
41
+ name: "Nice",
42
+ products: [
43
+ {
44
+ id: 3,
45
+ name: "Beer",
46
+ description: `Ticket is valid for students and non students.
47
+ You do not need student ID for this event but do require regular age ID e.g. driving licence or passport.
48
+ Ticket valid for entry before 11.30pm for 12.30am showtime.`,
49
+ minQuantity: 1,
50
+ maxQuantity: 10,
51
+ price: 1,
52
+ },
53
+ {
54
+ id: 5,
55
+ name: "Wine",
56
+ description: `Ticket is valid for students and non students.
57
+ You do not need student ID for this event but do require regular age ID e.g. driving licence or passport.
58
+ Ticket valid for entry before 11.30pm for 12.30am showtime.`,
59
+ minQuantity: 1,
60
+ maxQuantity: 10,
61
+ price: 1,
62
+ },
63
+ ],
64
+ },
65
+ ];
66
+
67
+ const menus = [
68
+ {
69
+ id: 1,
70
+ name: "Menu 1",
71
+ menuSteps: [
72
+ {
73
+ id: 1,
74
+ name: "Burger",
75
+ productCategories: productCategories,
76
+ },
77
+ ],
78
+ },
79
+ ];
80
+
81
+ export function Default() {
82
+ const [_order, setOrder] = useState({});
83
+
84
+ const onSubmit = (values: any) => {
85
+ setOrder(values);
86
+ };
87
+
88
+ const showImage = boolean("showImage", true);
89
+
90
+ return (
91
+ <div>
92
+ <EventDetails
93
+ menus={menus}
94
+ description="On the other hand, we denounce with righteous indignation and dislike
95
+ men who are so beguiled and demoralized by the charms of pleasure of
96
+ the moment, so blinded by desire, that they cannot foresee the pain
97
+ and trouble that are bound to ensue; and equal blame belongs to those
98
+ who fail in their duty through weakness of will, which is the same as
99
+ saying through shrinking from toil and pain. These cases are perfectly
100
+ simple and easy to distinguish. In a free hour, when our power of
101
+ choice is untrammelled and when nothing prevents our being able to do
102
+ what we like best, every pleasure is to be welcomed and every pain
103
+ avoided. But in certain circumstances and owing to the claims of duty
104
+ or the obligations of business it will frequently occur that pleasures
105
+ have to be repudiated and annoyances accepted. The wise man therefore
106
+ always holds in these matters to this principle of selection: he
107
+ rejects pleasures to secure other greater pleasures, or else he
108
+ endures pains to avoid worse pains."
109
+ cost={6}
110
+ title="Glitterbomb Bucks / Baga Chipz"
111
+ date="Sat 2nd May"
112
+ imageSrc={
113
+ // eslint-disable-next-line max-len
114
+ showImage
115
+ ? "https://images.unsplash.com/photo-1638988319382-90e61be77c59?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=387&q=80 387w, https://images.unsplash.com/photo-1638988319382-90e61be77c59?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=687&q=80 687w, https://images.unsplash.com/photo-1638988319382-90e61be77c59?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=774&q=80 774w, https://images.unsplash.com/photo-1638988319382-90e61be77c59?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=987&q=80 987w, https://images.unsplash.com/photo-1638988319382-90e61be77c59?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1287&q=80 1287w, https://images.unsplash.com/photo-1638988319382-90e61be77c59?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1374&q=80 1374w, https://images.unsplash.com/photo-1638988319382-90e61be77c59?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1587&q=80 1587w, https://images.unsplash.com/photo-1638988319382-90e61be77c59?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1887&q=80 1887w, https://images.unsplash.com/photo-1638988319382-90e61be77c59?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1974&q=80 1974w, https://images.unsplash.com/photo-1638988319382-90e61be77c59?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2187&q=80 2187w, https://images.unsplash.com/photo-1638988319382-90e61be77c59?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2487&q=80 2487w, https://images.unsplash.com/photo-1638988319382-90e61be77c59?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2574&q=80 2574w, https://images.unsplash.com/photo-1638988319382-90e61be77c59?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2787&q=80 2787w, https://images.unsplash.com/photo-1638988319382-90e61be77c59?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=3087&q=80 3087w, https://images.unsplash.com/photo-1638988319382-90e61be77c59?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=3174&q=80 3174w, https://images.unsplash.com/photo-1638988319382-90e61be77c59?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=3387&q=80 3387w, https://images.unsplash.com/photo-1638988319382-90e61be77c59?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=3687&q=80 3687w, https://images.unsplash.com/photo-1638988319382-90e61be77c59?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=3774&q=80 3774w, https://images.unsplash.com/photo-1638988319382-90e61be77c59?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=3987&q=80 3987w, https://images.unsplash.com/photo-1638988319382-90e61be77c59?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=4000&q=80 4000w"
116
+ : null
117
+ }
118
+ onSubmit={onSubmit}
119
+ relyOnPeopleCategoryIds={[1]}
120
+ />
121
+ </div>
122
+ );
123
+ }
@@ -0,0 +1,109 @@
1
+ import React from "react";
2
+ import { useIntl } from "react-intl";
3
+ import { useFormContext, Controller } from "react-hook-form";
4
+ import clsx from "clsx";
5
+ import { useTranslation, Trans } from "react-i18next";
6
+ import { TicketDescription } from "../../../ticket-description";
7
+ import { NumberInput } from "../../../../../static";
8
+ import { ProductCategory, Product } from "../../../../../types";
9
+
10
+ interface CategoryProductProps {
11
+ product: Product;
12
+ category: ProductCategory;
13
+ }
14
+
15
+ export const CategoryProduct = ({
16
+ product,
17
+ category,
18
+ }: CategoryProductProps) => {
19
+ const { formatNumber } = useIntl();
20
+ const { t } = useTranslation("Design");
21
+ const { control, clearErrors } = useFormContext();
22
+
23
+ return (
24
+ <Controller
25
+ control={control}
26
+ name={`${product.id}` as const}
27
+ rules={{
28
+ required: product.isRequired,
29
+ validate: product.isRequired
30
+ ? (product) => product?.quantity > 0
31
+ : undefined,
32
+ }}
33
+ render={({
34
+ field: { onChange, value: productInfo = {} },
35
+ fieldState: { invalid },
36
+ }) => {
37
+ return (
38
+ <div id={String(product.id)}>
39
+ <div className={clsx("iframe-event__product", invalid && "error")}>
40
+ <TicketDescription
41
+ title={product.name}
42
+ description={product.description}
43
+ className="iframe-event__product-description"
44
+ images={product.images}
45
+ />
46
+
47
+ <NumberInput
48
+ onChange={(val) => {
49
+ onChange({
50
+ id: product.id,
51
+ quantity: val,
52
+ name: product.name,
53
+ price: product.price,
54
+ productsCategoryId: category.id,
55
+ });
56
+ clearErrors(`${product.id}` as const);
57
+ }}
58
+ onArrowDown={() => {
59
+ onChange({
60
+ id: product.id,
61
+ quantity: productInfo?.quantity - 1 || 0,
62
+ name: product.name,
63
+ price: product.price,
64
+ productsCategoryId: category.id,
65
+ });
66
+ clearErrors(`${product.id}` as const);
67
+ }}
68
+ onArrowUp={() => {
69
+ onChange({
70
+ id: product.id,
71
+ quantity: (productInfo?.quantity ?? 0) + 1,
72
+ name: product.name,
73
+ price: product.price,
74
+ productsCategoryId: category.id,
75
+ });
76
+ clearErrors(`${product.id}` as const);
77
+ }}
78
+ min={0}
79
+ value={productInfo?.quantity || 0}
80
+ className={clsx(
81
+ "iframe-event__product-count",
82
+ invalid && "error"
83
+ )}
84
+ />
85
+ <span className="iframe-event__product-price-multiplier">X</span>
86
+ <span className="iframe-event__product-price">
87
+ {formatNumber(product.price * (productInfo?.quantity || 1), {
88
+ style: "currency",
89
+ currency: "GBP",
90
+ })}
91
+ </span>
92
+ </div>
93
+ {invalid && (
94
+ <div className="d-flex mt-3 ml-5 mr-5 w-100">
95
+ <p className="iframe-event__message-error">
96
+ <Trans
97
+ t={t}
98
+ i18nKey="pleaseSelectAtLeastFrom"
99
+ values={{ min: 1, type: "item", from: "this category" }}
100
+ />
101
+ </p>
102
+ </div>
103
+ )}
104
+ </div>
105
+ );
106
+ }}
107
+ />
108
+ );
109
+ };
@@ -0,0 +1 @@
1
+ export { CategoryProduct } from "./CategoryProduct";
@@ -0,0 +1,250 @@
1
+ import React, {
2
+ CSSProperties,
3
+ useState,
4
+ useRef,
5
+ useEffect,
6
+ useMemo,
7
+ } from "react";
8
+ import { useHistory, useLocation } from "react-router-dom";
9
+ import { Badge, Image, Form } from "react-bootstrap";
10
+ import { useTranslation, Trans } from "react-i18next";
11
+ import { useIntl } from "react-intl";
12
+ import { useForm, FormProvider, useWatch } from "react-hook-form";
13
+ import clsx from "clsx";
14
+ import {
15
+ scrollToError,
16
+ scrollToElement,
17
+ } from "@licklist/plugins/dist/utils/ScrollUtils";
18
+ import {
19
+ getFirstErrorKey,
20
+ isFormValuesEmpty,
21
+ } from "@licklist/plugins/dist/utils/FormValues";
22
+
23
+ import { TextExpand } from "../../../../../static";
24
+ import { EventNavigationFooter } from "../../../event-navigation-footer";
25
+ import { ProductCategoryView } from "../product-category-view";
26
+ import { NumberOfPeopleInput } from "../number-of-people-input";
27
+
28
+ import { Menu, WizardFormValues } from "../../../../../types";
29
+ import { TipTapEditor } from "../../../../../tiptap-editor/TipTapEditor";
30
+
31
+ const DESCRIPTION_MAX_LENGTH = 120;
32
+ const NO_ORDER_ITEMS_ERROR = "NO_ORDER_ITEMS_ERROR";
33
+
34
+ export interface WizardFormProps {
35
+ onFormSubmit: (props: {
36
+ values: WizardFormValues;
37
+ pathname?: string;
38
+ isBackAction?: boolean;
39
+ }) => void;
40
+ routes?: string[];
41
+ menu: Menu;
42
+ numberOfSteps: number;
43
+ defaultValues: WizardFormValues;
44
+ }
45
+
46
+ export interface EventDetailsFormProps {
47
+ title: string;
48
+ date: string;
49
+ cost?: number;
50
+ description: string;
51
+ imageSrc?: null | string;
52
+ menus?: Menu[];
53
+ isBuyNowDisabled?: boolean;
54
+ relyOnPeopleCategoryIds?: number[];
55
+ onPrevStep?: () => void;
56
+ }
57
+
58
+ export function EventDetailsForm({
59
+ title,
60
+ cost,
61
+ description,
62
+ imageSrc,
63
+ date,
64
+ menu,
65
+ isBuyNowDisabled,
66
+ onFormSubmit,
67
+ routes = [],
68
+ numberOfSteps,
69
+ defaultValues,
70
+ relyOnPeopleCategoryIds = [],
71
+ onPrevStep,
72
+ }: EventDetailsFormProps & WizardFormProps) {
73
+ const history = useHistory();
74
+ const { pathname } = useLocation();
75
+
76
+ const { formatNumber } = useIntl();
77
+ const { t } = useTranslation("Design");
78
+ const form = useForm({ defaultValues });
79
+ const headerRef = useRef(null);
80
+
81
+ const {
82
+ trigger,
83
+ handleSubmit,
84
+ getValues,
85
+ control,
86
+ setError,
87
+ clearErrors,
88
+ formState: { errors },
89
+ } = form;
90
+ const formValues = useWatch({ control });
91
+
92
+ const [isDescriptionExpanded, setIsDescriptionExpanded] = useState(false);
93
+
94
+ const pathNameIndex = routes.indexOf(pathname);
95
+ const step = pathNameIndex > 0 ? pathNameIndex : 0;
96
+ const nextStep = step + 1;
97
+
98
+ const onNextClick = async () => {
99
+ if (!(await trigger())) {
100
+ scrollToError(getFirstErrorKey(errors));
101
+ return;
102
+ }
103
+ submitCurrentForm(getValues());
104
+
105
+ if (routes.length) {
106
+ history.push(routes[pathNameIndex + 1]);
107
+ }
108
+ };
109
+
110
+ const onPrevClick = () => {
111
+ onFormSubmit({ values: getValues(), pathname, isBackAction: true });
112
+
113
+ if (routes.length) {
114
+ history.push(routes[pathNameIndex - 1]);
115
+ }
116
+ };
117
+
118
+ const submitCurrentForm = (values: WizardFormValues) => {
119
+ if (nextStep === numberOfSteps && isFormValuesEmpty(values)) {
120
+ setError(NO_ORDER_ITEMS_ERROR, {});
121
+ scrollToError(NO_ORDER_ITEMS_ERROR);
122
+ return;
123
+ }
124
+
125
+ onFormSubmit({ values, pathname, isBackAction: false });
126
+ };
127
+
128
+ const onErrorSubmit = (submitErrors) => {
129
+ scrollToError(getFirstErrorKey(submitErrors));
130
+ };
131
+
132
+ const shouldShowPeopleInput = useMemo(() => {
133
+ const values = Object.values(formValues)
134
+ .filter(Boolean)
135
+ .filter(
136
+ (product) =>
137
+ relyOnPeopleCategoryIds.includes(product.productsCategoryId) &&
138
+ product.quantity > 0
139
+ );
140
+
141
+ return Boolean(values.length);
142
+ }, [formValues, relyOnPeopleCategoryIds]);
143
+
144
+ useEffect(() => {
145
+ scrollToElement(headerRef.current);
146
+ }, []);
147
+
148
+ useEffect(() => {
149
+ if (!isFormValuesEmpty(formValues)) {
150
+ clearErrors(NO_ORDER_ITEMS_ERROR);
151
+ }
152
+ }, [formValues, clearErrors]);
153
+
154
+ const descriptionWrapperStyle = {
155
+ "--description-wrapper-height": isDescriptionExpanded ? "inherit" : "8rem",
156
+ } as CSSProperties;
157
+
158
+ return (
159
+ <Form onSubmit={handleSubmit(submitCurrentForm, onErrorSubmit)}>
160
+ <FormProvider {...form}>
161
+ <div className="iframe-event">
162
+ <div className="iframe-event__header" ref={headerRef}>
163
+ {imageSrc && (
164
+ <Image src={imageSrc} width="300rem" height="250rem" />
165
+ )}
166
+ <div className={clsx(imageSrc && "ml-5")}>
167
+ <Badge variant="dark" className="iframe-event__badge">
168
+ {date}
169
+ </Badge>
170
+ <h5 className="mt-3 iframe-event__title">{title}</h5>
171
+ <div className="d-flex flex-wrap justify-content-between">
172
+ {cost !== undefined && (
173
+ <div>
174
+ <div className="iframe-event-card__label">{t("cost")}</div>
175
+ <div className="iframe-event-card__bold">
176
+ {t("from")}{" "}
177
+ {formatNumber(cost, {
178
+ style: "currency",
179
+ currency: "GBP",
180
+ })}
181
+ </div>
182
+ </div>
183
+ )}
184
+ </div>
185
+ </div>
186
+ </div>
187
+ {!!description && (
188
+ <div
189
+ className="iframe-event__description-wrapper"
190
+ style={descriptionWrapperStyle}
191
+ >
192
+ {description.length > DESCRIPTION_MAX_LENGTH ? (
193
+ <TextExpand
194
+ className="iframe-event__description my-6"
195
+ isExpanded={isDescriptionExpanded}
196
+ setIsExpanded={setIsDescriptionExpanded}
197
+ >
198
+ <TipTapEditor viewMode disabled content={description} />
199
+ </TextExpand>
200
+ ) : (
201
+ <div className="my-6">
202
+ <TipTapEditor viewMode disabled content={description} />
203
+ </div>
204
+ )}
205
+ </div>
206
+ )}
207
+ {!!menu && (
208
+ <>
209
+ {menu.menuSteps[step].name && (
210
+ <h3 className="iframe-event__name">
211
+ {menu.menuSteps[step].name}
212
+ </h3>
213
+ )}
214
+
215
+ <ProductCategoryView
216
+ productCategories={menu.menuSteps[step]?.productCategories}
217
+ />
218
+
219
+ {shouldShowPeopleInput && nextStep === numberOfSteps && (
220
+ <NumberOfPeopleInput />
221
+ )}
222
+ {errors[NO_ORDER_ITEMS_ERROR] && (
223
+ <div
224
+ className="d-flex m-5 justify-content-center form-error"
225
+ id={NO_ORDER_ITEMS_ERROR}
226
+ >
227
+ <Trans
228
+ t={t}
229
+ i18nKey="pleaseSelectAtLeastFrom"
230
+ values={{ min: 1, type: "item", from: "those categories" }}
231
+ />
232
+ </div>
233
+ )}
234
+ <div className="iframe-event__footer">
235
+ <EventNavigationFooter
236
+ isBuyNowDisabled={isBuyNowDisabled}
237
+ amount={numberOfSteps}
238
+ activeElement={nextStep}
239
+ onPrevClick={onPrevClick}
240
+ onNextClick={onNextClick}
241
+ onPrevStep={onPrevStep}
242
+ />
243
+ </div>
244
+ </>
245
+ )}
246
+ </div>
247
+ </FormProvider>
248
+ </Form>
249
+ );
250
+ }
@@ -0,0 +1,5 @@
1
+ export {
2
+ EventDetailsForm,
3
+ EventDetailsFormProps,
4
+ WizardFormProps,
5
+ } from "./EventDetailsForm";
@@ -1,6 +1,6 @@
1
1
  import React, { useEffect } from "react";
2
2
  import { useFormContext, Controller } from "react-hook-form";
3
- import { RenderNumberOfPeopleInputComponent } from "./components";
3
+ import { RenderNumberOfPeopleInputComponent } from "./component";
4
4
 
5
5
  const NUMBER_OF_PEOPLE = "numberOfPeople";
6
6
 
@@ -1,14 +1,14 @@
1
1
  import React from "react";
2
2
  import { useTranslation, Trans } from "react-i18next";
3
3
  import clsx from "clsx";
4
- import { NumberInput } from "../../iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput";
4
+ import { NumberInput } from "../../../../../order-process/components/CategoryProduct/components/NumberInput";
5
5
 
6
6
  const NUMBER_OF_PEOPLE = "numberOfPeople";
7
7
 
8
- export interface RenderNumberOfPeopleInputComponentProps {
8
+ interface RenderNumberOfPeopleInputComponentProps {
9
9
  onChangePeopleAmount: (value: number) => void;
10
10
  peopleAmount: number;
11
- peopleAmountError?: boolean;
11
+ peopleAmountError: boolean;
12
12
  }
13
13
 
14
14
  export const RenderNumberOfPeopleInputComponent = ({
@@ -0,0 +1 @@
1
+ export { RenderNumberOfPeopleInputComponent } from "./RenderNumberOfPeopleInputComponent";
@@ -0,0 +1 @@
1
+ export { NumberOfPeopleInput } from "./NumberOfPeopleInput";
@@ -0,0 +1,34 @@
1
+ import React from "react";
2
+
3
+ import { ProductCategory } from "../../../../../types";
4
+ import { CategoryProduct } from "../category-product";
5
+
6
+ interface ProductCategoryViewProps {
7
+ productCategories: ProductCategory[];
8
+ }
9
+
10
+ export function ProductCategoryView({
11
+ productCategories,
12
+ }: ProductCategoryViewProps) {
13
+ return (
14
+ <>
15
+ {productCategories.length !== 0 &&
16
+ productCategories.map((category) => {
17
+ return (
18
+ <div key={category.id} className="iframe-event__category">
19
+ <h4 className="iframe-event__name">{category.name}</h4>
20
+ {category.products.map((product) => {
21
+ return (
22
+ <CategoryProduct
23
+ key={product.id}
24
+ product={product}
25
+ category={category}
26
+ />
27
+ );
28
+ })}
29
+ </div>
30
+ );
31
+ })}
32
+ </>
33
+ );
34
+ }
@@ -0,0 +1 @@
1
+ export { ProductCategoryView } from "./ProductCategoryView";
@@ -0,0 +1 @@
1
+ export { EventDetails } from "./EventDetails";
@@ -0,0 +1 @@
1
+ export * from "./routes";
@@ -0,0 +1,6 @@
1
+ const STEP_PATH_PREFIX = "step_";
2
+
3
+ export const routesByStepsCount = (count: number) =>
4
+ Array.from({ length: count }, (_v, i) => i).map(
5
+ (stepIndex: number) => `/${STEP_PATH_PREFIX}${stepIndex}`
6
+ );
@@ -5,7 +5,7 @@ import { IframeEventVenueMap } from "./IframeEventVenueMap";
5
5
  import { Page, PageBody, PageHeader } from "../../page";
6
6
  import { BookingSummaryFooter } from "../../order-process/components/BookingSummaryFooter";
7
7
  import { BookingSummary } from "../../order-process/components/BookingSummary";
8
- import { CalendarSelect } from "../../../calendar/components/CalendarSelect";
8
+ import { CalendarSelect } from "../event-calendar/components/CalendarSelect";
9
9
  import { Product } from "../../../types";
10
10
 
11
11
  export default {
@@ -26,6 +26,7 @@ const MENU_STEPS = [
26
26
  maxSubItems: 1,
27
27
  quantityType: "constant",
28
28
  type: "menuItems",
29
+ isRelyOnPeople: false,
29
30
  collectUserInfo: false,
30
31
  isTimeRelated: false,
31
32
  hasTicket: false,
@@ -1,6 +1,7 @@
1
1
  export { EventBookingForm } from "./event-booking-form";
2
2
  export { EventBookingView } from "./event-booking-view";
3
3
  export { IframeEventCard, IframeEventCardSkeleton } from "./event-card";
4
+ export { EventDetails } from "./event-details";
4
5
  export { TicketDescription } from "./ticket-description";
5
6
  export { EventTables } from "./event-tables";
6
7
  export { EventOrderSummary } from "./event-order-summary";
@@ -12,6 +13,12 @@ export {
12
13
  } from "./event-order-short-summary";
13
14
  export { EventDescription } from "./event-description";
14
15
  export { EventProductSets, EventProductSetsProps } from "./event-product-sets";
16
+ export {
17
+ EventCalendar,
18
+ CalendarSelect,
19
+ CalendarSelectProps,
20
+ CalendarSelectOption,
21
+ } from "./event-calendar";
15
22
  export {
16
23
  EventStepVenueMapZones,
17
24
  EventStepVenueMapZonesProps,
@@ -19,10 +19,7 @@ export const Default: Story = () => {
19
19
  If you are a student at Bucks University you do not need to buy a ticket,
20
20
  your general admission is included as part of the Big Deal packages."
21
21
  images={[
22
- {
23
- id: 1,
24
- url: "https://cdn.lickli.st/ZH4SRqrufMqcC8S1TWR3ELz9FU45he1t/images/original/000/000/000/000/481-b7e137ca90c91e24.jpeg",
25
- } as Image,
22
+ { id: 1, path: "https://source.unsplash.com/random" } as Image,
26
23
  ]}
27
24
  />
28
25
  </div>
@@ -41,10 +38,7 @@ export const Highlighted: Story = () => {
41
38
  If you are a student at Bucks University you do not need to buy a ticket,
42
39
  your general admission is included as part of the Big Deal packages."
43
40
  images={[
44
- {
45
- id: 1,
46
- url: "https://cdn.lickli.st/ZH4SRqrufMqcC8S1TWR3ELz9FU45he1t/images/original/000/000/000/000/481-b7e137ca90c91e24.jpeg",
47
- } as Image,
41
+ { id: 1, path: "https://source.unsplash.com/random" } as Image,
48
42
  ]}
49
43
  />
50
44
  </div>
@@ -1,9 +1,6 @@
1
1
  import React, { CSSProperties, ReactNode, useState } from "react";
2
2
  import clsx from "clsx";
3
- import {
4
- Image,
5
- THUMBNAIL_IMAGE_SIZE,
6
- } from "@licklist/core/dist/DataMapper/Media/ImageDataMapper";
3
+ import { Image } from "@licklist/core/dist/DataMapper/Media/ImageDataMapper";
7
4
  import MediaService from "@licklist/plugins/dist/services/Media/MediaService";
8
5
  import { TextExpand } from "../../../static/text-expand";
9
6
  import { TipTapEditor } from "../../../tiptap-editor/TipTapEditor";
@@ -34,9 +31,7 @@ export function TicketDescription({
34
31
 
35
32
  const wrapperClasses = clsx("ticket-description", className);
36
33
 
37
- const imageSrc = images
38
- ? MediaService.getImageSrc(images, THUMBNAIL_IMAGE_SIZE)
39
- : null;
34
+ const imageSrc = images ? MediaService.getImageSrc(images) : null;
40
35
 
41
36
  const descriptionWrapperStyle = {
42
37
  "--description-wrapper-height": "inherit",