@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.
- package/dist/iframe/event/event-card/IframeEventCard.d.ts +1 -2
- package/dist/iframe/event/event-card/IframeEventCard.d.ts.map +1 -1
- package/dist/iframe/event/event-card/IframeEventCard.js +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js +1 -1
- package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.d.ts.map +1 -1
- package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.js +1 -1
- package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts.map +1 -1
- package/dist/iframe/payment/order-items-table/utils/paymentSummary.js +1 -1
- package/dist/index.js +1 -1
- package/dist/product-set/card/ProductSetCard.d.ts +1 -2
- package/dist/product-set/card/ProductSetCard.d.ts.map +1 -1
- package/dist/product-set/card/ProductSetCard.js +1 -1
- package/dist/product-set/control/ProductSetControl.d.ts +1 -2
- package/dist/product-set/control/ProductSetControl.d.ts.map +1 -1
- package/dist/product-set/control/ProductSetControl.js +1 -1
- package/dist/product-set/control/TutorialGifCard.d.ts +1 -2
- package/dist/product-set/control/TutorialGifCard.d.ts.map +1 -1
- package/dist/product-set/control/TutorialGifCard.js +1 -1
- package/dist/product-set/form/ProductCategoriesControl.d.ts +1 -2
- package/dist/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductCategoriesControl.js +1 -1
- package/dist/product-set/form/ProductSetForm.d.ts +2 -7
- package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
- package/dist/product-set/form/ProductSetForm.js +1 -1
- package/dist/product-set/form/ProductsControl.d.ts +1 -2
- package/dist/product-set/form/ProductsControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductsControl.js +1 -1
- package/dist/product-set/form/StepsControl.d.ts +1 -2
- package/dist/product-set/form/StepsControl.d.ts.map +1 -1
- package/dist/product-set/form/StepsControl.js +1 -1
- package/dist/product-set/form/SubProductsControl.d.ts +1 -2
- package/dist/product-set/form/SubProductsControl.d.ts.map +1 -1
- package/dist/product-set/form/SubProductsControl.js +1 -1
- package/dist/product-set/hooks/useSortableTreeFunctions.d.ts +1 -2
- package/dist/product-set/hooks/useSortableTreeFunctions.d.ts.map +1 -1
- package/dist/product-set/hooks/useSortableTreeFunctions.js +1 -1
- package/dist/product-set/item/CreateProductSetItem.d.ts +1 -2
- package/dist/product-set/item/CreateProductSetItem.d.ts.map +1 -1
- package/dist/product-set/item/CreateProductSetItem.js +1 -1
- package/dist/product-set/product/ProductControl.d.ts +1 -2
- package/dist/product-set/product/ProductControl.d.ts.map +1 -1
- package/dist/product-set/product/ProductControl.js +1 -1
- package/dist/product-set/product/fixed-duration-fields/FixedDurationOptions.d.ts +2 -4
- package/dist/product-set/product/fixed-duration-fields/FixedDurationOptions.d.ts.map +1 -1
- package/dist/product-set/product/fixed-duration-fields/FixedDurationOptions.js +1 -1
- package/dist/product-set/product/quantity/ProductQuantityControl.d.ts +0 -1
- package/dist/product-set/product/quantity/ProductQuantityControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityControl.js +1 -1
- package/dist/product-set/product-category/ProductCategoryControl.d.ts +1 -2
- package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
- package/dist/product-set/product-category/ProductCategoryControl.js +1 -1
- package/dist/recurring-date-picker-input/RecurringDatePickerInput.d.ts +0 -2
- package/dist/recurring-date-picker-input/RecurringDatePickerInput.d.ts.map +1 -1
- package/dist/recurring-date-picker-input/RecurringDatePickerInput.js +1 -1
- package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
- package/dist/sortable-list/SortableList.d.ts +1 -2
- package/dist/sortable-list/SortableList.d.ts.map +1 -1
- package/dist/sortable-list/SortableList.js +1 -1
- package/dist/sortable-tree/SortableTreeItem.d.ts +1 -3
- package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
- package/dist/sortable-tree/SortableTreeItem.js +1 -1
- package/dist/static/manual-date-picker/ManualDatePicker.js +1 -1
- package/dist/static/manual-date-picker/constants/index.d.ts +1 -4
- package/dist/static/manual-date-picker/constants/index.d.ts.map +1 -1
- package/dist/static/manual-date-picker/constants/index.js +1 -1
- package/dist/static/manual-date-picker/utils/index.d.ts +0 -4
- package/dist/static/manual-date-picker/utils/index.d.ts.map +1 -1
- package/dist/static/manual-date-picker/utils/index.js +1 -1
- package/dist/styles/availability-indicator/AvailabilityIndicator.scss +0 -10
- package/dist/styles/iframe-events/Card.scss +8 -24
- package/dist/styles/iframe-events/PoweredBy.scss +2 -2
- package/dist/styles/iframe-order-process/IframeOrderProcess.scss +2 -0
- package/dist/styles/iframe-page/Page.scss +0 -1
- package/dist/styles/iframe-page/PageBody.scss +11 -32
- package/dist/styles/iframe-page/PageHeader.scss +39 -41
- package/dist/styles/product-set/EditVenueMapSetModal.scss +1 -1
- package/dist/styles/sales/BookingResults.scss +1 -1
- package/package.json +3 -3
- package/src/calendar/Calendar.stories.tsx +2 -9
- package/src/iframe/event/event-card/IframeEventCard.stories.tsx +0 -1
- package/src/iframe/event/event-card/IframeEventCard.tsx +8 -7
- package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +1 -1
- package/src/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.tsx +1 -3
- package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +1 -6
- package/src/product-set/card/ProductSetCard.tsx +1 -10
- package/src/product-set/control/ProductSetControl.tsx +24 -46
- package/src/product-set/control/TutorialGifCard.tsx +3 -11
- package/src/product-set/form/ProductCategoriesControl.tsx +1 -12
- package/src/product-set/form/ProductSetForm.tsx +1 -10
- package/src/product-set/form/ProductsControl.tsx +0 -10
- package/src/product-set/form/StepsControl.tsx +2 -8
- package/src/product-set/form/SubProductsControl.tsx +0 -3
- package/src/product-set/hooks/useSortableTreeFunctions.ts +0 -4
- package/src/product-set/item/CreateProductSetItem.tsx +0 -3
- package/src/product-set/product/ProductControl.tsx +12 -23
- package/src/product-set/product/fixed-duration-fields/FixedDurationOptions.tsx +2 -10
- package/src/product-set/product/quantity/ProductQuantityControl.tsx +3 -4
- package/src/product-set/product-category/ProductCategoryControl.tsx +8 -12
- package/src/recurring-date-picker-input/RecurringDatePickerInput.tsx +1 -4
- package/src/sales/booking/results/components/ResultCard.tsx +3 -0
- package/src/sortable-list/SortableList.tsx +0 -3
- package/src/sortable-tree/SortableTreeItem.tsx +1 -7
- package/src/static/manual-date-picker/ManualDatePicker.tsx +3 -3
- package/src/static/manual-date-picker/constants/index.ts +2 -6
- package/src/static/manual-date-picker/utils/index.ts +0 -11
- package/src/static/switch/BooleanSwitch.tsx +1 -1
- package/src/styles/availability-indicator/AvailabilityIndicator.scss +0 -10
- package/src/styles/iframe-events/Card.scss +8 -24
- package/src/styles/iframe-events/PoweredBy.scss +2 -2
- package/src/styles/iframe-order-process/IframeOrderProcess.scss +2 -0
- package/src/styles/iframe-page/Page.scss +0 -1
- package/src/styles/iframe-page/PageBody.scss +11 -32
- package/src/styles/iframe-page/PageHeader.scss +39 -41
- package/src/styles/product-set/EditVenueMapSetModal.scss +1 -1
- package/src/styles/sales/BookingResults.scss +1 -1
- package/dist/product-set/control/DateInput.d.ts +0 -17
- package/dist/product-set/control/DateInput.d.ts.map +0 -1
- package/dist/product-set/control/DateInput.js +0 -1
- package/dist/product-set/control/ProductSetRecurrenceOverridesControl.d.ts +0 -11
- package/dist/product-set/control/ProductSetRecurrenceOverridesControl.d.ts.map +0 -1
- package/dist/product-set/control/ProductSetRecurrenceOverridesControl.js +0 -1
- package/dist/recurring-date-picker-input/DatePickerInput.d.ts +0 -19
- package/dist/recurring-date-picker-input/DatePickerInput.d.ts.map +0 -1
- package/dist/recurring-date-picker-input/DatePickerInput.js +0 -1
- package/dist/recurring-date-picker-input/RecurrenceAndFrequencyInput.d.ts +0 -15
- package/dist/recurring-date-picker-input/RecurrenceAndFrequencyInput.d.ts.map +0 -1
- package/dist/recurring-date-picker-input/RecurrenceAndFrequencyInput.js +0 -1
- package/src/product-set/control/DateInput.tsx +0 -311
- package/src/product-set/control/ProductSetRecurrenceOverridesControl.tsx +0 -63
- package/src/recurring-date-picker-input/DatePickerInput.tsx +0 -93
- 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
|
|
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:
|
|
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:
|
|
98
|
+
opacity: .7;
|
|
116
99
|
}
|
|
117
100
|
}
|
|
118
101
|
|
|
119
102
|
&:active,
|
|
120
103
|
&.active {
|
|
121
104
|
&:not(:disabled) {
|
|
122
|
-
opacity:
|
|
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.
|
|
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
|
}
|
|
@@ -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:
|
|
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 -
|
|
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:
|
|
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
|
-
|
|
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
|
-
.
|
|
35
|
-
|
|
36
|
-
width: $base-height;
|
|
24
|
+
.button-wrapper {
|
|
25
|
+
background-color: $snippet-page-header-steps-close-button-background-color;
|
|
37
26
|
height: $base-height;
|
|
38
|
-
|
|
39
|
-
|
|
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
|
-
|
|
45
|
-
|
|
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
|
-
|
|
50
|
-
|
|
51
|
-
|
|
46
|
+
&.close-button {
|
|
47
|
+
margin-left: 1rem;
|
|
48
|
+
}
|
|
52
49
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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
|
-
|
|
65
|
-
|
|
61
|
+
&:hover {
|
|
62
|
+
cursor: pointer;
|
|
63
|
+
}
|
|
66
64
|
}
|
|
67
|
-
}
|
|
68
65
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
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
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@licklist/design",
|
|
3
|
-
"version": "0.58.
|
|
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": "
|
|
56
|
+
"@licklist/core": "^0.23.1",
|
|
57
57
|
"@licklist/eslint-config": "0.3.4",
|
|
58
|
-
"@licklist/plugins": "
|
|
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:
|
|
33
|
-
currentDate: now,
|
|
34
|
-
getDateTimeButtonProps: () => ({
|
|
35
|
-
resources: [],
|
|
36
|
-
showResources: false,
|
|
37
|
-
shouldCalculateResources: false,
|
|
38
|
-
isDisabled: false,
|
|
39
|
-
}),
|
|
32
|
+
calendarDates: [],
|
|
40
33
|
};
|
|
@@ -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">
|
|
98
|
-
|
|
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>
|
package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx
CHANGED
|
@@ -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={
|
|
93
|
+
min={min}
|
|
94
94
|
max={max}
|
|
95
95
|
defaultValue={defaultValue}
|
|
96
96
|
placeholder={placeholder}
|
|
@@ -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
|
-
|
|
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
|
-
{
|
|
169
|
-
<
|
|
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
|
|
173
|
+
<TutorialGifCard />
|
|
190
174
|
|
|
191
|
-
<StepsControl isLoading={isLoading}
|
|
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
|
|
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
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
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
|
-
{
|
|
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
|
|