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

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 (529) 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/notification/email-template/card/EmailTemplateCard.d.ts +3 -1
  192. package/dist/notification/email-template/card/EmailTemplateCard.d.ts.map +1 -1
  193. package/dist/notification/email-template/card/EmailTemplateCard.js +1 -1
  194. package/dist/notification/email-template/control/EmailTemplateControl.d.ts +3 -0
  195. package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
  196. package/dist/notification/email-template/control/EmailTemplateControl.js +1 -1
  197. package/dist/notification/email-template/form/EmailTemplateForm.d.ts +6 -1
  198. package/dist/notification/email-template/form/EmailTemplateForm.d.ts.map +1 -1
  199. package/dist/notification/email-template/form/EmailTemplateForm.js +1 -1
  200. package/dist/notification/sms-template/card/SmsTemplateCard.d.ts +3 -1
  201. package/dist/notification/sms-template/card/SmsTemplateCard.d.ts.map +1 -1
  202. package/dist/notification/sms-template/card/SmsTemplateCard.js +1 -1
  203. package/dist/notification/sms-template/control/SmsTemplateControl.d.ts +6 -1
  204. package/dist/notification/sms-template/control/SmsTemplateControl.d.ts.map +1 -1
  205. package/dist/notification/sms-template/control/SmsTemplateControl.js +1 -1
  206. package/dist/notification/sms-template/form/SmsTemplateForm.d.ts +4 -1
  207. package/dist/notification/sms-template/form/SmsTemplateForm.d.ts.map +1 -1
  208. package/dist/notification/sms-template/form/SmsTemplateForm.js +1 -1
  209. package/dist/product-set/control/ProductSetControl.d.ts +15 -4
  210. package/dist/product-set/control/ProductSetControl.d.ts.map +1 -1
  211. package/dist/product-set/control/ProductSetControl.js +1 -1
  212. package/dist/product-set/deposit-paid/ProductSetDepositPaidControl.d.ts +3 -3
  213. package/dist/product-set/deposit-paid/ProductSetDepositPaidControl.d.ts.map +1 -1
  214. package/dist/product-set/elements/DeleteFieldButton.d.ts +1 -1
  215. package/dist/product-set/elements/DeleteFieldButton.d.ts.map +1 -1
  216. package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
  217. package/dist/product-set/form/ProductSetForm.js +1 -1
  218. package/dist/product-set/form/ProductsControl.d.ts.map +1 -1
  219. package/dist/product-set/form/ProductsControl.js +1 -1
  220. package/dist/product-set/form/StepsControl.d.ts.map +1 -1
  221. package/dist/product-set/form/StepsControl.js +1 -1
  222. package/dist/product-set/form/VenueMapSetModal.d.ts +1 -1
  223. package/dist/product-set/form/VenueMapSetModal.d.ts.map +1 -1
  224. package/dist/product-set/form/VenueMapsControl.d.ts +1 -1
  225. package/dist/product-set/form/VenueMapsControl.d.ts.map +1 -1
  226. package/dist/product-set/form/context.d.ts +1 -1
  227. package/dist/product-set/form/context.d.ts.map +1 -1
  228. package/dist/product-set/popover/ProductSetPopover.d.ts +1 -1
  229. package/dist/product-set/popover/ProductSetPopover.d.ts.map +1 -1
  230. package/dist/product-set/product/ProductControl.d.ts +1 -0
  231. package/dist/product-set/product/ProductControl.d.ts.map +1 -1
  232. package/dist/product-set/product/ProductControl.js +1 -1
  233. package/dist/product-set/product/fixed-duration-fields/FixedDurationOptions.d.ts +1 -1
  234. package/dist/product-set/product/fixed-duration-fields/FixedDurationOptions.d.ts.map +1 -1
  235. package/dist/product-set/product/price/ProductPriceControl.d.ts +7 -3
  236. package/dist/product-set/product/price/ProductPriceControl.d.ts.map +1 -1
  237. package/dist/product-set/product/price/ProductPriceControl.js +1 -1
  238. package/dist/product-set/tabs/ProductSetTab.d.ts +1 -1
  239. package/dist/product-set/tabs/ProductSetTab.d.ts.map +1 -1
  240. package/dist/product-set/tabs/ProductSetTabs.d.ts +1 -1
  241. package/dist/product-set/tabs/ProductSetTabs.d.ts.map +1 -1
  242. package/dist/product-set/types/index.d.ts +5 -5
  243. package/dist/product-set/types/index.d.ts.map +1 -1
  244. package/dist/product-set/utils/index.d.ts +4 -0
  245. package/dist/product-set/utils/index.d.ts.map +1 -1
  246. package/dist/product-set/utils/index.js +1 -1
  247. package/dist/provider/categories-input/CategoriesInput.d.ts +1 -1
  248. package/dist/provider/categories-input/CategoriesInput.d.ts.map +1 -1
  249. package/dist/provider/categories-input/CategoriesInputDescription.d.ts +1 -1
  250. package/dist/provider/categories-input/CategoriesInputDescription.d.ts.map +1 -1
  251. package/dist/provider/categories-input/index.d.ts +1 -1
  252. package/dist/provider/categories-input/index.d.ts.map +1 -1
  253. package/dist/provider/company/user-form/UserForm.d.ts +2 -2
  254. package/dist/provider/company/user-form/UserForm.d.ts.map +1 -1
  255. package/dist/provider/location-input/index.d.ts +1 -1
  256. package/dist/provider/location-input/index.d.ts.map +1 -1
  257. package/dist/provider/provider-details-input/ProviderDetailsInput.d.ts +2 -2
  258. package/dist/provider/provider-details-input/ProviderDetailsInput.d.ts.map +1 -1
  259. package/dist/provider/provider-details-input/ProviderDetailsInput.js +1 -1
  260. package/dist/provider/provider-form/ProviderForm.d.ts +1 -1
  261. package/dist/provider/provider-form/ProviderForm.d.ts.map +1 -1
  262. package/dist/provider/provider-links-input/ProviderLinksInput.d.ts +2 -2
  263. package/dist/provider/provider-links-input/ProviderLinksInput.d.ts.map +1 -1
  264. package/dist/provider/resources-blocking-modal/ResourcesBlockingModal.d.ts +1 -1
  265. package/dist/provider/resources-blocking-modal/ResourcesBlockingModal.d.ts.map +1 -1
  266. package/dist/provider/venue-form/VenueForm.d.ts +1 -1
  267. package/dist/provider/venue-form/VenueForm.d.ts.map +1 -1
  268. package/dist/provider/working-hours-input/index.d.ts +1 -1
  269. package/dist/provider/working-hours-input/index.d.ts.map +1 -1
  270. package/dist/recurrence-input/utils.d.ts +2 -2
  271. package/dist/recurrence-input/utils.d.ts.map +1 -1
  272. package/dist/recurring-date-picker-input/RecurringDatePickerInput.js +1 -1
  273. package/dist/recurring-date-picker-input/utils.d.ts +2 -2
  274. package/dist/recurring-date-picker-input/utils.d.ts.map +1 -1
  275. package/dist/resource/form/ResourceForm.d.ts +2 -2
  276. package/dist/resource/form/ResourceForm.d.ts.map +1 -1
  277. package/dist/resource/form/components/CapacityControl.d.ts +1 -1
  278. package/dist/resource/form/components/CapacityControl.d.ts.map +1 -1
  279. package/dist/resource/form/components/NameControl.d.ts +1 -1
  280. package/dist/resource/form/components/NameControl.d.ts.map +1 -1
  281. package/dist/resource/form/components/SortControl.d.ts +1 -1
  282. package/dist/resource/form/components/SortControl.d.ts.map +1 -1
  283. package/dist/resource/form/components/ZoneControl.d.ts +1 -1
  284. package/dist/resource/form/components/ZoneControl.d.ts.map +1 -1
  285. package/dist/sales/booking/filter/BookingFilter.d.ts +1 -1
  286. package/dist/sales/booking/filter/BookingFilter.d.ts.map +1 -1
  287. package/dist/sales/booking/filter/components/AdditionalFIlterSection.d.ts +1 -1
  288. package/dist/sales/booking/filter/components/AdditionalFIlterSection.d.ts.map +1 -1
  289. package/dist/sales/booking/filter/components/AdditionalFIlterSection.js +1 -1
  290. package/dist/sales/booking/filter/components/MainFilterSection.d.ts +1 -1
  291. package/dist/sales/booking/filter/components/MainFilterSection.d.ts.map +1 -1
  292. package/dist/sales/booking/filter/components/ResultTagButton.d.ts +1 -1
  293. package/dist/sales/booking/filter/components/ResultTagButton.d.ts.map +1 -1
  294. package/dist/sales/booking/results/BookingResults.d.ts +1 -1
  295. package/dist/sales/booking/results/BookingResults.d.ts.map +1 -1
  296. package/dist/sales/booking/results/components/ResultCard.d.ts +1 -1
  297. package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
  298. package/dist/sales/booking/tabs/BookingTabs.d.ts +1 -1
  299. package/dist/sales/booking/tabs/BookingTabs.d.ts.map +1 -1
  300. package/dist/sales/filters/SaleFilters.d.ts +1 -2
  301. package/dist/sales/filters/SaleFilters.d.ts.map +1 -1
  302. package/dist/sales/guest-profile/previous-bookings/PreviousBookings.d.ts +4 -3
  303. package/dist/sales/guest-profile/previous-bookings/PreviousBookings.d.ts.map +1 -1
  304. package/dist/sales/guest-profile/previous-bookings/PreviousBookings.js +1 -1
  305. package/dist/sales/guest-profile/profile/Profile.d.ts +1 -1
  306. package/dist/sales/guest-profile/profile/Profile.d.ts.map +1 -1
  307. package/dist/sales/guest-profile/profile/components/ImageHolder/ImageHolder.d.ts +1 -1
  308. package/dist/sales/guest-profile/profile/components/ImageHolder/ImageHolder.d.ts.map +1 -1
  309. package/dist/sales/guest-profile/user-metrics/UserMetrics.d.ts +1 -1
  310. package/dist/sales/guest-profile/user-metrics/UserMetrics.d.ts.map +1 -1
  311. package/dist/sales/guest-profile/visited-providers/VisitedProviders.d.ts +1 -1
  312. package/dist/sales/guest-profile/visited-providers/VisitedProviders.d.ts.map +1 -1
  313. package/dist/sales/life-time-sales/LifeTimeSalesChart.d.ts +1 -1
  314. package/dist/sales/life-time-sales/LifeTimeSalesChart.d.ts.map +1 -1
  315. package/dist/sales/manual-booking/customer-info/CustomerInfo.d.ts +1 -1
  316. package/dist/sales/manual-booking/customer-info/CustomerInfo.d.ts.map +1 -1
  317. package/dist/sales/manual-booking/final-step/FinalStep.d.ts +1 -1
  318. package/dist/sales/manual-booking/final-step/FinalStep.d.ts.map +1 -1
  319. package/dist/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.d.ts +1 -1
  320. package/dist/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.d.ts.map +1 -1
  321. package/dist/sales/manual-booking/select-date-type-control/SelectDateTypeControl.d.ts +1 -1
  322. package/dist/sales/manual-booking/select-date-type-control/SelectDateTypeControl.d.ts.map +1 -1
  323. package/dist/sales/manual-booking/select-menu/SelectMenu.d.ts +1 -1
  324. package/dist/sales/manual-booking/select-menu/SelectMenu.d.ts.map +1 -1
  325. package/dist/sales/manual-booking/select-menu/SelectMenu.js +1 -1
  326. package/dist/sales/manual-booking/select-menu/components/MenuButton.d.ts +1 -1
  327. package/dist/sales/manual-booking/select-menu/components/MenuButton.d.ts.map +1 -1
  328. package/dist/sales/notes/NotesTable.d.ts +1 -1
  329. package/dist/sales/notes/NotesTable.d.ts.map +1 -1
  330. package/dist/sales/notes/NotesTableRow.d.ts +1 -1
  331. package/dist/sales/notes/NotesTableRow.d.ts.map +1 -1
  332. package/dist/sales/notes/note-form/NoteForm.d.ts +1 -1
  333. package/dist/sales/notes/note-form/NoteForm.d.ts.map +1 -1
  334. package/dist/sales/payment-form/SalePaymentForm.d.ts +2 -2
  335. package/dist/sales/payment-form/SalePaymentForm.d.ts.map +1 -1
  336. package/dist/sales/payment-form/components/RyftPayment/RyftPayment.d.ts +1 -1
  337. package/dist/sales/payment-form/components/RyftPayment/RyftPayment.d.ts.map +1 -1
  338. package/dist/sales/payment-form/types.d.ts +2 -2
  339. package/dist/sales/payment-form/types.d.ts.map +1 -1
  340. package/dist/sales/sales-and-views/SalesAndViewsChart.d.ts +1 -1
  341. package/dist/sales/sales-and-views/SalesAndViewsChart.d.ts.map +1 -1
  342. package/dist/setting/admin/AdminSettingForm.d.ts +1 -1
  343. package/dist/setting/admin/AdminSettingForm.d.ts.map +1 -1
  344. package/dist/setting/admin/PaymentFeeForm.d.ts +2 -2
  345. package/dist/setting/admin/PaymentFeeForm.d.ts.map +1 -1
  346. package/dist/setting/dashboard/DashboardSettingForm.d.ts +1 -1
  347. package/dist/setting/dashboard/DashboardSettingForm.d.ts.map +1 -1
  348. package/dist/setting/dashboard/EventSettingForm.d.ts +2 -2
  349. package/dist/setting/dashboard/EventSettingForm.d.ts.map +1 -1
  350. package/dist/setting/dashboard/FinancialDataForm.d.ts +2 -2
  351. package/dist/setting/dashboard/FinancialDataForm.d.ts.map +1 -1
  352. package/dist/setting/dashboard/OtherSettingForm.d.ts +2 -2
  353. package/dist/setting/dashboard/OtherSettingForm.d.ts.map +1 -1
  354. package/dist/setting/dashboard/ProviderSettingForm.d.ts +2 -2
  355. package/dist/setting/dashboard/ProviderSettingForm.d.ts.map +1 -1
  356. package/dist/setting/system/SystemSettingForm.d.ts +1 -1
  357. package/dist/setting/system/SystemSettingForm.d.ts.map +1 -1
  358. package/dist/snippet/snippet-template/context/snippetTemplate.d.ts +1 -1
  359. package/dist/snippet/snippet-template/context/snippetTemplate.d.ts.map +1 -1
  360. package/dist/sortable-list/SortableList.d.ts +4 -4
  361. package/dist/sortable-list/SortableList.d.ts.map +1 -1
  362. package/dist/sortable-tree/SortableTreeItem.d.ts +1 -1
  363. package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
  364. package/dist/static/Icon.d.ts +1 -1
  365. package/dist/static/Icon.d.ts.map +1 -1
  366. package/dist/static/date-range-input/DateRangeInput.d.ts +1 -1
  367. package/dist/static/date-range-input/DateRangeInput.d.ts.map +1 -1
  368. package/dist/static/images/DefaultUserImage.d.ts +1 -1
  369. package/dist/static/images/DefaultUserImage.d.ts.map +1 -1
  370. package/dist/static/loader/ButtonLoader.d.ts +1 -1
  371. package/dist/static/loader/ButtonLoader.d.ts.map +1 -1
  372. package/dist/static/loader/PaymentLoader.d.ts +1 -1
  373. package/dist/static/loader/PaymentLoader.d.ts.map +1 -1
  374. package/dist/static/manual-date-picker/ManualDatePicker.d.ts +1 -1
  375. package/dist/static/manual-date-picker/ManualDatePicker.d.ts.map +1 -1
  376. package/dist/static/manual-date-picker/hooks/useManualDatePicker.d.ts +2 -2
  377. package/dist/static/manual-date-picker/hooks/useManualDatePicker.d.ts.map +1 -1
  378. package/dist/static/tabs/Tab.d.ts +1 -1
  379. package/dist/static/tabs/Tab.d.ts.map +1 -1
  380. package/dist/static/tabs/Tabs.d.ts +1 -1
  381. package/dist/static/tabs/Tabs.d.ts.map +1 -1
  382. package/dist/striped-static-table/StripedStaticTable.d.ts +7 -0
  383. package/dist/striped-static-table/StripedStaticTable.d.ts.map +1 -0
  384. package/dist/striped-static-table/StripedStaticTable.js +1 -0
  385. package/dist/striped-static-table/index.d.ts +2 -0
  386. package/dist/striped-static-table/index.d.ts.map +1 -0
  387. package/dist/styles/customers/Filter.scss +23 -4
  388. package/dist/styles/events/EventStatisticModal.scss +0 -37
  389. package/dist/styles/packages.scss +1 -0
  390. package/dist/styles/striped-static-table/_index.scss +33 -0
  391. package/dist/table/MenuButton.d.ts +1 -1
  392. package/dist/table/MenuButton.d.ts.map +1 -1
  393. package/dist/table/ReactTableHelperComponent.d.ts +2 -2
  394. package/dist/table/ReactTableHelperComponent.d.ts.map +1 -1
  395. package/dist/table/StaticTable.d.ts +3 -3
  396. package/dist/table/StaticTable.d.ts.map +1 -1
  397. package/dist/table/StaticTable.js +1 -1
  398. package/dist/table/types.d.ts +5 -5
  399. package/dist/table/types.d.ts.map +1 -1
  400. package/dist/tiptap-editor/TipTapMenu/extensions/EMOJIS.d.ts +1 -1
  401. package/dist/tiptap-editor/TipTapMenu/extensions/EMOJIS.d.ts.map +1 -1
  402. package/dist/typeahead/Typeahead.d.ts +5 -12
  403. package/dist/typeahead/Typeahead.d.ts.map +1 -1
  404. package/dist/typeahead/Typeahead.js +1 -1
  405. package/dist/typeahead-helper/TypeaheadHelperComponent.d.ts +1 -1
  406. package/dist/typeahead-helper/TypeaheadHelperComponent.d.ts.map +1 -1
  407. package/dist/types/categories.d.ts +2 -2
  408. package/dist/types/categories.d.ts.map +1 -1
  409. package/dist/types/currency.d.ts +1 -1
  410. package/dist/types/currency.d.ts.map +1 -1
  411. package/dist/types/generic/SelectItem.d.ts +1 -1
  412. package/dist/types/generic/SelectItem.d.ts.map +1 -1
  413. package/dist/types/iframe.d.ts +4 -2
  414. package/dist/types/iframe.d.ts.map +1 -1
  415. package/dist/types/provider-links.d.ts +2 -2
  416. package/dist/types/provider-links.d.ts.map +1 -1
  417. package/dist/venue-map-sets/form/components/NameControl.d.ts +1 -1
  418. package/dist/venue-map-sets/form/components/NameControl.d.ts.map +1 -1
  419. package/dist/venue-map-sets/form/components/VenueMapControl.d.ts +4 -4
  420. package/dist/venue-map-sets/form/components/VenueMapControl.d.ts.map +1 -1
  421. package/dist/venue-map-sets/form/components/VenueMapImageControl.d.ts +1 -1
  422. package/dist/venue-map-sets/form/components/VenueMapImageControl.d.ts.map +1 -1
  423. package/dist/venue-map-sets/form/components/VenueMapModal.d.ts +1 -1
  424. package/dist/venue-map-sets/form/components/VenueMapModal.d.ts.map +1 -1
  425. package/dist/venue-map-sets/form/components/VenueMapsControl.d.ts +1 -1
  426. package/dist/venue-map-sets/form/components/VenueMapsControl.d.ts.map +1 -1
  427. package/dist/venue-map-sets/form/types/index.d.ts +4 -4
  428. package/dist/venue-map-sets/form/types/index.d.ts.map +1 -1
  429. package/dist/virtualized/components/VirtualizedGrid.d.ts +1 -1
  430. package/dist/virtualized/components/VirtualizedGrid.d.ts.map +1 -1
  431. package/dist/virtualized/components/VirtualizedWindowScroller.d.ts +3 -3
  432. package/dist/virtualized/components/VirtualizedWindowScroller.d.ts.map +1 -1
  433. package/dist/virtualized/context/VirtualizedContext.d.ts +2 -2
  434. package/dist/virtualized/context/VirtualizedContext.d.ts.map +1 -1
  435. package/dist/widgets/CheckboxGroup/CheckboxGroup.d.ts +1 -1
  436. package/dist/widgets/CheckboxGroup/CheckboxGroup.d.ts.map +1 -1
  437. package/dist/widgets/ImageRadioInput/ImageRadioInput.d.ts +1 -1
  438. package/dist/widgets/ImageRadioInput/ImageRadioInput.d.ts.map +1 -1
  439. package/dist/widgets/SnippetCode/SnippetCode.d.ts +1 -1
  440. package/dist/widgets/SnippetCode/SnippetCode.d.ts.map +1 -1
  441. package/dist/widgets/WidgetBuilderForm/WidgetBuilderForm.d.ts +1 -1
  442. package/dist/widgets/WidgetBuilderForm/WidgetBuilderForm.d.ts.map +1 -1
  443. package/dist/widgets/WidgetTypeRadio/WidgetTypeRadio.d.ts +1 -1
  444. package/dist/widgets/WidgetTypeRadio/WidgetTypeRadio.d.ts.map +1 -1
  445. package/dist/zone/form/ZoneForm.d.ts +2 -2
  446. package/dist/zone/form/ZoneForm.d.ts.map +1 -1
  447. package/dist/zone/form/components/AvailableTimesControl.d.ts +2 -2
  448. package/dist/zone/form/components/AvailableTimesControl.d.ts.map +1 -1
  449. package/dist/zone/form/components/DescriptionControl.d.ts +1 -1
  450. package/dist/zone/form/components/DescriptionControl.d.ts.map +1 -1
  451. package/dist/zone/form/components/NameControl.d.ts +1 -1
  452. package/dist/zone/form/components/NameControl.d.ts.map +1 -1
  453. package/dist/zone/form/components/SortControl.d.ts +1 -1
  454. package/dist/zone/form/components/SortControl.d.ts.map +1 -1
  455. package/dist/zone/form/components/ZoneControl.d.ts +1 -1
  456. package/dist/zone/form/components/ZoneControl.d.ts.map +1 -1
  457. package/dist/zone/form/components/ZoneImageControl.d.ts +1 -1
  458. package/dist/zone/form/components/ZoneImageControl.d.ts.map +1 -1
  459. package/dist/zone/form/components/ZoneRecurrencesControl.d.ts +1 -1
  460. package/dist/zone/form/components/ZoneRecurrencesControl.d.ts.map +1 -1
  461. package/dist/zone/form/components/ZoneTypeControl.d.ts +1 -1
  462. package/dist/zone/form/components/ZoneTypeControl.d.ts.map +1 -1
  463. package/package.json +4 -4
  464. package/src/customers/components/filter/CustomerFilter.stories.tsx +1 -2
  465. package/src/customers/components/filter/CustomerFilter.tsx +3 -5
  466. package/src/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.tsx +11 -2
  467. package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +5 -4
  468. package/src/events/event-statistic-modal/EventStatisticModal.tsx +1 -1
  469. package/src/events/event-venue-map/EventVenueMap.tsx +4 -0
  470. package/src/events/event-venue-map/components/MapPoint/components/ProductIcon/ProductIcon.tsx +13 -2
  471. package/src/events/event-venue-map/components/MapPoint/components/ProductTooltip/ProductTooltip.tsx +69 -0
  472. package/src/events/event-venue-map/components/MapPoint/components/ProductTooltip/index.ts +1 -0
  473. package/src/events/event-venue-map/components/VenueMap/VenueMap.tsx +12 -4
  474. package/src/iframe/event/event-card/IframeEventCard.tsx +1 -1
  475. package/src/iframe/event/event-order-short-summary/components/Summary/Summary.tsx +20 -20
  476. package/src/iframe/event/event-venue-map/IframeEventVenueMap.stories.tsx +5 -0
  477. package/src/iframe/order-process/OrderProcess.stories.tsx +1 -0
  478. package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +4 -1
  479. package/src/iframe/order-process/components/BookingSummary/types/index.ts +3 -3
  480. package/src/iframe/order-process/components/BookingSummary/utils/index.ts +6 -2
  481. package/src/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.stories.tsx +1 -0
  482. package/src/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.tsx +5 -0
  483. package/src/iframe/order-process/components/CalendarStepsForm/components/Category.tsx +4 -0
  484. package/src/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.tsx +4 -0
  485. package/src/iframe/order-process/components/Category/Category.tsx +3 -0
  486. package/src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx +42 -8
  487. package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +3 -0
  488. package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +3 -2
  489. package/src/iframe/order-process/components/StepsForm/StepsForm.tsx +3 -0
  490. package/src/iframe/payment/order-items-table/OrderItemsTable.stories.tsx +2 -0
  491. package/src/iframe/payment/order-items-table/hooks/useTableData.tsx +21 -14
  492. package/src/iframe/payment/order-items-table/utils/index.ts +55 -15
  493. package/src/iframe/payment/payment-page/PaymentPage.tsx +45 -5
  494. package/src/iframe/payment/payment-status-page/PaymentStatusPage.tsx +66 -12
  495. package/src/index.ts +1 -0
  496. package/src/notification/email-template/card/EmailTemplateCard.stories.tsx +1 -0
  497. package/src/notification/email-template/card/EmailTemplateCard.tsx +9 -2
  498. package/src/notification/email-template/control/EmailTemplateControl.tsx +61 -1
  499. package/src/notification/email-template/form/EmailTemplateForm.stories.tsx +21 -0
  500. package/src/notification/email-template/form/EmailTemplateForm.tsx +9 -1
  501. package/src/notification/sms-template/card/SmsTemplateCard.stories.tsx +1 -0
  502. package/src/notification/sms-template/card/SmsTemplateCard.tsx +7 -2
  503. package/src/notification/sms-template/control/SmsTemplateControl.tsx +36 -2
  504. package/src/notification/sms-template/form/SmsTemplateForm.stories.tsx +21 -0
  505. package/src/notification/sms-template/form/SmsTemplateForm.tsx +5 -1
  506. package/src/product-set/control/ProductSetControl.tsx +38 -33
  507. package/src/product-set/form/ProductSetForm.stories.tsx +41 -2
  508. package/src/product-set/form/ProductSetForm.tsx +11 -0
  509. package/src/product-set/form/ProductsControl.tsx +20 -1
  510. package/src/product-set/form/StepsControl.tsx +20 -2
  511. package/src/product-set/product/ProductControl.tsx +25 -10
  512. package/src/product-set/product/price/ProductPriceControl.tsx +43 -21
  513. package/src/product-set/utils/index.ts +28 -0
  514. package/src/provider/provider-details-input/ProviderDetailsInput.tsx +0 -2
  515. package/src/sales/filters/SaleFilters.tsx +1 -1
  516. package/src/sales/guest-profile/previous-bookings/PreviousBookings.stories.tsx +35 -5
  517. package/src/sales/guest-profile/previous-bookings/PreviousBookings.tsx +11 -3
  518. package/src/sales/manual-booking/select-menu/SelectMenu.tsx +3 -1
  519. package/src/striped-static-table/StripedStaticTable.stories.tsx +71 -0
  520. package/src/striped-static-table/StripedStaticTable.tsx +63 -0
  521. package/src/striped-static-table/index.ts +1 -0
  522. package/src/styles/customers/Filter.scss +23 -4
  523. package/src/styles/events/EventStatisticModal.scss +0 -37
  524. package/src/styles/packages.scss +1 -0
  525. package/src/styles/striped-static-table/_index.scss +33 -0
  526. package/src/table/StaticTable.tsx +4 -2
  527. package/src/typeahead/Typeahead.stories.tsx +9 -6
  528. package/src/typeahead/Typeahead.tsx +9 -12
  529. package/src/types/iframe.ts +2 -0
