@licklist/design 0.65.0-dev.0 → 0.65.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 (103) 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 +1 -4
  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 +2 -5
  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 +2 -3
  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 +1 -3
  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 +2 -6
  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 +1 -3
  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 +1 -3
  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 +0 -1
  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 +1 -2
  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 +1 -3
  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 +0 -5
  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/sales/booking/results/components/ResultCard.d.ts.map +1 -1
  49. package/dist/setting/admin/AdminSettingForm.d.ts +2 -2
  50. package/dist/setting/admin/AdminSettingForm.d.ts.map +1 -1
  51. package/dist/sortable-tree/SortableTreeItem.d.ts +2 -1
  52. package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
  53. package/dist/sortable-tree/SortableTreeItem.js +1 -1
  54. package/dist/styles/date-time-button/DateTimeButton.scss +0 -1
  55. package/dist/styles/iframe-page/PageBody.scss +1 -0
  56. package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +0 -8
  57. package/dist/styles/sales/BookingResults.scss +1 -1
  58. package/dist/styles/zones/ZoneForm.scss +1 -2
  59. package/dist/zone/form/ZoneForm.d.ts +2 -2
  60. package/dist/zone/form/ZoneForm.d.ts.map +1 -1
  61. package/dist/zone/form/ZoneForm.js +1 -1
  62. package/dist/zone/form/components/ZoneControl.d.ts +2 -2
  63. package/dist/zone/form/components/ZoneControl.d.ts.map +1 -1
  64. package/dist/zone/form/components/ZoneControl.js +1 -1
  65. package/dist/zone/form/components/ZoneRecurrencesControl.d.ts +4 -4
  66. package/dist/zone/form/components/ZoneRecurrencesControl.d.ts.map +1 -1
  67. package/dist/zone/form/components/ZoneRecurrencesControl.js +1 -1
  68. package/dist/zone/form/utils/dates.d.ts.map +1 -1
  69. package/package.json +5 -3
  70. package/src/date-time-button/DateTimeButton.stories.tsx +1 -2
  71. package/src/date-time-button/DateTimeButton.tsx +5 -7
  72. package/src/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.tsx +9 -14
  73. package/src/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.tsx +0 -2
  74. package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +0 -1
  75. package/src/iframe/ryft/RyftPaymentForm.tsx +2 -11
  76. package/src/iframe/ryft/utils/ryft-form.ts +4 -23
  77. package/src/product-set/control/DateAndRecurrenceInput.tsx +4 -3
  78. package/src/product-set/control/DateInput.tsx +2 -2
  79. package/src/product-set/control/ProductSetControl.tsx +5 -17
  80. package/src/product-set/form/ProductCategoriesControl.tsx +4 -15
  81. package/src/product-set/form/ProductSetForm.tsx +2 -13
  82. package/src/product-set/form/ProductsControl.tsx +77 -93
  83. package/src/product-set/form/StepsControl.tsx +7 -15
  84. package/src/product-set/product/ProductControl.tsx +5 -8
  85. package/src/product-set/step/StepControl.tsx +3 -4
  86. package/src/provider/working-hours-input/WorkingHoursInputDescription.tsx +18 -4
  87. package/src/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.tsx +21 -40
  88. package/src/recurring-date-picker-input/RecurringDatePickerInput.stories.tsx +7 -13
  89. package/src/recurring-date-picker-input/RecurringDatePickerInput.tsx +1 -12
  90. package/src/recurring-date-picker-input/utils.ts +1 -90
  91. package/src/sales/booking/results/components/ResultCard.tsx +3 -0
  92. package/src/setting/admin/AdminSettingForm.tsx +2 -2
  93. package/src/sortable-tree/SortableTreeItem.tsx +3 -0
  94. package/src/static/switch/BooleanSwitch.tsx +1 -1
  95. package/src/styles/date-time-button/DateTimeButton.scss +0 -1
  96. package/src/styles/iframe-page/PageBody.scss +1 -0
  97. package/src/styles/ryft-payment-form/RyftPaymentForm.scss +0 -8
  98. package/src/styles/sales/BookingResults.scss +1 -1
  99. package/src/styles/zones/ZoneForm.scss +1 -2
  100. package/src/zone/form/ZoneForm.tsx +2 -3
  101. package/src/zone/form/components/ZoneControl.tsx +3 -3
  102. package/src/zone/form/components/ZoneRecurrencesControl.tsx +5 -7
  103. package/src/zone/form/utils/dates.ts +10 -9
@@ -25,13 +25,12 @@ export interface DateAndRecurrenceInputValues {
25
25
  zoneRecurrences?: Partial<ZoneRecurrence>[];
26
26
  }
27
27
 
28
- type ZoneRecurrenceControlProps = {
29
- workHours: WorkHour[] | undefined;
28
+ export type ZoneRecurrenceControlProps = {
29
+ workHours?: WorkHour[];
30
+ isLoading?: boolean;
30
31
  };
31
32
 
32
- export const ZoneRecurrencesControl = ({
33
- workHours,
34
- }: ZoneRecurrenceControlProps) => {
33
+ export const ZoneRecurrencesControl = () => {
35
34
  const {
36
35
  control,
37
36
  register,
@@ -70,7 +69,7 @@ export const ZoneRecurrencesControl = ({
70
69
  clearEditState();
71
70
  });
72
71
 
73
- const popoverId = useId();
72
+ const popoverId = useId()!;
74
73
 
75
74
  const { t } = useTranslation(["Design", "Validation"]);
76
75
 
@@ -167,7 +166,6 @@ export const ZoneRecurrencesControl = ({
167
166
  onChange={handleRecurringDateChange}
168
167
  onDelete={handleDelete}
169
168
  setInitialStartDateAfterSelect
170
- workHours={workHours}
171
169
  />
172
170
  </Popover.Content>
173
171
  </Popover>
@@ -53,17 +53,18 @@ 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
- { start: string; end: string }[]
58
- >((workHoursNextArray, currentWorkHour) => {
59
- const { start, end } = currentWorkHour;
56
+ const providerWorkHoursByWeek = workHours.reduce(
57
+ (workHoursNextArray: { start: string; end: string }[], currentWorkHour) => {
58
+ const { start, end } = currentWorkHour;
60
59
 
61
- if (start && end) {
62
- return [...workHoursNextArray, { start, end }];
63
- }
60
+ if (start && end) {
61
+ return [...workHoursNextArray, { start, end }];
62
+ }
64
63
 
65
- return workHoursNextArray;
66
- }, []);
64
+ return workHoursNextArray;
65
+ },
66
+ []
67
+ );
67
68
 
68
69
  // If venue has filled only 1 work day from wee
69
70
  // For another days we use default 00:00 and 23:59