@licklist/design 0.44.485-dev.3 → 0.44.485-dev.30

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 (501) 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/auth/Login/LoginComponent.d.ts +1 -1
  4. package/dist/auth/Login/LoginComponent.d.ts.map +1 -1
  5. package/dist/auth/Login/LoginFormComponent.d.ts +1 -1
  6. package/dist/auth/Login/LoginFormComponent.d.ts.map +1 -1
  7. package/dist/auth/Register/RegisterComponent.d.ts +1 -1
  8. package/dist/auth/Register/RegisterComponent.d.ts.map +1 -1
  9. package/dist/auth/Register/RegisterFormComponent.d.ts +1 -1
  10. package/dist/auth/Register/RegisterFormComponent.d.ts.map +1 -1
  11. package/dist/auth/ResetPassword/ResetPasswordFormComponent.d.ts +1 -1
  12. package/dist/auth/ResetPassword/ResetPasswordFormComponent.d.ts.map +1 -1
  13. package/dist/collapsible-input-group/CollapsibleInputGroup.d.ts +1 -1
  14. package/dist/collapsible-input-group/CollapsibleInputGroup.d.ts.map +1 -1
  15. package/dist/custom-fields/field-set/CustomFieldSets.d.ts +3 -3
  16. package/dist/custom-fields/field-set/CustomFieldSets.d.ts.map +1 -1
  17. package/dist/custom-fields/field-set/components/CustomFieldSet/CustomFieldSet.d.ts +1 -1
  18. package/dist/custom-fields/field-set/components/CustomFieldSet/CustomFieldSet.d.ts.map +1 -1
  19. package/dist/custom-fields/field-set/contexts/useCustomFieldSets.d.ts +2 -2
  20. package/dist/custom-fields/field-set/contexts/useCustomFieldSets.d.ts.map +1 -1
  21. package/dist/customers/components/filter/CustomerFilter.d.ts +2 -3
  22. package/dist/customers/components/filter/CustomerFilter.d.ts.map +1 -1
  23. package/dist/customers/components/filter/CustomerFilter.js +1 -1
  24. package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.d.ts.map +1 -1
  25. package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +1 -1
  26. package/dist/events/edit-event-modal/utils/getDefaultProductSet.d.ts.map +1 -1
  27. package/dist/events/edit-event-modal/utils/getDefaultProductSet.js +1 -1
  28. package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.d.ts +3 -3
  29. package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.d.ts.map +1 -1
  30. package/dist/events/event-statistic-modal/EventStatisticModal.d.ts +1 -1
  31. package/dist/events/event-statistic-modal/EventStatisticModal.d.ts.map +1 -1
  32. package/dist/events/event-statistic-modal/EventStatisticModal.js +1 -1
  33. package/dist/events/event-venue-map/EventVenueMap.d.ts +5 -2
  34. package/dist/events/event-venue-map/EventVenueMap.d.ts.map +1 -1
  35. package/dist/events/event-venue-map/EventVenueMap.js +1 -1
  36. package/dist/events/event-venue-map/components/Dropdown/Dropdown.d.ts +1 -1
  37. package/dist/events/event-venue-map/components/Dropdown/Dropdown.d.ts.map +1 -1
  38. package/dist/events/event-venue-map/components/Dropdown/components/ProductsControl/ProductsControl.d.ts +1 -1
  39. package/dist/events/event-venue-map/components/Dropdown/components/ProductsControl/ProductsControl.d.ts.map +1 -1
  40. package/dist/events/event-venue-map/components/Dropdown/components/SelectControl/SelectControl.d.ts +1 -1
  41. package/dist/events/event-venue-map/components/Dropdown/components/SelectControl/SelectControl.d.ts.map +1 -1
  42. package/dist/events/event-venue-map/components/MapPoint/MapPoint.d.ts +1 -1
  43. package/dist/events/event-venue-map/components/MapPoint/MapPoint.d.ts.map +1 -1
  44. package/dist/events/event-venue-map/components/MapPoint/components/DeleteIcon/DeleteIcon.d.ts +1 -1
  45. package/dist/events/event-venue-map/components/MapPoint/components/DeleteIcon/DeleteIcon.d.ts.map +1 -1
  46. package/dist/events/event-venue-map/components/MapPoint/components/EditIcon/EditIcon.d.ts +1 -1
  47. package/dist/events/event-venue-map/components/MapPoint/components/EditIcon/EditIcon.d.ts.map +1 -1
  48. package/dist/events/event-venue-map/components/MapPoint/components/PointIcon/PointIcon.d.ts +1 -1
  49. package/dist/events/event-venue-map/components/MapPoint/components/PointIcon/PointIcon.d.ts.map +1 -1
  50. package/dist/events/event-venue-map/components/MapPoint/components/ProductIcon/ProductIcon.d.ts +1 -1
  51. package/dist/events/event-venue-map/components/MapPoint/components/ProductIcon/ProductIcon.d.ts.map +1 -1
  52. package/dist/events/event-venue-map/components/MapPoint/components/ProductIcon/ProductIcon.js +1 -1
  53. package/dist/events/event-venue-map/components/MapPoint/components/ProductTooltip/ProductTooltip.d.ts +9 -0
  54. package/dist/events/event-venue-map/components/MapPoint/components/ProductTooltip/ProductTooltip.d.ts.map +1 -0
  55. package/dist/events/event-venue-map/components/MapPoint/components/ProductTooltip/ProductTooltip.js +1 -0
  56. package/dist/events/event-venue-map/components/MapPoint/components/ProductTooltip/index.d.ts +2 -0
  57. package/dist/events/event-venue-map/components/MapPoint/components/ProductTooltip/index.d.ts.map +1 -0
  58. package/dist/events/event-venue-map/components/VenueMap/VenueMap.d.ts +4 -2
  59. package/dist/events/event-venue-map/components/VenueMap/VenueMap.d.ts.map +1 -1
  60. package/dist/events/event-venue-map/components/VenueMap/VenueMap.js +1 -1
  61. package/dist/events/event-venue-map/hooks/useCanvasSize.d.ts +1 -1
  62. package/dist/events/event-venue-map/hooks/useCanvasSize.d.ts.map +1 -1
  63. package/dist/events/event-venue-map/hooks/useStageActions.d.ts +1 -1
  64. package/dist/events/event-venue-map/hooks/useStageActions.d.ts.map +1 -1
  65. package/dist/events/event-venue-map/types/index.d.ts +5 -5
  66. package/dist/events/event-venue-map/types/index.d.ts.map +1 -1
  67. package/dist/events/event-venue-map/utils/index.d.ts +3 -3
  68. package/dist/events/event-venue-map/utils/index.d.ts.map +1 -1
  69. package/dist/file-upload/FilePreview.d.ts +2 -2
  70. package/dist/file-upload/FilePreview.d.ts.map +1 -1
  71. package/dist/file-upload/FileUpload.d.ts +1 -1
  72. package/dist/file-upload/FileUpload.d.ts.map +1 -1
  73. package/dist/header/Header.d.ts +1 -1
  74. package/dist/header/Header.d.ts.map +1 -1
  75. package/dist/help/example/Example.d.ts +4 -4
  76. package/dist/help/example/Example.d.ts.map +1 -1
  77. package/dist/help/popover/HelpPopover.d.ts +1 -1
  78. package/dist/help/popover/HelpPopover.d.ts.map +1 -1
  79. package/dist/iframe/custom-fields/components/CustomDateField.d.ts +1 -1
  80. package/dist/iframe/custom-fields/components/CustomDateField.d.ts.map +1 -1
  81. package/dist/iframe/event/event-calendar/EventCalendar.d.ts +1 -1
  82. package/dist/iframe/event/event-calendar/EventCalendar.d.ts.map +1 -1
  83. package/dist/iframe/event/event-calendar/components/CalendarButtons/CalendarButtons.d.ts +1 -1
  84. package/dist/iframe/event/event-calendar/components/CalendarButtons/CalendarButtons.d.ts.map +1 -1
  85. package/dist/iframe/event/event-calendar/components/CalendarDate/CalendarDate.d.ts +1 -1
  86. package/dist/iframe/event/event-calendar/components/CalendarDate/CalendarDate.d.ts.map +1 -1
  87. package/dist/iframe/event/event-calendar/components/CalendarDates/CalendarDates.d.ts +1 -1
  88. package/dist/iframe/event/event-calendar/components/CalendarDates/CalendarDates.d.ts.map +1 -1
  89. package/dist/iframe/event/event-calendar/components/CalendarSelect/CalendarSelect.d.ts +2 -2
  90. package/dist/iframe/event/event-calendar/components/CalendarSelect/CalendarSelect.d.ts.map +1 -1
  91. package/dist/iframe/event/event-calendar/types/index.d.ts +1 -1
  92. package/dist/iframe/event/event-calendar/types/index.d.ts.map +1 -1
  93. package/dist/iframe/event/event-card/IframeEventCard.js +1 -1
  94. package/dist/iframe/event/event-details/EventDetails.d.ts +1 -1
  95. package/dist/iframe/event/event-details/EventDetails.d.ts.map +1 -1
  96. package/dist/iframe/event/event-order-short-summary/components/Summary/Summary.d.ts +5 -6
  97. package/dist/iframe/event/event-order-short-summary/components/Summary/Summary.d.ts.map +1 -1
  98. package/dist/iframe/event/event-order-short-summary/components/Summary/Summary.js +1 -1
  99. package/dist/iframe/event/event-product-sets/EventProductSets.d.ts +1 -1
  100. package/dist/iframe/event/event-product-sets/EventProductSets.d.ts.map +1 -1
  101. package/dist/iframe/event/event-product-sets/components/EventProductSet.d.ts +1 -1
  102. package/dist/iframe/event/event-product-sets/components/EventProductSet.d.ts.map +1 -1
  103. package/dist/iframe/event/event-step-venue-map-zones/EventStepVenueMapZones.d.ts +1 -1
  104. package/dist/iframe/event/event-step-venue-map-zones/EventStepVenueMapZones.d.ts.map +1 -1
  105. package/dist/iframe/event/event-step-venue-map-zones/components/EventStepVenueMapZone.d.ts +1 -1
  106. package/dist/iframe/event/event-step-venue-map-zones/components/EventStepVenueMapZone.d.ts.map +1 -1
  107. package/dist/iframe/event/event-venue-map/IframeEventVenueMap.d.ts +5 -1
  108. package/dist/iframe/event/event-venue-map/IframeEventVenueMap.d.ts.map +1 -1
  109. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts.map +1 -1
  110. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.js +1 -1
  111. package/dist/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/BookingSummaryAccordion.d.ts +1 -1
  112. package/dist/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/BookingSummaryAccordion.d.ts.map +1 -1
  113. package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.d.ts +1 -1
  114. package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.d.ts.map +1 -1
  115. package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/components/SummaryTotalBlock.d.ts +1 -1
  116. package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/components/SummaryTotalBlock.d.ts.map +1 -1
  117. package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.d.ts +1 -1
  118. package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.d.ts.map +1 -1
  119. package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts +4 -4
  120. package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts.map +1 -1
  121. package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts +1 -1
  122. package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts.map +1 -1
  123. package/dist/iframe/order-process/components/BookingSummary/utils/index.js +1 -1
  124. package/dist/iframe/order-process/components/BookingSummaryFooter/BookingSummaryFooter.d.ts +4 -4
  125. package/dist/iframe/order-process/components/BookingSummaryFooter/BookingSummaryFooter.d.ts.map +1 -1
  126. package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.d.ts +3 -1
  127. package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.d.ts.map +1 -1
  128. package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.js +1 -1
  129. package/dist/iframe/order-process/components/CalendarStepsForm/components/Category.d.ts +4 -2
  130. package/dist/iframe/order-process/components/CalendarStepsForm/components/Category.d.ts.map +1 -1
  131. package/dist/iframe/order-process/components/CalendarStepsForm/components/Category.js +1 -1
  132. package/dist/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.d.ts +4 -2
  133. package/dist/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.d.ts.map +1 -1
  134. package/dist/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.js +1 -1
  135. package/dist/iframe/order-process/components/Category/Category.d.ts +2 -1
  136. package/dist/iframe/order-process/components/Category/Category.d.ts.map +1 -1
  137. package/dist/iframe/order-process/components/Category/Category.js +1 -1
  138. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts +2 -1
  139. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts.map +1 -1
  140. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.js +1 -1
  141. package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.d.ts +1 -0
  142. package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.d.ts.map +1 -1
  143. package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js +1 -1
  144. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts.map +1 -1
  145. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.js +1 -1
  146. package/dist/iframe/order-process/components/NavigationSteps/NavigationSteps.d.ts +1 -1
  147. package/dist/iframe/order-process/components/NavigationSteps/NavigationSteps.d.ts.map +1 -1
  148. package/dist/iframe/order-process/components/PaymentCard/PaymentCard.d.ts +1 -1
  149. package/dist/iframe/order-process/components/PaymentCard/PaymentCard.d.ts.map +1 -1
  150. package/dist/iframe/order-process/components/StepsForm/StepsForm.d.ts +2 -1
  151. package/dist/iframe/order-process/components/StepsForm/StepsForm.d.ts.map +1 -1
  152. package/dist/iframe/order-process/components/StepsForm/StepsForm.js +1 -1
  153. package/dist/iframe/order-process/components/Timer/Timer.d.ts +1 -1
  154. package/dist/iframe/order-process/components/Timer/Timer.d.ts.map +1 -1
  155. package/dist/iframe/page/Page.d.ts +1 -1
  156. package/dist/iframe/page/Page.d.ts.map +1 -1
  157. package/dist/iframe/page/components/PageBody/PageBody.d.ts +1 -1
  158. package/dist/iframe/page/components/PageBody/PageBody.d.ts.map +1 -1
  159. package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.d.ts +1 -1
  160. package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.d.ts.map +1 -1
  161. package/dist/iframe/page/components/PageBody/components/RightBlock/RightBlock.d.ts +1 -1
  162. package/dist/iframe/page/components/PageBody/components/RightBlock/RightBlock.d.ts.map +1 -1
  163. package/dist/iframe/page/components/PageBody/types.d.ts +1 -1
  164. package/dist/iframe/page/components/PageBody/types.d.ts.map +1 -1
  165. package/dist/iframe/page/components/PageHeader/PageHeader.d.ts +1 -1
  166. package/dist/iframe/page/components/PageHeader/PageHeader.d.ts.map +1 -1
  167. package/dist/iframe/payment/order-items-table/hooks/useTableData.d.ts +5 -0
  168. package/dist/iframe/payment/order-items-table/hooks/useTableData.d.ts.map +1 -1
  169. package/dist/iframe/payment/order-items-table/hooks/useTableData.js +1 -1
  170. package/dist/iframe/payment/order-items-table/types/index.d.ts +2 -2
  171. package/dist/iframe/payment/order-items-table/types/index.d.ts.map +1 -1
  172. package/dist/iframe/payment/order-items-table/utils/index.d.ts +6 -1
  173. package/dist/iframe/payment/order-items-table/utils/index.d.ts.map +1 -1
  174. package/dist/iframe/payment/order-items-table/utils/index.js +1 -1
  175. package/dist/iframe/payment/payment-page/PaymentPage.d.ts.map +1 -1
  176. package/dist/iframe/payment/payment-page/PaymentPage.js +1 -1
  177. package/dist/iframe/payment/payment-status-header/PaymentStatusHeader.d.ts +1 -1
  178. package/dist/iframe/payment/payment-status-header/PaymentStatusHeader.d.ts.map +1 -1
  179. package/dist/iframe/payment/payment-status-page/PaymentStatusPage.d.ts +5 -3
  180. package/dist/iframe/payment/payment-status-page/PaymentStatusPage.d.ts.map +1 -1
  181. package/dist/iframe/payment/payment-status-page/PaymentStatusPage.js +1 -1
  182. package/dist/iframe/powered-by/PoweredBy.d.ts +1 -1
  183. package/dist/iframe/powered-by/PoweredBy.d.ts.map +1 -1
  184. package/dist/iframe/ryft/RyftPaymentForm.d.ts +1 -1
  185. package/dist/iframe/ryft/RyftPaymentForm.d.ts.map +1 -1
  186. package/dist/index.d.ts +1 -0
  187. package/dist/index.d.ts.map +1 -1
  188. package/dist/index.js +1 -1
  189. package/dist/modals/confirmation/ConfirmModal.d.ts +2 -2
  190. package/dist/modals/confirmation/ConfirmModal.d.ts.map +1 -1
  191. package/dist/product-set/control/ProductSetControl.d.ts +15 -4
  192. package/dist/product-set/control/ProductSetControl.d.ts.map +1 -1
  193. package/dist/product-set/control/ProductSetControl.js +1 -1
  194. package/dist/product-set/deposit-paid/ProductSetDepositPaidControl.d.ts +3 -3
  195. package/dist/product-set/deposit-paid/ProductSetDepositPaidControl.d.ts.map +1 -1
  196. package/dist/product-set/elements/DeleteFieldButton.d.ts +1 -1
  197. package/dist/product-set/elements/DeleteFieldButton.d.ts.map +1 -1
  198. package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
  199. package/dist/product-set/form/ProductSetForm.js +1 -1
  200. package/dist/product-set/form/ProductsControl.d.ts.map +1 -1
  201. package/dist/product-set/form/ProductsControl.js +1 -1
  202. package/dist/product-set/form/StepsControl.d.ts.map +1 -1
  203. package/dist/product-set/form/StepsControl.js +1 -1
  204. package/dist/product-set/form/VenueMapSetModal.d.ts +1 -1
  205. package/dist/product-set/form/VenueMapSetModal.d.ts.map +1 -1
  206. package/dist/product-set/form/VenueMapsControl.d.ts +1 -1
  207. package/dist/product-set/form/VenueMapsControl.d.ts.map +1 -1
  208. package/dist/product-set/form/context.d.ts +1 -1
  209. package/dist/product-set/form/context.d.ts.map +1 -1
  210. package/dist/product-set/popover/ProductSetPopover.d.ts +1 -1
  211. package/dist/product-set/popover/ProductSetPopover.d.ts.map +1 -1
  212. package/dist/product-set/product/ProductControl.d.ts +1 -0
  213. package/dist/product-set/product/ProductControl.d.ts.map +1 -1
  214. package/dist/product-set/product/ProductControl.js +1 -1
  215. package/dist/product-set/product/fixed-duration-fields/FixedDurationOptions.d.ts +1 -1
  216. package/dist/product-set/product/fixed-duration-fields/FixedDurationOptions.d.ts.map +1 -1
  217. package/dist/product-set/product/price/ProductPriceControl.d.ts +7 -3
  218. package/dist/product-set/product/price/ProductPriceControl.d.ts.map +1 -1
  219. package/dist/product-set/product/price/ProductPriceControl.js +1 -1
  220. package/dist/product-set/tabs/ProductSetTab.d.ts +1 -1
  221. package/dist/product-set/tabs/ProductSetTab.d.ts.map +1 -1
  222. package/dist/product-set/tabs/ProductSetTabs.d.ts +1 -1
  223. package/dist/product-set/tabs/ProductSetTabs.d.ts.map +1 -1
  224. package/dist/product-set/types/index.d.ts +5 -5
  225. package/dist/product-set/types/index.d.ts.map +1 -1
  226. package/dist/product-set/utils/index.d.ts +4 -0
  227. package/dist/product-set/utils/index.d.ts.map +1 -1
  228. package/dist/product-set/utils/index.js +1 -1
  229. package/dist/provider/categories-input/CategoriesInput.d.ts +1 -1
  230. package/dist/provider/categories-input/CategoriesInput.d.ts.map +1 -1
  231. package/dist/provider/categories-input/CategoriesInputDescription.d.ts +1 -1
  232. package/dist/provider/categories-input/CategoriesInputDescription.d.ts.map +1 -1
  233. package/dist/provider/categories-input/index.d.ts +1 -1
  234. package/dist/provider/categories-input/index.d.ts.map +1 -1
  235. package/dist/provider/company/user-form/UserForm.d.ts +2 -2
  236. package/dist/provider/company/user-form/UserForm.d.ts.map +1 -1
  237. package/dist/provider/location-input/index.d.ts +1 -1
  238. package/dist/provider/location-input/index.d.ts.map +1 -1
  239. package/dist/provider/provider-details-input/ProviderDetailsInput.d.ts +2 -2
  240. package/dist/provider/provider-details-input/ProviderDetailsInput.d.ts.map +1 -1
  241. package/dist/provider/provider-details-input/ProviderDetailsInput.js +1 -1
  242. package/dist/provider/provider-form/ProviderForm.d.ts +1 -1
  243. package/dist/provider/provider-form/ProviderForm.d.ts.map +1 -1
  244. package/dist/provider/provider-links-input/ProviderLinksInput.d.ts +2 -2
  245. package/dist/provider/provider-links-input/ProviderLinksInput.d.ts.map +1 -1
  246. package/dist/provider/resources-blocking-modal/ResourcesBlockingModal.d.ts +1 -1
  247. package/dist/provider/resources-blocking-modal/ResourcesBlockingModal.d.ts.map +1 -1
  248. package/dist/provider/venue-form/VenueForm.d.ts +1 -1
  249. package/dist/provider/venue-form/VenueForm.d.ts.map +1 -1
  250. package/dist/provider/working-hours-input/index.d.ts +1 -1
  251. package/dist/provider/working-hours-input/index.d.ts.map +1 -1
  252. package/dist/recurrence-input/utils.d.ts +2 -2
  253. package/dist/recurrence-input/utils.d.ts.map +1 -1
  254. package/dist/recurring-date-picker-input/RecurringDatePickerInput.js +1 -1
  255. package/dist/recurring-date-picker-input/utils.d.ts +2 -2
  256. package/dist/recurring-date-picker-input/utils.d.ts.map +1 -1
  257. package/dist/resource/form/ResourceForm.d.ts +2 -2
  258. package/dist/resource/form/ResourceForm.d.ts.map +1 -1
  259. package/dist/resource/form/components/CapacityControl.d.ts +1 -1
  260. package/dist/resource/form/components/CapacityControl.d.ts.map +1 -1
  261. package/dist/resource/form/components/NameControl.d.ts +1 -1
  262. package/dist/resource/form/components/NameControl.d.ts.map +1 -1
  263. package/dist/resource/form/components/SortControl.d.ts +1 -1
  264. package/dist/resource/form/components/SortControl.d.ts.map +1 -1
  265. package/dist/resource/form/components/ZoneControl.d.ts +1 -1
  266. package/dist/resource/form/components/ZoneControl.d.ts.map +1 -1
  267. package/dist/sales/booking/filter/BookingFilter.d.ts +1 -1
  268. package/dist/sales/booking/filter/BookingFilter.d.ts.map +1 -1
  269. package/dist/sales/booking/filter/components/AdditionalFIlterSection.d.ts +1 -1
  270. package/dist/sales/booking/filter/components/AdditionalFIlterSection.d.ts.map +1 -1
  271. package/dist/sales/booking/filter/components/AdditionalFIlterSection.js +1 -1
  272. package/dist/sales/booking/filter/components/MainFilterSection.d.ts +1 -1
  273. package/dist/sales/booking/filter/components/MainFilterSection.d.ts.map +1 -1
  274. package/dist/sales/booking/filter/components/ResultTagButton.d.ts +1 -1
  275. package/dist/sales/booking/filter/components/ResultTagButton.d.ts.map +1 -1
  276. package/dist/sales/booking/results/BookingResults.d.ts +1 -1
  277. package/dist/sales/booking/results/BookingResults.d.ts.map +1 -1
  278. package/dist/sales/booking/results/components/ResultCard.d.ts +1 -1
  279. package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
  280. package/dist/sales/booking/tabs/BookingTabs.d.ts +1 -1
  281. package/dist/sales/booking/tabs/BookingTabs.d.ts.map +1 -1
  282. package/dist/sales/filters/SaleFilters.d.ts +1 -2
  283. package/dist/sales/filters/SaleFilters.d.ts.map +1 -1
  284. package/dist/sales/guest-profile/previous-bookings/PreviousBookings.d.ts +4 -3
  285. package/dist/sales/guest-profile/previous-bookings/PreviousBookings.d.ts.map +1 -1
  286. package/dist/sales/guest-profile/previous-bookings/PreviousBookings.js +1 -1
  287. package/dist/sales/guest-profile/profile/Profile.d.ts +1 -1
  288. package/dist/sales/guest-profile/profile/Profile.d.ts.map +1 -1
  289. package/dist/sales/guest-profile/profile/components/ImageHolder/ImageHolder.d.ts +1 -1
  290. package/dist/sales/guest-profile/profile/components/ImageHolder/ImageHolder.d.ts.map +1 -1
  291. package/dist/sales/guest-profile/user-metrics/UserMetrics.d.ts +1 -1
  292. package/dist/sales/guest-profile/user-metrics/UserMetrics.d.ts.map +1 -1
  293. package/dist/sales/guest-profile/visited-providers/VisitedProviders.d.ts +1 -1
  294. package/dist/sales/guest-profile/visited-providers/VisitedProviders.d.ts.map +1 -1
  295. package/dist/sales/life-time-sales/LifeTimeSalesChart.d.ts +1 -1
  296. package/dist/sales/life-time-sales/LifeTimeSalesChart.d.ts.map +1 -1
  297. package/dist/sales/manual-booking/customer-info/CustomerInfo.d.ts +1 -1
  298. package/dist/sales/manual-booking/customer-info/CustomerInfo.d.ts.map +1 -1
  299. package/dist/sales/manual-booking/final-step/FinalStep.d.ts +1 -1
  300. package/dist/sales/manual-booking/final-step/FinalStep.d.ts.map +1 -1
  301. package/dist/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.d.ts +1 -1
  302. package/dist/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.d.ts.map +1 -1
  303. package/dist/sales/manual-booking/select-date-type-control/SelectDateTypeControl.d.ts +1 -1
  304. package/dist/sales/manual-booking/select-date-type-control/SelectDateTypeControl.d.ts.map +1 -1
  305. package/dist/sales/manual-booking/select-menu/SelectMenu.d.ts +1 -1
  306. package/dist/sales/manual-booking/select-menu/SelectMenu.d.ts.map +1 -1
  307. package/dist/sales/manual-booking/select-menu/SelectMenu.js +1 -1
  308. package/dist/sales/manual-booking/select-menu/components/MenuButton.d.ts +1 -1
  309. package/dist/sales/manual-booking/select-menu/components/MenuButton.d.ts.map +1 -1
  310. package/dist/sales/notes/NotesTable.d.ts +1 -1
  311. package/dist/sales/notes/NotesTable.d.ts.map +1 -1
  312. package/dist/sales/notes/NotesTableRow.d.ts +1 -1
  313. package/dist/sales/notes/NotesTableRow.d.ts.map +1 -1
  314. package/dist/sales/notes/note-form/NoteForm.d.ts +1 -1
  315. package/dist/sales/notes/note-form/NoteForm.d.ts.map +1 -1
  316. package/dist/sales/payment-form/SalePaymentForm.d.ts +2 -2
  317. package/dist/sales/payment-form/SalePaymentForm.d.ts.map +1 -1
  318. package/dist/sales/payment-form/components/RyftPayment/RyftPayment.d.ts +1 -1
  319. package/dist/sales/payment-form/components/RyftPayment/RyftPayment.d.ts.map +1 -1
  320. package/dist/sales/payment-form/types.d.ts +2 -2
  321. package/dist/sales/payment-form/types.d.ts.map +1 -1
  322. package/dist/sales/sales-and-views/SalesAndViewsChart.d.ts +1 -1
  323. package/dist/sales/sales-and-views/SalesAndViewsChart.d.ts.map +1 -1
  324. package/dist/setting/admin/AdminSettingForm.d.ts +1 -1
  325. package/dist/setting/admin/AdminSettingForm.d.ts.map +1 -1
  326. package/dist/setting/admin/PaymentFeeForm.d.ts +2 -2
  327. package/dist/setting/admin/PaymentFeeForm.d.ts.map +1 -1
  328. package/dist/setting/dashboard/DashboardSettingForm.d.ts +1 -1
  329. package/dist/setting/dashboard/DashboardSettingForm.d.ts.map +1 -1
  330. package/dist/setting/dashboard/EventSettingForm.d.ts +2 -2
  331. package/dist/setting/dashboard/EventSettingForm.d.ts.map +1 -1
  332. package/dist/setting/dashboard/FinancialDataForm.d.ts +2 -2
  333. package/dist/setting/dashboard/FinancialDataForm.d.ts.map +1 -1
  334. package/dist/setting/dashboard/OtherSettingForm.d.ts +2 -2
  335. package/dist/setting/dashboard/OtherSettingForm.d.ts.map +1 -1
  336. package/dist/setting/dashboard/ProviderSettingForm.d.ts +2 -2
  337. package/dist/setting/dashboard/ProviderSettingForm.d.ts.map +1 -1
  338. package/dist/setting/system/SystemSettingForm.d.ts +1 -1
  339. package/dist/setting/system/SystemSettingForm.d.ts.map +1 -1
  340. package/dist/snippet/snippet-template/context/snippetTemplate.d.ts +1 -1
  341. package/dist/snippet/snippet-template/context/snippetTemplate.d.ts.map +1 -1
  342. package/dist/sortable-list/SortableList.d.ts +4 -4
  343. package/dist/sortable-list/SortableList.d.ts.map +1 -1
  344. package/dist/sortable-tree/SortableTreeItem.d.ts +1 -1
  345. package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
  346. package/dist/static/Icon.d.ts +1 -1
  347. package/dist/static/Icon.d.ts.map +1 -1
  348. package/dist/static/date-range-input/DateRangeInput.d.ts +1 -1
  349. package/dist/static/date-range-input/DateRangeInput.d.ts.map +1 -1
  350. package/dist/static/images/DefaultUserImage.d.ts +1 -1
  351. package/dist/static/images/DefaultUserImage.d.ts.map +1 -1
  352. package/dist/static/loader/ButtonLoader.d.ts +1 -1
  353. package/dist/static/loader/ButtonLoader.d.ts.map +1 -1
  354. package/dist/static/loader/PaymentLoader.d.ts +1 -1
  355. package/dist/static/loader/PaymentLoader.d.ts.map +1 -1
  356. package/dist/static/manual-date-picker/ManualDatePicker.d.ts +1 -1
  357. package/dist/static/manual-date-picker/ManualDatePicker.d.ts.map +1 -1
  358. package/dist/static/manual-date-picker/hooks/useManualDatePicker.d.ts +2 -2
  359. package/dist/static/manual-date-picker/hooks/useManualDatePicker.d.ts.map +1 -1
  360. package/dist/static/tabs/Tab.d.ts +1 -1
  361. package/dist/static/tabs/Tab.d.ts.map +1 -1
  362. package/dist/static/tabs/Tabs.d.ts +1 -1
  363. package/dist/static/tabs/Tabs.d.ts.map +1 -1
  364. package/dist/striped-static-table/StripedStaticTable.d.ts +7 -0
  365. package/dist/striped-static-table/StripedStaticTable.d.ts.map +1 -0
  366. package/dist/striped-static-table/StripedStaticTable.js +1 -0
  367. package/dist/striped-static-table/index.d.ts +2 -0
  368. package/dist/striped-static-table/index.d.ts.map +1 -0
  369. package/dist/styles/customers/Filter.scss +23 -4
  370. package/dist/styles/events/EventStatisticModal.scss +0 -37
  371. package/dist/styles/packages.scss +1 -0
  372. package/dist/styles/striped-static-table/_index.scss +33 -0
  373. package/dist/table/MenuButton.d.ts +1 -1
  374. package/dist/table/MenuButton.d.ts.map +1 -1
  375. package/dist/table/ReactTableHelperComponent.d.ts +2 -2
  376. package/dist/table/ReactTableHelperComponent.d.ts.map +1 -1
  377. package/dist/table/StaticTable.d.ts +3 -3
  378. package/dist/table/StaticTable.d.ts.map +1 -1
  379. package/dist/table/StaticTable.js +1 -1
  380. package/dist/table/types.d.ts +5 -5
  381. package/dist/table/types.d.ts.map +1 -1
  382. package/dist/tiptap-editor/TipTapMenu/extensions/EMOJIS.d.ts +1 -1
  383. package/dist/tiptap-editor/TipTapMenu/extensions/EMOJIS.d.ts.map +1 -1
  384. package/dist/typeahead/Typeahead.d.ts +5 -12
  385. package/dist/typeahead/Typeahead.d.ts.map +1 -1
  386. package/dist/typeahead/Typeahead.js +1 -1
  387. package/dist/typeahead-helper/TypeaheadHelperComponent.d.ts +1 -1
  388. package/dist/typeahead-helper/TypeaheadHelperComponent.d.ts.map +1 -1
  389. package/dist/types/categories.d.ts +2 -2
  390. package/dist/types/categories.d.ts.map +1 -1
  391. package/dist/types/currency.d.ts +1 -1
  392. package/dist/types/currency.d.ts.map +1 -1
  393. package/dist/types/generic/SelectItem.d.ts +1 -1
  394. package/dist/types/generic/SelectItem.d.ts.map +1 -1
  395. package/dist/types/iframe.d.ts +4 -2
  396. package/dist/types/iframe.d.ts.map +1 -1
  397. package/dist/types/provider-links.d.ts +2 -2
  398. package/dist/types/provider-links.d.ts.map +1 -1
  399. package/dist/venue-map-sets/form/components/NameControl.d.ts +1 -1
  400. package/dist/venue-map-sets/form/components/NameControl.d.ts.map +1 -1
  401. package/dist/venue-map-sets/form/components/VenueMapControl.d.ts +4 -4
  402. package/dist/venue-map-sets/form/components/VenueMapControl.d.ts.map +1 -1
  403. package/dist/venue-map-sets/form/components/VenueMapImageControl.d.ts +1 -1
  404. package/dist/venue-map-sets/form/components/VenueMapImageControl.d.ts.map +1 -1
  405. package/dist/venue-map-sets/form/components/VenueMapModal.d.ts +1 -1
  406. package/dist/venue-map-sets/form/components/VenueMapModal.d.ts.map +1 -1
  407. package/dist/venue-map-sets/form/components/VenueMapsControl.d.ts +1 -1
  408. package/dist/venue-map-sets/form/components/VenueMapsControl.d.ts.map +1 -1
  409. package/dist/venue-map-sets/form/types/index.d.ts +4 -4
  410. package/dist/venue-map-sets/form/types/index.d.ts.map +1 -1
  411. package/dist/virtualized/components/VirtualizedGrid.d.ts +1 -1
  412. package/dist/virtualized/components/VirtualizedGrid.d.ts.map +1 -1
  413. package/dist/virtualized/components/VirtualizedWindowScroller.d.ts +3 -3
  414. package/dist/virtualized/components/VirtualizedWindowScroller.d.ts.map +1 -1
  415. package/dist/virtualized/context/VirtualizedContext.d.ts +2 -2
  416. package/dist/virtualized/context/VirtualizedContext.d.ts.map +1 -1
  417. package/dist/widgets/CheckboxGroup/CheckboxGroup.d.ts +1 -1
  418. package/dist/widgets/CheckboxGroup/CheckboxGroup.d.ts.map +1 -1
  419. package/dist/widgets/ImageRadioInput/ImageRadioInput.d.ts +1 -1
  420. package/dist/widgets/ImageRadioInput/ImageRadioInput.d.ts.map +1 -1
  421. package/dist/widgets/SnippetCode/SnippetCode.d.ts +1 -1
  422. package/dist/widgets/SnippetCode/SnippetCode.d.ts.map +1 -1
  423. package/dist/widgets/WidgetBuilderForm/WidgetBuilderForm.d.ts +1 -1
  424. package/dist/widgets/WidgetBuilderForm/WidgetBuilderForm.d.ts.map +1 -1
  425. package/dist/widgets/WidgetTypeRadio/WidgetTypeRadio.d.ts +1 -1
  426. package/dist/widgets/WidgetTypeRadio/WidgetTypeRadio.d.ts.map +1 -1
  427. package/dist/zone/form/ZoneForm.d.ts +2 -2
  428. package/dist/zone/form/ZoneForm.d.ts.map +1 -1
  429. package/dist/zone/form/components/AvailableTimesControl.d.ts +2 -2
  430. package/dist/zone/form/components/AvailableTimesControl.d.ts.map +1 -1
  431. package/dist/zone/form/components/DescriptionControl.d.ts +1 -1
  432. package/dist/zone/form/components/DescriptionControl.d.ts.map +1 -1
  433. package/dist/zone/form/components/NameControl.d.ts +1 -1
  434. package/dist/zone/form/components/NameControl.d.ts.map +1 -1
  435. package/dist/zone/form/components/SortControl.d.ts +1 -1
  436. package/dist/zone/form/components/SortControl.d.ts.map +1 -1
  437. package/dist/zone/form/components/ZoneControl.d.ts +1 -1
  438. package/dist/zone/form/components/ZoneControl.d.ts.map +1 -1
  439. package/dist/zone/form/components/ZoneImageControl.d.ts +1 -1
  440. package/dist/zone/form/components/ZoneImageControl.d.ts.map +1 -1
  441. package/dist/zone/form/components/ZoneRecurrencesControl.d.ts +1 -1
  442. package/dist/zone/form/components/ZoneRecurrencesControl.d.ts.map +1 -1
  443. package/dist/zone/form/components/ZoneTypeControl.d.ts +1 -1
  444. package/dist/zone/form/components/ZoneTypeControl.d.ts.map +1 -1
  445. package/package.json +4 -4
  446. package/src/customers/components/filter/CustomerFilter.stories.tsx +1 -2
  447. package/src/customers/components/filter/CustomerFilter.tsx +3 -5
  448. package/src/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.tsx +11 -2
  449. package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +5 -4
  450. package/src/events/event-statistic-modal/EventStatisticModal.tsx +1 -1
  451. package/src/events/event-venue-map/EventVenueMap.tsx +4 -0
  452. package/src/events/event-venue-map/components/MapPoint/components/ProductIcon/ProductIcon.tsx +13 -2
  453. package/src/events/event-venue-map/components/MapPoint/components/ProductTooltip/ProductTooltip.tsx +69 -0
  454. package/src/events/event-venue-map/components/MapPoint/components/ProductTooltip/index.ts +1 -0
  455. package/src/events/event-venue-map/components/VenueMap/VenueMap.tsx +12 -4
  456. package/src/iframe/event/event-card/IframeEventCard.tsx +1 -1
  457. package/src/iframe/event/event-order-short-summary/components/Summary/Summary.tsx +20 -20
  458. package/src/iframe/event/event-venue-map/IframeEventVenueMap.stories.tsx +5 -0
  459. package/src/iframe/order-process/OrderProcess.stories.tsx +1 -0
  460. package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +4 -1
  461. package/src/iframe/order-process/components/BookingSummary/types/index.ts +3 -3
  462. package/src/iframe/order-process/components/BookingSummary/utils/index.ts +6 -2
  463. package/src/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.stories.tsx +1 -0
  464. package/src/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.tsx +5 -0
  465. package/src/iframe/order-process/components/CalendarStepsForm/components/Category.tsx +4 -0
  466. package/src/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.tsx +4 -0
  467. package/src/iframe/order-process/components/Category/Category.tsx +3 -0
  468. package/src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx +42 -8
  469. package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +3 -0
  470. package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +3 -2
  471. package/src/iframe/order-process/components/StepsForm/StepsForm.tsx +3 -0
  472. package/src/iframe/payment/order-items-table/OrderItemsTable.stories.tsx +2 -0
  473. package/src/iframe/payment/order-items-table/hooks/useTableData.tsx +21 -14
  474. package/src/iframe/payment/order-items-table/utils/index.ts +55 -15
  475. package/src/iframe/payment/payment-page/PaymentPage.tsx +45 -5
  476. package/src/iframe/payment/payment-status-page/PaymentStatusPage.tsx +66 -12
  477. package/src/index.ts +1 -0
  478. package/src/product-set/control/ProductSetControl.tsx +38 -33
  479. package/src/product-set/form/ProductSetForm.stories.tsx +41 -2
  480. package/src/product-set/form/ProductSetForm.tsx +11 -0
  481. package/src/product-set/form/ProductsControl.tsx +20 -1
  482. package/src/product-set/form/StepsControl.tsx +20 -2
  483. package/src/product-set/product/ProductControl.tsx +25 -10
  484. package/src/product-set/product/price/ProductPriceControl.tsx +43 -21
  485. package/src/product-set/utils/index.ts +28 -0
  486. package/src/provider/provider-details-input/ProviderDetailsInput.tsx +0 -2
  487. package/src/sales/filters/SaleFilters.tsx +1 -1
  488. package/src/sales/guest-profile/previous-bookings/PreviousBookings.stories.tsx +35 -5
  489. package/src/sales/guest-profile/previous-bookings/PreviousBookings.tsx +11 -3
  490. package/src/sales/manual-booking/select-menu/SelectMenu.tsx +1 -1
  491. package/src/striped-static-table/StripedStaticTable.stories.tsx +71 -0
  492. package/src/striped-static-table/StripedStaticTable.tsx +63 -0
  493. package/src/striped-static-table/index.ts +1 -0
  494. package/src/styles/customers/Filter.scss +23 -4
  495. package/src/styles/events/EventStatisticModal.scss +0 -37
  496. package/src/styles/packages.scss +1 -0
  497. package/src/styles/striped-static-table/_index.scss +33 -0
  498. package/src/table/StaticTable.tsx +4 -2
  499. package/src/typeahead/Typeahead.stories.tsx +9 -6
  500. package/src/typeahead/Typeahead.tsx +9 -12
  501. package/src/types/iframe.ts +2 -0