@@ -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";
@@ -18,4 +18,5 @@ Default.args = {
18
18
  subject: "Confirmation",
19
19
  hasPermission: true,
20
20
  isDefault: true,
21
+ templateType: "confirmation",
21
22
  };
@@ -2,7 +2,7 @@ import React from "react";
2
2
  import { Link } from "react-router-dom";
3
3
  import { HasPermissionProp } from "@licklist/plugins/dist/types/permission/Permission";
4
4
  import { useTranslation } from "react-i18next";
5
-
5
+ import { NotificationType } from "@licklist/core/dist/DataMapper/Notification/NotificationTypeDataMapper";
6
6
  import { ConfirmModal, ConfirmModalType } from "../../../modals";
7
7
  import { Icon } from "../../../static";
8
8
 
@@ -12,6 +12,7 @@ export interface EmailTemplateCardProps extends HasPermissionProp {
12
12
  href: string;
13
13
  isDefault: boolean;
14
14
  onRemove: () => void;
15
+ type: NotificationType;
15
16
  }
16
17
 
17
18
  export function EmailTemplateCard({
@@ -21,6 +22,7 @@ export function EmailTemplateCard({
21
22
  onRemove,
22
23
  isDefault = false,
23
24
  hasPermission = true,
25
+ type,
24
26
  }: EmailTemplateCardProps) {
25
27
  const { t } = useTranslation(["Design"]);
26
28
 
@@ -54,7 +56,12 @@ export function EmailTemplateCard({
54
56
  </div>
55
57
  <div className={`mt-${isDefault ? "3" : "4"}`}>
56
58
  {Boolean(isDefault) && <p className="mb-1">{t("Design:default")}</p>}
57
- <span>{subject}</span>
59
+ <div className="d-flex flex-column">
60
+ <span>{subject}</span>
61
+ <p>
62
+ {t(`Design:type`)}:&nbsp;{t(`Design:${type}`)}
63
+ </p>
64
+ </div>
58
65
  </div>
59
66
  </div>
60
67
  </>
@@ -1,4 +1,3 @@
1
- /* eslint-disable react/display-name */
2
1
  import React, { useState, useEffect } from "react";
3
2
  import { Col, Row, Form } from "react-bootstrap";
4
3
  import { useFormContext } from "react-hook-form";
@@ -16,6 +15,7 @@ import {
16
15
  PERMANENT_IMAGE_TYPE_TEMP,
17
16
  } from "@licklist/core/dist/DataMapper/Media/UploadPermanentImageDataMapper";
18
17
 
18
+ import { NotificationType } from "@licklist/core/dist/DataMapper/Notification/NotificationTypeDataMapper";
19
19
  import { FileUpload } from "../../../file-upload";
20
20
  import { EmailTemplateValues } from "../form";
21
21
 
@@ -26,6 +26,8 @@ export interface EmailTemplateControlProps {
26
26
  setIsLoading: (isLoading: boolean) => void;
27
27
  meta: string;
28
28
  defaultAttachments?: Attachment[];
29
+ notificationTypes?: NotificationType[];
30
+ getDefaultTemplateMetaByType?: (type?: NotificationType | null) => string;
29
31
  }
30
32
 
31
33
  export const EmailTemplateControl = React.forwardRef(
@@ -35,6 +37,8 @@ export const EmailTemplateControl = React.forwardRef(
35
37
  meta,
36
38
  options = [],
37
39
  defaultAttachments = [],
40
+ notificationTypes = [],
41
+ getDefaultTemplateMetaByType,
38
42
  }: EmailTemplateControlProps,
39
43
  ref: any
40
44
  ) => {
@@ -48,6 +52,8 @@ export const EmailTemplateControl = React.forwardRef(
48
52
  setValue,
49
53
  formState: { errors },
50
54
  getValues,
55
+ watch,
56
+ reset,
51
57
  } = useFormContext<EmailTemplateValues>();
52
58
  const [isIncludePDF, setIsIncludePDF] = useState(false);
53
59
 
@@ -64,6 +70,22 @@ export const EmailTemplateControl = React.forwardRef(
64
70
  handlePermanentImageUploading,
65
71
  } = usePermanentImage();
66
72
 
73
+ const type = watch("type");
74
+ const id = watch("id");
75
+
76
+ useEffect(() => {
77
+ if (id || !getDefaultTemplateMetaByType || !type) return;
78
+
79
+ const formValues = getValues();
80
+
81
+ const nextMeta = getDefaultTemplateMetaByType(type);
82
+
83
+ reset({ ...formValues, meta: nextMeta });
84
+
85
+ ref.current?.loadDesign(JSON.parse(nextMeta));
86
+ // eslint-disable-next-line react-hooks/exhaustive-deps
87
+ }, [type]);
88
+
67
89
  useEffect(() => {
68
90
  setValue("attachmentMetadata", attachments);
69
91
  }, [attachments, setValue]);
@@ -175,6 +197,42 @@ export const EmailTemplateControl = React.forwardRef(
175
197
 
176
198
  return (
177
199
  <>
200
+ <Row>
201
+ <Form.Group
202
+ as={Col}
203
+ controlId="type"
204
+ xs
205
+ sm={12}
206
+ md={8}
207
+ lg={10}
208
+ xl={12}
209
+ >
210
+ <Form.Label>{t("type")}</Form.Label>
211
+ <Form.Control
212
+ as="select"
213
+ {...register("type", {
214
+ required: t("Validation:fieldRequired", {
215
+ attribute: t("type"),
216
+ }) as string,
217
+ })}
218
+ name="type"
219
+ required
220
+ isInvalid={Boolean(errors.type)}
221
+ placeholder={t("Design:type")}
222
+ disabled={!!id}
223
+ >
224
+ <option value="">{t("Design:choose")}</option>
225
+ {notificationTypes.map((key) => (
226
+ <option key={key} value={key}>
227
+ {t(`Design:${key}`)}
228
+ </option>
229
+ ))}
230
+ </Form.Control>
231
+ <Form.Control.Feedback type="invalid">
232
+ {errors.type?.message}
233
+ </Form.Control.Feedback>
234
+ </Form.Group>
235
+ </Row>
178
236
  <Row>
179
237
  <Form.Group
180
238
  as={Col}
@@ -356,3 +414,5 @@ export const EmailTemplateControl = React.forwardRef(
356
414
  );
357
415
  }
358
416
  );
417
+
418
+ EmailTemplateControl.displayName = "EmailTemplateControl";
@@ -219,6 +219,13 @@ Default.args = {
219
219
  attachableType: "mail",
220
220
  },
221
221
  ],
222
+ type: "confirmation",
223
+ notificationTypes: [
224
+ "confirmation",
225
+ "paymentLink",
226
+ "afterBooking",
227
+ "preliminaryMail",
228
+ ],
222
229
  },
223
230
  };
224
231
 
@@ -248,10 +255,24 @@ ServerErrors.args = {
248
255
  body: "",
249
256
  meta: JSON.stringify(DefaultEmailTemplate),
250
257
  },
258
+ type: "confirmation",
259
+ notificationTypes: [
260
+ "confirmation",
261
+ "paymentLink",
262
+ "afterBooking",
263
+ "preliminaryMail",
264
+ ],
251
265
  };
252
266
 
253
267
  Empty.args = {
254
268
  onSubmit: (data) => console.log(data),
255
269
  isLoading: true,
256
270
  placeholders: [],
271
+ type: "confirmation",
272
+ notificationTypes: [
273
+ "confirmation",
274
+ "paymentLink",
275
+ "afterBooking",
276
+ "preliminaryMail",
277
+ ],
257
278
  };
@@ -13,12 +13,13 @@ import { ServerError } from "@licklist/plugins/dist/hooks/Api/useHttpQuery";
13
13
  import FormErrorService from "@licklist/plugins/dist/services/Form/FormErrorService";
14
14
  import { AttachmentsWithHash } from "@licklist/plugins/dist/hooks/Media/useAttachments";
15
15
  import { UploadPermanentImage } from "@licklist/core/dist/DataMapper/Media/UploadPermanentImageDataMapper";
16
-
16
+ import { NotificationType } from "@licklist/core/dist/DataMapper/Notification/NotificationTypeDataMapper";
17
17
  import { NotificationPlaceholders } from "../../components/NotificationPlaceholders";
18
18
  import { EmailTemplateControl } from "../control/EmailTemplateControl";
19
19
  import { BlockLoader } from "../../../static";
20
20
 
21
21
  export interface EmailTemplateValues extends FormValues {
22
+ id?: number | string;
22
23
  name: string;
23
24
  subject: string;
24
25
  isActive: boolean;
@@ -29,6 +30,7 @@ export interface EmailTemplateValues extends FormValues {
29
30
  attachments?: Attachment[];
30
31
  templateOptionValues?: TemplateOptionValue[];
31
32
  imagesMetadata?: UploadPermanentImage[];
33
+ type?: NotificationType;
32
34
  }
33
35
 
34
36
  export interface EmailTemplateProps extends HasPermissionProp {
@@ -39,6 +41,8 @@ export interface EmailTemplateProps extends HasPermissionProp {
39
41
  placeholders?: NotificationPlaceholder[];
40
42
  options?: TemplateOption[];
41
43
  serverErrors?: ServerError;
44
+ notificationTypes?: NotificationType[];
45
+ getDefaultTemplateMetaByType?: (type?: NotificationType | null) => string;
42
46
  }
43
47
 
44
48
  export function EmailTemplateForm({
@@ -49,6 +53,8 @@ export function EmailTemplateForm({
49
53
  placeholders = [],
50
54
  options = [],
51
55
  serverErrors,
56
+ notificationTypes = [],
57
+ getDefaultTemplateMetaByType,
52
58
  }: EmailTemplateProps) {
53
59
  const { t } = useTranslation("Design");
54
60
  const [isLoading, setIsLoading] = useState(false);
@@ -81,6 +87,8 @@ export function EmailTemplateForm({
81
87
  meta={defaultValues?.meta || null}
82
88
  defaultAttachments={defaultValues?.attachments || []}
83
89
  options={options}
90
+ notificationTypes={notificationTypes}
91
+ getDefaultTemplateMetaByType={getDefaultTemplateMetaByType}
84
92
  />
85
93
  <NotificationPlaceholders placeholders={placeholders} />
86
94
  {/* update email template */}
@@ -17,4 +17,5 @@ Default.args = {
17
17
  name: "Default Sms Template",
18
18
  hasPermission: true,
19
19
  isDefault: true,
20
+ templateType: "confirmation",
20
21
  };
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
2
  import { Link } from "react-router-dom";
3
- import { HasPermissionProp } from "@licklist/plugins/dist/types/permission/Permission";
4
3
  import { useTranslation } from "react-i18next";
5
-
4
+ import { HasPermissionProp } from "@licklist/plugins/dist/types/permission/Permission";
5
+ import { NotificationType } from "@licklist/core/dist/DataMapper/Notification/NotificationTypeDataMapper";
6
6
  import { ConfirmModal, ConfirmModalType } from "../../../modals";
7
7
  import { Icon } from "../../../static";
8
8
 
@@ -11,6 +11,7 @@ export interface SmsTemplateCardProps extends HasPermissionProp {
11
11
  href: string;
12
12
  onRemove: () => void;
13
13
  isDefault: boolean;
14
+ type: NotificationType;
14
15
  }
15
16
 
16
17
  export function SmsTemplateCard({
@@ -19,6 +20,7 @@ export function SmsTemplateCard({
19
20
  onRemove,
20
21
  hasPermission = true,
21
22
  isDefault = false,
23
+ type,
22
24
  }: SmsTemplateCardProps) {
23
25
  const { t } = useTranslation(["Design"]);
24
26
 
@@ -51,6 +53,9 @@ export function SmsTemplateCard({
51
53
  </div>
52
54
  <div className="mt-2">
53
55
  {Boolean(isDefault) && <p className="mb-1">{t("Design:default")}</p>}
56
+ <p>
57
+ {t(`Design:type`)}:&nbsp;{t(`Design:${type}`)}
58
+ </p>
54
59
  </div>
55
60
  </div>
56
61
  );
@@ -4,12 +4,18 @@ import { Col, Row, Form } from "react-bootstrap";
4
4
  import { useFormContext } from "react-hook-form";
5
5
  import { useTranslation } from "react-i18next";
6
6
  import HookFormService from "@licklist/plugins/dist/services/Form/HookFormService";
7
-
7
+ import { NotificationType } from "@licklist/core/dist/DataMapper/Notification/NotificationTypeDataMapper";
8
8
  import { SmsTemplateValues } from "../form";
9
9
 
10
10
  const MAX_SMS_LENGTH = 300;
11
11
 
12
- export const SmsTemplateControl = () => {
12
+ type SmsTemplateControlProps = {
13
+ notificationTypes: NotificationType[];
14
+ };
15
+
16
+ export const SmsTemplateControl = ({
17
+ notificationTypes = [],
18
+ }: SmsTemplateControlProps) => {
13
19
  const { t } = useTranslation(["Design"]);
14
20
  const {
15
21
  register,
@@ -23,6 +29,34 @@ export const SmsTemplateControl = () => {
23
29
 
24
30
  return (
25
31
  <>
32
+ <Row>
33
+ <Form.Group as={Col} controlId="type" xs sm={12} md={8} lg={10} xl={12}>
34
+ <Form.Label>{t("type")}</Form.Label>
35
+
36
+ <Form.Control
37
+ as="select"
38
+ {...register("type", {
39
+ required: t("Validation:fieldRequired", {
40
+ attribute: t("type"),
41
+ }) as string,
42
+ })}
43
+ name="type"
44
+ required
45
+ isInvalid={Boolean(errors.type)}
46
+ placeholder={t("Design:type")}
47
+ >
48
+ <option value="">{t("Design:choose")}</option>
49
+ {notificationTypes.map((key) => (
50
+ <option key={key} value={key}>
51
+ {t(`Design:${key}`)}
52
+ </option>
53
+ ))}
54
+ </Form.Control>
55
+ <Form.Control.Feedback type="invalid">
56
+ {errors.type?.message}
57
+ </Form.Control.Feedback>
58
+ </Form.Group>
59
+ </Row>
26
60
  <Row>
27
61
  <Form.Group
28
62
  as={Col}
@@ -38,12 +38,26 @@ Default.args = {
38
38
  isDefault: false,
39
39
  body: "Some random sms string",
40
40
  },
41
+ type: "confirmation",
42
+ notificationTypes: [
43
+ "confirmation",
44
+ "paymentLink",
45
+ "afterBooking",
46
+ "preliminaryMail",
47
+ ],
41
48
  };
42
49
 
43
50
  Empty.args = {
44
51
  onSubmit: (data) => console.log(data),
45
52
  isLoading: true,
46
53
  placeholders: [],
54
+ type: "confirmation",
55
+ notificationTypes: [
56
+ "confirmation",
57
+ "paymentLink",
58
+ "afterBooking",
59
+ "preliminaryMail",
60
+ ],
47
61
  };
48
62
 
49
63
  ServerErrors.args = {
@@ -54,4 +68,11 @@ ServerErrors.args = {
54
68
  body: ["Body field is required"],
55
69
  name: ["Name Field is required"],
56
70
  },
71
+ type: "confirmation",
72
+ notificationTypes: [
73
+ "confirmation",
74
+ "paymentLink",
75
+ "afterBooking",
76
+ "preliminaryMail",
77
+ ],
57
78
  };
@@ -8,6 +8,7 @@ import { NotificationPlaceholder } from "@licklist/core/dist/DataMapper/Notifica
8
8
  import { ServerError } from "@licklist/plugins/dist/hooks/Api/useHttpQuery";
9
9
  import FormErrorService from "@licklist/plugins/dist/services/Form/FormErrorService";
10
10
 
11
+ import { NotificationType } from "@licklist/core/dist/DataMapper/Notification/NotificationTypeDataMapper";
11
12
  import { NotificationPlaceholders } from "../../components/NotificationPlaceholders";
12
13
  import { SmsTemplateControl } from "../control/SmsTemplateControl";
13
14
 
@@ -16,6 +17,7 @@ export interface SmsTemplateValues extends FormValues {
16
17
  isActive: boolean;
17
18
  isDefault: boolean;
18
19
  body: string;
20
+ type?: NotificationType;
19
21
  }
20
22
 
21
23
  export interface SmsTemplateProps extends HasPermissionProp {
@@ -24,6 +26,7 @@ export interface SmsTemplateProps extends HasPermissionProp {
24
26
  defaultValues?: SmsTemplateValues;
25
27
  placeholders?: NotificationPlaceholder[];
26
28
  serverErrors?: ServerError;
29
+ notificationTypes?: NotificationType[];
27
30
  }
28
31
 
29
32
  export function SmsTemplateForm({
@@ -32,6 +35,7 @@ export function SmsTemplateForm({
32
35
  hasPermission = true,
33
36
  placeholders = [],
34
37
  serverErrors,
38
+ notificationTypes = [],
35
39
  }: SmsTemplateProps) {
36
40
  const { t } = useTranslation("Design");
37
41
 
@@ -46,7 +50,7 @@ export function SmsTemplateForm({
46
50
  return (
47
51
  <FormProvider {...form}>
48
52
  <Form onSubmit={form.handleSubmit(onSubmit)}>
49
- <SmsTemplateControl />
53
+ <SmsTemplateControl notificationTypes={notificationTypes} />
50
54
  <NotificationPlaceholders placeholders={placeholders} />
51
55
 
52
56
  {hasPermission && (