@licklist/design 0.58.6-dev.9 → 0.58.7
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/assets/iframe/calendar.svg +2 -2
- package/dist/assets/iframe/calendar.svg.js +1 -1
- package/dist/assets/iframe/ticket.svg +2 -2
- package/dist/assets/iframe/ticket.svg.js +1 -1
- 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/CalendarButtons/CalendarButtons.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.js +1 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.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/event/event-venue-map/IframeEventVenueMap.js +1 -1
- package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts +2 -2
- package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/BookingSummary.js +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/BookingSummaryAccordion.d.ts +2 -4
- package/dist/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/BookingSummaryAccordion.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/BookingSummaryAccordion.js +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/components/SummaryTotalBlock.d.ts +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/components/SummaryTotalBlock.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/components/SummaryTotalBlock.js +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.d.ts +2 -4
- package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.js +1 -1
- package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts +0 -4
- package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.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 +0 -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.d.ts.map +1 -1
- package/dist/iframe/page/components/PageBody/hooks/useResizePageBody.js +1 -1
- package/dist/iframe/payment/order-items-table/OrderItemsTable.js +1 -1
- package/dist/iframe/payment/order-items-table/utils/paymentSummary.js +1 -1
- package/dist/iframe/payment/payment-form/PaymentForm.js +1 -1
- package/dist/iframe/payment/payment-page/PaymentPage.d.ts.map +1 -1
- package/dist/iframe/payment/payment-page/PaymentPage.js +1 -1
- package/dist/iframe/payment/payment-page/PaymentTimer.js +1 -1
- package/dist/iframe/payment/payment-status-page/PaymentStatusPage.js +1 -1
- package/dist/iframe/ryft/RyftPaymentForm.d.ts.map +1 -1
- package/dist/iframe/ryft/RyftPaymentForm.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/form/VenueMapsControl.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 -3
- 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 -3
- 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/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/sales/booking/results/components/ResultCard.js +1 -1
- package/dist/sales/notes/NotesTableRow.js +1 -1
- package/dist/setting/dashboard/snippets/card/SnippetCard.js +1 -1
- package/dist/snippet/snippet-template/control/PropertyControl.d.ts +1 -3
- package/dist/snippet/snippet-template/control/PropertyControl.d.ts.map +1 -1
- package/dist/snippet/snippet-template/control/PropertyControl.js +1 -1
- package/dist/snippet/snippet-template/preview/Preview.js +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/striped-static-table/StripedStaticTable.js +1 -1
- 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 +20 -57
- package/dist/styles/iframe-page/Page.scss +0 -1
- package/dist/styles/iframe-page/PageBody.scss +12 -34
- package/dist/styles/iframe-page/PageHeader.scss +39 -41
- package/dist/styles/product-set/EditVenueMapSetModal.scss +1 -1
- package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +2 -125
- package/dist/styles/sales/BookingResults.scss +1 -1
- package/dist/venue-map-sets/form/components/VenueMapImageControl.js +1 -1
- package/jest.config.js +29 -0
- package/package.json +35 -10
- package/src/assets/iframe/calendar.svg +2 -2
- package/src/assets/iframe/ticket.svg +2 -2
- 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/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/BookingSummary/BookingSummary.stories.tsx +0 -9
- package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +7 -58
- package/src/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/BookingSummaryAccordion.tsx +0 -8
- package/src/iframe/order-process/components/BookingSummary/components/SummaryTotal/components/SummaryTotalBlock.tsx +4 -4
- package/src/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.tsx +10 -63
- package/src/iframe/order-process/components/BookingSummary/types/index.ts +0 -4
- 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 +0 -2
- package/src/iframe/page/components/PageBody/hooks/useResizePageBody.ts +0 -10
- package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +6 -6
- package/src/iframe/payment/payment-page/PaymentPage.stories.tsx +6 -546
- package/src/iframe/payment/payment-page/PaymentPage.tsx +29 -38
- package/src/iframe/ryft/RyftPaymentForm.tsx +5 -11
- package/src/product-set/card/ProductSetCard.tsx +1 -12
- 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 -6
- package/src/product-set/item/CreateProductSetItem.tsx +0 -3
- package/src/product-set/product/ProductControl.tsx +15 -48
- package/src/product-set/product/fixed-duration-fields/FixedDurationOptions.tsx +2 -8
- package/src/product-set/product/quantity/ProductQuantityControl.tsx +3 -4
- package/src/product-set/product-category/ProductCategoryControl.tsx +50 -116
- package/src/provider/working-hours-input/WorkingHoursInputDescription.tsx +18 -4
- package/src/recurring-date-picker-input/RecurringDatePickerInput.tsx +1 -4
- package/src/sales/booking/results/BookingResults.stories.tsx +2 -3
- package/src/sales/booking/results/components/ResultCard.tsx +5 -2
- package/src/snippet/snippet-template/control/PropertyControl.tsx +2 -6
- package/src/sortable-list/SortableList.tsx +0 -3
- package/src/sortable-tree/SortableTreeItem.tsx +0 -6
- 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/iframe-events/Card.scss +8 -24
- package/src/styles/iframe-events/PoweredBy.scss +2 -2
- package/src/styles/iframe-order-process/IframeOrderProcess.scss +20 -57
- package/src/styles/iframe-page/Page.scss +0 -1
- package/src/styles/iframe-page/PageBody.scss +12 -34
- package/src/styles/iframe-page/PageHeader.scss +39 -41
- package/src/styles/product-set/EditVenueMapSetModal.scss +1 -1
- package/src/styles/ryft-payment-form/RyftPaymentForm.scss +2 -125
- package/src/styles/sales/BookingResults.scss +1 -1
- 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/iframe/ryft/utils/ryft-form.d.ts +0 -5
- package/dist/iframe/ryft/utils/ryft-form.d.ts.map +0 -1
- package/dist/iframe/ryft/utils/ryft-form.js +0 -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/iframe/ryft/utils/ryft-form.ts +0 -47
- package/src/product-set/control/DateInput.tsx +0 -313
- 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 -136
|
@@ -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
|
}
|
|
@@ -1,52 +1,10 @@
|
|
|
1
1
|
.payment_link {
|
|
2
|
-
padding: 0 0 1rem 0;
|
|
3
|
-
|
|
4
|
-
.button-wrapper {
|
|
5
|
-
top: 2rem;
|
|
6
|
-
right: 2rem;
|
|
7
|
-
position: absolute;
|
|
8
|
-
z-index: 100;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
2
|
.page-body {
|
|
12
|
-
padding: 0;
|
|
13
|
-
height: calc(100vh - 2rem) !important;
|
|
14
|
-
|
|
15
|
-
.navigation {
|
|
16
|
-
display: block;
|
|
17
|
-
@include media-breakpoint-down(sm) {
|
|
18
|
-
padding: 0;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.right-block {
|
|
23
|
-
margin-left: 0;
|
|
24
|
-
height: calc(100vh - 2rem);
|
|
25
|
-
max-height: calc(100vh - 1rem);
|
|
26
|
-
@include media-breakpoint-down(sm) {
|
|
27
|
-
width: calc(100% - 2rem);
|
|
28
|
-
max-width: unset;
|
|
29
|
-
position: inherit;
|
|
30
|
-
overflow: visible;
|
|
31
|
-
margin: 0 1rem 1rem;
|
|
32
|
-
height: unset;
|
|
33
|
-
min-height: unset;
|
|
34
|
-
max-height: 100%;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
3
|
.left-block {
|
|
39
4
|
.left-block-container {
|
|
40
5
|
position: relative;
|
|
41
6
|
max-height: 100%;
|
|
42
7
|
|
|
43
|
-
.payment-title {
|
|
44
|
-
font-size: 0.875rem;
|
|
45
|
-
font-weight: 600;
|
|
46
|
-
align-items: center;
|
|
47
|
-
margin-left: 0.5rem;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
8
|
.ryft-payment-form {
|
|
51
9
|
.submit-button-wrapper {
|
|
52
10
|
margin: -1rem 0 1rem;
|
|
@@ -55,55 +13,7 @@
|
|
|
55
13
|
width: 100%;
|
|
56
14
|
}
|
|
57
15
|
}
|
|
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
16
|
|
|
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
|
-
}
|
|
100
|
-
.form {
|
|
101
|
-
.input {
|
|
102
|
-
border: 2px solid #525252 !important;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.ryft-payment-form {
|
|
107
17
|
@include media-breakpoint-up(md) {
|
|
108
18
|
.submit-button-wrapper {
|
|
109
19
|
max-width: 15.5rem;
|
|
@@ -112,9 +22,10 @@
|
|
|
112
22
|
|
|
113
23
|
// it's style for Google and Apple pay container, for unknown reasons we can't move this html elements with appendChild or replaceChild
|
|
114
24
|
.ryft-pay-grid {
|
|
25
|
+
position: absolute !important;
|
|
26
|
+
top: 10rem;
|
|
115
27
|
width: 100%;
|
|
116
28
|
max-width: 15.5rem;
|
|
117
|
-
margin-bottom: 1rem;
|
|
118
29
|
}
|
|
119
30
|
.ryft-pay-apple-pay-button {
|
|
120
31
|
border-radius: 0.25rem;
|
|
@@ -125,36 +36,6 @@
|
|
|
125
36
|
display: none !important;
|
|
126
37
|
}
|
|
127
38
|
}
|
|
128
|
-
@include media-breakpoint-down(sm) {
|
|
129
|
-
.left-block-container {
|
|
130
|
-
max-height: 100%;
|
|
131
|
-
overflow: visible;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
|
|
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;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
39
|
}
|
|
159
40
|
}
|
|
160
41
|
::-webkit-scrollbar {
|
|
@@ -181,7 +62,3 @@
|
|
|
181
62
|
}
|
|
182
63
|
}
|
|
183
64
|
}
|
|
184
|
-
|
|
185
|
-
#ryft-threeDSMethodIframe {
|
|
186
|
-
display: none;
|
|
187
|
-
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var a=require("tslib"),n=require("react"),t=e(n),l=require("react-i18next"),i=require("react-bootstrap"),o=require("react-hook-form"),r=e(require("@licklist/plugins/dist/services/Form/HookFormService")),s=require("lodash"),u=require("@licklist/plugins/dist/hooks/Media/useImages"),c=require("@licklist/core/dist/DataMapper/Media/ImageDataMapper"),d=require("../../../file-upload/FileUpload.js"),m=require("../../../
|
|
1
|
+
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var a=require("tslib"),n=require("react"),t=e(n),l=require("react-i18next"),i=require("react-bootstrap"),o=require("react-hook-form"),r=e(require("@licklist/plugins/dist/services/Form/HookFormService")),s=require("lodash"),u=require("@licklist/plugins/dist/hooks/Media/useImages"),c=require("@licklist/core/dist/DataMapper/Media/ImageDataMapper"),d=require("../../../file-upload/FileUpload.js"),m=require("../../../modals/fullscreen/FullscreenModal.js"),g=require("../../../events/event-venue-map/EventVenueMap.js");exports.VenueMapImageControl=function(e){var p,v=e.index,f=l.useTranslation("Design").t,M=o.useFormContext(),E=M.watch,I=M.setValue,b=M.formState.errors,F=M.clearErrors,q=E("venueMaps.".concat(v)),h=u.useImages(null),_=h.images,k=h.handleImageRemove,C=h.handleImageUploading,j=h.isLoading,U=h.setImages,w=n.useCallback((function(e){return a.__awaiter(void 0,void 0,void 0,(function(){var n;return a.__generator(this,(function(a){switch(a.label){case 0:return[4,C(e,c.IMAGE_TYPE_IMAGE)];case 1:return(n=a.sent())?(I("venueMaps.".concat(v,".localImageBlobURL"),n[0]),[2]):[2]}}))}))}),[C]),x=n.useCallback((function(e,a){k(e,a),I("venueMaps.".concat(v,".localImageBlobURL"),void 0)}),[k]),L=n.useCallback((function(e){I("venueMaps.".concat(v,".points"),e)}),[]);n.useEffect((function(){q&&q.image&&U([a.__assign(a.__assign({},q.image),{url:q.image.url||(null==q?void 0:q.localImageBlobURL)})])}),[null==q?void 0:q.image]),n.useEffect((function(){s.isEqual(_[0],null==q?void 0:q.image)||(I("venueMaps.".concat(v,".image"),_[0]||null),_[0]&&F("venueMaps.".concat(v,".image")))}),[_]);var R=(null===(p=null==q?void 0:q.image)||void 0===p?void 0:p.url)||(null==q?void 0:q.localImageBlobURL);return t.createElement(i.Col,{sm:"6",md:"6"},t.createElement(i.Form.Group,{controlId:"name"},t.createElement(i.Form.Control,{isInvalid:r.isInvalid("venueMaps.".concat(v,".image"),b),hidden:!0}),t.createElement(d.FileUpload,{onFilesChange:w,allowedExtensions:["jpeg","jpg","png"],subTitle:".jpeg .jpg .png",enablePreview:!0,onFileRemove:x,defaultFiles:_,isLoading:j,withIcon:!0,title:f("Design:addImage")}),t.createElement(i.Form.Control.Feedback,{type:"invalid"},r.getErrors("venueMaps.".concat(v,".image"),b))),!!R&&t.createElement(m.FullscreenModal,{content:t.createElement(t.Fragment,null,t.createElement(g.EventVenueMap,{url:R,name:null==q?void 0:q.name,points:null==q?void 0:q.points,onPointsChange:L,editMode:!0}))},(function(e){return t.createElement(i.Button,{onClick:e,className:"pt-3"},f("addPoints"))})))};
|
package/jest.config.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// For a detailed explanation regarding each configuration property, visit:
|
|
2
|
+
// https://jestjs.io/docs/en/configuration.html
|
|
3
|
+
|
|
4
|
+
module.exports = {
|
|
5
|
+
modulePathIgnorePatterns: ["/dist/"],
|
|
6
|
+
roots: ["<rootDir>/src", "<rootDir>/tests"],
|
|
7
|
+
globals: {
|
|
8
|
+
"ts-jest": {
|
|
9
|
+
isolatedModules: true,
|
|
10
|
+
babelConfig: {
|
|
11
|
+
presets: ["@babel/preset-env", "@babel/preset-react"],
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
transform: {
|
|
16
|
+
"^.+\\.(t|j)sx?$": "ts-jest",
|
|
17
|
+
},
|
|
18
|
+
transformIgnorePatterns: [
|
|
19
|
+
"node_modules/(?!(redux-persist)/)",
|
|
20
|
+
"node_modules/(?!(@licklist)/)",
|
|
21
|
+
],
|
|
22
|
+
testRegex: ["(\\/tests\\/.*.(test|spec))\\.tsx?$"],
|
|
23
|
+
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
|
|
24
|
+
setupFilesAfterEnv: ["<rootDir>/tests/setupTests.ts"],
|
|
25
|
+
moduleNameMapper: {
|
|
26
|
+
"^.+\\.(css|scss|sass|less)$": "<rootDir>/tests/__mock__/styleMock.js",
|
|
27
|
+
".+\\.(svg|png|jpg)$": "identity-obj-proxy",
|
|
28
|
+
},
|
|
29
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@licklist/design",
|
|
3
|
-
"version": "0.58.
|
|
3
|
+
"version": "0.58.7",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+ssh://git@bitbucket.org/artelogicsoft/licklist_design.git"
|
|
@@ -16,11 +16,14 @@
|
|
|
16
16
|
"type-check:watch": "yarn type-check -- --watch",
|
|
17
17
|
"build": "rollup -c",
|
|
18
18
|
"watch": "yarn build -- -w",
|
|
19
|
+
"test": "jest --verbose --coverage --watchAll=false",
|
|
20
|
+
"run-test": "jest --verbose --watchAll=false",
|
|
19
21
|
"lint": "eslint --ext .ts,.tsx .",
|
|
20
22
|
"lint:fix": "yarn run lint -- --fix",
|
|
21
23
|
"lint:format": "prettier \"**/*.{md,json,yml,scss}\" --check",
|
|
22
24
|
"lint:format:fix": "prettier \"**/*.{md,json,yml,scss}\" --write",
|
|
23
25
|
"prepare": "husky install",
|
|
26
|
+
"test-staged": "CI=true jest --passWithNoTests --findRelatedTests",
|
|
24
27
|
"tests": "yarn tests-staged",
|
|
25
28
|
"prettier-write": "prettier --write",
|
|
26
29
|
"tsc": "bash -c tsc -p tsconfig.json -b"
|
|
@@ -50,9 +53,9 @@
|
|
|
50
53
|
"@fortawesome/free-brands-svg-icons": "5.15.2",
|
|
51
54
|
"@fortawesome/free-solid-svg-icons": "5.15.2",
|
|
52
55
|
"@fortawesome/react-fontawesome": "0.1.9",
|
|
53
|
-
"@licklist/core": "
|
|
54
|
-
"@licklist/eslint-config": "0.4
|
|
55
|
-
"@licklist/plugins": "
|
|
56
|
+
"@licklist/core": "^0.23.1",
|
|
57
|
+
"@licklist/eslint-config": "0.3.4",
|
|
58
|
+
"@licklist/plugins": "^0.27.2",
|
|
56
59
|
"@mdx-js/react": "1.6.22",
|
|
57
60
|
"@popperjs/core": "2.11.8",
|
|
58
61
|
"@react-aria/utils": "3.9.0",
|
|
@@ -70,6 +73,10 @@
|
|
|
70
73
|
"@svgr/rollup": "5.5.0",
|
|
71
74
|
"@svgr/webpack": "5.5.0",
|
|
72
75
|
"@tanstack/react-table": "8.10.6",
|
|
76
|
+
"@testing-library/jest-dom": "5.16.1",
|
|
77
|
+
"@testing-library/react": "11.2.5",
|
|
78
|
+
"@testing-library/react-hooks": "5.1.0",
|
|
79
|
+
"@testing-library/user-event": "13.5.0",
|
|
73
80
|
"@tiptap/core": "2.0.0-beta.176",
|
|
74
81
|
"@tiptap/extension-blockquote": "2.0.0-beta.29",
|
|
75
82
|
"@tiptap/extension-bold": "2.0.0-beta.28",
|
|
@@ -92,10 +99,14 @@
|
|
|
92
99
|
"@tiptap/react": "2.0.0-beta.109",
|
|
93
100
|
"@tiptap/suggestion": "2.0.0-beta.92",
|
|
94
101
|
"@types/babel__core": "7.1.12",
|
|
102
|
+
"@types/enzyme-adapter-react-16": "1.0.6",
|
|
103
|
+
"@types/jest": "26.0.20",
|
|
95
104
|
"@types/luxon": "1.26.2",
|
|
96
105
|
"@types/mdx-js__react": "1.5.3",
|
|
106
|
+
"@types/react": "17.0.2",
|
|
97
107
|
"@types/react-bootstrap": "1.0.1",
|
|
98
108
|
"@types/react-date-range": "^1.4.4",
|
|
109
|
+
"@types/react-dom": "17.0.1",
|
|
99
110
|
"@types/react-email-editor": "1.1.7",
|
|
100
111
|
"@types/react-loader": "2.4.4",
|
|
101
112
|
"@types/react-phone-number-input": "3.0.6",
|
|
@@ -105,6 +116,7 @@
|
|
|
105
116
|
"@typescript-eslint/eslint-plugin": "5.8.1",
|
|
106
117
|
"@typescript-eslint/parser": "5.8.1",
|
|
107
118
|
"@wojtekmaj/react-daterange-picker": "^4.1.0",
|
|
119
|
+
"babel-jest": "26.6.3",
|
|
108
120
|
"babel-loader": "8.2.2",
|
|
109
121
|
"babel-plugin-inline-react-svg": "2.0.1",
|
|
110
122
|
"bootstrap": "4.6.0",
|
|
@@ -116,16 +128,21 @@
|
|
|
116
128
|
"emojibase": "6.1.0",
|
|
117
129
|
"emojibase-data": "7.0.1",
|
|
118
130
|
"emojibase-regex": "6.0.1",
|
|
131
|
+
"enzyme": "3.11.0",
|
|
132
|
+
"enzyme-adapter-react-16": "1.15.6",
|
|
119
133
|
"eslint": "7.32.0",
|
|
120
134
|
"eslint-config-airbnb": "18.2.1",
|
|
121
135
|
"eslint-config-prettier": "8.3.0",
|
|
136
|
+
"eslint-plugin-jest": "25.3.2",
|
|
122
137
|
"eslint-plugin-jsx-a11y": "6.5.1",
|
|
123
138
|
"eslint-plugin-prettier": "4.0.0",
|
|
124
139
|
"eslint-plugin-react-hooks": "4.2.0",
|
|
140
|
+
"eslint-plugin-testing-library": "5.0.1",
|
|
125
141
|
"framer-motion": "4.1.17",
|
|
126
142
|
"history": "5.3.0",
|
|
127
143
|
"husky": "7.0.4",
|
|
128
144
|
"i18next": "19.4.5",
|
|
145
|
+
"jest": "26.6.0",
|
|
129
146
|
"klona": "2.0.4",
|
|
130
147
|
"konva": "6.0.0",
|
|
131
148
|
"lint-staged": "11.1.2",
|
|
@@ -133,18 +150,18 @@
|
|
|
133
150
|
"luxon": "1.26.0",
|
|
134
151
|
"moment": "2.29.1",
|
|
135
152
|
"prettier": "2.5.1",
|
|
136
|
-
"react": "
|
|
153
|
+
"react": "16.14.0",
|
|
137
154
|
"react-bootstrap": "1.6.1",
|
|
138
155
|
"react-color": "2.19.3",
|
|
139
156
|
"react-copy-to-clipboard": "5.0.3",
|
|
140
157
|
"react-date-range": "^1.4.0",
|
|
141
|
-
"react-dom": "
|
|
158
|
+
"react-dom": "16.14.0",
|
|
142
159
|
"react-email-editor": "1.6.1",
|
|
143
160
|
"react-highlighter": "0.4.3",
|
|
144
161
|
"react-hook-form": "7.13.0",
|
|
145
162
|
"react-i18next": "11.8.8",
|
|
146
163
|
"react-intl": "5.15.8",
|
|
147
|
-
"react-konva": "
|
|
164
|
+
"react-konva": "16.13.0-6",
|
|
148
165
|
"react-loader": "2.4.7",
|
|
149
166
|
"react-loading-skeleton": "^3.3.1",
|
|
150
167
|
"react-overlays": "4.1.1",
|
|
@@ -169,6 +186,7 @@
|
|
|
169
186
|
"sass": "1.32.8",
|
|
170
187
|
"sass-loader": "10.1.1",
|
|
171
188
|
"style-loader": "2.0.0",
|
|
189
|
+
"ts-jest": "26.5.2",
|
|
172
190
|
"twemoji-parser": "14.0.0",
|
|
173
191
|
"typescript": "4.9.5",
|
|
174
192
|
"url-loader": "4.1.1",
|
|
@@ -176,17 +194,24 @@
|
|
|
176
194
|
},
|
|
177
195
|
"resolutions": {
|
|
178
196
|
"@types/react": "17.0.2",
|
|
179
|
-
"@types/react-dom": "17.0.
|
|
197
|
+
"@types/react-dom": "17.0.1"
|
|
198
|
+
},
|
|
199
|
+
"jest": {
|
|
200
|
+
"setupFilesAfterEnv": [
|
|
201
|
+
"./jest.config.js"
|
|
202
|
+
],
|
|
203
|
+
"snapshotSerializers": [
|
|
204
|
+
"enzyme-to-json/serializer"
|
|
205
|
+
]
|
|
180
206
|
},
|
|
181
207
|
"lint-staged": {
|
|
182
208
|
"*.{ts,tsx}": [
|
|
209
|
+
"yarn test-staged",
|
|
183
210
|
"yarn prettier-write",
|
|
184
211
|
"yarn lint:fix"
|
|
185
212
|
]
|
|
186
213
|
},
|
|
187
214
|
"devDependencies": {
|
|
188
|
-
"@types/react": "17.0.2",
|
|
189
|
-
"@types/react-dom": "17.0.2",
|
|
190
215
|
"identity-obj-proxy": "^3.0.0"
|
|
191
216
|
},
|
|
192
217
|
"volta": {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<svg width="16" height="15" viewBox="0 0 16 15" fill="
|
|
2
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M4 0C3.44772 0 3 0.447715 3 1H1C0.447715 1 0 1.44772 0 2V4H16V2C16 1.44772 15.5523 1 15 1H13C13 0.447715 12.5523 0 12 0C11.4477 0 11 0.447715 11 1H5C5 0.447715 4.55228 0 4 0ZM16 6C16 5.44772 15.5523 5 15 5H1C0.447715 5 0 5.44772 0 6V12C0 13.6569 1.34315 15 3 15H13C14.6569 15 16 13.6569 16 12V6ZM2 7H14V12C14 12.5523 13.5523 13 13 13H3L2.88338 12.9933C2.38604 12.9355 2 12.5128 2 12V7ZM10.5 9C10.2239 9 10 9.22386 10 9.5V11.5C10 11.7761 10.2239 12 10.5 12H12.5C12.7761 12 13 11.7761 13 11.5V9.5C13 9.22386 12.7761 9 12.5 9H10.5Z" />
|
|
1
|
+
<svg width="16" height="15" viewBox="0 0 16 15" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M4 0C3.44772 0 3 0.447715 3 1H1C0.447715 1 0 1.44772 0 2V4H16V2C16 1.44772 15.5523 1 15 1H13C13 0.447715 12.5523 0 12 0C11.4477 0 11 0.447715 11 1H5C5 0.447715 4.55228 0 4 0ZM16 6C16 5.44772 15.5523 5 15 5H1C0.447715 5 0 5.44772 0 6V12C0 13.6569 1.34315 15 3 15H13C14.6569 15 16 13.6569 16 12V6ZM2 7H14V12C14 12.5523 13.5523 13 13 13H3L2.88338 12.9933C2.38604 12.9355 2 12.5128 2 12V7ZM10.5 9C10.2239 9 10 9.22386 10 9.5V11.5C10 11.7761 10.2239 12 10.5 12H12.5C12.7761 12 13 11.7761 13 11.5V9.5C13 9.22386 12.7761 9 12.5 9H10.5Z" fill="#979797"/>
|
|
3
3
|
</svg>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<svg width="18" height="14" viewBox="0 0 18 14" fill="
|
|
2
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M18 2.00002C18 0.89543 17.1046 0 16 0H2C0.89543 0 0 0.89543 0 2L0.000956201 4.35567C0.00105503 4.59911 0.0899525 4.83415 0.250979 5.01672C0.731269 5.56128 1 6.25846 1 7C1 7.74154 0.731269 8.43872 0.250979 8.98328C0.0899525 9.16585 0.00105503 9.4009 0.000956201 9.64433L0 11.9996C0 13.1046 0.89543 14 2 14H16C17.1046 14 18 13.1046 18 12L17.9999 9.64574C17.9999 9.40205 17.9109 9.16675 17.7497 8.98404C17.269 8.43938 17 7.7419 17 7C17 6.2581 17.269 5.56062 17.7497 5.01596C17.9109 4.83325 17.9999 4.59795 17.9999 4.35426L18 2.00002ZM2.07187 4.09764L2 4.002L1.999 2H5C5 2.55228 5.44772 3 6 3C6.55228 3 7 2.55228 7 2H16L15.999 4.002L15.929 4.09646C15.3306 4.93393 15 5.94228 15 7L15.0069 7.26333C15.057 8.22459 15.3805 9.13586 15.929 9.90354L15.999 9.997L16 12H7C7 11.4477 6.55228 11 6 11C5.44772 11 5 11.4477 5 12H2V9.996L2.07187 9.90236C2.66972 9.06511 3 8.05722 3 7C3 5.94278 2.66972 4.93489 2.07187 4.09764ZM6 6C6.55228 6 7 5.55228 7 5C7 4.44772 6.55228 4 6 4C5.44772 4 5 4.44772 5 5C5 5.55228 5.44772 6 6 6ZM7 9C7 9.55229 6.55228 10 6 10C5.44772 10 5 9.55229 5 9C5 8.44771 5.44772 8 6 8C6.55228 8 7 8.44771 7 9Z" />
|
|
1
|
+
<svg width="18" height="14" viewBox="0 0 18 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M18 2.00002C18 0.89543 17.1046 0 16 0H2C0.89543 0 0 0.89543 0 2L0.000956201 4.35567C0.00105503 4.59911 0.0899525 4.83415 0.250979 5.01672C0.731269 5.56128 1 6.25846 1 7C1 7.74154 0.731269 8.43872 0.250979 8.98328C0.0899525 9.16585 0.00105503 9.4009 0.000956201 9.64433L0 11.9996C0 13.1046 0.89543 14 2 14H16C17.1046 14 18 13.1046 18 12L17.9999 9.64574C17.9999 9.40205 17.9109 9.16675 17.7497 8.98404C17.269 8.43938 17 7.7419 17 7C17 6.2581 17.269 5.56062 17.7497 5.01596C17.9109 4.83325 17.9999 4.59795 17.9999 4.35426L18 2.00002ZM2.07187 4.09764L2 4.002L1.999 2H5C5 2.55228 5.44772 3 6 3C6.55228 3 7 2.55228 7 2H16L15.999 4.002L15.929 4.09646C15.3306 4.93393 15 5.94228 15 7L15.0069 7.26333C15.057 8.22459 15.3805 9.13586 15.929 9.90354L15.999 9.997L16 12H7C7 11.4477 6.55228 11 6 11C5.44772 11 5 11.4477 5 12H2V9.996L2.07187 9.90236C2.66972 9.06511 3 8.05722 3 7C3 5.94278 2.66972 4.93489 2.07187 4.09764ZM6 6C6.55228 6 7 5.55228 7 5C7 4.44772 6.55228 4 6 4C5.44772 4 5 4.44772 5 5C5 5.55228 5.44772 6 6 6ZM7 9C7 9.55229 6.55228 10 6 10C5.44772 10 5 9.55229 5 9C5 8.44771 5.44772 8 6 8C6.55228 8 7 8.44771 7 9Z" fill="#979797"/>
|
|
3
3
|
</svg>
|
|
@@ -38,26 +38,3 @@ Default.args = {
|
|
|
38
38
|
isDisabled: false,
|
|
39
39
|
}),
|
|
40
40
|
};
|
|
41
|
-
|
|
42
|
-
export const Loading: Story<CalendarProps> = (args) => {
|
|
43
|
-
return (
|
|
44
|
-
<div style={{ backgroundColor: "white" }}>
|
|
45
|
-
<Calendar {...args} />
|
|
46
|
-
</div>
|
|
47
|
-
);
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
Loading.args = {
|
|
51
|
-
isLoading: true,
|
|
52
|
-
fromPrice: "from £10",
|
|
53
|
-
selectedDate: null,
|
|
54
|
-
setSelectedDate: () => null,
|
|
55
|
-
calendarDates: getMonthCalendarDates(now),
|
|
56
|
-
currentDate: now,
|
|
57
|
-
getDateTimeButtonProps: () => ({
|
|
58
|
-
resources: [],
|
|
59
|
-
showResources: false,
|
|
60
|
-
shouldCalculateResources: false,
|
|
61
|
-
isDisabled: false,
|
|
62
|
-
}),
|
|
63
|
-
};
|
|
@@ -3,7 +3,6 @@ import { DateTime } from "luxon";
|
|
|
3
3
|
import { DateTimeButtonProps } from "src/date-time-button";
|
|
4
4
|
import { CalendarButtons } from "./components/CalendarButtons";
|
|
5
5
|
import { CalendarDates } from "./components/CalendarDates";
|
|
6
|
-
import { LoaderIndicator } from "../static";
|
|
7
6
|
|
|
8
7
|
export const defaultStartDay = DateTime.now().set({
|
|
9
8
|
millisecond: 0,
|
|
@@ -29,14 +28,15 @@ export type CalendarProps = {
|
|
|
29
28
|
>;
|
|
30
29
|
};
|
|
31
30
|
|
|
32
|
-
export const Calendar = (
|
|
33
|
-
|
|
31
|
+
export const Calendar = ({
|
|
32
|
+
initialDate = defaultStartDay,
|
|
33
|
+
...props
|
|
34
|
+
}: CalendarProps) => {
|
|
34
35
|
return (
|
|
35
36
|
<div className="calendar-wrapper">
|
|
36
37
|
<div className="calendar">
|
|
37
38
|
<CalendarButtons initialDate={initialDate} {...props} />
|
|
38
|
-
|
|
39
|
-
{isLoading ? <LoaderIndicator /> : <CalendarDates {...props} />}
|
|
39
|
+
<CalendarDates {...props} />
|
|
40
40
|
</div>
|
|
41
41
|
</div>
|
|
42
42
|
);
|
|
@@ -6,6 +6,7 @@ import { CalendarProps } from "../../Calendar";
|
|
|
6
6
|
|
|
7
7
|
export type CalendarDatesProps = Pick<
|
|
8
8
|
CalendarProps,
|
|
9
|
+
| "isLoading"
|
|
9
10
|
| "calendarDates"
|
|
10
11
|
| "selectedDate"
|
|
11
12
|
| "setSelectedDate"
|
|
@@ -14,6 +15,7 @@ export type CalendarDatesProps = Pick<
|
|
|
14
15
|
>;
|
|
15
16
|
|
|
16
17
|
export const CalendarDates = ({
|
|
18
|
+
isLoading = false,
|
|
17
19
|
calendarDates,
|
|
18
20
|
selectedDate,
|
|
19
21
|
setSelectedDate,
|
|
@@ -46,9 +48,12 @@ export const CalendarDates = ({
|
|
|
46
48
|
|
|
47
49
|
const props = getDateTimeButtonProps(date);
|
|
48
50
|
|
|
51
|
+
const isDisabled = isLoading || props.isDisabled;
|
|
52
|
+
|
|
49
53
|
return (
|
|
50
54
|
<DateTimeButton
|
|
51
55
|
key={+date}
|
|
56
|
+
isDisabled={isDisabled}
|
|
52
57
|
isSelected={
|
|
53
58
|
selectedDate ? date.hasSame(selectedDate, "day") : undefined
|
|
54
59
|
}
|
|
@@ -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>
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Meta } from "@storybook/react";
|
|
3
3
|
import { BookingSummary } from "./BookingSummary";
|
|
4
|
-
import { SummaryTotalBlock } from "./components/SummaryTotal";
|
|
5
4
|
|
|
6
5
|
export default {
|
|
7
6
|
title: "Iframe/Order-Process/BookingSummary",
|
|
@@ -139,14 +138,6 @@ export function Default() {
|
|
|
139
138
|
<div className="payment-process">
|
|
140
139
|
<div className="col-lg-4">
|
|
141
140
|
<BookingSummary
|
|
142
|
-
isPaymentPage
|
|
143
|
-
eventName="new Event"
|
|
144
|
-
footer={
|
|
145
|
-
<div className="d-flex flex-column justify-content-between">
|
|
146
|
-
<SummaryTotalBlock label={"Total"} amount={2} />
|
|
147
|
-
<SummaryTotalBlock label={"Total with discount"} amount={1} />
|
|
148
|
-
</div>
|
|
149
|
-
}
|
|
150
141
|
date="29 Sept 2022 at 09:00"
|
|
151
142
|
menuSteps={menuSteps as any}
|
|
152
143
|
peopleAmount={5}
|