@licklist/design 0.65.1 → 0.66.0-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 (106) hide show
  1. package/dist/date-time-button/DateTimeButton.js +1 -1
  2. package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.d.ts.map +1 -1
  3. package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.js +1 -1
  4. package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.d.ts.map +1 -1
  5. package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +1 -1
  6. package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts.map +1 -1
  7. package/dist/iframe/ryft/RyftPaymentForm.d.ts +4 -1
  8. package/dist/iframe/ryft/RyftPaymentForm.d.ts.map +1 -1
  9. package/dist/iframe/ryft/RyftPaymentForm.js +1 -1
  10. package/dist/iframe/ryft/utils/ryft-form.d.ts +5 -2
  11. package/dist/iframe/ryft/utils/ryft-form.d.ts.map +1 -1
  12. package/dist/iframe/ryft/utils/ryft-form.js +1 -1
  13. package/dist/product-set/control/DateAndRecurrenceInput.d.ts +1 -1
  14. package/dist/product-set/control/DateAndRecurrenceInput.d.ts.map +1 -1
  15. package/dist/product-set/control/DateAndRecurrenceInput.js +1 -1
  16. package/dist/product-set/control/DateInput.js +1 -1
  17. package/dist/product-set/control/ProductSetControl.d.ts +3 -2
  18. package/dist/product-set/control/ProductSetControl.d.ts.map +1 -1
  19. package/dist/product-set/control/ProductSetControl.js +1 -1
  20. package/dist/product-set/form/ProductCategoriesControl.d.ts +3 -1
  21. package/dist/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
  22. package/dist/product-set/form/ProductCategoriesControl.js +1 -1
  23. package/dist/product-set/form/ProductSetForm.d.ts +6 -2
  24. package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
  25. package/dist/product-set/form/ProductSetForm.js +1 -1
  26. package/dist/product-set/form/ProductsControl.d.ts +3 -1
  27. package/dist/product-set/form/ProductsControl.d.ts.map +1 -1
  28. package/dist/product-set/form/ProductsControl.js +1 -1
  29. package/dist/product-set/form/StepsControl.d.ts +3 -1
  30. package/dist/product-set/form/StepsControl.d.ts.map +1 -1
  31. package/dist/product-set/form/StepsControl.js +1 -1
  32. package/dist/product-set/product/ProductControl.d.ts +1 -0
  33. package/dist/product-set/product/ProductControl.d.ts.map +1 -1
  34. package/dist/product-set/product/ProductControl.js +1 -1
  35. package/dist/product-set/step/StepControl.d.ts +2 -1
  36. package/dist/product-set/step/StepControl.d.ts.map +1 -1
  37. package/dist/product-set/step/StepControl.js +1 -1
  38. package/dist/provider/working-hours-input/WorkingHoursInputDescription.d.ts.map +1 -1
  39. package/dist/provider/working-hours-input/WorkingHoursInputDescription.js +1 -1
  40. package/dist/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.d.ts.map +1 -1
  41. package/dist/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.js +1 -1
  42. package/dist/recurring-date-picker-input/RecurringDatePickerInput.d.ts +3 -1
  43. package/dist/recurring-date-picker-input/RecurringDatePickerInput.d.ts.map +1 -1
  44. package/dist/recurring-date-picker-input/RecurringDatePickerInput.js +1 -1
  45. package/dist/recurring-date-picker-input/utils.d.ts +5 -0
  46. package/dist/recurring-date-picker-input/utils.d.ts.map +1 -1
  47. package/dist/recurring-date-picker-input/utils.js +1 -1
  48. package/dist/report/ReportRunnerModal/ReportRunnerModal.d.ts +1 -1
  49. package/dist/report/ReportRunnerModal/ReportRunnerModal.d.ts.map +1 -1
  50. package/dist/report/ReportRunnerModal/ReportRunnerModal.js +1 -1
  51. package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
  52. package/dist/setting/admin/AdminSettingForm.d.ts +2 -2
  53. package/dist/setting/admin/AdminSettingForm.d.ts.map +1 -1
  54. package/dist/sortable-tree/SortableTreeItem.d.ts +1 -2
  55. package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
  56. package/dist/sortable-tree/SortableTreeItem.js +1 -1
  57. package/dist/styles/date-time-button/DateTimeButton.scss +1 -0
  58. package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +8 -0
  59. package/dist/styles/sales/BookingResults.scss +1 -1
  60. package/dist/styles/zones/ZoneForm.scss +2 -1
  61. package/dist/zone/form/ZoneForm.d.ts +2 -2
  62. package/dist/zone/form/ZoneForm.d.ts.map +1 -1
  63. package/dist/zone/form/ZoneForm.js +1 -1
  64. package/dist/zone/form/components/ZoneControl.d.ts +2 -2
  65. package/dist/zone/form/components/ZoneControl.d.ts.map +1 -1
  66. package/dist/zone/form/components/ZoneControl.js +1 -1
  67. package/dist/zone/form/components/ZoneRecurrencesControl.d.ts +4 -4
  68. package/dist/zone/form/components/ZoneRecurrencesControl.d.ts.map +1 -1
  69. package/dist/zone/form/components/ZoneRecurrencesControl.js +1 -1
  70. package/dist/zone/form/utils/dates.d.ts.map +1 -1
  71. package/package.json +3 -5
  72. package/src/date-time-button/DateTimeButton.stories.tsx +2 -1
  73. package/src/date-time-button/DateTimeButton.tsx +7 -5
  74. package/src/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.tsx +14 -9
  75. package/src/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.tsx +2 -0
  76. package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +1 -0
  77. package/src/iframe/ryft/RyftPaymentForm.tsx +11 -2
  78. package/src/iframe/ryft/utils/ryft-form.ts +23 -4
  79. package/src/product-set/control/DateAndRecurrenceInput.tsx +3 -4
  80. package/src/product-set/control/DateInput.tsx +2 -2
  81. package/src/product-set/control/ProductSetControl.tsx +17 -5
  82. package/src/product-set/form/ProductCategoriesControl.tsx +15 -4
  83. package/src/product-set/form/ProductSetForm.tsx +13 -2
  84. package/src/product-set/form/ProductsControl.tsx +93 -77
  85. package/src/product-set/form/StepsControl.tsx +15 -7
  86. package/src/product-set/product/ProductControl.tsx +8 -5
  87. package/src/product-set/step/StepControl.tsx +4 -3
  88. package/src/provider/working-hours-input/WorkingHoursInputDescription.tsx +4 -18
  89. package/src/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.tsx +49 -21
  90. package/src/recurring-date-picker-input/RecurringDatePickerInput.stories.tsx +13 -7
  91. package/src/recurring-date-picker-input/RecurringDatePickerInput.tsx +12 -1
  92. package/src/recurring-date-picker-input/utils.ts +90 -1
  93. package/src/report/ReportRunnerModal/ReportRunnerModal.stories.tsx +307 -0
  94. package/src/report/ReportRunnerModal/ReportRunnerModal.tsx +24 -14
  95. package/src/sales/booking/results/components/ResultCard.tsx +0 -3
  96. package/src/setting/admin/AdminSettingForm.tsx +2 -2
  97. package/src/sortable-tree/SortableTreeItem.tsx +0 -3
  98. package/src/static/switch/BooleanSwitch.tsx +1 -1
  99. package/src/styles/date-time-button/DateTimeButton.scss +1 -0
  100. package/src/styles/ryft-payment-form/RyftPaymentForm.scss +8 -0
  101. package/src/styles/sales/BookingResults.scss +1 -1
  102. package/src/styles/zones/ZoneForm.scss +2 -1
  103. package/src/zone/form/ZoneForm.tsx +3 -2
  104. package/src/zone/form/components/ZoneControl.tsx +3 -3
  105. package/src/zone/form/components/ZoneRecurrencesControl.tsx +7 -5
  106. package/src/zone/form/utils/dates.ts +9 -10
@@ -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