@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
@@ -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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@licklist/design",
3
- "version": "0.58.4-dev.2",
3
+ "version": "0.58.5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/artelogicsoft/licklist_design.git"
@@ -53,9 +53,9 @@
53
53
  "@fortawesome/free-brands-svg-icons": "5.15.2",
54
54
  "@fortawesome/free-solid-svg-icons": "5.15.2",
55
55
  "@fortawesome/react-fontawesome": "0.1.9",
56
- "@licklist/core": ">=0.22.1-dev.3 < 0.22.1",
56
+ "@licklist/core": "^0.23.1",
57
57
  "@licklist/eslint-config": "0.3.4",
58
- "@licklist/plugins": ">=0.27.1-dev.0 < 0.27.1",
58
+ "@licklist/plugins": "^0.27.2",
59
59
  "@mdx-js/react": "1.6.22",
60
60
  "@popperjs/core": "2.11.8",
61
61
  "@react-aria/utils": "3.9.0",
@@ -2,7 +2,6 @@ import React from "react";
2
2
  import { DateTime } from "luxon";
3
3
  import { Meta, Story } from "@storybook/react";
4
4
  import { Calendar, CalendarProps } from "./Calendar";
5
- import { getMonthCalendarDates } from "./utils/index";
6
5
 
7
6
  export default {
8
7
  title: "Iframe/Event/Calendar",
@@ -25,16 +24,10 @@ const now = DateTime.now().set({
25
24
  });
26
25
 
27
26
  Default.args = {
27
+ disabledDates: [now.minus({ day: 2 }), now, now.plus({ day: 2 })],
28
28
  isLoading: false,
29
29
  fromPrice: "from £10",
30
30
  selectedDate: null,
31
31
  setSelectedDate: () => null,
32
- calendarDates: getMonthCalendarDates(now),
33
- currentDate: now,
34
- getDateTimeButtonProps: () => ({
35
- resources: [],
36
- showResources: false,
37
- shouldCalculateResources: false,
38
- isDisabled: false,
39
- }),
32
+ calendarDates: [],
40
33
  };
@@ -16,7 +16,6 @@ export function Default() {
16
16
  return (
17
17
  <div>
18
18
  <IframeEventCard
19
- showMoreInfo
20
19
  imageSrc={
21
20
  showImage
22
21
  ? // eslint-disable-next-line max-len
@@ -29,7 +29,6 @@ interface IframeEventCardProps {
29
29
  titleId?: string;
30
30
  descriptionId?: string;
31
31
  imageClassName?: string;
32
- showMoreInfo?: boolean;
33
32
  }
34
33
 
35
34
  export function IframeEventCard({
@@ -47,7 +46,6 @@ export function IframeEventCard({
47
46
  titleId,
48
47
  descriptionId,
49
48
  imageClassName,
50
- showMoreInfo,
51
49
  }: IframeEventCardProps) {
52
50
  const { formatNumber } = useIntl();
53
51
  const { t } = useTranslation("Design");
@@ -72,7 +70,6 @@ export function IframeEventCard({
72
70
  )}
73
71
  onClick={goToDetails ? onClick : undefined}
74
72
  >
75
- {showMoreInfo && <div className="iframe-event-card__info-icon">i</div>}
76
73
  {imageSrc && (
77
74
  <Card.Img
78
75
  className={imageClassName ?? "card-image"}
@@ -94,8 +91,12 @@ export function IframeEventCard({
94
91
  <div className="icon-wrapper">
95
92
  <CalendarSvg />
96
93
  </div>
97
- <p className="m-0 list-view-hided">{date}</p>
98
- <p className="m-0 grid-view-hided">{shortDate}</p>
94
+ <p className="iframe-event-card__bold m-0 list-view-hided">
95
+ {date}
96
+ </p>
97
+ <p className="iframe-event-card__bold m-0 grid-view-hided">
98
+ {shortDate}
99
+ </p>
99
100
  </div>
100
101
  </Card.Text>
101
102
 
@@ -105,7 +106,7 @@ export function IframeEventCard({
105
106
  <div className="icon-wrapper">
106
107
  <ClockSvg />
107
108
  </div>
108
- <p className="m-0">{type}</p>
109
+ <p className="iframe-event-card__bold m-0">{type}</p>
109
110
  </div>
110
111
  </Card.Text>
111
112
  )}
@@ -116,7 +117,7 @@ export function IframeEventCard({
116
117
  <div className="icon-wrapper">
117
118
  <TicketSvg />
118
119
  </div>
119
- <p className="m-0">
120
+ <p className="iframe-event-card__bold m-0">
120
121
  {t("from")}{" "}
121
122
  {formatNumber(cost, { style: "currency", currency: "GBP" })}
122
123
  </p>
@@ -90,7 +90,7 @@ export const NumberInput = forwardRef<HTMLInputElement, NumberInputProps>(
90
90
  type="number"
91
91
  onChange={(e) => handleChangeValue(Number(e.target.value))}
92
92
  value={value}
93
- min={0}
93
+ min={min}
94
94
  max={max}
95
95
  defaultValue={defaultValue}
96
96
  placeholder={placeholder}
@@ -28,9 +28,7 @@ export const LeftBlock = ({
28
28
  {pageTitle && (
29
29
  <>
30
30
  {typeof pageTitle === "string" ? (
31
- <div className="title" id="navigation-title">
32
- {pageTitle}
33
- </div>
31
+ <div className="title">{pageTitle}</div>
34
32
  ) : (
35
33
  pageTitle
36
34
  )}
@@ -63,12 +63,7 @@ const processedPaymentSummary = ({
63
63
  const total = calculateTotalPrice(order, externalPaymentDetail);
64
64
 
65
65
  const totalDiscount = calculateTotalDiscount(order.payments);
66
-
67
- const totalWithDiscount = order.orderPayments.reduce(
68
- (acc, payment) => acc + payment.amount + payment.discountAmount,
69
- 0
70
- );
71
-
66
+ const totalWithDiscount = total - Number(totalDiscount);
72
67
  let summaryItems: SummaryItem[] = [
73
68
  {
74
69
  translateKey: AMOUNT_TOTAL,
@@ -18,7 +18,6 @@ export interface ProductSetCardProps extends HasPermissionProp {
18
18
  onCopy: () => void;
19
19
  onRemove: () => void;
20
20
  className?: string;
21
- override?: number;
22
21
  }
23
22
 
24
23
  export function ProductSetCard({
@@ -29,7 +28,6 @@ export function ProductSetCard({
29
28
  onRemove,
30
29
  className = "",
31
30
  hasPermission = true,
32
- override = 0,
33
31
  }: ProductSetCardProps) {
34
32
  const { t } = useTranslation("Design");
35
33
  const popoverId = useId();
@@ -46,14 +44,7 @@ export function ProductSetCard({
46
44
  >
47
45
  <div className={productSetCardClasses}>
48
46
  <div className="product-set-card-link">
49
- <div className="d-flex flex-column">
50
- <div>
51
- {name} {rrule && `(${RRule.fromString(rrule).toText()})`}
52
- </div>
53
- <div className="h6 bold ml-1">
54
- {!!override && t("overridesAmount", { amount: override })}
55
- </div>
56
- </div>
47
+ {name} {rrule && `(${RRule.fromString(rrule).toText()})`}
57
48
  </div>
58
49
  <div className="d-flex">
59
50
  <div className="product-set-card-menu-eye-container">
@@ -34,7 +34,6 @@ import TutorialGifCard from "./TutorialGifCard";
34
34
  import { Step } from "../types";
35
35
  import { StepsControl } from "../form/StepsControl";
36
36
  import { Typeahead } from "../../typeahead";
37
- import { DateInput } from "./DateInput";
38
37
 
39
38
  const OPERATIONAL_COST_TITLES = {
40
39
  [OPERATIONAL_COST_PROVIDER]: "operationalCostProvider",
@@ -87,7 +86,6 @@ export interface ProductSetControlProps {
87
86
  showSmsTemplate?: boolean;
88
87
  workHours?: WorkHour[];
89
88
  providerHasBookingManagement?: boolean;
90
- isOverrides?: boolean;
91
89
  }
92
90
 
93
91
  export function ProductSetControl({
@@ -103,7 +101,6 @@ export function ProductSetControl({
103
101
  showSmsTemplate,
104
102
  workHours,
105
103
  providerHasBookingManagement = false,
106
- isOverrides = false,
107
104
  }: ProductSetControlProps) {
108
105
  const { t } = useTranslation(["Design", "Validation", "Notification"]);
109
106
  const {
@@ -121,9 +118,6 @@ export function ProductSetControl({
121
118
  const termsAndConditionsId = useId();
122
119
  const relyOnPeopleTypeId = useId();
123
120
 
124
- const showSmsTemplateSelector = showSmsTemplate && !isOverrides;
125
- const showEmailTemplateSelector = showEmailTemplate && !isOverrides;
126
-
127
121
  return (
128
122
  <Row
129
123
  className={`product-set-form ${
@@ -165,30 +159,20 @@ export function ProductSetControl({
165
159
  </Form.Control.Feedback>
166
160
  </Form.Group>
167
161
 
168
- {isOverrides ? (
169
- <DateInput
162
+ {isCreateAction && (
163
+ <DateAndRecurrenceInput
164
+ isEventEditProductSet={isEventEditProductSet}
170
165
  workHours={workHours}
171
166
  isLoading={isLoading}
172
167
  providerHasBookingManagement={providerHasBookingManagement}
173
168
  />
174
- ) : (
175
- <>
176
- {isCreateAction && (
177
- <DateAndRecurrenceInput
178
- isEventEditProductSet={isEventEditProductSet}
179
- workHours={workHours}
180
- isLoading={isLoading}
181
- providerHasBookingManagement={providerHasBookingManagement}
182
- />
183
- )}
184
- </>
185
169
  )}
186
170
 
187
171
  <div className="divider" />
188
172
 
189
- <TutorialGifCard isOverrides={isOverrides} />
173
+ <TutorialGifCard />
190
174
 
191
- <StepsControl isLoading={isLoading} isOverrides={isOverrides} />
175
+ <StepsControl isLoading={isLoading} />
192
176
  </Col>
193
177
  <Col md={6} sm={12}>
194
178
  <div className="second-column">
@@ -228,7 +212,6 @@ export function ProductSetControl({
228
212
  {...register("operationalCost", { required: true })}
229
213
  as="select"
230
214
  defaultValue={OPERATIONAL_COST_PROVIDER}
231
- disabled={isOverrides}
232
215
  isInvalid={HookFormService.isInvalid("operationalCost", errors)}
233
216
  >
234
217
  {Object.keys(OPERATIONAL_COST_TYPES).map((operationalCost) => (
@@ -258,7 +241,6 @@ export function ProductSetControl({
258
241
  {...register("relyOnPeopleType")}
259
242
  as="select"
260
243
  defaultValue={null}
261
- disabled={isOverrides}
262
244
  isInvalid={HookFormService.isInvalid("relyOnPeopleType", errors)}
263
245
  >
264
246
  <option value="">{t("notRequired")} </option>
@@ -286,7 +268,7 @@ export function ProductSetControl({
286
268
  {...register("termsAndConditions")}
287
269
  as="textarea"
288
270
  rows={2}
289
- disabled={isLoading || isOverrides}
271
+ disabled={isLoading}
290
272
  isInvalid={HookFormService.isInvalid(
291
273
  "termsAndConditions",
292
274
  errors
@@ -301,32 +283,30 @@ export function ProductSetControl({
301
283
  <Form.Label className="mt-4">
302
284
  {t("Design:emailTemplate")}
303
285
  </Form.Label>
304
- <>
305
- {showEmailTemplateSelector ? (
306
- <Typeahead
307
- name="emailTemplates"
308
- options={emailTemplates}
309
- isMultipleChoise
310
- placeholder={t("Design:choose")}
311
- noOptionsMessage={t("Design:noActiveTemplates", {
312
- notification: t("Design:email"),
313
- })}
314
- />
315
- ) : (
316
- <WarningMessage
317
- message={t("Design:noActiveTemplates", {
318
- notification: t("Design:email"),
319
- })}
320
- />
321
- )}
322
- </>
286
+ {showEmailTemplate ? (
287
+ <Typeahead
288
+ name="emailTemplates"
289
+ options={emailTemplates}
290
+ isMultipleChoise
291
+ placeholder={t("Design:choose")}
292
+ noOptionsMessage={t("Design:noActiveTemplates", {
293
+ notification: t("Design:email"),
294
+ })}
295
+ />
296
+ ) : (
297
+ <WarningMessage
298
+ message={t("Design:noActiveTemplates", {
299
+ notification: t("Design:email"),
300
+ })}
301
+ />
302
+ )}
323
303
 
324
304
  <Form.Label
325
305
  className={clsx(emailTemplates.length > 0 ? "mt-4" : "mt-1")}
326
306
  >
327
307
  {t("Design:smsTemplate")}
328
308
  </Form.Label>
329
- {showSmsTemplateSelector ? (
309
+ {showSmsTemplate ? (
330
310
  <Typeahead
331
311
  name="smsTemplates"
332
312
  options={smsTemplates}
@@ -359,7 +339,6 @@ export function ProductSetControl({
359
339
  onChange={field.onChange}
360
340
  value={fieldValue}
361
341
  as="select"
362
- disabled={isOverrides}
363
342
  isInvalid={HookFormService.isInvalid(
364
343
  "fieldSetId",
365
344
  errors
@@ -396,7 +375,6 @@ export function ProductSetControl({
396
375
  }) as string;
397
376
  },
398
377
  })}
399
- disabled={isOverrides}
400
378
  isInvalid={HookFormService.isInvalid("thankYouPageUrl", errors)}
401
379
  />
402
380