@licklist/design 0.71.6-dev.9 → 0.71.7

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 (257) hide show
  1. package/dist/affiliate/form/AffiliateForm.d.ts.map +1 -1
  2. package/dist/auth/Layout/AuthNavComponent.d.ts.map +1 -1
  3. package/dist/auth/Login/LoginComponent.d.ts.map +1 -1
  4. package/dist/auth/Login/LoginComponent.js +1 -2
  5. package/dist/auth/Login/LoginFormComponent.d.ts.map +1 -1
  6. package/dist/auth/Logout/Logout.js +0 -1
  7. package/dist/auth/Register/RegisterComponent.d.ts.map +1 -1
  8. package/dist/auth/Register/RegisterFormComponent.d.ts.map +1 -1
  9. package/dist/auth/ResetPassword/ResetPasswordFormComponent.d.ts.map +1 -1
  10. package/dist/auth/Router.d.ts.map +1 -1
  11. package/dist/auth/Router.js +0 -2
  12. package/dist/calendar/utils/index.d.ts +1 -1
  13. package/dist/calendar/utils/index.d.ts.map +1 -1
  14. package/dist/events/edit-event-modal/component/SaleDeadline/SaleDeadline.d.ts +1 -7
  15. package/dist/events/edit-event-modal/component/SaleDeadline/SaleDeadline.d.ts.map +1 -1
  16. package/dist/events/edit-event-modal/component/SaleDeadline/SaleDeadline.js +7 -10
  17. package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +1 -3
  18. package/dist/events/edit-event-modal/utils/getDefaultProductSet.js +1 -1
  19. package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.d.ts.map +1 -1
  20. package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.js +0 -1
  21. package/dist/events/event-card/utils.d.ts.map +1 -1
  22. package/dist/events/event-statistic-modal/EventStatisticModal.d.ts +1 -2
  23. package/dist/events/event-statistic-modal/EventStatisticModal.d.ts.map +1 -1
  24. package/dist/events/event-statistic-modal/EventStatisticModal.js +2 -2
  25. package/dist/events/event-statistic-modal/hooks/useTableData.d.ts +1 -1
  26. package/dist/events/event-statistic-modal/hooks/useTableData.d.ts.map +1 -1
  27. package/dist/events/event-statistic-modal/hooks/useTableData.js +1 -2
  28. package/dist/events/event-statistic-modal/utils/index.d.ts.map +1 -1
  29. package/dist/events/event-statistic-modal/utils/index.js +13 -6
  30. package/dist/events/event-venue-map/EventVenueMap.d.ts.map +1 -1
  31. package/dist/events/event-venue-map/EventVenueMap.js +0 -1
  32. package/dist/events/event-venue-map/hooks/useCanvasSize.d.ts.map +1 -1
  33. package/dist/events/event-venue-map/hooks/useCanvasSize.js +4 -11
  34. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts +1 -1
  35. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts.map +1 -1
  36. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.js +2 -1
  37. package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts +2 -1
  38. package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts.map +1 -1
  39. package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.js +2 -2
  40. package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.d.ts +2 -1
  41. package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.d.ts.map +1 -1
  42. package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.js +2 -1
  43. package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/SummaryTotal.d.ts.map +1 -1
  44. package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/SummaryTotal.js +3 -22
  45. package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts +1 -4
  46. package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts.map +1 -1
  47. package/dist/iframe/order-process/components/BookingSummary/utils/index.js +2 -4
  48. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts.map +1 -1
  49. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.js +1 -1
  50. package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.d.ts.map +1 -1
  51. package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js +0 -13
  52. package/dist/iframe/page/components/PageBody/constants.d.ts +0 -1
  53. package/dist/iframe/page/components/PageBody/constants.d.ts.map +1 -1
  54. package/dist/iframe/page/components/PageBody/constants.js +1 -2
  55. package/dist/iframe/page/components/PageBody/hooks/useResizePageBody.d.ts.map +1 -1
  56. package/dist/iframe/page/components/PageBody/hooks/useResizePageBody.js +1 -6
  57. package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts.map +1 -1
  58. package/dist/iframe/payment/payment-page/PaymentPage.d.ts +1 -1
  59. package/dist/iframe/payment/payment-page/PaymentPage.d.ts.map +1 -1
  60. package/dist/iframe/payment/payment-page/PaymentPage.js +5 -29
  61. package/dist/iframe/payment/payment-status-page/PaymentStatusPage.d.ts.map +1 -1
  62. package/dist/iframe/payment/payment-status-page/PaymentStatusPage.js +5 -15
  63. package/dist/iframe/ryft/RyftPaymentForm.js +0 -1
  64. package/dist/iframe/ryft/utils/ryft-form.d.ts.map +1 -1
  65. package/dist/iframe/ryft/utils/ryft-form.js +5 -4
  66. package/dist/index.js +0 -1
  67. package/dist/layout/DropDown.d.ts +1 -2
  68. package/dist/layout/DropDown.d.ts.map +1 -1
  69. package/dist/notification/email-template/card/EmailTemplateCard.d.ts.map +1 -1
  70. package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
  71. package/dist/notification/email-template/control/EmailTemplateControl.js +0 -3
  72. package/dist/notification/sms-template/card/SmsTemplateCard.d.ts.map +1 -1
  73. package/dist/product-set/card/ProductSetCard.d.ts.map +1 -1
  74. package/dist/product-set/card/ProductSetCard.js +0 -1
  75. package/dist/product-set/control/DateAndRecurrenceInput.d.ts.map +1 -1
  76. package/dist/product-set/control/DateInput.d.ts.map +1 -1
  77. package/dist/product-set/control/ProductSetControl.d.ts +0 -2
  78. package/dist/product-set/control/ProductSetControl.d.ts.map +1 -1
  79. package/dist/product-set/control/ProductSetControl.js +0 -5
  80. package/dist/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
  81. package/dist/product-set/form/ProductCategoriesControl.js +2 -49
  82. package/dist/product-set/form/ProductSetForm.d.ts +2 -6
  83. package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
  84. package/dist/product-set/form/ProductSetForm.js +2 -3
  85. package/dist/product-set/form/ProductZonesControl.d.ts.map +1 -1
  86. package/dist/product-set/form/ProductZonesControl.js +2 -0
  87. package/dist/product-set/form/ProductsControl.js +0 -2
  88. package/dist/product-set/form/SelectCategoryModal.d.ts +0 -12
  89. package/dist/product-set/form/SelectCategoryModal.d.ts.map +1 -1
  90. package/dist/product-set/form/SelectCategoryModal.js +1 -1
  91. package/dist/product-set/form/SubProductsControl.d.ts.map +1 -1
  92. package/dist/product-set/form/SubProductsControl.js +3 -0
  93. package/dist/product-set/form/VenueMapsControl.d.ts +1 -1
  94. package/dist/product-set/form/VenueMapsControl.d.ts.map +1 -1
  95. package/dist/product-set/form/VenueMapsControl.js +3 -0
  96. package/dist/product-set/product/ProductControl.d.ts.map +1 -1
  97. package/dist/product-set/product/booking-management/ProductBookingManagementControl.d.ts.map +1 -1
  98. package/dist/product-set/product/booking-management/ProductBookingManagementControl.js +0 -6
  99. package/dist/product-set/product/deposit/ProductDepositControl.d.ts.map +1 -1
  100. package/dist/product-set/product/deposit/ProductDepositControl.js +0 -3
  101. package/dist/product-set/product/duration/ProductDurationControl.d.ts.map +1 -1
  102. package/dist/product-set/product/duration/ProductDurationControl.js +0 -6
  103. package/dist/product-set/product/price/ProductPriceControl.d.ts.map +1 -1
  104. package/dist/product-set/product/price/ProductPriceControl.js +0 -3
  105. package/dist/product-set/product/quantity/ProductQuantityConstantControl.d.ts.map +1 -1
  106. package/dist/product-set/product/quantity/ProductQuantityConstantControl.js +0 -6
  107. package/dist/product-set/product/quantity/ProductQuantityControl.d.ts.map +1 -1
  108. package/dist/product-set/product/quantity/ProductQuantityControl.js +0 -6
  109. package/dist/product-set/product/quantity/ProductQuantityRechargingControl.d.ts.map +1 -1
  110. package/dist/product-set/product/quantity/ProductQuantityRechargingControl.js +1 -4
  111. package/dist/product-set/product-category/ProductCategoryControl.d.ts +0 -1
  112. package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
  113. package/dist/product-set/product-category/ProductCategoryControl.js +1 -19
  114. package/dist/recurrence-input/RecurrenceEndInput.d.ts.map +1 -1
  115. package/dist/recurrence-input/RecurrenceEndInput.js +0 -3
  116. package/dist/recurring-date-picker-input/RecurrenceEndInput.d.ts.map +1 -1
  117. package/dist/report/ReportRunnerModal/ReportRunnerModal.js +0 -1
  118. package/dist/resource/form/components/CapacityControl.d.ts.map +1 -1
  119. package/dist/resource/form/components/CapacityControl.js +0 -3
  120. package/dist/resource/form/components/SortControl.d.ts.map +1 -1
  121. package/dist/resource/form/components/SortControl.js +0 -3
  122. package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
  123. package/dist/sales/booking/results/components/ResultCard.js +2 -0
  124. package/dist/sales/coupon/control/CouponFormControl.d.ts.map +1 -1
  125. package/dist/sales/coupon/control/CouponFormControl.js +0 -21
  126. package/dist/sales/life-time-sales/LifeTimeSalesChart.js +0 -1
  127. package/dist/sales/manual-booking/select-event/SelectEvent.js +0 -1
  128. package/dist/sales/manual-booking/select-menu/SelectMenu.js +0 -1
  129. package/dist/sales/manual-booking/summary/ManualBookingSummary.js +0 -1
  130. package/dist/sales/modals/refund-modal/RefundModal.d.ts.map +1 -1
  131. package/dist/sales/modals/refund-modal/RefundModal.js +0 -1
  132. package/dist/setting/admin/AdminSettingForm.d.ts.map +1 -1
  133. package/dist/setting/admin/PaymentFeeForm.d.ts.map +1 -1
  134. package/dist/setting/admin/PaymentFeeForm.js +1 -16
  135. package/dist/setting/dashboard/DashboardSettingForm.d.ts.map +1 -1
  136. package/dist/setting/dashboard/DashboardSettingForm.js +1 -4
  137. package/dist/setting/dashboard/snippet-templates/card/SnippetTemplateCard.d.ts.map +1 -1
  138. package/dist/snippet/snippet-template/preview/Preview.d.ts.map +1 -1
  139. package/dist/snippet/snippet-template/preview/Preview.js +1 -3
  140. package/dist/sortable-tree/SortableTreeItem.d.ts +1 -2
  141. package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
  142. package/dist/sortable-tree/SortableTreeItem.js +4 -10
  143. package/dist/static/CurrencyNumberInput.d.ts.map +1 -1
  144. package/dist/static/CurrencyNumberInput.js +0 -3
  145. package/dist/static/date-range-input/utils/index.d.ts +1 -1
  146. package/dist/static/date-range-input/utils/index.d.ts.map +1 -1
  147. package/dist/static/form-number-input/FormNumberInput.d.ts.map +1 -1
  148. package/dist/static/form-number-input/FormNumberInput.js +0 -3
  149. package/dist/static/loader/LoaderIndicator.d.ts +3 -2
  150. package/dist/static/loader/LoaderIndicator.d.ts.map +1 -1
  151. package/dist/static/loader/LoaderIndicator.js +2 -4
  152. package/dist/static/loader/index.d.ts +0 -1
  153. package/dist/static/loader/index.d.ts.map +1 -1
  154. package/dist/static/number-input/NumberInput.d.ts.map +1 -1
  155. package/dist/static/number-input/NumberInput.js +0 -3
  156. package/dist/styles/availability-indicator/AvailabilityIndicator.scss +4 -1
  157. package/dist/styles/iframe-events/Calendar.scss +1 -1
  158. package/dist/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
  159. package/dist/styles/product-set/ProductSetForm.scss +0 -22
  160. package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +4 -2
  161. package/dist/styles/sales/BookingResults.scss +1 -1
  162. package/dist/styles/static/Loader.scss +0 -9
  163. package/dist/zone/form/components/GameDurationControl.d.ts.map +1 -1
  164. package/dist/zone/form/components/GameDurationControl.js +0 -3
  165. package/dist/zone/form/components/SortControl.d.ts.map +1 -1
  166. package/dist/zone/form/components/SortControl.js +0 -3
  167. package/package.json +6 -8
  168. package/src/affiliate/form/AffiliateForm.tsx +0 -1
  169. package/src/auth/Layout/AuthNavComponent.tsx +0 -4
  170. package/src/auth/Login/LoginComponent.tsx +1 -3
  171. package/src/auth/Login/LoginFormComponent.tsx +0 -2
  172. package/src/auth/Register/RegisterComponent.tsx +0 -2
  173. package/src/auth/Register/RegisterFormComponent.tsx +0 -4
  174. package/src/auth/ResetPassword/ResetPasswordFormComponent.tsx +0 -4
  175. package/src/auth/Router.tsx +0 -2
  176. package/src/calendar/Calendar.stories.tsx +2 -2
  177. package/src/calendar/utils/index.ts +1 -1
  178. package/src/events/edit-event-modal/component/SaleDeadline/SaleDeadline.tsx +19 -47
  179. package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +1 -1
  180. package/src/events/edit-recurrent-event-modal/EditRecurrentEventModal.tsx +1 -6
  181. package/src/events/event-card/utils.ts +9 -10
  182. package/src/events/event-statistic-modal/EventStatisticModal.tsx +1 -3
  183. package/src/events/event-statistic-modal/hooks/useTableData.tsx +1 -2
  184. package/src/events/event-statistic-modal/utils/index.ts +16 -4
  185. package/src/events/event-venue-map/EventVenueMap.tsx +0 -1
  186. package/src/events/event-venue-map/hooks/useCanvasSize.ts +1 -5
  187. package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +2 -0
  188. package/src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx +6 -1
  189. package/src/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.tsx +3 -0
  190. package/src/iframe/order-process/components/BookingSummary/components/SummaryTotal/SummaryTotal.tsx +3 -22
  191. package/src/iframe/order-process/components/BookingSummary/utils/index.ts +2 -10
  192. package/src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx +7 -4
  193. package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +0 -9
  194. package/src/iframe/page/components/PageBody/constants.ts +0 -1
  195. package/src/iframe/page/components/PageBody/hooks/useResizePageBody.ts +2 -10
  196. package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +0 -1
  197. package/src/iframe/payment/payment-page/PaymentPage.tsx +18 -65
  198. package/src/iframe/payment/payment-status-page/PaymentStatusPage.tsx +6 -27
  199. package/src/iframe/ryft/utils/ryft-form.ts +5 -6
  200. package/src/layout/DropDown.tsx +1 -1
  201. package/src/notification/email-template/card/EmailTemplateCard.tsx +0 -2
  202. package/src/notification/email-template/control/EmailTemplateControl.tsx +0 -1
  203. package/src/notification/sms-template/card/SmsTemplateCard.tsx +0 -2
  204. package/src/product-set/card/ProductSetCard.tsx +1 -7
  205. package/src/product-set/control/DateAndRecurrenceInput.tsx +4 -3
  206. package/src/product-set/control/DateInput.tsx +4 -3
  207. package/src/product-set/control/ProductSetControl.tsx +0 -5
  208. package/src/product-set/form/ProductCategoriesControl.tsx +1 -38
  209. package/src/product-set/form/ProductSetForm.tsx +2 -8
  210. package/src/product-set/form/ProductZonesControl.tsx +4 -1
  211. package/src/product-set/form/SelectCategoryModal.tsx +2 -2
  212. package/src/product-set/form/SubProductsControl.tsx +3 -0
  213. package/src/product-set/form/VenueMapsControl.tsx +4 -1
  214. package/src/product-set/product/ProductControl.tsx +1 -0
  215. package/src/product-set/product/advanced-options/AdvancedOptions.tsx +1 -1
  216. package/src/product-set/product/booking-management/ProductBookingManagementControl.tsx +0 -2
  217. package/src/product-set/product/deposit/ProductDepositControl.tsx +0 -1
  218. package/src/product-set/product/duration/ProductDurationControl.tsx +0 -2
  219. package/src/product-set/product/price/ProductPriceControl.tsx +0 -1
  220. package/src/product-set/product/quantity/ProductQuantityConstantControl.tsx +0 -2
  221. package/src/product-set/product/quantity/ProductQuantityControl.tsx +0 -2
  222. package/src/product-set/product/quantity/ProductQuantityRechargingControl.tsx +0 -1
  223. package/src/product-set/product-category/ProductCategoryControl.tsx +0 -17
  224. package/src/product-set/product-zone/ProductZoneControl.tsx +1 -1
  225. package/src/recurrence-input/RecurrenceEndInput.tsx +0 -1
  226. package/src/recurring-date-picker-input/RecurrenceEndInput.tsx +0 -1
  227. package/src/resource/form/components/CapacityControl.tsx +0 -1
  228. package/src/resource/form/components/SortControl.tsx +0 -1
  229. package/src/sales/booking/results/components/ResultCard.tsx +2 -0
  230. package/src/sales/coupon/control/CouponFormControl.tsx +0 -7
  231. package/src/sales/modals/refund-modal/RefundModal.tsx +0 -1
  232. package/src/setting/admin/AdminSettingForm.tsx +0 -4
  233. package/src/setting/admin/PaymentFeeForm.tsx +0 -5
  234. package/src/setting/dashboard/DashboardSettingForm.tsx +0 -1
  235. package/src/setting/dashboard/snippet-templates/card/SnippetTemplateCard.tsx +0 -2
  236. package/src/snippet/snippet-template/preview/Preview.tsx +2 -1
  237. package/src/sortable-tree/SortableTreeItem.tsx +0 -6
  238. package/src/static/CurrencyNumberInput.tsx +0 -1
  239. package/src/static/date-range-input/utils/index.ts +1 -1
  240. package/src/static/form-number-input/FormNumberInput.tsx +0 -1
  241. package/src/static/loader/LoaderIndicator.tsx +3 -6
  242. package/src/static/loader/index.ts +0 -1
  243. package/src/static/number-input/NumberInput.tsx +0 -1
  244. package/src/styles/availability-indicator/AvailabilityIndicator.scss +4 -1
  245. package/src/styles/iframe-events/Calendar.scss +1 -1
  246. package/src/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
  247. package/src/styles/product-set/ProductSetForm.scss +0 -22
  248. package/src/styles/ryft-payment-form/RyftPaymentForm.scss +4 -2
  249. package/src/styles/sales/BookingResults.scss +1 -1
  250. package/src/styles/static/Loader.scss +0 -9
  251. package/src/zone/form/components/GameDurationControl.tsx +0 -1
  252. package/src/zone/form/components/SortControl.tsx +0 -1
  253. package/yarn.lock +952 -1163
  254. package/dist/static/loader/FullScreenLoader.d.ts +0 -8
  255. package/dist/static/loader/FullScreenLoader.d.ts.map +0 -1
  256. package/dist/static/loader/FullScreenLoader.js +0 -41
  257. package/src/static/loader/FullScreenLoader.tsx +0 -16