@@ -15,6 +15,7 @@ interface CategoryProductProps {
15
15
  category: ProductCategory;
16
16
  canExpandDescription?: boolean;
17
17
  productsWithErrors?: StepsFormProps["productsWithErrors"];
18
+ soldOutProducts?: StepsFormProps["productsWithErrors"];
18
19
  }
19
20
 
20
21
  export const CategoryProduct = ({
@@ -22,6 +23,7 @@ export const CategoryProduct = ({
22
23
  category,
23
24
  canExpandDescription = true,
24
25
  productsWithErrors,
26
+ soldOutProducts,
25
27
  }: CategoryProductProps) => {
26
28
  const { formatNumber } = useIntl();
27
29
  const { t } = useTranslation(["Design", "Validation"]);
@@ -49,6 +51,16 @@ export const CategoryProduct = ({
49
51
  return product.deposit;
50
52
  }, [category, product]);
51
53
 
54
+ const checkIfSoldOutProduct = () => {
55
+ if (!soldOutProducts || product?.isSoldOut) {
56
+ return undefined;
57
+ }
58
+ const error = soldOutProducts.find(
59
+ (productWithError) => productWithError.product_id === product.id
60
+ );
61
+ return !!error?.message;
62
+ };
63
+
52
64
  useEffect(() => {
53
65
  if (!productQuantityError) {
54
66
  return;
@@ -71,17 +83,32 @@ export const CategoryProduct = ({
71
83
  // One case when no value is that we have product,
72
84
  // but didn't click on number input.
73
85
  // If it will be required then required check fired firstly.
74
- if (!value) return true;
75
86
 
76
- const { isRequired = false, maxAmount = 0, minAmount = 0 } = product;
87
+ const {
88
+ isRequired = false,
89
+ maxAmount = 0,
90
+ minAmount = 0,
91
+ minSpend,
92
+ price,
93
+ } = product;
77
94
 
78
- const { quantity = 0 } = value;
95
+ 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
+
105
+ if (!value) return true;
79
106
 
80
- if (!quantity && !isRequired) {
107
+ if (!currentQuantity && !isRequired) {
81
108
  return true;
82
109
  }
83
110
 
84
- if (!quantity && isRequired) {
111
+ if (!currentQuantity && isRequired) {
85
112
  return t("Design:pleaseSelectAtLeastFrom", {
86
113
  min: 1,
87
114
  type: "item",
@@ -89,14 +116,18 @@ export const CategoryProduct = ({
89
116
  }) as string;
90
117
  }
91
118
 
92
- if (quantity < minAmount) {
119
+ if (currentQuantity < minAmount) {
93
120
  return t("Validation:fieldMinNumber", {
94
121
  min: product.minAmount,
95
122
  attribute: product.name,
96
123
  }) as string;
97
124
  }
98
125
 
99
- if (maxAmount && quantity >= minAmount && maxAmount < quantity) {
126
+ if (
127
+ maxAmount &&
128
+ currentQuantity >= minAmount &&
129
+ maxAmount < currentQuantity
130
+ ) {
100
131
  return t("Validation:quantityMaxNumber", {
101
132
  max: product.maxAmount,
102
133
  }) as string;
@@ -136,7 +167,10 @@ export const CategoryProduct = ({
136
167
  productInfo={productInfo}
137
168
  ref={ref}
138
169
  clearErrors={clearErrors}
139
- product={product}
170
+ product={{
171
+ ...product,
172
+ isSoldOut: product?.isSoldOut || checkIfSoldOutProduct(),
173
+ }}
140
174
  category={category}
141
175
  invalid={invalid}
142
176
  deposit={deposit}
@@ -10,6 +10,7 @@ interface NumberInputProps {
10
10
  onArrowDown?: (value: number) => void;
11
11
  min?: number;
12
12
  max?: number;
13
+ placeholder?: string;
13
14
  defaultValue?: number;
14
15
  disabled?: boolean;
15
16
  }
@@ -24,6 +25,7 @@ export const NumberInput = forwardRef<HTMLInputElement, NumberInputProps>(
24
25
  onArrowUp,
25
26
  min,
26
27
  max,
28
+ placeholder,
27
29
  defaultValue,
28
30
  disabled,
29
31
  },
@@ -66,6 +68,7 @@ export const NumberInput = forwardRef<HTMLInputElement, NumberInputProps>(
66
68
  min={min}
67
69
  max={max}
68
70
  defaultValue={defaultValue}
71
+ placeholder={placeholder}
69
72
  height="5rem"
70
73
  disabled={disabled}
71
74
  ref={ref}
@@ -83,7 +83,7 @@ export const ProductQuantityInput = ({
83
83
  deposit,
84
84
  price: product.price,
85
85
  productsCategoryId: category.id,
86
- quantity: val,
86
+ quantity: val || null,
87
87
  });
88
88
  clearErrors(`${product.id}` as const);
89
89
  }}
@@ -110,8 +110,9 @@ export const ProductQuantityInput = ({
110
110
  clearErrors(`${product.id}` as const);
111
111
  }}
112
112
  min={0}
113
+ placeholder="0"
113
114
  disabled={product.isSoldOut}
114
- value={productInfo?.quantity || 0}
115
+ value={productInfo?.quantity}
115
116
  className={clsx(invalid && "error")}
116
117
  />
117
118
  );
@@ -32,6 +32,7 @@ export interface StepsFormProps {
32
32
  setFormErrors?: (errors: Record<string, any>) => void;
33
33
  id?: string;
34
34
  productsWithErrors?: ProductQuantityCheckResponse["products"];
35
+ soldOutProducts?: ProductQuantityCheckResponse["products"];
35
36
  }
36
37
 
37
38
  export type StepsFormRef = {
@@ -49,6 +50,7 @@ export const StepsForm = forwardRef<StepsFormRef, StepsFormProps>(
49
50
  setFormErrors,
50
51
  id = STEP_FORM_ID,
51
52
  productsWithErrors,
53
+ soldOutProducts,
52
54
  },
53
55
  ref
54
56
  ) => {
@@ -150,6 +152,7 @@ export const StepsForm = forwardRef<StepsFormRef, StepsFormProps>(
150
152
  productCategories={step?.productCategories}
151
153
  productsWithErrors={productsWithErrors}
152
154
  errors={errors}
155
+ soldOutProducts={soldOutProducts}
153
156
  />
154
157
 
155
158
  {errors[NO_ORDER_ITEMS_ERROR] && (
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
2
  import { Meta } from "@storybook/react";
3
3
  import { boolean } from "@storybook/addon-knobs";
4
+ import { ORDER_FEE_CHARGE_TYPE_CLIENT } from "@licklist/core/dist/DataMapper/Order/OrderDataMapper";
4
5
  import { OrderItemsTable } from "./OrderItemsTable";
5
6
 
6
7
  export default {
@@ -24,6 +25,7 @@ export function Default(args) {
24
25
 
25
26
  Default.args = {
26
27
  order: {
28
+ feeChargeType: ORDER_FEE_CHARGE_TYPE_CLIENT,
27
29
  products: [
28
30
  {
29
31
  id: 1,
@@ -20,7 +20,7 @@ import {
20
20
  import { OrderItemsTableProps, SummaryItem } from "../types";
21
21
 
22
22
  const CURRENCY_DEFAULT = "GBP";
23
- const TRANSLATE_KEYS = {
23
+ export const PAYMENT_TYPE_TRANSLATE_KEYS = {
24
24
  [PAYMENT_TYPE_NET_PROFIT]: "netAmount",
25
25
  [PAYMENT_TYPE_FEE]: "bookeditFee",
26
26
  [PAYMENT_TYPE_VAT]: "vat",
@@ -128,7 +128,11 @@ export const useTableData = ({
128
128
  };
129
129
 
130
130
  const paymentNotProcessedSummary = () => {
131
- const total = calculateTotalPrice(order.orderProducts);
131
+ const externalPaymentDetail = paymentDetail
132
+ ? getExternalPaymentDetail(paymentDetail)
133
+ : undefined;
134
+
135
+ const total = calculateTotalPrice(order, externalPaymentDetail);
132
136
 
133
137
  const summaryItems: SummaryItem[] = [
134
138
  {
@@ -144,7 +148,7 @@ export const useTableData = ({
144
148
  });
145
149
  }
146
150
 
147
- if (paymentDetail) {
151
+ if (externalPaymentDetail) {
148
152
  return [...summaryItems, ...getExternalPaymentDetail(paymentDetail)];
149
153
  }
150
154
 
@@ -152,7 +156,18 @@ export const useTableData = ({
152
156
  };
153
157
 
154
158
  const processedPaymentSummary = () => {
155
- const total = calculateTotalPrice(order.orderProducts);
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
+
156
171
  const totalDiscount = calculateTotalDiscount(order.payments);
157
172
  const totalWithDiscount = total - Number(totalDiscount);
158
173
  let summaryItems: SummaryItem[] = [
@@ -170,7 +185,7 @@ export const useTableData = ({
170
185
  }
171
186
 
172
187
  if (paymentDetail && !order.payments.length) {
173
- return [...summaryItems, ...getExternalPaymentDetail(paymentDetail)];
188
+ return [...summaryItems, ...externalPaymentDetail];
174
189
  }
175
190
 
176
191
  summaryItems.push({
@@ -180,15 +195,7 @@ export const useTableData = ({
180
195
  if (totalWithDiscount <= 0) {
181
196
  return summaryItems;
182
197
  }
183
- summaryItems = [
184
- ...summaryItems,
185
- ...Object.keys(TRANSLATE_KEYS).map((key) => {
186
- return {
187
- translateKey: TRANSLATE_KEYS[key],
188
- price: getPaymentValueByType(order.payments, key),
189
- };
190
- }),
191
- ];
198
+ summaryItems = [...summaryItems, ...externalPaymentDetail];
192
199
 
193
200
  if (totalWithDiscount > order.totalAmount) {
194
201
  summaryItems.push({
@@ -1,13 +1,16 @@
1
- import { Order } from "@licklist/core/dist/DataMapper/Order/OrderDataMapper";
1
+ import {
2
+ Order,
3
+ ORDER_FEE_CHARGE_TYPE_CLIENT,
4
+ } from "@licklist/core/dist/DataMapper/Order/OrderDataMapper";
2
5
  import { Product } from "@licklist/core/dist/DataMapper/Product/ProductDataMapper";
3
6
  import { PAYMENT_TYPE_DISCOUNT } from "@licklist/core/dist/DataMapper/Order/PaymentDataMapper";
4
7
  import { PaymentDetail } from "@licklist/core/dist/DataMapper/Order/PaymentDetailDataMapper";
8
+ import { PAYMENT_TYPE_TRANSLATE_KEYS } from "../hooks/useTableData";
5
9
 
6
10
  const TRANSLATE_KEYS = {
7
11
  totalAmount: "totalPaid",
8
12
  netAmount: "netAmount",
9
13
  fee: "bookeditFee",
10
- remainingToPay: "remainingToPay",
11
14
  };
12
15
 
13
16
  export enum PAYMENT_TYPE_TITLES {
@@ -16,14 +19,35 @@ export enum PAYMENT_TYPE_TITLES {
16
19
  VAT = "VAT",
17
20
  }
18
21
 
19
- export const calculateTotalPrice = (orderProducts: Order["orderProducts"]) => {
20
- return (
21
- orderProducts?.reduce(
22
+ interface ExternalPaymnetDetail {
23
+ translateKey: string;
24
+ price: number;
25
+ }
26
+
27
+ export const calculateTotalPrice = (
28
+ order: Order,
29
+ externalPaymentDetails?: ExternalPaymnetDetail[]
30
+ ) => {
31
+ const totalPrice =
32
+ order?.orderProducts?.reduce(
22
33
  (total: number, product) =>
23
34
  total + (product?.quantity ?? 1) * product.price,
24
35
  0
25
- ) ?? 0
26
- );
36
+ ) ?? 0;
37
+
38
+ if (
39
+ order?.feeChargeType !== ORDER_FEE_CHARGE_TYPE_CLIENT ||
40
+ !externalPaymentDetails
41
+ ) {
42
+ return totalPrice;
43
+ }
44
+
45
+ const fee =
46
+ externalPaymentDetails.find(
47
+ (externalPayment) =>
48
+ externalPayment.translateKey === PAYMENT_TYPE_TRANSLATE_KEYS.fee
49
+ )?.price || 0;
50
+ return totalPrice + fee;
27
51
  };
28
52
 
29
53
  export const calculateTotalDiscount = (payments: Order["payments"]) => {
@@ -51,21 +75,37 @@ export const getProductQuantityAndPrice = (
51
75
  export const getPaymentValueByType = (
52
76
  payments: Order["payments"],
53
77
  paymentTypeTitle: string
54
- ) => {
78
+ ): number => {
79
+ if (!payments || !payments.length) {
80
+ return 0;
81
+ }
55
82
  if (paymentTypeTitle === PAYMENT_TYPE_TITLES.FEE) {
56
83
  const feeWithoutVatValue =
57
- payments.find((payment) => payment.paymentType.title === paymentTypeTitle)
58
- ?.amount ?? 0;
84
+ payments?.reduce((sumOfPayments, payment) => {
85
+ if (payment.paymentType.title !== PAYMENT_TYPE_TITLES.FEE) {
86
+ return sumOfPayments;
87
+ }
88
+
89
+ return sumOfPayments + (payment?.amount ?? 0);
90
+ }, 0) ?? 0;
59
91
 
60
92
  const vatValue =
61
- payments.find(
62
- (payment) => payment.paymentType.title === PAYMENT_TYPE_TITLES.VAT
63
- )?.amount ?? 0;
93
+ payments?.reduce((sumOfPayments, payment) => {
94
+ if (payment.paymentType.title !== PAYMENT_TYPE_TITLES.VAT) {
95
+ return sumOfPayments;
96
+ }
97
+ return sumOfPayments + (payment?.amount ?? 0);
98
+ }, 0) ?? 0;
64
99
  return feeWithoutVatValue + vatValue;
65
100
  }
101
+
66
102
  return (
67
- payments.find((payment) => payment.paymentType.title === paymentTypeTitle)
68
- ?.amount ?? 0
103
+ payments?.reduce((sumOfPayments, payment) => {
104
+ if (payment.paymentType.title !== paymentTypeTitle) {
105
+ return sumOfPayments;
106
+ }
107
+ return sumOfPayments + (payment?.amount ?? 0);
108
+ }, 0) ?? 0
69
109
  );
70
110
  };
71
111
 
@@ -15,6 +15,7 @@ import {
15
15
  import { PaymentTimer } from "./PaymentTimer";
16
16
  import { Page, PageBody, PageHeader } from "../../page";
17
17
  import { BookingSummary, BookingSummaryFooter } from "../../order-process";
18
+ import { cartSumByOrderProducts } from "../../order-process/components/BookingSummary/utils";
18
19
 
19
20
  export interface PaymentMetadata {
20
21
  total: number;
@@ -99,6 +100,19 @@ export const PaymentPage = ({
99
100
  );
100
101
  }
101
102
 
103
+ const orderTotalAmounByFormValues = cartSumByOrderProducts(
104
+ bookingSummaryProps && bookingSummaryProps?.formValues
105
+ ? Object.values(bookingSummaryProps?.formValues)
106
+ : undefined
107
+ );
108
+
109
+ // User can fill promocode only in iframe appcliation.
110
+ // It didn't possible via payment link. This check will
111
+ // be applied when there are no metadata and in case when
112
+ // orderValues sum is greater than amount in order.
113
+ const isCalculatedAmountGreaterThanOrderAmount =
114
+ orderTotalAmounByFormValues > data?.amount;
115
+
102
116
  return (
103
117
  <Page
104
118
  className="payment_link"
@@ -127,7 +141,7 @@ export const PaymentPage = ({
127
141
  bottomBlock={
128
142
  <BookingSummaryFooter showButton={false}>
129
143
  <div className="d-flex flex-column justify-content-between">
130
- {paymentMetadata && (
144
+ {paymentMetadata ? (
131
145
  <>
132
146
  <SummaryTotalBlock
133
147
  label={t("total")}
@@ -137,12 +151,38 @@ export const PaymentPage = ({
137
151
  label={t("paidSum")}
138
152
  amount={paymentMetadata.paid || 0}
139
153
  />
154
+ <SummaryTotalBlock
155
+ label={t("remaining")}
156
+ amount={
157
+ paymentMetadata.total - paymentMetadata.paid || 0
158
+ }
159
+ />
160
+ </>
161
+ ) : (
162
+ <>
163
+ {isCalculatedAmountGreaterThanOrderAmount && (
164
+ <SummaryTotalBlock
165
+ label={t("total")}
166
+ amount={
167
+ orderTotalAmounByFormValues +
168
+ (bookingSummaryProps?.transactionFee || 0)
169
+ }
170
+ />
171
+ )}
172
+
173
+ <SummaryTotalBlock
174
+ label={t(
175
+ isCalculatedAmountGreaterThanOrderAmount
176
+ ? "totalWithDiscount"
177
+ : "total"
178
+ )}
179
+ amount={
180
+ data?.amount +
181
+ (bookingSummaryProps?.transactionFee || 0)
182
+ }
183
+ />
140
184
  </>
141
185
  )}
142
- <SummaryTotalBlock
143
- label={t(paymentMetadata ? "remaining" : "total")}
144
- amount={data?.amount || 0}
145
- />
146
186
  </div>
147
187
  </BookingSummaryFooter>
148
188
  }
@@ -9,6 +9,8 @@ import { BookingSummary, BookingSummaryFooter } from "../../order-process";
9
9
  import { PaymentStatusHeader } from "../payment-status-header/PaymentStatusHeader";
10
10
  import { SummaryTotalBlock } from "../../order-process/components/BookingSummary/components/SummaryTotal";
11
11
  import { BookingSummaryProps } from "../../order-process/components/BookingSummary/types";
12
+ import { PaymentMetadata } from "../payment-page/PaymentPage";
13
+ import { cartSumByOrderProducts } from "../../order-process/components/BookingSummary/utils";
12
14
 
13
15
  export const ORDER_STATUS_FAILED = "failed";
14
16
  export const ORDER_STATUS_SUCCESS = "success";
@@ -23,7 +25,6 @@ interface PaymentStatusComponentProps {
23
25
  onCloseWindow: () => void;
24
26
  onBack?: () => void;
25
27
  onTryAgain?: () => void;
26
- totalAmount?: number;
27
28
  isLoading?: boolean;
28
29
  status: OrderStatusPrefix;
29
30
  isAppUsingInIframe?: boolean;
@@ -31,6 +32,8 @@ interface PaymentStatusComponentProps {
31
32
  EventCardComponent?: ReactNode;
32
33
  showCloseButton?: boolean;
33
34
  email?: string;
35
+ totalAmount?: number;
36
+ paymentMetadata?: PaymentMetadata;
34
37
  }
35
38
 
36
39
  // @TODO In future think, how to reuse this component in Iframe Pending, Success and Failed Pages
@@ -38,7 +41,6 @@ export const PaymentStatusPage = ({
38
41
  onCloseWindow,
39
42
  onBack,
40
43
  onTryAgain,
41
- totalAmount,
42
44
  isLoading,
43
45
  status,
44
46
  isAppUsingInIframe,
@@ -46,6 +48,8 @@ export const PaymentStatusPage = ({
46
48
  EventCardComponent,
47
49
  showCloseButton = false,
48
50
  email,
51
+ totalAmount = 0,
52
+ paymentMetadata,
49
53
  }: PaymentStatusComponentProps) => {
50
54
  const { t } = useTranslation("Design");
51
55
 
@@ -65,6 +69,22 @@ export const PaymentStatusPage = ({
65
69
  if (isLoading) {
66
70
  return <LoaderIndicator isLoaded={false} />;
67
71
  }
72
+
73
+ const orderTotalAmounByFormValues = cartSumByOrderProducts(
74
+ bookingSummaryProps && bookingSummaryProps?.formValues
75
+ ? Object.values(bookingSummaryProps?.formValues)
76
+ : undefined
77
+ );
78
+
79
+ // User can fill promocode only in iframe appcliation.
80
+ // It didn't possible via payment link. This check will
81
+ // be applied when there are no metadata and in case when
82
+ // orderValues sum is greater than amount in order.
83
+ // For payment status page booking summary props can be empty
84
+ // so we should also check for them
85
+ const isCalculatedAmountGreaterThanOrderAmount =
86
+ bookingSummaryProps && orderTotalAmounByFormValues > totalAmount;
87
+
68
88
  return (
69
89
  <Page
70
90
  className="payment-status-page"
@@ -98,16 +118,50 @@ export const PaymentStatusPage = ({
98
118
  <PageBody.RightBlock
99
119
  bottomBlock={
100
120
  <BookingSummaryFooter showButton={false}>
101
- {bookingSummaryProps?.formValues ? (
102
- <BookingSummary.SummaryTotal
103
- formValues={bookingSummaryProps?.formValues}
104
- />
105
- ) : (
106
- <SummaryTotalBlock
107
- label={t("total")}
108
- amount={totalAmount || 0}
109
- />
110
- )}
121
+ <div className="d-flex flex-column justify-content-between">
122
+ {paymentMetadata ? (
123
+ <>
124
+ <SummaryTotalBlock
125
+ label={t("total")}
126
+ amount={paymentMetadata.total || 0}
127
+ />
128
+ <SummaryTotalBlock
129
+ label={t("paidSum")}
130
+ amount={paymentMetadata.paid || 0}
131
+ />
132
+ <SummaryTotalBlock
133
+ label={t("remaining")}
134
+ amount={
135
+ paymentMetadata.total - paymentMetadata.paid || 0
136
+ }
137
+ />
138
+ </>
139
+ ) : (
140
+ <>
141
+ {isCalculatedAmountGreaterThanOrderAmount && (
142
+ <SummaryTotalBlock
143
+ label={t("total")}
144
+ amount={
145
+ orderTotalAmounByFormValues +
146
+ (bookingSummaryProps?.transactionFee || 0)
147
+ }
148
+ />
149
+ )}
150
+
151
+ <SummaryTotalBlock
152
+ label={t(
153
+ isCalculatedAmountGreaterThanOrderAmount
154
+ ? "totalWithDiscount"
155
+ : "total"
156
+ )}
157
+ amount={
158
+ totalAmount +
159
+ (bookingSummaryProps?.transactionFee || 0)
160
+ }
161
+ />
162
+ </>
163
+ )}
164
+ </div>
111
165
  </BookingSummaryFooter>
112
166
  }
113
167
  >
package/src/index.ts CHANGED
@@ -33,3 +33,4 @@ export * from "./zone";
33
33
  export * from "./resource";
34
34
  export * from "./virtualized";
35
35
  export * from "./customers";
36
+ export * from "./striped-static-table";