@licklist/design 0.44.526 → 0.44.528
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/types/index.d.ts +1 -1
- package/dist/affiliate/types/index.d.ts.map +1 -1
- package/dist/assets/iframe/available.svg +5 -0
- package/dist/assets/iframe/available.svg.js +1 -0
- package/dist/assets/iframe/backButton.svg +4 -0
- package/dist/assets/iframe/limited.svg +5 -0
- package/dist/assets/iframe/limited.svg.js +1 -0
- package/dist/assets/iframe/soldOut.svg +6 -0
- package/dist/assets/iframe/soldOut.svg.js +1 -0
- package/dist/assets/logo/bookedit.svg +9 -11
- package/dist/assets/logo/bookedit.svg.js +1 -1
- package/dist/assets/logo/favicon.svg +12 -0
- package/dist/assets/logo/licklist.svg +0 -2
- package/dist/assets/logo/licklist.svg.js +1 -1
- package/dist/auth/Login/LoginComponent.d.ts +1 -1
- package/dist/auth/Login/LoginComponent.d.ts.map +1 -1
- package/dist/auth/Login/LoginFormComponent.d.ts +1 -1
- package/dist/auth/Login/LoginFormComponent.d.ts.map +1 -1
- package/dist/auth/Register/RegisterComponent.d.ts +1 -1
- package/dist/auth/Register/RegisterComponent.d.ts.map +1 -1
- package/dist/auth/Register/RegisterFormComponent.d.ts +1 -1
- package/dist/auth/Register/RegisterFormComponent.d.ts.map +1 -1
- package/dist/auth/ResetPassword/ResetPasswordFormComponent.d.ts +1 -1
- package/dist/auth/ResetPassword/ResetPasswordFormComponent.d.ts.map +1 -1
- package/dist/availability-indicator/AvailabilityIndicator.d.ts +9 -0
- package/dist/availability-indicator/AvailabilityIndicator.d.ts.map +1 -0
- package/dist/availability-indicator/AvailabilityIndicator.js +1 -0
- package/dist/availability-indicator/index.d.ts +2 -0
- package/dist/availability-indicator/index.d.ts.map +1 -0
- package/dist/calendar/Calendar.d.ts +21 -0
- package/dist/calendar/Calendar.d.ts.map +1 -0
- package/dist/calendar/Calendar.js +1 -0
- package/dist/calendar/components/CalendarButtons/CalendarButtons.d.ts +6 -0
- package/dist/calendar/components/CalendarButtons/CalendarButtons.d.ts.map +1 -0
- package/dist/calendar/components/CalendarButtons/CalendarButtons.js +1 -0
- package/dist/calendar/components/CalendarButtons/index.d.ts.map +1 -0
- package/dist/calendar/components/CalendarDates/CalendarDates.d.ts +5 -0
- package/dist/calendar/components/CalendarDates/CalendarDates.d.ts.map +1 -0
- package/dist/calendar/components/CalendarDates/CalendarDates.js +1 -0
- package/dist/calendar/components/CalendarDates/index.d.ts.map +1 -0
- package/dist/{iframe/event/event-calendar → calendar}/components/CalendarSelect/CalendarSelect.d.ts +2 -2
- package/dist/calendar/components/CalendarSelect/CalendarSelect.d.ts.map +1 -0
- package/dist/calendar/components/CalendarSelect/CalendarSelect.js +1 -0
- package/dist/calendar/components/CalendarSelect/index.d.ts.map +1 -0
- package/dist/calendar/components/CalendarWeekdays/CalendarWeekdays.d.ts.map +1 -0
- package/dist/calendar/components/CalendarWeekdays/index.d.ts.map +1 -0
- package/dist/calendar/index.d.ts +4 -0
- package/dist/calendar/index.d.ts.map +1 -0
- package/dist/calendar/utils/index.d.ts +5 -0
- package/dist/calendar/utils/index.d.ts.map +1 -0
- package/dist/calendar/utils/index.js +1 -0
- package/dist/collapsible-input-group/CollapsibleInputGroup.d.ts +1 -1
- package/dist/collapsible-input-group/CollapsibleInputGroup.d.ts.map +1 -1
- package/dist/custom-fields/field-set/CustomFieldSets.d.ts +3 -3
- package/dist/custom-fields/field-set/CustomFieldSets.d.ts.map +1 -1
- package/dist/custom-fields/field-set/components/CustomFieldSet/CustomFieldSet.d.ts +1 -1
- package/dist/custom-fields/field-set/components/CustomFieldSet/CustomFieldSet.d.ts.map +1 -1
- package/dist/custom-fields/field-set/contexts/useCustomFieldSets.d.ts +2 -2
- package/dist/custom-fields/field-set/contexts/useCustomFieldSets.d.ts.map +1 -1
- package/dist/customers/components/filter/CustomerFilter.d.ts +1 -1
- package/dist/customers/components/filter/CustomerFilter.d.ts.map +1 -1
- package/dist/date-time-button/DateContent.d.ts +9 -0
- package/dist/date-time-button/DateContent.d.ts.map +1 -0
- package/dist/date-time-button/DateContent.js +1 -0
- package/dist/date-time-button/DateTimeButton.d.ts +18 -0
- package/dist/date-time-button/DateTimeButton.d.ts.map +1 -0
- package/dist/date-time-button/DateTimeButton.js +1 -0
- package/dist/date-time-button/index.d.ts +2 -0
- package/dist/date-time-button/index.d.ts.map +1 -0
- package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.d.ts +3 -3
- package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.d.ts.map +1 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.d.ts +1 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.d.ts.map +1 -1
- package/dist/events/event-venue-map/EventVenueMap.d.ts +5 -5
- package/dist/events/event-venue-map/EventVenueMap.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/Dropdown/Dropdown.d.ts +1 -1
- package/dist/events/event-venue-map/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/Dropdown/components/ProductsControl/ProductsControl.d.ts +1 -1
- package/dist/events/event-venue-map/components/Dropdown/components/ProductsControl/ProductsControl.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/Dropdown/components/SelectControl/SelectControl.d.ts +1 -1
- package/dist/events/event-venue-map/components/Dropdown/components/SelectControl/SelectControl.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/MapPoint/MapPoint.d.ts +1 -1
- package/dist/events/event-venue-map/components/MapPoint/MapPoint.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/DeleteIcon/DeleteIcon.d.ts +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/DeleteIcon/DeleteIcon.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/EditIcon/EditIcon.d.ts +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/EditIcon/EditIcon.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/PointIcon/PointIcon.d.ts +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/PointIcon/PointIcon.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/ProductIcon/ProductIcon.d.ts +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/ProductIcon/ProductIcon.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/ProductTooltip/ProductTooltip.d.ts +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/ProductTooltip/ProductTooltip.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/VenueMap/VenueMap.d.ts +4 -4
- package/dist/events/event-venue-map/components/VenueMap/VenueMap.d.ts.map +1 -1
- package/dist/events/event-venue-map/hooks/useCanvasSize.d.ts +1 -1
- package/dist/events/event-venue-map/hooks/useCanvasSize.d.ts.map +1 -1
- package/dist/events/event-venue-map/hooks/useStageActions.d.ts +1 -1
- package/dist/events/event-venue-map/hooks/useStageActions.d.ts.map +1 -1
- package/dist/events/event-venue-map/types/index.d.ts +5 -5
- package/dist/events/event-venue-map/types/index.d.ts.map +1 -1
- package/dist/events/event-venue-map/utils/index.d.ts +3 -3
- package/dist/events/event-venue-map/utils/index.d.ts.map +1 -1
- package/dist/file-upload/FilePreview.d.ts +2 -2
- package/dist/file-upload/FilePreview.d.ts.map +1 -1
- package/dist/file-upload/FileUpload.d.ts +1 -1
- package/dist/file-upload/FileUpload.d.ts.map +1 -1
- package/dist/header/Header.d.ts +1 -1
- package/dist/header/Header.d.ts.map +1 -1
- package/dist/help/example/Example.d.ts +4 -4
- package/dist/help/example/Example.d.ts.map +1 -1
- package/dist/help/popover/HelpPopover.d.ts +5 -3
- package/dist/help/popover/HelpPopover.d.ts.map +1 -1
- package/dist/help/popover/HelpPopover.js +1 -1
- package/dist/iframe/activity-card/ActivityCard.d.ts +17 -0
- package/dist/iframe/activity-card/ActivityCard.d.ts.map +1 -0
- package/dist/iframe/activity-card/ActivityCard.js +1 -0
- package/dist/iframe/activity-card/index.d.ts +2 -0
- package/dist/iframe/activity-card/index.d.ts.map +1 -0
- package/dist/iframe/back-button/BackButton.d.ts +6 -0
- package/dist/iframe/back-button/BackButton.d.ts.map +1 -0
- package/dist/iframe/back-button/BackButton.js +1 -0
- package/dist/iframe/back-button/index.d.ts +2 -0
- package/dist/iframe/back-button/index.d.ts.map +1 -0
- package/dist/iframe/custom-fields/components/CustomDateField.d.ts +1 -1
- package/dist/iframe/custom-fields/components/CustomDateField.d.ts.map +1 -1
- package/dist/iframe/event/event-card/IframeEventCard.d.ts +3 -3
- 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-card/IframeEventCardSkeleton.d.ts +3 -3
- package/dist/iframe/event/event-card/IframeEventCardSkeleton.d.ts.map +1 -1
- package/dist/iframe/event/event-card/IframeEventCardSkeleton.js +1 -1
- package/dist/iframe/event/event-details/EventDetails.d.ts +1 -1
- package/dist/iframe/event/event-details/EventDetails.d.ts.map +1 -1
- package/dist/iframe/event/event-order-short-summary/components/Summary/Summary.d.ts +1 -1
- package/dist/iframe/event/event-order-short-summary/components/Summary/Summary.d.ts.map +1 -1
- package/dist/iframe/event/event-product-sets/EventProductSets.d.ts +1 -1
- package/dist/iframe/event/event-product-sets/EventProductSets.d.ts.map +1 -1
- package/dist/iframe/event/event-product-sets/components/EventProductSet.d.ts +1 -1
- package/dist/iframe/event/event-product-sets/components/EventProductSet.d.ts.map +1 -1
- package/dist/iframe/event/event-step-venue-map-zones/EventStepVenueMapZones.d.ts +1 -1
- package/dist/iframe/event/event-step-venue-map-zones/EventStepVenueMapZones.d.ts.map +1 -1
- package/dist/iframe/event/event-step-venue-map-zones/components/EventStepVenueMapZone.d.ts +1 -1
- package/dist/iframe/event/event-step-venue-map-zones/components/EventStepVenueMapZone.d.ts.map +1 -1
- package/dist/iframe/event/event-venue-map/IframeEventVenueMap.d.ts +2 -5
- package/dist/iframe/event/event-venue-map/IframeEventVenueMap.d.ts.map +1 -1
- package/dist/iframe/event/index.d.ts +0 -1
- package/dist/iframe/event/index.d.ts.map +1 -1
- package/dist/iframe/index.d.ts +4 -2
- package/dist/iframe/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts +1 -1
- 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 +1 -1
- 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/ProductsByMenuStep/ProductsByMenuStep.d.ts +3 -3
- package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.d.ts.map +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/ToggleHeader/ToggleHeader.d.ts +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts +4 -3
- package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/utils/index.js +1 -1
- package/dist/iframe/order-process/components/BookingSummaryFooter/BookingSummaryFooter.d.ts +4 -4
- package/dist/iframe/order-process/components/BookingSummaryFooter/BookingSummaryFooter.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.d.ts +4 -4
- package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.js +1 -1
- package/dist/iframe/order-process/components/CalendarStepsForm/components/Category.d.ts +3 -3
- package/dist/iframe/order-process/components/CalendarStepsForm/components/Category.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.d.ts +3 -3
- package/dist/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts +3 -3
- package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.js +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts +2 -2
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.js +1 -1
- package/dist/iframe/order-process/components/ErrorModal/ErrorModal.d.ts +9 -0
- package/dist/iframe/order-process/components/ErrorModal/ErrorModal.d.ts.map +1 -0
- package/dist/iframe/order-process/components/ErrorModal/ErrorModal.js +1 -0
- package/dist/iframe/order-process/components/ErrorModal/index.d.ts +2 -0
- package/dist/iframe/order-process/components/ErrorModal/index.d.ts.map +1 -0
- package/dist/iframe/order-process/components/NavigationSteps/NavigationSteps.d.ts +8 -7
- package/dist/iframe/order-process/components/NavigationSteps/NavigationSteps.d.ts.map +1 -1
- package/dist/iframe/order-process/components/NavigationSteps/index.d.ts +1 -1
- package/dist/iframe/order-process/components/NavigationSteps/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/PaymentCard/PaymentCard.d.ts +1 -1
- package/dist/iframe/order-process/components/PaymentCard/PaymentCard.d.ts.map +1 -1
- package/dist/iframe/order-process/components/Timer/Timer.d.ts +1 -1
- package/dist/iframe/order-process/components/Timer/Timer.d.ts.map +1 -1
- package/dist/iframe/order-process/components/Timer/utils/index.d.ts +1 -1
- package/dist/iframe/order-process/components/Timer/utils/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/Timer/utils/index.js +1 -1
- package/dist/iframe/order-process/components/utils/useCategoryVerification.d.ts +9 -0
- package/dist/iframe/order-process/components/utils/useCategoryVerification.d.ts.map +1 -0
- package/dist/iframe/order-process/components/utils/useCategoryVerification.js +1 -0
- package/dist/iframe/order-process/index.d.ts +3 -2
- package/dist/iframe/order-process/index.d.ts.map +1 -1
- package/dist/iframe/page/Page.d.ts +1 -1
- package/dist/iframe/page/Page.d.ts.map +1 -1
- package/dist/iframe/page/components/PageBody/PageBody.d.ts +2 -2
- package/dist/iframe/page/components/PageBody/PageBody.d.ts.map +1 -1
- package/dist/iframe/page/components/PageBody/PageBody.js +1 -1
- package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.d.ts +3 -3
- 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/components/RightBlock/RightBlock.d.ts +1 -1
- package/dist/iframe/page/components/PageBody/components/RightBlock/RightBlock.d.ts.map +1 -1
- package/dist/iframe/page/components/PageBody/types.d.ts +1 -1
- package/dist/iframe/page/components/PageBody/types.d.ts.map +1 -1
- package/dist/iframe/page/components/PageHeader/PageHeader.d.ts +1 -1
- package/dist/iframe/page/components/PageHeader/PageHeader.d.ts.map +1 -1
- package/dist/iframe/page/components/PageHeader/PageHeader.js +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 +1 -1
- package/dist/iframe/payment/order-items-table/types/index.d.ts +9 -3
- package/dist/iframe/payment/order-items-table/types/index.d.ts.map +1 -1
- package/dist/iframe/payment/order-items-table/types/index.js +1 -0
- package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts +3 -0
- package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts.map +1 -0
- package/dist/iframe/payment/order-items-table/utils/paymentSummary.js +1 -0
- 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-header/PaymentStatusHeader.d.ts +1 -1
- package/dist/iframe/payment/payment-status-header/PaymentStatusHeader.d.ts.map +1 -1
- package/dist/iframe/payment/payment-status-page/PaymentStatusPage.d.ts +1 -1
- package/dist/iframe/payment/payment-status-page/PaymentStatusPage.d.ts.map +1 -1
- package/dist/iframe/payment/payment-status-page/PaymentStatusPage.js +1 -1
- package/dist/iframe/powered-by/PoweredBy.d.ts +1 -1
- package/dist/iframe/powered-by/PoweredBy.d.ts.map +1 -1
- package/dist/iframe/ryft/RyftPaymentForm.d.ts +1 -1
- package/dist/iframe/ryft/RyftPaymentForm.d.ts.map +1 -1
- package/dist/image-radio-input/ImageRadioInput.d.ts +15 -0
- package/dist/image-radio-input/ImageRadioInput.d.ts.map +1 -0
- package/dist/image-radio-input/ImageRadioInput.js +1 -0
- package/dist/image-radio-input/index.d.ts.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/logo/Logo.d.ts +1 -1
- package/dist/logo/Logo.d.ts.map +1 -1
- package/dist/modals/confirmation/ConfirmModal.d.ts +2 -2
- package/dist/modals/confirmation/ConfirmModal.d.ts.map +1 -1
- package/dist/notification/hooks/useTranslatedParameters.d.ts +1 -1
- package/dist/notification/hooks/useTranslatedParameters.d.ts.map +1 -1
- package/dist/notification/sms-template/control/SmsTemplateControl.d.ts +1 -1
- package/dist/notification/sms-template/control/SmsTemplateControl.d.ts.map +1 -1
- package/dist/product-set/control/DateAndRecurrenceInput.d.ts +2 -0
- 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/ProductSetControl.d.ts.map +1 -1
- package/dist/product-set/control/ProductSetControl.js +1 -1
- package/dist/product-set/control/ProductSetRecurrenceControl.d.ts.map +1 -1
- package/dist/product-set/control/ProductSetRecurrenceControl.js +1 -1
- package/dist/product-set/deposit-paid/ProductSetDepositPaidControl.d.ts +3 -3
- package/dist/product-set/deposit-paid/ProductSetDepositPaidControl.d.ts.map +1 -1
- package/dist/product-set/elements/DeleteFieldButton.d.ts +1 -1
- package/dist/product-set/elements/DeleteFieldButton.d.ts.map +1 -1
- 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/ProductsControl.d.ts +3 -1
- 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/VenueMapSetModal.d.ts +1 -1
- package/dist/product-set/form/VenueMapSetModal.d.ts.map +1 -1
- 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/context.d.ts +1 -1
- package/dist/product-set/form/context.d.ts.map +1 -1
- package/dist/product-set/hooks/useSortableTreeFunctions.d.ts.map +1 -1
- package/dist/product-set/hooks/useSortableTreeFunctions.js +1 -1
- package/dist/product-set/popover/ProductSetPopover.d.ts +1 -1
- package/dist/product-set/popover/ProductSetPopover.d.ts.map +1 -1
- package/dist/product-set/product/ProductControl.d.ts +2 -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/duration/ProductDurationControl.js +1 -1
- package/dist/product-set/product/fixed-duration-fields/FixedDurationOptions.d.ts +1 -1
- package/dist/product-set/product/fixed-duration-fields/FixedDurationOptions.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityRechargingControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityRechargingControl.js +1 -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/product-set/tabs/ProductSetTab.d.ts +1 -1
- package/dist/product-set/tabs/ProductSetTab.d.ts.map +1 -1
- package/dist/product-set/tabs/ProductSetTabs.d.ts +1 -1
- package/dist/product-set/tabs/ProductSetTabs.d.ts.map +1 -1
- package/dist/product-set/types/index.d.ts +5 -5
- package/dist/product-set/types/index.d.ts.map +1 -1
- package/dist/provider/categories-input/CategoriesInput.d.ts +1 -1
- package/dist/provider/categories-input/CategoriesInput.d.ts.map +1 -1
- package/dist/provider/categories-input/CategoriesInputDescription.d.ts +1 -1
- package/dist/provider/categories-input/CategoriesInputDescription.d.ts.map +1 -1
- package/dist/provider/categories-input/index.d.ts +1 -1
- package/dist/provider/categories-input/index.d.ts.map +1 -1
- package/dist/provider/company/user-form/UserForm.d.ts +2 -2
- package/dist/provider/company/user-form/UserForm.d.ts.map +1 -1
- package/dist/provider/location-input/index.d.ts +1 -1
- package/dist/provider/location-input/index.d.ts.map +1 -1
- package/dist/provider/provider-details-input/ProviderDetailsInput.d.ts +2 -2
- package/dist/provider/provider-details-input/ProviderDetailsInput.d.ts.map +1 -1
- package/dist/provider/provider-form/ProviderForm.d.ts +1 -1
- package/dist/provider/provider-form/ProviderForm.d.ts.map +1 -1
- package/dist/provider/provider-links-input/ProviderLinksInput.d.ts +2 -2
- package/dist/provider/provider-links-input/ProviderLinksInput.d.ts.map +1 -1
- package/dist/provider/venue-form/VenueForm.d.ts +1 -1
- package/dist/provider/venue-form/VenueForm.d.ts.map +1 -1
- package/dist/provider/working-hours-input/WorkingHoursInputDescription.d.ts.map +1 -1
- package/dist/provider/working-hours-input/index.d.ts +1 -1
- package/dist/provider/working-hours-input/index.d.ts.map +1 -1
- package/dist/radio-card/RadioCard.d.ts +13 -0
- package/dist/radio-card/RadioCard.d.ts.map +1 -0
- package/dist/radio-card/RadioCard.js +1 -0
- package/dist/radio-card/index.d.ts +2 -0
- package/dist/radio-card/index.d.ts.map +1 -0
- package/dist/recurrence-input/RecurrenceEndInput.d.ts +6 -0
- package/dist/recurrence-input/RecurrenceEndInput.d.ts.map +1 -1
- package/dist/recurrence-input/RecurrenceEndInput.js +1 -1
- package/dist/recurrence-input/RecurrenceInput.js +1 -1
- package/dist/recurrence-input/utils.d.ts +2 -2
- package/dist/recurrence-input/utils.d.ts.map +1 -1
- package/dist/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.d.ts +8 -1
- package/dist/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.d.ts.map +1 -1
- package/dist/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.js +1 -1
- package/dist/recurring-date-picker-input/RecurringDatePickerInput.d.ts +1 -0
- 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 +2 -2
- package/dist/recurring-date-picker-input/utils.d.ts.map +1 -1
- package/dist/report/form/ReportForm.d.ts.map +1 -1
- package/dist/resource/form/ResourceForm.d.ts +2 -2
- package/dist/resource/form/ResourceForm.d.ts.map +1 -1
- package/dist/resource/form/components/CapacityControl.d.ts +1 -1
- package/dist/resource/form/components/CapacityControl.d.ts.map +1 -1
- package/dist/resource/form/components/NameControl.d.ts +1 -1
- package/dist/resource/form/components/NameControl.d.ts.map +1 -1
- package/dist/resource/form/components/SortControl.d.ts +1 -1
- package/dist/resource/form/components/SortControl.d.ts.map +1 -1
- package/dist/resource/form/components/ZoneControl.d.ts +1 -1
- package/dist/resource/form/components/ZoneControl.d.ts.map +1 -1
- package/dist/sales/booking/index.d.ts +0 -2
- package/dist/sales/booking/index.d.ts.map +1 -1
- package/dist/sales/booking/results/BookingResults.d.ts +1 -1
- package/dist/sales/booking/results/BookingResults.d.ts.map +1 -1
- package/dist/sales/booking/results/components/ResultCard.d.ts +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/booking/results/constants.d.ts.map +1 -1
- package/dist/sales/booking/results/constants.js +1 -1
- package/dist/sales/booking/results/index.d.ts +1 -0
- package/dist/sales/booking/results/index.d.ts.map +1 -1
- package/dist/sales/filters/SaleFilters.d.ts +1 -1
- package/dist/sales/guest-profile/previous-bookings/PreviousBookings.d.ts +1 -1
- package/dist/sales/guest-profile/previous-bookings/PreviousBookings.d.ts.map +1 -1
- package/dist/sales/guest-profile/profile/Profile.d.ts +1 -1
- package/dist/sales/guest-profile/profile/Profile.d.ts.map +1 -1
- package/dist/sales/guest-profile/profile/components/ImageHolder/ImageHolder.d.ts +1 -1
- package/dist/sales/guest-profile/profile/components/ImageHolder/ImageHolder.d.ts.map +1 -1
- package/dist/sales/guest-profile/user-metrics/UserMetrics.d.ts +1 -1
- package/dist/sales/guest-profile/user-metrics/UserMetrics.d.ts.map +1 -1
- package/dist/sales/guest-profile/visited-providers/VisitedProviders.d.ts +1 -1
- package/dist/sales/guest-profile/visited-providers/VisitedProviders.d.ts.map +1 -1
- package/dist/sales/life-time-sales/LifeTimeSalesChart.d.ts +1 -1
- package/dist/sales/life-time-sales/LifeTimeSalesChart.d.ts.map +1 -1
- package/dist/sales/manual-booking/index.d.ts +1 -5
- package/dist/sales/manual-booking/index.d.ts.map +1 -1
- package/dist/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.d.ts +2 -1
- package/dist/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.d.ts.map +1 -1
- package/dist/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.js +1 -1
- package/dist/sales/manual-booking/search-user/SearchUser.js +1 -1
- package/dist/sales/manual-booking/select-date-type-control/SelectDateTypeControl.d.ts +3 -3
- package/dist/sales/manual-booking/select-date-type-control/SelectDateTypeControl.d.ts.map +1 -1
- package/dist/sales/manual-booking/select-date-type-control/SelectDateTypeControl.js +1 -1
- package/dist/sales/manual-booking/select-event/SelectEvent.d.ts +3 -3
- package/dist/sales/manual-booking/select-event/SelectEvent.d.ts.map +1 -1
- package/dist/sales/manual-booking/select-menu/SelectMenu.d.ts +6 -5
- package/dist/sales/manual-booking/select-menu/SelectMenu.d.ts.map +1 -1
- package/dist/sales/manual-booking/select-menu/SelectMenu.js +1 -1
- package/dist/sales/manual-booking/select-menu/components/MenuButton.d.ts +4 -4
- package/dist/sales/manual-booking/select-menu/components/MenuButton.d.ts.map +1 -1
- package/dist/sales/notes/NotesTable.d.ts +1 -1
- package/dist/sales/notes/NotesTable.d.ts.map +1 -1
- package/dist/sales/notes/NotesTableRow.d.ts +1 -1
- package/dist/sales/notes/NotesTableRow.d.ts.map +1 -1
- package/dist/sales/notes/note-form/NoteForm.d.ts +1 -1
- package/dist/sales/notes/note-form/NoteForm.d.ts.map +1 -1
- package/dist/sales/payment-form/SalePaymentForm.d.ts +2 -2
- package/dist/sales/payment-form/SalePaymentForm.d.ts.map +1 -1
- package/dist/sales/payment-form/components/RyftPayment/RyftPayment.d.ts +1 -1
- package/dist/sales/payment-form/components/RyftPayment/RyftPayment.d.ts.map +1 -1
- package/dist/sales/payment-form/types.d.ts +2 -2
- package/dist/sales/payment-form/types.d.ts.map +1 -1
- package/dist/sales/sales-and-views/SalesAndViewsChart.d.ts +1 -1
- package/dist/sales/sales-and-views/SalesAndViewsChart.d.ts.map +1 -1
- package/dist/setting/admin/AdminSettingForm.d.ts +1 -1
- package/dist/setting/admin/AdminSettingForm.d.ts.map +1 -1
- package/dist/setting/admin/PaymentFeeForm.d.ts +2 -2
- package/dist/setting/admin/PaymentFeeForm.d.ts.map +1 -1
- package/dist/setting/dashboard/DashboardSettingForm.d.ts +1 -1
- package/dist/setting/dashboard/DashboardSettingForm.d.ts.map +1 -1
- package/dist/setting/dashboard/EventSettingForm.d.ts +2 -2
- package/dist/setting/dashboard/EventSettingForm.d.ts.map +1 -1
- package/dist/setting/dashboard/FinancialDataForm.d.ts +2 -2
- package/dist/setting/dashboard/FinancialDataForm.d.ts.map +1 -1
- package/dist/setting/dashboard/OtherSettingForm.d.ts +2 -2
- package/dist/setting/dashboard/OtherSettingForm.d.ts.map +1 -1
- package/dist/setting/dashboard/ProviderSettingForm.d.ts +2 -2
- package/dist/setting/dashboard/ProviderSettingForm.d.ts.map +1 -1
- package/dist/setting/dashboard/index.d.ts +0 -2
- package/dist/setting/dashboard/index.d.ts.map +1 -1
- package/dist/setting/system/SystemSettingForm.d.ts +1 -1
- package/dist/setting/system/SystemSettingForm.d.ts.map +1 -1
- package/dist/snippet/snippet-template/context/snippetTemplate.d.ts +1 -1
- package/dist/snippet/snippet-template/context/snippetTemplate.d.ts.map +1 -1
- package/dist/snippet/snippet-template/form/SnippetTemplateForm.js +1 -1
- package/dist/snippet/snippet-template/preview/Preview.d.ts.map +1 -1
- package/dist/snippet/snippet-template/preview/Preview.js +1 -1
- package/dist/sortable-fields/SortableFieldItem.d.ts +9 -0
- package/dist/sortable-fields/SortableFieldItem.d.ts.map +1 -0
- package/dist/sortable-fields/SortableFieldItem.js +1 -0
- package/dist/sortable-fields/SortableFieldList.d.ts +18 -0
- package/dist/sortable-fields/SortableFieldList.d.ts.map +1 -0
- package/dist/sortable-fields/SortableFieldList.js +1 -0
- package/dist/sortable-fields/index.d.ts +2 -0
- package/dist/sortable-fields/index.d.ts.map +1 -0
- package/dist/sortable-list/SortableList.d.ts +4 -4
- package/dist/sortable-list/SortableList.d.ts.map +1 -1
- package/dist/sortable-tree/SortableTreeItem.d.ts +1 -1
- package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
- package/dist/sortable-tree/SortableTreeItem.js +1 -1
- package/dist/sorting-select/SortingSelect.d.ts +10 -0
- package/dist/sorting-select/SortingSelect.d.ts.map +1 -0
- package/dist/sorting-select/SortingSelect.js +1 -0
- package/dist/sorting-select/index.d.ts +2 -0
- package/dist/sorting-select/index.d.ts.map +1 -0
- package/dist/static/Icon.d.ts +1 -1
- package/dist/static/Icon.d.ts.map +1 -1
- package/dist/static/RestrictedAccess.d.ts.map +1 -1
- package/dist/static/date-range-input/DateRangeInput.d.ts +4 -4
- package/dist/static/date-range-input/DateRangeInput.d.ts.map +1 -1
- package/dist/static/date-range-input/DateRangeInput.js +1 -1
- package/dist/static/form-number-input/FormNumberInput.d.ts +2 -1
- package/dist/static/form-number-input/FormNumberInput.d.ts.map +1 -1
- package/dist/static/form-number-input/FormNumberInput.js +1 -1
- package/dist/static/images/DefaultUserImage.d.ts +1 -1
- package/dist/static/images/DefaultUserImage.d.ts.map +1 -1
- package/dist/static/loader/ButtonLoader.d.ts +1 -1
- package/dist/static/loader/ButtonLoader.d.ts.map +1 -1
- package/dist/static/loader/PaymentLoader.d.ts +1 -1
- package/dist/static/loader/PaymentLoader.d.ts.map +1 -1
- package/dist/static/manual-date-picker/ManualDatePicker.d.ts +1 -1
- package/dist/static/manual-date-picker/ManualDatePicker.d.ts.map +1 -1
- package/dist/static/manual-date-picker/hooks/useManualDatePicker.d.ts +2 -2
- package/dist/static/manual-date-picker/hooks/useManualDatePicker.d.ts.map +1 -1
- package/dist/static/tabs/Tab.d.ts +1 -1
- package/dist/static/tabs/Tab.d.ts.map +1 -1
- package/dist/static/tabs/Tabs.d.ts +1 -1
- package/dist/static/tabs/Tabs.d.ts.map +1 -1
- package/dist/striped-static-table/StripedStaticTable.d.ts +1 -1
- package/dist/striped-static-table/StripedStaticTable.d.ts.map +1 -1
- package/dist/styles/activity-card/GridActivitiesCard.scss +37 -0
- package/dist/styles/activity-card/ListActivitiesCard.scss +58 -0
- package/dist/styles/activity-card/_index.scss +2 -0
- package/dist/styles/availability-indicator/AvailabilityIndicator.scss +7 -0
- package/dist/styles/availability-indicator/_index.scss +1 -0
- package/dist/styles/back-button/BackButton.scss +33 -0
- package/dist/styles/back-button/_index.scss +1 -0
- package/dist/styles/date-time-button/DateTimeButton.scss +107 -0
- package/dist/styles/date-time-button/_index.scss +1 -0
- package/dist/styles/form/CustomCheckbox.scss +5 -0
- package/dist/styles/header/Header.scss +0 -4
- package/dist/styles/iframe-events/Calendar.scss +14 -14
- package/dist/styles/iframe-events/Card.scss +1 -0
- package/dist/styles/iframe-order-process/IframeOrderProcess.scss +8 -3
- package/dist/styles/iframe-page/PageBody.scss +5 -2
- package/dist/styles/{widgets/ImageRadioInput.scss → image-radio-input/_index.scss} +12 -0
- package/dist/styles/packages.scss +7 -1
- package/dist/styles/{widgets/WidgetTypeRadioButton.scss → radio-card/_index.scss} +8 -1
- package/dist/styles/resources-blocking/_index.scss +43 -1
- package/dist/styles/sales/BookingFilter.scss +2 -0
- package/dist/styles/sales/ManualBooking.scss +7 -1
- package/dist/styles/sales/RandomColors.scss +7 -4
- package/dist/styles/sortable-field/SortableField.scss +21 -0
- package/dist/styles/sortable-field/_index.scss +1 -0
- package/dist/styles/static/DateRangeInput.scss +5 -1
- package/dist/styles/themes/bookedit/_index.scss +1 -0
- package/dist/styles/themes/bookedit/_variables.scss +3 -2
- package/dist/styles/zones/ZoneForm.scss +0 -1
- package/dist/table/FilterHelperComponent.d.ts.map +1 -1
- package/dist/table/FilterHelperComponent.js +1 -1
- package/dist/table/MenuButton.d.ts +1 -1
- package/dist/table/MenuButton.d.ts.map +1 -1
- package/dist/table/ReactTableHelperComponent.d.ts +2 -2
- package/dist/table/ReactTableHelperComponent.d.ts.map +1 -1
- package/dist/table/types.d.ts +5 -5
- package/dist/table/types.d.ts.map +1 -1
- package/dist/tiptap-editor/TipTapMenu/extensions/EMOJIS.d.ts +1 -1
- package/dist/tiptap-editor/TipTapMenu/extensions/EMOJIS.d.ts.map +1 -1
- package/dist/typeahead/Typeahead.d.ts +1 -1
- package/dist/typeahead/Typeahead.d.ts.map +1 -1
- package/dist/typeahead-helper/TypeaheadHelperComponent.d.ts +1 -1
- package/dist/typeahead-helper/TypeaheadHelperComponent.d.ts.map +1 -1
- package/dist/types/categories.d.ts +2 -2
- package/dist/types/categories.d.ts.map +1 -1
- package/dist/types/currency.d.ts +1 -1
- package/dist/types/currency.d.ts.map +1 -1
- package/dist/types/generic/SelectItem.d.ts +1 -1
- package/dist/types/generic/SelectItem.d.ts.map +1 -1
- package/dist/types/iframe.d.ts +5 -3
- package/dist/types/iframe.d.ts.map +1 -1
- package/dist/types/provider-links.d.ts +2 -2
- package/dist/types/provider-links.d.ts.map +1 -1
- package/dist/venue-map-sets/form/components/NameControl.d.ts +1 -1
- package/dist/venue-map-sets/form/components/NameControl.d.ts.map +1 -1
- package/dist/venue-map-sets/form/components/VenueMapControl.d.ts +4 -4
- package/dist/venue-map-sets/form/components/VenueMapControl.d.ts.map +1 -1
- package/dist/venue-map-sets/form/components/VenueMapImageControl.d.ts +1 -1
- package/dist/venue-map-sets/form/components/VenueMapImageControl.d.ts.map +1 -1
- package/dist/venue-map-sets/form/components/VenueMapModal.d.ts +1 -1
- package/dist/venue-map-sets/form/components/VenueMapModal.d.ts.map +1 -1
- package/dist/venue-map-sets/form/components/VenueMapsControl.d.ts +1 -1
- package/dist/venue-map-sets/form/components/VenueMapsControl.d.ts.map +1 -1
- package/dist/venue-map-sets/form/types/index.d.ts +4 -4
- package/dist/venue-map-sets/form/types/index.d.ts.map +1 -1
- package/dist/virtualized/components/VirtualizedGrid.d.ts +1 -1
- package/dist/virtualized/components/VirtualizedGrid.d.ts.map +1 -1
- package/dist/virtualized/components/VirtualizedWindowScroller.d.ts +3 -3
- package/dist/virtualized/components/VirtualizedWindowScroller.d.ts.map +1 -1
- package/dist/virtualized/components/VirtualizedWindowScroller.js +1 -1
- package/dist/virtualized/context/VirtualizedContext.d.ts +2 -2
- package/dist/virtualized/context/VirtualizedContext.d.ts.map +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/components/AvailableTimesControl.d.ts +9 -2
- package/dist/zone/form/components/AvailableTimesControl.d.ts.map +1 -1
- package/dist/zone/form/components/AvailableTimesControl.js +1 -1
- package/dist/zone/form/components/DescriptionControl.d.ts +1 -1
- package/dist/zone/form/components/DescriptionControl.d.ts.map +1 -1
- package/dist/zone/form/components/GameDurationControl.d.ts +7 -0
- package/dist/zone/form/components/GameDurationControl.d.ts.map +1 -0
- package/dist/zone/form/components/GameDurationControl.js +1 -0
- package/dist/zone/form/components/NameControl.d.ts +1 -1
- package/dist/zone/form/components/NameControl.d.ts.map +1 -1
- package/dist/zone/form/components/SortControl.d.ts +1 -1
- package/dist/zone/form/components/SortControl.d.ts.map +1 -1
- package/dist/zone/form/components/ZoneControl.d.ts +1 -1
- 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/ZoneImageControl.d.ts +1 -1
- package/dist/zone/form/components/ZoneImageControl.d.ts.map +1 -1
- package/dist/zone/form/components/ZoneRecurrencesControl.d.ts +1 -1
- package/dist/zone/form/components/ZoneRecurrencesControl.d.ts.map +1 -1
- package/dist/zone/form/components/ZoneRecurrencesControl.js +1 -1
- package/dist/zone/form/components/ZoneTypeControl.d.ts +1 -1
- package/dist/zone/form/components/ZoneTypeControl.d.ts.map +1 -1
- package/dist/zone/form/utils/dates.d.ts.map +1 -1
- package/dist/zone/form/utils/dates.js +1 -1
- package/package.json +3 -2
- package/src/assets/iframe/available.svg +5 -0
- package/src/assets/iframe/backButton.svg +4 -0
- package/src/assets/iframe/limited.svg +5 -0
- package/src/assets/iframe/soldOut.svg +6 -0
- package/src/assets/logo/bookedit.svg +9 -11
- package/src/assets/logo/favicon.svg +12 -0
- package/src/assets/logo/licklist.svg +0 -2
- package/src/availability-indicator/AvailabilityIndicator.tsx +59 -0
- package/src/availability-indicator/index.ts +1 -0
- package/src/calendar/Calendar.stories.tsx +33 -0
- package/src/calendar/Calendar.tsx +46 -0
- package/src/{iframe/event/event-calendar → calendar}/components/CalendarButtons/CalendarButtons.tsx +31 -14
- package/src/{iframe/event/event-calendar → calendar}/components/CalendarDates/CalendarDates.tsx +25 -16
- package/src/{iframe/event/event-calendar → calendar}/components/CalendarSelect/CalendarSelect.tsx +1 -1
- package/src/calendar/index.ts +3 -0
- package/src/calendar/utils/index.ts +28 -0
- package/src/date-time-button/DateContent.tsx +46 -0
- package/src/date-time-button/DateTimeButton.stories.tsx +97 -0
- package/src/date-time-button/DateTimeButton.tsx +70 -0
- package/src/date-time-button/index.ts +1 -0
- package/src/events/event-venue-map/EventVenueMap.tsx +2 -2
- package/src/events/event-venue-map/components/MapPoint/MapPoint.tsx +1 -2
- package/src/events/event-venue-map/components/VenueMap/VenueMap.tsx +2 -2
- package/src/help/popover/HelpPopover.tsx +13 -5
- package/src/iframe/activity-card/ActivityCard.stories.tsx +75 -0
- package/src/iframe/activity-card/ActivityCard.tsx +77 -0
- package/src/iframe/activity-card/index.ts +1 -0
- package/src/iframe/back-button/BackButton.stories.tsx +16 -0
- package/src/iframe/back-button/BackButton.tsx +19 -0
- package/src/iframe/back-button/index.ts +1 -0
- package/src/iframe/event/event-card/IframeEventCard.stories.tsx +6 -14
- package/src/iframe/event/event-card/IframeEventCard.tsx +6 -10
- package/src/iframe/event/event-card/IframeEventCardSkeleton.tsx +20 -30
- package/src/iframe/event/event-card/IframeEventCards.stories.tsx +2 -3
- package/src/iframe/event/event-venue-map/IframeEventVenueMap.stories.tsx +1 -1
- package/src/iframe/event/index.ts +0 -6
- package/src/iframe/index.ts +5 -2
- package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +2 -0
- package/src/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.tsx +2 -2
- package/src/iframe/order-process/components/BookingSummary/types/index.ts +3 -2
- package/src/iframe/order-process/components/BookingSummary/utils/index.ts +2 -0
- package/src/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.tsx +11 -8
- package/src/iframe/order-process/components/CalendarStepsForm/components/Category.tsx +2 -2
- package/src/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.tsx +2 -2
- package/src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx +5 -19
- package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +4 -4
- package/src/iframe/order-process/components/{CalendarStepsForm/components → ErrorModal}/ErrorModal.tsx +13 -10
- package/src/iframe/order-process/components/ErrorModal/index.ts +1 -0
- package/src/iframe/order-process/components/NavigationSteps/NavigationSteps.tsx +8 -6
- package/src/iframe/order-process/components/NavigationSteps/index.ts +1 -1
- package/src/iframe/order-process/components/Timer/utils/index.ts +6 -9
- package/src/iframe/order-process/components/utils/useCategoryVerification.ts +82 -0
- package/src/iframe/order-process/index.ts +3 -2
- package/src/iframe/page/Page.stories.tsx +2 -2
- package/src/iframe/page/components/PageBody/PageBody.tsx +1 -1
- package/src/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.tsx +9 -4
- package/src/iframe/page/components/PageHeader/PageHeader.tsx +2 -13
- package/src/iframe/payment/order-items-table/hooks/useTableData.tsx +11 -99
- package/src/iframe/payment/order-items-table/types/index.ts +18 -1
- package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +118 -0
- package/src/iframe/payment/payment-page/PaymentPage.tsx +4 -5
- package/src/image-radio-input/ImageRadioInput.stories.tsx +67 -0
- package/src/image-radio-input/ImageRadioInput.tsx +53 -0
- package/src/index.ts +7 -0
- package/src/logo/Logo.tsx +1 -1
- package/src/product-set/control/DateAndRecurrenceInput.tsx +2 -2
- package/src/product-set/control/ProductSetControl.tsx +8 -12
- package/src/product-set/control/ProductSetRecurrenceControl.tsx +8 -4
- package/src/product-set/form/ProductCategoriesControl.tsx +3 -1
- package/src/product-set/form/ProductSetForm.stories.tsx +1 -0
- package/src/product-set/form/ProductsControl.tsx +10 -0
- package/src/product-set/hooks/{useSortableTreeFunctions.tsx → useSortableTreeFunctions.ts} +1 -3
- package/src/product-set/product/ProductControl.tsx +28 -1
- package/src/product-set/product/constants.ts +1 -1
- package/src/product-set/product/duration/ProductDurationControl.tsx +1 -1
- package/src/product-set/product/quantity/ProductQuantityRechargingControl.tsx +1 -13
- package/src/product-set/product-category/ProductCategoryControl.tsx +2 -8
- package/src/provider/location-input/LocationInputDescription.tsx +2 -2
- package/src/provider/working-hours-input/WorkingHoursInputDescription.tsx +9 -6
- package/src/radio-card/RadioCard.stories.tsx +48 -0
- package/src/radio-card/RadioCard.tsx +49 -0
- package/src/radio-card/index.ts +1 -0
- package/src/recurrence-input/RecurrenceEndInput.tsx +1 -1
- package/src/recurrence-input/RecurrenceInput.tsx +9 -2
- package/src/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.tsx +93 -24
- package/src/recurring-date-picker-input/RecurringDatePickerInput.tsx +10 -0
- package/src/report/form/ReportForm.tsx +1 -1
- package/src/sales/booking/index.ts +0 -2
- package/src/sales/booking/results/components/ResultCard.tsx +4 -3
- package/src/sales/booking/results/constants.ts +1 -0
- package/src/sales/booking/results/index.ts +1 -0
- package/src/sales/filters/SaleFilter.stories.tsx +1 -1
- package/src/sales/filters/SaleFilters.tsx +1 -1
- package/src/sales/manual-booking/index.ts +1 -5
- package/src/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.tsx +3 -1
- package/src/sales/manual-booking/select-date-type-control/SelectDateTypeControl.stories.tsx +1 -1
- package/src/sales/manual-booking/select-date-type-control/SelectDateTypeControl.tsx +5 -5
- package/src/sales/manual-booking/select-event/SelectEvent.tsx +3 -3
- package/src/sales/manual-booking/select-menu/SelectMenu.tsx +6 -4
- package/src/sales/manual-booking/select-menu/components/MenuButton.tsx +3 -3
- package/src/sales/notes/NotesTableRow.tsx +1 -1
- package/src/setting/dashboard/index.ts +0 -2
- package/src/snippet/snippet-template/form/SnippetTemplateForm.tsx +10 -10
- package/src/snippet/snippet-template/preview/Preview.tsx +18 -11
- package/src/sortable-fields/SortableFieldItem.tsx +60 -0
- package/src/sortable-fields/SortableFieldList.tsx +62 -0
- package/src/sortable-fields/index.ts +1 -0
- package/src/sortable-tree/SortableTreeItem.tsx +1 -1
- package/src/sorting-select/SortingSelect.stories.tsx +15 -0
- package/src/sorting-select/SortingSelect.tsx +79 -0
- package/src/sorting-select/index.ts +1 -0
- package/src/static/CountryCodeSelect.tsx +3 -3
- package/src/static/RestrictedAccess.tsx +1 -1
- package/src/static/date-range-input/DateRangeInput.tsx +6 -3
- package/src/static/form-number-input/FormNumberInput.tsx +8 -1
- package/src/styles/activity-card/GridActivitiesCard.scss +37 -0
- package/src/styles/activity-card/ListActivitiesCard.scss +58 -0
- package/src/styles/activity-card/_index.scss +2 -0
- package/src/styles/availability-indicator/AvailabilityIndicator.scss +7 -0
- package/src/styles/availability-indicator/_index.scss +1 -0
- package/src/styles/back-button/BackButton.scss +33 -0
- package/src/styles/back-button/_index.scss +1 -0
- package/src/styles/date-time-button/DateTimeButton.scss +107 -0
- package/src/styles/date-time-button/_index.scss +1 -0
- package/src/styles/form/CustomCheckbox.scss +5 -0
- package/src/styles/header/Header.scss +0 -4
- package/src/styles/iframe-events/Calendar.scss +14 -14
- package/src/styles/iframe-events/Card.scss +1 -0
- package/src/styles/iframe-order-process/IframeOrderProcess.scss +8 -3
- package/src/styles/iframe-page/PageBody.scss +5 -2
- package/src/styles/{widgets/ImageRadioInput.scss → image-radio-input/_index.scss} +12 -0
- package/src/styles/packages.scss +7 -1
- package/src/styles/{widgets/WidgetTypeRadioButton.scss → radio-card/_index.scss} +8 -1
- package/src/styles/resources-blocking/_index.scss +43 -1
- package/src/styles/sales/BookingFilter.scss +2 -0
- package/src/styles/sales/ManualBooking.scss +7 -1
- package/src/styles/sales/RandomColors.scss +7 -4
- package/src/styles/sortable-field/SortableField.scss +21 -0
- package/src/styles/sortable-field/_index.scss +1 -0
- package/src/styles/static/DateRangeInput.scss +5 -1
- package/src/styles/themes/bookedit/_index.scss +1 -0
- package/src/styles/themes/bookedit/_variables.scss +3 -2
- package/src/styles/zones/ZoneForm.scss +0 -1
- package/src/table/FilterHelperComponent.tsx +1 -0
- package/src/types/iframe.ts +5 -1
- package/src/typings.d.ts +11 -0
- package/src/virtualized/components/VirtualizedWindowScroller.tsx +2 -1
- package/src/zone/form/components/AvailableTimesControl.tsx +6 -1
- package/src/zone/form/components/GameDurationControl.tsx +46 -0
- package/src/zone/form/components/ZoneControl.tsx +2 -0
- package/src/zone/form/components/ZoneRecurrencesControl.tsx +36 -41
- package/src/zone/form/utils/dates.ts +29 -34
- package/tsconfig.json +2 -2
- package/dist/assets/dashboard/blockingClock.png +0 -0
- package/dist/assets/dashboard/bookingCalendar.svg +0 -67
- package/dist/assets/dashboard/bookingCalendar.svg.js +0 -1
- package/dist/assets/dashboard/bookingList.svg +0 -68
- package/dist/assets/dashboard/bookingList.svg.js +0 -1
- package/dist/assets/dashboard/bookingListSmall.svg +0 -6
- package/dist/assets/dashboard/bookingListSmall.svg.js +0 -1
- package/dist/assets/dashboard/fullscreen.svg +0 -3
- package/dist/assets/dashboard/fullscreen.svg.js +0 -1
- package/dist/assets/dashboard/minimize.svg +0 -3
- package/dist/assets/dashboard/minimize.svg.js +0 -1
- package/dist/assets/dashboard/refresh.svg +0 -4
- package/dist/assets/dashboard/refresh.svg.js +0 -1
- package/dist/assets/widgets/circlePlus.svg +0 -4
- package/dist/assets/widgets/inPage.svg +0 -10
- package/dist/assets/widgets/overlay.svg +0 -9
- package/dist/assets/widgets/sidebar.svg +0 -9
- package/dist/iframe/event/event-calendar/EventCalendar.d.ts +0 -5
- package/dist/iframe/event/event-calendar/EventCalendar.d.ts.map +0 -1
- package/dist/iframe/event/event-calendar/EventCalendar.js +0 -1
- package/dist/iframe/event/event-calendar/components/CalendarButtons/CalendarButtons.d.ts +0 -6
- package/dist/iframe/event/event-calendar/components/CalendarButtons/CalendarButtons.d.ts.map +0 -1
- package/dist/iframe/event/event-calendar/components/CalendarButtons/CalendarButtons.js +0 -1
- package/dist/iframe/event/event-calendar/components/CalendarButtons/index.d.ts.map +0 -1
- package/dist/iframe/event/event-calendar/components/CalendarDate/CalendarDate.d.ts +0 -11
- package/dist/iframe/event/event-calendar/components/CalendarDate/CalendarDate.d.ts.map +0 -1
- package/dist/iframe/event/event-calendar/components/CalendarDate/CalendarDate.js +0 -1
- package/dist/iframe/event/event-calendar/components/CalendarDate/index.d.ts +0 -3
- package/dist/iframe/event/event-calendar/components/CalendarDate/index.d.ts.map +0 -1
- package/dist/iframe/event/event-calendar/components/CalendarDates/CalendarDates.d.ts +0 -5
- package/dist/iframe/event/event-calendar/components/CalendarDates/CalendarDates.d.ts.map +0 -1
- package/dist/iframe/event/event-calendar/components/CalendarDates/CalendarDates.js +0 -1
- package/dist/iframe/event/event-calendar/components/CalendarDates/index.d.ts.map +0 -1
- package/dist/iframe/event/event-calendar/components/CalendarSelect/CalendarSelect.d.ts.map +0 -1
- package/dist/iframe/event/event-calendar/components/CalendarSelect/CalendarSelect.js +0 -1
- package/dist/iframe/event/event-calendar/components/CalendarSelect/index.d.ts.map +0 -1
- package/dist/iframe/event/event-calendar/components/CalendarWeekdays/CalendarWeekdays.d.ts.map +0 -1
- package/dist/iframe/event/event-calendar/components/CalendarWeekdays/index.d.ts.map +0 -1
- package/dist/iframe/event/event-calendar/index.d.ts +0 -4
- package/dist/iframe/event/event-calendar/index.d.ts.map +0 -1
- package/dist/iframe/event/event-calendar/types/index.d.ts +0 -6
- package/dist/iframe/event/event-calendar/types/index.d.ts.map +0 -1
- package/dist/iframe/event/event-calendar/utils/index.d.ts +0 -3
- package/dist/iframe/event/event-calendar/utils/index.d.ts.map +0 -1
- package/dist/iframe/event/event-calendar/utils/index.js +0 -1
- package/dist/iframe/order-process/components/CalendarStepsForm/components/ErrorModal.d.ts +0 -8
- package/dist/iframe/order-process/components/CalendarStepsForm/components/ErrorModal.d.ts.map +0 -1
- package/dist/iframe/order-process/components/CalendarStepsForm/components/ErrorModal.js +0 -1
- package/dist/iframe/order-process/components/Category/Category.d.ts +0 -13
- package/dist/iframe/order-process/components/Category/Category.d.ts.map +0 -1
- package/dist/iframe/order-process/components/Category/Category.js +0 -1
- package/dist/iframe/order-process/components/Category/index.d.ts +0 -2
- package/dist/iframe/order-process/components/Category/index.d.ts.map +0 -1
- package/dist/iframe/order-process/components/StepsForm/StepsForm.d.ts +0 -19
- package/dist/iframe/order-process/components/StepsForm/StepsForm.d.ts.map +0 -1
- package/dist/iframe/order-process/components/StepsForm/StepsForm.js +0 -1
- package/dist/iframe/order-process/components/StepsForm/index.d.ts +0 -2
- package/dist/iframe/order-process/components/StepsForm/index.d.ts.map +0 -1
- package/dist/iframe/order-process/components/utils/category.d.ts +0 -10
- package/dist/iframe/order-process/components/utils/category.d.ts.map +0 -1
- package/dist/iframe/order-process/components/utils/category.js +0 -1
- package/dist/provider/resources-blocking-modal/ResourcesBlockingModal.d.ts +0 -12
- package/dist/provider/resources-blocking-modal/ResourcesBlockingModal.d.ts.map +0 -1
- package/dist/provider/resources-blocking-modal/index.d.ts +0 -2
- package/dist/provider/resources-blocking-modal/index.d.ts.map +0 -1
- package/dist/sales/booking/filter/BookingFilter.d.ts +0 -12
- package/dist/sales/booking/filter/BookingFilter.d.ts.map +0 -1
- package/dist/sales/booking/filter/BookingFilter.js +0 -1
- package/dist/sales/booking/filter/components/AdditionalFIlterSection.d.ts +0 -10
- package/dist/sales/booking/filter/components/AdditionalFIlterSection.d.ts.map +0 -1
- package/dist/sales/booking/filter/components/AdditionalFIlterSection.js +0 -1
- package/dist/sales/booking/filter/components/MainFilterSection.d.ts +0 -5
- package/dist/sales/booking/filter/components/MainFilterSection.d.ts.map +0 -1
- package/dist/sales/booking/filter/components/MainFilterSection.js +0 -1
- package/dist/sales/booking/filter/components/ResultTagButton.d.ts +0 -8
- package/dist/sales/booking/filter/components/ResultTagButton.d.ts.map +0 -1
- package/dist/sales/booking/filter/components/ResultTagButton.js +0 -1
- package/dist/sales/booking/filter/components/SearchingForSection.d.ts +0 -3
- package/dist/sales/booking/filter/components/SearchingForSection.d.ts.map +0 -1
- package/dist/sales/booking/filter/components/SearchingForSection.js +0 -1
- package/dist/sales/booking/filter/index.d.ts +0 -3
- package/dist/sales/booking/filter/index.d.ts.map +0 -1
- package/dist/sales/booking/tabs/BookingTabs.d.ts +0 -11
- package/dist/sales/booking/tabs/BookingTabs.d.ts.map +0 -1
- package/dist/sales/booking/tabs/BookingTabs.js +0 -1
- package/dist/sales/booking/tabs/index.d.ts +0 -3
- package/dist/sales/booking/tabs/index.d.ts.map +0 -1
- package/dist/sales/manual-booking/category-product/CategoryProduct.d.ts +0 -16
- package/dist/sales/manual-booking/category-product/CategoryProduct.d.ts.map +0 -1
- package/dist/sales/manual-booking/category-product/CategoryProduct.js +0 -1
- package/dist/sales/manual-booking/category-product/index.d.ts +0 -2
- package/dist/sales/manual-booking/category-product/index.d.ts.map +0 -1
- package/dist/sales/manual-booking/category-products/CategoryProducts.d.ts +0 -17
- package/dist/sales/manual-booking/category-products/CategoryProducts.d.ts.map +0 -1
- package/dist/sales/manual-booking/category-products/CategoryProducts.js +0 -1
- package/dist/sales/manual-booking/category-products/index.d.ts +0 -2
- package/dist/sales/manual-booking/category-products/index.d.ts.map +0 -1
- package/dist/sales/manual-booking/controll/ManualBookingStepsControll.d.ts +0 -15
- package/dist/sales/manual-booking/controll/ManualBookingStepsControll.d.ts.map +0 -1
- package/dist/sales/manual-booking/controll/ManualBookingStepsControll.js +0 -1
- package/dist/sales/manual-booking/controll/index.d.ts +0 -2
- package/dist/sales/manual-booking/controll/index.d.ts.map +0 -1
- package/dist/sales/manual-booking/create-user/CreateUser.d.ts +0 -6
- package/dist/sales/manual-booking/create-user/CreateUser.d.ts.map +0 -1
- package/dist/sales/manual-booking/create-user/CreateUser.js +0 -1
- package/dist/sales/manual-booking/create-user/index.d.ts +0 -2
- package/dist/sales/manual-booking/create-user/index.d.ts.map +0 -1
- package/dist/sales/manual-booking/customer-info/CustomerInfo.d.ts +0 -7
- package/dist/sales/manual-booking/customer-info/CustomerInfo.d.ts.map +0 -1
- package/dist/sales/manual-booking/customer-info/CustomerInfo.js +0 -1
- package/dist/sales/manual-booking/customer-info/index.d.ts +0 -2
- package/dist/sales/manual-booking/customer-info/index.d.ts.map +0 -1
- package/dist/sales/manual-booking/final-step/FinalStep.d.ts +0 -7
- package/dist/sales/manual-booking/final-step/FinalStep.d.ts.map +0 -1
- package/dist/sales/manual-booking/final-step/FinalStep.js +0 -1
- package/dist/sales/manual-booking/final-step/index.d.ts +0 -2
- package/dist/sales/manual-booking/final-step/index.d.ts.map +0 -1
- package/dist/setting/dashboard/snippets/control/SnippetControl.d.ts +0 -9
- package/dist/setting/dashboard/snippets/control/SnippetControl.d.ts.map +0 -1
- package/dist/setting/dashboard/snippets/control/SnippetControl.js +0 -1
- package/dist/setting/dashboard/snippets/control/index.d.ts +0 -2
- package/dist/setting/dashboard/snippets/control/index.d.ts.map +0 -1
- package/dist/setting/dashboard/snippets/form/SnippetForm.d.ts +0 -33
- package/dist/setting/dashboard/snippets/form/SnippetForm.d.ts.map +0 -1
- package/dist/setting/dashboard/snippets/form/SnippetForm.js +0 -1
- package/dist/setting/dashboard/snippets/form/context.d.ts +0 -11
- package/dist/setting/dashboard/snippets/form/context.d.ts.map +0 -1
- package/dist/setting/dashboard/snippets/form/context.js +0 -1
- package/dist/setting/dashboard/snippets/form/index.d.ts +0 -2
- package/dist/setting/dashboard/snippets/form/index.d.ts.map +0 -1
- package/dist/setting/dashboard/snippets/modal/SnippetViewTypeModal.d.ts +0 -19
- package/dist/setting/dashboard/snippets/modal/SnippetViewTypeModal.d.ts.map +0 -1
- package/dist/setting/dashboard/snippets/modal/SnippetViewTypeModal.js +0 -1
- package/dist/setting/dashboard/snippets/modal/index.d.ts +0 -3
- package/dist/setting/dashboard/snippets/modal/index.d.ts.map +0 -1
- package/dist/styles/widgets/BookingStyleSelector.scss +0 -14
- package/dist/styles/widgets/CalendarStyleSelector.scss +0 -17
- package/dist/styles/widgets/CheckboxGroup.scss +0 -15
- package/dist/styles/widgets/ProductSetSelector.scss +0 -19
- package/dist/styles/widgets/SnippetCode.scss +0 -18
- package/dist/styles/widgets/WidgetBuilderForm.scss +0 -51
- package/dist/styles/widgets/WidgetTypeSelector.scss +0 -6
- package/dist/styles/widgets/_index.scss +0 -9
- package/dist/widgets/BookingStyleSelector/BookingStyleSelector.d.ts +0 -3
- package/dist/widgets/BookingStyleSelector/BookingStyleSelector.d.ts.map +0 -1
- package/dist/widgets/BookingStyleSelector/index.d.ts +0 -2
- package/dist/widgets/BookingStyleSelector/index.d.ts.map +0 -1
- package/dist/widgets/CalendarStyleSelector/CalendarStyleSelector.d.ts +0 -3
- package/dist/widgets/CalendarStyleSelector/CalendarStyleSelector.d.ts.map +0 -1
- package/dist/widgets/CalendarStyleSelector/index.d.ts +0 -2
- package/dist/widgets/CalendarStyleSelector/index.d.ts.map +0 -1
- package/dist/widgets/CheckboxGroup/CheckboxGroup.d.ts +0 -8
- package/dist/widgets/CheckboxGroup/CheckboxGroup.d.ts.map +0 -1
- package/dist/widgets/CheckboxGroup/index.d.ts +0 -2
- package/dist/widgets/CheckboxGroup/index.d.ts.map +0 -1
- package/dist/widgets/ImageRadioInput/ImageRadioInput.d.ts +0 -9
- package/dist/widgets/ImageRadioInput/ImageRadioInput.d.ts.map +0 -1
- package/dist/widgets/ImageRadioInput/index.d.ts.map +0 -1
- package/dist/widgets/ProductSetSelector/ProductSetSelector.d.ts +0 -3
- package/dist/widgets/ProductSetSelector/ProductSetSelector.d.ts.map +0 -1
- package/dist/widgets/ProductSetSelector/index.d.ts +0 -2
- package/dist/widgets/ProductSetSelector/index.d.ts.map +0 -1
- package/dist/widgets/SnippetCode/SnippetCode.d.ts +0 -6
- package/dist/widgets/SnippetCode/SnippetCode.d.ts.map +0 -1
- package/dist/widgets/SnippetCode/index.d.ts +0 -2
- package/dist/widgets/SnippetCode/index.d.ts.map +0 -1
- package/dist/widgets/WidgetBuilderForm/WidgetBuilderForm.d.ts +0 -12
- package/dist/widgets/WidgetBuilderForm/WidgetBuilderForm.d.ts.map +0 -1
- package/dist/widgets/WidgetTypeRadio/WidgetTypeRadio.d.ts +0 -7
- package/dist/widgets/WidgetTypeRadio/WidgetTypeRadio.d.ts.map +0 -1
- package/dist/widgets/WidgetTypeRadio/index.d.ts +0 -2
- package/dist/widgets/WidgetTypeRadio/index.d.ts.map +0 -1
- package/dist/widgets/WidgetTypeSelector/WidgetTypeSelector.d.ts +0 -3
- package/dist/widgets/WidgetTypeSelector/WidgetTypeSelector.d.ts.map +0 -1
- package/src/assets/dashboard/blockingClock.png +0 -0
- package/src/assets/dashboard/bookingCalendar.svg +0 -67
- package/src/assets/dashboard/bookingList.svg +0 -68
- package/src/assets/dashboard/bookingListSmall.svg +0 -6
- package/src/assets/dashboard/fullscreen.svg +0 -3
- package/src/assets/dashboard/minimize.svg +0 -3
- package/src/assets/dashboard/refresh.svg +0 -4
- package/src/assets/widgets/circlePlus.svg +0 -4
- package/src/assets/widgets/inPage.svg +0 -10
- package/src/assets/widgets/overlay.svg +0 -9
- package/src/assets/widgets/sidebar.svg +0 -9
- package/src/iframe/event/event-calendar/EventCalendar.stories.tsx +0 -37
- package/src/iframe/event/event-calendar/EventCalendar.tsx +0 -20
- package/src/iframe/event/event-calendar/components/CalendarDate/CalendarDate.tsx +0 -43
- package/src/iframe/event/event-calendar/components/CalendarDate/index.ts +0 -2
- package/src/iframe/event/event-calendar/index.ts +0 -6
- package/src/iframe/event/event-calendar/types/index.ts +0 -6
- package/src/iframe/event/event-calendar/utils/index.ts +0 -11
- package/src/iframe/order-process/OrderProcess.stories.tsx +0 -363
- package/src/iframe/order-process/components/Category/Category.stories.tsx +0 -118
- package/src/iframe/order-process/components/Category/Category.tsx +0 -51
- package/src/iframe/order-process/components/Category/index.ts +0 -1
- package/src/iframe/order-process/components/StepsForm/StepsForm.tsx +0 -176
- package/src/iframe/order-process/components/StepsForm/index.ts +0 -1
- package/src/iframe/order-process/components/utils/category.ts +0 -48
- package/src/provider/resources-blocking-modal/ResourcesBlockingModal.stories.tsx +0 -51
- package/src/provider/resources-blocking-modal/ResourcesBlockingModal.tsx +0 -134
- package/src/provider/resources-blocking-modal/index.ts +0 -1
- package/src/sales/booking/filter/BookingFilter.stories.tsx +0 -27
- package/src/sales/booking/filter/BookingFilter.tsx +0 -47
- package/src/sales/booking/filter/components/AdditionalFIlterSection.tsx +0 -95
- package/src/sales/booking/filter/components/MainFilterSection.tsx +0 -131
- package/src/sales/booking/filter/components/ResultTagButton.tsx +0 -33
- package/src/sales/booking/filter/components/SearchingForSection.tsx +0 -68
- package/src/sales/booking/filter/index.ts +0 -2
- package/src/sales/booking/tabs/BookingTabs.stories.tsx +0 -17
- package/src/sales/booking/tabs/BookingTabs.tsx +0 -88
- package/src/sales/booking/tabs/index.ts +0 -2
- package/src/sales/manual-booking/category-product/CategoryProduct.tsx +0 -285
- package/src/sales/manual-booking/category-product/index.ts +0 -1
- package/src/sales/manual-booking/category-products/CategoryProducts.tsx +0 -69
- package/src/sales/manual-booking/category-products/index.ts +0 -1
- package/src/sales/manual-booking/controll/ManualBookingStepsControll.tsx +0 -121
- package/src/sales/manual-booking/controll/index.ts +0 -1
- package/src/sales/manual-booking/create-user/CreateUser.stories.tsx +0 -27
- package/src/sales/manual-booking/create-user/CreateUser.tsx +0 -224
- package/src/sales/manual-booking/create-user/index.ts +0 -1
- package/src/sales/manual-booking/customer-info/CustomerInfo.tsx +0 -128
- package/src/sales/manual-booking/customer-info/index.ts +0 -1
- package/src/sales/manual-booking/final-step/FinalStep.tsx +0 -38
- package/src/sales/manual-booking/final-step/index.ts +0 -1
- package/src/setting/dashboard/snippets/control/SnippetControl.tsx +0 -237
- package/src/setting/dashboard/snippets/control/index.ts +0 -1
- package/src/setting/dashboard/snippets/form/SnippetForm.stories.tsx +0 -104
- package/src/setting/dashboard/snippets/form/SnippetForm.tsx +0 -94
- package/src/setting/dashboard/snippets/form/context.tsx +0 -18
- package/src/setting/dashboard/snippets/form/index.ts +0 -1
- package/src/setting/dashboard/snippets/modal/SnippetViewTypeModal.stories.tsx +0 -28
- package/src/setting/dashboard/snippets/modal/SnippetViewTypeModal.tsx +0 -104
- package/src/setting/dashboard/snippets/modal/index.ts +0 -2
- package/src/styles/widgets/BookingStyleSelector.scss +0 -14
- package/src/styles/widgets/CalendarStyleSelector.scss +0 -17
- package/src/styles/widgets/CheckboxGroup.scss +0 -15
- package/src/styles/widgets/ProductSetSelector.scss +0 -19
- package/src/styles/widgets/SnippetCode.scss +0 -18
- package/src/styles/widgets/WidgetBuilderForm.scss +0 -51
- package/src/styles/widgets/WidgetTypeSelector.scss +0 -6
- package/src/styles/widgets/_index.scss +0 -9
- package/src/widgets/BookingStyleSelector/BookingStyleSelector.stories.tsx +0 -12
- package/src/widgets/BookingStyleSelector/BookingStyleSelector.tsx +0 -34
- package/src/widgets/BookingStyleSelector/index.ts +0 -1
- package/src/widgets/CalendarStyleSelector/CalendarStyleSelector.stories.tsx +0 -12
- package/src/widgets/CalendarStyleSelector/CalendarStyleSelector.tsx +0 -29
- package/src/widgets/CalendarStyleSelector/index.ts +0 -1
- package/src/widgets/CheckboxGroup/CheckboxGroup.stories.tsx +0 -16
- package/src/widgets/CheckboxGroup/CheckboxGroup.tsx +0 -64
- package/src/widgets/CheckboxGroup/index.ts +0 -1
- package/src/widgets/ImageRadioInput/ImageRadioInput.stories.tsx +0 -18
- package/src/widgets/ImageRadioInput/ImageRadioInput.tsx +0 -29
- package/src/widgets/ProductSetSelector/ProductSetSelector.stories.tsx +0 -12
- package/src/widgets/ProductSetSelector/ProductSetSelector.tsx +0 -27
- package/src/widgets/ProductSetSelector/index.ts +0 -1
- package/src/widgets/SnippetCode/SnippetCode.stories.tsx +0 -17
- package/src/widgets/SnippetCode/SnippetCode.tsx +0 -27
- package/src/widgets/SnippetCode/index.ts +0 -1
- package/src/widgets/WidgetBuilderForm/WidgetBuilderForm.stories.tsx +0 -12
- package/src/widgets/WidgetBuilderForm/WidgetBuilderForm.tsx +0 -84
- package/src/widgets/WidgetTypeRadio/WidgetTypeRadio.stories.tsx +0 -17
- package/src/widgets/WidgetTypeRadio/WidgetTypeRadio.tsx +0 -43
- package/src/widgets/WidgetTypeRadio/index.ts +0 -1
- package/src/widgets/WidgetTypeSelector/WidgetTypeSelector.stories.tsx +0 -12
- package/src/widgets/WidgetTypeSelector/WidgetTypeSelector.tsx +0 -32
- package/tests/Snippets/Snippets.test.tsx +0 -77
- /package/dist/{iframe/event/event-calendar → calendar}/components/CalendarButtons/index.d.ts +0 -0
- /package/dist/{iframe/event/event-calendar → calendar}/components/CalendarDates/index.d.ts +0 -0
- /package/dist/{iframe/event/event-calendar → calendar}/components/CalendarSelect/index.d.ts +0 -0
- /package/dist/{iframe/event/event-calendar → calendar}/components/CalendarWeekdays/CalendarWeekdays.d.ts +0 -0
- /package/dist/{iframe/event/event-calendar → calendar}/components/CalendarWeekdays/CalendarWeekdays.js +0 -0
- /package/dist/{iframe/event/event-calendar → calendar}/components/CalendarWeekdays/index.d.ts +0 -0
- /package/dist/{widgets/ImageRadioInput → image-radio-input}/index.d.ts +0 -0
- /package/src/{iframe/event/event-calendar → calendar}/components/CalendarButtons/index.ts +0 -0
- /package/src/{iframe/event/event-calendar → calendar}/components/CalendarDates/index.ts +0 -0
- /package/src/{iframe/event/event-calendar → calendar}/components/CalendarSelect/index.ts +0 -0
- /package/src/{iframe/event/event-calendar → calendar}/components/CalendarWeekdays/CalendarWeekdays.tsx +0 -0
- /package/src/{iframe/event/event-calendar → calendar}/components/CalendarWeekdays/index.ts +0 -0
- /package/src/{widgets/ImageRadioInput → image-radio-input}/index.ts +0 -0
|
@@ -1,363 +0,0 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
useEffect,
|
|
3
|
-
useState,
|
|
4
|
-
useContext,
|
|
5
|
-
createContext,
|
|
6
|
-
useRef,
|
|
7
|
-
useMemo,
|
|
8
|
-
} from "react";
|
|
9
|
-
import { MemoryRouter, Route, useHistory } from "react-router-dom";
|
|
10
|
-
import { Meta } from "@storybook/react";
|
|
11
|
-
import { Timer } from "./components/Timer";
|
|
12
|
-
import { BookingSummary } from "./components/BookingSummary";
|
|
13
|
-
import { NavigationSteps } from "./components/NavigationSteps";
|
|
14
|
-
import { StepsForm } from "./components/StepsForm";
|
|
15
|
-
import { Page, PageBody, PageHeader } from "../page";
|
|
16
|
-
import { StepsFormRef } from "./components/StepsForm/StepsForm";
|
|
17
|
-
import { BookingSummaryFooter } from "./components/BookingSummaryFooter";
|
|
18
|
-
import { Order } from "../../types";
|
|
19
|
-
// eslint-disable-next-line max-len
|
|
20
|
-
import { RenderNumberOfPeopleInputComponent } from "../event/event-details/components/number-of-people-input/component/RenderNumberOfPeopleInputComponent";
|
|
21
|
-
|
|
22
|
-
const ROUTES = [
|
|
23
|
-
{ pathname: "/step1", key: "/step1", name: "Burger" },
|
|
24
|
-
{ pathname: "/step2", key: "/step2", name: "Cheese" },
|
|
25
|
-
];
|
|
26
|
-
|
|
27
|
-
const IMAGES = [
|
|
28
|
-
{
|
|
29
|
-
id: 1,
|
|
30
|
-
path: "test",
|
|
31
|
-
imageType: "image",
|
|
32
|
-
url: "https://fastly.picsum.photos/id/13/2500/1667.jpg?hmac=SoX9UoHhN8HyklRA4A3vcCWJMVtiBXUg0W4ljWTor7s",
|
|
33
|
-
},
|
|
34
|
-
];
|
|
35
|
-
|
|
36
|
-
const productCategories = [
|
|
37
|
-
{
|
|
38
|
-
id: 1,
|
|
39
|
-
name: "Early Bird General Admission",
|
|
40
|
-
allowDeposits: true,
|
|
41
|
-
minSubItems: 2,
|
|
42
|
-
products: [
|
|
43
|
-
{
|
|
44
|
-
id: 7,
|
|
45
|
-
name: "Beer",
|
|
46
|
-
description: `Ticket <em>is</em> valid for students and non students.
|
|
47
|
-
You do not need student ID for this event but do require regular age ID e.g. driving licence or passport.
|
|
48
|
-
Ticket valid for entry before 11.30pm for 12.30am showtime.`,
|
|
49
|
-
|
|
50
|
-
price: 5,
|
|
51
|
-
deposit: 3,
|
|
52
|
-
minSub: 10,
|
|
53
|
-
isRequired: true,
|
|
54
|
-
images: IMAGES,
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
id: 8,
|
|
58
|
-
name: "Wine",
|
|
59
|
-
description: `Ticket is valid for students and non students.
|
|
60
|
-
You do not need <strong>student ID</strong> for this event but do require regular age ID e.g. driving licence or passport.
|
|
61
|
-
Ticket valid for entry before 11.30pm for 12.30am showtime.`,
|
|
62
|
-
|
|
63
|
-
price: 1,
|
|
64
|
-
images: IMAGES,
|
|
65
|
-
},
|
|
66
|
-
],
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
id: 2,
|
|
70
|
-
name: "Nice",
|
|
71
|
-
maxSubItems: 1,
|
|
72
|
-
products: [
|
|
73
|
-
{
|
|
74
|
-
id: 3,
|
|
75
|
-
name: "Beer",
|
|
76
|
-
description: `Ticket is valid for students and non students.
|
|
77
|
-
You do not need student ID for this event but do require regular age ID e.g. driving licence or passport.
|
|
78
|
-
Ticket valid for entry before 11.30pm for 12.30am showtime.`,
|
|
79
|
-
|
|
80
|
-
price: 1,
|
|
81
|
-
images: IMAGES,
|
|
82
|
-
maxAmount: 1,
|
|
83
|
-
minAmount: 1,
|
|
84
|
-
isRequired: true,
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
id: 5,
|
|
88
|
-
name: "Wine",
|
|
89
|
-
description: `Ticket is valid for students and non students.
|
|
90
|
-
You do not need <strong>student ID</strong> for this event but do require regular age ID e.g. driving licence or passport.
|
|
91
|
-
Ticket valid for entry before 11.30pm for 12.30am showtime.`,
|
|
92
|
-
|
|
93
|
-
price: 1,
|
|
94
|
-
},
|
|
95
|
-
],
|
|
96
|
-
},
|
|
97
|
-
];
|
|
98
|
-
|
|
99
|
-
const productCategories2 = [
|
|
100
|
-
{
|
|
101
|
-
id: 3,
|
|
102
|
-
name: "fine",
|
|
103
|
-
products: [
|
|
104
|
-
{
|
|
105
|
-
id: 9,
|
|
106
|
-
name: "Beer",
|
|
107
|
-
description: `Ticket is valid for students and non students.
|
|
108
|
-
You do not need student ID for this event but do require regular age ID e.g. driving licence or passport.
|
|
109
|
-
Ticket valid for entry before 11.30pm for 12.30am showtime.`,
|
|
110
|
-
|
|
111
|
-
price: 1,
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
id: 10,
|
|
115
|
-
name: "Wine",
|
|
116
|
-
description: `Ticket is valid for students and non students.
|
|
117
|
-
You do not need student ID for this event but do require regular age ID e.g. driving licence or passport.
|
|
118
|
-
Ticket valid for entry before 11.30pm for 12.30am showtime.`,
|
|
119
|
-
|
|
120
|
-
price: 1,
|
|
121
|
-
},
|
|
122
|
-
],
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
id: 4,
|
|
126
|
-
name: "Twice",
|
|
127
|
-
products: [
|
|
128
|
-
{
|
|
129
|
-
id: 11,
|
|
130
|
-
name: "Beer",
|
|
131
|
-
description: `Ticket is valid for students and non students.
|
|
132
|
-
You do not need student ID for this event but do require regular age ID e.g. driving licence or passport.
|
|
133
|
-
Ticket valid for entry before 11.30pm for 12.30am showtime.`,
|
|
134
|
-
|
|
135
|
-
price: 1,
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
id: 12,
|
|
139
|
-
name: "Wine",
|
|
140
|
-
description: `Ticket is valid for students and non students.
|
|
141
|
-
You do not need student ID for this event but do require regular age ID e.g. driving licence or passport.
|
|
142
|
-
Ticket valid for entry before 11.30pm for 12.30am showtime.`,
|
|
143
|
-
|
|
144
|
-
price: 1,
|
|
145
|
-
},
|
|
146
|
-
],
|
|
147
|
-
},
|
|
148
|
-
];
|
|
149
|
-
|
|
150
|
-
const menuSteps = [
|
|
151
|
-
{
|
|
152
|
-
id: 1,
|
|
153
|
-
name: "Burger",
|
|
154
|
-
productCategories,
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
id: 2,
|
|
158
|
-
name: "Cheese",
|
|
159
|
-
productCategories: productCategories2,
|
|
160
|
-
},
|
|
161
|
-
];
|
|
162
|
-
|
|
163
|
-
const OrderProcessContext = createContext<{
|
|
164
|
-
orderFormValues: Record<string, any>;
|
|
165
|
-
setOrderFormValues: (values: Record<string, any>) => void;
|
|
166
|
-
formValues: Record<string, any>;
|
|
167
|
-
setFormValues: (values: Record<string, any>) => void;
|
|
168
|
-
}>({
|
|
169
|
-
orderFormValues: {},
|
|
170
|
-
setOrderFormValues: () => undefined,
|
|
171
|
-
formValues: {},
|
|
172
|
-
setFormValues: () => undefined,
|
|
173
|
-
});
|
|
174
|
-
|
|
175
|
-
const OrderProcessContextProvider: React.FC = ({ children }) => {
|
|
176
|
-
const [orderFormValues, setOrderFormValues] = useState<Record<string, any>>(
|
|
177
|
-
{}
|
|
178
|
-
);
|
|
179
|
-
const [formValues, setFormValues] = useState<Record<string, any>>({});
|
|
180
|
-
|
|
181
|
-
return (
|
|
182
|
-
<OrderProcessContext.Provider
|
|
183
|
-
value={{
|
|
184
|
-
orderFormValues,
|
|
185
|
-
setOrderFormValues,
|
|
186
|
-
formValues,
|
|
187
|
-
setFormValues,
|
|
188
|
-
}}
|
|
189
|
-
>
|
|
190
|
-
{children}
|
|
191
|
-
</OrderProcessContext.Provider>
|
|
192
|
-
);
|
|
193
|
-
};
|
|
194
|
-
|
|
195
|
-
export default {
|
|
196
|
-
title: "Iframe/Order-Process/OrderProcess",
|
|
197
|
-
component: Default,
|
|
198
|
-
} as Meta;
|
|
199
|
-
|
|
200
|
-
const TimerWrapper = () => {
|
|
201
|
-
const [timer, setTimer] = useState(120000);
|
|
202
|
-
const updateTimerState = () => {
|
|
203
|
-
setTimer((prevValue) => {
|
|
204
|
-
if (prevValue <= 0) {
|
|
205
|
-
return 0;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
const nexValue = prevValue - 1000;
|
|
209
|
-
|
|
210
|
-
return nexValue;
|
|
211
|
-
});
|
|
212
|
-
};
|
|
213
|
-
|
|
214
|
-
useEffect(() => {
|
|
215
|
-
setInterval(updateTimerState, 1000);
|
|
216
|
-
}, []);
|
|
217
|
-
|
|
218
|
-
return <Timer timer={timer} />;
|
|
219
|
-
};
|
|
220
|
-
|
|
221
|
-
export function Default() {
|
|
222
|
-
const externalHistory = useHistory();
|
|
223
|
-
const formRef = useRef<StepsFormRef | null>(null);
|
|
224
|
-
const [peopleAmount, setPeopleAmount] = useState(0);
|
|
225
|
-
const [peopleAmountError, setPeopleAmountError] = useState(false);
|
|
226
|
-
|
|
227
|
-
return (
|
|
228
|
-
<MemoryRouter initialEntries={ROUTES} initialIndex={0}>
|
|
229
|
-
<OrderProcessContextProvider>
|
|
230
|
-
{ROUTES.map(({ pathname }, index) => {
|
|
231
|
-
const step = menuSteps[index];
|
|
232
|
-
|
|
233
|
-
return (
|
|
234
|
-
<Route
|
|
235
|
-
path={pathname}
|
|
236
|
-
exact
|
|
237
|
-
key={pathname}
|
|
238
|
-
component={() => {
|
|
239
|
-
const history = useHistory();
|
|
240
|
-
const {
|
|
241
|
-
orderFormValues,
|
|
242
|
-
setOrderFormValues,
|
|
243
|
-
formValues,
|
|
244
|
-
setFormValues,
|
|
245
|
-
} = useContext(OrderProcessContext);
|
|
246
|
-
const relyOnPeopleCategoryIds = [4];
|
|
247
|
-
const onPrevStep = () => {
|
|
248
|
-
if (formRef.current?.getFormValues()) {
|
|
249
|
-
setFormValues(formRef.current?.getFormValues());
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
if (index === 0) {
|
|
253
|
-
// external History push
|
|
254
|
-
externalHistory.push("/");
|
|
255
|
-
return;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
history.push(ROUTES[index - 1].pathname);
|
|
259
|
-
};
|
|
260
|
-
|
|
261
|
-
const onNextStep = (values: Record<string, any>) => {
|
|
262
|
-
setOrderFormValues(values);
|
|
263
|
-
const nextRoute = ROUTES[index + 1];
|
|
264
|
-
if (nextRoute) {
|
|
265
|
-
history.push(ROUTES[index + 1].pathname);
|
|
266
|
-
}
|
|
267
|
-
};
|
|
268
|
-
|
|
269
|
-
const shouldShowPeopleInput = useMemo(() => {
|
|
270
|
-
const values = Object.values(formValues).filter(
|
|
271
|
-
Boolean
|
|
272
|
-
) as Order[];
|
|
273
|
-
const filteredValues = values.filter(
|
|
274
|
-
(product) =>
|
|
275
|
-
relyOnPeopleCategoryIds.includes(
|
|
276
|
-
product.productsCategoryId
|
|
277
|
-
) && product.quantity > 0
|
|
278
|
-
);
|
|
279
|
-
|
|
280
|
-
return Boolean(filteredValues.length);
|
|
281
|
-
}, [formValues, relyOnPeopleCategoryIds]);
|
|
282
|
-
const onChangePeopleAmount = (value: number) => {
|
|
283
|
-
if (!setPeopleAmount) {
|
|
284
|
-
return;
|
|
285
|
-
}
|
|
286
|
-
setPeopleAmount(value);
|
|
287
|
-
if (value > 0) {
|
|
288
|
-
if (peopleAmountError) {
|
|
289
|
-
setPeopleAmountError(false);
|
|
290
|
-
}
|
|
291
|
-
return;
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
setPeopleAmountError(true);
|
|
295
|
-
};
|
|
296
|
-
|
|
297
|
-
return (
|
|
298
|
-
<Page
|
|
299
|
-
headerBlock={
|
|
300
|
-
<PageHeader
|
|
301
|
-
showCloseButton
|
|
302
|
-
onCloseButtonClick={onPrevStep}
|
|
303
|
-
showBackButton
|
|
304
|
-
onBackButtonClick={onPrevStep}
|
|
305
|
-
>
|
|
306
|
-
<TimerWrapper />
|
|
307
|
-
<NavigationSteps steps={ROUTES} />
|
|
308
|
-
</PageHeader>
|
|
309
|
-
}
|
|
310
|
-
>
|
|
311
|
-
<PageBody
|
|
312
|
-
leftBlock={
|
|
313
|
-
<PageBody.LeftBlock title={step.name}>
|
|
314
|
-
<StepsForm
|
|
315
|
-
isLastMenuStep={!ROUTES[index + 1]}
|
|
316
|
-
step={step as any}
|
|
317
|
-
setFormValues={setFormValues}
|
|
318
|
-
defaultValues={orderFormValues}
|
|
319
|
-
onSubmit={onNextStep}
|
|
320
|
-
ref={formRef}
|
|
321
|
-
/>
|
|
322
|
-
</PageBody.LeftBlock>
|
|
323
|
-
}
|
|
324
|
-
rightBlock={
|
|
325
|
-
<PageBody.RightBlock
|
|
326
|
-
bottomBlock={
|
|
327
|
-
<BookingSummaryFooter>
|
|
328
|
-
{shouldShowPeopleInput && (
|
|
329
|
-
<RenderNumberOfPeopleInputComponent
|
|
330
|
-
peopleAmount={peopleAmount || 0}
|
|
331
|
-
onChangePeopleAmount={onChangePeopleAmount}
|
|
332
|
-
peopleAmountError={peopleAmountError}
|
|
333
|
-
/>
|
|
334
|
-
)}
|
|
335
|
-
<BookingSummary.SummaryTotal
|
|
336
|
-
formValues={formValues}
|
|
337
|
-
totalWithDiscount={5}
|
|
338
|
-
/>
|
|
339
|
-
</BookingSummaryFooter>
|
|
340
|
-
}
|
|
341
|
-
>
|
|
342
|
-
<BookingSummary
|
|
343
|
-
hasPeopleInput={shouldShowPeopleInput}
|
|
344
|
-
date="29 Sept 2022 at 09:00"
|
|
345
|
-
menuSteps={menuSteps as any}
|
|
346
|
-
formValues={formValues}
|
|
347
|
-
peopleAmount={peopleAmount}
|
|
348
|
-
totalWithDiscount={5}
|
|
349
|
-
eventName="Glam!"
|
|
350
|
-
/>
|
|
351
|
-
</PageBody.RightBlock>
|
|
352
|
-
}
|
|
353
|
-
/>
|
|
354
|
-
</Page>
|
|
355
|
-
);
|
|
356
|
-
}}
|
|
357
|
-
/>
|
|
358
|
-
);
|
|
359
|
-
})}
|
|
360
|
-
</OrderProcessContextProvider>
|
|
361
|
-
</MemoryRouter>
|
|
362
|
-
);
|
|
363
|
-
}
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Meta } from "@storybook/react";
|
|
3
|
-
import { useForm, FormProvider } from "react-hook-form";
|
|
4
|
-
import { Image } from "@licklist/core/dist/DataMapper/Media/ImageDataMapper";
|
|
5
|
-
import { Category } from "./Category";
|
|
6
|
-
|
|
7
|
-
export default {
|
|
8
|
-
title: "Iframe/Order-Process/Category",
|
|
9
|
-
component: Category,
|
|
10
|
-
} as Meta;
|
|
11
|
-
|
|
12
|
-
const IMAGES = [
|
|
13
|
-
{
|
|
14
|
-
id: 1,
|
|
15
|
-
path: "test",
|
|
16
|
-
imageType: "image",
|
|
17
|
-
url: "https://fastly.picsum.photos/id/13/2500/1667.jpg?hmac=SoX9UoHhN8HyklRA4A3vcCWJMVtiBXUg0W4ljWTor7s",
|
|
18
|
-
} as Image,
|
|
19
|
-
];
|
|
20
|
-
|
|
21
|
-
const productCategories = [
|
|
22
|
-
{
|
|
23
|
-
id: 1,
|
|
24
|
-
name: "Early Bird General Admission",
|
|
25
|
-
allowDeposits: true,
|
|
26
|
-
remainderExpireAfter: null,
|
|
27
|
-
products: [
|
|
28
|
-
{
|
|
29
|
-
id: 7,
|
|
30
|
-
name: "Beer",
|
|
31
|
-
description: `Ticket is valid for students and non students.You do not need student ID for this event but do require regular age ID.`,
|
|
32
|
-
minQuantity: 1,
|
|
33
|
-
maxQuantity: 10,
|
|
34
|
-
price: 7,
|
|
35
|
-
images: IMAGES,
|
|
36
|
-
isRequired: true,
|
|
37
|
-
deposit: 4,
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
id: 8,
|
|
41
|
-
name: "Wine",
|
|
42
|
-
description: `Ticket is valid for students and non students.
|
|
43
|
-
You do not need student ID for this event but do require regular age ID e.g. driving licence or passport.
|
|
44
|
-
Ticket valid for entry before 11.30pm for 12.30am showtime.Ticket is valid for students and non students.
|
|
45
|
-
You do not need student ID for this event but do require regular age ID e.g. driving licence or passport.
|
|
46
|
-
Ticket valid for entry before 11.30pm for 12.30am showtime.`,
|
|
47
|
-
minQuantity: 1,
|
|
48
|
-
maxQuantity: 10,
|
|
49
|
-
price: 1,
|
|
50
|
-
isSoldOut: true,
|
|
51
|
-
images: IMAGES,
|
|
52
|
-
},
|
|
53
|
-
],
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
id: 2,
|
|
57
|
-
name: "Nice",
|
|
58
|
-
products: [
|
|
59
|
-
{
|
|
60
|
-
id: 3,
|
|
61
|
-
name: "Beer",
|
|
62
|
-
description: `Ticket is valid for students and non students.
|
|
63
|
-
You do not need student ID for this event but do require regular age ID e.g. driving licence or passport.
|
|
64
|
-
Ticket valid for entry before 11.30pm for 12.30am showtime.`,
|
|
65
|
-
minQuantity: 1,
|
|
66
|
-
maxQuantity: 10,
|
|
67
|
-
price: 1,
|
|
68
|
-
images: [],
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
id: 5,
|
|
72
|
-
name: "Wine",
|
|
73
|
-
description: `Ticket is valid for students and non students.
|
|
74
|
-
You do not need student ID for this event but do require regular age ID e.g. driving licence or passport.
|
|
75
|
-
Ticket valid for entry before 11.30pm for 12.30am showtime.`,
|
|
76
|
-
minQuantity: 1,
|
|
77
|
-
maxQuantity: 10,
|
|
78
|
-
price: 1,
|
|
79
|
-
images: IMAGES,
|
|
80
|
-
},
|
|
81
|
-
],
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
id: 9,
|
|
85
|
-
name: "Super",
|
|
86
|
-
products: [
|
|
87
|
-
{
|
|
88
|
-
id: 10,
|
|
89
|
-
name: "Beer no description",
|
|
90
|
-
description: ``,
|
|
91
|
-
minQuantity: 1,
|
|
92
|
-
maxQuantity: 10,
|
|
93
|
-
price: 1,
|
|
94
|
-
images: IMAGES,
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
id: 11,
|
|
98
|
-
name: "Wine no description",
|
|
99
|
-
description: ``,
|
|
100
|
-
minQuantity: 1,
|
|
101
|
-
maxQuantity: 10,
|
|
102
|
-
price: 0,
|
|
103
|
-
images: IMAGES,
|
|
104
|
-
},
|
|
105
|
-
],
|
|
106
|
-
},
|
|
107
|
-
];
|
|
108
|
-
|
|
109
|
-
export function Default() {
|
|
110
|
-
const form = useForm();
|
|
111
|
-
return (
|
|
112
|
-
<FormProvider {...form}>
|
|
113
|
-
<div className="payment-process">
|
|
114
|
-
<Category productCategories={productCategories} />
|
|
115
|
-
</div>
|
|
116
|
-
</FormProvider>
|
|
117
|
-
);
|
|
118
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
import { DeepMap, FieldError } from "react-hook-form";
|
|
4
|
-
import { ProductCategory } from "../../../../types";
|
|
5
|
-
import { CategoryProduct } from "../CategoryProduct";
|
|
6
|
-
import { StepsFormProps } from "../StepsForm/StepsForm";
|
|
7
|
-
|
|
8
|
-
interface CategoryProps {
|
|
9
|
-
productCategories: ProductCategory[];
|
|
10
|
-
productsWithErrors?: StepsFormProps["productsWithErrors"];
|
|
11
|
-
soldOutProducts?: StepsFormProps["productsWithErrors"];
|
|
12
|
-
errors?: DeepMap<Record<string, any>, FieldError>;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export function Category({
|
|
16
|
-
productCategories,
|
|
17
|
-
productsWithErrors,
|
|
18
|
-
errors,
|
|
19
|
-
soldOutProducts,
|
|
20
|
-
}: CategoryProps) {
|
|
21
|
-
return (
|
|
22
|
-
<>
|
|
23
|
-
{productCategories.length !== 0 &&
|
|
24
|
-
productCategories.map((category) => {
|
|
25
|
-
const categoryError = errors?.[`category_${category.id}`];
|
|
26
|
-
return (
|
|
27
|
-
<div key={category.id} className="iframe-event__category">
|
|
28
|
-
<h4 className="iframe-event__name">{category.name}</h4>
|
|
29
|
-
{categoryError && (
|
|
30
|
-
<div className="iframe-event__message-error">
|
|
31
|
-
{categoryError?.message}
|
|
32
|
-
</div>
|
|
33
|
-
)}
|
|
34
|
-
|
|
35
|
-
{category.products.map((product) => {
|
|
36
|
-
return (
|
|
37
|
-
<CategoryProduct
|
|
38
|
-
key={product.id}
|
|
39
|
-
product={product}
|
|
40
|
-
category={category}
|
|
41
|
-
productsWithErrors={productsWithErrors}
|
|
42
|
-
soldOutProducts={soldOutProducts}
|
|
43
|
-
/>
|
|
44
|
-
);
|
|
45
|
-
})}
|
|
46
|
-
</div>
|
|
47
|
-
);
|
|
48
|
-
})}
|
|
49
|
-
</>
|
|
50
|
-
);
|
|
51
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Category } from "./Category";
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
useEffect,
|
|
3
|
-
forwardRef,
|
|
4
|
-
useImperativeHandle,
|
|
5
|
-
useState,
|
|
6
|
-
} from "react";
|
|
7
|
-
import { useWatch, useForm, FormProvider } from "react-hook-form";
|
|
8
|
-
import { isEqual } from "lodash";
|
|
9
|
-
import { Form } from "react-bootstrap";
|
|
10
|
-
import { useTranslation, Trans } from "react-i18next";
|
|
11
|
-
import { scrollToError } from "@licklist/plugins/dist/utils/ScrollUtils";
|
|
12
|
-
import { usePreviousValue } from "@licklist/plugins/dist/hooks/Value/usePreviousValue";
|
|
13
|
-
import {
|
|
14
|
-
getFirstErrorKey,
|
|
15
|
-
isFormValuesEmpty,
|
|
16
|
-
} from "@licklist/plugins/dist/utils/FormValues";
|
|
17
|
-
import { ProductQuantityCheckResponse } from "@licklist/plugins/dist/types/Api/verifyStock";
|
|
18
|
-
import { Category } from "../Category";
|
|
19
|
-
import { MenuStep } from "../../../../types";
|
|
20
|
-
import { STEP_FORM_ID } from "../../constants";
|
|
21
|
-
import { ErrorModal } from "../CalendarStepsForm/components/ErrorModal";
|
|
22
|
-
import { useCategory } from "../utils/category";
|
|
23
|
-
|
|
24
|
-
const NO_ORDER_ITEMS_ERROR = "NO_ORDER_ITEMS_ERROR";
|
|
25
|
-
|
|
26
|
-
export interface StepsFormProps {
|
|
27
|
-
step: MenuStep;
|
|
28
|
-
isLastMenuStep: boolean;
|
|
29
|
-
onSubmit: (values: Record<string, any>) => void;
|
|
30
|
-
setFormValues: (values: Record<string, any>) => void;
|
|
31
|
-
defaultValues: Record<string, any>;
|
|
32
|
-
setFormErrors?: (errors: Record<string, any>) => void;
|
|
33
|
-
id?: string;
|
|
34
|
-
productsWithErrors?: ProductQuantityCheckResponse["products"];
|
|
35
|
-
soldOutProducts?: ProductQuantityCheckResponse["products"];
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export type StepsFormRef = {
|
|
39
|
-
getFormValues: () => Record<string, any>;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
export const StepsForm = forwardRef<StepsFormRef, StepsFormProps>(
|
|
43
|
-
(
|
|
44
|
-
{
|
|
45
|
-
step,
|
|
46
|
-
isLastMenuStep,
|
|
47
|
-
setFormValues,
|
|
48
|
-
defaultValues,
|
|
49
|
-
onSubmit,
|
|
50
|
-
setFormErrors,
|
|
51
|
-
id = STEP_FORM_ID,
|
|
52
|
-
productsWithErrors,
|
|
53
|
-
soldOutProducts,
|
|
54
|
-
},
|
|
55
|
-
ref
|
|
56
|
-
) => {
|
|
57
|
-
const form = useForm({ defaultValues });
|
|
58
|
-
const { t } = useTranslation(["Design", "Validation"]);
|
|
59
|
-
const [formStepError, setStepFormError] = useState("");
|
|
60
|
-
|
|
61
|
-
const { verifyCategoryItems } = useCategory();
|
|
62
|
-
const {
|
|
63
|
-
control,
|
|
64
|
-
formState: { errors },
|
|
65
|
-
getValues,
|
|
66
|
-
setError,
|
|
67
|
-
clearErrors,
|
|
68
|
-
reset,
|
|
69
|
-
} = form;
|
|
70
|
-
const formValues = useWatch({ control });
|
|
71
|
-
const prevErrors = usePreviousValue(errors);
|
|
72
|
-
|
|
73
|
-
useImperativeHandle(ref, () => {
|
|
74
|
-
return {
|
|
75
|
-
getFormValues: () => getValues(),
|
|
76
|
-
};
|
|
77
|
-
});
|
|
78
|
-
|
|
79
|
-
useEffect(() => {
|
|
80
|
-
if (!productsWithErrors) {
|
|
81
|
-
return;
|
|
82
|
-
}
|
|
83
|
-
setStepFormError(t("soldOutProduct"));
|
|
84
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
85
|
-
}, [productsWithErrors]);
|
|
86
|
-
|
|
87
|
-
const submitCurrentForm = (values: Record<string, any>) => {
|
|
88
|
-
if (isLastMenuStep && isFormValuesEmpty(values)) {
|
|
89
|
-
setError(NO_ORDER_ITEMS_ERROR, {});
|
|
90
|
-
scrollToError(NO_ORDER_ITEMS_ERROR);
|
|
91
|
-
return;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// @TODO it's temporary solution, please remove it later
|
|
95
|
-
const categoryError = verifyCategoryItems(values, step);
|
|
96
|
-
|
|
97
|
-
if (categoryError) {
|
|
98
|
-
setStepFormError(categoryError.message);
|
|
99
|
-
setError(`category_${categoryError.id}`, {
|
|
100
|
-
message: categoryError.message,
|
|
101
|
-
});
|
|
102
|
-
return;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
onSubmit(values);
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
const onErrorSubmit = (submitErrors) => {
|
|
109
|
-
scrollToError(getFirstErrorKey(submitErrors));
|
|
110
|
-
setStepFormError(t("pleaseCheckSelectedProducts"));
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
useEffect(() => {
|
|
114
|
-
if (errors) {
|
|
115
|
-
setTimeout(clearErrors, 0);
|
|
116
|
-
}
|
|
117
|
-
setFormValues(formValues);
|
|
118
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
119
|
-
}, [formValues]);
|
|
120
|
-
|
|
121
|
-
useEffect(() => {
|
|
122
|
-
if (isFormValuesEmpty(formValues)) return;
|
|
123
|
-
|
|
124
|
-
clearErrors(NO_ORDER_ITEMS_ERROR);
|
|
125
|
-
}, [formValues, clearErrors]);
|
|
126
|
-
|
|
127
|
-
useEffect(() => {
|
|
128
|
-
reset(defaultValues);
|
|
129
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
130
|
-
}, [defaultValues]);
|
|
131
|
-
|
|
132
|
-
useEffect(() => {
|
|
133
|
-
if (isEqual(errors, prevErrors) || !setFormErrors) return;
|
|
134
|
-
|
|
135
|
-
setFormErrors(errors);
|
|
136
|
-
}, [errors, prevErrors, setFormErrors]);
|
|
137
|
-
|
|
138
|
-
return (
|
|
139
|
-
<Form
|
|
140
|
-
onSubmit={form.handleSubmit(submitCurrentForm, onErrorSubmit)}
|
|
141
|
-
id={id}
|
|
142
|
-
>
|
|
143
|
-
<FormProvider {...form}>
|
|
144
|
-
<ErrorModal
|
|
145
|
-
isOpen={Boolean(formStepError)}
|
|
146
|
-
messageKey={formStepError}
|
|
147
|
-
onClose={() => setStepFormError("")}
|
|
148
|
-
/>
|
|
149
|
-
<div>
|
|
150
|
-
<div className="iframe-event">
|
|
151
|
-
<Category
|
|
152
|
-
productCategories={step?.productCategories}
|
|
153
|
-
productsWithErrors={productsWithErrors}
|
|
154
|
-
errors={errors}
|
|
155
|
-
soldOutProducts={soldOutProducts}
|
|
156
|
-
/>
|
|
157
|
-
|
|
158
|
-
{errors[NO_ORDER_ITEMS_ERROR] && (
|
|
159
|
-
<div
|
|
160
|
-
className="d-flex m-5 justify-content-center form-error"
|
|
161
|
-
id={NO_ORDER_ITEMS_ERROR}
|
|
162
|
-
>
|
|
163
|
-
<Trans
|
|
164
|
-
t={t}
|
|
165
|
-
i18nKey="pleaseSelectAtLeastFrom"
|
|
166
|
-
values={{ min: 1, type: "item", from: "those categories" }}
|
|
167
|
-
/>
|
|
168
|
-
</div>
|
|
169
|
-
)}
|
|
170
|
-
</div>
|
|
171
|
-
</div>
|
|
172
|
-
</FormProvider>
|
|
173
|
-
</Form>
|
|
174
|
-
);
|
|
175
|
-
}
|
|
176
|
-
);
|