@@ -147,8 +147,6 @@ function LoginFormComponent(props: LoginFormComponentProps) {
147
147
  <p className='text-center mb-0 mt-3'>
148
148
  <Trans t={t} i18nKey='User:resetPromo'>
149
149
  Forgot your password?{' '}
150
- {/* TODO fix issue react router types
151
- @ts-expect-error */}
152
150
  <Link
153
151
  to='/forgot-password'
154
152
  className={[isLoading && 'disabled'].join(' ')}
@@ -105,8 +105,6 @@ function RegisterComponent({
105
105
  <h6 className='text-center'>
106
106
  <Trans t={t} i18nKey='registerPromo'>
107
107
  Fill out the form below to sign up for {{ name: t('bookedit') }}
108
- {/* TODO fix issue react router types
109
- @ts-expect-error */}
110
108
  . Already signed up? Then just <Link to='/login'>Log in</Link>.
111
109
  </Trans>
112
110
  </h6>
@@ -400,14 +400,10 @@ function RegisterFormComponent({
400
400
  <Trans t={t} i18nKey='User:agreementsPromo'>
401
401
  By creating an account, I agree to {{ name: t('User:bookedit') }}
402
402
  &apos;s{' '}
403
- {/* TODO fix issue react router types
404
- @ts-expect-error */}
405
403
  <Link to='/terms' className={[isLoading && 'disabled'].join(' ')}>
406
404
  terms of service
407
405
  </Link>{' '}
408
406
  and{' '}
409
- {/* TODO fix issue react router types
410
- @ts-expect-error */}
411
407
  <Link to='/privacy' className={[isLoading && 'disabled'].join(' ')}>
412
408
  privacy policy
413
409
  </Link>
@@ -97,8 +97,6 @@ function ResetPasswordFormComponent(props: ResetPasswordFormComponentProps) {
97
97
  <p className='text-center mb-0 mt-3'>
98
98
  <Trans t={t} i18nKey='User:signinPromo'>
99
99
  Already a user?{' '}
100
- {/* TODO fix issue react router types
101
- @ts-expect-error */}
102
100
  <Link to='/login' className={[isLoading && 'disabled'].join(' ')}>
103
101
  Sign in
104
102
  </Link>
@@ -108,8 +106,6 @@ function ResetPasswordFormComponent(props: ResetPasswordFormComponentProps) {
108
106
  <p className='text-center mb-0 mt-3'>
109
107
  <Trans t={t} i18nKey='User:loginPromo'>
110
108
  Don&apos;t have an account?{' '}
111
- {/* TODO fix issue react router types
112
- @ts-expect-error */}
113
109
  <Link
114
110
  to='/register'
115
111
  className={[isLoading && 'disabled'].join(' ')}
@@ -29,8 +29,6 @@ function Router(props: RouterProps) {
29
29
  }
30
30
  }, [])
31
31
 
32
- // TODO fix issue react router types
33
- // @ts-expect-error
34
32
  return <BrowserRouter history={history}>{children}</BrowserRouter>
35
33
  }
36
34
 
@@ -28,7 +28,7 @@ Default.args = {
28
28
  fromPrice: 'from £10',
29
29
  selectedDate: null,
30
30
  setSelectedDate: () => null,
31
- calendarDates: getMonthCalendarDates({ initialDate: now }),
31
+ calendarDates: getMonthCalendarDates(now),
32
32
  currentDate: now,
33
33
  getDateTimeButtonProps: () => ({
34
34
  resources: [],
@@ -50,7 +50,7 @@ Loading.args = {
50
50
  fromPrice: 'from £10',
51
51
  selectedDate: null,
52
52
  setSelectedDate: () => null,
53
- calendarDates: getMonthCalendarDates({ initialDate: now }),
53
+ calendarDates: getMonthCalendarDates(now),
54
54
  currentDate: now,
55
55
  getDateTimeButtonProps: () => ({
56
56
  resources: [],
@@ -3,7 +3,7 @@ import { DateTime, Interval } from 'luxon'
3
3
 
4
4
  type Builder = (args: {
5
5
  initialDate?: DateTime
6
- timeZone?: TimeZone['name']
6
+ timeZone: TimeZone['name']
7
7
  }) => DateTime[]
8
8
 
9
9
  export const getMonthCalendarDates: Builder = ({
@@ -9,9 +9,6 @@ import { Switch, NumberInput } from '../../../../static'
9
9
  const SALE_DEADLINE_BEFORE_TYPE = 'before'
10
10
  const SALE_DEADLINE_AFTER_TYPE = 'after'
11
11
 
12
- export const SALE_DEADLINE_NAME_CATEGORY = 'saleDeadlineCategory'
13
- export const SALE_DEADLINE_NAME = 'saleDeadline'
14
-
15
12
  const SALE_DEADLINES_EVENT_START_TYPES = [
16
13
  { type: SALE_DEADLINE_BEFORE_TYPE },
17
14
  { type: SALE_DEADLINE_AFTER_TYPE },
@@ -21,30 +18,11 @@ type DeadlineType =
21
18
  | typeof SALE_DEADLINE_BEFORE_TYPE
22
19
  | typeof SALE_DEADLINE_AFTER_TYPE
23
20
 
24
- export const DEADLINE_NAME = [
25
- SALE_DEADLINE_NAME_CATEGORY,
26
- SALE_DEADLINE_NAME,
27
- ] as const
28
-
29
- export type DeadLineNameType = (typeof DEADLINE_NAME)[number]
30
-
31
- type SaleDeadlineType =
32
- | {
33
- saleDeadline: null | number
34
- }
35
- | {
36
- [key: string]: null | number
37
- }
21
+ type SaleDeadlineType = {
22
+ saleDeadline: null | number
23
+ }
38
24
 
39
- export const SaleDeadline = ({
40
- disabled = false,
41
- onlyBefore = false,
42
- deadLineCategory,
43
- }: {
44
- disabled?: boolean
45
- onlyBefore?: boolean
46
- deadLineCategory?: string
47
- }) => {
25
+ export const SaleDeadline = ({ disabled = false }: { disabled?: boolean }) => {
48
26
  const { t } = useTranslation(['Design'])
49
27
  const {
50
28
  control,
@@ -54,11 +32,9 @@ export const SaleDeadline = ({
54
32
  const [deadlineType, setDeadlineType] = useState<DeadlineType>(
55
33
  SALE_DEADLINE_BEFORE_TYPE,
56
34
  )
57
-
58
- const saleDeadline = watch(deadLineCategory || SALE_DEADLINE_NAME)
35
+ const saleDeadline = watch('saleDeadline')
59
36
 
60
37
  useEffect(() => {
61
- if (onlyBefore) return
62
38
  if (saleDeadline > 0) {
63
39
  setDeadlineType(SALE_DEADLINE_AFTER_TYPE)
64
40
  }
@@ -69,11 +45,11 @@ export const SaleDeadline = ({
69
45
  <Form.Group className='sales-deadline'>
70
46
  <Form.Label>{t('Design:salesDeadline')}</Form.Label>
71
47
  <Form.Control.Feedback type='invalid'>
72
- {errors.root?.message}
48
+ {errors.saleDeadline?.message}
73
49
  </Form.Control.Feedback>
74
50
  <Controller
75
51
  control={control}
76
- name={deadLineCategory || SALE_DEADLINE_NAME}
52
+ name='saleDeadline'
77
53
  render={({
78
54
  field: { value, onChange },
79
55
  fieldState: { invalid, error },
@@ -135,22 +111,18 @@ export const SaleDeadline = ({
135
111
 
136
112
  return (
137
113
  <>
138
- {!onlyBefore && (
139
- <Form.Group className='d-flex flex-column flex-grow-1 align-items-start'>
140
- <Switch
141
- name='sale-deadline'
142
- options={SALE_DEADLINES_EVENT_START_TYPES.map(
143
- ({ type }) => ({
144
- id: type,
145
- value: t(`Design:${type}`),
146
- }),
147
- )}
148
- value={deadlineType}
149
- onChange={changeValueByType}
150
- disabled={disabled}
151
- />
152
- </Form.Group>
153
- )}
114
+ <Form.Group className='d-flex flex-column flex-grow-1 align-items-start'>
115
+ <Switch
116
+ name='sale-deadline'
117
+ options={SALE_DEADLINES_EVENT_START_TYPES.map(({ type }) => ({
118
+ id: type,
119
+ value: t(`Design:${type}`),
120
+ }))}
121
+ value={deadlineType}
122
+ onChange={changeValueByType}
123
+ disabled={disabled}
124
+ />
125
+ </Form.Group>
154
126
  <div className='d-flex'>
155
127
  <Form.Group className='d-flex flex-column col-4 pl-0'>
156
128
  <Form.Label>{t('Design:saleDays')}</Form.Label>
@@ -20,7 +20,6 @@ export const getDefaultValues = (
20
20
  relyOnPeopleType: productSet?.relyOnPeopleType ?? null,
21
21
  thankYouPageUrl: productSet?.thankYouPageUrl ?? '',
22
22
  fieldSetId: productSet?.fieldSetId,
23
- saleDeadline: productSet?.saleDeadline,
24
23
  emailTemplates:
25
24
  productSet?.mailTemplates && productSet?.mailTemplates?.length > 0
26
25
  ? getFilteredTemplates(productSet?.mailTemplates)
@@ -40,6 +39,7 @@ export const getDefaultValues = (
40
39
  ...product,
41
40
  subProducts: subProducts?.map(({ ...subProducts }) => ({
42
41
  ...subProducts,
42
+ originalProductId: null,
43
43
  productCategoryId: undefined,
44
44
  })),
45
45
  productCategoryId: undefined,
@@ -61,12 +61,7 @@ export const EditRecurrentEventModal = ({
61
61
  <Form onSubmit={handleSubmit(onSubmit)} noValidate>
62
62
  <Modal.Header className='border-0'>
63
63
  <Modal.Title as='h6'>{title}</Modal.Title>
64
- <Button
65
- variant='danger'
66
- className='btn-sm rounded'
67
- disabled={disabled}
68
- onClick={onHide}
69
- >
64
+ <Button variant='danger' className='btn-sm rounded' onClick={onHide}>
70
65
  <FaTimes size={16} />
71
66
  </Button>
72
67
  </Modal.Header>
@@ -2,25 +2,24 @@ import { DATE_FORMAT, DATE_TIME_FULL_FORMAT } from '@licklist/core/dist/Config'
2
2
  import { EventStatistic } from '@licklist/core/dist/DataMapper/Provider/EventStatisticDataMapper'
3
3
  import { DateTime } from 'luxon'
4
4
 
5
- export const MIN_EVENT_DESCRIPTION_SIZE = 150
6
- export const EVENT_DESCRIPTION_SIZE = 350
7
- export const EMOJI_REGEX =
8
- /<span data-emoji-replacer=""><img[^>]*alt="([^"]+)"[^>]*><\/span>/g
5
+ export const MIN_EVENT_DESCRIPTION_SIZE = 150;
6
+ export const EVENT_DESCRIPTION_SIZE = 350;
7
+ export const EMOJI_REGEX = /<span data-emoji-replacer=""><img[^>]*alt="([^"]+)"[^>]*><\/span>/g;
9
8
 
10
9
  export const formatContent = (content, maxLength = EVENT_DESCRIPTION_SIZE) => {
11
- if (!content) return ''
10
+ if (!content) return '';
12
11
 
13
- const replacedContent = replaceEmojiImagesWithText(content)
12
+ const replacedContent = replaceEmojiImagesWithText(content);
14
13
 
15
14
  if (replacedContent.length <= maxLength) {
16
- return replacedContent
15
+ return replacedContent;
17
16
  }
18
17
 
19
- return replacedContent.slice(0, maxLength).concat('...')
20
- }
18
+ return replacedContent.slice(0, maxLength).concat('...');
19
+ };
21
20
 
22
21
  function replaceEmojiImagesWithText(text) {
23
- return text.replace(EMOJI_REGEX, (_, emojiText) => emojiText)
22
+ return text.replace(EMOJI_REGEX, (_, emojiText) => emojiText);
24
23
  }
25
24
 
26
25
  /**
@@ -12,7 +12,6 @@ export type EventStatisticModalProps = {
12
12
  date?: Event['startAt'] | null
13
13
  eventStatistic?: EventStatistic | null
14
14
  title?: string
15
- eventId?: string
16
15
  }
17
16
 
18
17
  export const EventStatisticModal = ({
@@ -21,11 +20,10 @@ export const EventStatisticModal = ({
21
20
  date,
22
21
  eventStatistic,
23
22
  title,
24
- eventId,
25
23
  }: EventStatisticModalProps) => {
26
24
  const { t } = useTranslation('Design')
27
25
 
28
- const data = useTableData(date, eventStatistic, eventId)
26
+ const data = useTableData(date, eventStatistic)
29
27
  const handleClose = () => {
30
28
  setIsOpen(false)
31
29
  }
@@ -11,7 +11,6 @@ import { StaticTableData } from '../../../table'
11
11
  export const useTableData = (
12
12
  date: Event['startAt'] | null,
13
13
  eventStatistic: EventStatistic | null,
14
- eventId: string,
15
14
  ) => {
16
15
  const { t } = useTranslation('Design')
17
16
  const { formatNumber } = useIntl()
@@ -85,7 +84,7 @@ export const useTableData = (
85
84
  useEffect(() => {
86
85
  setTableRows(transformStatisticToTableRows(date, eventStatistic))
87
86
  // eslint-disable-next-line react-hooks/exhaustive-deps
88
- }, [date, eventId, eventStatistic])
87
+ }, [date, eventStatistic])
89
88
 
90
89
  return tableRows
91
90
  }
@@ -1,7 +1,7 @@
1
1
  import { EventStatistic } from '@licklist/core/dist/DataMapper/Provider/EventStatisticDataMapper'
2
2
  import { DateTime } from 'luxon'
3
3
  import { DATE_FORMAT, DATE_TIME_FULL_FORMAT } from '@licklist/core/dist/Config'
4
- import { maxBy } from 'lodash'
4
+ import { max } from 'lodash'
5
5
 
6
6
  export const TRANSLATION_KEYS = {
7
7
  shortQuantity: 'shortQuantity',
@@ -61,7 +61,6 @@ export const convertEventStatisticToTableData = (
61
61
  (
62
62
  { totalPerCategory, productsSummary = [], categoryName, eventId },
63
63
  _,
64
- // all category at summaryDays
65
64
  selfCategory,
66
65
  ) => {
67
66
  let quantity = 0
@@ -82,6 +81,7 @@ export const convertEventStatisticToTableData = (
82
81
  })
83
82
  }
84
83
 
84
+
85
85
  productsSummary?.forEach((productSummary, productIndex) => {
86
86
  quantity += productSummary.productsSold
87
87
 
@@ -98,10 +98,22 @@ export const convertEventStatisticToTableData = (
98
98
  (summary) => summary.originalProductId === productSummary.id,
99
99
  )
100
100
 
101
- const maxTotalQuantity = maxBy(overrides, 'id')?.totalQuantity
101
+ const highestOverrideTotalQuantity = overrides.reduce<number | null>(
102
+ (acc, override) => {
103
+ if (!override.totalQuantity) return acc
104
+
105
+ if (override.totalQuantity > (acc || 0)) {
106
+ return override.totalQuantity
107
+ }
108
+
109
+ return acc
110
+ },
111
+ null,
112
+ )
102
113
 
103
114
  const totalQuantity =
104
- maxTotalQuantity || productSummary?.totalQuantity
115
+ (productSummary.totalQuantity || highestOverrideTotalQuantity) &&
116
+ max([productSummary.totalQuantity, highestOverrideTotalQuantity])
105
117
 
106
118
  summaryMap.set(`${categoryName}.${productSummary.name}`, {
107
119
  name: productSummary.name,
@@ -49,7 +49,6 @@ export const EventVenueMap = forwardRef<VenueMapRef, EventVenueMapProps>(
49
49
  },
50
50
  ref,
51
51
  ) => {
52
- // TODO fix often updating of canvasSizes, which leads to flashing poingts
53
52
  const canvasSizes = useCanvasSize({ width, height })
54
53
 
55
54
  return (
@@ -10,17 +10,13 @@ export const useCanvasSize = ({
10
10
  width: componentWidth,
11
11
  height: componentHeight,
12
12
  }: CanvasSizeProps) => {
13
- // TODO Fix often updating of width and height
14
13
  const { width, height } = useWindowDimensions()
15
14
 
16
- // eslint-disable-next-line react-hooks/exhaustive-deps
17
- const memoizedDimensions = useMemo(() => ({ width, height }), [width])
18
-
19
15
  const memoedComponentParameters = useMemo(() => {
20
16
  if (!componentWidth && !componentHeight) return null
21
17
 
22
18
  return { width: componentWidth, height: componentHeight }
23
19
  }, [componentWidth, componentHeight])
24
20
 
25
- return memoedComponentParameters || memoizedDimensions
21
+ return memoedComponentParameters || { width, height }
26
22
  }
@@ -21,6 +21,7 @@ export const BookingSummary = ({
21
21
  productsWithErrors = [],
22
22
  isLoading,
23
23
  hasPeopleInput,
24
+ isPaymentLink,
24
25
  peopleAmount,
25
26
  footer,
26
27
  headerComponent,
@@ -61,6 +62,7 @@ export const BookingSummary = ({
61
62
  <div className='products-by-menu-step'>
62
63
  {menuSteps.map((menuStep) => (
63
64
  <ProductsByMenuStep
65
+ isPaymentLink={isPaymentLink}
64
66
  key={menuStep.id}
65
67
  orderItems={formValues}
66
68
  step={menuStep}
@@ -7,17 +7,22 @@ type ProductSummaryProps = {
7
7
  name?: string
8
8
  productQuantityError?: string
9
9
  orderProduct: OrderItem
10
+ isPaymentLink?: boolean
10
11
  }
11
12
 
12
13
  export const ProductSummary = ({
13
14
  name,
14
15
  productQuantityError,
15
16
  orderProduct,
17
+ isPaymentLink,
16
18
  }: ProductSummaryProps) => {
17
19
  const { t } = useTranslation('Design')
18
20
  const { formatNumber } = useIntl()
19
21
 
20
- const priceForOneProduct = orderProduct?.price
22
+ const priceForOneProduct =
23
+ !isPaymentLink && orderProduct?.hasDeposit
24
+ ? orderProduct?.deposit
25
+ : orderProduct?.price
21
26
 
22
27
  const fullPrice = formatNumber(priceForOneProduct * orderProduct?.quantity, {
23
28
  style: 'currency',
@@ -28,12 +28,14 @@ export type ProductsByMenuStepsProps = {
28
28
  orderItems: OrderItems
29
29
  step: MenuStep
30
30
  productsWithErrors?: QuantityCheckProductInfo[]
31
+ isPaymentLink?: boolean
31
32
  }
32
33
 
33
34
  export const ProductsByMenuStep = ({
34
35
  orderItems,
35
36
  step,
36
37
  productsWithErrors = [],
38
+ isPaymentLink,
37
39
  }: ProductsByMenuStepsProps) => {
38
40
  const { productCategories } = step
39
41
 
@@ -61,6 +63,7 @@ export const ProductsByMenuStep = ({
61
63
 
62
64
  return (
63
65
  <ProductSummary
66
+ isPaymentLink={isPaymentLink}
64
67
  key={orderItem.id}
65
68
  name={orderItem.name}
66
69
  productQuantityError={productQuantityError}
@@ -22,14 +22,7 @@ export const SummaryTotal = ({
22
22
 
23
23
  const cartSum = isFreePayment
24
24
  ? 0
25
- : cartSumByOrderProducts({ orderProducts }) + transactionFee
26
-
27
- const totalSum = isFreePayment
28
- ? 0
29
- : cartSumByOrderProducts({ orderProducts, isTotalSum: true }) +
30
- transactionFee
31
-
32
- const hasRemaingToPay = totalSum > cartSum
25
+ : cartSumByOrderProducts(orderProducts) + transactionFee
33
26
 
34
27
  if (!orderProducts.length) {
35
28
  return null
@@ -37,26 +30,14 @@ export const SummaryTotal = ({
37
30
 
38
31
  return (
39
32
  <div className='d-flex flex-column justify-content-between'>
40
- <SummaryTotalBlock
41
- label={t(hasRemaingToPay ? 'payNow' : 'total')}
42
- amount={cartSum}
43
- />
33
+ <SummaryTotalBlock label={t('total')} amount={cartSum} />
34
+
44
35
  {!!totalWithDiscount && !isFreePayment && (
45
36
  <SummaryTotalBlock
46
37
  label={t('totalWithDiscount')}
47
38
  amount={totalWithDiscount + transactionFee}
48
39
  />
49
40
  )}
50
- {hasRemaingToPay && (
51
- <>
52
- <SummaryTotalBlock
53
- label={t('remaining')}
54
- amount={totalSum - cartSum}
55
- />
56
-
57
- <SummaryTotalBlock label={t('total')} amount={totalSum} />
58
- </>
59
- )}
60
41
  </div>
61
42
  )
62
43
  }
@@ -1,21 +1,13 @@
1
1
  import { QuantityCheckProductInfo } from '@licklist/plugins/dist/types/Api/verifyStock'
2
2
  import { OrderItem } from '@licklist/plugins/dist/types/context/Iframe/orderItems'
3
3
 
4
- export const cartSumByOrderProducts = ({
5
- orderProducts,
6
- isTotalSum,
7
- }: {
8
- orderProducts?: OrderItem[]
9
- isTotalSum?: boolean
10
- }) => {
4
+ export const cartSumByOrderProducts = (orderProducts?: OrderItem[]) => {
11
5
  if (!orderProducts || !orderProducts.length) {
12
6
  return 0
13
7
  }
14
8
  return orderProducts.reduce((prevSumValue: number, product) => {
15
9
  if (!product) return 0
16
- const price = isTotalSum
17
- ? product?.price
18
- : product?.deposit ?? product?.price
10
+ const price = product?.hasDeposit ? product?.deposit : product?.price
19
11
  return prevSumValue + price * product.quantity
20
12
  }, 0)
21
13
  }
@@ -132,10 +132,13 @@ export const CategoryProduct = ({
132
132
  </div>
133
133
  <div className='iframe-event__product-price-wrapper'>
134
134
  <span className='product-price'>
135
- {formatNumber(product.price, {
136
- style: 'currency',
137
- currency: Config.Currency.GBP,
138
- })}
135
+ {formatNumber(
136
+ category.allowDeposits ? product?.deposit : product.price,
137
+ {
138
+ style: 'currency',
139
+ currency: Config.Currency.GBP,
140
+ },
141
+ )}
139
142
  </span>
140
143
  <ProductQuantityInput
141
144
  onChange={onChange}
@@ -89,7 +89,6 @@ export const NumberInput = forwardRef<HTMLInputElement, NumberInputProps>(
89
89
  <FormControl
90
90
  type='number'
91
91
  onChange={(e) => handleChangeValue(Number(e.target.value))}
92
- onWheel={(event) => event.currentTarget.blur()}
93
92
  value={value}
94
93
  min={0}
95
94
  max={max}
@@ -102,14 +101,6 @@ export const NumberInput = forwardRef<HTMLInputElement, NumberInputProps>(
102
101
  <button
103
102
  type='button'
104
103
  onClick={handleArrowUpClick}
105
- onWheel={(event) => event.currentTarget.blur()}
106
- onFocus={(event) =>
107
- event.target.addEventListener(
108
- 'wheel',
109
- (event) => event.preventDefault(),
110
- { passive: false },
111
- )
112
- }
113
104
  className={`payment-number-input__btn-up ${
114
105
  plusButtonGreyedOut && 'disabled-number-input-button'
115
106
  }`}
@@ -1,5 +1,4 @@
1
1
  export const TAB_WIDTH = 768
2
- export const MOBILE_WIDTH = 480
3
2
  export const RIGHT_BLOCK_RESIZED_EVENT = 'RIGHT_BLOCK_RESIZED_EVENT'
4
3
  // The sum of paddings in PageBody + header for first block
5
4
  export const STANDARD_BODY_PADDING = 48 + 49
@@ -2,7 +2,6 @@ import { useEffect, useMemo, useState, useRef } from 'react'
2
2
  import { useWindowDimensions } from '@licklist/plugins/dist/hooks/Media/useWindowDimensions'
3
3
  import {
4
4
  TAB_WIDTH,
5
- MOBILE_WIDTH,
6
5
  STANDARD_BODY_PADDING,
7
6
  STANDARD_HEADER_FOOTER_SIZE,
8
7
  RIGHT_BLOCK_RESIZED_EVENT,
@@ -61,15 +60,6 @@ export const useResizePageBody = () => {
61
60
  })
62
61
  }
63
62
 
64
- if (width <= MOBILE_WIDTH && Boolean(CALENDAR_WRAPPER_HEIGHT)) {
65
- return {
66
- maxHeight:
67
- height -
68
- STANDARD_BODY_PADDING -
69
- rightBlockHeight -
70
- CALENDAR_WRAPPER_HEIGHT,
71
- }
72
- }
73
63
  return {
74
64
  maxHeight:
75
65
  height -
@@ -97,6 +87,7 @@ export const useResizePageBody = () => {
97
87
 
98
88
  if (width >= TAB_WIDTH && !isContainerSizeApplied) {
99
89
  isContainerSizeApplied.current = true
90
+
100
91
  setLeftBlockContainerSizes({
101
92
  width: leftBlockContainer.clientWidth,
102
93
  height: leftBlockContainer.clientHeight,
@@ -126,6 +117,7 @@ export const useResizePageBody = () => {
126
117
  ) {
127
118
  minimalMapSize.current = calculatedMinimalMapSize
128
119
  }
120
+
129
121
  return {
130
122
  width: leftBlockContainer.clientWidth,
131
123
  height: minimalMapSize.current,
@@ -61,7 +61,6 @@ const processedPaymentSummary = ({
61
61
  const total = calculateTotalPrice(order, externalPaymentDetail)
62
62
 
63
63
  const totalDiscount = calculateTotalDiscount(order.payments)
64
-
65
64
  let summaryItems: SummaryItem[] = [
66
65
  {
67
66
  translateKey: AMOUNT_TOTAL,