@licklist/design 0.58.9 → 0.58.11-dev.0

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 (259) hide show
  1. package/bitbucket-pipelines.yml +0 -8
  2. package/dist/assets/iframe/calendar.svg +2 -2
  3. package/dist/assets/iframe/calendar.svg.js +1 -1
  4. package/dist/assets/iframe/ticket.svg +2 -2
  5. package/dist/assets/iframe/ticket.svg.js +1 -1
  6. package/dist/calendar/Calendar.d.ts +1 -1
  7. package/dist/calendar/Calendar.d.ts.map +1 -1
  8. package/dist/calendar/Calendar.js +1 -1
  9. package/dist/calendar/components/CalendarButtons/CalendarButtons.js +1 -1
  10. package/dist/calendar/components/CalendarDates/CalendarDates.d.ts +2 -2
  11. package/dist/calendar/components/CalendarDates/CalendarDates.d.ts.map +1 -1
  12. package/dist/calendar/components/CalendarDates/CalendarDates.js +1 -1
  13. package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.js +1 -1
  14. package/dist/events/event-statistic-modal/EventStatisticModal.js +1 -1
  15. package/dist/iframe/event/event-card/IframeEventCard.d.ts +2 -1
  16. package/dist/iframe/event/event-card/IframeEventCard.d.ts.map +1 -1
  17. package/dist/iframe/event/event-card/IframeEventCard.js +1 -1
  18. package/dist/iframe/event/event-venue-map/IframeEventVenueMap.js +1 -1
  19. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts +2 -2
  20. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts.map +1 -1
  21. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.js +1 -1
  22. package/dist/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/BookingSummaryAccordion.d.ts +4 -2
  23. package/dist/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/BookingSummaryAccordion.d.ts.map +1 -1
  24. package/dist/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/BookingSummaryAccordion.js +1 -1
  25. package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/components/SummaryTotalBlock.d.ts +1 -1
  26. package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/components/SummaryTotalBlock.d.ts.map +1 -1
  27. package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/components/SummaryTotalBlock.js +1 -1
  28. package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.d.ts +4 -2
  29. package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.d.ts.map +1 -1
  30. package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.js +1 -1
  31. package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts +4 -0
  32. package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts.map +1 -1
  33. package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.js +1 -1
  34. package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js +1 -1
  35. package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.d.ts.map +1 -1
  36. package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.js +1 -1
  37. package/dist/iframe/page/components/PageBody/constants.d.ts +1 -0
  38. package/dist/iframe/page/components/PageBody/constants.d.ts.map +1 -1
  39. package/dist/iframe/page/components/PageBody/constants.js +1 -1
  40. package/dist/iframe/page/components/PageBody/hooks/useResizePageBody.d.ts.map +1 -1
  41. package/dist/iframe/page/components/PageBody/hooks/useResizePageBody.js +1 -1
  42. package/dist/iframe/payment/order-items-table/OrderItemsTable.js +1 -1
  43. package/dist/iframe/payment/order-items-table/utils/paymentSummary.js +1 -1
  44. package/dist/iframe/payment/payment-form/PaymentForm.js +1 -1
  45. package/dist/iframe/payment/payment-page/PaymentPage.d.ts.map +1 -1
  46. package/dist/iframe/payment/payment-page/PaymentPage.js +1 -1
  47. package/dist/iframe/payment/payment-page/PaymentTimer.js +1 -1
  48. package/dist/iframe/payment/payment-status-page/PaymentStatusPage.js +1 -1
  49. package/dist/iframe/ryft/RyftPaymentForm.d.ts.map +1 -1
  50. package/dist/iframe/ryft/RyftPaymentForm.js +1 -1
  51. package/dist/iframe/ryft/utils/ryft-form.d.ts +5 -0
  52. package/dist/iframe/ryft/utils/ryft-form.d.ts.map +1 -0
  53. package/dist/iframe/ryft/utils/ryft-form.js +1 -0
  54. package/dist/index.js +1 -1
  55. package/dist/product-set/card/ProductSetCard.d.ts +2 -1
  56. package/dist/product-set/card/ProductSetCard.d.ts.map +1 -1
  57. package/dist/product-set/card/ProductSetCard.js +1 -1
  58. package/dist/product-set/control/DateAndRecurrenceInput.d.ts.map +1 -1
  59. package/dist/product-set/control/DateAndRecurrenceInput.js +1 -1
  60. package/dist/product-set/control/DateInput.d.ts +17 -0
  61. package/dist/product-set/control/DateInput.d.ts.map +1 -0
  62. package/dist/product-set/control/DateInput.js +1 -0
  63. package/dist/product-set/control/ProductSetControl.d.ts +2 -1
  64. package/dist/product-set/control/ProductSetControl.d.ts.map +1 -1
  65. package/dist/product-set/control/ProductSetControl.js +1 -1
  66. package/dist/product-set/control/ProductSetRecurrenceOverridesControl.d.ts +11 -0
  67. package/dist/product-set/control/ProductSetRecurrenceOverridesControl.d.ts.map +1 -0
  68. package/dist/product-set/control/ProductSetRecurrenceOverridesControl.js +1 -0
  69. package/dist/product-set/control/TutorialGifCard.d.ts +2 -1
  70. package/dist/product-set/control/TutorialGifCard.d.ts.map +1 -1
  71. package/dist/product-set/control/TutorialGifCard.js +1 -1
  72. package/dist/product-set/form/ProductCategoriesControl.d.ts +2 -1
  73. package/dist/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
  74. package/dist/product-set/form/ProductCategoriesControl.js +1 -1
  75. package/dist/product-set/form/ProductSetForm.d.ts +7 -2
  76. package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
  77. package/dist/product-set/form/ProductSetForm.js +1 -1
  78. package/dist/product-set/form/ProductsControl.d.ts +2 -1
  79. package/dist/product-set/form/ProductsControl.d.ts.map +1 -1
  80. package/dist/product-set/form/ProductsControl.js +1 -1
  81. package/dist/product-set/form/StepsControl.d.ts +2 -1
  82. package/dist/product-set/form/StepsControl.d.ts.map +1 -1
  83. package/dist/product-set/form/StepsControl.js +1 -1
  84. package/dist/product-set/form/SubProductsControl.d.ts +2 -1
  85. package/dist/product-set/form/SubProductsControl.d.ts.map +1 -1
  86. package/dist/product-set/form/SubProductsControl.js +1 -1
  87. package/dist/product-set/form/VenueMapsControl.js +1 -1
  88. package/dist/product-set/hooks/useSortableTreeFunctions.d.ts +2 -1
  89. package/dist/product-set/hooks/useSortableTreeFunctions.d.ts.map +1 -1
  90. package/dist/product-set/hooks/useSortableTreeFunctions.js +1 -1
  91. package/dist/product-set/item/CreateProductSetItem.d.ts +2 -1
  92. package/dist/product-set/item/CreateProductSetItem.d.ts.map +1 -1
  93. package/dist/product-set/item/CreateProductSetItem.js +1 -1
  94. package/dist/product-set/product/ProductControl.d.ts +3 -1
  95. package/dist/product-set/product/ProductControl.d.ts.map +1 -1
  96. package/dist/product-set/product/ProductControl.js +1 -1
  97. package/dist/product-set/product/constants.d.ts +1 -0
  98. package/dist/product-set/product/constants.d.ts.map +1 -1
  99. package/dist/product-set/product/constants.js +1 -1
  100. package/dist/product-set/product/fixed-duration-fields/FixedDurationOptions.d.ts +4 -2
  101. package/dist/product-set/product/fixed-duration-fields/FixedDurationOptions.d.ts.map +1 -1
  102. package/dist/product-set/product/fixed-duration-fields/FixedDurationOptions.js +1 -1
  103. package/dist/product-set/product/quantity/ProductQuantityControl.d.ts +1 -0
  104. package/dist/product-set/product/quantity/ProductQuantityControl.d.ts.map +1 -1
  105. package/dist/product-set/product/quantity/ProductQuantityControl.js +1 -1
  106. package/dist/product-set/product-category/ProductCategoryControl.d.ts +3 -1
  107. package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
  108. package/dist/product-set/product-category/ProductCategoryControl.js +1 -1
  109. package/dist/provider/working-hours-input/WorkingHoursInputDescription.d.ts.map +1 -1
  110. package/dist/provider/working-hours-input/WorkingHoursInputDescription.js +1 -1
  111. package/dist/recurring-date-picker-input/DatePickerInput.d.ts +19 -0
  112. package/dist/recurring-date-picker-input/DatePickerInput.d.ts.map +1 -0
  113. package/dist/recurring-date-picker-input/DatePickerInput.js +1 -0
  114. package/dist/recurring-date-picker-input/RecurrenceAndFrequencyInput.d.ts +15 -0
  115. package/dist/recurring-date-picker-input/RecurrenceAndFrequencyInput.d.ts.map +1 -0
  116. package/dist/recurring-date-picker-input/RecurrenceAndFrequencyInput.js +1 -0
  117. package/dist/recurring-date-picker-input/RecurringDatePickerInput.d.ts +5 -1
  118. package/dist/recurring-date-picker-input/RecurringDatePickerInput.d.ts.map +1 -1
  119. package/dist/recurring-date-picker-input/RecurringDatePickerInput.js +1 -1
  120. package/dist/recurring-date-picker-input/utils.d.ts +9 -0
  121. package/dist/recurring-date-picker-input/utils.d.ts.map +1 -1
  122. package/dist/recurring-date-picker-input/utils.js +1 -1
  123. package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
  124. package/dist/sales/booking/results/components/ResultCard.js +1 -1
  125. package/dist/sales/notes/NotesTableRow.js +1 -1
  126. package/dist/setting/admin/AdminSettingForm.d.ts +2 -2
  127. package/dist/setting/admin/AdminSettingForm.d.ts.map +1 -1
  128. package/dist/setting/dashboard/snippets/card/SnippetCard.js +1 -1
  129. package/dist/snippet/snippet-template/control/PropertyControl.d.ts +3 -1
  130. package/dist/snippet/snippet-template/control/PropertyControl.d.ts.map +1 -1
  131. package/dist/snippet/snippet-template/control/PropertyControl.js +1 -1
  132. package/dist/snippet/snippet-template/preview/Preview.js +1 -1
  133. package/dist/sortable-list/SortableList.d.ts +2 -1
  134. package/dist/sortable-list/SortableList.d.ts.map +1 -1
  135. package/dist/sortable-list/SortableList.js +1 -1
  136. package/dist/sortable-tree/SortableTreeItem.d.ts +3 -1
  137. package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
  138. package/dist/sortable-tree/SortableTreeItem.js +1 -1
  139. package/dist/static/manual-date-picker/ManualDatePicker.js +1 -1
  140. package/dist/static/manual-date-picker/constants/index.d.ts +4 -1
  141. package/dist/static/manual-date-picker/constants/index.d.ts.map +1 -1
  142. package/dist/static/manual-date-picker/constants/index.js +1 -1
  143. package/dist/static/manual-date-picker/utils/index.d.ts +4 -0
  144. package/dist/static/manual-date-picker/utils/index.d.ts.map +1 -1
  145. package/dist/static/manual-date-picker/utils/index.js +1 -1
  146. package/dist/striped-static-table/StripedStaticTable.js +1 -1
  147. package/dist/styles/iframe-events/Card.scss +24 -8
  148. package/dist/styles/iframe-events/PoweredBy.scss +2 -2
  149. package/dist/styles/iframe-order-process/IframeOrderProcess.scss +57 -20
  150. package/dist/styles/iframe-page/Page.scss +1 -0
  151. package/dist/styles/iframe-page/PageBody.scss +34 -12
  152. package/dist/styles/iframe-page/PageHeader.scss +41 -39
  153. package/dist/styles/product-set/EditVenueMapSetModal.scss +1 -1
  154. package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +125 -2
  155. package/dist/styles/sales/BookingResults.scss +1 -1
  156. package/dist/venue-map-sets/form/components/VenueMapImageControl.js +1 -1
  157. package/dist/zone/form/utils/dates.d.ts.map +1 -1
  158. package/package.json +10 -35
  159. package/src/assets/iframe/calendar.svg +2 -2
  160. package/src/assets/iframe/ticket.svg +2 -2
  161. package/src/calendar/Calendar.stories.tsx +23 -0
  162. package/src/calendar/Calendar.tsx +5 -5
  163. package/src/calendar/components/CalendarDates/CalendarDates.tsx +0 -5
  164. package/src/iframe/event/event-card/IframeEventCard.stories.tsx +1 -0
  165. package/src/iframe/event/event-card/IframeEventCard.tsx +7 -8
  166. package/src/iframe/order-process/components/BookingSummary/BookingSummary.stories.tsx +9 -0
  167. package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +58 -7
  168. package/src/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/BookingSummaryAccordion.tsx +8 -0
  169. package/src/iframe/order-process/components/BookingSummary/components/SummaryTotal/components/SummaryTotalBlock.tsx +4 -4
  170. package/src/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.tsx +63 -10
  171. package/src/iframe/order-process/components/BookingSummary/types/index.ts +4 -0
  172. package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +1 -1
  173. package/src/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.tsx +3 -1
  174. package/src/iframe/page/components/PageBody/constants.ts +2 -0
  175. package/src/iframe/page/components/PageBody/hooks/useResizePageBody.ts +10 -0
  176. package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +6 -6
  177. package/src/iframe/payment/payment-page/PaymentPage.stories.tsx +546 -6
  178. package/src/iframe/payment/payment-page/PaymentPage.tsx +38 -29
  179. package/src/iframe/ryft/RyftPaymentForm.tsx +11 -5
  180. package/src/iframe/ryft/utils/ryft-form.ts +47 -0
  181. package/src/product-set/card/ProductSetCard.tsx +12 -1
  182. package/src/product-set/control/DateAndRecurrenceInput.tsx +2 -1
  183. package/src/product-set/control/DateInput.tsx +316 -0
  184. package/src/product-set/control/ProductSetControl.tsx +46 -24
  185. package/src/product-set/control/ProductSetRecurrenceOverridesControl.tsx +63 -0
  186. package/src/product-set/control/TutorialGifCard.tsx +11 -3
  187. package/src/product-set/form/ProductCategoriesControl.tsx +12 -1
  188. package/src/product-set/form/ProductSetForm.tsx +10 -1
  189. package/src/product-set/form/ProductsControl.tsx +10 -0
  190. package/src/product-set/form/StepsControl.tsx +8 -2
  191. package/src/product-set/form/SubProductsControl.tsx +3 -0
  192. package/src/product-set/hooks/useSortableTreeFunctions.ts +6 -0
  193. package/src/product-set/item/CreateProductSetItem.tsx +3 -0
  194. package/src/product-set/product/ProductControl.tsx +48 -15
  195. package/src/product-set/product/constants.ts +1 -0
  196. package/src/product-set/product/fixed-duration-fields/FixedDurationOptions.tsx +8 -2
  197. package/src/product-set/product/quantity/ProductQuantityControl.tsx +4 -3
  198. package/src/product-set/product-category/ProductCategoryControl.tsx +116 -50
  199. package/src/provider/working-hours-input/WorkingHoursInputDescription.tsx +4 -18
  200. package/src/recurring-date-picker-input/DatePickerInput.tsx +93 -0
  201. package/src/recurring-date-picker-input/RecurrenceAndFrequencyInput.tsx +136 -0
  202. package/src/recurring-date-picker-input/RecurringDatePickerInput.tsx +15 -2
  203. package/src/recurring-date-picker-input/utils.ts +75 -0
  204. package/src/sales/booking/results/BookingResults.stories.tsx +3 -2
  205. package/src/sales/booking/results/components/ResultCard.tsx +2 -5
  206. package/src/setting/admin/AdminSettingForm.tsx +2 -2
  207. package/src/snippet/snippet-template/control/PropertyControl.tsx +6 -2
  208. package/src/sortable-list/SortableList.tsx +3 -0
  209. package/src/sortable-tree/SortableTreeItem.tsx +12 -4
  210. package/src/static/manual-date-picker/ManualDatePicker.tsx +3 -3
  211. package/src/static/manual-date-picker/constants/index.ts +6 -2
  212. package/src/static/manual-date-picker/utils/index.ts +11 -0
  213. package/src/static/switch/BooleanSwitch.tsx +1 -1
  214. package/src/styles/iframe-events/Card.scss +24 -8
  215. package/src/styles/iframe-events/PoweredBy.scss +2 -2
  216. package/src/styles/iframe-order-process/IframeOrderProcess.scss +57 -20
  217. package/src/styles/iframe-page/Page.scss +1 -0
  218. package/src/styles/iframe-page/PageBody.scss +34 -12
  219. package/src/styles/iframe-page/PageHeader.scss +41 -39
  220. package/src/styles/product-set/EditVenueMapSetModal.scss +1 -1
  221. package/src/styles/ryft-payment-form/RyftPaymentForm.scss +125 -2
  222. package/src/styles/sales/BookingResults.scss +1 -1
  223. package/src/zone/form/utils/dates.ts +9 -10
  224. package/jest.config.js +0 -29
  225. package/tests/Auth/Authorizer.test.tsx +0 -194
  226. package/tests/Auth/Layout/UserNavDropDown.test.tsx +0 -43
  227. package/tests/Auth/Layout/UserNavDropDownToggle.test.tsx +0 -33
  228. package/tests/Auth/Login/LoginComponent.test.tsx +0 -246
  229. package/tests/Auth/Login/LoginFormComponent.test.tsx +0 -182
  230. package/tests/Auth/Register/RegisterComponent.test.tsx +0 -285
  231. package/tests/Auth/Register/RegisterFormComponent.test.tsx +0 -170
  232. package/tests/Auth/Settings/Dashboard/IpInput.test.tsx +0 -130
  233. package/tests/Auth/Social/SocialCallbackComponent.test.tsx +0 -133
  234. package/tests/Auth/Social/SocialFormComponent.test.tsx +0 -118
  235. package/tests/FileUpload/FileUpload.test.tsx +0 -42
  236. package/tests/Notification/EmailTemplate.test.tsx +0 -82
  237. package/tests/ProductSet/ProductSetPopover.test.tsx +0 -40
  238. package/tests/Report/Report.test.tsx +0 -48
  239. package/tests/Sales/Coupon.test.tsx +0 -51
  240. package/tests/Sales/SalesAndVIews.test.tsx +0 -63
  241. package/tests/SnippetTemplates/SnippetTemplates.test.tsx +0 -56
  242. package/tests/Table/FilterHelperComponent.test.tsx +0 -88
  243. package/tests/Table/PaginationHelperComponent.test.tsx +0 -109
  244. package/tests/Table/PerPageHelperComponent.test.tsx +0 -34
  245. package/tests/Table/TableHelperComponent.test.tsx +0 -295
  246. package/tests/TipTapEditor/TipTapEditor.test.tsx +0 -28
  247. package/tests/__mock__/hooks/useAuthApi.ts +0 -13
  248. package/tests/__mock__/hooks/useAuthMock.ts +0 -13
  249. package/tests/__mock__/hooks/useFormMock.ts +0 -27
  250. package/tests/__mock__/hooks/useNotificationMock.ts +0 -13
  251. package/tests/__mock__/hooks/useQueryMock.ts +0 -16
  252. package/tests/__mock__/hooks/useSocialApiMock.ts +0 -20
  253. package/tests/__mock__/hooks/useTranslationMock.ts +0 -17
  254. package/tests/__mock__/hooks/useUserApiMock.ts +0 -18
  255. package/tests/__mock__/hooks/useUserMock.ts +0 -13
  256. package/tests/__mock__/styleMock.js +0 -1
  257. package/tests/__mock__/windowMock.ts +0 -5
  258. package/tests/packages/react-query.tsx +0 -28
  259. package/tests/setupTests.ts +0 -10
