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

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 (319) hide show
  1. package/dist/assets/iframe/available.svg.js +1 -0
  2. package/dist/assets/iframe/limited.svg.js +1 -0
  3. package/dist/assets/iframe/soldOut.svg.js +1 -0
  4. package/dist/assets/logo/bookedit.svg +9 -11
  5. package/dist/assets/logo/bookedit.svg.js +1 -1
  6. package/dist/assets/logo/favicon.svg +12 -0
  7. package/dist/assets/logo/licklist.svg +0 -2
  8. package/dist/assets/logo/licklist.svg.js +1 -1
  9. package/dist/availability-indicator/AvailabilityIndicator.d.ts +9 -0
  10. package/dist/availability-indicator/AvailabilityIndicator.d.ts.map +1 -0
  11. package/dist/availability-indicator/AvailabilityIndicator.js +1 -0
  12. package/dist/availability-indicator/index.d.ts +2 -0
  13. package/dist/availability-indicator/index.d.ts.map +1 -0
  14. package/dist/calendar/Calendar.d.ts +21 -0
  15. package/dist/calendar/Calendar.d.ts.map +1 -0
  16. package/dist/calendar/Calendar.js +1 -0
  17. package/dist/calendar/components/CalendarButtons/CalendarButtons.d.ts +6 -0
  18. package/dist/calendar/components/CalendarButtons/CalendarButtons.d.ts.map +1 -0
  19. package/dist/calendar/components/CalendarButtons/CalendarButtons.js +1 -0
  20. package/dist/calendar/components/CalendarButtons/index.d.ts.map +1 -0
  21. package/dist/calendar/components/CalendarDates/CalendarDates.d.ts +5 -0
  22. package/dist/calendar/components/CalendarDates/CalendarDates.d.ts.map +1 -0
  23. package/dist/calendar/components/CalendarDates/CalendarDates.js +1 -0
  24. package/dist/calendar/components/CalendarDates/index.d.ts.map +1 -0
  25. package/dist/calendar/components/CalendarSelect/CalendarSelect.d.ts.map +1 -0
  26. package/dist/calendar/components/CalendarSelect/CalendarSelect.js +1 -0
  27. package/dist/calendar/components/CalendarSelect/index.d.ts.map +1 -0
  28. package/dist/calendar/components/CalendarWeekdays/CalendarWeekdays.d.ts.map +1 -0
  29. package/dist/calendar/components/CalendarWeekdays/index.d.ts.map +1 -0
  30. package/dist/calendar/index.d.ts +4 -0
  31. package/dist/calendar/index.d.ts.map +1 -0
  32. package/dist/calendar/utils/index.d.ts +5 -0
  33. package/dist/calendar/utils/index.d.ts.map +1 -0
  34. package/dist/calendar/utils/index.js +1 -0
  35. package/dist/date-time-button/DateTimeButton.d.ts +7 -1
  36. package/dist/date-time-button/DateTimeButton.d.ts.map +1 -1
  37. package/dist/date-time-button/DateTimeButton.js +1 -1
  38. package/dist/events/edit-event-modal/IntervalInput.d.ts.map +1 -1
  39. package/dist/events/edit-event-modal/IntervalInput.js +1 -1
  40. package/dist/events/edit-event-modal/utils/getDefaultProductSet.d.ts.map +1 -1
  41. package/dist/events/edit-event-modal/utils/getDefaultProductSet.js +1 -1
  42. package/dist/events/event-venue-map/hooks/useImage.d.ts.map +1 -1
  43. package/dist/events/event-venue-map/hooks/useImage.js +1 -1
  44. package/dist/file-upload/FileUpload.d.ts.map +1 -1
  45. package/dist/file-upload/FileUpload.js +1 -1
  46. package/dist/iframe/activity-card/ActivityCard.d.ts +17 -0
  47. package/dist/iframe/activity-card/ActivityCard.d.ts.map +1 -0
  48. package/dist/iframe/activity-card/ActivityCard.js +1 -0
  49. package/dist/iframe/activity-card/index.d.ts +2 -0
  50. package/dist/iframe/activity-card/index.d.ts.map +1 -0
  51. package/dist/iframe/event/index.d.ts +0 -1
  52. package/dist/iframe/event/index.d.ts.map +1 -1
  53. package/dist/iframe/index.d.ts +2 -2
  54. package/dist/iframe/index.d.ts.map +1 -1
  55. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts +1 -1
  56. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts.map +1 -1
  57. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.js +1 -1
  58. package/dist/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/BookingSummaryAccordion.js +1 -1
  59. package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts +2 -1
  60. package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts.map +1 -1
  61. package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts.map +1 -1
  62. package/dist/iframe/order-process/components/BookingSummary/utils/index.js +1 -1
  63. package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.d.ts +1 -1
  64. package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.d.ts.map +1 -1
  65. package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.js +1 -1
  66. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts.map +1 -1
  67. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.js +1 -1
  68. package/dist/iframe/order-process/components/ErrorModal/ErrorModal.d.ts +2 -1
  69. package/dist/iframe/order-process/components/ErrorModal/ErrorModal.d.ts.map +1 -1
  70. package/dist/iframe/order-process/components/ErrorModal/ErrorModal.js +1 -1
  71. package/dist/iframe/order-process/components/Timer/utils/index.d.ts +1 -1
  72. package/dist/iframe/order-process/components/Timer/utils/index.d.ts.map +1 -1
  73. package/dist/iframe/order-process/components/Timer/utils/index.js +1 -1
  74. package/dist/iframe/order-process/components/utils/useCategoryVerification.d.ts +4 -3
  75. package/dist/iframe/order-process/components/utils/useCategoryVerification.d.ts.map +1 -1
  76. package/dist/iframe/order-process/components/utils/useCategoryVerification.js +1 -1
  77. package/dist/iframe/order-process/constants.d.ts +1 -0
  78. package/dist/iframe/order-process/constants.d.ts.map +1 -1
  79. package/dist/iframe/order-process/constants.js +1 -1
  80. package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.d.ts.map +1 -1
  81. package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.js +1 -1
  82. package/dist/iframe/payment/order-items-table/hooks/useTableData.d.ts.map +1 -1
  83. package/dist/iframe/payment/order-items-table/hooks/useTableData.js +1 -1
  84. package/dist/iframe/payment/order-items-table/types/index.d.ts +7 -1
  85. package/dist/iframe/payment/order-items-table/types/index.d.ts.map +1 -1
  86. package/dist/iframe/payment/order-items-table/types/index.js +1 -0
  87. package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts +3 -0
  88. package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts.map +1 -0
  89. package/dist/iframe/payment/order-items-table/utils/paymentSummary.js +1 -0
  90. package/dist/index.d.ts +2 -0
  91. package/dist/index.d.ts.map +1 -1
  92. package/dist/index.js +1 -1
  93. package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
  94. package/dist/notification/email-template/control/EmailTemplateControl.js +1 -1
  95. package/dist/product-set/control/ProductSetControl.d.ts +2 -1
  96. package/dist/product-set/control/ProductSetControl.d.ts.map +1 -1
  97. package/dist/product-set/control/ProductSetControl.js +1 -1
  98. package/dist/product-set/control/ProductSetRecurrenceControl.d.ts.map +1 -1
  99. package/dist/product-set/control/ProductSetRecurrenceControl.js +1 -1
  100. package/dist/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
  101. package/dist/product-set/form/ProductCategoriesControl.js +1 -1
  102. package/dist/product-set/form/ProductsControl.d.ts +3 -1
  103. package/dist/product-set/form/ProductsControl.d.ts.map +1 -1
  104. package/dist/product-set/form/ProductsControl.js +1 -1
  105. package/dist/product-set/product/ProductControl.d.ts +2 -1
  106. package/dist/product-set/product/ProductControl.d.ts.map +1 -1
  107. package/dist/product-set/product/ProductControl.js +1 -1
  108. package/dist/product-set/product/duration/ProductDurationControl.js +1 -1
  109. package/dist/product-set/product-category/ProductCategoryControl.d.ts +0 -1
  110. package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
  111. package/dist/product-set/product-category/ProductCategoryControl.js +1 -1
  112. package/dist/provider/working-hours-input/WorkingHoursInputDescription.d.ts.map +1 -1
  113. package/dist/recurrence-input/RecurrenceEndInput.d.ts +8 -1
  114. package/dist/recurrence-input/RecurrenceEndInput.d.ts.map +1 -1
  115. package/dist/recurrence-input/RecurrenceEndInput.js +1 -1
  116. package/dist/recurrence-input/RecurrenceInput.d.ts +2 -1
  117. package/dist/recurrence-input/RecurrenceInput.d.ts.map +1 -1
  118. package/dist/recurrence-input/RecurrenceInput.js +1 -1
  119. package/dist/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.d.ts +4 -1
  120. package/dist/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.d.ts.map +1 -1
  121. package/dist/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.js +1 -1
  122. package/dist/recurring-date-picker-input/RecurringDatePickerInput.d.ts +1 -0
  123. package/dist/recurring-date-picker-input/RecurringDatePickerInput.d.ts.map +1 -1
  124. package/dist/recurring-date-picker-input/RecurringDatePickerInput.js +1 -1
  125. package/dist/report/form/ReportForm.d.ts.map +1 -1
  126. package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
  127. package/dist/sales/booking/results/components/ResultCard.js +1 -1
  128. package/dist/sales/coupon/control/CouponFormControl.d.ts.map +1 -1
  129. package/dist/sales/coupon/control/CouponFormControl.js +1 -1
  130. package/dist/sales/manual-booking/summary/ManualBookingSummary.d.ts.map +1 -1
  131. package/dist/snippet/snippet-template/preview/Preview.d.ts.map +1 -1
  132. package/dist/snippet/snippet-template/preview/Preview.js +1 -1
  133. package/dist/static/RestrictedAccess.d.ts.map +1 -1
  134. package/dist/static/form-number-input/FormNumberInput.d.ts +2 -1
  135. package/dist/static/form-number-input/FormNumberInput.d.ts.map +1 -1
  136. package/dist/static/form-number-input/FormNumberInput.js +1 -1
  137. package/dist/styles/{iframe-customers-journey/ActivitiesCard.scss → activity-card/GridActivitiesCard.scss} +1 -1
  138. package/dist/styles/{iframe-customers-journey/ActivitiesSelectedCard.scss → activity-card/ListActivitiesCard.scss} +2 -1
  139. package/dist/styles/activity-card/_index.scss +2 -0
  140. package/dist/styles/availability-indicator/AvailabilityIndicator.scss +7 -0
  141. package/dist/styles/availability-indicator/_index.scss +1 -0
  142. package/dist/styles/{iframe-customers-journey → date-time-button}/DateTimeButton.scss +6 -12
  143. package/dist/styles/date-time-button/_index.scss +1 -0
  144. package/dist/styles/form/CustomCheckbox.scss +5 -0
  145. package/dist/styles/header/Header.scss +0 -4
  146. package/dist/styles/iframe-events/Card.scss +1 -0
  147. package/dist/styles/iframe-page/PageBody.scss +3 -2
  148. package/dist/styles/notification/Notification.scss +4 -0
  149. package/dist/styles/packages.scss +3 -1
  150. package/dist/styles/resources-blocking/_index.scss +5 -0
  151. package/dist/styles/themes/bookedit/_index.scss +1 -0
  152. package/dist/virtualized/components/VirtualizedWindowScroller.d.ts.map +1 -1
  153. package/dist/virtualized/components/VirtualizedWindowScroller.js +1 -1
  154. package/dist/zone/form/components/AvailableTimesControl.d.ts.map +1 -1
  155. package/dist/zone/form/components/AvailableTimesControl.js +1 -1
  156. package/dist/zone/form/components/GameDurationControl.d.ts +7 -0
  157. package/dist/zone/form/components/GameDurationControl.d.ts.map +1 -0
  158. package/dist/zone/form/components/GameDurationControl.js +1 -0
  159. package/dist/zone/form/components/ZoneControl.d.ts.map +1 -1
  160. package/dist/zone/form/components/ZoneControl.js +1 -1
  161. package/dist/zone/form/components/ZoneRecurrencesControl.d.ts.map +1 -1
  162. package/dist/zone/form/components/ZoneRecurrencesControl.js +1 -1
  163. package/dist/zone/form/utils/dates.d.ts.map +1 -1
  164. package/dist/zone/form/utils/dates.js +1 -1
  165. package/package.json +3 -3
  166. package/src/assets/logo/bookedit.svg +9 -11
  167. package/src/assets/logo/favicon.svg +12 -0
  168. package/src/assets/logo/licklist.svg +0 -2
  169. package/src/availability-indicator/AvailabilityIndicator.tsx +59 -0
  170. package/src/availability-indicator/index.ts +1 -0
  171. package/src/calendar/Calendar.stories.tsx +33 -0
  172. package/src/calendar/Calendar.tsx +46 -0
  173. package/src/{iframe/event/event-calendar → calendar}/components/CalendarButtons/CalendarButtons.tsx +31 -14
  174. package/src/{iframe/event/event-calendar → calendar}/components/CalendarDates/CalendarDates.tsx +24 -19
  175. package/src/{iframe/event/event-calendar → calendar}/components/CalendarSelect/CalendarSelect.tsx +1 -1
  176. package/src/calendar/index.ts +3 -0
  177. package/src/calendar/utils/index.ts +28 -0
  178. package/src/date-time-button/DateTimeButton.stories.tsx +17 -0
  179. package/src/date-time-button/DateTimeButton.tsx +19 -22
  180. package/src/events/edit-event-modal/IntervalInput.tsx +3 -0
  181. package/src/events/edit-event-modal/component/EditEventForm/EditEventForm.stories.tsx +0 -9
  182. package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +3 -1
  183. package/src/events/event-venue-map/hooks/useImage.tsx +17 -8
  184. package/src/file-upload/FileUpload.tsx +3 -1
  185. package/src/iframe/{activity-cards/activity-card → activity-card}/ActivityCard.stories.tsx +24 -1
  186. package/src/iframe/activity-card/ActivityCard.tsx +77 -0
  187. package/src/iframe/activity-card/index.ts +1 -0
  188. package/src/iframe/event/event-venue-map/IframeEventVenueMap.stories.tsx +1 -2
  189. package/src/iframe/event/index.ts +0 -6
  190. package/src/iframe/index.ts +1 -2
  191. package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +4 -2
  192. package/src/iframe/order-process/components/BookingSummary/types/index.ts +2 -1
  193. package/src/iframe/order-process/components/BookingSummary/utils/index.ts +2 -0
  194. package/src/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.stories.tsx +0 -1
  195. package/src/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.tsx +17 -8
  196. package/src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx +1 -15
  197. package/src/iframe/order-process/components/ErrorModal/ErrorModal.tsx +12 -9
  198. package/src/iframe/order-process/components/Timer/utils/index.ts +6 -9
  199. package/src/iframe/order-process/components/utils/useCategoryVerification.ts +62 -32
  200. package/src/iframe/order-process/constants.ts +1 -0
  201. package/src/iframe/page/Page.stories.tsx +2 -2
  202. package/src/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.tsx +6 -1
  203. package/src/iframe/payment/order-items-table/hooks/useTableData.tsx +11 -99
  204. package/src/iframe/payment/order-items-table/types/index.ts +18 -1
  205. package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +118 -0
  206. package/src/iframe/payment/payment-page/PaymentPage.stories.tsx +1 -1
  207. package/src/iframe/payment/payment-page/PaymentPage.tsx +4 -4
  208. package/src/index.ts +2 -0
  209. package/src/notification/email-template/control/EmailTemplateControl.tsx +26 -1
  210. package/src/product-set/control/ProductSetControl.tsx +35 -0
  211. package/src/product-set/control/ProductSetRecurrenceControl.tsx +8 -4
  212. package/src/product-set/form/ProductCategoriesControl.tsx +2 -1
  213. package/src/product-set/form/ProductSetForm.stories.tsx +3 -6
  214. package/src/product-set/form/ProductsControl.tsx +10 -0
  215. package/src/product-set/product/ProductControl.tsx +28 -1
  216. package/src/product-set/product/duration/ProductDurationControl.tsx +1 -1
  217. package/src/product-set/product-category/ProductCategoryControl.tsx +1 -30
  218. package/src/provider/location-input/LocationInputDescription.tsx +2 -2
  219. package/src/provider/working-hours-input/WorkingHoursInputDescription.tsx +9 -6
  220. package/src/recurrence-input/RecurrenceEndInput.tsx +28 -10
  221. package/src/recurrence-input/RecurrenceInput.tsx +12 -2
  222. package/src/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.tsx +24 -21
  223. package/src/recurring-date-picker-input/RecurringDatePickerInput.tsx +9 -0
  224. package/src/report/form/ReportForm.tsx +1 -1
  225. package/src/sales/booking/results/components/ResultCard.tsx +3 -2
  226. package/src/sales/coupon/control/CouponFormControl.tsx +5 -0
  227. package/src/sales/manual-booking/summary/ManualBookingSummary.tsx +1 -0
  228. package/src/snippet/snippet-template/preview/Preview.tsx +14 -2
  229. package/src/static/RestrictedAccess.tsx +1 -1
  230. package/src/static/form-number-input/FormNumberInput.tsx +8 -1
  231. package/src/styles/{iframe-customers-journey/ActivitiesCard.scss → activity-card/GridActivitiesCard.scss} +1 -1
  232. package/src/styles/{iframe-customers-journey/ActivitiesSelectedCard.scss → activity-card/ListActivitiesCard.scss} +2 -1
  233. package/src/styles/activity-card/_index.scss +2 -0
  234. package/src/styles/availability-indicator/AvailabilityIndicator.scss +7 -0
  235. package/src/styles/availability-indicator/_index.scss +1 -0
  236. package/src/styles/{iframe-customers-journey → date-time-button}/DateTimeButton.scss +6 -12
  237. package/src/styles/date-time-button/_index.scss +1 -0
  238. package/src/styles/form/CustomCheckbox.scss +5 -0
  239. package/src/styles/header/Header.scss +0 -4
  240. package/src/styles/iframe-events/Card.scss +1 -0
  241. package/src/styles/iframe-page/PageBody.scss +3 -2
  242. package/src/styles/notification/Notification.scss +4 -0
  243. package/src/styles/packages.scss +3 -1
  244. package/src/styles/resources-blocking/_index.scss +5 -0
  245. package/src/styles/themes/bookedit/_index.scss +1 -0
  246. package/src/typings.d.ts +11 -0
  247. package/src/virtualized/components/VirtualizedWindowScroller.tsx +2 -1
  248. package/src/zone/form/components/AvailableTimesControl.tsx +4 -9
  249. package/src/zone/form/components/GameDurationControl.tsx +46 -0
  250. package/src/zone/form/components/ZoneControl.tsx +2 -0
  251. package/src/zone/form/components/ZoneRecurrencesControl.tsx +27 -35
  252. package/src/zone/form/utils/dates.ts +29 -36
  253. package/dist/iframe/activity-cards/activity-card/ActivityCard.d.ts +0 -12
  254. package/dist/iframe/activity-cards/activity-card/ActivityCard.d.ts.map +0 -1
  255. package/dist/iframe/activity-cards/activity-card/ActivityCard.js +0 -1
  256. package/dist/iframe/activity-cards/index.d.ts +0 -3
  257. package/dist/iframe/activity-cards/index.d.ts.map +0 -1
  258. package/dist/iframe/activity-cards/list-activity-card/ListActivityCard.d.ts +0 -12
  259. package/dist/iframe/activity-cards/list-activity-card/ListActivityCard.d.ts.map +0 -1
  260. package/dist/iframe/activity-cards/list-activity-card/ListActivityCard.js +0 -1
  261. package/dist/iframe/event/event-calendar/EventCalendar.d.ts +0 -7
  262. package/dist/iframe/event/event-calendar/EventCalendar.d.ts.map +0 -1
  263. package/dist/iframe/event/event-calendar/EventCalendar.js +0 -1
  264. package/dist/iframe/event/event-calendar/components/CalendarButtons/CalendarButtons.d.ts +0 -6
  265. package/dist/iframe/event/event-calendar/components/CalendarButtons/CalendarButtons.d.ts.map +0 -1
  266. package/dist/iframe/event/event-calendar/components/CalendarButtons/CalendarButtons.js +0 -1
  267. package/dist/iframe/event/event-calendar/components/CalendarButtons/index.d.ts.map +0 -1
  268. package/dist/iframe/event/event-calendar/components/CalendarDate/CalendarDate.d.ts +0 -12
  269. package/dist/iframe/event/event-calendar/components/CalendarDate/CalendarDate.d.ts.map +0 -1
  270. package/dist/iframe/event/event-calendar/components/CalendarDate/CalendarDate.js +0 -1
  271. package/dist/iframe/event/event-calendar/components/CalendarDate/index.d.ts +0 -3
  272. package/dist/iframe/event/event-calendar/components/CalendarDate/index.d.ts.map +0 -1
  273. package/dist/iframe/event/event-calendar/components/CalendarDates/CalendarDates.d.ts +0 -7
  274. package/dist/iframe/event/event-calendar/components/CalendarDates/CalendarDates.d.ts.map +0 -1
  275. package/dist/iframe/event/event-calendar/components/CalendarDates/CalendarDates.js +0 -1
  276. package/dist/iframe/event/event-calendar/components/CalendarDates/index.d.ts.map +0 -1
  277. package/dist/iframe/event/event-calendar/components/CalendarSelect/CalendarSelect.d.ts.map +0 -1
  278. package/dist/iframe/event/event-calendar/components/CalendarSelect/CalendarSelect.js +0 -1
  279. package/dist/iframe/event/event-calendar/components/CalendarSelect/index.d.ts.map +0 -1
  280. package/dist/iframe/event/event-calendar/components/CalendarWeekdays/CalendarWeekdays.d.ts.map +0 -1
  281. package/dist/iframe/event/event-calendar/components/CalendarWeekdays/index.d.ts.map +0 -1
  282. package/dist/iframe/event/event-calendar/index.d.ts +0 -4
  283. package/dist/iframe/event/event-calendar/index.d.ts.map +0 -1
  284. package/dist/iframe/event/event-calendar/types/index.d.ts +0 -6
  285. package/dist/iframe/event/event-calendar/types/index.d.ts.map +0 -1
  286. package/dist/iframe/event/event-calendar/utils/index.d.ts +0 -3
  287. package/dist/iframe/event/event-calendar/utils/index.d.ts.map +0 -1
  288. package/dist/iframe/event/event-calendar/utils/index.js +0 -1
  289. package/dist/styles/iframe-customers-journey/_index.scss +0 -3
  290. package/src/iframe/activity-cards/activity-card/ActivityCard.tsx +0 -38
  291. package/src/iframe/activity-cards/index.ts +0 -2
  292. package/src/iframe/activity-cards/list-activity-card/ListActivityCard.stories.tsx +0 -52
  293. package/src/iframe/activity-cards/list-activity-card/ListActivityCard.tsx +0 -49
  294. package/src/iframe/event/event-calendar/EventCalendar.stories.tsx +0 -36
  295. package/src/iframe/event/event-calendar/EventCalendar.tsx +0 -27
  296. package/src/iframe/event/event-calendar/components/CalendarDate/CalendarDate.tsx +0 -51
  297. package/src/iframe/event/event-calendar/components/CalendarDate/index.ts +0 -2
  298. package/src/iframe/event/event-calendar/index.ts +0 -6
  299. package/src/iframe/event/event-calendar/types/index.ts +0 -6
  300. package/src/iframe/event/event-calendar/utils/index.ts +0 -11
  301. package/src/styles/iframe-customers-journey/_index.scss +0 -3
  302. /package/dist/assets/iframe/{dateInfo/available.svg → available.svg} +0 -0
  303. /package/dist/assets/iframe/{dateInfo/limited.svg → limited.svg} +0 -0
  304. /package/dist/assets/iframe/{dateInfo/soldOut.svg → soldOut.svg} +0 -0
  305. /package/dist/{iframe/event/event-calendar → calendar}/components/CalendarButtons/index.d.ts +0 -0
  306. /package/dist/{iframe/event/event-calendar → calendar}/components/CalendarDates/index.d.ts +0 -0
  307. /package/dist/{iframe/event/event-calendar → calendar}/components/CalendarSelect/CalendarSelect.d.ts +0 -0
  308. /package/dist/{iframe/event/event-calendar → calendar}/components/CalendarSelect/index.d.ts +0 -0
  309. /package/dist/{iframe/event/event-calendar → calendar}/components/CalendarWeekdays/CalendarWeekdays.d.ts +0 -0
  310. /package/dist/{iframe/event/event-calendar → calendar}/components/CalendarWeekdays/CalendarWeekdays.js +0 -0
  311. /package/dist/{iframe/event/event-calendar → calendar}/components/CalendarWeekdays/index.d.ts +0 -0
  312. /package/src/assets/iframe/{dateInfo/available.svg → available.svg} +0 -0
  313. /package/src/assets/iframe/{dateInfo/limited.svg → limited.svg} +0 -0
  314. /package/src/assets/iframe/{dateInfo/soldOut.svg → soldOut.svg} +0 -0
  315. /package/src/{iframe/event/event-calendar → calendar}/components/CalendarButtons/index.ts +0 -0
  316. /package/src/{iframe/event/event-calendar → calendar}/components/CalendarDates/index.ts +0 -0
  317. /package/src/{iframe/event/event-calendar → calendar}/components/CalendarSelect/index.ts +0 -0
  318. /package/src/{iframe/event/event-calendar → calendar}/components/CalendarWeekdays/CalendarWeekdays.tsx +0 -0
  319. /package/src/{iframe/event/event-calendar → calendar}/components/CalendarWeekdays/index.ts +0 -0
