@licklist/design 0.59.0-dev.9 → 0.59.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bitbucket-pipelines.yml +8 -0
- package/dist/calendar/Calendar.d.ts +1 -1
- package/dist/calendar/Calendar.d.ts.map +1 -1
- package/dist/calendar/Calendar.js +1 -1
- package/dist/calendar/components/CalendarDates/CalendarDates.d.ts +2 -2
- package/dist/calendar/components/CalendarDates/CalendarDates.d.ts.map +1 -1
- package/dist/calendar/components/CalendarDates/CalendarDates.js +1 -1
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts +1 -3
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts.map +1 -1
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.js +1 -1
- package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.d.ts +1 -3
- package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.d.ts.map +1 -1
- package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.js +1 -1
- package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.d.ts +1 -3
- package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.d.ts.map +1 -1
- package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +1 -1
- package/dist/iframe/activity-card/ActivityCard.d.ts +1 -2
- package/dist/iframe/activity-card/ActivityCard.d.ts.map +1 -1
- package/dist/iframe/activity-card/ActivityCard.js +1 -1
- 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/page/components/PageBody/constants.d.ts +1 -1
- package/dist/iframe/page/components/PageBody/constants.d.ts.map +1 -1
- package/dist/iframe/page/components/PageBody/constants.js +1 -1
- package/dist/iframe/page/components/PageBody/hooks/useResizePageBody.js +1 -1
- package/dist/iframe/payment/order-items-table/utils/paymentSummary.js +1 -1
- package/dist/iframe/payment/payment-page/PaymentPage.js +1 -1
- package/dist/iframe/ryft/RyftPaymentForm.d.ts +1 -3
- package/dist/iframe/ryft/RyftPaymentForm.d.ts.map +1 -1
- package/dist/iframe/ryft/RyftPaymentForm.js +1 -1
- package/dist/iframe/ryft/utils/ryft-form.d.ts +1 -2
- package/dist/iframe/ryft/utils/ryft-form.d.ts.map +1 -1
- package/dist/iframe/ryft/utils/ryft-form.js +1 -1
- package/dist/product-set/control/DateAndRecurrenceInput.d.ts +1 -1
- package/dist/product-set/control/DateAndRecurrenceInput.d.ts.map +1 -1
- package/dist/product-set/control/DateAndRecurrenceInput.js +1 -1
- package/dist/product-set/control/DateInput.d.ts.map +1 -1
- package/dist/product-set/control/DateInput.js +1 -1
- package/dist/product-set/control/ProductSetControl.d.ts +1 -1
- package/dist/product-set/control/ProductSetControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductSetForm.d.ts +1 -4
- package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
- package/dist/product-set/hooks/useSortableTreeFunctions.d.ts.map +1 -1
- 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.map +1 -1
- package/dist/product-set/product-category/ProductCategoryControl.d.ts +0 -1
- package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
- package/dist/product-set/product-category/ProductCategoryControl.js +1 -1
- package/dist/provider/working-hours-input/WorkingHoursInputDescription.d.ts.map +1 -1
- package/dist/provider/working-hours-input/WorkingHoursInputDescription.js +1 -1
- package/dist/recurring-date-picker-input/RecurrenceAndFrequencyInput.d.ts.map +1 -1
- package/dist/recurring-date-picker-input/RecurringDatePickerInput.d.ts +1 -3
- package/dist/recurring-date-picker-input/RecurringDatePickerInput.d.ts.map +1 -1
- package/dist/recurring-date-picker-input/RecurringDatePickerInput.js +1 -1
- package/dist/recurring-date-picker-input/utils.d.ts +0 -12
- package/dist/recurring-date-picker-input/utils.d.ts.map +1 -1
- package/dist/recurring-date-picker-input/utils.js +1 -1
- package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
- package/dist/sales/booking/results/components/ResultCard.js +1 -1
- package/dist/sales/coupon/control/CouponFormControl.d.ts +1 -2
- package/dist/sales/coupon/control/CouponFormControl.d.ts.map +1 -1
- package/dist/sales/coupon/control/CouponFormControl.js +1 -1
- package/dist/sales/coupon/form/CouponFrom.d.ts +2 -2
- package/dist/sales/coupon/form/CouponFrom.d.ts.map +1 -1
- package/dist/setting/admin/AdminSettingForm.d.ts +2 -2
- package/dist/setting/admin/AdminSettingForm.d.ts.map +1 -1
- package/dist/setting/dashboard/DashboardSettingForm.d.ts +0 -1
- package/dist/setting/dashboard/DashboardSettingForm.d.ts.map +1 -1
- package/dist/setting/dashboard/DashboardSettingForm.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/activity-card/ListActivitiesCard.scss +1 -1
- package/dist/styles/iframe-events/Card.scss +8 -24
- package/dist/styles/iframe-events/PoweredBy.scss +2 -2
- package/dist/styles/iframe-external-modal/IframeExternalModal.scss +2 -5
- 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 +9 -32
- package/dist/styles/iframe-page/PageHeader.scss +39 -41
- package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +113 -99
- package/dist/styles/sales/BookingResults.scss +1 -1
- package/dist/typeahead/Typeahead.d.ts +1 -2
- package/dist/typeahead/Typeahead.d.ts.map +1 -1
- package/dist/typeahead/Typeahead.js +1 -1
- package/dist/zone/form/ZoneForm.d.ts +2 -2
- package/dist/zone/form/ZoneForm.d.ts.map +1 -1
- package/dist/zone/form/ZoneForm.js +1 -1
- package/dist/zone/form/components/ZoneControl.d.ts +2 -2
- package/dist/zone/form/components/ZoneControl.d.ts.map +1 -1
- package/dist/zone/form/components/ZoneControl.js +1 -1
- package/dist/zone/form/components/ZoneRecurrencesControl.d.ts +4 -4
- package/dist/zone/form/components/ZoneRecurrencesControl.d.ts.map +1 -1
- package/dist/zone/form/components/ZoneRecurrencesControl.js +1 -1
- package/dist/zone/form/utils/dates.d.ts.map +1 -1
- package/jest.config.js +29 -0
- package/package.json +35 -10
- package/src/calendar/Calendar.stories.tsx +0 -23
- package/src/calendar/Calendar.tsx +5 -5
- package/src/calendar/components/CalendarDates/CalendarDates.tsx +5 -0
- package/src/events/edit-event-modal/component/EditEventForm/EditEventForm.tsx +0 -4
- package/src/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.tsx +8 -10
- package/src/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.tsx +0 -4
- package/src/iframe/activity-card/ActivityCard.tsx +2 -4
- 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/page/components/PageBody/constants.ts +1 -1
- package/src/iframe/page/components/PageBody/hooks/useResizePageBody.ts +3 -3
- package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +6 -6
- package/src/iframe/payment/payment-page/PaymentPage.tsx +2 -2
- package/src/iframe/ryft/RyftPaymentForm.tsx +3 -20
- package/src/iframe/ryft/utils/ryft-form.ts +5 -11
- package/src/product-set/control/DateAndRecurrenceInput.tsx +2 -3
- package/src/product-set/control/DateInput.tsx +5 -4
- package/src/product-set/control/ProductSetControl.tsx +1 -1
- package/src/product-set/form/ProductCategoriesControl.tsx +1 -1
- package/src/product-set/form/ProductSetForm.tsx +1 -5
- package/src/product-set/hooks/useSortableTreeFunctions.ts +0 -2
- package/src/product-set/product/ProductControl.tsx +38 -38
- package/src/product-set/product/fixed-duration-fields/FixedDurationOptions.tsx +2 -0
- package/src/product-set/product-category/ProductCategoryControl.tsx +27 -89
- package/src/provider/working-hours-input/WorkingHoursInputDescription.tsx +18 -4
- package/src/recurring-date-picker-input/RecurrenceAndFrequencyInput.tsx +1 -0
- package/src/recurring-date-picker-input/RecurringDatePickerInput.tsx +1 -11
- package/src/recurring-date-picker-input/utils.ts +0 -77
- package/src/sales/booking/results/BookingResults.stories.tsx +2 -3
- package/src/sales/booking/results/components/ResultCard.tsx +5 -2
- package/src/sales/coupon/control/CouponFormControl.tsx +50 -29
- package/src/sales/coupon/form/CouponFrom.tsx +15 -5
- package/src/setting/admin/AdminSettingForm.tsx +2 -2
- package/src/setting/dashboard/DashboardSettingForm.tsx +0 -13
- package/src/sortable-tree/SortableTreeItem.tsx +1 -1
- 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/activity-card/ListActivitiesCard.scss +1 -1
- package/src/styles/iframe-events/Card.scss +8 -24
- package/src/styles/iframe-events/PoweredBy.scss +2 -2
- package/src/styles/iframe-external-modal/IframeExternalModal.scss +2 -5
- 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 +9 -32
- package/src/styles/iframe-page/PageHeader.scss +39 -41
- package/src/styles/ryft-payment-form/RyftPaymentForm.scss +113 -99
- package/src/styles/sales/BookingResults.scss +1 -1
- package/src/typeahead/Typeahead.tsx +3 -16
- package/src/zone/form/ZoneForm.tsx +2 -3
- package/src/zone/form/components/ZoneControl.tsx +3 -3
- package/src/zone/form/components/ZoneRecurrencesControl.tsx +5 -7
- package/src/zone/form/utils/dates.ts +10 -9
- package/tests/Auth/Authorizer.test.tsx +194 -0
- package/tests/Auth/Layout/UserNavDropDown.test.tsx +43 -0
- package/tests/Auth/Layout/UserNavDropDownToggle.test.tsx +33 -0
- package/tests/Auth/Login/LoginComponent.test.tsx +246 -0
- package/tests/Auth/Login/LoginFormComponent.test.tsx +182 -0
- package/tests/Auth/Register/RegisterComponent.test.tsx +285 -0
- package/tests/Auth/Register/RegisterFormComponent.test.tsx +170 -0
- package/tests/Auth/Settings/Dashboard/IpInput.test.tsx +130 -0
- package/tests/Auth/Social/SocialCallbackComponent.test.tsx +133 -0
- package/tests/Auth/Social/SocialFormComponent.test.tsx +118 -0
- package/tests/FileUpload/FileUpload.test.tsx +42 -0
- package/tests/Notification/EmailTemplate.test.tsx +82 -0
- package/tests/ProductSet/ProductSetPopover.test.tsx +40 -0
- package/tests/Report/Report.test.tsx +48 -0
- package/tests/Sales/Coupon.test.tsx +51 -0
- package/tests/Sales/SalesAndVIews.test.tsx +63 -0
- package/tests/SnippetTemplates/SnippetTemplates.test.tsx +56 -0
- package/tests/Table/FilterHelperComponent.test.tsx +88 -0
- package/tests/Table/PaginationHelperComponent.test.tsx +109 -0
- package/tests/Table/PerPageHelperComponent.test.tsx +34 -0
- package/tests/Table/TableHelperComponent.test.tsx +295 -0
- package/tests/TipTapEditor/TipTapEditor.test.tsx +28 -0
- package/tests/__mock__/hooks/useAuthApi.ts +13 -0
- package/tests/__mock__/hooks/useAuthMock.ts +13 -0
- package/tests/__mock__/hooks/useFormMock.ts +27 -0
- package/tests/__mock__/hooks/useNotificationMock.ts +13 -0
- package/tests/__mock__/hooks/useQueryMock.ts +16 -0
- package/tests/__mock__/hooks/useSocialApiMock.ts +20 -0
- package/tests/__mock__/hooks/useTranslationMock.ts +17 -0
- package/tests/__mock__/hooks/useUserApiMock.ts +18 -0
- package/tests/__mock__/hooks/useUserMock.ts +13 -0
- package/tests/__mock__/styleMock.js +1 -0
- package/tests/__mock__/windowMock.ts +5 -0
- package/tests/packages/react-query.tsx +28 -0
- package/tests/setupTests.ts +10 -0
- package/dist/sales/coupon/utils/index.d.ts +0 -7
- package/dist/sales/coupon/utils/index.d.ts.map +0 -1
- package/dist/sales/coupon/utils/index.js +0 -1
- package/src/sales/coupon/utils/index.ts +0 -13
|
@@ -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 ??
|
|
26
|
+
{ id: 1, value: firstValueTitle ?? t("yes") },
|
|
27
27
|
{ id: 0, value: secondValueTitle ?? t("no") },
|
|
28
28
|
];
|
|
29
29
|
|
|
@@ -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
|
}
|
|
@@ -4,8 +4,7 @@ html[bkdt-scrollable="false"] {
|
|
|
4
4
|
overflow: hidden !important;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
body[bkdt-scrollable="false"] .bkdt-modal,
|
|
8
|
-
body[bkdt-scrollable="false"] .bkdt-mask {
|
|
7
|
+
body[bkdt-scrollable="false"] .bkdt-modal, body[bkdt-scrollable="false"] .bkdt-mask {
|
|
9
8
|
display: block;
|
|
10
9
|
}
|
|
11
10
|
|
|
@@ -16,7 +15,7 @@ body[bkdt-scrollable="false"] .bkdt-mask {
|
|
|
16
15
|
width: 100%;
|
|
17
16
|
height: 100%;
|
|
18
17
|
z-index: 1000000;
|
|
19
|
-
background-color: rgba(0,
|
|
18
|
+
background-color: rgba(0,0,0,0.5);
|
|
20
19
|
display: none;
|
|
21
20
|
}
|
|
22
21
|
|
|
@@ -83,7 +82,6 @@ body[bkdt-scrollable="false"] .bkdt-mask {
|
|
|
83
82
|
width: 100%;
|
|
84
83
|
height: 100%;
|
|
85
84
|
max-width: 800px;
|
|
86
|
-
min-height: unset;
|
|
87
85
|
}
|
|
88
86
|
}
|
|
89
87
|
}
|
|
@@ -100,7 +98,6 @@ body[bkdt-scrollable="false"] .bkdt-mask {
|
|
|
100
98
|
.bkdt-modal-content {
|
|
101
99
|
.bkdt-modal-body {
|
|
102
100
|
height: 35rem;
|
|
103
|
-
max-height: 85vh;
|
|
104
101
|
}
|
|
105
102
|
}
|
|
106
103
|
}
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
.left-block {
|
|
14
14
|
flex: 1;
|
|
15
15
|
align-items: stretch;
|
|
16
|
+
border-radius: 0.5rem;
|
|
17
|
+
border-bottom-left-radius: 0;
|
|
18
|
+
border-bottom-right-radius: 0;
|
|
16
19
|
padding: 1rem;
|
|
17
20
|
background-color: $snippet-page-body-left-block-background-color;
|
|
18
21
|
border: 0;
|
|
@@ -31,6 +34,7 @@
|
|
|
31
34
|
display: flex;
|
|
32
35
|
align-items: flex-start;
|
|
33
36
|
justify-content: space-between;
|
|
37
|
+
|
|
34
38
|
.title {
|
|
35
39
|
color: $snippet-elements-body-color;
|
|
36
40
|
margin: 0;
|
|
@@ -61,7 +65,7 @@
|
|
|
61
65
|
overflow-x: hidden;
|
|
62
66
|
scrollbar-width: thin;
|
|
63
67
|
.iframe-event-card {
|
|
64
|
-
border-bottom:
|
|
68
|
+
border-bottom: 2px solid $separator-color;
|
|
65
69
|
}
|
|
66
70
|
|
|
67
71
|
@include media-breakpoint-down(sm) {
|
|
@@ -110,7 +114,7 @@
|
|
|
110
114
|
}
|
|
111
115
|
|
|
112
116
|
.collapse {
|
|
113
|
-
max-height: calc(100vh -
|
|
117
|
+
max-height: calc(100vh - 19rem);
|
|
114
118
|
transition: none 0s ease 0s;
|
|
115
119
|
|
|
116
120
|
&.show {
|
|
@@ -120,7 +124,7 @@
|
|
|
120
124
|
}
|
|
121
125
|
|
|
122
126
|
@include media-breakpoint-down(sm) {
|
|
123
|
-
max-height:
|
|
127
|
+
max-height: 7.5rem;
|
|
124
128
|
}
|
|
125
129
|
}
|
|
126
130
|
.collapse-with-people-input {
|
|
@@ -146,14 +150,8 @@
|
|
|
146
150
|
}
|
|
147
151
|
|
|
148
152
|
.iframe-event-card {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
.card-image {
|
|
152
|
-
border-radius: 0;
|
|
153
|
-
}
|
|
154
|
-
.card-body {
|
|
155
|
-
padding-left: 1rem;
|
|
156
|
-
}
|
|
153
|
+
background-color: transparent;
|
|
154
|
+
border-color: transparent;
|
|
157
155
|
}
|
|
158
156
|
|
|
159
157
|
.price {
|
|
@@ -263,24 +261,3 @@
|
|
|
263
261
|
}
|
|
264
262
|
}
|
|
265
263
|
}
|
|
266
|
-
|
|
267
|
-
.event-list-page-body {
|
|
268
|
-
overflow: auto;
|
|
269
|
-
.left-block {
|
|
270
|
-
.navigation {
|
|
271
|
-
font-size: 1.125rem;
|
|
272
|
-
font-weight: 500;
|
|
273
|
-
padding-bottom: 2.625rem;
|
|
274
|
-
display: flex;
|
|
275
|
-
align-items: flex-start;
|
|
276
|
-
justify-content: space-between;
|
|
277
|
-
margin-top: 0.125rem;
|
|
278
|
-
|
|
279
|
-
.title {
|
|
280
|
-
position: absolute;
|
|
281
|
-
color: $snippet-elements-body-color;
|
|
282
|
-
margin: 0;
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
}
|
|
@@ -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
|
}
|
|
@@ -47,127 +47,141 @@
|
|
|
47
47
|
margin-left: 0.5rem;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
+
.ryft-payment-form {
|
|
51
|
+
.submit-button-wrapper {
|
|
52
|
+
margin: -1rem 0 1rem;
|
|
53
|
+
|
|
54
|
+
button {
|
|
55
|
+
width: 100%;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
#mobile-pay-divider-container {
|
|
59
|
+
display: flex;
|
|
60
|
+
position: relative;
|
|
61
|
+
margin-bottom: 1rem;
|
|
62
|
+
#mobile-pay-divider-text {
|
|
63
|
+
margin-right: 1rem;
|
|
64
|
+
font-size: 0.875rem;
|
|
65
|
+
font-weight: 600;
|
|
66
|
+
}
|
|
67
|
+
#mobile-pay-divider {
|
|
68
|
+
width: 100%;
|
|
69
|
+
border-bottom: 1px #dfdfdf solid;
|
|
70
|
+
margin-bottom: 0.6rem;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
#card-title-container {
|
|
75
|
+
height: auto;
|
|
76
|
+
border: none;
|
|
77
|
+
margin-bottom: 0.5rem;
|
|
78
|
+
text-align: left;
|
|
79
|
+
:first-child {
|
|
80
|
+
font-size: 1rem;
|
|
81
|
+
font-weight: 600;
|
|
82
|
+
margin-bottom: 1rem;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.form-label {
|
|
86
|
+
margin-bottom: 0.5rem;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
.mobile-pay-title {
|
|
90
|
+
display: block;
|
|
91
|
+
font-weight: 600;
|
|
92
|
+
font-size: 1rem;
|
|
93
|
+
color: black;
|
|
94
|
+
padding: 0;
|
|
95
|
+
font-style: normal;
|
|
96
|
+
font-family: inherit;
|
|
97
|
+
margin-bottom: 1rem;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
50
100
|
.form {
|
|
51
101
|
.input {
|
|
52
102
|
border: 2px solid #525252 !important;
|
|
53
103
|
}
|
|
54
104
|
}
|
|
55
105
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
106
|
+
.ryft-payment-form {
|
|
107
|
+
@include media-breakpoint-up(md) {
|
|
108
|
+
.submit-button-wrapper {
|
|
109
|
+
max-width: 15.5rem;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// it's style for Google and Apple pay container, for unknown reasons we can't move this html elements with appendChild or replaceChild
|
|
114
|
+
.ryft-pay-grid {
|
|
115
|
+
width: 100%;
|
|
116
|
+
max-width: 15.5rem;
|
|
117
|
+
margin-bottom: 1rem;
|
|
118
|
+
}
|
|
119
|
+
.ryft-pay-apple-pay-button {
|
|
120
|
+
border-radius: 0.25rem;
|
|
60
121
|
}
|
|
61
122
|
}
|
|
62
|
-
}
|
|
63
123
|
|
|
124
|
+
.divider {
|
|
125
|
+
display: none !important;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
64
128
|
@include media-breakpoint-down(sm) {
|
|
65
|
-
|
|
66
|
-
|
|
129
|
+
.left-block-container {
|
|
130
|
+
max-height: 100%;
|
|
131
|
+
overflow: visible;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
67
135
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
136
|
+
@include media-breakpoint-down(sm) {
|
|
137
|
+
flex-direction: column-reverse;
|
|
138
|
+
overflow: scroll;
|
|
139
|
+
|
|
140
|
+
@include media-breakpoint-down(sm) {
|
|
141
|
+
.left-block {
|
|
142
|
+
min-height: 100%;
|
|
143
|
+
}
|
|
144
|
+
.right-block {
|
|
145
|
+
margin: 0 auto;
|
|
146
|
+
width: 100%;
|
|
147
|
+
.children-wrapper {
|
|
148
|
+
.accordion {
|
|
149
|
+
.collapse {
|
|
150
|
+
overflow: visible;
|
|
151
|
+
overflow-x: unset;
|
|
152
|
+
scrollbar-width: unset;
|
|
82
153
|
}
|
|
83
154
|
}
|
|
84
155
|
}
|
|
85
156
|
}
|
|
86
157
|
}
|
|
87
158
|
}
|
|
88
|
-
::-webkit-scrollbar {
|
|
89
|
-
display: none;
|
|
90
|
-
scrollbar-width: none;
|
|
91
|
-
}
|
|
92
159
|
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
display: none;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.ryft-payment-form {
|
|
100
|
-
.submit-button-wrapper {
|
|
101
|
-
margin: -1rem 0 1rem;
|
|
102
|
-
|
|
103
|
-
button {
|
|
104
|
-
width: 100%;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
#mobile-pay-divider-container {
|
|
108
|
-
display: flex;
|
|
109
|
-
position: relative;
|
|
110
|
-
margin-bottom: 1rem;
|
|
111
|
-
#mobile-pay-divider-text {
|
|
112
|
-
margin-right: 1rem;
|
|
113
|
-
font-size: 0.875rem;
|
|
114
|
-
font-weight: 600;
|
|
115
|
-
}
|
|
116
|
-
#mobile-pay-divider {
|
|
117
|
-
width: 100%;
|
|
118
|
-
border-bottom: 1px #dfdfdf solid;
|
|
119
|
-
margin-bottom: 0.6rem;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
#card-title-container {
|
|
124
|
-
height: auto;
|
|
125
|
-
border: none;
|
|
126
|
-
margin-bottom: 0.5rem;
|
|
127
|
-
text-align: left;
|
|
128
|
-
:first-child {
|
|
129
|
-
font-size: 1rem;
|
|
130
|
-
font-weight: 600;
|
|
131
|
-
margin-bottom: 1rem;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.form-label {
|
|
135
|
-
margin-bottom: 0.5rem;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
.mobile-pay-title {
|
|
139
|
-
display: block;
|
|
140
|
-
font-weight: 600;
|
|
141
|
-
font-size: 1rem;
|
|
142
|
-
color: black;
|
|
143
|
-
padding: 0;
|
|
144
|
-
font-style: normal;
|
|
145
|
-
font-family: inherit;
|
|
146
|
-
margin-bottom: 1rem;
|
|
160
|
+
::-webkit-scrollbar {
|
|
161
|
+
display: none;
|
|
162
|
+
scrollbar-width: none;
|
|
147
163
|
}
|
|
148
164
|
}
|
|
149
165
|
|
|
150
|
-
@include media-breakpoint-
|
|
151
|
-
.
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
166
|
+
@include media-breakpoint-down(md) {
|
|
167
|
+
.payment_link {
|
|
168
|
+
.page-body {
|
|
169
|
+
.left-block {
|
|
170
|
+
.left-block-container {
|
|
171
|
+
.ryft-payment-form {
|
|
172
|
+
position: relative;
|
|
173
|
+
max-height: 300px !important;
|
|
174
|
+
.ryft-pay-grid {
|
|
175
|
+
width: 100%;
|
|
176
|
+
max-width: 100%;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
157
181
|
}
|
|
158
182
|
}
|
|
183
|
+
}
|
|
159
184
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
width: 100%;
|
|
163
|
-
max-width: 15.5rem;
|
|
164
|
-
margin-bottom: 1rem;
|
|
165
|
-
}
|
|
166
|
-
.ryft-pay-apple-pay-button {
|
|
167
|
-
border-radius: 0.25rem;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
.divider {
|
|
171
|
-
display: none !important;
|
|
172
|
-
}
|
|
185
|
+
#ryft-threeDSMethodIframe {
|
|
186
|
+
display: none;
|
|
173
187
|
}
|
|
@@ -16,7 +16,6 @@ export interface TypeaheadProps {
|
|
|
16
16
|
isMultipleChoise?: boolean;
|
|
17
17
|
noOptionsMessage: string;
|
|
18
18
|
isInvalid?: boolean;
|
|
19
|
-
isCouponForm?: boolean;
|
|
20
19
|
}
|
|
21
20
|
|
|
22
21
|
function Typeahead({
|
|
@@ -25,25 +24,13 @@ function Typeahead({
|
|
|
25
24
|
isRequired = false,
|
|
26
25
|
isMultipleChoise,
|
|
27
26
|
name = "",
|
|
28
|
-
isCouponForm = false,
|
|
29
27
|
noOptionsMessage = "",
|
|
30
28
|
isInvalid,
|
|
31
29
|
}: TypeaheadProps) {
|
|
32
30
|
const { control } = useFormContext();
|
|
33
31
|
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
? {
|
|
37
|
-
borderRadius: "1rem",
|
|
38
|
-
minHeight: "3rem",
|
|
39
|
-
}
|
|
40
|
-
: {};
|
|
41
|
-
return isInvalid
|
|
42
|
-
? { borderColor: "red", ...couponFormStyle }
|
|
43
|
-
: {
|
|
44
|
-
...couponFormStyle,
|
|
45
|
-
};
|
|
46
|
-
};
|
|
32
|
+
const getErrorStyle = (): CSSObjectWithLabel =>
|
|
33
|
+
isInvalid ? { borderColor: "red" } : {};
|
|
47
34
|
|
|
48
35
|
return (
|
|
49
36
|
<>
|
|
@@ -59,7 +46,7 @@ function Typeahead({
|
|
|
59
46
|
styles={{
|
|
60
47
|
control: (base) => ({
|
|
61
48
|
...base,
|
|
62
|
-
...
|
|
49
|
+
...getErrorStyle(),
|
|
63
50
|
}),
|
|
64
51
|
}}
|
|
65
52
|
onChange={(value) => {
|
|
@@ -13,7 +13,7 @@ export type ZoneFormProps = {
|
|
|
13
13
|
onSubmit: (values: Partial<Zone>) => void;
|
|
14
14
|
serverErrors?: ServerError;
|
|
15
15
|
isLoading?: boolean;
|
|
16
|
-
workHours
|
|
16
|
+
workHours?: WorkHour[];
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
export type ZoneFormValues = Partial<Zone> & {
|
|
@@ -25,7 +25,6 @@ export const ZoneForm = ({
|
|
|
25
25
|
onSubmit,
|
|
26
26
|
serverErrors,
|
|
27
27
|
isLoading = false,
|
|
28
|
-
workHours,
|
|
29
28
|
}: ZoneFormProps) => {
|
|
30
29
|
const { t } = useTranslation("Design");
|
|
31
30
|
const form = useForm<ZoneFormValues>({
|
|
@@ -55,7 +54,7 @@ export const ZoneForm = ({
|
|
|
55
54
|
return (
|
|
56
55
|
<FormProvider {...form}>
|
|
57
56
|
<Form onSubmit={handleSubmit(onFormSubmit)}>
|
|
58
|
-
<ZoneControl isLoading={isLoading}
|
|
57
|
+
<ZoneControl isLoading={isLoading} />
|
|
59
58
|
<Row>
|
|
60
59
|
<Col md={6} sm={12} />
|
|
61
60
|
<Col
|