@@ -91,7 +91,7 @@
91
91
  }
92
92
 
93
93
  @include media-breakpoint-down(sm) {
94
- top: 50%;
94
+ top: 100%;
95
95
 
96
96
  .step-save-btn {
97
97
  width: 100%;
@@ -1,10 +1,52 @@
1
1
  .payment_link {
2
+ padding: 0 0 1rem 0;
3
+
4
+ .button-wrapper {
5
+ top: 2rem;
6
+ right: 2rem;
7
+ position: absolute;
8
+ z-index: 100;
9
+ }
10
+
2
11
  .page-body {
12
+ padding: 0;
13
+ height: calc(100vh - 2rem) !important;
14
+
15
+ .navigation {
16
+ display: block;
17
+ @include media-breakpoint-down(sm) {
18
+ padding: 0;
19
+ }
20
+ }
21
+
22
+ .right-block {
23
+ margin-left: 0;
24
+ height: calc(100vh - 2rem);
25
+ max-height: calc(100vh - 1rem);
26
+ @include media-breakpoint-down(sm) {
27
+ width: calc(100% - 2rem);
28
+ max-width: unset;
29
+ position: inherit;
30
+ overflow: visible;
31
+ margin: 0 1rem 1rem;
32
+ height: unset;
33
+ min-height: unset;
34
+ max-height: 100%;
35
+ }
36
+ }
37
+
3
38
  .left-block {
4
39
  .left-block-container {
5
40
  position: relative;
6
41
  max-height: 100%;
7
42
 
43
+ .payment-title {
44
+ font-size: 0.875rem;
45
+ font-weight: 600;
46
+ align-items: center;
47
+ margin-left: 0.5rem;
48
+ }
49
+
8
50
  .ryft-payment-form {
9
51
  .submit-button-wrapper {
10
52
  margin: -1rem 0 1rem;
@@ -13,7 +55,55 @@
13
55
  width: 100%;
14
56
  }
15
57
  }
58
+ #mobile-pay-divider-container {
59
+ display: flex;
60
+ position: relative;
61
+ margin-bottom: 1rem;
62
+ #mobile-pay-divider-text {
63
+ margin-right: 1rem;
64
+ font-size: 0.875rem;
65
+ font-weight: 600;
66
+ }
67
+ #mobile-pay-divider {
68
+ width: 100%;
69
+ border-bottom: 1px #dfdfdf solid;
70
+ margin-bottom: 0.6rem;
71
+ }
72
+ }
16
73
 
74
+ #card-title-container {
75
+ height: auto;
76
+ border: none;
77
+ margin-bottom: 0.5rem;
78
+ text-align: left;
79
+ :first-child {
80
+ font-size: 1rem;
81
+ font-weight: 600;
82
+ margin-bottom: 1rem;
83
+ }
84
+
85
+ .form-label {
86
+ margin-bottom: 0.5rem;
87
+ }
88
+ }
89
+ .mobile-pay-title {
90
+ display: block;
91
+ font-weight: 600;
92
+ font-size: 1rem;
93
+ color: black;
94
+ padding: 0;
95
+ font-style: normal;
96
+ font-family: inherit;
97
+ margin-bottom: 1rem;
98
+ }
99
+ }
100
+ .form {
101
+ .input {
102
+ border: 2px solid #525252 !important;
103
+ }
104
+ }
105
+
106
+ .ryft-payment-form {
17
107
  @include media-breakpoint-up(md) {
18
108
  .submit-button-wrapper {
19
109
  max-width: 15.5rem;
@@ -22,10 +112,9 @@
22
112
 
23
113
  // it's style for Google and Apple pay container, for unknown reasons we can't move this html elements with appendChild or replaceChild
24
114
  .ryft-pay-grid {
25
- position: absolute !important;
26
- top: 10rem;
27
115
  width: 100%;
28
116
  max-width: 15.5rem;
117
+ margin-bottom: 1rem;
29
118
  }
30
119
  .ryft-pay-apple-pay-button {
31
120
  border-radius: 0.25rem;
@@ -36,6 +125,36 @@
36
125
  display: none !important;
37
126
  }
38
127
  }
128
+ @include media-breakpoint-down(sm) {
129
+ .left-block-container {
130
+ max-height: 100%;
131
+ overflow: visible;
132
+ }
133
+ }
134
+ }
135
+
136
+ @include media-breakpoint-down(sm) {
137
+ flex-direction: column-reverse;
138
+ overflow: scroll;
139
+
140
+ @include media-breakpoint-down(sm) {
141
+ .left-block {
142
+ min-height: 100%;
143
+ }
144
+ .right-block {
145
+ margin: 0 auto;
146
+ width: 100%;
147
+ .children-wrapper {
148
+ .accordion {
149
+ .collapse {
150
+ overflow: visible;
151
+ overflow-x: unset;
152
+ scrollbar-width: unset;
153
+ }
154
+ }
155
+ }
156
+ }
157
+ }
39
158
  }
40
159
  }
41
160
  ::-webkit-scrollbar {
@@ -62,3 +181,7 @@
62
181
  }
63
182
  }
