@licklist/design 0.58.4-dev.1 → 0.58.4
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.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.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 +10 -30
- package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +12 -8
- 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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/static/manual-date-picker/constants/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/static/manual-date-picker/constants/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,UAA+B,CAAC;AACvD,eAAO,MAAM,YAAY,UAA+B,CAAC;AACzD,eAAO,MAAM,WAAW,UAAuB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../utils/index.js"),r=e.generateDatesArray(1,31,1),t=e.
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../utils/index.js"),r=e.generateDatesArray(1,31,1),t=e.generateDatesArray(1,12,1),s=e.generateYearsArray();exports.DAYS_ARRAY=r,exports.MONTHS_ARRAY=t,exports.YEARS_ARRAY=s;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
export declare const generateDatesArray: (start: number, end: number, step: number) => number[];
|
|
2
|
-
export declare const generateMonthsOptionsArray: () => {
|
|
3
|
-
key: string;
|
|
4
|
-
value: number;
|
|
5
|
-
}[];
|
|
6
2
|
export declare const generateYearsArray: () => number[];
|
|
7
3
|
export declare const dateToSqlDate: (day: number, month: number, year: number) => string;
|
|
8
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/static/manual-date-picker/utils/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,UAAW,MAAM,OAAO,MAAM,QAAQ,MAAM,aAIxE,CAAC;AAEJ,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/static/manual-date-picker/utils/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,UAAW,MAAM,OAAO,MAAM,QAAQ,MAAM,aAIxE,CAAC;AAEJ,eAAO,MAAM,kBAAkB,gBAQ9B,CAAC;AAEF,eAAO,MAAM,aAAa,QAAS,MAAM,SAAS,MAAM,QAAQ,MAAM,WAUrE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.dateToSqlDate=function(r,t,e){var n=function(r){return r<10?"0".concat(r):r};return"".concat(e,"-").concat(n(t),"-").concat(n(r))},exports.generateDatesArray=function(r,t,e){return Array.from({length:(t-r)/e+1},(function(r,t){return 1+t*e}))},exports.
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.dateToSqlDate=function(r,t,e){var n=function(r){return r<10?"0".concat(r):r};return"".concat(e,"-").concat(n(t),"-").concat(n(r))},exports.generateDatesArray=function(r,t,e){return Array.from({length:(t-r)/e+1},(function(r,t){return 1+t*e}))},exports.generateYearsArray=function(){var r=(new Date).getFullYear()-100;return Array.from({length:100},(function(t,e){return r+e+1})).sort((function(r,t){return t-r}))};
|
|
@@ -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.4
|
|
3
|
+
"version": "0.58.4",
|
|
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
|
@@ -32,44 +32,24 @@ export const NumberInput = forwardRef<HTMLInputElement, NumberInputProps>(
|
|
|
32
32
|
ref
|
|
33
33
|
) => {
|
|
34
34
|
const minusButtonGreyedOut = !value;
|
|
35
|
-
const plusButtonGreyedOut = max
|
|
36
|
-
|
|
37
|
-
const handleChangeValue = (val: number) => {
|
|
38
|
-
if (max > 0 && val > max) {
|
|
39
|
-
onChange(max);
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
if (min > 0 && val && val < min) {
|
|
44
|
-
onChange(min);
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
onChange(val);
|
|
48
|
-
};
|
|
35
|
+
const plusButtonGreyedOut = max !== undefined && value === max;
|
|
49
36
|
|
|
50
37
|
const handleArrowUpClick = () => {
|
|
51
|
-
if (max
|
|
52
|
-
|
|
38
|
+
if (max !== undefined && (value || 0) < max) {
|
|
39
|
+
onArrowUp(value + 1);
|
|
53
40
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
onArrowUp(min);
|
|
57
|
-
return;
|
|
41
|
+
if (max === undefined) {
|
|
42
|
+
onArrowUp(value + 1);
|
|
58
43
|
}
|
|
59
|
-
|
|
60
|
-
onArrowUp((value || 0) + 1);
|
|
61
44
|
};
|
|
62
45
|
|
|
63
46
|
const handleArrowDownClick = () => {
|
|
64
|
-
if (
|
|
65
|
-
|
|
47
|
+
if (min !== undefined && value > min) {
|
|
48
|
+
onArrowDown(value - 1);
|
|
66
49
|
}
|
|
67
|
-
if (min
|
|
68
|
-
|
|
69
|
-
return;
|
|
50
|
+
if (min === undefined) {
|
|
51
|
+
onArrowUp(value - 1);
|
|
70
52
|
}
|
|
71
|
-
|
|
72
|
-
onArrowUp(value - 1);
|
|
73
53
|
};
|
|
74
54
|
|
|
75
55
|
const inputWrapperClasses = clsx("payment-number-input", className);
|
|
@@ -88,7 +68,7 @@ export const NumberInput = forwardRef<HTMLInputElement, NumberInputProps>(
|
|
|
88
68
|
</button>
|
|
89
69
|
<FormControl
|
|
90
70
|
type="number"
|
|
91
|
-
onChange={(e) =>
|
|
71
|
+
onChange={(e) => onChange(Number(e.target.value))}
|
|
92
72
|
value={value}
|
|
93
73
|
min={min}
|
|
94
74
|
max={max}
|
|
@@ -45,6 +45,10 @@ export const ProductQuantityInput = ({
|
|
|
45
45
|
const { t } = useTranslation("Design");
|
|
46
46
|
|
|
47
47
|
const onChange = (quantity: number | null) => {
|
|
48
|
+
let productQuantity = quantity;
|
|
49
|
+
if (product?.maxAmount && quantity > product?.maxAmount) {
|
|
50
|
+
productQuantity = product?.maxAmount;
|
|
51
|
+
}
|
|
48
52
|
_onChange({
|
|
49
53
|
id: product.id,
|
|
50
54
|
name: product.name,
|
|
@@ -53,7 +57,7 @@ export const ProductQuantityInput = ({
|
|
|
53
57
|
price: product.price,
|
|
54
58
|
productCategoryId: category.id,
|
|
55
59
|
zoneId: category.zone?.id,
|
|
56
|
-
quantity,
|
|
60
|
+
quantity: productQuantity,
|
|
57
61
|
capacity: product?.capacity,
|
|
58
62
|
});
|
|
59
63
|
};
|
|
@@ -88,19 +92,19 @@ export const ProductQuantityInput = ({
|
|
|
88
92
|
<NumberInput
|
|
89
93
|
ref={refCallback}
|
|
90
94
|
onChange={(val) => {
|
|
91
|
-
onChange(val);
|
|
95
|
+
onChange(val || null);
|
|
92
96
|
clearErrors(`${product.id}` as const);
|
|
93
97
|
}}
|
|
94
|
-
onArrowDown={(
|
|
95
|
-
onChange(
|
|
98
|
+
onArrowDown={() => {
|
|
99
|
+
onChange(productInfo?.quantity - 1 || 0);
|
|
96
100
|
clearErrors(`${product.id}` as const);
|
|
97
101
|
}}
|
|
98
|
-
onArrowUp={(
|
|
99
|
-
onChange(
|
|
102
|
+
onArrowUp={() => {
|
|
103
|
+
onChange((productInfo?.quantity ?? 0) + 1);
|
|
100
104
|
clearErrors(`${product.id}` as const);
|
|
101
105
|
}}
|
|
102
|
-
min={
|
|
103
|
-
max={product?.maxAmount ? Number(product
|
|
106
|
+
min={0}
|
|
107
|
+
max={product?.maxAmount ? Number(product?.maxAmount) : undefined}
|
|
104
108
|
placeholder="0"
|
|
105
109
|
disabled={product.isSoldOut}
|
|
106
110
|
value={productInfo?.quantity}
|
|
@@ -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">
|