@licklist/design 0.44.486-dev.49 → 0.44.486-dev.5

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 (307) 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/event-venue-map/hooks/useImage.d.ts.map +1 -1
  11. package/dist/events/event-venue-map/hooks/useImage.js +1 -1
  12. package/dist/file-upload/FileUpload.d.ts.map +1 -1
  13. package/dist/file-upload/FileUpload.js +1 -1
  14. package/dist/iframe/activity-cards/activity-card/ActivityCard.d.ts +12 -0
  15. package/dist/iframe/activity-cards/activity-card/ActivityCard.d.ts.map +1 -0
  16. package/dist/iframe/activity-cards/activity-card/ActivityCard.js +1 -0
  17. package/dist/iframe/activity-cards/index.d.ts +3 -0
  18. package/dist/iframe/activity-cards/index.d.ts.map +1 -0
  19. package/dist/iframe/activity-cards/list-activity-card/ListActivityCard.d.ts +12 -0
  20. package/dist/iframe/activity-cards/list-activity-card/ListActivityCard.d.ts.map +1 -0
  21. package/dist/iframe/activity-cards/list-activity-card/ListActivityCard.js +1 -0
  22. package/dist/iframe/event/event-calendar/EventCalendar.d.ts +7 -0
  23. package/dist/iframe/event/event-calendar/EventCalendar.d.ts.map +1 -0
  24. package/dist/iframe/event/event-calendar/EventCalendar.js +1 -0
  25. package/dist/iframe/event/event-calendar/components/CalendarButtons/CalendarButtons.d.ts +6 -0
  26. package/dist/iframe/event/event-calendar/components/CalendarButtons/CalendarButtons.d.ts.map +1 -0
  27. package/dist/iframe/event/event-calendar/components/CalendarButtons/CalendarButtons.js +1 -0
  28. package/dist/iframe/event/event-calendar/components/CalendarButtons/index.d.ts.map +1 -0
  29. package/dist/iframe/event/event-calendar/components/CalendarDate/CalendarDate.d.ts +12 -0
  30. package/dist/iframe/event/event-calendar/components/CalendarDate/CalendarDate.d.ts.map +1 -0
  31. package/dist/iframe/event/event-calendar/components/CalendarDate/CalendarDate.js +1 -0
  32. package/dist/iframe/event/event-calendar/components/CalendarDate/index.d.ts +3 -0
  33. package/dist/iframe/event/event-calendar/components/CalendarDate/index.d.ts.map +1 -0
  34. package/dist/iframe/event/event-calendar/components/CalendarDates/CalendarDates.d.ts +7 -0
  35. package/dist/iframe/event/event-calendar/components/CalendarDates/CalendarDates.d.ts.map +1 -0
  36. package/dist/iframe/event/event-calendar/components/CalendarDates/CalendarDates.js +1 -0
  37. package/dist/iframe/event/event-calendar/components/CalendarDates/index.d.ts.map +1 -0
  38. package/dist/iframe/event/event-calendar/components/CalendarSelect/CalendarSelect.d.ts.map +1 -0
  39. package/dist/iframe/event/event-calendar/components/CalendarSelect/CalendarSelect.js +1 -0
  40. package/dist/iframe/event/event-calendar/components/CalendarSelect/index.d.ts.map +1 -0
  41. package/dist/iframe/event/event-calendar/components/CalendarWeekdays/CalendarWeekdays.d.ts.map +1 -0
  42. package/dist/iframe/event/event-calendar/components/CalendarWeekdays/index.d.ts.map +1 -0
  43. package/dist/iframe/event/event-calendar/index.d.ts +4 -0
  44. package/dist/iframe/event/event-calendar/index.d.ts.map +1 -0
  45. package/dist/iframe/event/event-calendar/types/index.d.ts +6 -0
  46. package/dist/iframe/event/event-calendar/types/index.d.ts.map +1 -0
  47. package/dist/iframe/event/event-calendar/utils/index.d.ts +3 -0
  48. package/dist/iframe/event/event-calendar/utils/index.d.ts.map +1 -0
  49. package/dist/iframe/event/event-calendar/utils/index.js +1 -0
  50. package/dist/iframe/event/index.d.ts +1 -0
  51. package/dist/iframe/event/index.d.ts.map +1 -1
  52. package/dist/iframe/index.d.ts +2 -2
  53. package/dist/iframe/index.d.ts.map +1 -1
  54. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts +1 -1
  55. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts.map +1 -1
  56. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.js +1 -1
  57. package/dist/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/BookingSummaryAccordion.js +1 -1
  58. package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts +1 -2
  59. package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts.map +1 -1
  60. package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts.map +1 -1
  61. package/dist/iframe/order-process/components/BookingSummary/utils/index.js +1 -1
  62. package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.d.ts +1 -1
  63. package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.d.ts.map +1 -1
  64. package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.js +1 -1
  65. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts.map +1 -1
  66. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.js +1 -1
  67. package/dist/iframe/order-process/components/ErrorModal/ErrorModal.d.ts +1 -2
  68. package/dist/iframe/order-process/components/ErrorModal/ErrorModal.d.ts.map +1 -1
  69. package/dist/iframe/order-process/components/ErrorModal/ErrorModal.js +1 -1
  70. package/dist/iframe/order-process/components/Timer/utils/index.d.ts +1 -1
  71. package/dist/iframe/order-process/components/Timer/utils/index.d.ts.map +1 -1
  72. package/dist/iframe/order-process/components/Timer/utils/index.js +1 -1
  73. package/dist/iframe/order-process/components/utils/useCategoryVerification.d.ts +3 -4
  74. package/dist/iframe/order-process/components/utils/useCategoryVerification.d.ts.map +1 -1
  75. package/dist/iframe/order-process/components/utils/useCategoryVerification.js +1 -1
  76. package/dist/iframe/order-process/constants.d.ts +0 -1
  77. package/dist/iframe/order-process/constants.d.ts.map +1 -1
  78. package/dist/iframe/order-process/constants.js +1 -1
  79. package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.d.ts.map +1 -1
  80. package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.js +1 -1
  81. package/dist/iframe/payment/order-items-table/hooks/useTableData.d.ts.map +1 -1
  82. package/dist/iframe/payment/order-items-table/hooks/useTableData.js +1 -1
  83. package/dist/iframe/payment/order-items-table/types/index.d.ts +1 -7
  84. package/dist/iframe/payment/order-items-table/types/index.d.ts.map +1 -1
  85. package/dist/index.d.ts +0 -2
  86. package/dist/index.d.ts.map +1 -1
  87. package/dist/index.js +1 -1
  88. package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
  89. package/dist/notification/email-template/control/EmailTemplateControl.js +1 -1
  90. package/dist/product-set/control/ProductSetRecurrenceControl.d.ts.map +1 -1
  91. package/dist/product-set/control/ProductSetRecurrenceControl.js +1 -1
  92. package/dist/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
  93. package/dist/product-set/form/ProductCategoriesControl.js +1 -1
  94. package/dist/product-set/form/ProductsControl.d.ts +1 -3
  95. package/dist/product-set/form/ProductsControl.d.ts.map +1 -1
  96. package/dist/product-set/form/ProductsControl.js +1 -1
  97. package/dist/product-set/product/ProductControl.d.ts +1 -2
  98. package/dist/product-set/product/ProductControl.d.ts.map +1 -1
  99. package/dist/product-set/product/ProductControl.js +1 -1
  100. package/dist/product-set/product/duration/ProductDurationControl.js +1 -1
  101. package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
  102. package/dist/product-set/product-category/ProductCategoryControl.js +1 -1
  103. package/dist/provider/working-hours-input/WorkingHoursInputDescription.d.ts.map +1 -1
  104. package/dist/recurrence-input/RecurrenceEndInput.d.ts +1 -8
  105. package/dist/recurrence-input/RecurrenceEndInput.d.ts.map +1 -1
  106. package/dist/recurrence-input/RecurrenceEndInput.js +1 -1
  107. package/dist/recurrence-input/RecurrenceInput.d.ts +1 -2
  108. package/dist/recurrence-input/RecurrenceInput.d.ts.map +1 -1
  109. package/dist/recurrence-input/RecurrenceInput.js +1 -1
  110. package/dist/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.d.ts +1 -4
  111. package/dist/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.d.ts.map +1 -1
  112. package/dist/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.js +1 -1
  113. package/dist/recurring-date-picker-input/RecurringDatePickerInput.d.ts +0 -1
  114. package/dist/recurring-date-picker-input/RecurringDatePickerInput.d.ts.map +1 -1
  115. package/dist/recurring-date-picker-input/RecurringDatePickerInput.js +1 -1
  116. package/dist/report/form/ReportForm.d.ts.map +1 -1
  117. package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
  118. package/dist/sales/booking/results/components/ResultCard.js +1 -1
  119. package/dist/sales/coupon/control/CouponFormControl.d.ts.map +1 -1
  120. package/dist/sales/coupon/control/CouponFormControl.js +1 -1
  121. package/dist/snippet/snippet-template/preview/Preview.d.ts.map +1 -1
  122. package/dist/snippet/snippet-template/preview/Preview.js +1 -1
  123. package/dist/static/RestrictedAccess.d.ts.map +1 -1
  124. package/dist/static/form-number-input/FormNumberInput.d.ts +1 -2
  125. package/dist/static/form-number-input/FormNumberInput.d.ts.map +1 -1
  126. package/dist/static/form-number-input/FormNumberInput.js +1 -1
  127. package/dist/styles/form/CustomCheckbox.scss +0 -5
  128. package/dist/styles/header/Header.scss +4 -0
  129. package/dist/styles/{activity-card/GridActivitiesCard.scss → iframe-customers-journey/ActivitiesCard.scss} +1 -1
  130. package/{src/styles/activity-card/ListActivitiesCard.scss → dist/styles/iframe-customers-journey/ActivitiesSelectedCard.scss} +1 -2
  131. package/dist/styles/{date-time-button → iframe-customers-journey}/DateTimeButton.scss +12 -6
  132. package/dist/styles/iframe-customers-journey/_index.scss +3 -0
  133. package/dist/styles/iframe-events/Card.scss +0 -1
  134. package/dist/styles/iframe-page/PageBody.scss +2 -3
  135. package/dist/styles/notification/Notification.scss +0 -4
  136. package/dist/styles/packages.scss +1 -3
  137. package/dist/styles/resources-blocking/_index.scss +0 -5
  138. package/dist/styles/themes/bookedit/_index.scss +0 -1
  139. package/dist/virtualized/components/VirtualizedWindowScroller.d.ts.map +1 -1
  140. package/dist/virtualized/components/VirtualizedWindowScroller.js +1 -1
  141. package/dist/zone/form/components/AvailableTimesControl.d.ts.map +1 -1
  142. package/dist/zone/form/components/AvailableTimesControl.js +1 -1
  143. package/dist/zone/form/components/ZoneControl.d.ts.map +1 -1
  144. package/dist/zone/form/components/ZoneControl.js +1 -1
  145. package/dist/zone/form/components/ZoneRecurrencesControl.d.ts.map +1 -1
  146. package/dist/zone/form/components/ZoneRecurrencesControl.js +1 -1
  147. package/dist/zone/form/utils/dates.d.ts.map +1 -1
  148. package/dist/zone/form/utils/dates.js +1 -1
  149. package/package.json +2 -2
  150. package/src/assets/logo/bookedit.svg +11 -9
  151. package/src/assets/logo/licklist.svg +2 -0
  152. package/src/date-time-button/DateTimeButton.stories.tsx +0 -17
  153. package/src/date-time-button/DateTimeButton.tsx +22 -19
  154. package/src/events/edit-event-modal/IntervalInput.tsx +0 -3
  155. package/src/events/event-venue-map/hooks/useImage.tsx +8 -17
  156. package/src/file-upload/FileUpload.tsx +1 -3
  157. package/src/iframe/{activity-card → activity-cards/activity-card}/ActivityCard.stories.tsx +1 -24
  158. package/src/iframe/activity-cards/activity-card/ActivityCard.tsx +38 -0
  159. package/src/iframe/activity-cards/index.ts +2 -0
  160. package/src/iframe/activity-cards/list-activity-card/ListActivityCard.stories.tsx +52 -0
  161. package/src/iframe/activity-cards/list-activity-card/ListActivityCard.tsx +49 -0
  162. package/src/iframe/event/event-calendar/EventCalendar.stories.tsx +36 -0
  163. package/src/iframe/event/event-calendar/EventCalendar.tsx +27 -0
  164. package/src/{calendar → iframe/event/event-calendar}/components/CalendarButtons/CalendarButtons.tsx +14 -31
  165. package/src/iframe/event/event-calendar/components/CalendarDate/CalendarDate.tsx +51 -0
  166. package/src/iframe/event/event-calendar/components/CalendarDate/index.ts +2 -0
  167. package/src/{calendar → iframe/event/event-calendar}/components/CalendarDates/CalendarDates.tsx +19 -24
  168. package/src/{calendar → iframe/event/event-calendar}/components/CalendarSelect/CalendarSelect.tsx +1 -1
  169. package/src/iframe/event/event-calendar/index.ts +6 -0
  170. package/src/iframe/event/event-calendar/types/index.ts +6 -0
  171. package/src/iframe/event/event-calendar/utils/index.ts +11 -0
  172. package/src/iframe/event/event-venue-map/IframeEventVenueMap.stories.tsx +1 -1
  173. package/src/iframe/event/index.ts +6 -0
  174. package/src/iframe/index.ts +2 -1
  175. package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +2 -4
  176. package/src/iframe/order-process/components/BookingSummary/types/index.ts +1 -2
  177. package/src/iframe/order-process/components/BookingSummary/utils/index.ts +0 -2
  178. package/src/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.tsx +8 -17
  179. package/src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx +15 -1
  180. package/src/iframe/order-process/components/ErrorModal/ErrorModal.tsx +9 -12
  181. package/src/iframe/order-process/components/Timer/utils/index.ts +9 -6
  182. package/src/iframe/order-process/components/utils/useCategoryVerification.ts +32 -62
  183. package/src/iframe/order-process/constants.ts +0 -1
  184. package/src/iframe/page/Page.stories.tsx +2 -2
  185. package/src/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.tsx +1 -6
  186. package/src/iframe/payment/order-items-table/hooks/useTableData.tsx +99 -11
  187. package/src/iframe/payment/order-items-table/types/index.ts +1 -18
  188. package/src/iframe/payment/payment-page/PaymentPage.stories.tsx +1 -1
  189. package/src/iframe/payment/payment-page/PaymentPage.tsx +4 -4
  190. package/src/index.ts +0 -2
  191. package/src/notification/email-template/control/EmailTemplateControl.tsx +1 -26
  192. package/src/product-set/control/ProductSetRecurrenceControl.tsx +4 -8
  193. package/src/product-set/form/ProductCategoriesControl.tsx +0 -2
  194. package/src/product-set/form/ProductSetForm.stories.tsx +0 -1
  195. package/src/product-set/form/ProductsControl.tsx +0 -10
  196. package/src/product-set/product/ProductControl.tsx +1 -28
  197. package/src/product-set/product/duration/ProductDurationControl.tsx +1 -1
  198. package/src/product-set/product-category/ProductCategoryControl.tsx +7 -1
  199. package/src/provider/location-input/LocationInputDescription.tsx +2 -2
  200. package/src/provider/working-hours-input/WorkingHoursInputDescription.tsx +6 -9
  201. package/src/recurrence-input/RecurrenceEndInput.tsx +10 -28
  202. package/src/recurrence-input/RecurrenceInput.tsx +2 -12
  203. package/src/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.tsx +21 -24
  204. package/src/recurring-date-picker-input/RecurringDatePickerInput.tsx +0 -9
  205. package/src/report/form/ReportForm.tsx +1 -1
  206. package/src/sales/booking/results/components/ResultCard.tsx +2 -3
  207. package/src/sales/coupon/control/CouponFormControl.tsx +0 -5
  208. package/src/snippet/snippet-template/preview/Preview.tsx +2 -14
  209. package/src/static/RestrictedAccess.tsx +1 -1
  210. package/src/static/form-number-input/FormNumberInput.tsx +1 -8
  211. package/src/styles/form/CustomCheckbox.scss +0 -5
  212. package/src/styles/header/Header.scss +4 -0
  213. package/src/styles/{activity-card/GridActivitiesCard.scss → iframe-customers-journey/ActivitiesCard.scss} +1 -1
  214. package/{dist/styles/activity-card/ListActivitiesCard.scss → src/styles/iframe-customers-journey/ActivitiesSelectedCard.scss} +1 -2
  215. package/src/styles/{date-time-button → iframe-customers-journey}/DateTimeButton.scss +12 -6
  216. package/src/styles/iframe-customers-journey/_index.scss +3 -0
  217. package/src/styles/iframe-events/Card.scss +0 -1
  218. package/src/styles/iframe-page/PageBody.scss +2 -3
  219. package/src/styles/notification/Notification.scss +0 -4
  220. package/src/styles/packages.scss +1 -3
  221. package/src/styles/resources-blocking/_index.scss +0 -5
  222. package/src/styles/themes/bookedit/_index.scss +0 -1
  223. package/src/typings.d.ts +0 -11
  224. package/src/virtualized/components/VirtualizedWindowScroller.tsx +1 -2
  225. package/src/zone/form/components/AvailableTimesControl.tsx +9 -4
  226. package/src/zone/form/components/ZoneControl.tsx +0 -2
  227. package/src/zone/form/components/ZoneRecurrencesControl.tsx +35 -27
  228. package/src/zone/form/utils/dates.ts +36 -29
  229. package/dist/assets/iframe/available.svg.js +0 -1
  230. package/dist/assets/iframe/limited.svg.js +0 -1
  231. package/dist/assets/iframe/soldOut.svg.js +0 -1
  232. package/dist/assets/logo/favicon.svg +0 -12
  233. package/dist/availability-indicator/AvailabilityIndicator.d.ts +0 -9
  234. package/dist/availability-indicator/AvailabilityIndicator.d.ts.map +0 -1
  235. package/dist/availability-indicator/AvailabilityIndicator.js +0 -1
  236. package/dist/availability-indicator/index.d.ts +0 -2
  237. package/dist/availability-indicator/index.d.ts.map +0 -1
  238. package/dist/calendar/Calendar.d.ts +0 -21
  239. package/dist/calendar/Calendar.d.ts.map +0 -1
  240. package/dist/calendar/Calendar.js +0 -1
  241. package/dist/calendar/components/CalendarButtons/CalendarButtons.d.ts +0 -6
  242. package/dist/calendar/components/CalendarButtons/CalendarButtons.d.ts.map +0 -1
  243. package/dist/calendar/components/CalendarButtons/CalendarButtons.js +0 -1
  244. package/dist/calendar/components/CalendarButtons/index.d.ts.map +0 -1
  245. package/dist/calendar/components/CalendarDates/CalendarDates.d.ts +0 -5
  246. package/dist/calendar/components/CalendarDates/CalendarDates.d.ts.map +0 -1
  247. package/dist/calendar/components/CalendarDates/CalendarDates.js +0 -1
  248. package/dist/calendar/components/CalendarDates/index.d.ts.map +0 -1
  249. package/dist/calendar/components/CalendarSelect/CalendarSelect.d.ts.map +0 -1
  250. package/dist/calendar/components/CalendarSelect/CalendarSelect.js +0 -1
  251. package/dist/calendar/components/CalendarSelect/index.d.ts.map +0 -1
  252. package/dist/calendar/components/CalendarWeekdays/CalendarWeekdays.d.ts.map +0 -1
  253. package/dist/calendar/components/CalendarWeekdays/index.d.ts.map +0 -1
  254. package/dist/calendar/index.d.ts +0 -4
  255. package/dist/calendar/index.d.ts.map +0 -1
  256. package/dist/calendar/utils/index.d.ts +0 -5
  257. package/dist/calendar/utils/index.d.ts.map +0 -1
  258. package/dist/calendar/utils/index.js +0 -1
  259. package/dist/iframe/activity-card/ActivityCard.d.ts +0 -17
  260. package/dist/iframe/activity-card/ActivityCard.d.ts.map +0 -1
  261. package/dist/iframe/activity-card/ActivityCard.js +0 -1
  262. package/dist/iframe/activity-card/index.d.ts +0 -2
  263. package/dist/iframe/activity-card/index.d.ts.map +0 -1
  264. package/dist/iframe/payment/order-items-table/types/index.js +0 -1
  265. package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts +0 -3
  266. package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts.map +0 -1
  267. package/dist/iframe/payment/order-items-table/utils/paymentSummary.js +0 -1
  268. package/dist/styles/activity-card/_index.scss +0 -2
  269. package/dist/styles/availability-indicator/AvailabilityIndicator.scss +0 -7
  270. package/dist/styles/availability-indicator/_index.scss +0 -1
  271. package/dist/styles/date-time-button/_index.scss +0 -1
  272. package/dist/zone/form/components/GameDurationControl.d.ts +0 -7
  273. package/dist/zone/form/components/GameDurationControl.d.ts.map +0 -1
  274. package/dist/zone/form/components/GameDurationControl.js +0 -1
  275. package/src/assets/logo/favicon.svg +0 -12
  276. package/src/availability-indicator/AvailabilityIndicator.tsx +0 -59
  277. package/src/availability-indicator/index.ts +0 -1
  278. package/src/calendar/Calendar.stories.tsx +0 -33
  279. package/src/calendar/Calendar.tsx +0 -46
  280. package/src/calendar/index.ts +0 -3
  281. package/src/calendar/utils/index.ts +0 -28
  282. package/src/iframe/activity-card/ActivityCard.tsx +0 -77
  283. package/src/iframe/activity-card/index.ts +0 -1
  284. package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +0 -118
  285. package/src/styles/activity-card/_index.scss +0 -2
  286. package/src/styles/availability-indicator/AvailabilityIndicator.scss +0 -7
  287. package/src/styles/availability-indicator/_index.scss +0 -1
  288. package/src/styles/date-time-button/_index.scss +0 -1
  289. package/src/zone/form/components/GameDurationControl.tsx +0 -46
  290. /package/dist/assets/iframe/{available.svg → dateInfo/available.svg} +0 -0
  291. /package/dist/assets/iframe/{limited.svg → dateInfo/limited.svg} +0 -0
  292. /package/dist/assets/iframe/{soldOut.svg → dateInfo/soldOut.svg} +0 -0
  293. /package/dist/{calendar → iframe/event/event-calendar}/components/CalendarButtons/index.d.ts +0 -0
  294. /package/dist/{calendar → iframe/event/event-calendar}/components/CalendarDates/index.d.ts +0 -0
  295. /package/dist/{calendar → iframe/event/event-calendar}/components/CalendarSelect/CalendarSelect.d.ts +0 -0
  296. /package/dist/{calendar → iframe/event/event-calendar}/components/CalendarSelect/index.d.ts +0 -0
  297. /package/dist/{calendar → iframe/event/event-calendar}/components/CalendarWeekdays/CalendarWeekdays.d.ts +0 -0
  298. /package/dist/{calendar → iframe/event/event-calendar}/components/CalendarWeekdays/CalendarWeekdays.js +0 -0
  299. /package/dist/{calendar → iframe/event/event-calendar}/components/CalendarWeekdays/index.d.ts +0 -0
  300. /package/src/assets/iframe/{available.svg → dateInfo/available.svg} +0 -0
  301. /package/src/assets/iframe/{limited.svg → dateInfo/limited.svg} +0 -0
  302. /package/src/assets/iframe/{soldOut.svg → dateInfo/soldOut.svg} +0 -0
  303. /package/src/{calendar → iframe/event/event-calendar}/components/CalendarButtons/index.ts +0 -0
  304. /package/src/{calendar → iframe/event/event-calendar}/components/CalendarDates/index.ts +0 -0
  305. /package/src/{calendar → iframe/event/event-calendar}/components/CalendarSelect/index.ts +0 -0
  306. /package/src/{calendar → iframe/event/event-calendar}/components/CalendarWeekdays/CalendarWeekdays.tsx +0 -0
  307. /package/src/{calendar → iframe/event/event-calendar}/components/CalendarWeekdays/index.ts +0 -0
