@licklist/design 0.58.4-dev.2 → 0.58.5

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 (131) hide show
  1. package/dist/iframe/event/event-card/IframeEventCard.d.ts +1 -2
  2. package/dist/iframe/event/event-card/IframeEventCard.d.ts.map +1 -1
  3. package/dist/iframe/event/event-card/IframeEventCard.js +1 -1
  4. package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js +1 -1
  5. package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.d.ts.map +1 -1
  6. package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.js +1 -1
  7. package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts.map +1 -1
  8. package/dist/iframe/payment/order-items-table/utils/paymentSummary.js +1 -1
  9. package/dist/index.js +1 -1
  10. package/dist/product-set/card/ProductSetCard.d.ts +1 -2
  11. package/dist/product-set/card/ProductSetCard.d.ts.map +1 -1
  12. package/dist/product-set/card/ProductSetCard.js +1 -1
  13. package/dist/product-set/control/ProductSetControl.d.ts +1 -2
  14. package/dist/product-set/control/ProductSetControl.d.ts.map +1 -1
  15. package/dist/product-set/control/ProductSetControl.js +1 -1
  16. package/dist/product-set/control/TutorialGifCard.d.ts +1 -2
  17. package/dist/product-set/control/TutorialGifCard.d.ts.map +1 -1
  18. package/dist/product-set/control/TutorialGifCard.js +1 -1
  19. package/dist/product-set/form/ProductCategoriesControl.d.ts +1 -2
  20. package/dist/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
  21. package/dist/product-set/form/ProductCategoriesControl.js +1 -1
  22. package/dist/product-set/form/ProductSetForm.d.ts +2 -7
  23. package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
  24. package/dist/product-set/form/ProductSetForm.js +1 -1
  25. package/dist/product-set/form/ProductsControl.d.ts +1 -2
  26. package/dist/product-set/form/ProductsControl.d.ts.map +1 -1
  27. package/dist/product-set/form/ProductsControl.js +1 -1
  28. package/dist/product-set/form/StepsControl.d.ts +1 -2
  29. package/dist/product-set/form/StepsControl.d.ts.map +1 -1
  30. package/dist/product-set/form/StepsControl.js +1 -1
  31. package/dist/product-set/form/SubProductsControl.d.ts +1 -2
  32. package/dist/product-set/form/SubProductsControl.d.ts.map +1 -1
  33. package/dist/product-set/form/SubProductsControl.js +1 -1
  34. package/dist/product-set/hooks/useSortableTreeFunctions.d.ts +1 -2
  35. package/dist/product-set/hooks/useSortableTreeFunctions.d.ts.map +1 -1
  36. package/dist/product-set/hooks/useSortableTreeFunctions.js +1 -1
  37. package/dist/product-set/item/CreateProductSetItem.d.ts +1 -2
  38. package/dist/product-set/item/CreateProductSetItem.d.ts.map +1 -1
  39. package/dist/product-set/item/CreateProductSetItem.js +1 -1
  40. package/dist/product-set/product/ProductControl.d.ts +1 -2
  41. package/dist/product-set/product/ProductControl.d.ts.map +1 -1
  42. package/dist/product-set/product/ProductControl.js +1 -1
  43. package/dist/product-set/product/fixed-duration-fields/FixedDurationOptions.d.ts +2 -4
  44. package/dist/product-set/product/fixed-duration-fields/FixedDurationOptions.d.ts.map +1 -1
  45. package/dist/product-set/product/fixed-duration-fields/FixedDurationOptions.js +1 -1
  46. package/dist/product-set/product/quantity/ProductQuantityControl.d.ts +0 -1
  47. package/dist/product-set/product/quantity/ProductQuantityControl.d.ts.map +1 -1
  48. package/dist/product-set/product/quantity/ProductQuantityControl.js +1 -1
  49. package/dist/product-set/product-category/ProductCategoryControl.d.ts +1 -2
  50. package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
  51. package/dist/product-set/product-category/ProductCategoryControl.js +1 -1
  52. package/dist/recurring-date-picker-input/RecurringDatePickerInput.d.ts +0 -2
  53. package/dist/recurring-date-picker-input/RecurringDatePickerInput.d.ts.map +1 -1
  54. package/dist/recurring-date-picker-input/RecurringDatePickerInput.js +1 -1
  55. package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
  56. package/dist/sortable-list/SortableList.d.ts +1 -2
  57. package/dist/sortable-list/SortableList.d.ts.map +1 -1
  58. package/dist/sortable-list/SortableList.js +1 -1
  59. package/dist/sortable-tree/SortableTreeItem.d.ts +1 -3
  60. package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
  61. package/dist/sortable-tree/SortableTreeItem.js +1 -1
  62. package/dist/static/manual-date-picker/ManualDatePicker.js +1 -1
  63. package/dist/static/manual-date-picker/constants/index.d.ts +1 -4
  64. package/dist/static/manual-date-picker/constants/index.d.ts.map +1 -1
  65. package/dist/static/manual-date-picker/constants/index.js +1 -1
  66. package/dist/static/manual-date-picker/utils/index.d.ts +0 -4
  67. package/dist/static/manual-date-picker/utils/index.d.ts.map +1 -1
  68. package/dist/static/manual-date-picker/utils/index.js +1 -1
  69. package/dist/styles/availability-indicator/AvailabilityIndicator.scss +0 -10
  70. package/dist/styles/iframe-events/Card.scss +8 -24
  71. package/dist/styles/iframe-events/PoweredBy.scss +2 -2
  72. package/dist/styles/iframe-order-process/IframeOrderProcess.scss +2 -0
  73. package/dist/styles/iframe-page/Page.scss +0 -1
  74. package/dist/styles/iframe-page/PageBody.scss +11 -32
  75. package/dist/styles/iframe-page/PageHeader.scss +39 -41
  76. package/dist/styles/product-set/EditVenueMapSetModal.scss +1 -1
  77. package/dist/styles/sales/BookingResults.scss +1 -1
  78. package/package.json +3 -3
  79. package/src/calendar/Calendar.stories.tsx +2 -9
  80. package/src/iframe/event/event-card/IframeEventCard.stories.tsx +0 -1
  81. package/src/iframe/event/event-card/IframeEventCard.tsx +8 -7
  82. package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +1 -1
  83. package/src/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.tsx +1 -3
  84. package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +1 -6
  85. package/src/product-set/card/ProductSetCard.tsx +1 -10
  86. package/src/product-set/control/ProductSetControl.tsx +24 -46
  87. package/src/product-set/control/TutorialGifCard.tsx +3 -11
  88. package/src/product-set/form/ProductCategoriesControl.tsx +1 -12
  89. package/src/product-set/form/ProductSetForm.tsx +1 -10
  90. package/src/product-set/form/ProductsControl.tsx +0 -10
  91. package/src/product-set/form/StepsControl.tsx +2 -8
  92. package/src/product-set/form/SubProductsControl.tsx +0 -3
  93. package/src/product-set/hooks/useSortableTreeFunctions.ts +0 -4
  94. package/src/product-set/item/CreateProductSetItem.tsx +0 -3
  95. package/src/product-set/product/ProductControl.tsx +12 -23
  96. package/src/product-set/product/fixed-duration-fields/FixedDurationOptions.tsx +2 -10
  97. package/src/product-set/product/quantity/ProductQuantityControl.tsx +3 -4
  98. package/src/product-set/product-category/ProductCategoryControl.tsx +8 -12
  99. package/src/recurring-date-picker-input/RecurringDatePickerInput.tsx +1 -4
  100. package/src/sales/booking/results/components/ResultCard.tsx +3 -0
  101. package/src/sortable-list/SortableList.tsx +0 -3
  102. package/src/sortable-tree/SortableTreeItem.tsx +1 -7
  103. package/src/static/manual-date-picker/ManualDatePicker.tsx +3 -3
  104. package/src/static/manual-date-picker/constants/index.ts +2 -6
  105. package/src/static/manual-date-picker/utils/index.ts +0 -11
  106. package/src/static/switch/BooleanSwitch.tsx +1 -1
  107. package/src/styles/availability-indicator/AvailabilityIndicator.scss +0 -10
  108. package/src/styles/iframe-events/Card.scss +8 -24
  109. package/src/styles/iframe-events/PoweredBy.scss +2 -2
  110. package/src/styles/iframe-order-process/IframeOrderProcess.scss +2 -0
  111. package/src/styles/iframe-page/Page.scss +0 -1
  112. package/src/styles/iframe-page/PageBody.scss +11 -32
  113. package/src/styles/iframe-page/PageHeader.scss +39 -41
  114. package/src/styles/product-set/EditVenueMapSetModal.scss +1 -1
  115. package/src/styles/sales/BookingResults.scss +1 -1
  116. package/dist/product-set/control/DateInput.d.ts +0 -17
  117. package/dist/product-set/control/DateInput.d.ts.map +0 -1
  118. package/dist/product-set/control/DateInput.js +0 -1
  119. package/dist/product-set/control/ProductSetRecurrenceOverridesControl.d.ts +0 -11
  120. package/dist/product-set/control/ProductSetRecurrenceOverridesControl.d.ts.map +0 -1
  121. package/dist/product-set/control/ProductSetRecurrenceOverridesControl.js +0 -1
  122. package/dist/recurring-date-picker-input/DatePickerInput.d.ts +0 -19
  123. package/dist/recurring-date-picker-input/DatePickerInput.d.ts.map +0 -1
  124. package/dist/recurring-date-picker-input/DatePickerInput.js +0 -1
  125. package/dist/recurring-date-picker-input/RecurrenceAndFrequencyInput.d.ts +0 -15
  126. package/dist/recurring-date-picker-input/RecurrenceAndFrequencyInput.d.ts.map +0 -1
  127. package/dist/recurring-date-picker-input/RecurrenceAndFrequencyInput.js +0 -1
  128. package/src/product-set/control/DateInput.tsx +0 -311
  129. package/src/product-set/control/ProductSetRecurrenceOverridesControl.tsx +0 -63
  130. package/src/recurring-date-picker-input/DatePickerInput.tsx +0 -93
  131. package/src/recurring-date-picker-input/RecurrenceAndFrequencyInput.tsx +0 -137