64
183
  }
184
+
185
+ #ryft-threeDSMethodIframe {
186
+ display: none;
187
+ }
@@ -5,7 +5,7 @@
5
5
  flex-wrap: wrap;
6
6
 
7
7
  .result-card {
8
- height: 14.25rem;
8
+ height: 14rem;
9
9
  border: 1px solid $gray-400;
10
10
  max-width: calc(50% - 0.75rem);
11
11
  flex: 0 0 calc(50% - 0.75rem);
@@ -53,18 +53,17 @@ export const getCheckboxesByWorkHours = (workHours?: WorkHour[]) => {
53
53
  if (!workHours || !workHours.length)
54
54
  return getTimeCheckboxRanges(DEFAULT_START_DAY_TIME, DEFAULT_END_DAY_TIME);
55
55
 
56
- const providerWorkHoursByWeek = workHours.reduce(
57
- (workHoursNextArray: { start: string; end: string }[], currentWorkHour) => {
58
- const { start, end } = currentWorkHour;
56
+ const providerWorkHoursByWeek = workHours.reduce<
57
+ { start: string; end: string }[]
58
+ >((workHoursNextArray, currentWorkHour) => {
59
+ const { start, end } = currentWorkHour;
59
60
 
60
- if (start && end) {
61
- return [...workHoursNextArray, { start, end }];
62
- }
61
+ if (start && end) {
62
+ return [...workHoursNextArray, { start, end }];
63
+ }
63
64
 
64
- return workHoursNextArray;
65
- },
66
- []
67
- );
65
+ return workHoursNextArray;
66
+ }, []);
68
67
 
69
68
  // If venue has filled only 1 work day from wee
70
69
  // For another days we use default 00:00 and 23:59
package/jest.config.js DELETED
@@ -1,29 +0,0 @@
1
- // For a detailed explanation regarding each configuration property, visit:
2
- // https://jestjs.io/docs/en/configuration.html
3
-
4
- module.exports = {
5
- modulePathIgnorePatterns: ["/dist/"],
6
- roots: ["<rootDir>/src", "<rootDir>/tests"],
7
- globals: {
8
- "ts-jest": {
9
- isolatedModules: true,
10
- babelConfig: {
11
- presets: ["@babel/preset-env", "@babel/preset-react"],
12
- },
13
- },
14
- },
15
- transform: {
16
- "^.+\\.(t|j)sx?$": "ts-jest",
17
- },
18
- transformIgnorePatterns: [
19
- "node_modules/(?!(redux-persist)/)",
20
- "node_modules/(?!(@licklist)/)",
21
- ],
22
- testRegex: ["(\\/tests\\/.*.(test|spec))\\.tsx?$"],
23
- moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
24
- setupFilesAfterEnv: ["<rootDir>/tests/setupTests.ts"],
25
- moduleNameMapper: {
26
- "^.+\\.(css|scss|sass|less)$": "<rootDir>/tests/__mock__/styleMock.js",
27
- ".+\\.(svg|png|jpg)$": "identity-obj-proxy",
28
- },
29
- };
@@ -1,194 +0,0 @@
1
- import RouteService from "@licklist/plugins/dist/services/Route/RouteService";
2
- import { mount, shallow } from "enzyme";
3
- import * as React from "react";
4
- import { act } from "react-dom/test-utils";
5
- import { QueryClientProvider } from "react-query";
6
- import { Authorizer } from "../../src/auth/Authorizer";
7
- import useAuthMock from "../__mock__/hooks/useAuthMock";
8
- import useUserMock from "../__mock__/hooks/useUserMock";
9
- import useAuthApi from "../__mock__/hooks/useAuthApi";
10
- import { queryClient } from "../packages/react-query";
11
-
12
- jest.mock("react-i18next", () => ({
13
- Trans: jest.fn().mockReturnValue("test"),
14
- useTranslation: () => ({
15
- t: jest.fn((arg) => arg),
16
- }),
17
- }));
18
- jest.mock("@licklist/plugins/dist/context/user/hooks/useAuth");
19
- jest.mock("@licklist/plugins/dist/context/user/hooks/useUser");
20
- jest.mock("@licklist/plugins/dist/hooks/Api/useAuthApi");
21
-
22
- const DEFAULT_PROFILE_RESPONSE = {
23
- useProfile: () => ({
24
- isLoading: false,
25
- isFetching: false,
26
- isError: false,
27
- data: { access_token: "test" },
28
- }),
29
- };
30
-
31
- const DEFAULT_PROFILE_LOADING_RESPONSE = {
32
- useProfile: () => ({
33
- isLoading: true,
34
- isFetching: false,
35
- isError: false,
36
- data: { access_token: "test" },
37
- }),
38
- };
39
-
40
- describe("Authorizer", () => {
41
- it("should be rendered without issues", () => {
42
- useAuthMock({
43
- secrets: null,
44
- });
45
- useUserMock({
46
- profile: null,
47
- });
48
- useAuthApi(DEFAULT_PROFILE_LOADING_RESPONSE);
49
-
50
- const component = shallow(
51
- <QueryClientProvider client={queryClient}>
52
- <Authorizer />
53
- </QueryClientProvider>
54
- );
55
-
56
- expect(component.exists()).toBeTruthy();
57
- });
58
-
59
- it("should render children if authorized", () => {
60
- let component: any;
61
-
62
- useAuthMock({
63
- secrets: "not-null",
64
- });
65
- useUserMock({
66
- profile: "not-null",
67
- });
68
- useAuthApi(DEFAULT_PROFILE_LOADING_RESPONSE);
69
-
70
- RouteService.getCurrentPage = jest.fn();
71
- RouteService.getCurrentRoute = jest.fn();
72
- RouteService.cleanRedirect = jest.fn();
73
-
74
- act(() => {
75
- component = mount(
76
- <QueryClientProvider client={queryClient}>
77
- <Authorizer>
78
- <p>test</p>
79
- </Authorizer>
80
- </QueryClientProvider>
81
- );
82
- });
83
-
84
- component.update();
85
-
86
- expect(RouteService.getCurrentPage).toHaveBeenCalledTimes(0);
87
- expect(RouteService.getCurrentRoute).toHaveBeenCalledTimes(0);
88
- expect(RouteService.cleanRedirect).toHaveBeenCalledTimes(0);
89
- expect(component.exists()).toBeTruthy();
90
- expect(component.find("BlockLoader").exists()).toBeTruthy();
91
- });
92
-
93
- it("should render children if current page is login", () => {
94
- let component: any;
95
-
96
- useAuthMock({
97
- secrets: null,
98
- });
99
- useUserMock({
100
- profile: null,
101
- });
102
- useAuthApi(DEFAULT_PROFILE_LOADING_RESPONSE);
103
-
104
- RouteService.getCurrentPage = jest.fn().mockReturnValue("/login");
105
- RouteService.getCurrentRoute = jest.fn();
106
- RouteService.cleanRedirect = jest.fn();
107
-
108
- act(() => {
109
- component = mount(
110
- <QueryClientProvider client={queryClient}>
111
- <Authorizer>
112
- <p>test</p>
113
- </Authorizer>
114
- </QueryClientProvider>
115
- );
116
- });
117
-
118
- component.update();
119
-
120
- expect(RouteService.getCurrentPage).toHaveBeenCalledTimes(0);
121
- expect(RouteService.getCurrentRoute).toHaveBeenCalledTimes(0);
122
- expect(RouteService.cleanRedirect).toHaveBeenCalledTimes(0);
123
- expect(component.exists()).toBeTruthy();
124
- expect(component.find("BlockLoader").exists()).toBeTruthy();
125
- });
126
-
127
- it("should NOT render children if profile is loading or fetching", () => {
128
- let component: any;
129
-
130
- useAuthMock({
131
- secrets: null,
132
- });
133
- useUserMock({
134
- profile: null,
135
- });
136
- useAuthApi(DEFAULT_PROFILE_LOADING_RESPONSE);
137
-
138
- RouteService.getCurrentPage = jest.fn();
139
- RouteService.getCurrentRoute = jest.fn();
140
- RouteService.cleanRedirect = jest.fn();
141
-
142
- act(() => {
143
- component = mount(
144
- <QueryClientProvider client={queryClient}>
145
- <Authorizer>
146
- <p>test</p>
147
- </Authorizer>
148
- </QueryClientProvider>
149
- );
150
- });
151
-
152
- component.update();
153
-
154
- expect(RouteService.getCurrentPage).toHaveBeenCalledTimes(0);
155
- expect(RouteService.getCurrentRoute).toHaveBeenCalledTimes(0);
156
- expect(RouteService.cleanRedirect).toHaveBeenCalledTimes(0);
157
- expect(component.exists()).toBeTruthy();
158
- expect(component.find("BlockLoader").exists()).toBeTruthy();
159
- });
160
-
161
- it("should NOT render children if unauthorized and current page is not login", () => {
162
- let component: any;
163
-
164
- useAuthMock({
165
- secrets: null,
166
- });
167
- useUserMock({
168
- profile: null,
169
- });
170
- useAuthApi(DEFAULT_PROFILE_RESPONSE);
171
-
172
- RouteService.getCurrentPage = jest.fn();
173
- RouteService.getCurrentRoute = jest.fn();
174
- RouteService.cleanRedirect = jest.fn();
175
-
176
- act(() => {
177
- component = mount(
178
- <QueryClientProvider client={queryClient}>
179
- <Authorizer>
180
- <p>test</p>
181
- </Authorizer>
182
- </QueryClientProvider>
183
- );
184
- });
185
-
186
- component.update();
187
-
188
- expect(RouteService.getCurrentPage).toHaveBeenCalledTimes(3);
189
- expect(RouteService.getCurrentRoute).toHaveBeenCalledTimes(1);
190
- expect(RouteService.cleanRedirect).toHaveBeenCalledTimes(1);
191
- expect(component.exists()).toBeTruthy();
192
- expect(component.find("BlockLoader").exists()).toBeTruthy();
193
- });
194
- });
@@ -1,43 +0,0 @@
1
- import RouteService from "@licklist/plugins/dist/services/Route/RouteService";
2
- import { mount, shallow } from "enzyme";
3
- import * as React from "react";
4
- import useTranslationMock from "../../__mock__/hooks/useTranslationMock";
5
- import useUserMock from "../../__mock__/hooks/useUserMock";
6
- import { UserNavDropDown } from "../../../src/auth/Layout/UserNavDropDown";
7
-
8
- jest.mock("react-i18next");
9
- jest.mock("@licklist/plugins/dist/context/user/hooks/useUser");
10
-
11
- describe("UserNavDropDown", () => {
12
- it("should be rendered without issues", () => {
13
- useTranslationMock({
14
- t: jest.fn(),
15
- });
16
- useUserMock({
17
- profile: null,
18
- });
19
-
20
- const component = shallow(<UserNavDropDown />);
21
-
22
- expect(component.exists()).toBeTruthy();
23
- });
24
-
25
- it("should logout on click", () => {
26
- useTranslationMock({
27
- t: jest.fn(),
28
- });
29
- useUserMock({
30
- logout: jest.fn(),
31
- });
32
-
33
- RouteService.redirectTo = jest.fn();
34
-
35
- const component = mount(<UserNavDropDown />);
36
-
37
- expect(component.exists()).toBeTruthy();
38
-
39
- component.children().prop("onClick")();
40
-
41
- expect(RouteService.redirectTo).toHaveBeenCalledTimes(1);
42
- });
43
- });
@@ -1,33 +0,0 @@
1
- import { IUser } from "@licklist/plugins/dist/types/context/user/IUser";
2
- import { shallow } from "enzyme";
3
- import * as React from "react";
4
- import { UserNavDropDownToggle } from "../../../src/auth/Layout/UserNavDropDownToggle";
5
- import useTranslationMock from "../../__mock__/hooks/useTranslationMock";
6
-
7
- jest.mock("react-i18next");
8
- jest.mock("@licklist/plugins/dist/context/user/hooks/useUser");
9
-
10
- const user: IUser = {
11
- id: 1,
12
- first_name: "first_name",
13
- last_name: "last_name",
14
- email: "email",
15
- user_roles: [],
16
- user_detail: {
17
- postcode: "",
18
- birthday: "",
19
- phone: "",
20
- },
21
- };
22
-
23
- describe("UserNavDropDownToggle", () => {
24
- it("should be rendered without issues", () => {
25
- useTranslationMock({
26
- t: jest.fn(),
27
- });
28
-
29
- const component = shallow(<UserNavDropDownToggle user={user} />);
30
-
31
- expect(component.exists()).toBeTruthy();
32
- });
33
- });