@licklist/design 0.44.526 → 0.44.528

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 (996) hide show
  1. package/dist/affiliate/types/index.d.ts +1 -1
  2. package/dist/affiliate/types/index.d.ts.map +1 -1
  3. package/dist/assets/iframe/available.svg +5 -0
  4. package/dist/assets/iframe/available.svg.js +1 -0
  5. package/dist/assets/iframe/backButton.svg +4 -0
  6. package/dist/assets/iframe/limited.svg +5 -0
  7. package/dist/assets/iframe/limited.svg.js +1 -0
  8. package/dist/assets/iframe/soldOut.svg +6 -0
  9. package/dist/assets/iframe/soldOut.svg.js +1 -0
  10. package/dist/assets/logo/bookedit.svg +9 -11
  11. package/dist/assets/logo/bookedit.svg.js +1 -1
  12. package/dist/assets/logo/favicon.svg +12 -0
  13. package/dist/assets/logo/licklist.svg +0 -2
  14. package/dist/assets/logo/licklist.svg.js +1 -1
  15. package/dist/auth/Login/LoginComponent.d.ts +1 -1
  16. package/dist/auth/Login/LoginComponent.d.ts.map +1 -1
  17. package/dist/auth/Login/LoginFormComponent.d.ts +1 -1
  18. package/dist/auth/Login/LoginFormComponent.d.ts.map +1 -1
  19. package/dist/auth/Register/RegisterComponent.d.ts +1 -1
  20. package/dist/auth/Register/RegisterComponent.d.ts.map +1 -1
  21. package/dist/auth/Register/RegisterFormComponent.d.ts +1 -1
  22. package/dist/auth/Register/RegisterFormComponent.d.ts.map +1 -1
  23. package/dist/auth/ResetPassword/ResetPasswordFormComponent.d.ts +1 -1
  24. package/dist/auth/ResetPassword/ResetPasswordFormComponent.d.ts.map +1 -1
  25. package/dist/availability-indicator/AvailabilityIndicator.d.ts +9 -0
  26. package/dist/availability-indicator/AvailabilityIndicator.d.ts.map +1 -0
  27. package/dist/availability-indicator/AvailabilityIndicator.js +1 -0
  28. package/dist/availability-indicator/index.d.ts +2 -0
  29. package/dist/availability-indicator/index.d.ts.map +1 -0
  30. package/dist/calendar/Calendar.d.ts +21 -0
  31. package/dist/calendar/Calendar.d.ts.map +1 -0
  32. package/dist/calendar/Calendar.js +1 -0
  33. package/dist/calendar/components/CalendarButtons/CalendarButtons.d.ts +6 -0
  34. package/dist/calendar/components/CalendarButtons/CalendarButtons.d.ts.map +1 -0
  35. package/dist/calendar/components/CalendarButtons/CalendarButtons.js +1 -0
  36. package/dist/calendar/components/CalendarButtons/index.d.ts.map +1 -0
  37. package/dist/calendar/components/CalendarDates/CalendarDates.d.ts +5 -0
  38. package/dist/calendar/components/CalendarDates/CalendarDates.d.ts.map +1 -0
  39. package/dist/calendar/components/CalendarDates/CalendarDates.js +1 -0
  40. package/dist/calendar/components/CalendarDates/index.d.ts.map +1 -0
  41. package/dist/{iframe/event/event-calendar → calendar}/components/CalendarSelect/CalendarSelect.d.ts +2 -2
  42. package/dist/calendar/components/CalendarSelect/CalendarSelect.d.ts.map +1 -0
  43. package/dist/calendar/components/CalendarSelect/CalendarSelect.js +1 -0
  44. package/dist/calendar/components/CalendarSelect/index.d.ts.map +1 -0
  45. package/dist/calendar/components/CalendarWeekdays/CalendarWeekdays.d.ts.map +1 -0
  46. package/dist/calendar/components/CalendarWeekdays/index.d.ts.map +1 -0
  47. package/dist/calendar/index.d.ts +4 -0
  48. package/dist/calendar/index.d.ts.map +1 -0
  49. package/dist/calendar/utils/index.d.ts +5 -0
  50. package/dist/calendar/utils/index.d.ts.map +1 -0
  51. package/dist/calendar/utils/index.js +1 -0
  52. package/dist/collapsible-input-group/CollapsibleInputGroup.d.ts +1 -1
  53. package/dist/collapsible-input-group/CollapsibleInputGroup.d.ts.map +1 -1
  54. package/dist/custom-fields/field-set/CustomFieldSets.d.ts +3 -3
  55. package/dist/custom-fields/field-set/CustomFieldSets.d.ts.map +1 -1
  56. package/dist/custom-fields/field-set/components/CustomFieldSet/CustomFieldSet.d.ts +1 -1
  57. package/dist/custom-fields/field-set/components/CustomFieldSet/CustomFieldSet.d.ts.map +1 -1
  58. package/dist/custom-fields/field-set/contexts/useCustomFieldSets.d.ts +2 -2
  59. package/dist/custom-fields/field-set/contexts/useCustomFieldSets.d.ts.map +1 -1
  60. package/dist/customers/components/filter/CustomerFilter.d.ts +1 -1
  61. package/dist/customers/components/filter/CustomerFilter.d.ts.map +1 -1
  62. package/dist/date-time-button/DateContent.d.ts +9 -0
  63. package/dist/date-time-button/DateContent.d.ts.map +1 -0
  64. package/dist/date-time-button/DateContent.js +1 -0
  65. package/dist/date-time-button/DateTimeButton.d.ts +18 -0
  66. package/dist/date-time-button/DateTimeButton.d.ts.map +1 -0
  67. package/dist/date-time-button/DateTimeButton.js +1 -0
  68. package/dist/date-time-button/index.d.ts +2 -0
  69. package/dist/date-time-button/index.d.ts.map +1 -0
  70. package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.d.ts +3 -3
  71. package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.d.ts.map +1 -1
  72. package/dist/events/event-statistic-modal/EventStatisticModal.d.ts +1 -1
  73. package/dist/events/event-statistic-modal/EventStatisticModal.d.ts.map +1 -1
  74. package/dist/events/event-venue-map/EventVenueMap.d.ts +5 -5
  75. package/dist/events/event-venue-map/EventVenueMap.d.ts.map +1 -1
  76. package/dist/events/event-venue-map/components/Dropdown/Dropdown.d.ts +1 -1
  77. package/dist/events/event-venue-map/components/Dropdown/Dropdown.d.ts.map +1 -1
  78. package/dist/events/event-venue-map/components/Dropdown/components/ProductsControl/ProductsControl.d.ts +1 -1
  79. package/dist/events/event-venue-map/components/Dropdown/components/ProductsControl/ProductsControl.d.ts.map +1 -1
  80. package/dist/events/event-venue-map/components/Dropdown/components/SelectControl/SelectControl.d.ts +1 -1
  81. package/dist/events/event-venue-map/components/Dropdown/components/SelectControl/SelectControl.d.ts.map +1 -1
  82. package/dist/events/event-venue-map/components/MapPoint/MapPoint.d.ts +1 -1
  83. package/dist/events/event-venue-map/components/MapPoint/MapPoint.d.ts.map +1 -1
  84. package/dist/events/event-venue-map/components/MapPoint/components/DeleteIcon/DeleteIcon.d.ts +1 -1
  85. package/dist/events/event-venue-map/components/MapPoint/components/DeleteIcon/DeleteIcon.d.ts.map +1 -1
  86. package/dist/events/event-venue-map/components/MapPoint/components/EditIcon/EditIcon.d.ts +1 -1
  87. package/dist/events/event-venue-map/components/MapPoint/components/EditIcon/EditIcon.d.ts.map +1 -1
  88. package/dist/events/event-venue-map/components/MapPoint/components/PointIcon/PointIcon.d.ts +1 -1
  89. package/dist/events/event-venue-map/components/MapPoint/components/PointIcon/PointIcon.d.ts.map +1 -1
  90. package/dist/events/event-venue-map/components/MapPoint/components/ProductIcon/ProductIcon.d.ts +1 -1
  91. package/dist/events/event-venue-map/components/MapPoint/components/ProductIcon/ProductIcon.d.ts.map +1 -1
  92. package/dist/events/event-venue-map/components/MapPoint/components/ProductTooltip/ProductTooltip.d.ts +1 -1
  93. package/dist/events/event-venue-map/components/MapPoint/components/ProductTooltip/ProductTooltip.d.ts.map +1 -1
  94. package/dist/events/event-venue-map/components/VenueMap/VenueMap.d.ts +4 -4
  95. package/dist/events/event-venue-map/components/VenueMap/VenueMap.d.ts.map +1 -1
  96. package/dist/events/event-venue-map/hooks/useCanvasSize.d.ts +1 -1
  97. package/dist/events/event-venue-map/hooks/useCanvasSize.d.ts.map +1 -1
  98. package/dist/events/event-venue-map/hooks/useStageActions.d.ts +1 -1
  99. package/dist/events/event-venue-map/hooks/useStageActions.d.ts.map +1 -1
  100. package/dist/events/event-venue-map/types/index.d.ts +5 -5
  101. package/dist/events/event-venue-map/types/index.d.ts.map +1 -1
  102. package/dist/events/event-venue-map/utils/index.d.ts +3 -3
  103. package/dist/events/event-venue-map/utils/index.d.ts.map +1 -1
  104. package/dist/file-upload/FilePreview.d.ts +2 -2
  105. package/dist/file-upload/FilePreview.d.ts.map +1 -1
  106. package/dist/file-upload/FileUpload.d.ts +1 -1
  107. package/dist/file-upload/FileUpload.d.ts.map +1 -1
  108. package/dist/header/Header.d.ts +1 -1
  109. package/dist/header/Header.d.ts.map +1 -1
  110. package/dist/help/example/Example.d.ts +4 -4
  111. package/dist/help/example/Example.d.ts.map +1 -1
  112. package/dist/help/popover/HelpPopover.d.ts +5 -3
  113. package/dist/help/popover/HelpPopover.d.ts.map +1 -1
  114. package/dist/help/popover/HelpPopover.js +1 -1
  115. package/dist/iframe/activity-card/ActivityCard.d.ts +17 -0
  116. package/dist/iframe/activity-card/ActivityCard.d.ts.map +1 -0
  117. package/dist/iframe/activity-card/ActivityCard.js +1 -0
  118. package/dist/iframe/activity-card/index.d.ts +2 -0
  119. package/dist/iframe/activity-card/index.d.ts.map +1 -0
  120. package/dist/iframe/back-button/BackButton.d.ts +6 -0
  121. package/dist/iframe/back-button/BackButton.d.ts.map +1 -0
  122. package/dist/iframe/back-button/BackButton.js +1 -0
  123. package/dist/iframe/back-button/index.d.ts +2 -0
  124. package/dist/iframe/back-button/index.d.ts.map +1 -0
  125. package/dist/iframe/custom-fields/components/CustomDateField.d.ts +1 -1
  126. package/dist/iframe/custom-fields/components/CustomDateField.d.ts.map +1 -1
  127. package/dist/iframe/event/event-card/IframeEventCard.d.ts +3 -3
  128. package/dist/iframe/event/event-card/IframeEventCard.d.ts.map +1 -1
  129. package/dist/iframe/event/event-card/IframeEventCard.js +1 -1
  130. package/dist/iframe/event/event-card/IframeEventCardSkeleton.d.ts +3 -3
  131. package/dist/iframe/event/event-card/IframeEventCardSkeleton.d.ts.map +1 -1
  132. package/dist/iframe/event/event-card/IframeEventCardSkeleton.js +1 -1
  133. package/dist/iframe/event/event-details/EventDetails.d.ts +1 -1
  134. package/dist/iframe/event/event-details/EventDetails.d.ts.map +1 -1
  135. package/dist/iframe/event/event-order-short-summary/components/Summary/Summary.d.ts +1 -1
  136. package/dist/iframe/event/event-order-short-summary/components/Summary/Summary.d.ts.map +1 -1
  137. package/dist/iframe/event/event-product-sets/EventProductSets.d.ts +1 -1
  138. package/dist/iframe/event/event-product-sets/EventProductSets.d.ts.map +1 -1
  139. package/dist/iframe/event/event-product-sets/components/EventProductSet.d.ts +1 -1
  140. package/dist/iframe/event/event-product-sets/components/EventProductSet.d.ts.map +1 -1
  141. package/dist/iframe/event/event-step-venue-map-zones/EventStepVenueMapZones.d.ts +1 -1
  142. package/dist/iframe/event/event-step-venue-map-zones/EventStepVenueMapZones.d.ts.map +1 -1
  143. package/dist/iframe/event/event-step-venue-map-zones/components/EventStepVenueMapZone.d.ts +1 -1
  144. package/dist/iframe/event/event-step-venue-map-zones/components/EventStepVenueMapZone.d.ts.map +1 -1
  145. package/dist/iframe/event/event-venue-map/IframeEventVenueMap.d.ts +2 -5
  146. package/dist/iframe/event/event-venue-map/IframeEventVenueMap.d.ts.map +1 -1
  147. package/dist/iframe/event/index.d.ts +0 -1
  148. package/dist/iframe/event/index.d.ts.map +1 -1
  149. package/dist/iframe/index.d.ts +4 -2
  150. package/dist/iframe/index.d.ts.map +1 -1
  151. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts +1 -1
  152. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts.map +1 -1
  153. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.js +1 -1
  154. package/dist/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/BookingSummaryAccordion.d.ts +1 -1
  155. package/dist/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/BookingSummaryAccordion.d.ts.map +1 -1
  156. package/dist/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/BookingSummaryAccordion.js +1 -1
  157. package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.d.ts +3 -3
  158. package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.d.ts.map +1 -1
  159. package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/components/SummaryTotalBlock.d.ts +1 -1
  160. package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/components/SummaryTotalBlock.d.ts.map +1 -1
  161. package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.d.ts +1 -1
  162. package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.d.ts.map +1 -1
  163. package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts +4 -3
  164. package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts.map +1 -1
  165. package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts.map +1 -1
  166. package/dist/iframe/order-process/components/BookingSummary/utils/index.js +1 -1
  167. package/dist/iframe/order-process/components/BookingSummaryFooter/BookingSummaryFooter.d.ts +4 -4
  168. package/dist/iframe/order-process/components/BookingSummaryFooter/BookingSummaryFooter.d.ts.map +1 -1
  169. package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.d.ts +4 -4
  170. package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.d.ts.map +1 -1
  171. package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.js +1 -1
  172. package/dist/iframe/order-process/components/CalendarStepsForm/components/Category.d.ts +3 -3
  173. package/dist/iframe/order-process/components/CalendarStepsForm/components/Category.d.ts.map +1 -1
  174. package/dist/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.d.ts +3 -3
  175. package/dist/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.d.ts.map +1 -1
  176. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts +3 -3
  177. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts.map +1 -1
  178. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.js +1 -1
  179. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts +2 -2
  180. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts.map +1 -1
  181. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.js +1 -1
  182. package/dist/iframe/order-process/components/ErrorModal/ErrorModal.d.ts +9 -0
  183. package/dist/iframe/order-process/components/ErrorModal/ErrorModal.d.ts.map +1 -0
  184. package/dist/iframe/order-process/components/ErrorModal/ErrorModal.js +1 -0
  185. package/dist/iframe/order-process/components/ErrorModal/index.d.ts +2 -0
  186. package/dist/iframe/order-process/components/ErrorModal/index.d.ts.map +1 -0
  187. package/dist/iframe/order-process/components/NavigationSteps/NavigationSteps.d.ts +8 -7
  188. package/dist/iframe/order-process/components/NavigationSteps/NavigationSteps.d.ts.map +1 -1
  189. package/dist/iframe/order-process/components/NavigationSteps/index.d.ts +1 -1
  190. package/dist/iframe/order-process/components/NavigationSteps/index.d.ts.map +1 -1
  191. package/dist/iframe/order-process/components/PaymentCard/PaymentCard.d.ts +1 -1
  192. package/dist/iframe/order-process/components/PaymentCard/PaymentCard.d.ts.map +1 -1
  193. package/dist/iframe/order-process/components/Timer/Timer.d.ts +1 -1
  194. package/dist/iframe/order-process/components/Timer/Timer.d.ts.map +1 -1
  195. package/dist/iframe/order-process/components/Timer/utils/index.d.ts +1 -1
  196. package/dist/iframe/order-process/components/Timer/utils/index.d.ts.map +1 -1
  197. package/dist/iframe/order-process/components/Timer/utils/index.js +1 -1
  198. package/dist/iframe/order-process/components/utils/useCategoryVerification.d.ts +9 -0
  199. package/dist/iframe/order-process/components/utils/useCategoryVerification.d.ts.map +1 -0
  200. package/dist/iframe/order-process/components/utils/useCategoryVerification.js +1 -0
  201. package/dist/iframe/order-process/index.d.ts +3 -2
  202. package/dist/iframe/order-process/index.d.ts.map +1 -1
  203. package/dist/iframe/page/Page.d.ts +1 -1
  204. package/dist/iframe/page/Page.d.ts.map +1 -1
  205. package/dist/iframe/page/components/PageBody/PageBody.d.ts +2 -2
  206. package/dist/iframe/page/components/PageBody/PageBody.d.ts.map +1 -1
  207. package/dist/iframe/page/components/PageBody/PageBody.js +1 -1
  208. package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.d.ts +3 -3
  209. package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.d.ts.map +1 -1
  210. package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.js +1 -1
  211. package/dist/iframe/page/components/PageBody/components/RightBlock/RightBlock.d.ts +1 -1
  212. package/dist/iframe/page/components/PageBody/components/RightBlock/RightBlock.d.ts.map +1 -1
  213. package/dist/iframe/page/components/PageBody/types.d.ts +1 -1
  214. package/dist/iframe/page/components/PageBody/types.d.ts.map +1 -1
  215. package/dist/iframe/page/components/PageHeader/PageHeader.d.ts +1 -1
  216. package/dist/iframe/page/components/PageHeader/PageHeader.d.ts.map +1 -1
  217. package/dist/iframe/page/components/PageHeader/PageHeader.js +1 -1
  218. package/dist/iframe/payment/order-items-table/hooks/useTableData.d.ts.map +1 -1
  219. package/dist/iframe/payment/order-items-table/hooks/useTableData.js +1 -1
  220. package/dist/iframe/payment/order-items-table/types/index.d.ts +9 -3
  221. package/dist/iframe/payment/order-items-table/types/index.d.ts.map +1 -1
  222. package/dist/iframe/payment/order-items-table/types/index.js +1 -0
  223. package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts +3 -0
  224. package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts.map +1 -0
  225. package/dist/iframe/payment/order-items-table/utils/paymentSummary.js +1 -0
  226. package/dist/iframe/payment/payment-page/PaymentPage.d.ts.map +1 -1
  227. package/dist/iframe/payment/payment-page/PaymentPage.js +1 -1
  228. package/dist/iframe/payment/payment-page/PaymentTimer.js +1 -1
  229. package/dist/iframe/payment/payment-status-header/PaymentStatusHeader.d.ts +1 -1
  230. package/dist/iframe/payment/payment-status-header/PaymentStatusHeader.d.ts.map +1 -1
  231. package/dist/iframe/payment/payment-status-page/PaymentStatusPage.d.ts +1 -1
  232. package/dist/iframe/payment/payment-status-page/PaymentStatusPage.d.ts.map +1 -1
  233. package/dist/iframe/payment/payment-status-page/PaymentStatusPage.js +1 -1
  234. package/dist/iframe/powered-by/PoweredBy.d.ts +1 -1
  235. package/dist/iframe/powered-by/PoweredBy.d.ts.map +1 -1
  236. package/dist/iframe/ryft/RyftPaymentForm.d.ts +1 -1
  237. package/dist/iframe/ryft/RyftPaymentForm.d.ts.map +1 -1
  238. package/dist/image-radio-input/ImageRadioInput.d.ts +15 -0
  239. package/dist/image-radio-input/ImageRadioInput.d.ts.map +1 -0
  240. package/dist/image-radio-input/ImageRadioInput.js +1 -0
  241. package/dist/image-radio-input/index.d.ts.map +1 -0
  242. package/dist/index.d.ts +7 -0
  243. package/dist/index.d.ts.map +1 -1
  244. package/dist/index.js +1 -1
  245. package/dist/logo/Logo.d.ts +1 -1
  246. package/dist/logo/Logo.d.ts.map +1 -1
  247. package/dist/modals/confirmation/ConfirmModal.d.ts +2 -2
  248. package/dist/modals/confirmation/ConfirmModal.d.ts.map +1 -1
  249. package/dist/notification/hooks/useTranslatedParameters.d.ts +1 -1
  250. package/dist/notification/hooks/useTranslatedParameters.d.ts.map +1 -1
  251. package/dist/notification/sms-template/control/SmsTemplateControl.d.ts +1 -1
  252. package/dist/notification/sms-template/control/SmsTemplateControl.d.ts.map +1 -1
  253. package/dist/product-set/control/DateAndRecurrenceInput.d.ts +2 -0
  254. package/dist/product-set/control/DateAndRecurrenceInput.d.ts.map +1 -1
  255. package/dist/product-set/control/DateAndRecurrenceInput.js +1 -1
  256. package/dist/product-set/control/ProductSetControl.d.ts.map +1 -1
  257. package/dist/product-set/control/ProductSetControl.js +1 -1
  258. package/dist/product-set/control/ProductSetRecurrenceControl.d.ts.map +1 -1
  259. package/dist/product-set/control/ProductSetRecurrenceControl.js +1 -1
  260. package/dist/product-set/deposit-paid/ProductSetDepositPaidControl.d.ts +3 -3
  261. package/dist/product-set/deposit-paid/ProductSetDepositPaidControl.d.ts.map +1 -1
  262. package/dist/product-set/elements/DeleteFieldButton.d.ts +1 -1
  263. package/dist/product-set/elements/DeleteFieldButton.d.ts.map +1 -1
  264. package/dist/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
  265. package/dist/product-set/form/ProductCategoriesControl.js +1 -1
  266. package/dist/product-set/form/ProductsControl.d.ts +3 -1
  267. package/dist/product-set/form/ProductsControl.d.ts.map +1 -1
  268. package/dist/product-set/form/ProductsControl.js +1 -1
  269. package/dist/product-set/form/VenueMapSetModal.d.ts +1 -1
  270. package/dist/product-set/form/VenueMapSetModal.d.ts.map +1 -1
  271. package/dist/product-set/form/VenueMapsControl.d.ts +1 -1
  272. package/dist/product-set/form/VenueMapsControl.d.ts.map +1 -1
  273. package/dist/product-set/form/context.d.ts +1 -1
  274. package/dist/product-set/form/context.d.ts.map +1 -1
  275. package/dist/product-set/hooks/useSortableTreeFunctions.d.ts.map +1 -1
  276. package/dist/product-set/hooks/useSortableTreeFunctions.js +1 -1
  277. package/dist/product-set/popover/ProductSetPopover.d.ts +1 -1
  278. package/dist/product-set/popover/ProductSetPopover.d.ts.map +1 -1
  279. package/dist/product-set/product/ProductControl.d.ts +2 -1
  280. package/dist/product-set/product/ProductControl.d.ts.map +1 -1
  281. package/dist/product-set/product/ProductControl.js +1 -1
  282. package/dist/product-set/product/duration/ProductDurationControl.js +1 -1
  283. package/dist/product-set/product/fixed-duration-fields/FixedDurationOptions.d.ts +1 -1
  284. package/dist/product-set/product/fixed-duration-fields/FixedDurationOptions.d.ts.map +1 -1
  285. package/dist/product-set/product/quantity/ProductQuantityRechargingControl.d.ts.map +1 -1
  286. package/dist/product-set/product/quantity/ProductQuantityRechargingControl.js +1 -1
  287. package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
  288. package/dist/product-set/product-category/ProductCategoryControl.js +1 -1
  289. package/dist/product-set/tabs/ProductSetTab.d.ts +1 -1
  290. package/dist/product-set/tabs/ProductSetTab.d.ts.map +1 -1
  291. package/dist/product-set/tabs/ProductSetTabs.d.ts +1 -1
  292. package/dist/product-set/tabs/ProductSetTabs.d.ts.map +1 -1
  293. package/dist/product-set/types/index.d.ts +5 -5
  294. package/dist/product-set/types/index.d.ts.map +1 -1
  295. package/dist/provider/categories-input/CategoriesInput.d.ts +1 -1
  296. package/dist/provider/categories-input/CategoriesInput.d.ts.map +1 -1
  297. package/dist/provider/categories-input/CategoriesInputDescription.d.ts +1 -1
  298. package/dist/provider/categories-input/CategoriesInputDescription.d.ts.map +1 -1
  299. package/dist/provider/categories-input/index.d.ts +1 -1
  300. package/dist/provider/categories-input/index.d.ts.map +1 -1
  301. package/dist/provider/company/user-form/UserForm.d.ts +2 -2
  302. package/dist/provider/company/user-form/UserForm.d.ts.map +1 -1
  303. package/dist/provider/location-input/index.d.ts +1 -1
  304. package/dist/provider/location-input/index.d.ts.map +1 -1
  305. package/dist/provider/provider-details-input/ProviderDetailsInput.d.ts +2 -2
  306. package/dist/provider/provider-details-input/ProviderDetailsInput.d.ts.map +1 -1
  307. package/dist/provider/provider-form/ProviderForm.d.ts +1 -1
  308. package/dist/provider/provider-form/ProviderForm.d.ts.map +1 -1
  309. package/dist/provider/provider-links-input/ProviderLinksInput.d.ts +2 -2
  310. package/dist/provider/provider-links-input/ProviderLinksInput.d.ts.map +1 -1
  311. package/dist/provider/venue-form/VenueForm.d.ts +1 -1
  312. package/dist/provider/venue-form/VenueForm.d.ts.map +1 -1
  313. package/dist/provider/working-hours-input/WorkingHoursInputDescription.d.ts.map +1 -1
  314. package/dist/provider/working-hours-input/index.d.ts +1 -1
  315. package/dist/provider/working-hours-input/index.d.ts.map +1 -1
  316. package/dist/radio-card/RadioCard.d.ts +13 -0
  317. package/dist/radio-card/RadioCard.d.ts.map +1 -0
  318. package/dist/radio-card/RadioCard.js +1 -0
  319. package/dist/radio-card/index.d.ts +2 -0
  320. package/dist/radio-card/index.d.ts.map +1 -0
  321. package/dist/recurrence-input/RecurrenceEndInput.d.ts +6 -0
  322. package/dist/recurrence-input/RecurrenceEndInput.d.ts.map +1 -1
  323. package/dist/recurrence-input/RecurrenceEndInput.js +1 -1
  324. package/dist/recurrence-input/RecurrenceInput.js +1 -1
  325. package/dist/recurrence-input/utils.d.ts +2 -2
  326. package/dist/recurrence-input/utils.d.ts.map +1 -1
  327. package/dist/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.d.ts +8 -1
  328. package/dist/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.d.ts.map +1 -1
  329. package/dist/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.js +1 -1
  330. package/dist/recurring-date-picker-input/RecurringDatePickerInput.d.ts +1 -0
  331. package/dist/recurring-date-picker-input/RecurringDatePickerInput.d.ts.map +1 -1
  332. package/dist/recurring-date-picker-input/RecurringDatePickerInput.js +1 -1
  333. package/dist/recurring-date-picker-input/utils.d.ts +2 -2
  334. package/dist/recurring-date-picker-input/utils.d.ts.map +1 -1
  335. package/dist/report/form/ReportForm.d.ts.map +1 -1
  336. package/dist/resource/form/ResourceForm.d.ts +2 -2
  337. package/dist/resource/form/ResourceForm.d.ts.map +1 -1
  338. package/dist/resource/form/components/CapacityControl.d.ts +1 -1
  339. package/dist/resource/form/components/CapacityControl.d.ts.map +1 -1
  340. package/dist/resource/form/components/NameControl.d.ts +1 -1
  341. package/dist/resource/form/components/NameControl.d.ts.map +1 -1
  342. package/dist/resource/form/components/SortControl.d.ts +1 -1
  343. package/dist/resource/form/components/SortControl.d.ts.map +1 -1
  344. package/dist/resource/form/components/ZoneControl.d.ts +1 -1
  345. package/dist/resource/form/components/ZoneControl.d.ts.map +1 -1
  346. package/dist/sales/booking/index.d.ts +0 -2
  347. package/dist/sales/booking/index.d.ts.map +1 -1
  348. package/dist/sales/booking/results/BookingResults.d.ts +1 -1
  349. package/dist/sales/booking/results/BookingResults.d.ts.map +1 -1
  350. package/dist/sales/booking/results/components/ResultCard.d.ts +1 -1
  351. package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
  352. package/dist/sales/booking/results/components/ResultCard.js +1 -1
  353. package/dist/sales/booking/results/constants.d.ts.map +1 -1
  354. package/dist/sales/booking/results/constants.js +1 -1
  355. package/dist/sales/booking/results/index.d.ts +1 -0
  356. package/dist/sales/booking/results/index.d.ts.map +1 -1
  357. package/dist/sales/filters/SaleFilters.d.ts +1 -1
  358. package/dist/sales/guest-profile/previous-bookings/PreviousBookings.d.ts +1 -1
  359. package/dist/sales/guest-profile/previous-bookings/PreviousBookings.d.ts.map +1 -1
  360. package/dist/sales/guest-profile/profile/Profile.d.ts +1 -1
  361. package/dist/sales/guest-profile/profile/Profile.d.ts.map +1 -1
  362. package/dist/sales/guest-profile/profile/components/ImageHolder/ImageHolder.d.ts +1 -1
  363. package/dist/sales/guest-profile/profile/components/ImageHolder/ImageHolder.d.ts.map +1 -1
  364. package/dist/sales/guest-profile/user-metrics/UserMetrics.d.ts +1 -1
  365. package/dist/sales/guest-profile/user-metrics/UserMetrics.d.ts.map +1 -1
  366. package/dist/sales/guest-profile/visited-providers/VisitedProviders.d.ts +1 -1
  367. package/dist/sales/guest-profile/visited-providers/VisitedProviders.d.ts.map +1 -1
  368. package/dist/sales/life-time-sales/LifeTimeSalesChart.d.ts +1 -1
  369. package/dist/sales/life-time-sales/LifeTimeSalesChart.d.ts.map +1 -1
  370. package/dist/sales/manual-booking/index.d.ts +1 -5
  371. package/dist/sales/manual-booking/index.d.ts.map +1 -1
  372. package/dist/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.d.ts +2 -1
  373. package/dist/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.d.ts.map +1 -1
  374. package/dist/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.js +1 -1
  375. package/dist/sales/manual-booking/search-user/SearchUser.js +1 -1
  376. package/dist/sales/manual-booking/select-date-type-control/SelectDateTypeControl.d.ts +3 -3
  377. package/dist/sales/manual-booking/select-date-type-control/SelectDateTypeControl.d.ts.map +1 -1
  378. package/dist/sales/manual-booking/select-date-type-control/SelectDateTypeControl.js +1 -1
  379. package/dist/sales/manual-booking/select-event/SelectEvent.d.ts +3 -3
  380. package/dist/sales/manual-booking/select-event/SelectEvent.d.ts.map +1 -1
  381. package/dist/sales/manual-booking/select-menu/SelectMenu.d.ts +6 -5
  382. package/dist/sales/manual-booking/select-menu/SelectMenu.d.ts.map +1 -1
  383. package/dist/sales/manual-booking/select-menu/SelectMenu.js +1 -1
  384. package/dist/sales/manual-booking/select-menu/components/MenuButton.d.ts +4 -4
  385. package/dist/sales/manual-booking/select-menu/components/MenuButton.d.ts.map +1 -1
  386. package/dist/sales/notes/NotesTable.d.ts +1 -1
  387. package/dist/sales/notes/NotesTable.d.ts.map +1 -1
  388. package/dist/sales/notes/NotesTableRow.d.ts +1 -1
  389. package/dist/sales/notes/NotesTableRow.d.ts.map +1 -1
  390. package/dist/sales/notes/note-form/NoteForm.d.ts +1 -1
  391. package/dist/sales/notes/note-form/NoteForm.d.ts.map +1 -1
  392. package/dist/sales/payment-form/SalePaymentForm.d.ts +2 -2
  393. package/dist/sales/payment-form/SalePaymentForm.d.ts.map +1 -1
  394. package/dist/sales/payment-form/components/RyftPayment/RyftPayment.d.ts +1 -1
  395. package/dist/sales/payment-form/components/RyftPayment/RyftPayment.d.ts.map +1 -1
  396. package/dist/sales/payment-form/types.d.ts +2 -2
  397. package/dist/sales/payment-form/types.d.ts.map +1 -1
  398. package/dist/sales/sales-and-views/SalesAndViewsChart.d.ts +1 -1
  399. package/dist/sales/sales-and-views/SalesAndViewsChart.d.ts.map +1 -1
  400. package/dist/setting/admin/AdminSettingForm.d.ts +1 -1
  401. package/dist/setting/admin/AdminSettingForm.d.ts.map +1 -1
  402. package/dist/setting/admin/PaymentFeeForm.d.ts +2 -2
  403. package/dist/setting/admin/PaymentFeeForm.d.ts.map +1 -1
  404. package/dist/setting/dashboard/DashboardSettingForm.d.ts +1 -1
  405. package/dist/setting/dashboard/DashboardSettingForm.d.ts.map +1 -1
  406. package/dist/setting/dashboard/EventSettingForm.d.ts +2 -2
  407. package/dist/setting/dashboard/EventSettingForm.d.ts.map +1 -1
  408. package/dist/setting/dashboard/FinancialDataForm.d.ts +2 -2
  409. package/dist/setting/dashboard/FinancialDataForm.d.ts.map +1 -1
  410. package/dist/setting/dashboard/OtherSettingForm.d.ts +2 -2
  411. package/dist/setting/dashboard/OtherSettingForm.d.ts.map +1 -1
  412. package/dist/setting/dashboard/ProviderSettingForm.d.ts +2 -2
  413. package/dist/setting/dashboard/ProviderSettingForm.d.ts.map +1 -1
  414. package/dist/setting/dashboard/index.d.ts +0 -2
  415. package/dist/setting/dashboard/index.d.ts.map +1 -1
  416. package/dist/setting/system/SystemSettingForm.d.ts +1 -1
  417. package/dist/setting/system/SystemSettingForm.d.ts.map +1 -1
  418. package/dist/snippet/snippet-template/context/snippetTemplate.d.ts +1 -1
  419. package/dist/snippet/snippet-template/context/snippetTemplate.d.ts.map +1 -1
  420. package/dist/snippet/snippet-template/form/SnippetTemplateForm.js +1 -1
  421. package/dist/snippet/snippet-template/preview/Preview.d.ts.map +1 -1
  422. package/dist/snippet/snippet-template/preview/Preview.js +1 -1
  423. package/dist/sortable-fields/SortableFieldItem.d.ts +9 -0
  424. package/dist/sortable-fields/SortableFieldItem.d.ts.map +1 -0
  425. package/dist/sortable-fields/SortableFieldItem.js +1 -0
  426. package/dist/sortable-fields/SortableFieldList.d.ts +18 -0
  427. package/dist/sortable-fields/SortableFieldList.d.ts.map +1 -0
  428. package/dist/sortable-fields/SortableFieldList.js +1 -0
  429. package/dist/sortable-fields/index.d.ts +2 -0
  430. package/dist/sortable-fields/index.d.ts.map +1 -0
  431. package/dist/sortable-list/SortableList.d.ts +4 -4
  432. package/dist/sortable-list/SortableList.d.ts.map +1 -1
  433. package/dist/sortable-tree/SortableTreeItem.d.ts +1 -1
  434. package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
  435. package/dist/sortable-tree/SortableTreeItem.js +1 -1
  436. package/dist/sorting-select/SortingSelect.d.ts +10 -0
  437. package/dist/sorting-select/SortingSelect.d.ts.map +1 -0
  438. package/dist/sorting-select/SortingSelect.js +1 -0
  439. package/dist/sorting-select/index.d.ts +2 -0
  440. package/dist/sorting-select/index.d.ts.map +1 -0
  441. package/dist/static/Icon.d.ts +1 -1
  442. package/dist/static/Icon.d.ts.map +1 -1
  443. package/dist/static/RestrictedAccess.d.ts.map +1 -1
  444. package/dist/static/date-range-input/DateRangeInput.d.ts +4 -4
  445. package/dist/static/date-range-input/DateRangeInput.d.ts.map +1 -1
  446. package/dist/static/date-range-input/DateRangeInput.js +1 -1
  447. package/dist/static/form-number-input/FormNumberInput.d.ts +2 -1
  448. package/dist/static/form-number-input/FormNumberInput.d.ts.map +1 -1
  449. package/dist/static/form-number-input/FormNumberInput.js +1 -1
  450. package/dist/static/images/DefaultUserImage.d.ts +1 -1
  451. package/dist/static/images/DefaultUserImage.d.ts.map +1 -1
  452. package/dist/static/loader/ButtonLoader.d.ts +1 -1
  453. package/dist/static/loader/ButtonLoader.d.ts.map +1 -1
  454. package/dist/static/loader/PaymentLoader.d.ts +1 -1
  455. package/dist/static/loader/PaymentLoader.d.ts.map +1 -1
  456. package/dist/static/manual-date-picker/ManualDatePicker.d.ts +1 -1
  457. package/dist/static/manual-date-picker/ManualDatePicker.d.ts.map +1 -1
  458. package/dist/static/manual-date-picker/hooks/useManualDatePicker.d.ts +2 -2
  459. package/dist/static/manual-date-picker/hooks/useManualDatePicker.d.ts.map +1 -1
  460. package/dist/static/tabs/Tab.d.ts +1 -1
  461. package/dist/static/tabs/Tab.d.ts.map +1 -1
  462. package/dist/static/tabs/Tabs.d.ts +1 -1
  463. package/dist/static/tabs/Tabs.d.ts.map +1 -1
  464. package/dist/striped-static-table/StripedStaticTable.d.ts +1 -1
  465. package/dist/striped-static-table/StripedStaticTable.d.ts.map +1 -1
  466. package/dist/styles/activity-card/GridActivitiesCard.scss +37 -0
  467. package/dist/styles/activity-card/ListActivitiesCard.scss +58 -0
  468. package/dist/styles/activity-card/_index.scss +2 -0
  469. package/dist/styles/availability-indicator/AvailabilityIndicator.scss +7 -0
  470. package/dist/styles/availability-indicator/_index.scss +1 -0
  471. package/dist/styles/back-button/BackButton.scss +33 -0
  472. package/dist/styles/back-button/_index.scss +1 -0
  473. package/dist/styles/date-time-button/DateTimeButton.scss +107 -0
  474. package/dist/styles/date-time-button/_index.scss +1 -0
  475. package/dist/styles/form/CustomCheckbox.scss +5 -0
  476. package/dist/styles/header/Header.scss +0 -4
  477. package/dist/styles/iframe-events/Calendar.scss +14 -14
  478. package/dist/styles/iframe-events/Card.scss +1 -0
  479. package/dist/styles/iframe-order-process/IframeOrderProcess.scss +8 -3
  480. package/dist/styles/iframe-page/PageBody.scss +5 -2
  481. package/dist/styles/{widgets/ImageRadioInput.scss → image-radio-input/_index.scss} +12 -0
  482. package/dist/styles/packages.scss +7 -1
  483. package/dist/styles/{widgets/WidgetTypeRadioButton.scss → radio-card/_index.scss} +8 -1
  484. package/dist/styles/resources-blocking/_index.scss +43 -1
  485. package/dist/styles/sales/BookingFilter.scss +2 -0
  486. package/dist/styles/sales/ManualBooking.scss +7 -1
  487. package/dist/styles/sales/RandomColors.scss +7 -4
  488. package/dist/styles/sortable-field/SortableField.scss +21 -0
  489. package/dist/styles/sortable-field/_index.scss +1 -0
  490. package/dist/styles/static/DateRangeInput.scss +5 -1
  491. package/dist/styles/themes/bookedit/_index.scss +1 -0
  492. package/dist/styles/themes/bookedit/_variables.scss +3 -2
  493. package/dist/styles/zones/ZoneForm.scss +0 -1
  494. package/dist/table/FilterHelperComponent.d.ts.map +1 -1
  495. package/dist/table/FilterHelperComponent.js +1 -1
  496. package/dist/table/MenuButton.d.ts +1 -1
  497. package/dist/table/MenuButton.d.ts.map +1 -1
  498. package/dist/table/ReactTableHelperComponent.d.ts +2 -2
  499. package/dist/table/ReactTableHelperComponent.d.ts.map +1 -1
  500. package/dist/table/types.d.ts +5 -5
  501. package/dist/table/types.d.ts.map +1 -1
  502. package/dist/tiptap-editor/TipTapMenu/extensions/EMOJIS.d.ts +1 -1
  503. package/dist/tiptap-editor/TipTapMenu/extensions/EMOJIS.d.ts.map +1 -1
  504. package/dist/typeahead/Typeahead.d.ts +1 -1
  505. package/dist/typeahead/Typeahead.d.ts.map +1 -1
  506. package/dist/typeahead-helper/TypeaheadHelperComponent.d.ts +1 -1
  507. package/dist/typeahead-helper/TypeaheadHelperComponent.d.ts.map +1 -1
  508. package/dist/types/categories.d.ts +2 -2
  509. package/dist/types/categories.d.ts.map +1 -1
  510. package/dist/types/currency.d.ts +1 -1
  511. package/dist/types/currency.d.ts.map +1 -1
  512. package/dist/types/generic/SelectItem.d.ts +1 -1
  513. package/dist/types/generic/SelectItem.d.ts.map +1 -1
  514. package/dist/types/iframe.d.ts +5 -3
  515. package/dist/types/iframe.d.ts.map +1 -1
  516. package/dist/types/provider-links.d.ts +2 -2
  517. package/dist/types/provider-links.d.ts.map +1 -1
  518. package/dist/venue-map-sets/form/components/NameControl.d.ts +1 -1
  519. package/dist/venue-map-sets/form/components/NameControl.d.ts.map +1 -1
  520. package/dist/venue-map-sets/form/components/VenueMapControl.d.ts +4 -4
  521. package/dist/venue-map-sets/form/components/VenueMapControl.d.ts.map +1 -1
  522. package/dist/venue-map-sets/form/components/VenueMapImageControl.d.ts +1 -1
  523. package/dist/venue-map-sets/form/components/VenueMapImageControl.d.ts.map +1 -1
  524. package/dist/venue-map-sets/form/components/VenueMapModal.d.ts +1 -1
  525. package/dist/venue-map-sets/form/components/VenueMapModal.d.ts.map +1 -1
  526. package/dist/venue-map-sets/form/components/VenueMapsControl.d.ts +1 -1
  527. package/dist/venue-map-sets/form/components/VenueMapsControl.d.ts.map +1 -1
  528. package/dist/venue-map-sets/form/types/index.d.ts +4 -4
  529. package/dist/venue-map-sets/form/types/index.d.ts.map +1 -1
  530. package/dist/virtualized/components/VirtualizedGrid.d.ts +1 -1
  531. package/dist/virtualized/components/VirtualizedGrid.d.ts.map +1 -1
  532. package/dist/virtualized/components/VirtualizedWindowScroller.d.ts +3 -3
  533. package/dist/virtualized/components/VirtualizedWindowScroller.d.ts.map +1 -1
  534. package/dist/virtualized/components/VirtualizedWindowScroller.js +1 -1
  535. package/dist/virtualized/context/VirtualizedContext.d.ts +2 -2
  536. package/dist/virtualized/context/VirtualizedContext.d.ts.map +1 -1
  537. package/dist/zone/form/ZoneForm.d.ts +2 -2
  538. package/dist/zone/form/ZoneForm.d.ts.map +1 -1
  539. package/dist/zone/form/components/AvailableTimesControl.d.ts +9 -2
  540. package/dist/zone/form/components/AvailableTimesControl.d.ts.map +1 -1
  541. package/dist/zone/form/components/AvailableTimesControl.js +1 -1
  542. package/dist/zone/form/components/DescriptionControl.d.ts +1 -1
  543. package/dist/zone/form/components/DescriptionControl.d.ts.map +1 -1
  544. package/dist/zone/form/components/GameDurationControl.d.ts +7 -0
  545. package/dist/zone/form/components/GameDurationControl.d.ts.map +1 -0
  546. package/dist/zone/form/components/GameDurationControl.js +1 -0
  547. package/dist/zone/form/components/NameControl.d.ts +1 -1
  548. package/dist/zone/form/components/NameControl.d.ts.map +1 -1
  549. package/dist/zone/form/components/SortControl.d.ts +1 -1
  550. package/dist/zone/form/components/SortControl.d.ts.map +1 -1
  551. package/dist/zone/form/components/ZoneControl.d.ts +1 -1
  552. package/dist/zone/form/components/ZoneControl.d.ts.map +1 -1
  553. package/dist/zone/form/components/ZoneControl.js +1 -1
  554. package/dist/zone/form/components/ZoneImageControl.d.ts +1 -1
  555. package/dist/zone/form/components/ZoneImageControl.d.ts.map +1 -1
  556. package/dist/zone/form/components/ZoneRecurrencesControl.d.ts +1 -1
  557. package/dist/zone/form/components/ZoneRecurrencesControl.d.ts.map +1 -1
  558. package/dist/zone/form/components/ZoneRecurrencesControl.js +1 -1
  559. package/dist/zone/form/components/ZoneTypeControl.d.ts +1 -1
  560. package/dist/zone/form/components/ZoneTypeControl.d.ts.map +1 -1
  561. package/dist/zone/form/utils/dates.d.ts.map +1 -1
  562. package/dist/zone/form/utils/dates.js +1 -1
  563. package/package.json +3 -2
  564. package/src/assets/iframe/available.svg +5 -0
  565. package/src/assets/iframe/backButton.svg +4 -0
  566. package/src/assets/iframe/limited.svg +5 -0
  567. package/src/assets/iframe/soldOut.svg +6 -0
  568. package/src/assets/logo/bookedit.svg +9 -11
  569. package/src/assets/logo/favicon.svg +12 -0
  570. package/src/assets/logo/licklist.svg +0 -2
  571. package/src/availability-indicator/AvailabilityIndicator.tsx +59 -0
  572. package/src/availability-indicator/index.ts +1 -0
  573. package/src/calendar/Calendar.stories.tsx +33 -0
  574. package/src/calendar/Calendar.tsx +46 -0
  575. package/src/{iframe/event/event-calendar → calendar}/components/CalendarButtons/CalendarButtons.tsx +31 -14
  576. package/src/{iframe/event/event-calendar → calendar}/components/CalendarDates/CalendarDates.tsx +25 -16
  577. package/src/{iframe/event/event-calendar → calendar}/components/CalendarSelect/CalendarSelect.tsx +1 -1
  578. package/src/calendar/index.ts +3 -0
  579. package/src/calendar/utils/index.ts +28 -0
  580. package/src/date-time-button/DateContent.tsx +46 -0
  581. package/src/date-time-button/DateTimeButton.stories.tsx +97 -0
  582. package/src/date-time-button/DateTimeButton.tsx +70 -0
  583. package/src/date-time-button/index.ts +1 -0
  584. package/src/events/event-venue-map/EventVenueMap.tsx +2 -2
  585. package/src/events/event-venue-map/components/MapPoint/MapPoint.tsx +1 -2
  586. package/src/events/event-venue-map/components/VenueMap/VenueMap.tsx +2 -2
  587. package/src/help/popover/HelpPopover.tsx +13 -5
  588. package/src/iframe/activity-card/ActivityCard.stories.tsx +75 -0
  589. package/src/iframe/activity-card/ActivityCard.tsx +77 -0
  590. package/src/iframe/activity-card/index.ts +1 -0
  591. package/src/iframe/back-button/BackButton.stories.tsx +16 -0
  592. package/src/iframe/back-button/BackButton.tsx +19 -0
  593. package/src/iframe/back-button/index.ts +1 -0
  594. package/src/iframe/event/event-card/IframeEventCard.stories.tsx +6 -14
  595. package/src/iframe/event/event-card/IframeEventCard.tsx +6 -10
  596. package/src/iframe/event/event-card/IframeEventCardSkeleton.tsx +20 -30
  597. package/src/iframe/event/event-card/IframeEventCards.stories.tsx +2 -3
  598. package/src/iframe/event/event-venue-map/IframeEventVenueMap.stories.tsx +1 -1
  599. package/src/iframe/event/index.ts +0 -6
  600. package/src/iframe/index.ts +5 -2
  601. package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +2 -0
  602. package/src/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.tsx +2 -2
  603. package/src/iframe/order-process/components/BookingSummary/types/index.ts +3 -2
  604. package/src/iframe/order-process/components/BookingSummary/utils/index.ts +2 -0
  605. package/src/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.tsx +11 -8
  606. package/src/iframe/order-process/components/CalendarStepsForm/components/Category.tsx +2 -2
  607. package/src/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.tsx +2 -2
  608. package/src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx +5 -19
  609. package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +4 -4
  610. package/src/iframe/order-process/components/{CalendarStepsForm/components → ErrorModal}/ErrorModal.tsx +13 -10
  611. package/src/iframe/order-process/components/ErrorModal/index.ts +1 -0
  612. package/src/iframe/order-process/components/NavigationSteps/NavigationSteps.tsx +8 -6
  613. package/src/iframe/order-process/components/NavigationSteps/index.ts +1 -1
  614. package/src/iframe/order-process/components/Timer/utils/index.ts +6 -9
  615. package/src/iframe/order-process/components/utils/useCategoryVerification.ts +82 -0
  616. package/src/iframe/order-process/index.ts +3 -2
  617. package/src/iframe/page/Page.stories.tsx +2 -2
  618. package/src/iframe/page/components/PageBody/PageBody.tsx +1 -1
  619. package/src/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.tsx +9 -4
  620. package/src/iframe/page/components/PageHeader/PageHeader.tsx +2 -13
  621. package/src/iframe/payment/order-items-table/hooks/useTableData.tsx +11 -99
  622. package/src/iframe/payment/order-items-table/types/index.ts +18 -1
  623. package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +118 -0
  624. package/src/iframe/payment/payment-page/PaymentPage.tsx +4 -5
  625. package/src/image-radio-input/ImageRadioInput.stories.tsx +67 -0
  626. package/src/image-radio-input/ImageRadioInput.tsx +53 -0
  627. package/src/index.ts +7 -0
  628. package/src/logo/Logo.tsx +1 -1
  629. package/src/product-set/control/DateAndRecurrenceInput.tsx +2 -2
  630. package/src/product-set/control/ProductSetControl.tsx +8 -12
  631. package/src/product-set/control/ProductSetRecurrenceControl.tsx +8 -4
  632. package/src/product-set/form/ProductCategoriesControl.tsx +3 -1
  633. package/src/product-set/form/ProductSetForm.stories.tsx +1 -0
  634. package/src/product-set/form/ProductsControl.tsx +10 -0
  635. package/src/product-set/hooks/{useSortableTreeFunctions.tsx → useSortableTreeFunctions.ts} +1 -3
  636. package/src/product-set/product/ProductControl.tsx +28 -1
  637. package/src/product-set/product/constants.ts +1 -1
  638. package/src/product-set/product/duration/ProductDurationControl.tsx +1 -1
  639. package/src/product-set/product/quantity/ProductQuantityRechargingControl.tsx +1 -13
  640. package/src/product-set/product-category/ProductCategoryControl.tsx +2 -8
  641. package/src/provider/location-input/LocationInputDescription.tsx +2 -2
  642. package/src/provider/working-hours-input/WorkingHoursInputDescription.tsx +9 -6
  643. package/src/radio-card/RadioCard.stories.tsx +48 -0
  644. package/src/radio-card/RadioCard.tsx +49 -0
  645. package/src/radio-card/index.ts +1 -0
  646. package/src/recurrence-input/RecurrenceEndInput.tsx +1 -1
  647. package/src/recurrence-input/RecurrenceInput.tsx +9 -2
  648. package/src/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.tsx +93 -24
  649. package/src/recurring-date-picker-input/RecurringDatePickerInput.tsx +10 -0
  650. package/src/report/form/ReportForm.tsx +1 -1
  651. package/src/sales/booking/index.ts +0 -2
  652. package/src/sales/booking/results/components/ResultCard.tsx +4 -3
  653. package/src/sales/booking/results/constants.ts +1 -0
  654. package/src/sales/booking/results/index.ts +1 -0
  655. package/src/sales/filters/SaleFilter.stories.tsx +1 -1
  656. package/src/sales/filters/SaleFilters.tsx +1 -1
  657. package/src/sales/manual-booking/index.ts +1 -5
  658. package/src/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.tsx +3 -1
  659. package/src/sales/manual-booking/select-date-type-control/SelectDateTypeControl.stories.tsx +1 -1
  660. package/src/sales/manual-booking/select-date-type-control/SelectDateTypeControl.tsx +5 -5
  661. package/src/sales/manual-booking/select-event/SelectEvent.tsx +3 -3
  662. package/src/sales/manual-booking/select-menu/SelectMenu.tsx +6 -4
  663. package/src/sales/manual-booking/select-menu/components/MenuButton.tsx +3 -3
  664. package/src/sales/notes/NotesTableRow.tsx +1 -1
  665. package/src/setting/dashboard/index.ts +0 -2
  666. package/src/snippet/snippet-template/form/SnippetTemplateForm.tsx +10 -10
  667. package/src/snippet/snippet-template/preview/Preview.tsx +18 -11
  668. package/src/sortable-fields/SortableFieldItem.tsx +60 -0
  669. package/src/sortable-fields/SortableFieldList.tsx +62 -0
  670. package/src/sortable-fields/index.ts +1 -0
  671. package/src/sortable-tree/SortableTreeItem.tsx +1 -1
  672. package/src/sorting-select/SortingSelect.stories.tsx +15 -0
  673. package/src/sorting-select/SortingSelect.tsx +79 -0
  674. package/src/sorting-select/index.ts +1 -0
  675. package/src/static/CountryCodeSelect.tsx +3 -3
  676. package/src/static/RestrictedAccess.tsx +1 -1
  677. package/src/static/date-range-input/DateRangeInput.tsx +6 -3
  678. package/src/static/form-number-input/FormNumberInput.tsx +8 -1
  679. package/src/styles/activity-card/GridActivitiesCard.scss +37 -0
  680. package/src/styles/activity-card/ListActivitiesCard.scss +58 -0
  681. package/src/styles/activity-card/_index.scss +2 -0
  682. package/src/styles/availability-indicator/AvailabilityIndicator.scss +7 -0
  683. package/src/styles/availability-indicator/_index.scss +1 -0
  684. package/src/styles/back-button/BackButton.scss +33 -0
  685. package/src/styles/back-button/_index.scss +1 -0
  686. package/src/styles/date-time-button/DateTimeButton.scss +107 -0
  687. package/src/styles/date-time-button/_index.scss +1 -0
  688. package/src/styles/form/CustomCheckbox.scss +5 -0
  689. package/src/styles/header/Header.scss +0 -4
  690. package/src/styles/iframe-events/Calendar.scss +14 -14
  691. package/src/styles/iframe-events/Card.scss +1 -0
  692. package/src/styles/iframe-order-process/IframeOrderProcess.scss +8 -3
  693. package/src/styles/iframe-page/PageBody.scss +5 -2
  694. package/src/styles/{widgets/ImageRadioInput.scss → image-radio-input/_index.scss} +12 -0
  695. package/src/styles/packages.scss +7 -1
  696. package/src/styles/{widgets/WidgetTypeRadioButton.scss → radio-card/_index.scss} +8 -1
  697. package/src/styles/resources-blocking/_index.scss +43 -1
  698. package/src/styles/sales/BookingFilter.scss +2 -0
  699. package/src/styles/sales/ManualBooking.scss +7 -1
  700. package/src/styles/sales/RandomColors.scss +7 -4
  701. package/src/styles/sortable-field/SortableField.scss +21 -0
  702. package/src/styles/sortable-field/_index.scss +1 -0
  703. package/src/styles/static/DateRangeInput.scss +5 -1
  704. package/src/styles/themes/bookedit/_index.scss +1 -0
  705. package/src/styles/themes/bookedit/_variables.scss +3 -2
  706. package/src/styles/zones/ZoneForm.scss +0 -1
  707. package/src/table/FilterHelperComponent.tsx +1 -0
  708. package/src/types/iframe.ts +5 -1
  709. package/src/typings.d.ts +11 -0
  710. package/src/virtualized/components/VirtualizedWindowScroller.tsx +2 -1
  711. package/src/zone/form/components/AvailableTimesControl.tsx +6 -1
  712. package/src/zone/form/components/GameDurationControl.tsx +46 -0
  713. package/src/zone/form/components/ZoneControl.tsx +2 -0
  714. package/src/zone/form/components/ZoneRecurrencesControl.tsx +36 -41
  715. package/src/zone/form/utils/dates.ts +29 -34
  716. package/tsconfig.json +2 -2
  717. package/dist/assets/dashboard/blockingClock.png +0 -0
  718. package/dist/assets/dashboard/bookingCalendar.svg +0 -67
  719. package/dist/assets/dashboard/bookingCalendar.svg.js +0 -1
  720. package/dist/assets/dashboard/bookingList.svg +0 -68
  721. package/dist/assets/dashboard/bookingList.svg.js +0 -1
  722. package/dist/assets/dashboard/bookingListSmall.svg +0 -6
  723. package/dist/assets/dashboard/bookingListSmall.svg.js +0 -1
  724. package/dist/assets/dashboard/fullscreen.svg +0 -3
  725. package/dist/assets/dashboard/fullscreen.svg.js +0 -1
  726. package/dist/assets/dashboard/minimize.svg +0 -3
  727. package/dist/assets/dashboard/minimize.svg.js +0 -1
  728. package/dist/assets/dashboard/refresh.svg +0 -4
  729. package/dist/assets/dashboard/refresh.svg.js +0 -1
  730. package/dist/assets/widgets/circlePlus.svg +0 -4
  731. package/dist/assets/widgets/inPage.svg +0 -10
  732. package/dist/assets/widgets/overlay.svg +0 -9
  733. package/dist/assets/widgets/sidebar.svg +0 -9
  734. package/dist/iframe/event/event-calendar/EventCalendar.d.ts +0 -5
  735. package/dist/iframe/event/event-calendar/EventCalendar.d.ts.map +0 -1
  736. package/dist/iframe/event/event-calendar/EventCalendar.js +0 -1
  737. package/dist/iframe/event/event-calendar/components/CalendarButtons/CalendarButtons.d.ts +0 -6
  738. package/dist/iframe/event/event-calendar/components/CalendarButtons/CalendarButtons.d.ts.map +0 -1
  739. package/dist/iframe/event/event-calendar/components/CalendarButtons/CalendarButtons.js +0 -1
  740. package/dist/iframe/event/event-calendar/components/CalendarButtons/index.d.ts.map +0 -1
  741. package/dist/iframe/event/event-calendar/components/CalendarDate/CalendarDate.d.ts +0 -11
  742. package/dist/iframe/event/event-calendar/components/CalendarDate/CalendarDate.d.ts.map +0 -1
  743. package/dist/iframe/event/event-calendar/components/CalendarDate/CalendarDate.js +0 -1
  744. package/dist/iframe/event/event-calendar/components/CalendarDate/index.d.ts +0 -3
  745. package/dist/iframe/event/event-calendar/components/CalendarDate/index.d.ts.map +0 -1
  746. package/dist/iframe/event/event-calendar/components/CalendarDates/CalendarDates.d.ts +0 -5
  747. package/dist/iframe/event/event-calendar/components/CalendarDates/CalendarDates.d.ts.map +0 -1
  748. package/dist/iframe/event/event-calendar/components/CalendarDates/CalendarDates.js +0 -1
  749. package/dist/iframe/event/event-calendar/components/CalendarDates/index.d.ts.map +0 -1
  750. package/dist/iframe/event/event-calendar/components/CalendarSelect/CalendarSelect.d.ts.map +0 -1
  751. package/dist/iframe/event/event-calendar/components/CalendarSelect/CalendarSelect.js +0 -1
  752. package/dist/iframe/event/event-calendar/components/CalendarSelect/index.d.ts.map +0 -1
  753. package/dist/iframe/event/event-calendar/components/CalendarWeekdays/CalendarWeekdays.d.ts.map +0 -1
  754. package/dist/iframe/event/event-calendar/components/CalendarWeekdays/index.d.ts.map +0 -1
  755. package/dist/iframe/event/event-calendar/index.d.ts +0 -4
  756. package/dist/iframe/event/event-calendar/index.d.ts.map +0 -1
  757. package/dist/iframe/event/event-calendar/types/index.d.ts +0 -6
  758. package/dist/iframe/event/event-calendar/types/index.d.ts.map +0 -1
  759. package/dist/iframe/event/event-calendar/utils/index.d.ts +0 -3
  760. package/dist/iframe/event/event-calendar/utils/index.d.ts.map +0 -1
  761. package/dist/iframe/event/event-calendar/utils/index.js +0 -1
  762. package/dist/iframe/order-process/components/CalendarStepsForm/components/ErrorModal.d.ts +0 -8
  763. package/dist/iframe/order-process/components/CalendarStepsForm/components/ErrorModal.d.ts.map +0 -1
  764. package/dist/iframe/order-process/components/CalendarStepsForm/components/ErrorModal.js +0 -1
  765. package/dist/iframe/order-process/components/Category/Category.d.ts +0 -13
  766. package/dist/iframe/order-process/components/Category/Category.d.ts.map +0 -1
  767. package/dist/iframe/order-process/components/Category/Category.js +0 -1
  768. package/dist/iframe/order-process/components/Category/index.d.ts +0 -2
  769. package/dist/iframe/order-process/components/Category/index.d.ts.map +0 -1
  770. package/dist/iframe/order-process/components/StepsForm/StepsForm.d.ts +0 -19
  771. package/dist/iframe/order-process/components/StepsForm/StepsForm.d.ts.map +0 -1
  772. package/dist/iframe/order-process/components/StepsForm/StepsForm.js +0 -1
  773. package/dist/iframe/order-process/components/StepsForm/index.d.ts +0 -2
  774. package/dist/iframe/order-process/components/StepsForm/index.d.ts.map +0 -1
  775. package/dist/iframe/order-process/components/utils/category.d.ts +0 -10
  776. package/dist/iframe/order-process/components/utils/category.d.ts.map +0 -1
  777. package/dist/iframe/order-process/components/utils/category.js +0 -1
  778. package/dist/provider/resources-blocking-modal/ResourcesBlockingModal.d.ts +0 -12
  779. package/dist/provider/resources-blocking-modal/ResourcesBlockingModal.d.ts.map +0 -1
  780. package/dist/provider/resources-blocking-modal/index.d.ts +0 -2
  781. package/dist/provider/resources-blocking-modal/index.d.ts.map +0 -1
  782. package/dist/sales/booking/filter/BookingFilter.d.ts +0 -12
  783. package/dist/sales/booking/filter/BookingFilter.d.ts.map +0 -1
  784. package/dist/sales/booking/filter/BookingFilter.js +0 -1
  785. package/dist/sales/booking/filter/components/AdditionalFIlterSection.d.ts +0 -10
  786. package/dist/sales/booking/filter/components/AdditionalFIlterSection.d.ts.map +0 -1
  787. package/dist/sales/booking/filter/components/AdditionalFIlterSection.js +0 -1
  788. package/dist/sales/booking/filter/components/MainFilterSection.d.ts +0 -5
  789. package/dist/sales/booking/filter/components/MainFilterSection.d.ts.map +0 -1
  790. package/dist/sales/booking/filter/components/MainFilterSection.js +0 -1
  791. package/dist/sales/booking/filter/components/ResultTagButton.d.ts +0 -8
  792. package/dist/sales/booking/filter/components/ResultTagButton.d.ts.map +0 -1
  793. package/dist/sales/booking/filter/components/ResultTagButton.js +0 -1
  794. package/dist/sales/booking/filter/components/SearchingForSection.d.ts +0 -3
  795. package/dist/sales/booking/filter/components/SearchingForSection.d.ts.map +0 -1
  796. package/dist/sales/booking/filter/components/SearchingForSection.js +0 -1
  797. package/dist/sales/booking/filter/index.d.ts +0 -3
  798. package/dist/sales/booking/filter/index.d.ts.map +0 -1
  799. package/dist/sales/booking/tabs/BookingTabs.d.ts +0 -11
  800. package/dist/sales/booking/tabs/BookingTabs.d.ts.map +0 -1
  801. package/dist/sales/booking/tabs/BookingTabs.js +0 -1
  802. package/dist/sales/booking/tabs/index.d.ts +0 -3
  803. package/dist/sales/booking/tabs/index.d.ts.map +0 -1
  804. package/dist/sales/manual-booking/category-product/CategoryProduct.d.ts +0 -16
  805. package/dist/sales/manual-booking/category-product/CategoryProduct.d.ts.map +0 -1
  806. package/dist/sales/manual-booking/category-product/CategoryProduct.js +0 -1
  807. package/dist/sales/manual-booking/category-product/index.d.ts +0 -2
  808. package/dist/sales/manual-booking/category-product/index.d.ts.map +0 -1
  809. package/dist/sales/manual-booking/category-products/CategoryProducts.d.ts +0 -17
  810. package/dist/sales/manual-booking/category-products/CategoryProducts.d.ts.map +0 -1
  811. package/dist/sales/manual-booking/category-products/CategoryProducts.js +0 -1
  812. package/dist/sales/manual-booking/category-products/index.d.ts +0 -2
  813. package/dist/sales/manual-booking/category-products/index.d.ts.map +0 -1
  814. package/dist/sales/manual-booking/controll/ManualBookingStepsControll.d.ts +0 -15
  815. package/dist/sales/manual-booking/controll/ManualBookingStepsControll.d.ts.map +0 -1
  816. package/dist/sales/manual-booking/controll/ManualBookingStepsControll.js +0 -1
  817. package/dist/sales/manual-booking/controll/index.d.ts +0 -2
  818. package/dist/sales/manual-booking/controll/index.d.ts.map +0 -1
  819. package/dist/sales/manual-booking/create-user/CreateUser.d.ts +0 -6
  820. package/dist/sales/manual-booking/create-user/CreateUser.d.ts.map +0 -1
  821. package/dist/sales/manual-booking/create-user/CreateUser.js +0 -1
  822. package/dist/sales/manual-booking/create-user/index.d.ts +0 -2
  823. package/dist/sales/manual-booking/create-user/index.d.ts.map +0 -1
  824. package/dist/sales/manual-booking/customer-info/CustomerInfo.d.ts +0 -7
  825. package/dist/sales/manual-booking/customer-info/CustomerInfo.d.ts.map +0 -1
  826. package/dist/sales/manual-booking/customer-info/CustomerInfo.js +0 -1
  827. package/dist/sales/manual-booking/customer-info/index.d.ts +0 -2
  828. package/dist/sales/manual-booking/customer-info/index.d.ts.map +0 -1
  829. package/dist/sales/manual-booking/final-step/FinalStep.d.ts +0 -7
  830. package/dist/sales/manual-booking/final-step/FinalStep.d.ts.map +0 -1
  831. package/dist/sales/manual-booking/final-step/FinalStep.js +0 -1
  832. package/dist/sales/manual-booking/final-step/index.d.ts +0 -2
  833. package/dist/sales/manual-booking/final-step/index.d.ts.map +0 -1
  834. package/dist/setting/dashboard/snippets/control/SnippetControl.d.ts +0 -9
  835. package/dist/setting/dashboard/snippets/control/SnippetControl.d.ts.map +0 -1
  836. package/dist/setting/dashboard/snippets/control/SnippetControl.js +0 -1
  837. package/dist/setting/dashboard/snippets/control/index.d.ts +0 -2
  838. package/dist/setting/dashboard/snippets/control/index.d.ts.map +0 -1
  839. package/dist/setting/dashboard/snippets/form/SnippetForm.d.ts +0 -33
  840. package/dist/setting/dashboard/snippets/form/SnippetForm.d.ts.map +0 -1
  841. package/dist/setting/dashboard/snippets/form/SnippetForm.js +0 -1
  842. package/dist/setting/dashboard/snippets/form/context.d.ts +0 -11
  843. package/dist/setting/dashboard/snippets/form/context.d.ts.map +0 -1
  844. package/dist/setting/dashboard/snippets/form/context.js +0 -1
  845. package/dist/setting/dashboard/snippets/form/index.d.ts +0 -2
  846. package/dist/setting/dashboard/snippets/form/index.d.ts.map +0 -1
  847. package/dist/setting/dashboard/snippets/modal/SnippetViewTypeModal.d.ts +0 -19
  848. package/dist/setting/dashboard/snippets/modal/SnippetViewTypeModal.d.ts.map +0 -1
  849. package/dist/setting/dashboard/snippets/modal/SnippetViewTypeModal.js +0 -1
  850. package/dist/setting/dashboard/snippets/modal/index.d.ts +0 -3
  851. package/dist/setting/dashboard/snippets/modal/index.d.ts.map +0 -1
  852. package/dist/styles/widgets/BookingStyleSelector.scss +0 -14
  853. package/dist/styles/widgets/CalendarStyleSelector.scss +0 -17
  854. package/dist/styles/widgets/CheckboxGroup.scss +0 -15
  855. package/dist/styles/widgets/ProductSetSelector.scss +0 -19
  856. package/dist/styles/widgets/SnippetCode.scss +0 -18
  857. package/dist/styles/widgets/WidgetBuilderForm.scss +0 -51
  858. package/dist/styles/widgets/WidgetTypeSelector.scss +0 -6
  859. package/dist/styles/widgets/_index.scss +0 -9
  860. package/dist/widgets/BookingStyleSelector/BookingStyleSelector.d.ts +0 -3
  861. package/dist/widgets/BookingStyleSelector/BookingStyleSelector.d.ts.map +0 -1
  862. package/dist/widgets/BookingStyleSelector/index.d.ts +0 -2
  863. package/dist/widgets/BookingStyleSelector/index.d.ts.map +0 -1
  864. package/dist/widgets/CalendarStyleSelector/CalendarStyleSelector.d.ts +0 -3
  865. package/dist/widgets/CalendarStyleSelector/CalendarStyleSelector.d.ts.map +0 -1
  866. package/dist/widgets/CalendarStyleSelector/index.d.ts +0 -2
  867. package/dist/widgets/CalendarStyleSelector/index.d.ts.map +0 -1
  868. package/dist/widgets/CheckboxGroup/CheckboxGroup.d.ts +0 -8
  869. package/dist/widgets/CheckboxGroup/CheckboxGroup.d.ts.map +0 -1
  870. package/dist/widgets/CheckboxGroup/index.d.ts +0 -2
  871. package/dist/widgets/CheckboxGroup/index.d.ts.map +0 -1
  872. package/dist/widgets/ImageRadioInput/ImageRadioInput.d.ts +0 -9
  873. package/dist/widgets/ImageRadioInput/ImageRadioInput.d.ts.map +0 -1
  874. package/dist/widgets/ImageRadioInput/index.d.ts.map +0 -1
  875. package/dist/widgets/ProductSetSelector/ProductSetSelector.d.ts +0 -3
  876. package/dist/widgets/ProductSetSelector/ProductSetSelector.d.ts.map +0 -1
  877. package/dist/widgets/ProductSetSelector/index.d.ts +0 -2
  878. package/dist/widgets/ProductSetSelector/index.d.ts.map +0 -1
  879. package/dist/widgets/SnippetCode/SnippetCode.d.ts +0 -6
  880. package/dist/widgets/SnippetCode/SnippetCode.d.ts.map +0 -1
  881. package/dist/widgets/SnippetCode/index.d.ts +0 -2
  882. package/dist/widgets/SnippetCode/index.d.ts.map +0 -1
  883. package/dist/widgets/WidgetBuilderForm/WidgetBuilderForm.d.ts +0 -12
  884. package/dist/widgets/WidgetBuilderForm/WidgetBuilderForm.d.ts.map +0 -1
  885. package/dist/widgets/WidgetTypeRadio/WidgetTypeRadio.d.ts +0 -7
  886. package/dist/widgets/WidgetTypeRadio/WidgetTypeRadio.d.ts.map +0 -1
  887. package/dist/widgets/WidgetTypeRadio/index.d.ts +0 -2
  888. package/dist/widgets/WidgetTypeRadio/index.d.ts.map +0 -1
  889. package/dist/widgets/WidgetTypeSelector/WidgetTypeSelector.d.ts +0 -3
  890. package/dist/widgets/WidgetTypeSelector/WidgetTypeSelector.d.ts.map +0 -1
  891. package/src/assets/dashboard/blockingClock.png +0 -0
  892. package/src/assets/dashboard/bookingCalendar.svg +0 -67
  893. package/src/assets/dashboard/bookingList.svg +0 -68
  894. package/src/assets/dashboard/bookingListSmall.svg +0 -6
  895. package/src/assets/dashboard/fullscreen.svg +0 -3
  896. package/src/assets/dashboard/minimize.svg +0 -3
  897. package/src/assets/dashboard/refresh.svg +0 -4
  898. package/src/assets/widgets/circlePlus.svg +0 -4
  899. package/src/assets/widgets/inPage.svg +0 -10
  900. package/src/assets/widgets/overlay.svg +0 -9
  901. package/src/assets/widgets/sidebar.svg +0 -9
  902. package/src/iframe/event/event-calendar/EventCalendar.stories.tsx +0 -37
  903. package/src/iframe/event/event-calendar/EventCalendar.tsx +0 -20
  904. package/src/iframe/event/event-calendar/components/CalendarDate/CalendarDate.tsx +0 -43
  905. package/src/iframe/event/event-calendar/components/CalendarDate/index.ts +0 -2
  906. package/src/iframe/event/event-calendar/index.ts +0 -6
  907. package/src/iframe/event/event-calendar/types/index.ts +0 -6
  908. package/src/iframe/event/event-calendar/utils/index.ts +0 -11
  909. package/src/iframe/order-process/OrderProcess.stories.tsx +0 -363
  910. package/src/iframe/order-process/components/Category/Category.stories.tsx +0 -118
  911. package/src/iframe/order-process/components/Category/Category.tsx +0 -51
  912. package/src/iframe/order-process/components/Category/index.ts +0 -1
  913. package/src/iframe/order-process/components/StepsForm/StepsForm.tsx +0 -176
  914. package/src/iframe/order-process/components/StepsForm/index.ts +0 -1
  915. package/src/iframe/order-process/components/utils/category.ts +0 -48
  916. package/src/provider/resources-blocking-modal/ResourcesBlockingModal.stories.tsx +0 -51
  917. package/src/provider/resources-blocking-modal/ResourcesBlockingModal.tsx +0 -134
  918. package/src/provider/resources-blocking-modal/index.ts +0 -1
  919. package/src/sales/booking/filter/BookingFilter.stories.tsx +0 -27
  920. package/src/sales/booking/filter/BookingFilter.tsx +0 -47
  921. package/src/sales/booking/filter/components/AdditionalFIlterSection.tsx +0 -95
  922. package/src/sales/booking/filter/components/MainFilterSection.tsx +0 -131
  923. package/src/sales/booking/filter/components/ResultTagButton.tsx +0 -33
  924. package/src/sales/booking/filter/components/SearchingForSection.tsx +0 -68
  925. package/src/sales/booking/filter/index.ts +0 -2
  926. package/src/sales/booking/tabs/BookingTabs.stories.tsx +0 -17
  927. package/src/sales/booking/tabs/BookingTabs.tsx +0 -88
  928. package/src/sales/booking/tabs/index.ts +0 -2
  929. package/src/sales/manual-booking/category-product/CategoryProduct.tsx +0 -285
  930. package/src/sales/manual-booking/category-product/index.ts +0 -1
  931. package/src/sales/manual-booking/category-products/CategoryProducts.tsx +0 -69
  932. package/src/sales/manual-booking/category-products/index.ts +0 -1
  933. package/src/sales/manual-booking/controll/ManualBookingStepsControll.tsx +0 -121
  934. package/src/sales/manual-booking/controll/index.ts +0 -1
  935. package/src/sales/manual-booking/create-user/CreateUser.stories.tsx +0 -27
  936. package/src/sales/manual-booking/create-user/CreateUser.tsx +0 -224
  937. package/src/sales/manual-booking/create-user/index.ts +0 -1
  938. package/src/sales/manual-booking/customer-info/CustomerInfo.tsx +0 -128
  939. package/src/sales/manual-booking/customer-info/index.ts +0 -1
  940. package/src/sales/manual-booking/final-step/FinalStep.tsx +0 -38
  941. package/src/sales/manual-booking/final-step/index.ts +0 -1
  942. package/src/setting/dashboard/snippets/control/SnippetControl.tsx +0 -237
  943. package/src/setting/dashboard/snippets/control/index.ts +0 -1
  944. package/src/setting/dashboard/snippets/form/SnippetForm.stories.tsx +0 -104
  945. package/src/setting/dashboard/snippets/form/SnippetForm.tsx +0 -94
  946. package/src/setting/dashboard/snippets/form/context.tsx +0 -18
  947. package/src/setting/dashboard/snippets/form/index.ts +0 -1
  948. package/src/setting/dashboard/snippets/modal/SnippetViewTypeModal.stories.tsx +0 -28
  949. package/src/setting/dashboard/snippets/modal/SnippetViewTypeModal.tsx +0 -104
  950. package/src/setting/dashboard/snippets/modal/index.ts +0 -2
  951. package/src/styles/widgets/BookingStyleSelector.scss +0 -14
  952. package/src/styles/widgets/CalendarStyleSelector.scss +0 -17
  953. package/src/styles/widgets/CheckboxGroup.scss +0 -15
  954. package/src/styles/widgets/ProductSetSelector.scss +0 -19
  955. package/src/styles/widgets/SnippetCode.scss +0 -18
  956. package/src/styles/widgets/WidgetBuilderForm.scss +0 -51
  957. package/src/styles/widgets/WidgetTypeSelector.scss +0 -6
  958. package/src/styles/widgets/_index.scss +0 -9
  959. package/src/widgets/BookingStyleSelector/BookingStyleSelector.stories.tsx +0 -12
  960. package/src/widgets/BookingStyleSelector/BookingStyleSelector.tsx +0 -34
  961. package/src/widgets/BookingStyleSelector/index.ts +0 -1
  962. package/src/widgets/CalendarStyleSelector/CalendarStyleSelector.stories.tsx +0 -12
  963. package/src/widgets/CalendarStyleSelector/CalendarStyleSelector.tsx +0 -29
  964. package/src/widgets/CalendarStyleSelector/index.ts +0 -1
  965. package/src/widgets/CheckboxGroup/CheckboxGroup.stories.tsx +0 -16
  966. package/src/widgets/CheckboxGroup/CheckboxGroup.tsx +0 -64
  967. package/src/widgets/CheckboxGroup/index.ts +0 -1
  968. package/src/widgets/ImageRadioInput/ImageRadioInput.stories.tsx +0 -18
  969. package/src/widgets/ImageRadioInput/ImageRadioInput.tsx +0 -29
  970. package/src/widgets/ProductSetSelector/ProductSetSelector.stories.tsx +0 -12
  971. package/src/widgets/ProductSetSelector/ProductSetSelector.tsx +0 -27
  972. package/src/widgets/ProductSetSelector/index.ts +0 -1
  973. package/src/widgets/SnippetCode/SnippetCode.stories.tsx +0 -17
  974. package/src/widgets/SnippetCode/SnippetCode.tsx +0 -27
  975. package/src/widgets/SnippetCode/index.ts +0 -1
  976. package/src/widgets/WidgetBuilderForm/WidgetBuilderForm.stories.tsx +0 -12
  977. package/src/widgets/WidgetBuilderForm/WidgetBuilderForm.tsx +0 -84
  978. package/src/widgets/WidgetTypeRadio/WidgetTypeRadio.stories.tsx +0 -17
  979. package/src/widgets/WidgetTypeRadio/WidgetTypeRadio.tsx +0 -43
  980. package/src/widgets/WidgetTypeRadio/index.ts +0 -1
  981. package/src/widgets/WidgetTypeSelector/WidgetTypeSelector.stories.tsx +0 -12
  982. package/src/widgets/WidgetTypeSelector/WidgetTypeSelector.tsx +0 -32
  983. package/tests/Snippets/Snippets.test.tsx +0 -77
  984. /package/dist/{iframe/event/event-calendar → calendar}/components/CalendarButtons/index.d.ts +0 -0
  985. /package/dist/{iframe/event/event-calendar → calendar}/components/CalendarDates/index.d.ts +0 -0
  986. /package/dist/{iframe/event/event-calendar → calendar}/components/CalendarSelect/index.d.ts +0 -0
  987. /package/dist/{iframe/event/event-calendar → calendar}/components/CalendarWeekdays/CalendarWeekdays.d.ts +0 -0
  988. /package/dist/{iframe/event/event-calendar → calendar}/components/CalendarWeekdays/CalendarWeekdays.js +0 -0
  989. /package/dist/{iframe/event/event-calendar → calendar}/components/CalendarWeekdays/index.d.ts +0 -0
  990. /package/dist/{widgets/ImageRadioInput → image-radio-input}/index.d.ts +0 -0
  991. /package/src/{iframe/event/event-calendar → calendar}/components/CalendarButtons/index.ts +0 -0
  992. /package/src/{iframe/event/event-calendar → calendar}/components/CalendarDates/index.ts +0 -0
  993. /package/src/{iframe/event/event-calendar → calendar}/components/CalendarSelect/index.ts +0 -0
  994. /package/src/{iframe/event/event-calendar → calendar}/components/CalendarWeekdays/CalendarWeekdays.tsx +0 -0
  995. /package/src/{iframe/event/event-calendar → calendar}/components/CalendarWeekdays/index.ts +0 -0
  996. /package/src/{widgets/ImageRadioInput → image-radio-input}/index.ts +0 -0