@@ -1,46 +0,0 @@
1
- import React, { Dispatch, ReactElement, SetStateAction } from "react";
2
- import { DateTime } from "luxon";
3
- import { CalendarButtons } from "./components/CalendarButtons";
4
- import { CalendarDates } from "./components/CalendarDates";
5
-
6
- export const defaultStartDay = DateTime.now().set({
7
- millisecond: 0,
8
- second: 0,
9
- hour: 0,
10
- minute: 0,
11
- });
12
-
13
- export type CalendarProps = {
14
- currentDate: DateTime;
15
- setCurrentDate: Dispatch<SetStateAction<DateTime>>;
16
- calendarDates: DateTime[];
17
- disabledDates?: DateTime[];
18
- selectedDate: DateTime | null;
19
- setSelectedDate: Dispatch<SetStateAction<DateTime | null>>;
20
- fromPrice?: string | ReactElement | null;
21
- isLoading?: boolean;
22
- initialDate?: DateTime;
23
- getAvailability?: (
24
- date: DateTime
25
- ) => { booked: number; total: number } | undefined;
26
- includeAvailability?: boolean;
27
- };
28
-
29
- export const Calendar = ({
30
- disabledDates = [],
31
- initialDate = defaultStartDay,
32
- ...props
33
- }: CalendarProps) => {
34
- return (
35
- <div className="calendar-wrapper">
36
- <div className="calendar">
37
- <CalendarButtons
38
- disabledDates={disabledDates}
39
- initialDate={initialDate}
40
- {...props}
41
- />
42
- <CalendarDates disabledDates={disabledDates} {...props} />
43
- </div>
44
- </div>
45
- );
46
- };
@@ -1,3 +0,0 @@
1
- export * from "./Calendar";
2
- export * from "./components/CalendarSelect";
3
- export * from "./utils";
@@ -1,28 +0,0 @@
1
- import { DateTime, Interval } from "luxon";
2
- import isEqual from "lodash/isEqual";
3
-
4
- export const isSelectedDateDisabled = (
5
- selectedDate: DateTime,
6
- disabledDates: DateTime[] = []
7
- ) => {
8
- return !!disabledDates.find((disabledDate) =>
9
- isEqual(disabledDate.toObject(), selectedDate.toObject())
10
- );
11
- };
12
-
13
- export const getMonthCalendarDates = (initialDate: DateTime): DateTime[] => {
14
- const startOfMonth = initialDate.startOf("month");
15
- const endOfMonth = initialDate.endOf("month");
16
-
17
- return Interval.fromDateTimes(startOfMonth, endOfMonth)
18
- .splitBy({ day: 1 })
19
- .map((d) => d.start);
20
- };
21
-
22
- export const getWeekCalendarDates = (initialDate: DateTime): DateTime[] => {
23
- const lastDay = initialDate.plus({ days: 7 });
24
-
25
- return Interval.fromDateTimes(initialDate, lastDay)
26
- .splitBy({ day: 1 })
27
- .map((d) => d.start);
28
- };
@@ -1,77 +0,0 @@
1
- import React, { ReactNode } from "react";
2
- import clsx from "clsx";
3
- import { Image } from "@licklist/core/dist/DataMapper/Media/ImageDataMapper";
4
-
5
- export const LAYOUT_GRID = "grid";
6
- export const LAYOUT_LIST = "list";
7
-
8
- type Layout = typeof LAYOUT_GRID | typeof LAYOUT_LIST;
9
-
10
- export type ActivityCardProps = {
11
- title: ReactNode;
12
- duration: ReactNode;
13
- price: ReactNode;
14
- image?: Image | null;
15
- onSelect: () => void;
16
- isSelected: boolean;
17
- layout?: Layout;
18
- };
19
-
20
- export const ActivityCard = ({
21
- title,
22
- duration,
23
- price,
24
- image,
25
- onSelect,
26
- isSelected,
27
- layout = LAYOUT_GRID,
28
- }: ActivityCardProps) => {
29
- if (layout === LAYOUT_GRID) {
30
- return (
31
- <button
32
- type="button"
33
- className={clsx("activity-card", isSelected && "active")}
34
- onClick={onSelect}
35
- >
36
- {image && (
37
- <img className="activity-card-image" alt="" src={image.url} />
38
- )}
39
- <div className={clsx("d-flex", "flex-column", !image && "no-image")}>
40
- <div className="activity-card-title">{title}</div>
41
-
42
- {duration && <div>{duration}</div>}
43
-
44
- {price && <div>{price}</div>}
45
- </div>
46
- </button>
47
- );
48
- }
49
-
50
- return (
51
- <div role="button" onClick={onSelect} onKeyPress={onSelect} tabIndex={0}>
52
- <div
53
- className={clsx("list-activity-card", {
54
- active: isSelected,
55
- })}
56
- >
57
- <div className="description">
58
- <div className="title">{title}</div>
59
- {duration && (
60
- <div>
61
- <p>{duration}</p>
62
- </div>
63
- )}
64
-
65
- {price && <div>{price}</div>}
66
- </div>
67
-
68
- {image && (
69
- <div className="image-container">
70
- <img className="image" src={image.url} alt="" />
71
- </div>
72
- )}
73
- </div>
74
- <hr className="list-activity-card-hr" />
75
- </div>
76
- );
77
- };
@@ -1 +0,0 @@
1
- export * from "./ActivityCard";
@@ -1,118 +0,0 @@
1
- import { PAYMENT_TYPE_TRANSLATE_KEYS } from "../hooks/useTableData";
2
- import {
3
- AMOUNT_TOTAL,
4
- AMOUNT_WITH_DISCOUNT,
5
- OrderItemsTableProps,
6
- REMAINING_TO_PAY,
7
- SummaryItem,
8
- TOTAL_PAID,
9
- } from "../types";
10
- import {
11
- calculateTotalDiscount,
12
- calculateTotalPrice,
13
- getExternalPaymentDetail,
14
- getPaymentValueByType,
15
- } from "./index";
16
-
17
- const paymentNotProcessedSummary = ({
18
- order,
19
- externalDiscount,
20
- paymentDetail,
21
- }: OrderItemsTableProps) => {
22
- const externalPaymentDetail = paymentDetail
23
- ? getExternalPaymentDetail(paymentDetail)
24
- : undefined;
25
-
26
- const total = calculateTotalPrice(order, externalPaymentDetail);
27
-
28
- const summaryItems: SummaryItem[] = [
29
- {
30
- translateKey: AMOUNT_TOTAL,
31
- price: total,
32
- },
33
- ];
34
-
35
- if (externalDiscount) {
36
- summaryItems.push({
37
- price: externalDiscount,
38
- translateKey: AMOUNT_WITH_DISCOUNT,
39
- });
40
- }
41
-
42
- if (externalPaymentDetail) {
43
- return [...summaryItems, ...getExternalPaymentDetail(paymentDetail)];
44
- }
45
-
46
- return summaryItems;
47
- };
48
-
49
- const processedPaymentSummary = ({
50
- order,
51
- paymentDetail,
52
- }: OrderItemsTableProps) => {
53
- const externalPaymentDetail =
54
- paymentDetail && !order.payments.length
55
- ? getExternalPaymentDetail(paymentDetail)
56
- : Object.keys(PAYMENT_TYPE_TRANSLATE_KEYS).map((key) => {
57
- return {
58
- translateKey: PAYMENT_TYPE_TRANSLATE_KEYS[key],
59
- price: getPaymentValueByType(order.payments, key),
60
- };
61
- });
62
-
63
- const total = calculateTotalPrice(order, externalPaymentDetail);
64
-
65
- const totalDiscount = calculateTotalDiscount(order.payments);
66
- const totalWithDiscount = total - Number(totalDiscount);
67
- let summaryItems: SummaryItem[] = [
68
- {
69
- translateKey: AMOUNT_TOTAL,
70
- price: total,
71
- },
72
- ];
73
-
74
- if (totalDiscount) {
75
- summaryItems.push({
76
- translateKey: AMOUNT_WITH_DISCOUNT,
77
- price: totalWithDiscount < 0 ? 0 : totalWithDiscount,
78
- });
79
- }
80
-
81
- if (paymentDetail && !order.payments.length) {
82
- return [...summaryItems, ...externalPaymentDetail];
83
- }
84
-
85
- summaryItems.push({
86
- translateKey: TOTAL_PAID,
87
- price: totalWithDiscount <= 0 ? 0 : order.totalAmount,
88
- });
89
- if (totalWithDiscount <= 0) {
90
- return summaryItems;
91
- }
92
- summaryItems = [...summaryItems, ...externalPaymentDetail];
93
-
94
- if (totalWithDiscount > order.totalAmount) {
95
- summaryItems.push({
96
- translateKey: REMAINING_TO_PAY,
97
- price: totalWithDiscount - order.totalAmount,
98
- });
99
- }
100
- return summaryItems;
101
- };
102
-
103
- export const getOrderSummaryItems = ({
104
- order,
105
- externalDiscount,
106
- paymentDetail,
107
- isPaymentProcessed,
108
- }: OrderItemsTableProps): SummaryItem[] => {
109
- if (!isPaymentProcessed) {
110
- return paymentNotProcessedSummary({
111
- order,
112
- externalDiscount,
113
- paymentDetail,
114
- });
115
- }
116
-
117
- return processedPaymentSummary({ order, paymentDetail });
118
- };
@@ -1,2 +0,0 @@
1
- @import "./GridActivitiesCard.scss";
2
- @import "./ListActivitiesCard.scss";
@@ -1,7 +0,0 @@
1
- .availability-indicator {
2
- display: flex;
3
- justify-content: center;
4
- align-items: center;
5
- gap: 0.5rem;
6
- font-weight: 300;
7
- }
@@ -1 +0,0 @@
1
- @import "./AvailabilityIndicator.scss";
@@ -1 +0,0 @@
1
- @import "./DateTimeButton.scss";
@@ -1,46 +0,0 @@
1
- import React from "react";
2
- import { useTranslation } from "react-i18next";
3
- import { Form } from "react-bootstrap";
4
- import { useFormContext } from "react-hook-form";
5
- import { useId } from "@react-aria/utils";
6
- import HookFormService from "@licklist/plugins/dist/services/Form/HookFormService";
7
- import { Zone } from "@licklist/core/dist/DataMapper/Provider/ZoneDataMapper";
8
-
9
- type GameDurationControlProps = {
10
- isLoading: boolean;
11
- };
12
-
13
- export const GameDurationControl = ({
14
- isLoading,
15
- }: GameDurationControlProps) => {
16
- const nameId = useId();
17
- const { t } = useTranslation(["Design", "Validation"]);
18
-
19
- const {
20
- register,
21
- formState: { errors },
22
- } = useFormContext<Pick<Zone, "defaultDuration">>();
23
-
24
- return (
25
- <Form.Group controlId={nameId}>
26
- <Form.Label>{t("Design:defaultGameDuration")}</Form.Label>
27
- <Form.Control
28
- type="number"
29
- {...register("defaultDuration", {
30
- required: false,
31
- min: 1,
32
- })}
33
- placeholder={t("Design:duration")}
34
- isInvalid={Boolean(errors.defaultDuration)}
35
- disabled={isLoading}
36
- />
37
- <Form.Control.Feedback type="invalid">
38
- {HookFormService.hasError(errors.defaultDuration, "min") &&
39
- t("Validation:fieldMinNumber", {
40
- attribute: t("Design:defaultGameDuration").toLowerCase(),
41
- min: 1,
42
- })}
43
- </Form.Control.Feedback>
44
- </Form.Group>
45
- );
46
- };