@licklist/design 0.71.18-dev.9 → 0.71.18
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/affiliate/form/AffiliateForm.d.ts.map +1 -1
- package/dist/auth/Layout/AuthNavComponent.d.ts.map +1 -1
- package/dist/auth/Login/LoginComponent.d.ts.map +1 -1
- package/dist/auth/Login/LoginComponent.js +1 -2
- package/dist/auth/Login/LoginFormComponent.d.ts.map +1 -1
- package/dist/auth/Logout/Logout.js +0 -1
- package/dist/auth/Register/RegisterComponent.d.ts.map +1 -1
- package/dist/auth/Register/RegisterFormComponent.d.ts.map +1 -1
- package/dist/auth/ResetPassword/ResetPasswordFormComponent.d.ts.map +1 -1
- package/dist/auth/Router.d.ts.map +1 -1
- package/dist/auth/Router.js +0 -2
- package/dist/calendar/utils/index.d.ts +1 -1
- package/dist/calendar/utils/index.d.ts.map +1 -1
- package/dist/events/edit-event-modal/component/SaleDeadline/SaleDeadline.d.ts.map +1 -1
- package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +1 -3
- package/dist/events/edit-event-modal/utils/getDefaultProductSet.d.ts.map +1 -1
- package/dist/events/edit-event-modal/utils/getDefaultProductSet.js +1 -0
- package/dist/events/event-card/utils.d.ts.map +1 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.d.ts +1 -2
- package/dist/events/event-statistic-modal/EventStatisticModal.d.ts.map +1 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.js +2 -2
- package/dist/events/event-statistic-modal/hooks/useTableData.d.ts +1 -1
- package/dist/events/event-statistic-modal/hooks/useTableData.d.ts.map +1 -1
- package/dist/events/event-statistic-modal/hooks/useTableData.js +1 -2
- package/dist/events/event-statistic-modal/utils/index.d.ts.map +1 -1
- package/dist/events/event-statistic-modal/utils/index.js +3 -3
- package/dist/events/event-venue-map/EventVenueMap.d.ts.map +1 -1
- package/dist/events/event-venue-map/EventVenueMap.js +0 -1
- package/dist/events/event-venue-map/hooks/useCanvasSize.d.ts.map +1 -1
- package/dist/events/event-venue-map/hooks/useCanvasSize.js +4 -11
- package/dist/iframe/activity-card/ActivityCard.d.ts +2 -1
- package/dist/iframe/activity-card/ActivityCard.d.ts.map +1 -1
- package/dist/iframe/activity-card/ActivityCard.js +7 -1
- package/dist/iframe/event/ticket-description/TicketDescription.d.ts +1 -2
- package/dist/iframe/event/ticket-description/TicketDescription.d.ts.map +1 -1
- package/dist/iframe/event/ticket-description/TicketDescription.js +3 -4
- package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.js +2 -15
- package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/SummaryTotal.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/SummaryTotal.js +3 -3
- package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts +0 -4
- package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/utils/index.js +2 -27
- package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.js +2 -106
- 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 +0 -13
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts +1 -3
- 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 -95
- package/dist/iframe/page/components/PageBody/hooks/useResizePageBody.d.ts.map +1 -1
- package/dist/iframe/payment/order-items-table/hooks/useTableData.d.ts.map +1 -1
- package/dist/iframe/payment/order-items-table/hooks/useTableData.js +10 -83
- package/dist/iframe/payment/order-items-table/utils/index.d.ts.map +1 -1
- package/dist/iframe/payment/order-items-table/utils/index.js +0 -15
- package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts.map +1 -1
- package/dist/iframe/payment/order-items-table/utils/paymentSummary.js +2 -2
- package/dist/iframe/payment/payment-status-page/PaymentStatusPage.d.ts.map +1 -1
- package/dist/iframe/payment/payment-status-page/PaymentStatusPage.js +2 -2
- package/dist/iframe/ryft/RyftPaymentForm.js +0 -1
- package/dist/iframe/ryft/utils/ryft-form.d.ts.map +1 -1
- package/dist/iframe/ryft/utils/ryft-form.js +5 -4
- package/dist/index.js +1 -2
- package/dist/layout/DropDown.d.ts +1 -2
- package/dist/layout/DropDown.d.ts.map +1 -1
- package/dist/notification/email-template/card/EmailTemplateCard.d.ts.map +1 -1
- package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
- package/dist/notification/email-template/control/EmailTemplateControl.js +0 -3
- package/dist/notification/sms-template/card/SmsTemplateCard.d.ts.map +1 -1
- package/dist/product-set/control/DateAndRecurrenceInput.d.ts.map +1 -1
- package/dist/product-set/control/DateInput.d.ts.map +1 -1
- package/dist/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductCategoriesControl.js +2 -48
- 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 +5 -7
- package/dist/product-set/form/ProductZonesControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductZonesControl.js +2 -0
- package/dist/product-set/form/ProductsControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductsControl.js +5 -25
- package/dist/product-set/form/SelectCategoryModal.d.ts +0 -12
- package/dist/product-set/form/SelectCategoryModal.d.ts.map +1 -1
- package/dist/product-set/form/SelectCategoryModal.js +1 -1
- package/dist/product-set/form/SubProductsControl.d.ts.map +1 -1
- package/dist/product-set/form/SubProductsControl.js +3 -0
- package/dist/product-set/form/VenueMapsControl.d.ts +1 -1
- package/dist/product-set/form/VenueMapsControl.d.ts.map +1 -1
- package/dist/product-set/form/VenueMapsControl.js +3 -0
- package/dist/product-set/form/context.d.ts +1 -3
- package/dist/product-set/form/context.d.ts.map +1 -1
- package/dist/product-set/form/context.js +1 -2
- package/dist/product-set/product/ProductControl.d.ts +0 -8
- package/dist/product-set/product/ProductControl.d.ts.map +1 -1
- package/dist/product-set/product/ProductControl.js +1 -25
- package/dist/product-set/product/booking-management/ProductBookingManagementControl.d.ts.map +1 -1
- package/dist/product-set/product/booking-management/ProductBookingManagementControl.js +0 -6
- package/dist/product-set/product/deposit/ProductDepositControl.d.ts.map +1 -1
- package/dist/product-set/product/deposit/ProductDepositControl.js +0 -3
- package/dist/product-set/product/duration/ProductDurationControl.d.ts.map +1 -1
- package/dist/product-set/product/duration/ProductDurationControl.js +0 -6
- package/dist/product-set/product/price/ProductPriceControl.d.ts.map +1 -1
- package/dist/product-set/product/price/ProductPriceControl.js +0 -3
- package/dist/product-set/product/quantity/ProductQuantityConstantControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityConstantControl.js +0 -6
- package/dist/product-set/product/quantity/ProductQuantityControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityControl.js +0 -6
- package/dist/product-set/product/quantity/ProductQuantityRechargingControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityRechargingControl.js +1 -4
- package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
- package/dist/product-set/product-category/ProductCategoryControl.js +0 -12
- package/dist/product-set/utils/index.d.ts +0 -88
- package/dist/product-set/utils/index.d.ts.map +1 -1
- package/dist/product-set/utils/index.js +1 -19
- package/dist/recurrence-input/RecurrenceEndInput.d.ts.map +1 -1
- package/dist/recurrence-input/RecurrenceEndInput.js +0 -3
- package/dist/recurring-date-picker-input/RecurrenceEndInput.d.ts.map +1 -1
- package/dist/report/ReportRunnerModal/ReportRunnerModal.d.ts +1 -2
- package/dist/report/ReportRunnerModal/ReportRunnerModal.d.ts.map +1 -1
- package/dist/report/ReportRunnerModal/ReportRunnerModal.js +2 -4
- package/dist/resource/form/components/CapacityControl.d.ts.map +1 -1
- package/dist/resource/form/components/CapacityControl.js +0 -3
- package/dist/resource/form/components/SortControl.d.ts.map +1 -1
- package/dist/resource/form/components/SortControl.js +0 -3
- package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
- package/dist/sales/booking/results/components/ResultCard.js +2 -0
- package/dist/sales/coupon/control/CouponFormControl.d.ts.map +1 -1
- package/dist/sales/coupon/control/CouponFormControl.js +0 -21
- package/dist/sales/coupon/utils/index.d.ts +1 -2
- package/dist/sales/coupon/utils/index.d.ts.map +1 -1
- package/dist/sales/life-time-sales/LifeTimeSalesChart.js +0 -1
- package/dist/sales/manual-booking/select-event/SelectEvent.js +0 -1
- package/dist/sales/manual-booking/select-menu/SelectMenu.js +0 -1
- package/dist/sales/manual-booking/summary/ManualBookingSummary.js +0 -1
- package/dist/sales/modals/refund-modal/RefundModal.d.ts +2 -6
- package/dist/sales/modals/refund-modal/RefundModal.d.ts.map +1 -1
- package/dist/sales/modals/refund-modal/RefundModal.js +4 -8
- package/dist/sales/modals/refund-modal/index.d.ts +2 -2
- package/dist/sales/modals/refund-modal/index.d.ts.map +1 -1
- package/dist/setting/admin/AdminSettingForm.d.ts.map +1 -1
- package/dist/setting/admin/PaymentFeeForm.d.ts.map +1 -1
- package/dist/setting/admin/PaymentFeeForm.js +1 -16
- package/dist/setting/dashboard/DashboardSettingForm.d.ts.map +1 -1
- package/dist/setting/dashboard/DashboardSettingForm.js +1 -4
- package/dist/setting/dashboard/snippet-templates/card/SnippetTemplateCard.d.ts.map +1 -1
- package/dist/snippet/snippet-template/preview/Preview.d.ts.map +1 -1
- package/dist/snippet/snippet-template/preview/Preview.js +1 -3
- package/dist/sortable-tree/SortableTreeItem.d.ts +1 -2
- package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
- package/dist/sortable-tree/SortableTreeItem.js +4 -10
- package/dist/static/CurrencyNumberInput.d.ts.map +1 -1
- package/dist/static/CurrencyNumberInput.js +0 -3
- package/dist/static/date-range-input/utils/index.d.ts +1 -1
- package/dist/static/date-range-input/utils/index.d.ts.map +1 -1
- package/dist/static/form-number-input/FormNumberInput.d.ts.map +1 -1
- package/dist/static/form-number-input/FormNumberInput.js +0 -3
- package/dist/static/loader/LoaderIndicator.d.ts +3 -2
- package/dist/static/loader/LoaderIndicator.d.ts.map +1 -1
- package/dist/static/loader/LoaderIndicator.js +2 -4
- package/dist/static/loader/index.d.ts +0 -1
- package/dist/static/loader/index.d.ts.map +1 -1
- package/dist/static/number-input/NumberInput.d.ts.map +1 -1
- package/dist/static/number-input/NumberInput.js +0 -3
- package/dist/styles/availability-indicator/AvailabilityIndicator.scss +4 -1
- package/dist/styles/date-time-button/DateTimeButton.scss +1 -10
- package/dist/styles/events/EditEventModal.scss +0 -2
- package/dist/styles/iframe-events/Calendar.scss +1 -1
- package/dist/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
- package/dist/styles/iframe-page/Page.scss +0 -16
- package/dist/styles/iframe-page/PageBody.scss +0 -4
- package/dist/styles/modals/Modals.scss +0 -16
- package/dist/styles/product-set/EditProductSetElement.scss +0 -1
- package/dist/styles/product-set/ProductSetForm.scss +0 -33
- package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +4 -2
- package/dist/styles/sales/BookingResults.scss +1 -1
- package/dist/styles/sales/ManualBooking.scss +0 -6
- package/dist/styles/static/Loader.scss +0 -9
- package/dist/styles/themes/bookedit/index.scss +0 -19
- package/dist/zone/form/components/GameDurationControl.d.ts.map +1 -1
- package/dist/zone/form/components/GameDurationControl.js +0 -3
- package/dist/zone/form/components/SortControl.d.ts.map +1 -1
- package/dist/zone/form/components/SortControl.js +0 -3
- package/package.json +6 -8
- package/src/affiliate/form/AffiliateForm.tsx +0 -1
- package/src/auth/Layout/AuthNavComponent.tsx +0 -4
- package/src/auth/Login/LoginComponent.tsx +1 -3
- package/src/auth/Login/LoginFormComponent.tsx +0 -2
- package/src/auth/Register/RegisterComponent.tsx +0 -2
- package/src/auth/Register/RegisterFormComponent.tsx +0 -4
- package/src/auth/ResetPassword/ResetPasswordFormComponent.tsx +0 -4
- package/src/auth/Router.tsx +0 -2
- package/src/calendar/Calendar.stories.tsx +2 -2
- package/src/calendar/utils/index.ts +1 -1
- package/src/events/edit-event-modal/component/SaleDeadline/SaleDeadline.tsx +7 -9
- package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +1 -0
- package/src/events/event-card/utils.ts +9 -10
- package/src/events/event-statistic-modal/EventStatisticModal.tsx +1 -3
- package/src/events/event-statistic-modal/hooks/useTableData.tsx +1 -2
- package/src/events/event-statistic-modal/utils/index.ts +5 -6
- package/src/events/event-venue-map/EventVenueMap.tsx +0 -1
- package/src/events/event-venue-map/hooks/useCanvasSize.ts +1 -5
- package/src/iframe/activity-card/ActivityCard.stories.tsx +2 -0
- package/src/iframe/activity-card/ActivityCard.tsx +4 -0
- package/src/iframe/event/ticket-description/TicketDescription.tsx +3 -5
- package/src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx +1 -21
- package/src/iframe/order-process/components/BookingSummary/components/SummaryTotal/SummaryTotal.tsx +11 -13
- package/src/iframe/order-process/components/BookingSummary/utils/index.ts +4 -47
- package/src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx +75 -155
- package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +0 -9
- package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +1 -58
- package/src/iframe/page/components/PageBody/hooks/useResizePageBody.ts +2 -1
- package/src/iframe/payment/order-items-table/hooks/useTableData.tsx +14 -84
- package/src/iframe/payment/order-items-table/utils/index.ts +0 -23
- package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +2 -3
- package/src/iframe/payment/payment-status-page/PaymentStatusPage.tsx +20 -19
- package/src/iframe/ryft/utils/ryft-form.ts +5 -6
- package/src/layout/DropDown.tsx +1 -1
- package/src/notification/email-template/card/EmailTemplateCard.tsx +0 -2
- package/src/notification/email-template/control/EmailTemplateControl.tsx +0 -1
- package/src/notification/sms-template/card/SmsTemplateCard.tsx +0 -2
- package/src/product-set/control/DateAndRecurrenceInput.tsx +4 -3
- package/src/product-set/control/DateInput.tsx +4 -3
- package/src/product-set/form/ProductCategoriesControl.tsx +1 -37
- package/src/product-set/form/ProductSetForm.tsx +5 -17
- package/src/product-set/form/ProductZonesControl.tsx +4 -1
- package/src/product-set/form/ProductsControl.tsx +15 -33
- package/src/product-set/form/SelectCategoryModal.tsx +2 -2
- package/src/product-set/form/SubProductsControl.tsx +3 -0
- package/src/product-set/form/VenueMapsControl.tsx +4 -1
- package/src/product-set/form/context.tsx +0 -5
- package/src/product-set/product/ProductControl.tsx +2 -37
- package/src/product-set/product/advanced-options/AdvancedOptions.tsx +1 -1
- package/src/product-set/product/booking-management/ProductBookingManagementControl.tsx +0 -2
- package/src/product-set/product/deposit/ProductDepositControl.tsx +0 -1
- package/src/product-set/product/duration/ProductDurationControl.tsx +0 -2
- package/src/product-set/product/price/ProductPriceControl.tsx +0 -1
- package/src/product-set/product/quantity/ProductQuantityConstantControl.tsx +0 -2
- package/src/product-set/product/quantity/ProductQuantityControl.tsx +0 -2
- package/src/product-set/product/quantity/ProductQuantityRechargingControl.tsx +0 -1
- package/src/product-set/product-category/ProductCategoryControl.tsx +0 -4
- package/src/product-set/product-zone/ProductZoneControl.tsx +1 -1
- package/src/product-set/utils/index.ts +0 -19
- package/src/recurrence-input/RecurrenceEndInput.tsx +0 -1
- package/src/recurring-date-picker-input/RecurrenceEndInput.tsx +0 -1
- package/src/report/ReportRunnerModal/ReportRunnerModal.tsx +0 -3
- package/src/resource/form/components/CapacityControl.tsx +0 -1
- package/src/resource/form/components/SortControl.tsx +0 -1
- package/src/sales/booking/results/components/ResultCard.tsx +2 -0
- package/src/sales/coupon/control/CouponFormControl.tsx +0 -7
- package/src/sales/coupon/utils/index.ts +3 -5
- package/src/sales/modals/refund-modal/RefundModal.tsx +6 -15
- package/src/sales/modals/refund-modal/index.ts +2 -7
- package/src/setting/admin/AdminSettingForm.tsx +0 -4
- package/src/setting/admin/PaymentFeeForm.tsx +0 -5
- package/src/setting/dashboard/DashboardSettingForm.tsx +0 -1
- package/src/setting/dashboard/snippet-templates/card/SnippetTemplateCard.tsx +0 -2
- package/src/snippet/snippet-template/preview/Preview.tsx +2 -1
- package/src/sortable-tree/SortableTreeItem.tsx +0 -6
- package/src/static/CurrencyNumberInput.tsx +0 -1
- package/src/static/date-range-input/utils/index.ts +1 -1
- package/src/static/form-number-input/FormNumberInput.tsx +0 -1
- package/src/static/loader/LoaderIndicator.tsx +3 -6
- package/src/static/loader/index.ts +0 -1
- package/src/static/number-input/NumberInput.tsx +0 -1
- package/src/styles/availability-indicator/AvailabilityIndicator.scss +4 -1
- package/src/styles/date-time-button/DateTimeButton.scss +1 -10
- package/src/styles/events/EditEventModal.scss +0 -2
- package/src/styles/iframe-events/Calendar.scss +1 -1
- package/src/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
- package/src/styles/iframe-page/Page.scss +0 -16
- package/src/styles/iframe-page/PageBody.scss +0 -4
- package/src/styles/modals/Modals.scss +0 -16
- package/src/styles/product-set/EditProductSetElement.scss +0 -1
- package/src/styles/product-set/ProductSetForm.scss +0 -33
- package/src/styles/ryft-payment-form/RyftPaymentForm.scss +4 -2
- package/src/styles/sales/BookingResults.scss +1 -1
- package/src/styles/sales/ManualBooking.scss +0 -6
- package/src/styles/static/Loader.scss +0 -9
- package/src/styles/themes/bookedit/index.scss +0 -19
- package/src/zone/form/components/GameDurationControl.tsx +0 -1
- package/src/zone/form/components/SortControl.tsx +0 -1
- package/yarn.lock +338 -354
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.d.ts +0 -18
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.d.ts.map +0 -1
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.js +0 -289
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.d.ts +0 -15
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.d.ts.map +0 -1
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.js +0 -89
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.d.ts +0 -14
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.d.ts.map +0 -1
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.js +0 -404
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.d.ts +0 -10
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.d.ts.map +0 -1
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.js +0 -87
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/index.d.ts +0 -2
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/index.d.ts.map +0 -1
- package/dist/iframe/ProductWithModifierModal/index.d.ts +0 -2
- package/dist/iframe/ProductWithModifierModal/index.d.ts.map +0 -1
- package/dist/iframe/ProductWithModifierModal/utils.d.ts +0 -5
- package/dist/iframe/ProductWithModifierModal/utils.d.ts.map +0 -1
- package/dist/iframe/ProductWithModifierModal/utils.js +0 -21
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductWithModifier/ProductWithModifier.d.ts +0 -23
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductWithModifier/ProductWithModifier.d.ts.map +0 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductWithModifier/ProductWithModifier.js +0 -62
- package/dist/iframe/order-process/components/CategoryProduct/constants.d.ts +0 -2
- package/dist/iframe/order-process/components/CategoryProduct/constants.d.ts.map +0 -1
- package/dist/iframe/order-process/components/CategoryProduct/constants.js +0 -4
- package/dist/iframe/order-process/components/utils/useOnWindowUnmount.d.ts +0 -6
- package/dist/iframe/order-process/components/utils/useOnWindowUnmount.d.ts.map +0 -1
- package/dist/iframe/order-process/components/utils/useOnWindowUnmount.js +0 -18
- package/dist/static/loader/FullScreenLoader.d.ts +0 -8
- package/dist/static/loader/FullScreenLoader.d.ts.map +0 -1
- package/dist/static/loader/FullScreenLoader.js +0 -41
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.tsx +0 -212
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.tsx +0 -75
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.tsx +0 -393
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.tsx +0 -98
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/index.ts +0 -1
- package/src/iframe/ProductWithModifierModal/index.ts +0 -1
- package/src/iframe/ProductWithModifierModal/utils.ts +0 -29
- package/src/iframe/order-process/components/CategoryProduct/components/ProductWithModifier/ProductWithModifier.tsx +0 -86
- package/src/iframe/order-process/components/CategoryProduct/constants.ts +0 -1
- package/src/iframe/order-process/components/utils/useOnWindowUnmount.ts +0 -25
- package/src/static/loader/FullScreenLoader.tsx +0 -16
|
@@ -102,6 +102,7 @@
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
.ryft-payment-form {
|
|
105
|
+
|
|
105
106
|
.form-disable-box {
|
|
106
107
|
display: none;
|
|
107
108
|
position: absolute;
|
|
@@ -179,10 +180,11 @@
|
|
|
179
180
|
.form-disable-box {
|
|
180
181
|
top: 20rem;
|
|
181
182
|
}
|
|
182
|
-
|
|
183
|
+
}
|
|
183
184
|
}
|
|
184
185
|
|
|
185
186
|
@include media-breakpoint-up(md) {
|
|
187
|
+
|
|
186
188
|
.ryft-payment-form,
|
|
187
189
|
.form-disable-box {
|
|
188
190
|
height: 50%;
|
|
@@ -211,4 +213,4 @@
|
|
|
211
213
|
.divider {
|
|
212
214
|
display: none !important;
|
|
213
215
|
}
|
|
214
|
-
}
|
|
216
|
+
}
|
|
@@ -51,25 +51,6 @@
|
|
|
51
51
|
border-bottom: 1px solid #f0f0f0;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
.modifier-header {
|
|
55
|
-
background-color: color('white');
|
|
56
|
-
padding: 0 2.5rem;
|
|
57
|
-
z-index: 2;
|
|
58
|
-
margin-top: 1rem;
|
|
59
|
-
min-height: 2rem;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.modifier-container {
|
|
63
|
-
background-color: color('white');
|
|
64
|
-
padding-bottom: 1rem;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.modifier-set-container {
|
|
68
|
-
background-color: color('white');
|
|
69
|
-
border-bottom: 2px solid #f0f0f0;
|
|
70
|
-
padding-bottom: 1rem;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
54
|
.header-user-image {
|
|
74
55
|
width: 3rem;
|
|
75
56
|
height: 3rem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GameDurationControl.d.ts","sourceRoot":"","sources":["../../../../src/zone/form/components/GameDurationControl.tsx"],"names":[],"mappings":"AAOA,KAAK,wBAAwB,GAAG;IAC9B,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,mBAAmB,mBAE7B,wBAAwB,
|
|
1
|
+
{"version":3,"file":"GameDurationControl.d.ts","sourceRoot":"","sources":["../../../../src/zone/form/components/GameDurationControl.tsx"],"names":[],"mappings":"AAOA,KAAK,wBAAwB,GAAG;IAC9B,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,mBAAmB,mBAE7B,wBAAwB,4CA+B1B,CAAA"}
|
|
@@ -77,9 +77,6 @@ var GameDurationControl = function(param) {
|
|
|
77
77
|
required: false,
|
|
78
78
|
min: 1
|
|
79
79
|
})), {
|
|
80
|
-
onWheel: function(event) {
|
|
81
|
-
return event.currentTarget.blur();
|
|
82
|
-
},
|
|
83
80
|
placeholder: t('Design:duration'),
|
|
84
81
|
isInvalid: Boolean(errors.defaultDuration),
|
|
85
82
|
disabled: isLoading
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SortControl.d.ts","sourceRoot":"","sources":["../../../../src/zone/form/components/SortControl.tsx"],"names":[],"mappings":"AAOA,KAAK,gBAAgB,GAAG;IACtB,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,WAAW,kBAAmB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"SortControl.d.ts","sourceRoot":"","sources":["../../../../src/zone/form/components/SortControl.tsx"],"names":[],"mappings":"AAOA,KAAK,gBAAgB,GAAG;IACtB,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,WAAW,kBAAmB,gBAAgB,4CAmC1D,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@licklist/design",
|
|
3
|
-
"version": "0.71.18
|
|
3
|
+
"version": "0.71.18",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+ssh://git@bitbucket.org/artelogicsoft/licklist_design.git"
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
]
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@licklist/core": "0.
|
|
45
|
+
"@licklist/core": "0.32.7",
|
|
46
46
|
"@licklist/eslint-config": "0.5.6",
|
|
47
|
-
"@licklist/plugins": "0.35.
|
|
47
|
+
"@licklist/plugins": "0.35.6",
|
|
48
48
|
"lodash": "4.17.21",
|
|
49
49
|
"luxon": "3.5.0",
|
|
50
50
|
"react": "17.0.2",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"@dnd-kit/utilities": "2.0.0",
|
|
62
62
|
"@fortawesome/fontawesome-svg-core": "1.2.34",
|
|
63
63
|
"@fortawesome/free-solid-svg-icons": "5.15.2",
|
|
64
|
-
"@licklist/core": "0.
|
|
64
|
+
"@licklist/core": "0.32.7",
|
|
65
65
|
"@licklist/eslint-config": "0.5.6",
|
|
66
|
-
"@licklist/plugins": "0.35.
|
|
66
|
+
"@licklist/plugins": "0.35.6",
|
|
67
67
|
"@mantine/core": "6.0.22",
|
|
68
68
|
"@mantine/hooks": "6.0.22",
|
|
69
69
|
"@mdx-js/react": "1.6.22",
|
|
@@ -202,10 +202,8 @@
|
|
|
202
202
|
"yarn tsc"
|
|
203
203
|
]
|
|
204
204
|
},
|
|
205
|
-
"packageManager": "yarn@4.4.0",
|
|
206
205
|
"volta": {
|
|
207
206
|
"node": "20.9.0",
|
|
208
207
|
"yarn": "4.4.0"
|
|
209
|
-
}
|
|
210
|
-
"stableVersion": "0.71.4-dev.1"
|
|
208
|
+
}
|
|
211
209
|
}
|
|
@@ -76,7 +76,6 @@ export const AffiliateForm = ({
|
|
|
76
76
|
const copyToClipboard = () =>
|
|
77
77
|
// eslint-disable-next-line consistent-return
|
|
78
78
|
window.navigator.clipboard.writeText(formValues.link)
|
|
79
|
-
|
|
80
79
|
return (
|
|
81
80
|
<FormProvider {...form}>
|
|
82
81
|
<Form onSubmit={form.handleSubmit(handleSubmit)}>
|
|
@@ -8,15 +8,11 @@ function AuthNavComponent() {
|
|
|
8
8
|
|
|
9
9
|
return (
|
|
10
10
|
<Router>
|
|
11
|
-
{/* TODO fix issue react router types
|
|
12
|
-
@ts-expect-error */}
|
|
13
11
|
<Link to='/login'>
|
|
14
12
|
<StyledButton size='sm' className='rounded-pill mr-2'>
|
|
15
13
|
{t('login')}
|
|
16
14
|
</StyledButton>
|
|
17
15
|
</Link>
|
|
18
|
-
{/* TODO fix issue react router types
|
|
19
|
-
@ts-expect-error */}
|
|
20
16
|
<Link to='/register'>
|
|
21
17
|
<StyledButton
|
|
22
18
|
size='sm'
|
|
@@ -44,7 +44,7 @@ const LoginComponent = ({
|
|
|
44
44
|
const handleError = (error: any) => {
|
|
45
45
|
notification.danger({
|
|
46
46
|
title: 'Error',
|
|
47
|
-
message: error
|
|
47
|
+
message: error.message,
|
|
48
48
|
})
|
|
49
49
|
}
|
|
50
50
|
|
|
@@ -112,8 +112,6 @@ const LoginComponent = ({
|
|
|
112
112
|
{!hideSignUpLink && (
|
|
113
113
|
<h6 className='text-center'>
|
|
114
114
|
<Trans t={t} i18nKey='loginPromo'>
|
|
115
|
-
{/* TODO fix issue react router types
|
|
116
|
-
@ts-expect-error */}
|
|
117
115
|
Don't have account? <Link to='/register'>Sign up</Link>.
|
|
118
116
|
</Trans>
|
|
119
117
|
</h6>
|
|
@@ -147,8 +147,6 @@ function LoginFormComponent(props: LoginFormComponentProps) {
|
|
|
147
147
|
<p className='text-center mb-0 mt-3'>
|
|
148
148
|
<Trans t={t} i18nKey='User:resetPromo'>
|
|
149
149
|
Forgot your password?{' '}
|
|
150
|
-
{/* TODO fix issue react router types
|
|
151
|
-
@ts-expect-error */}
|
|
152
150
|
<Link
|
|
153
151
|
to='/forgot-password'
|
|
154
152
|
className={[isLoading && 'disabled'].join(' ')}
|
|
@@ -105,8 +105,6 @@ function RegisterComponent({
|
|
|
105
105
|
<h6 className='text-center'>
|
|
106
106
|
<Trans t={t} i18nKey='registerPromo'>
|
|
107
107
|
Fill out the form below to sign up for {{ name: t('bookedit') }}
|
|
108
|
-
{/* TODO fix issue react router types
|
|
109
|
-
@ts-expect-error */}
|
|
110
108
|
. Already signed up? Then just <Link to='/login'>Log in</Link>.
|
|
111
109
|
</Trans>
|
|
112
110
|
</h6>
|
|
@@ -400,14 +400,10 @@ function RegisterFormComponent({
|
|
|
400
400
|
<Trans t={t} i18nKey='User:agreementsPromo'>
|
|
401
401
|
By creating an account, I agree to {{ name: t('User:bookedit') }}
|
|
402
402
|
's{' '}
|
|
403
|
-
{/* TODO fix issue react router types
|
|
404
|
-
@ts-expect-error */}
|
|
405
403
|
<Link to='/terms' className={[isLoading && 'disabled'].join(' ')}>
|
|
406
404
|
terms of service
|
|
407
405
|
</Link>{' '}
|
|
408
406
|
and{' '}
|
|
409
|
-
{/* TODO fix issue react router types
|
|
410
|
-
@ts-expect-error */}
|
|
411
407
|
<Link to='/privacy' className={[isLoading && 'disabled'].join(' ')}>
|
|
412
408
|
privacy policy
|
|
413
409
|
</Link>
|
|
@@ -97,8 +97,6 @@ function ResetPasswordFormComponent(props: ResetPasswordFormComponentProps) {
|
|
|
97
97
|
<p className='text-center mb-0 mt-3'>
|
|
98
98
|
<Trans t={t} i18nKey='User:signinPromo'>
|
|
99
99
|
Already a user?{' '}
|
|
100
|
-
{/* TODO fix issue react router types
|
|
101
|
-
@ts-expect-error */}
|
|
102
100
|
<Link to='/login' className={[isLoading && 'disabled'].join(' ')}>
|
|
103
101
|
Sign in
|
|
104
102
|
</Link>
|
|
@@ -108,8 +106,6 @@ function ResetPasswordFormComponent(props: ResetPasswordFormComponentProps) {
|
|
|
108
106
|
<p className='text-center mb-0 mt-3'>
|
|
109
107
|
<Trans t={t} i18nKey='User:loginPromo'>
|
|
110
108
|
Don't have an account?{' '}
|
|
111
|
-
{/* TODO fix issue react router types
|
|
112
|
-
@ts-expect-error */}
|
|
113
109
|
<Link
|
|
114
110
|
to='/register'
|
|
115
111
|
className={[isLoading && 'disabled'].join(' ')}
|
package/src/auth/Router.tsx
CHANGED
|
@@ -28,7 +28,7 @@ Default.args = {
|
|
|
28
28
|
fromPrice: 'from £10',
|
|
29
29
|
selectedDate: null,
|
|
30
30
|
setSelectedDate: () => null,
|
|
31
|
-
calendarDates: getMonthCalendarDates(
|
|
31
|
+
calendarDates: getMonthCalendarDates(now),
|
|
32
32
|
currentDate: now,
|
|
33
33
|
getDateTimeButtonProps: () => ({
|
|
34
34
|
resources: [],
|
|
@@ -50,7 +50,7 @@ Loading.args = {
|
|
|
50
50
|
fromPrice: 'from £10',
|
|
51
51
|
selectedDate: null,
|
|
52
52
|
setSelectedDate: () => null,
|
|
53
|
-
calendarDates: getMonthCalendarDates(
|
|
53
|
+
calendarDates: getMonthCalendarDates(now),
|
|
54
54
|
currentDate: now,
|
|
55
55
|
getDateTimeButtonProps: () => ({
|
|
56
56
|
resources: [],
|
|
@@ -28,13 +28,11 @@ export const DEADLINE_NAME = [
|
|
|
28
28
|
|
|
29
29
|
export type DeadLineNameType = (typeof DEADLINE_NAME)[number]
|
|
30
30
|
|
|
31
|
-
type SaleDeadlineType =
|
|
32
|
-
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
[key: string]: null | number
|
|
37
|
-
}
|
|
31
|
+
type SaleDeadlineType = {
|
|
32
|
+
saleDeadline: null | number
|
|
33
|
+
} | {
|
|
34
|
+
[key: string] : null | number
|
|
35
|
+
}
|
|
38
36
|
|
|
39
37
|
export const SaleDeadline = ({
|
|
40
38
|
disabled = false,
|
|
@@ -54,8 +52,8 @@ export const SaleDeadline = ({
|
|
|
54
52
|
const [deadlineType, setDeadlineType] = useState<DeadlineType>(
|
|
55
53
|
SALE_DEADLINE_BEFORE_TYPE,
|
|
56
54
|
)
|
|
57
|
-
|
|
58
|
-
const saleDeadline = watch(deadLineCategory || SALE_DEADLINE_NAME)
|
|
55
|
+
|
|
56
|
+
const saleDeadline = watch(deadLineCategory || SALE_DEADLINE_NAME)
|
|
59
57
|
|
|
60
58
|
useEffect(() => {
|
|
61
59
|
if (onlyBefore) return
|
|
@@ -2,25 +2,24 @@ import { DATE_FORMAT, DATE_TIME_FULL_FORMAT } from '@licklist/core/dist/Config'
|
|
|
2
2
|
import { EventStatistic } from '@licklist/core/dist/DataMapper/Provider/EventStatisticDataMapper'
|
|
3
3
|
import { DateTime } from 'luxon'
|
|
4
4
|
|
|
5
|
-
export const MIN_EVENT_DESCRIPTION_SIZE = 150
|
|
6
|
-
export const EVENT_DESCRIPTION_SIZE = 350
|
|
7
|
-
export const EMOJI_REGEX =
|
|
8
|
-
/<span data-emoji-replacer=""><img[^>]*alt="([^"]+)"[^>]*><\/span>/g
|
|
5
|
+
export const MIN_EVENT_DESCRIPTION_SIZE = 150;
|
|
6
|
+
export const EVENT_DESCRIPTION_SIZE = 350;
|
|
7
|
+
export const EMOJI_REGEX = /<span data-emoji-replacer=""><img[^>]*alt="([^"]+)"[^>]*><\/span>/g;
|
|
9
8
|
|
|
10
9
|
export const formatContent = (content, maxLength = EVENT_DESCRIPTION_SIZE) => {
|
|
11
|
-
if (!content) return ''
|
|
10
|
+
if (!content) return '';
|
|
12
11
|
|
|
13
|
-
const replacedContent = replaceEmojiImagesWithText(content)
|
|
12
|
+
const replacedContent = replaceEmojiImagesWithText(content);
|
|
14
13
|
|
|
15
14
|
if (replacedContent.length <= maxLength) {
|
|
16
|
-
return replacedContent
|
|
15
|
+
return replacedContent;
|
|
17
16
|
}
|
|
18
17
|
|
|
19
|
-
return replacedContent.slice(0, maxLength).concat('...')
|
|
20
|
-
}
|
|
18
|
+
return replacedContent.slice(0, maxLength).concat('...');
|
|
19
|
+
};
|
|
21
20
|
|
|
22
21
|
function replaceEmojiImagesWithText(text) {
|
|
23
|
-
return text.replace(EMOJI_REGEX, (_, emojiText) => emojiText)
|
|
22
|
+
return text.replace(EMOJI_REGEX, (_, emojiText) => emojiText);
|
|
24
23
|
}
|
|
25
24
|
|
|
26
25
|
/**
|
|
@@ -12,7 +12,6 @@ export type EventStatisticModalProps = {
|
|
|
12
12
|
date?: Event['startAt'] | null
|
|
13
13
|
eventStatistic?: EventStatistic | null
|
|
14
14
|
title?: string
|
|
15
|
-
eventId?: string
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export const EventStatisticModal = ({
|
|
@@ -21,11 +20,10 @@ export const EventStatisticModal = ({
|
|
|
21
20
|
date,
|
|
22
21
|
eventStatistic,
|
|
23
22
|
title,
|
|
24
|
-
eventId,
|
|
25
23
|
}: EventStatisticModalProps) => {
|
|
26
24
|
const { t } = useTranslation('Design')
|
|
27
25
|
|
|
28
|
-
const data = useTableData(date, eventStatistic
|
|
26
|
+
const data = useTableData(date, eventStatistic)
|
|
29
27
|
const handleClose = () => {
|
|
30
28
|
setIsOpen(false)
|
|
31
29
|
}
|
|
@@ -11,7 +11,6 @@ import { StaticTableData } from '../../../table'
|
|
|
11
11
|
export const useTableData = (
|
|
12
12
|
date: Event['startAt'] | null,
|
|
13
13
|
eventStatistic: EventStatistic | null,
|
|
14
|
-
eventId: string,
|
|
15
14
|
) => {
|
|
16
15
|
const { t } = useTranslation('Design')
|
|
17
16
|
const { formatNumber } = useIntl()
|
|
@@ -85,7 +84,7 @@ export const useTableData = (
|
|
|
85
84
|
useEffect(() => {
|
|
86
85
|
setTableRows(transformStatisticToTableRows(date, eventStatistic))
|
|
87
86
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
88
|
-
}, [date,
|
|
87
|
+
}, [date, eventStatistic])
|
|
89
88
|
|
|
90
89
|
return tableRows
|
|
91
90
|
}
|
|
@@ -33,15 +33,15 @@ export const convertEventStatisticToTableData = (
|
|
|
33
33
|
return []
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
const summaryFormattedDate = DateTime.fromISO(date)
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
const summaryFormattedDate = DateTime.fromISO(date)
|
|
37
|
+
.toUTC()
|
|
38
|
+
.toFormat(DATE_FORMAT)
|
|
39
39
|
|
|
40
40
|
const summaryDays =
|
|
41
41
|
Object.keys(eventStatistic?.productCategorySummary)?.filter(
|
|
42
42
|
(date) =>
|
|
43
43
|
DateTime.fromFormat(date, DATE_TIME_FULL_FORMAT).toFormat(
|
|
44
|
-
|
|
44
|
+
DATE_FORMAT,
|
|
45
45
|
) === summaryFormattedDate,
|
|
46
46
|
) ?? []
|
|
47
47
|
|
|
@@ -100,8 +100,7 @@ export const convertEventStatisticToTableData = (
|
|
|
100
100
|
|
|
101
101
|
const maxTotalQuantity = maxBy(overrides, 'id')?.totalQuantity
|
|
102
102
|
|
|
103
|
-
const totalQuantity =
|
|
104
|
-
maxTotalQuantity || productSummary?.totalQuantity
|
|
103
|
+
const totalQuantity = maxTotalQuantity || productSummary?.totalQuantity
|
|
105
104
|
|
|
106
105
|
summaryMap.set(`${categoryName}.${productSummary.name}`, {
|
|
107
106
|
name: productSummary.name,
|
|
@@ -10,17 +10,13 @@ export const useCanvasSize = ({
|
|
|
10
10
|
width: componentWidth,
|
|
11
11
|
height: componentHeight,
|
|
12
12
|
}: CanvasSizeProps) => {
|
|
13
|
-
// TODO Fix often updating of width and height
|
|
14
13
|
const { width, height } = useWindowDimensions()
|
|
15
14
|
|
|
16
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
17
|
-
const memoizedDimensions = useMemo(() => ({ width, height }), [width])
|
|
18
|
-
|
|
19
15
|
const memoedComponentParameters = useMemo(() => {
|
|
20
16
|
if (!componentWidth && !componentHeight) return null
|
|
21
17
|
|
|
22
18
|
return { width: componentWidth, height: componentHeight }
|
|
23
19
|
}, [componentWidth, componentHeight])
|
|
24
20
|
|
|
25
|
-
return memoedComponentParameters ||
|
|
21
|
+
return memoedComponentParameters || { width, height }
|
|
26
22
|
}
|
|
@@ -27,6 +27,7 @@ export const GridView: Story<ActivityCardProps> = (props) => {
|
|
|
27
27
|
GridView.args = {
|
|
28
28
|
layout: LAYOUT_GRID,
|
|
29
29
|
title: 'Clay Pigeons & Axe Thowing',
|
|
30
|
+
duration: '60 mins',
|
|
30
31
|
price: 'from £20',
|
|
31
32
|
}
|
|
32
33
|
|
|
@@ -45,5 +46,6 @@ export const ListView: Story<ActivityCardProps> = (props) => {
|
|
|
45
46
|
ListView.args = {
|
|
46
47
|
layout: LAYOUT_LIST,
|
|
47
48
|
title: 'Clay Pigeons & Axe Thowing',
|
|
49
|
+
duration: '60 mins',
|
|
48
50
|
price: 'from £20',
|
|
49
51
|
}
|
|
@@ -10,6 +10,7 @@ export const LAYOUT_LIST = 'list'
|
|
|
10
10
|
|
|
11
11
|
export type ActivityCardProps = {
|
|
12
12
|
title: ReactNode
|
|
13
|
+
duration: ReactNode
|
|
13
14
|
price: ReactNode
|
|
14
15
|
description?: ReactNode
|
|
15
16
|
onSelect: () => void
|
|
@@ -23,6 +24,7 @@ export type ActivityCardProps = {
|
|
|
23
24
|
|
|
24
25
|
export const ActivityCard = ({
|
|
25
26
|
title,
|
|
27
|
+
duration,
|
|
26
28
|
price,
|
|
27
29
|
description,
|
|
28
30
|
availableTimes,
|
|
@@ -46,6 +48,7 @@ export const ActivityCard = ({
|
|
|
46
48
|
|
|
47
49
|
<div>
|
|
48
50
|
<div className='activity-card-title'>{title}</div>
|
|
51
|
+
{duration && <div>{duration}</div>}
|
|
49
52
|
{price && <div>{price}</div>}
|
|
50
53
|
{description && (
|
|
51
54
|
<div className='mt-2 activity-card-description'>{description}</div>
|
|
@@ -76,6 +79,7 @@ export const ActivityCard = ({
|
|
|
76
79
|
<div className='activity-card-info'>
|
|
77
80
|
<div className='activity-card-title mb-2'>{title}</div>
|
|
78
81
|
{availableTimes && <div>{availableTimes}</div>}
|
|
82
|
+
{duration && <div>{duration}</div>}
|
|
79
83
|
{price && <div>{price}</div>}
|
|
80
84
|
{description && (
|
|
81
85
|
<div className='mt-2 activity-card-description'>{description}</div>
|
|
@@ -12,7 +12,6 @@ interface TicketDescriptionProps {
|
|
|
12
12
|
title: string
|
|
13
13
|
description: string
|
|
14
14
|
className?: string
|
|
15
|
-
classNameProductModal?: string
|
|
16
15
|
images: Image[] | null
|
|
17
16
|
price?: ReactNode
|
|
18
17
|
isRequired?: boolean
|
|
@@ -25,7 +24,6 @@ export function TicketDescription({
|
|
|
25
24
|
title,
|
|
26
25
|
description,
|
|
27
26
|
className = '',
|
|
28
|
-
classNameProductModal = '',
|
|
29
27
|
images,
|
|
30
28
|
price,
|
|
31
29
|
isRequired = false,
|
|
@@ -49,10 +47,10 @@ export function TicketDescription({
|
|
|
49
47
|
className='ticket-description__wrapper'
|
|
50
48
|
style={descriptionWrapperStyle}
|
|
51
49
|
>
|
|
52
|
-
<div className=
|
|
50
|
+
<div className='ticket-description__wrapper-children'>
|
|
53
51
|
{imageSrc && (
|
|
54
|
-
<div className=
|
|
55
|
-
<img
|
|
52
|
+
<div className='image-wrapper'>
|
|
53
|
+
<img src={imageSrc} alt={title} />
|
|
56
54
|
</div>
|
|
57
55
|
)}
|
|
58
56
|
{canExpand && description.length > DESCRIPTION_MAX_LENGTH ? (
|
|
@@ -2,8 +2,6 @@ import { useTranslation } from 'react-i18next'
|
|
|
2
2
|
import { useIntl } from 'react-intl'
|
|
3
3
|
import * as Config from '@licklist/core/dist/Config'
|
|
4
4
|
import { OrderItem } from '@licklist/plugins/dist/types/context/Iframe/orderItems'
|
|
5
|
-
import { calculateTotalModifiersPrice } from '../../utils'
|
|
6
|
-
import { ProductWithModifier } from '../../../CategoryProduct/components/ProductWithModifier/ProductWithModifier'
|
|
7
5
|
|
|
8
6
|
type ProductSummaryProps = {
|
|
9
7
|
name?: string
|
|
@@ -21,16 +19,11 @@ export const ProductSummary = ({
|
|
|
21
19
|
|
|
22
20
|
const priceForOneProduct = orderProduct?.price
|
|
23
21
|
|
|
24
|
-
const modifierSetsPrice = calculateTotalModifiersPrice(
|
|
25
|
-
orderProduct?.orderModifiersSets,
|
|
26
|
-
)
|
|
27
|
-
|
|
28
22
|
const fullPrice = formatNumber(priceForOneProduct * orderProduct?.quantity, {
|
|
29
23
|
style: 'currency',
|
|
30
24
|
currency: Config.Currency.GBP,
|
|
31
25
|
})
|
|
32
26
|
|
|
33
|
-
|
|
34
27
|
return (
|
|
35
28
|
<div className='product'>
|
|
36
29
|
<p className='m-0 name'>{name ?? orderProduct?.name}</p>
|
|
@@ -39,22 +32,9 @@ export const ProductSummary = ({
|
|
|
39
32
|
{t('shortQuantity')}: {orderProduct?.quantity}
|
|
40
33
|
</p>
|
|
41
34
|
|
|
42
|
-
|
|
35
|
+
<p className='price'>{fullPrice}</p>
|
|
43
36
|
</div>
|
|
44
37
|
|
|
45
|
-
{!!orderProduct?.orderModifiersSets?.length && (
|
|
46
|
-
<>
|
|
47
|
-
{orderProduct.orderModifiersSets.map((modifier, index) => (
|
|
48
|
-
<ProductWithModifier
|
|
49
|
-
key={modifier.productQuantity.toString()}
|
|
50
|
-
modifier={modifier}
|
|
51
|
-
modifierKey={index}
|
|
52
|
-
isSummary
|
|
53
|
-
/>
|
|
54
|
-
))}
|
|
55
|
-
</>
|
|
56
|
-
)}
|
|
57
|
-
|
|
58
38
|
{productQuantityError && (
|
|
59
39
|
<p className='iframe-event__message-error'>{productQuantityError}</p>
|
|
60
40
|
)}
|
package/src/iframe/order-process/components/BookingSummary/components/SummaryTotal/SummaryTotal.tsx
CHANGED
|
@@ -22,23 +22,24 @@ export const SummaryTotal = ({
|
|
|
22
22
|
|
|
23
23
|
const cartSum = isFreePayment
|
|
24
24
|
? 0
|
|
25
|
-
: cartSumByOrderProducts({
|
|
25
|
+
: cartSumByOrderProducts({orderProducts}) + transactionFee
|
|
26
26
|
|
|
27
|
-
const totalSum = isFreePayment
|
|
28
|
-
? 0
|
|
29
|
-
: cartSumByOrderProducts({ orderProducts, isTotalSum: true }) +
|
|
30
|
-
transactionFee
|
|
31
27
|
|
|
32
|
-
|
|
28
|
+
const totalSum = isFreePayment
|
|
29
|
+
? 0
|
|
30
|
+
: cartSumByOrderProducts({orderProducts, isTotalSum: true}) +
|
|
31
|
+
transactionFee;
|
|
32
|
+
|
|
33
|
+
const hasRemaingToPay = totalSum > cartSum;
|
|
33
34
|
|
|
34
35
|
if (!orderProducts.length) {
|
|
35
36
|
return null
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
return (
|
|
39
|
-
<div className=
|
|
40
|
+
<div className="d-flex flex-column justify-content-between">
|
|
40
41
|
<SummaryTotalBlock
|
|
41
|
-
label={t(hasRemaingToPay ?
|
|
42
|
+
label={t(hasRemaingToPay ? "payNow" : "total")}
|
|
42
43
|
amount={cartSum}
|
|
43
44
|
/>
|
|
44
45
|
{!!totalWithDiscount && !isFreePayment && (
|
|
@@ -49,12 +50,9 @@ export const SummaryTotal = ({
|
|
|
49
50
|
)}
|
|
50
51
|
{hasRemaingToPay && (
|
|
51
52
|
<>
|
|
52
|
-
|
|
53
|
-
label={t('remaining')}
|
|
54
|
-
amount={totalSum - cartSum}
|
|
55
|
-
/>
|
|
53
|
+
<SummaryTotalBlock label={t("remaining")} amount={totalSum - cartSum} />
|
|
56
54
|
|
|
57
|
-
|
|
55
|
+
<SummaryTotalBlock label={t("total")} amount={totalSum} />
|
|
58
56
|
</>
|
|
59
57
|
)}
|
|
60
58
|
</div>
|