@@ -49,7 +49,6 @@ export interface ProductCategoryControlProps extends IsDeletableEvent {
49
49
  onCategoryNameChange: (args: any) => void;
50
50
  stepIndex: number;
51
51
  productCategoryIndex: number;
52
- isOverride?: boolean;
53
52
  }
54
53
 
55
54
  const categoriesWithTickets = [
@@ -64,7 +63,6 @@ export function ProductCategoryControl({
64
63
  onCategoryNameChange,
65
64
  productCategoryIndex,
66
65
  stepIndex,
67
- isOverride = false,
68
66
  }: ProductCategoryControlProps) {
69
67
  const {
70
68
  control,
@@ -159,7 +157,7 @@ export function ProductCategoryControl({
159
157
  errors
160
158
  )}
161
159
  placeholder={t("name")}
162
- disabled={isLoading || isOverride}
160
+ disabled={isLoading}
163
161
  />
164
162
  <Form.Control.Feedback type="invalid">
165
163
  {HookFormService.getErrors<ProductSetFormValues>(
@@ -185,7 +183,7 @@ export function ProductCategoryControl({
185
183
  }))}
186
184
  value={field.value}
187
185
  onChange={field.onChange}
188
- disabled={isLoading || isOverride}
186
+ disabled={isLoading}
189
187
  />
190
188
  </Form.Group>
191
189
  )}
@@ -229,7 +227,7 @@ export function ProductCategoryControl({
229
227
  `${fieldNamePrefix}.minSubItems` as const,
230
228
  errors
231
229
  )}
232
- disabled={isLoading || isOverride}
230
+ disabled={isLoading}
233
231
  name={name}
234
232
  />
235
233
  )}