@@ -5,17 +5,17 @@ import { useTranslation } from "react-i18next";
5
5
  import { useIntl } from "react-intl";
6
6
  import * as Config from "@licklist/core/dist/Config";
7
7
  import HookFormService from "@licklist/plugins/dist/services/Form/HookFormService";
8
+ import { QuantityCheckProductInfo } from "@licklist/plugins/dist/types/Api/verifyStock";
8
9
  import { TicketDescription } from "../../../event/ticket-description";
9
10
  import { ProductCategory, Product } from "../../../../types";
10
- import { StepsFormProps } from "../StepsForm/StepsForm";
11
11
  import { ProductQuantityInput } from "./components/ProductQuantityInput";
12
12
 
13
13
  interface CategoryProductProps {
14
14
  product: Product;
15
15
  category: ProductCategory;
16
16
  canExpandDescription?: boolean;
17
- productsWithErrors?: StepsFormProps["productsWithErrors"];
18
- soldOutProducts?: StepsFormProps["productsWithErrors"];
17
+ productsWithErrors?: QuantityCheckProductInfo[];
18
+ soldOutProducts?: QuantityCheckProductInfo[];
19
19
  }
20
20
 
21
21
  export const CategoryProduct = ({
@@ -84,23 +84,9 @@ export const CategoryProduct = ({
84
84
  // but didn't click on number input.
85
85
  // If it will be required then required check fired firstly.
86
86
 
87
- const {
88
- isRequired = false,
89
- maxAmount = 0,
90
- minAmount = 0,
91
- minSpend,
92
- price,
93
- } = product;
87
+ const { isRequired = false, maxAmount = 0, minAmount = 0 } = product;
94
88
 
95
89
  const currentQuantity = value?.quantity ?? 0;
96
- if (minSpend && currentQuantity * price < minSpend) {
97
- return t("Design:minimumSpendSumValidation", {
98
- minSpend: formatNumber(minSpend, {
99
- style: "currency",
100
- currency: Config.Currency.GBP,
101
- }),
102
- }) as string;
103
- }
104
90
 
105
91
  if (!value) return true;
106
92
 
@@ -165,7 +151,7 @@ export const CategoryProduct = ({
165
151
  <ProductQuantityInput
166
152
  onChange={onChange}
167
153
  productInfo={productInfo}
168
- ref={ref}
154
+ refCallback={ref}
169
155
  clearErrors={clearErrors}
170
156
  product={{
171
157
  ...product,
@@ -21,7 +21,7 @@ interface ProductQuantityInputProps {
21
21
  clearErrors: UseFormClearErrors<FieldValues>;
22
22
  onChange: (value: FormOrderItem) => void;
23
23
  deposit?: number;
24
- ref: RefCallBack;
24
+ refCallback: RefCallBack;
25
25
  invalid: boolean;
26
26
  productInfo: FormOrderItem;
27
27
  }
@@ -31,7 +31,7 @@ export const ProductQuantityInput = ({
31
31
  category,
32
32
  onChange,
33
33
  clearErrors,
34
- ref,
34
+ refCallback,
35
35
  productInfo,
36
36
  invalid,
37
37
  deposit,
@@ -59,7 +59,7 @@ export const ProductQuantityInput = ({
59
59
  if (product?.maxAmount === 1) {
60
60
  return (
61
61
  <Button
62
- ref={ref}
62
+ ref={refCallback}
63
63
  disabled={product.isSoldOut}
64
64
  className={clsx(
65
65
  `iframe-event__${
@@ -75,7 +75,7 @@ export const ProductQuantityInput = ({
75
75
  }
76
76
  return (
77
77
  <NumberInput
78
- ref={ref}
78
+ ref={refCallback}
79
79
  onChange={(val) => {
80
80
  onChange({
81
81
  id: product.id,
@@ -5,17 +5,19 @@ import ModalHeader from "react-bootstrap/ModalHeader";
5
5
  import ModalTitle from "react-bootstrap/ModalTitle";
6
6
  import ModalBody from "react-bootstrap/ModalBody";
7
7
  import Modal from "react-bootstrap/Modal";
8
- import Icon from "../../../../../static/Icon";
8
+ import Icon from "../../../../static/Icon";
9
9
 
10
10
  export interface ErrorModalProps {
11
11
  isOpen: boolean;
12
12
  onClose?: () => void;
13
+ message?: string;
13
14
  messageKey?: string;
14
15
  }
15
16
 
16
17
  export const ErrorModal = ({
17
18
  isOpen = false,
18
19
  onClose,
20
+ message,
19
21
  messageKey,
20
22
  }: ErrorModalProps) => {
21
23
  const { t } = useTranslation("Design");
@@ -47,15 +49,16 @@ export const ErrorModal = ({
47
49
  </ModalHeader>
48
50
  <ModalBody className="confirmation-modal-body">
49
51
  <div className="d-flex m-5 justify-content-center manual-form-error">
50
- {messageKey ? (
51
- t(messageKey)
52
- ) : (
53
- <Trans
54
- t={t}
55
- i18nKey="pleaseSelectAtLeastFrom"
56
- values={{ min: 1, type: "item", from: "those categories" }}
57
- />
58
- )}
52
+ {message ||
53
+ (messageKey ? (
54
+ t(messageKey)
55
+ ) : (
56
+ <Trans
57
+ t={t}
58
+ i18nKey="pleaseSelectAtLeastFrom"
59
+ values={{ min: 1, type: "item", from: "those categories" }}
60
+ />
61
+ ))}
59
62
  </div>
60
63
  </ModalBody>
61
64
  </Modal>
@@ -0,0 +1 @@
1
+ export { ErrorModal } from "./ErrorModal";
@@ -10,13 +10,15 @@ import clsx from "clsx";
10
10
  import { useTranslation } from "react-i18next";
11
11
  import { SnippetLoader } from "../../../../static";
12
12
 
13
+ export type NavigationStep = {
14
+ pathname: string;
15
+ key: string;
16
+ name: string;
17
+ queryParams?: Record<string, string>;
18
+ };
19
+
13
20
  type NavigationStepsProps = {
14
- steps: {
15
- pathname: string;
16
- key: string;
17
- name: string;
18
- queryParams?: Record<string, string>;
19
- }[];
21
+ steps: NavigationStep[];
20
22
  isLoading?: boolean;
21
23
  };
22
24
 
@@ -1 +1 @@
1
- export { NavigationSteps } from "./NavigationSteps";
1
+ export { NavigationSteps, NavigationStep } from "./NavigationSteps";
@@ -1,10 +1,7 @@
1
- export const fancyTimeFormat = (miliseconds: number) => {
2
- const date = new Date(miliseconds);
3
- const mins = date.getMinutes();
4
- const secs = date.getSeconds();
5
- let timerString = "";
6
-
7
- timerString += `${mins}:${secs < 10 ? "0" : ""}`;
8
- timerString += `${secs}`;
9
- return timerString;
1
+ export const fancyTimeFormat = (milliseconds: number) => {
2
+ const totalSeconds = Math.floor(milliseconds / 1000);
3
+ const minutes = Math.floor(totalSeconds / 60);
4
+ const seconds = totalSeconds % 60;
5
+ const formattedSecs = seconds < 10 ? `0${seconds}` : `${seconds}`;
6
+ return `${minutes}:${formattedSecs}`;
10
7
  };
@@ -0,0 +1,82 @@
1
+ import { ProductCategory } from "@licklist/core/dist/DataMapper/Product/ProductCategoryDataMapper";
2
+ import { Currency } from "@licklist/core/dist/Config";
3
+ import { useIntl } from "react-intl";
4
+ import { useTranslation } from "react-i18next";
5
+ import { Order } from "src/types";
6
+
7
+ interface CategoryError {
8
+ message: string;
9
+ id?: number;
10
+ }
11
+
12
+ // TODO it's temporary solution, please remove it later
13
+ export const useCategoryVerification = () => {
14
+ const { t } = useTranslation("Validation");
15
+ const { formatNumber } = useIntl();
16
+ return (
17
+ values: Record<Order["id"], Order>,
18
+ productCategories?: ProductCategory[]
19
+ ): CategoryError | void => {
20
+ let errorMessage: { id?: number; message: string } | void;
21
+ const productArray = Object.values(values).filter(
22
+ (product) => product?.quantity > 0
23
+ );
24
+ const sumOfMinSpends = productCategories.reduce((acc, productCategory) => {
25
+ const { products } = productCategory;
26
+ const selectedProducts = products.filter((product) =>
27
+ productArray.map((el) => el.id).includes(product?.id)
28
+ );
29
+
30
+ const productMinSpendsSum =
31
+ selectedProducts?.reduce(
32
+ (sum, product) => sum + (product?.minSpend || 0),
33
+ 0
34
+ ) || 0;
35
+
36
+ return acc + productMinSpendsSum;
37
+ }, 0);
38
+
39
+ const totalPrice = productArray.reduce(
40
+ (total, product) => total + product.price * product.quantity,
41
+ 0
42
+ );
43
+
44
+ productCategories.forEach(({ minSubItems, maxSubItems, id, name }) => {
45
+ if (!minSubItems && !maxSubItems) return;
46
+
47
+ const categoryProductsQuantity = productArray.filter(
48
+ (product) => product?.productsCategoryId === id
49
+ ).length;
50
+
51
+ if (minSubItems && categoryProductsQuantity < minSubItems) {
52
+ const message = t("Validation:fieldMinNumber", {
53
+ min: minSubItems,
54
+ attribute: `number of products in the ${name} category`,
55
+ });
56
+ errorMessage = { id, message };
57
+
58
+ return;
59
+ }
60
+
61
+ if (maxSubItems && categoryProductsQuantity > maxSubItems) {
62
+ const message = t("Validation:fieldMaxNumber", {
63
+ max: maxSubItems,
64
+ attribute: `number of products in the ${name} category`,
65
+ });
66
+ errorMessage = { id, message };
67
+ }
68
+ });
69
+
70
+ if (totalPrice < sumOfMinSpends && !errorMessage) {
71
+ const message = t("Design:minimumSpendSumValidation", {
72
+ minSpend: formatNumber(sumOfMinSpends, {
73
+ style: "currency",
74
+ currency: Currency.GBP,
75
+ }),
76
+ }) as string;
77
+ errorMessage = { message };
78
+ }
79
+
80
+ return errorMessage;
81
+ };
82
+ };
@@ -1,6 +1,5 @@
1
1
  export { BookingSummary } from "./components/BookingSummary";
2
- export { NavigationSteps } from "./components/NavigationSteps";
3
- export { StepsForm } from "./components/StepsForm";
2
+ export { NavigationSteps, NavigationStep } from "./components/NavigationSteps";
4
3
  export { Timer } from "./components/Timer";
5
4
  export { NavigationFooter } from "./components/NavigationFooter";
6
5
  export { PaymentCard } from "./components/PaymentCard";
@@ -8,3 +7,5 @@ export { BookingSummaryFooter } from "./components/BookingSummaryFooter";
8
7
  export type { BookingSummaryFooterProps } from "./components/BookingSummaryFooter";
9
8
  export { CalendarStepsForm } from "./components/CalendarStepsForm";
10
9
  export type { CalendarStepsFormProps } from "./components/CalendarStepsForm";
10
+ export { useCategoryVerification } from "./components/utils/useCategoryVerification";
11
+ export { ErrorModal } from "./components/ErrorModal";
@@ -6,7 +6,7 @@ import { Page } from "./Page";
6
6
  import { PageHeader } from "./components/PageHeader";
7
7
  import { PageBody } from "./components/PageBody";
8
8
  import { IframeEventCard } from "../event/event-card/IframeEventCard";
9
- import { CalendarSelect } from "../event/event-calendar/components/CalendarSelect";
9
+ import { CalendarSelect } from "../../calendar/components/CalendarSelect";
10
10
 
11
11
  export default {
12
12
  title: "Iframe/Page/Page",
@@ -219,7 +219,7 @@ export function Default() {
219
219
  <>
220
220
  <CalendarSelect
221
221
  options={[{ label: "Floor 1", value: "1" }]}
222
- value={"1"}
222
+ value="1"
223
223
  onChange={(chagedId: string) => console.log({ chagedId })}
224
224
  />
225
225
  </>
@@ -21,7 +21,7 @@ export const PageBody = ({
21
21
  <div className={clsx("page-body", className)} {...props}>
22
22
  {children}
23
23
  {leftBlock}
24
- {rightBlock && rightBlock}
24
+ {rightBlock}
25
25
  </div>
26
26
  );
27
27
  };
@@ -6,14 +6,14 @@ import { useResizePageBody } from "../../hooks/useResizePageBody";
6
6
 
7
7
  export type LeftBlockProps = PropsWithChildren<
8
8
  {
9
- title?: string;
9
+ pageTitle?: ReactNode;
10
10
  component?: ReactNode;
11
11
  childrenClassName?: string;
12
12
  } & HTMLAttributes<HTMLDivElement>
13
13
  >;
14
14
 
15
15
  export const LeftBlock = ({
16
- title,
16
+ pageTitle,
17
17
  children,
18
18
  className,
19
19
  component,
@@ -24,9 +24,14 @@ export const LeftBlock = ({
24
24
 
25
25
  return (
26
26
  <div className={clsx("left-block", className)} {...props}>
27
- {title && (
27
+ {pageTitle && (
28
28
  <div className="navigation">
29
- <p className="title">{title}</p>
29
+ {typeof pageTitle === "string" ? (
30
+ <div className="title">{pageTitle}</div>
31
+ ) : (
32
+ pageTitle
33
+ )}
34
+
30
35
  {component}
31
36
  </div>
32
37
  )}
@@ -1,4 +1,5 @@
1
1
  import React, { PropsWithChildren, HTMLAttributes, useCallback } from "react";
2
+ import { BackButton } from "../../../back-button/BackButton";
2
3
  import { useSnippetStepsBackgroundColor } from "./hooks/useSnippetStepsBackgroundColor";
3
4
 
4
5
  export type PageHeaderProps = PropsWithChildren<
@@ -35,19 +36,7 @@ export const PageHeader = ({
35
36
  return (
36
37
  <div className="page-header" {...props}>
37
38
  <div className="header-container">
38
- {showBackButton && (
39
- <div className="button-wrapper back-button">
40
- <div
41
- className="back-button"
42
- onClick={onReturnBack}
43
- onKeyPress={onReturnBack}
44
- role="button"
45
- tabIndex={0}
46
- >
47
- &lt;
48
- </div>
49
- </div>
50
- )}
39
+ {showBackButton && <BackButton onClick={onReturnBack} />}
51
40
  {children && (
52
41
  <div className="children-wrapper" style={style}>
53
42
  {children}
@@ -9,15 +9,9 @@ import {
9
9
  PAYMENT_TYPE_NET_PROFIT,
10
10
  } from "@licklist/core/dist/DataMapper/Order/PaymentDataMapper";
11
11
  import { StaticTableData } from "../../../../table";
12
- import {
13
- getProductQuantityAndPrice,
14
- calculateTotalDiscount,
15
- calculateTotalPrice,
16
- getPaymentValueByType,
17
- getExternalPaymentDetail,
18
- getTotalSumByCategory,
19
- } from "../utils";
12
+ import { getProductQuantityAndPrice, getTotalSumByCategory } from "../utils";
20
13
  import { OrderItemsTableProps, SummaryItem } from "../types";
14
+ import { getOrderSummaryItems } from "../utils/paymentSummary";
21
15
 
22
16
  const CURRENCY_DEFAULT = "GBP";
23
17
  export const PAYMENT_TYPE_TRANSLATE_KEYS = {
@@ -114,9 +108,7 @@ export const useTableData = ({
114
108
  );
115
109
  };
116
110
 
117
- const renderSummaryItems = (
118
- summaryItems: { translateKey: string; price: number }[]
119
- ) => {
111
+ const renderSummaryItems = (summaryItems: SummaryItem[]) => {
120
112
  return summaryItems.map(({ translateKey, price }) => {
121
113
  return {
122
114
  key: uniqueId(`summary-info-${translateKey}`),
@@ -127,93 +119,6 @@ export const useTableData = ({
127
119
  });
128
120
  };
129
121
 
130
- const paymentNotProcessedSummary = () => {
131
- const externalPaymentDetail = paymentDetail
132
- ? getExternalPaymentDetail(paymentDetail)
133
- : undefined;
134
-
135
- const total = calculateTotalPrice(order, externalPaymentDetail);
136
-
137
- const summaryItems: SummaryItem[] = [
138
- {
139
- translateKey: "amountTotal",
140
- price: total,
141
- },
142
- ];
143
-
144
- if (externalDiscount) {
145
- summaryItems.push({
146
- price: externalDiscount,
147
- translateKey: "amountWithDiscount",
148
- });
149
- }
150
-
151
- if (externalPaymentDetail) {
152
- return [...summaryItems, ...getExternalPaymentDetail(paymentDetail)];
153
- }
154
-
155
- return summaryItems;
156
- };
157
-
158
- const processedPaymentSummary = () => {
159
- const externalPaymentDetail =
160
- paymentDetail && !order.payments.length
161
- ? getExternalPaymentDetail(paymentDetail)
162
- : Object.keys(PAYMENT_TYPE_TRANSLATE_KEYS).map((key) => {
163
- return {
164
- translateKey: PAYMENT_TYPE_TRANSLATE_KEYS[key],
165
- price: getPaymentValueByType(order.payments, key),
166
- };
167
- });
168
-
169
- const total = calculateTotalPrice(order, externalPaymentDetail);
170
-
171
- const totalDiscount = calculateTotalDiscount(order.payments);
172
- const totalWithDiscount = total - Number(totalDiscount);
173
- let summaryItems: SummaryItem[] = [
174
- {
175
- translateKey: "amountTotal",
176
- price: total,
177
- },
178
- ];
179
-
180
- if (totalDiscount) {
181
- summaryItems.push({
182
- translateKey: "amountWithDiscount",
183
- price: totalWithDiscount < 0 ? 0 : totalWithDiscount,
184
- });
185
- }
186
-
187
- if (paymentDetail && !order.payments.length) {
188
- return [...summaryItems, ...externalPaymentDetail];
189
- }
190
-
191
- summaryItems.push({
192
- translateKey: "totalPaid",
193
- price: totalWithDiscount <= 0 ? 0 : order.totalAmount,
194
- });
195
- if (totalWithDiscount <= 0) {
196
- return summaryItems;
197
- }
198
- summaryItems = [...summaryItems, ...externalPaymentDetail];
199
-
200
- if (totalWithDiscount > order.totalAmount) {
201
- summaryItems.push({
202
- translateKey: "remainingToPay",
203
- price: totalWithDiscount - order.totalAmount,
204
- });
205
- }
206
- return summaryItems;
207
- };
208
-
209
- const getOrderSummaryItems = () => {
210
- if (!isPaymentProcessed) {
211
- return paymentNotProcessedSummary();
212
- }
213
-
214
- return processedPaymentSummary();
215
- };
216
-
217
122
  const data = useMemo(
218
123
  () => {
219
124
  if (!order) {
@@ -222,7 +127,14 @@ export const useTableData = ({
222
127
 
223
128
  return [
224
129
  ...renderProductsContent(),
225
- ...renderSummaryItems(getOrderSummaryItems()),
130
+ ...renderSummaryItems(
131
+ getOrderSummaryItems({
132
+ order,
133
+ paymentDetail,
134
+ isPaymentProcessed,
135
+ externalDiscount,
136
+ })
137
+ ),
226
138
  ];
227
139
  },
228
140
  // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -1,7 +1,24 @@
1
1
  import { Order } from "@licklist/core/dist/DataMapper/Order/OrderDataMapper";
2
2
  import { PaymentDetail } from "@licklist/core/dist/DataMapper/Order/PaymentDetailDataMapper";
3
3
 
4
- export type SummaryItem = { translateKey: string; price: number };
4
+ export const AMOUNT_TOTAL = "amountTotal";
5
+ export const AMOUNT_WITH_DISCOUNT = "amountWithDiscount";
6
+ export const TOTAL_PAID = "totalPaid";
7
+ export const REMAINING_TO_PAY = "remainingToPay";
8
+
9
+ export const SUMMARY_TRANSLATE_KEYS = [
10
+ AMOUNT_TOTAL,
11
+ AMOUNT_WITH_DISCOUNT,
12
+ TOTAL_PAID,
13
+ REMAINING_TO_PAY,
14
+ ];
15
+
16
+ export type SUMMARY_TRANSLATE_KEY = typeof SUMMARY_TRANSLATE_KEYS[number];
17
+
18
+ export type SummaryItem = {
19
+ translateKey: SUMMARY_TRANSLATE_KEY;
20
+ price: number;
21
+ };
5
22
 
6
23
  export type OrderItemsTableProps = {
7
24
  order?: Order;
@@ -0,0 +1,118 @@
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
+ };