@@ -1,17 +1,19 @@
1
- import React, { useRef } from "react";
1
+ import React, { useEffect, useRef } from "react";
2
2
  import { useId } from "@react-aria/utils";
3
3
  import { DateTime, DurationUnit } from "luxon";
4
4
  import { Col, Form, InputGroup, Row } from "react-bootstrap";
5
5
  import RRule from "rrule";
6
-
6
+ import { DATE_FORMAT } from "@licklist/core/dist/Config";
7
+ import { useTranslation } from "react-i18next";
7
8
  import { SupportedFrequency } from "./utils";
8
9
  import HTMLInputDateElement from "../types/static/HTMLInputDateElement";
9
10
 
10
11
  interface Props {
11
12
  disabled?: boolean;
12
- date: string;
13
+ date: string; // yyyy-mm-ddThh:mm
14
+ minDate?: string; // should be in yyyy-mm-dd format
13
15
  frequency: SupportedFrequency;
14
- until?: string;
16
+ until?: string; // yyyy-mm-dd
15
17
  count?: number;
16
18
  onChange: (values: { until?: string; count?: number }) => void;
17
19
  }
@@ -23,16 +25,31 @@ function RecurrenceEndInput({
23
25
  until,
24
26
  count,
25
27
  onChange,
28
+ minDate,
26
29
  }: Props) {
30
+ const { t } = useTranslation("Design");
27
31
  // unique ids for radios
28
32
  const neverId = useId();
29
33
  const onId = useId();
30
34
  const afterId = useId();
31
35
  const dateInput = useRef<HTMLInputDateElement | null>(null);
32
36
 
37
+ useEffect(() => {
38
+ const untilDatetime = DateTime.fromFormat(
39
+ until ?? getUntil({ date, frequency }),
40
+ DATE_FORMAT
41
+ );
42
+
43
+ const minDatetime = DateTime.fromFormat(minDate, DATE_FORMAT);
44
+
45
+ if (minDatetime > untilDatetime) {
46
+ onChange({ until: minDate });
47
+ }
48
+ }, [minDate, onChange, until, date, frequency]);
49
+
33
50
  return (
34
51
  <Form.Group>
35
- <Form.Label>Ends</Form.Label>
52
+ <Form.Label>{t("ends")}</Form.Label>
36
53
 
37
54
  <Form.Check type="radio" id={neverId} custom className="mt-3">
38
55
  <Form.Check.Input
@@ -41,7 +58,7 @@ function RecurrenceEndInput({
41
58
  onChange={() => onChange({ count: 500 })}
42
59
  disabled={disabled}
43
60
  />
44
- <Form.Check.Label>Never</Form.Check.Label>
61
+ <Form.Check.Label>{t("never")}</Form.Check.Label>
45
62
  </Form.Check>
46
63
 
47
64
  <Form.Check type="radio" id={onId} custom className="mt-3">
@@ -55,11 +72,12 @@ function RecurrenceEndInput({
55
72
  }
56
73
  disabled={disabled}
57
74
  />
58
- <Form.Check.Label>On</Form.Check.Label>
75
+ <Form.Check.Label>{t("on")}</Form.Check.Label>
59
76
  </Col>
60
77
  <Col>
61
78
  <Form.Control
62
79
  type="date"
80
+ min={minDate}
63
81
  disabled={disabled || !until}
64
82
  aria-label="Date on which the recurrence ends"
65
83
  value={until ?? getUntil({ date, frequency })}
@@ -83,7 +101,7 @@ function RecurrenceEndInput({
83
101
  }
84
102
  disabled={disabled}
85
103
  />
86
- <Form.Check.Label>After</Form.Check.Label>
104
+ <Form.Check.Label>{t("after")}</Form.Check.Label>
87
105
  </Col>
88
106
  <Col>
89
107
  <InputGroup>
@@ -99,7 +117,7 @@ function RecurrenceEndInput({
99
117
  }
100
118
  />
101
119
  <InputGroup.Append>
102
- <InputGroup.Text>occurrences</InputGroup.Text>
120
+ <InputGroup.Text>{t("occurences")}</InputGroup.Text>
103
121
  </InputGroup.Append>
104
122
  </InputGroup>
105
123
  </Col>
@@ -109,7 +127,7 @@ function RecurrenceEndInput({
109
127
  );
110
128
  }
111
129
 
112
- const defaultOccurrences = {
130
+ export const defaultOccurrences = {
113
131
  [RRule.DAILY]: 30,
114
132
  [RRule.WEEKLY]: 13,
115
133
  [RRule.MONTHLY]: 12,
@@ -3,7 +3,7 @@
3
3
  import { DateTime } from "luxon";
4
4
  import React, { useEffect, useReducer } from "react";
5
5
  import RRule, { Frequency, Weekday } from "rrule";
6
- import RecurrenceEndInput from "./RecurrenceEndInput";
6
+ import RecurrenceEndInput, { defaultOccurrences } from "./RecurrenceEndInput";
7
7
  import RecurrenceIntervalAndFrequencyInput from "./RecurrenceIntervalAndFrequencyInput";
8
8
  import RecurrenceMonthlyRepeatByInput from "./RecurrenceMonthlyRepeatByInput";
9
9
  import RecurrenceWeekdaysInput from "./RecurrenceWeekdaysInput";
@@ -16,6 +16,7 @@ import {
16
16
  export interface RecurrenceInputProps {
17
17
  disabled?: boolean;
18
18
  date: string;
19
+ minDate?: string;
19
20
  value?: string;
20
21
  onChange: (value: string) => void;
21
22
  initialFrequency?: Frequency;
@@ -24,6 +25,7 @@ export interface RecurrenceInputProps {
24
25
  export function RecurrenceInput({
25
26
  disabled = false,
26
27
  date,
28
+ minDate,
27
29
  value,
28
30
  onChange,
29
31
  initialFrequency = Frequency.WEEKLY,
@@ -82,6 +84,7 @@ export function RecurrenceInput({
82
84
  )}
83
85
  <RecurrenceEndInput
84
86
  date={date}
87
+ minDate={minDate}
85
88
  frequency={state.freq}
86
89
  until={state.until && DateTime.fromJSDate(state.until).toISODate()}
87
90
  count={state.count}
@@ -130,5 +133,12 @@ const getInitialState = ({
130
133
  byweekday = options.byweekday[0];
131
134
  }
132
135
 
133
- return { ...options, byweekday };
136
+ return {
137
+ ...options,
138
+ count:
139
+ options?.count || options.until
140
+ ? options.count
141
+ : defaultOccurrences[options.freq],
142
+ byweekday,
143
+ };
134
144
  };
@@ -2,8 +2,8 @@ import React, { useEffect } from "react";
2
2
  import { DateTime } from "luxon";
3
3
  import { Col, Form, Row } from "react-bootstrap";
4
4
  import { useTranslation } from "react-i18next";
5
- import { useFormContext } from "react-hook-form";
6
- import { DATE_FORMAT, TIME_FULL_FORMAT } from "@licklist/core/dist/Config";
5
+ import { RegisterOptions, useFormContext } from "react-hook-form";
6
+ import { DATE_FORMAT } from "@licklist/core/dist/Config";
7
7
  import { RecurringDatePickerInputValues } from "./RecurringDatePickerInput";
8
8
 
9
9
  interface RecurrenceIntervalAndFrequencyInputProps {
@@ -13,6 +13,14 @@ interface RecurrenceIntervalAndFrequencyInputProps {
13
13
  startTimeLabel?: string;
14
14
  endDateLabel?: string;
15
15
  endTimeLabel?: string;
16
+ startTimeRules?: Pick<
17
+ RegisterOptions,
18
+ "max" | "min" | "validate" | "required" | "pattern"
19
+ >;
20
+ endTimeRules?: Pick<
21
+ RegisterOptions,
22
+ "max" | "min" | "validate" | "required" | "pattern"
23
+ >;
16
24
  }
17
25
 
18
26
  function RecurrenceIntervalAndFrequencyInput({
@@ -22,6 +30,8 @@ function RecurrenceIntervalAndFrequencyInput({
22
30
  startTimeLabel,
23
31
  endDateLabel,
24
32
  endTimeLabel,
33
+ startTimeRules,
34
+ endTimeRules,
25
35
  }: RecurrenceIntervalAndFrequencyInputProps) {
26
36
  const { t } = useTranslation(["Design", "Notification", "App"]);
27
37
 
@@ -30,7 +40,6 @@ function RecurrenceIntervalAndFrequencyInput({
30
40
  formState: { errors },
31
41
  register,
32
42
  trigger,
33
- setValue,
34
43
  } = useFormContext<RecurringDatePickerInputValues>();
35
44
 
36
45
  const startDate = getValues("startDate");
@@ -47,6 +56,9 @@ function RecurrenceIntervalAndFrequencyInput({
47
56
  }, [startDate]);
48
57
 
49
58
  useEffect(() => {
59
+ if (!startTime || !endTime) {
60
+ return;
61
+ }
50
62
  trigger("endTime");
51
63
  // eslint-disable-next-line react-hooks/exhaustive-deps
52
64
  }, [startTime]);
@@ -118,15 +130,15 @@ function RecurrenceIntervalAndFrequencyInput({
118
130
  </Form.Label>
119
131
  <Form.Control
120
132
  type="time"
121
- {...register("startTime", { required: false })}
122
- onChange={({ target: { value } }) => {
123
- setValue("startTime", `${value}:00`);
124
- }}
133
+ {...register("startTime", { required: false, ...startTimeRules })}
125
134
  placeholder="hh:mm"
126
135
  defaultValue={startTime}
127
136
  disabled={disabled}
128
137
  isInvalid={Boolean(errors.startTime)}
129
138
  />
139
+ <Form.Control.Feedback type="invalid">
140
+ {errors.startTime?.message}
141
+ </Form.Control.Feedback>
130
142
  </Form.Group>
131
143
  </Col>
132
144
 
@@ -141,28 +153,19 @@ function RecurrenceIntervalAndFrequencyInput({
141
153
  if (!startTime || !time) {
142
154
  return true;
143
155
  }
144
- const currentStartTime = DateTime.fromFormat(
145
- startTime,
146
- TIME_FULL_FORMAT
147
- );
148
-
149
- const currentEndTime = DateTime.fromFormat(
150
- time,
151
- TIME_FULL_FORMAT
152
- );
156
+ const currentStartTime = DateTime.fromISO(startTime);
157
+ const currentEndTime = DateTime.fromISO(time);
153
158
 
154
- return currentEndTime?.diff(currentStartTime, ["seconds"])
155
- ?.seconds > 0
159
+ return currentEndTime?.diff(currentStartTime, ["minutes"])
160
+ ?.minutes >= 0
156
161
  ? true
157
162
  : `${t(`Validation:fieldLaterDate`, {
158
163
  attribute: t("Design:endTimeSmall"),
159
164
  min: t("Design:startTimeSmall"),
160
165
  })}`;
161
166
  },
167
+ ...endTimeRules,
162
168
  })}
163
- onChange={({ target: { value } }) => {
164
- setValue("endTime", `${value}:59`, { shouldValidate: true });
165
- }}
166
169
  placeholder="hh:mm"
167
170
  defaultValue={endTime}
168
171
  disabled={disabled}
@@ -7,6 +7,7 @@ import { useIntl } from "react-intl";
7
7
  import {
8
8
  DATE_TIME_FORMAT,
9
9
  DATE_TIME_FULL_FORMAT,
10
+ TIME_FULL_FORMAT,
10
11
  } from "@licklist/core/dist/Config/Date";
11
12
  import { usePreviousValue } from "@licklist/plugins/dist/hooks/Value/usePreviousValue";
12
13
  import { FormProvider, useForm } from "react-hook-form";
@@ -38,6 +39,7 @@ export interface RecurringDatePickerInputValues {
38
39
  byweekday?: Weekday[];
39
40
  until?: Date;
40
41
  count?: number;
42
+ withOutEndDate?: boolean;
41
43
  }
42
44
 
43
45
  export function RecurringDatePickerInput({
@@ -101,6 +103,11 @@ export function RecurringDatePickerInput({
101
103
  })
102
104
  : nextState.byweekday;
103
105
 
106
+ const endTimeNextState = nextState?.endTime
107
+ ? DateTime.fromISO(nextState?.endTime).toFormat(TIME_FULL_FORMAT)
108
+ : "";
109
+ const endDateNextState = nextState?.endDate ?? "";
110
+
104
111
  const rrule = RRule.optionsToString({
105
112
  // @TODO: investigate if we need these fields
106
113
  // dtstart: getDateTimeObject(startDate, startTime).toJSDate(),
@@ -115,6 +122,8 @@ export function RecurringDatePickerInput({
115
122
 
116
123
  onChange({
117
124
  ...nextState,
125
+ endDate: endDateNextState,
126
+ endTime: endTimeNextState,
118
127
  rrule,
119
128
  });
120
129
  };
@@ -15,7 +15,7 @@ export function ReportForm({
15
15
  onSubmit,
16
16
  onHide,
17
17
  hasPermission,
18
- }: ReportFormProps): JSX.Element {
18
+ }: ReportFormProps) {
19
19
  const { t } = useTranslation(["App"]);
20
20
  const fromDateInput = useRef<HTMLInputDateElement | null>(null);
21
21
  const toDateInput = useRef<HTMLInputDateElement | null>(null);
@@ -3,6 +3,7 @@ import clsx from "clsx";
3
3
  import { useTranslation } from "react-i18next";
4
4
  import { DateTime } from "luxon";
5
5
  import { Order } from "@licklist/core/dist/DataMapper/Order/OrderDataMapper";
6
+ import { TIME_FORMAT } from "@licklist/core/dist/Config";
6
7
  import { formatDateStringForEvent } from "@licklist/plugins/dist/utils/formatDate";
7
8
  import Icon from "../../../../static/Icon";
8
9
 
@@ -55,10 +56,10 @@ export const ResultCard = ({
55
56
  {t("status")}: {t(status)}
56
57
  </p>
57
58
  <p>
58
- {t("date")}: {formatDateStringForEvent(startDate)}
59
+ {t("date")}: {formatDateStringForEvent(startDate, false)}
59
60
  </p>
60
61
  <p>
61
- {t("time")}: {DateTime.fromISO(startDate).toFormat("hh:MM")}
62
+ {t("time")}: {DateTime.fromISO(startDate).toFormat(TIME_FORMAT)}
62
63
  </p>
63
64
  </div>
64
65
  </div>
@@ -14,6 +14,7 @@ import { DateTime } from "luxon";
14
14
  import { Col, Form, Row } from "react-bootstrap";
15
15
  import { useFormContext } from "react-hook-form";
16
16
  import { useTranslation } from "react-i18next";
17
+ import couponCodeRules from "@licklist/plugins/dist/validation/Rules/couponCodeRules";
17
18
  /* TODO: Show Recurrent date, when reccurent date bugs are fixed */
18
19
  // import { Frequency } from "rrule";
19
20
  // import { RecurrenceInput } from "../../../recurrence-input";
@@ -132,6 +133,10 @@ export const CouponFormControl = ({
132
133
  required: t("Validation:fieldRequired", {
133
134
  attribute: t("Design:code"),
134
135
  }) as string,
136
+ pattern: {
137
+ message: `${t("Validation:fieldCouponCode")}`,
138
+ value: couponCodeRules,
139
+ },
135
140
  })}
136
141
  disabled={isLoading}
137
142
  />
@@ -50,6 +50,7 @@ export const ManualBookingSummary = ({
50
50
  >
51
51
  <div>{order.name}</div>
52
52
  <div>
53
+ {/* @TODO change to order.quantyty||order.quantity * capacity when rely on people BE will be ready */}
53
54
  {order.isRelyOnPeople ? `x ${order.quantity} People` : ""}
54
55
  </div>
55
56
  <div>
@@ -7,6 +7,9 @@ import {
7
7
  SNIPPET_TYPE_VENUE_MAP,
8
8
  } from "@licklist/core/dist/DataMapper/Provider/SnippetDataMapper";
9
9
  import { ProductSet } from "@licklist/core/dist/DataMapper/Product/ProductSetDataMapper";
10
+ import { DateTime } from "luxon";
11
+ import { Calendar, defaultStartDay } from "../../../calendar";
12
+ import { getMonthCalendarDates } from "../../../calendar/utils";
10
13
  import { IframeEventCard } from "../../../iframe/event/event-card";
11
14
  import { SettingButton } from "../settings";
12
15
  import {
@@ -24,7 +27,6 @@ import {
24
27
  } from "../../../iframe";
25
28
  import { NumberInput } from "../../../iframe/order-process/components/CategoryProduct/components/NumberInput";
26
29
  import { SnippetTemplateContext } from "../context/snippetTemplate";
27
- import { EventCalendar } from "../../../iframe/event/event-calendar";
28
30
 
29
31
  const DEFAULT_IMAGE =
30
32
  "https://images.unsplash.com/photo-1638988319382-90e61be77c59?ixlib=rb-1.2.1&auto=format&fit=crop&w=687&q=80";
@@ -52,6 +54,10 @@ export function Preview({
52
54
  onSettingClick();
53
55
  };
54
56
 
57
+ const [currentDate, setCurrentDate] = useState<DateTime>(defaultStartDay);
58
+ const [selectedDate, setSelectedDate] = useState<DateTime | null>(null);
59
+ const calendarDates = getMonthCalendarDates(currentDate);
60
+
55
61
  return (
56
62
  <div className="w-100 h-100 snippet-template-preview">
57
63
  <Page
@@ -196,7 +202,13 @@ export function Preview({
196
202
  className="mt-3 m-0"
197
203
  containerClassName="mt-5 pt-5"
198
204
  >
199
- <EventCalendar />
205
+ <Calendar
206
+ currentDate={currentDate}
207
+ setCurrentDate={setCurrentDate}
208
+ selectedDate={selectedDate}
209
+ setSelectedDate={setSelectedDate}
210
+ calendarDates={calendarDates}
211
+ />
200
212
  </SettingButton>
201
213
  </div>
202
214
  <div className="pt-4">
@@ -4,7 +4,7 @@ import RouteService from "@licklist/plugins/dist/services/Route/RouteService";
4
4
  import { useTranslation } from "react-i18next";
5
5
  import Icon from "./Icon";
6
6
 
7
- function RestrictedAccess(): JSX.Element {
7
+ function RestrictedAccess() {
8
8
  const { t } = useTranslation("Design");
9
9
 
10
10
  return (
@@ -15,6 +15,7 @@ interface FormNumberInputProps {
15
15
  label: string;
16
16
  fieldName: string;
17
17
  step?: number;
18
+ onChange?: (value: number) => void;
18
19
  disabled?: boolean;
19
20
  rules?: Pick<
20
21
  RegisterOptions,
@@ -28,6 +29,7 @@ export const FormNumberInput = ({
28
29
  step = 1,
29
30
  rules,
30
31
  disabled,
32
+ onChange,
31
33
  }: FormNumberInputProps) => {
32
34
  const controlId = useId();
33
35
  const { t } = useTranslation("Validation");
@@ -76,7 +78,12 @@ export const FormNumberInput = ({
76
78
  disabled={disabled}
77
79
  isInvalid={HookFormService.isInvalid(fieldName, errors)}
78
80
  {...field}
79
- onChange={(event) => field.onChange(Number(event.target.value))}
81
+ onChange={(event) => {
82
+ if (onChange) {
83
+ onChange(Number(event.target.value));
84
+ }
85
+ field.onChange(Number(event.target.value));
86
+ }}
80
87
  onFocus={onFocus}
81
88
  />
82
89
  )}
@@ -11,7 +11,7 @@
11
11
  word-wrap: break-word;
12
12
  background-color: #fff;
13
13
  font-size: 0.8rem;
14
- color: $snippet-elements-body-color;
14
+ background-color: $snippet-product-set-background-color;
15
15
 
16
16
  div {
17
17
  text-align: left;
@@ -6,8 +6,9 @@
6
6
  align-items: center;
7
7
  cursor: pointer;
8
8
  height: 5rem;
9
+ padding: 0.375rem;
9
10
  border: 2px solid transparent;
10
- border: 2px solid transparent;
11
+ border-radius: 0.5rem;
11
12
  background-color: $snippet-product-set-background-color;
12
13
  color: $snippet-product-set-font-color;
13
14
  transition: $color-transition;
@@ -0,0 +1,2 @@
1
+ @import "./GridActivitiesCard.scss";
2
+ @import "./ListActivitiesCard.scss";
@@ -0,0 +1,7 @@
1
+ .availability-indicator {
2
+ display: flex;
3
+ justify-content: center;
4
+ align-items: center;
5
+ gap: 0.5rem;
6
+ font-weight: 300;
7
+ }
@@ -0,0 +1 @@
1
+ @import "./AvailabilityIndicator.scss";
@@ -86,6 +86,12 @@
86
86
  max-width: 5.3rem;
87
87
  min-height: 2.75rem;
88
88
  }
89
+
90
+ &.calendar-view {
91
+ min-width: auto;
92
+ max-width: none;
93
+ min-height: auto;
94
+ }
89
95
  }
90
96
 
91
97
  .time {
@@ -99,15 +105,3 @@
99
105
  font-weight: 300;
100
106
  color: $snippet-calendar-button-font-color;
101
107
  }
102
-
103
- .info {
104
- display: flex;
105
- justify-content: center;
106
- font-weight: 300;
107
- flex-direction: row;
108
-
109
- .logo {
110
- width: 0.5rem;
111
- margin-right: 0.5rem;
112
- }
113
- }
@@ -0,0 +1 @@
1
+ @import "./DateTimeButton.scss";
@@ -1,6 +1,7 @@
1
1
  .custom-checkbox {
2
2
  margin-top: 1rem;
3
3
  display: flex;
4
+ z-index: 2;
4
5
  align-items: center;
5
6
 
6
7
  .custom-checkbox .custom-control-label::before {
@@ -21,4 +22,8 @@
21
22
  font-weight: 400;
22
23
  font-size: 0.875rem;
23
24
  }
25
+
26
+ .checkbox-input {
27
+ z-index: 2;
28
+ }
24
29
  }
@@ -11,10 +11,6 @@
11
11
  }
12
12
  }
13
13
 
14
- svg {
15
- max-height: 1rem;
16
- }
17
-
18
14
  .navbar-nav {
19
15
  line-height: 1;
20
16
  margin-top: 4px;
@@ -142,6 +142,7 @@
142
142
  .card-body {
143
143
  padding: 0;
144
144
  margin: 0 0 auto;
145
+ margin-top: 1rem;
145
146
  }
146
147
  }
147
148
 
@@ -199,7 +199,8 @@
199
199
  color: $snippet-elements-button-color;
200
200
  border: none;
201
201
  background-color: $snippet-elements-button-background-color;
202
- box-shadow: 0 0 0 $input-btn-focus-width $snippet-elements-button-background-color;
202
+ box-shadow: 0 0 0 $input-btn-focus-width
203
+ $snippet-elements-button-background-color;
203
204
  }
204
205
 
205
206
  &:disabled {
@@ -234,7 +235,7 @@
234
235
  font-weight: 500;
235
236
  border-radius: 0.25rem;
236
237
  font-size: 0.875rem;
237
- height: 2.25rem;
238
+ min-height: 2.25rem;
238
239
 
239
240
  &:focus {
240
241
  box-shadow: unset;
@@ -15,6 +15,10 @@
15
15
  display: none !important;
16
16
  }
17
17
  }
18
+
19
+ &.is-invalid {
20
+ border-color: theme-color("danger");
21
+ }
18
22
  }
19
23
 
20
24
  .placeholder-row {
@@ -13,7 +13,6 @@
13
13
  @import "./static";
14
14
  @import "./table";
15
15
  @import "./back-button";
16
- @import "./iframe-customers-journey";
17
16
  @import "./custom-fields";
18
17
  @import "./file-upload";
19
18
  @import "./iframe-events";
@@ -41,3 +40,6 @@
41
40
  @import "./striped-static-table/";
42
41
  @import "./image-radio-input/";
43
42
  @import "./radio-card/";
43
+ @import "./activity-card/";
44
+ @import "./date-time-button/";
45
+ @import "./availability-indicator/";
@@ -7,6 +7,11 @@
7
7
  overflow: auto;
8
8
  }
9
9
 
10
+ .modal-form-content {
11
+ max-height: 21rem;
12
+ overflow-x: hidden;
13
+ }
14
+
10
15
  .reccurrence-interval-container {
11
16
  .form-group {
12
17
  margin-bottom: 0.5rem;
@@ -46,6 +46,7 @@
46
46
  .header {
47
47
  background-color: color("white");
48
48
  padding: 0 2.5rem;
49
+ z-index: 2;
49
50
  min-height: 4rem;
50
51
  border-bottom: 1px solid #f0f0f0;
51
52
  }
package/src/typings.d.ts CHANGED
@@ -28,3 +28,14 @@ declare module "*.json" {
28
28
 
29
29
  declare module "react-phone-number-input/input";
30
30
  declare module "react-phone-number-input/commonjs/Flag";
31
+
32
+ // @TODO: this is a hofix for the following issue:
33
+ // licklist_workspace_frontend/packages/design/src/product-set/hooks/useSortableTreeFunctions.ts(17,34):
34
+ // semantic error TS2304: Cannot find name 'structuredClone'.
35
+ interface WindowOrWorkerGlobalScope {
36
+ structuredClone(value: any, options?: StructuredSerializeOptions): any;
37
+ }
38
+ declare function structuredClone(
39
+ value: any,
40
+ options?: StructuredSerializeOptions
41
+ ): any;
@@ -39,7 +39,8 @@ const WrappedVirtualizedWindowScroller = ({
39
39
  if (!onDataUpdate) return;
40
40
 
41
41
  onDataUpdate();
42
- }, [windowDimensions, scrollElement, gridRef, onDataUpdate]);
42
+ // eslint-disable-next-line react-hooks/exhaustive-deps
43
+ }, [windowDimensions]);
43
44
 
44
45
  return (
45
46
  <WindowScroller scrollElement={scrollElement}>