@@ -301,7 +299,7 @@ export function ProductCategoryControl({
301
299
  `${fieldNamePrefix}.maxSubItems` as const,
302
300
  errors
303
301
  )}
304
- disabled={isLoading || isOverride}
302
+ disabled={isLoading}
305
303
  />
306
304
  )}
307
305
  control={control}
@@ -339,7 +337,6 @@ export function ProductCategoryControl({
339
337
  render={({ field }) => (
340
338
  <Form.Control
341
339
  as="select"
342
- disabled={isOverride}
343
340
  isInvalid={HookFormService.isInvalid<ProductSetFormValues>(
344
341
  `${fieldNamePrefix}.zoneId`,
345
342
  errors
@@ -387,7 +384,6 @@ export function ProductCategoryControl({
387
384
  <Form.Check.Input
388
385
  checked={expanded}
389
386
  onChange={handleExpand}
390
- disabled={isOverride}
391
387
  type="checkbox"
392
388
  />
393
389
  <Form.Check.Label>{t("showAdvancedOptions")}</Form.Check.Label>
@@ -456,7 +452,7 @@ export function ProductCategoryControl({
456
452
  name={name}
457
453
  value={Boolean(value)}
458
454
  onChange={onChange}
459
- disabled={isLoading || isOverride}
455
+ disabled={isLoading}
460
456
  />
461
457
  )}
462
458
  control={control}
@@ -480,7 +476,7 @@ export function ProductCategoryControl({
480
476
  name={name}
481
477
  value={Boolean(value)}
482
478
  onChange={onChange}
483
- disabled={isLoading || isOverride}
479
+ disabled={isLoading}
484
480
  />
485
481
  )}
486
482
  control={control}
@@ -503,7 +499,7 @@ export function ProductCategoryControl({
503
499
  name={name}
504
500
  value={Boolean(value)}
505
501
  onChange={onChange}
506
- disabled={isLoading || isOverride}
502
+ disabled={isLoading}
507
503
  />
508
504
  )}
509
505
  control={control}
@@ -531,7 +527,7 @@ export function ProductCategoryControl({
531
527
  `${fieldNamePrefix}.remainderExpireAfter` as const,
532
528
  errors
533
529
  )}
534
- disabled={isLoading || isOverride}
530
+ disabled={isLoading}
535
531
  name={name}
536
532
  />
537
533
  )}
@@ -336,10 +336,7 @@ const useFormattedDuration = ({
336
336
  }, [start, end, byWeekDay, formatList, formatNumber]);
337
337
  };
338
338
 
339
- export const getDateTimeObject = (
340
- date: string,
341
- time: string
342
- ): DateTime | string => {
339
+ const getDateTimeObject = (date: string, time: string): DateTime | string => {
343
340
  const dateTime = DateTime.fromFormat(`${date} ${time}`, DATE_TIME_FORMAT);
344
341
 
345
342
  if (dateTime.isValid) {
@@ -12,6 +12,7 @@ import { TIME_FORMAT } from "@licklist/core/dist/Config";
12
12
  import * as Config from "@licklist/core/dist/Config";
13
13
  import { formatDateStringForEvent } from "@licklist/plugins/dist/utils/formatDate";
14
14
  import { getOrderSourceTitle } from "@licklist/plugins/dist/utils/sourceTitle";
15
+
15
16
  import Icon from "../../../../static/Icon";
16
17
 
17
18
  export type ResultCardProps = {
@@ -21,6 +22,8 @@ export type ResultCardProps = {
21
22
  onCardClick?: (id: number) => void;
22
23
  };
23
24
 
25
+ // @TODO integrate when API will be available
26
+ // activity and staff keys
24
27
  export const ResultCard = ({
25
28
  order,
26
29
  className,
@@ -33,7 +33,6 @@ type SortableListProps<T> = {
33
33
  renderItemContent: (args: RenderItemContentArgs<T>) => ReactNode;
34
34
  setItems?: Dispatch<SetStateAction<SortableItem<T>[]>>;
35
35
  isExpandNewItem?: boolean;
36
- isOverrides?: boolean;
37
36
  };
38
37
 
39
38
  export const SORTABLE_ID_KEY = "_sortableId";
@@ -45,7 +44,6 @@ export function SortableList<T>({
45
44
  renderItemContent,
46
45
  setItems,
47
46
  isExpandNewItem = false,
48
- isOverrides = false,
49
47
  }: SortableListProps<T>) {
50
48
  const [sortedItems, setSortedItems] = useState(items);
51
49
 
@@ -99,7 +97,6 @@ export function SortableList<T>({
99
97
  );
100
98
 
101
99
  function handleDragEnd(event) {
102
- if (isOverrides) return;
103
100
  const { active, over } = event;
104
101
 
105
102
  if (active.id !== over.id) {
@@ -52,8 +52,6 @@ export interface SortableTreeItemProps {
52
52
  className: string;
53
53
  };
54
54
  setIsExpanded?: () => void;
55
- isOverride?: boolean;
56
- isProduct?: boolean;
57
55
  }
58
56
 
59
57
  export function SortableTreeItem({
@@ -80,8 +78,6 @@ export function SortableTreeItem({
80
78
  edit,
81
79
  secondaryBadge,
82
80
  setIsExpanded,
83
- isOverride,
84
- isProduct = false,
85
81
  }: SortableTreeItemProps) {
86
82
  const [expanded, setExpanded] = useState(isExpanded);
87
83
  const [isModalVisible, setIsModalVisible] = useState(isNewAdded);
@@ -102,7 +98,6 @@ export function SortableTreeItem({
102
98
  transform: dragTransform,
103
99
  } = useDraggable({
104
100
  id,
105
- disabled: isOverride,
106
101
  });
107
102
 
108
103
  const onHandleExpand = useCallback(
@@ -150,7 +145,6 @@ export function SortableTreeItem({
150
145
  };
151
146
 
152
147
  const onEdit = (e) => {
153
- if (isOverride && !isProduct) return;
154
148
  e.stopPropagation();
155
149
  if (edit && !isModalVisible) edit();
156
150
  setIsModalVisible(true);
@@ -372,7 +366,7 @@ export function SortableTreeItem({
372
366
  items={sortableItems}
373
367
  strategy={verticalListSortingStrategy}
374
368
  >
375
- <Collapse in={expanded}>
369
+ <Collapse in={expanded}>
376
370
  <div className="ml-0">{children}</div>
377
371
  </Collapse>
378
372
  </SortableContext>
@@ -61,9 +61,9 @@ export const ManualDatePicker = ({
61
61
  disabled={isDisabled}
62
62
  >
63
63
  <option value="">{t("Design:monthShort")}</option>
64
- {MONTHS_ARRAY.map((object) => (
65
- <option key={object.key} value={object.value}>
66
- {object.key}
64
+ {MONTHS_ARRAY.map((key) => (
65
+ <option key={key} value={key}>
66
+ {key}
67
67
  </option>
68
68
  ))}
69
69
  </Form.Control>
@@ -1,9 +1,5 @@
1
- import {
2
- generateDatesArray,
3
- generateMonthsOptionsArray,
4
- generateYearsArray,
5
- } from "../utils";
1
+ import { generateDatesArray, generateYearsArray } from "../utils";
6
2
 
7
3
  export const DAYS_ARRAY = generateDatesArray(1, 31, 1);
8
- export const MONTHS_ARRAY = generateMonthsOptionsArray();
4
+ export const MONTHS_ARRAY = generateDatesArray(1, 12, 1);
9
5
  export const YEARS_ARRAY = generateYearsArray();
@@ -4,17 +4,6 @@ export const generateDatesArray = (start: number, end: number, step: number) =>
4
4
  (_, index) => 1 + index * step
5
5
  );
6
6
 
7
- export const generateMonthsOptionsArray = () =>
8
- Array.from({ length: 12 }, (_, index) => {
9
- const value = index + 1;
10
- let key = String(value);
11
- if (value < 10) {
12
- key = `0${key}`;
13
- }
14
-
15
- return { key, value };
16
- });
17
-
18
7
  export const generateYearsArray = () => {
19
8
  const currentYear = new Date().getFullYear();
20
9
  const ageBackYear = currentYear - 100;
@@ -23,7 +23,7 @@ export function BooleanSwitch({
23
23
  const { t } = useTranslation("Design");
24
24
 
25
25
  const options: SelectItem[] = [
26
- { id: 1, value: firstValueTitle ?? t("yes") },
26
+ { id: 1, value: firstValueTitle ?? t("yes") },
27
27
  { id: 0, value: secondValueTitle ?? t("no") },
28
28
  ];
29
29
 
@@ -4,14 +4,4 @@
4
4
  align-items: center;
5
5
  gap: 0.5rem;
6
6
  font-weight: 300;
7
-
8
- @include media-breakpoint-down(sm) {
9
- div {
10
- display: none;
11
- }
12
-
13
- svg {
14
- scale: 2;
15
- }
16
- }
17
7
  }
@@ -1,5 +1,4 @@
1
1
  @import "../snippet-templates/snippetVariables";
2
- @import "../themes//bookedit/variables";
3
2
 
4
3
  .iframe-event-card {
5
4
  position: relative;
@@ -19,27 +18,12 @@
19
18
  background-size: cover;
20
19
  background-position: center;
21
20
  cursor: pointer;
21
+ border: 1px solid transparent;
22
22
  border-radius: 0.5rem;
23
23
  }
24
24
 
25
25
  .card-body {
26
- padding: 0.5rem 0 0.875rem 0;
27
-
28
- @include media-breakpoint-down(sm) {
29
- padding: 1rem 0;
30
- }
31
- }
32
-
33
- &__info-icon {
34
- position: absolute;
35
- right: 1rem;
36
- top: 1rem;
37
- background-color: "#ffffff";
38
- border-radius: 1.5rem;
39
- padding: 0 0.5rem;
40
- font-size: 0.75rem;
41
- font-weight: $white;
42
- border: 1px solid $black;
26
+ padding: 0.5rem 0 0.875rem;
43
27
  }
44
28
 
45
29
  &__title {
@@ -49,7 +33,7 @@
49
33
  line-height: 1.25rem;
50
34
  cursor: pointer;
51
35
  margin-bottom: 0.5rem;
52
- font-size: 0.95rem;
36
+ font-size: 1.125rem;
53
37
  }
54
38
 
55
39
  &__label {
@@ -98,8 +82,7 @@
98
82
  color: $snippet-elements-button-color;
99
83
  border: none;
100
84
  background-color: $snippet-elements-button-background-color;
101
- box-shadow: 0 0 0 $input-btn-focus-width
102
- $snippet-elements-button-background-color;
85
+ box-shadow: 0 0 0 $input-btn-focus-width $snippet-elements-button-background-color;
103
86
  }
104
87
 
105
88
  &:disabled {
@@ -112,14 +95,14 @@
112
95
  &:focus,
113
96
  &.focus {
114
97
  &:not(:disabled) {
115
- opacity: 0.7;
98
+ opacity: .7;
116
99
  }
117
100
  }
118
101
 
119
102
  &:active,
120
103
  &.active {
121
104
  &:not(:disabled) {
122
- opacity: 0.8;
105
+ opacity: .8;
123
106
  }
124
107
  }
125
108
  }
@@ -140,7 +123,7 @@
140
123
  }
141
124
 
142
125
  .card-text {
143
- font-size: 0.82rem;
126
+ font-size: 0.875rem;
144
127
  }
145
128
 
146
129
  &.event-info {
@@ -219,6 +202,7 @@
219
202
 
220
203
  @media (max-width: 576px) {
221
204
  &.list-view {
205
+
222
206
  .card-image {
223
207
  margin-right: 0.5rem;
224
208
  }
@@ -3,7 +3,7 @@
3
3
  display: flex;
4
4
  align-items: center;
5
5
  justify-content: space-between;
6
- padding: 0 0.75rem 0 2rem;
6
+ padding: 0 0.75rem;
7
7
  height: 2rem;
8
8
  width: 100%;
9
9
  font-size: 0.75rem;
@@ -27,4 +27,4 @@
27
27
  color: $blue;
28
28
  }
29
29
  }
30
- }
30
+ }
@@ -58,6 +58,8 @@
58
58
 
59
59
  .payment-booking-summary {
60
60
  transition: $color-transition;
61
+ background-color: transparent;
62
+ border: 1px solid transparent;
61
63
  border-radius: $iframe-border-radius;
62
64
  font-weight: 400;
63
65
  font-size: 0.875rem;
@@ -21,7 +21,6 @@
21
21
 
22
22
  @include media-breakpoint-down(sm) {
23
23
  height: 100svh;
24
- min-width: auto;
25
24
  }
26
25
 
27
26
  .header-block {
@@ -12,6 +12,9 @@
12
12
  .left-block {
13
13
  flex: 1;
14
14
  align-items: stretch;
15
+ border-radius: 0.5rem;
16
+ border-bottom-left-radius: 0;
17
+ border-bottom-right-radius: 0;
15
18
  padding: 1rem;
16
19
  background-color: $snippet-page-body-left-block-background-color;
17
20
  border: 0;
@@ -30,6 +33,7 @@
30
33
  display: flex;
31
34
  align-items: flex-start;
32
35
  justify-content: space-between;
36
+
33
37
  .title {
34
38
  color: $snippet-elements-body-color;
35
39
  margin: 0;
@@ -60,7 +64,7 @@
60
64
  overflow-x: hidden;
61
65
  scrollbar-width: thin;
62
66
  .iframe-event-card {
63
- border-bottom: 1px solid $separator-color;
67
+ border-bottom: 2px solid $separator-color;
64
68
  }
65
69
 
66
70
  @include media-breakpoint-down(sm) {
@@ -77,6 +81,8 @@
77
81
  }
78
82
 
79
83
  .right-block {
84
+ margin-left: 1rem;
85
+ border-radius: 0.5rem;
80
86
  height: calc(100% - 1rem);
81
87
  max-width: 17.5rem;
82
88
  min-width: 17.5rem;
@@ -109,7 +115,7 @@
109
115
  }
110
116
 
111
117
  .collapse {
112
- max-height: calc(100vh - 15rem);
118
+ max-height: calc(100vh - 19rem);
113
119
  transition: none 0s ease 0s;
114
120
 
115
121
  &.show {
@@ -119,7 +125,7 @@
119
125
  }
120
126
 
121
127
  @include media-breakpoint-down(sm) {
122
- max-height: 100%;
128
+ max-height: 7.5rem;
123
129
  }
124
130
  }
125
131
  .collapse-with-people-input {
@@ -145,14 +151,8 @@
145
151
  }
146
152
 
147
153
  .iframe-event-card {
148
- border: none;
149
-
150
- .card-image {
151
- border-radius: 0;
152
- }
153
- .card-body {
154
- padding-left: 1rem;
155
- }
154
+ background-color: transparent;
155
+ border-color: transparent;
156
156
  }
157
157
 
158
158
  .price {
@@ -262,24 +262,3 @@
262
262
  }
263
263
  }
264
264
  }
265
-
266
- .event-list-page-body {
267
- overflow: auto;
268
- .left-block {
269
- .navigation {
270
- font-size: 1.125rem;
271
- font-weight: 500;
272
- padding-bottom: 2.625rem;
273
- display: flex;
274
- align-items: flex-start;
275
- justify-content: space-between;
276
- margin-top: 0.125rem;
277
-
278
- .title {
279
- position: absolute;
280
- color: $snippet-elements-body-color;
281
- margin: 0;
282
- }
283
- }
284
- }
285
- }
@@ -20,57 +20,55 @@ $base-height: 2.5rem;
20
20
  transition: $color-transition;
21
21
  border: 0;
22
22
  }
23
- }
24
- }
25
-
26
- .iframe-page {
27
- .button-wrapper {
28
- background-color: $snippet-page-header-steps-close-button-background-color;
29
- height: $base-height;
30
- width: $base-height;
31
- border-radius: $base-height;
32
- transition: $color-transition;
33
23
 
34
- .close-button {
35
- font-size: 1.25rem;
36
- width: $base-height;
24
+ .button-wrapper {
25
+ background-color: $snippet-page-header-steps-close-button-background-color;
37
26
  height: $base-height;
38
- display: flex;
39
- align-items: center;
40
- justify-content: center;
41
- color: $snippet-page-header-steps-close-button-border-color;
27
+ width: $base-height;
28
+ border-radius: $base-height;
42
29
  transition: $color-transition;
43
30
 
44
- &:hover {
45
- cursor: pointer;
31
+ .close-button {
32
+ font-size: 1.25rem;
33
+ width: $base-height;
34
+ height: $base-height;
35
+ display: flex;
36
+ align-items: center;
37
+ justify-content: center;
38
+ color: $snippet-page-header-steps-close-button-border-color;
39
+ transition: $color-transition;
40
+
41
+ &:hover {
42
+ cursor: pointer;
43
+ }
46
44
  }
47
- }
48
45
 
49
- &.close-button {
50
- margin-left: 1rem;
51
- }
46
+ &.close-button {
47
+ margin-left: 1rem;
48
+ }
52
49
 
53
- .back-button {
54
- font-size: 2rem;
55
- width: $base-height;
56
- height: $base-height;
57
- display: flex;
58
- align-items: center;
59
- justify-content: center;
60
- font-weight: lighter;
61
- color: $snippet-page-header-steps-close-button-border-color;
62
- transition: $color-transition;
50
+ .back-button {
51
+ font-size: 2rem;
52
+ width: $base-height;
53
+ height: $base-height;
54
+ display: flex;
55
+ align-items: center;
56
+ justify-content: center;
57
+ font-weight: lighter;
58
+ color: $snippet-page-header-steps-close-button-border-color;
59
+ transition: $color-transition;
63
60
 
64
- &:hover {
65
- cursor: pointer;
61
+ &:hover {
62
+ cursor: pointer;
63
+ }
66
64
  }
67
- }
68
65
 
69
- &.back-button {
70
- display: flex;
71
- align-items: center;
72
- justify-content: center;
73
- margin-right: 1rem;
66
+ &.back-button {
67
+ display: flex;
68
+ align-items: center;
69
+ justify-content: center;
70
+ margin-right: 1rem;
71
+ }
74
72
  }
75
73
  }
76
74
  }
@@ -91,7 +91,7 @@
91
91
  }
92
92
 
93
93
  @include media-breakpoint-down(sm) {
94
- top: 100%;
94
+ top: 50%;
95
95
 
96
96
  .step-save-btn {
97
97
  width: 100%;
@@ -5,7 +5,7 @@
5
5
  flex-wrap: wrap;
6
6
 
7
7
  .result-card {
8
- height: 14rem;
8
+ height: 14.25rem;
9
9
  border: 1px solid $gray-400;
10
10
  max-width: calc(50% - 0.75rem);
11
11
  flex: 0 0 calc(50% - 0.75rem);
@@ -1,17 +0,0 @@
1
- /// <reference types="react" />
2
- import { Modifier } from "@popperjs/core";
3
- import { ProductSetRecurrence } from "@licklist/core/dist/DataMapper/Product/ProductSetRecurrenceDataMapper";
4
- import { WorkHour } from "@licklist/core/dist/DataMapper/Provider/WorkHourDataMapper";
5
- export interface DateAndRecurrenceInputValues {
6
- menuRecurrences?: Partial<ProductSetRecurrence>[];
7
- }
8
- interface DateAndRecurrenceInputProps {
9
- isEventEditProductSet?: boolean;
10
- workHours?: WorkHour[];
11
- providerHasBookingManagement: boolean;
12
- isLoading?: boolean;
13
- }
14
- export declare const DateInput: ({ isEventEditProductSet, isLoading, workHours, providerHasBookingManagement, }: DateAndRecurrenceInputProps) => JSX.Element;
15
- export declare const sameWidthPopperModifier: Modifier<"sameWidth", Record<string, unknown>>;
16
- export {};
17
- //# sourceMappingURL=DateInput.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DateInput.d.ts","sourceRoot":"","sources":["../../../src/product-set/control/DateInput.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAO1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,uEAAuE,CAAC;AAI7G,OAAO,EAAE,QAAQ,EAAE,MAAM,4DAA4D,CAAC;AActF,MAAM,WAAW,4BAA4B;IAC3C,eAAe,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC,EAAE,CAAC;CACnD;AAED,UAAU,2BAA2B;IACnC,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,4BAA4B,EAAE,OAAO,CAAC;IACtC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,SAAS,mFAKnB,2BAA2B,gBAkP7B,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAC5C,WAAW,EACX,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAsBxB,CAAC"}
@@ -1 +0,0 @@
1
- "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var r=require("tslib"),t=require("react"),n=e(t),i=require("react-i18next"),a=require("react-bootstrap"),o=require("../../static/Icon.js"),u=require("react-hook-form"),l=require("@react-aria/utils"),s=require("react-use"),c=require("luxon");require("../../static/index.js");var d=require("../../modals/confirmation/ConfirmModal.js"),m=require("rrule"),v=e(m),f=require("@licklist/core/dist/Config/Date"),p=require("../../zone/form/components/AvailableTimesControl.js"),g=require("../../recurring-date-picker-input/DatePickerInput.js"),T=require("./ProductSetRecurrenceOverridesControl.js"),b={name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var r=e.state,t={width:"".concat(r.rects.reference.width+4,"px"),marginLeft:"-2px",maxWidth:"unset"};Object.assign(r.styles.popper,t)},effect:function(e){var r=e.state,t=r.elements.reference.getBoundingClientRect().width,n={width:"".concat(t,"px"),maxWidth:"unset"};Object.assign(r.elements.popper.style,n)}};exports.DateInput=function(e){var E,D,x,h,q=e.isEventEditProductSet,R=e.isLoading,_=e.workHours,y=e.providerHasBookingManagement,I=u.useFormContext(),O=I.control,M=I.register,S=I.formState.errors,w=I.getValues,C=I.setValue,k=I.clearErrors,F=u.useFieldArray({name:"menuRecurrences",control:O,keyName:"_id"}),A=F.fields,N=F.append,j=F.update,P=r.__read(t.useState(!1),2),V=P[0],L=P[1],W=t.useRef(),B=r.__read(t.useState({index:null,values:null}),2),H=B[0],z=B[1],J=function(){return z({index:null,values:null})},G=t.useRef();s.useClickAway(G,(function(e){var r,t,n;d.CONFIRM_MODAL_ACTIONS.includes(null===(n=null===(t=null===(r=e.target)||void 0===r?void 0:r.attributes)||void 0===t?void 0:t.getNamedItem("data-id"))||void 0===n?void 0:n.value)||(L(!1),J())}));var K=l.useId(),U=i.useTranslation("Design").t,Y=function(){A.length>=1||(J(),L((function(e){return!e})))};return n.createElement(a.Form.Group,null,n.createElement(a.Form.Label,null,U(q?"whenOverridesAvailable":"productSetAvailable")),n.createElement(a.OverlayTrigger,{show:V,overlay:n.createElement(a.Popover,{id:K,className:"rounded"},n.createElement(a.Popover.Content,{className:"shadow-lg rounded",ref:G},n.createElement(g.DatePickerInput,{defaultValues:H.values,onChange:function(e){return r.__awaiter(void 0,void 0,void 0,(function(){var t,n,i,a,o,u,l,s,d,p,g,T;return r.__generator(this,(function(r){switch(r.label){case 0:return[4,null===(s=W.current)||void 0===s?void 0:s.trigger()];case 1:return t=r.sent(),(null==e?void 0:e.startTime)&&(null==e?void 0:e.endTime)&&t&&(n=c.DateTime.fromISO(e.startTime),i=c.DateTime.fromISO(e.endTime),a=W.current.getValues().availableTimes,!a.every((function(e){var r=c.DateTime.fromFormat(e,f.TIME_FORMAT);return r.diff(n,"minutes").minutes>=0&&r.diff(i,"minutes").minutes<=0})))?(W.current.setError("availableTimes",{message:U("Validation:fieldTimeBetween",{attribute:U("Design:startTimesSmall"),min:n.toFormat(f.TIME_FORMAT),max:i.toFormat(f.TIME_FORMAT)})}),[2]):(o=v.optionsToString({dtstart:c.DateTime.fromISO(e.startDate).toJSDate(),until:c.DateTime.fromISO(e.startDate).toJSDate(),byweekday:[],freq:m.Frequency.DAILY,tzid:f.TIMEZONE}).replace("RRULE:",""),u=(null===(p=null===(d=null==W?void 0:W.current)||void 0===d?void 0:d.getValues())||void 0===p?void 0:p.availableTimes)||null,l={rrule:o,startDate:e.startDate,endDate:e.startDate,startTime:e.startTime,endTime:e.endTime,availableTimes:u},(null===(g=H.values)||void 0===g?void 0:g.id)&&(l.id=null===(T=H.values)||void 0===T?void 0:T.id),null!==H.index?j(H.index,l):N(l),L((function(){return!1})),J(),[2])}}))}))},onDelete:function(){var e=H.index;L(!1),J(),setTimeout((function(){var r=w().menuRecurrences;C("menuRecurrences",(void 0===r?[]:r).filter((function(r,t){return t!==e})))}),100)}},y&&n.createElement(p.AvailableTimesControl,{workHours:_,isLoading:R,ref:W,defaultValues:[],errorMessage:null===(x=null===(D=null===(E=null==S?void 0:S.menuRecurrences)||void 0===E?void 0:E["".concat(null==H?void 0:H.index)])||void 0===D?void 0:D.availableTimes)||void 0===x?void 0:x.message,clearErrorMessage:function(){return k("menuRecurrences.".concat(null==H?void 0:H.index,".availableTimes"))}})))),trigger:"click",placement:"bottom",popperConfig:{modifiers:[b]}},n.createElement("div",{className:"product-set-recurrences"},A.map((function(e,r){var t,i,a;return n.createElement(T.ProductSetRecurrenceOverridesControl,{key:e._id,menuRecurrence:e,onEdit:function(){return function(e,r){J(),setTimeout((function(){z({index:r,values:e}),L((function(){return!0}))}),100)}(e,r)},errorMessage:null===(a=null===(i=null===(t=null==S?void 0:S.menuRecurrences)||void 0===t?void 0:t["".concat(r)])||void 0===i?void 0:i.availableTimes)||void 0===a?void 0:a.message})})),n.createElement("div",{className:"product-set-recurrence-icon-wrapper",role:"button",tabIndex:0,onClick:Y,onKeyDown:Y},n.createElement(o.default,{type:"plus-circle",height:"1rem",className:"product-set-recurrence-icon-add mr-2"}),U("addDates")),n.createElement(a.Form.Control,r.__assign({type:"hidden"},M("menuRecurrences",{required:{value:!0,message:U("Validation:fieldMinNumber",{attribute:U("dates"),min:1})}}))),n.createElement("div",{className:"manual-form-error"},null===(h=S.menuRecurrences)||void 0===h?void 0:h.message))))},exports.sameWidthPopperModifier=b;
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { ProductSetRecurrence } from "@licklist/core/dist/DataMapper/Product/ProductSetRecurrenceDataMapper";
3
- export interface ProductSetRecurrenceControlProps {
4
- menuRecurrence?: {
5
- _id: string;
6
- } & Partial<ProductSetRecurrence>;
7
- onEdit?: (onEdit: Partial<ProductSetRecurrence>) => void;
8
- errorMessage?: string;
9
- }
10
- export declare const ProductSetRecurrenceOverridesControl: ({ menuRecurrence, onEdit, errorMessage, }: ProductSetRecurrenceControlProps) => JSX.Element;
11
- //# sourceMappingURL=ProductSetRecurrenceOverridesControl.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProductSetRecurrenceOverridesControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/control/ProductSetRecurrenceOverridesControl.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uEAAuE,CAAC;AAI7G,MAAM,WAAW,gCAAgC;IAC/C,cAAc,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;IACjE,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,oBAAoB,CAAC,KAAK,IAAI,CAAC;IACzD,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,oCAAoC,8CAI9C,gCAAgC,gBA8ClC,CAAC"}
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,r=require("react"),t=(e=r)&&"object"==typeof e&&"default"in e?e.default:e,a=require("../../static/Icon.js");require("../../static/index.js");var c=require("react-intl");exports.ProductSetRecurrenceOverridesControl=function(e){var r=e.menuRecurrence,n=e.onEdit,l=e.errorMessage,s=c.useIntl().formatDate;return t.createElement("div",{className:"sortable-tree-root flex-column",role:"button",tabIndex:0},t.createElement("div",{key:r.rrule,className:"product-set-recurrence d-flex flex-column mr-0 mb-3 p-3 px-4 flex-grow-1"},t.createElement("span",{className:"d-flex flex-row align-items-center"},t.createElement(a.default,{type:"calendar",height:"1rem",className:"product-set-recurrence-icon-calendar"}),t.createElement("span",{className:"product-set-recurrence-title d-flex flex-grow-1"},s(r.startDate,{dateStyle:"medium"})," "),t.createElement("div",{className:"d-inline-flex",role:"button",tabIndex:0,onClick:function(){return n(r)},onKeyDown:function(){return n(r)}},t.createElement(a.default,{type:"ellipsis-h",height:"1rem",className:"product-set-recurrence-icon-more"}))),t.createElement("span",{className:"product-set-recurrence-description"},s(r.startDate,{dateStyle:"medium"})," ")),t.createElement("div",{className:"manual-form-error ".concat(!l&&"d-none")},l))};