@licklist/design 0.68.7-dev.1 → 0.68.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/affiliate/form/AffiliateForm.d.ts.map +1 -1
- package/dist/assets/iframe/selectArrow.svg.js +17 -0
- package/dist/auth/Layout/UserNavDropDownToggle.js +1 -1
- package/dist/auth/Login/LoginComponent.js +1 -2
- package/dist/calendar/components/CalendarButtons/CalendarButtons.d.ts.map +1 -1
- package/dist/calendar/components/CalendarButtons/CalendarButtons.js +40 -35
- package/dist/events/edit-event-modal/IntervalInput.js +1 -1
- package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.d.ts.map +1 -1
- package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.js +25 -26
- package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +1 -1
- package/dist/events/edit-event-modal/utils/getDefaultProductSet.d.ts.map +1 -1
- package/dist/events/edit-event-modal/utils/getDefaultProductSet.js +2 -3
- package/dist/iframe/activity-card/ActivityCard.d.ts +4 -5
- package/dist/iframe/activity-card/ActivityCard.d.ts.map +1 -1
- package/dist/iframe/activity-card/ActivityCard.js +40 -52
- package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js +0 -13
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.js +0 -2
- package/dist/iframe/order-process/components/Timer/Timer.js +1 -1
- package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/layout/DropDown.d.ts +1 -2
- package/dist/layout/DropDown.d.ts.map +1 -1
- package/dist/modals/confirmation/ConfirmModal.d.ts +1 -3
- package/dist/modals/confirmation/ConfirmModal.d.ts.map +1 -1
- package/dist/modals/confirmation/ConfirmModal.js +8 -172
- package/dist/modals/dialog/Dialog.js +2 -2
- package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
- package/dist/notification/email-template/control/EmailTemplateControl.js +0 -3
- package/dist/product-set/card/ProductSetCard.d.ts +2 -6
- package/dist/product-set/card/ProductSetCard.d.ts.map +1 -1
- package/dist/product-set/card/ProductSetCard.js +11 -30
- package/dist/product-set/control/DateInput.d.ts.map +1 -1
- package/dist/product-set/control/DateInput.js +2 -2
- package/dist/product-set/control/ProductSetControl.d.ts +0 -4
- package/dist/product-set/control/ProductSetControl.d.ts.map +1 -1
- package/dist/product-set/control/ProductSetControl.js +3 -23
- package/dist/product-set/form/MobileFooter.d.ts.map +1 -1
- package/dist/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductCategoriesControl.js +2 -48
- package/dist/product-set/form/ProductSetForm.d.ts +1 -4
- package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
- package/dist/product-set/form/ProductSetForm.js +1 -64
- package/dist/product-set/form/ProductZonesControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductZonesControl.js +2 -0
- package/dist/product-set/form/SelectCategoryModal.d.ts +0 -12
- package/dist/product-set/form/SelectCategoryModal.d.ts.map +1 -1
- package/dist/product-set/form/SelectCategoryModal.js +1 -1
- package/dist/product-set/form/SubProductsControl.d.ts.map +1 -1
- package/dist/product-set/form/SubProductsControl.js +3 -0
- package/dist/product-set/form/VenueMapsControl.d.ts.map +1 -1
- package/dist/product-set/form/VenueMapsControl.js +3 -0
- package/dist/product-set/form/index.d.ts +0 -1
- package/dist/product-set/form/index.d.ts.map +1 -1
- package/dist/product-set/product/ProductControl.d.ts.map +1 -1
- package/dist/product-set/product/booking-management/ProductBookingManagementControl.d.ts.map +1 -1
- package/dist/product-set/product/booking-management/ProductBookingManagementControl.js +0 -6
- package/dist/product-set/product/deposit/ProductDepositControl.d.ts.map +1 -1
- package/dist/product-set/product/deposit/ProductDepositControl.js +0 -3
- package/dist/product-set/product/duration/ProductDurationControl.d.ts.map +1 -1
- package/dist/product-set/product/duration/ProductDurationControl.js +0 -6
- package/dist/product-set/product/price/ProductPriceControl.d.ts.map +1 -1
- package/dist/product-set/product/price/ProductPriceControl.js +0 -3
- package/dist/product-set/product/quantity/ProductQuantityConstantControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityConstantControl.js +0 -6
- package/dist/product-set/product/quantity/ProductQuantityControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityControl.js +0 -6
- package/dist/product-set/product/quantity/ProductQuantityRechargingControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityRechargingControl.js +1 -4
- package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
- package/dist/product-set/product-category/ProductCategoryControl.js +0 -12
- package/dist/product-set/utils/index.d.ts +0 -7
- package/dist/product-set/utils/index.d.ts.map +1 -1
- package/dist/product-set/utils/index.js +1 -10
- package/dist/recurrence-input/RecurrenceEndInput.d.ts.map +1 -1
- package/dist/recurrence-input/RecurrenceEndInput.js +0 -3
- package/dist/recurring-date-picker-input/RecurrenceEndInput.d.ts.map +1 -1
- package/dist/recurring-date-picker-input/utils.js +4 -6
- package/dist/resource/form/components/CapacityControl.d.ts.map +1 -1
- package/dist/resource/form/components/CapacityControl.js +0 -3
- package/dist/resource/form/components/SortControl.d.ts.map +1 -1
- package/dist/resource/form/components/SortControl.js +0 -3
- package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
- package/dist/sales/booking/results/components/ResultCard.js +2 -0
- package/dist/sales/coupon/control/CouponFormControl.d.ts.map +1 -1
- package/dist/sales/coupon/control/CouponFormControl.js +0 -21
- package/dist/sales/manual-booking/search-user/SearchUser.js +1 -1
- package/dist/setting/admin/PaymentFeeForm.d.ts.map +1 -1
- package/dist/setting/admin/PaymentFeeForm.js +1 -16
- package/dist/setting/dashboard/DashboardSettingForm.d.ts.map +1 -1
- package/dist/setting/dashboard/DashboardSettingForm.js +1 -4
- package/dist/snippet/snippet-template/preview/Preview.d.ts.map +1 -1
- package/dist/snippet/snippet-template/preview/Preview.js +0 -6
- package/dist/sortable-tree/SortableTreeItem.d.ts +1 -2
- package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
- package/dist/sortable-tree/SortableTreeItem.js +4 -10
- package/dist/static/CurrencyNumberInput.d.ts.map +1 -1
- package/dist/static/CurrencyNumberInput.js +0 -3
- package/dist/static/form-number-input/FormNumberInput.d.ts.map +1 -1
- package/dist/static/form-number-input/FormNumberInput.js +0 -3
- package/dist/static/number-input/NumberInput.d.ts.map +1 -1
- package/dist/static/number-input/NumberInput.js +0 -3
- package/{src/styles/activity-card/ActivitiesCard.scss → dist/styles/activity-card/GridActivitiesCard.scss} +5 -19
- package/dist/styles/activity-card/ListActivitiesCard.scss +42 -12
- package/dist/styles/activity-card/_index.scss +1 -1
- package/dist/styles/iframe-events/Calendar.scss +1 -0
- package/dist/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
- package/dist/styles/product-set/ProductSetForm.scss +0 -22
- package/dist/styles/sales/BookingResults.scss +1 -1
- package/dist/tiptap-editor/TipTapMenu/extensions/constants.d.ts.map +1 -1
- package/dist/tiptap-editor/TipTapMenu/extensions/constants.js +1 -1
- package/dist/tiptap-editor/TipTapMenu/extensions/utils.js +1 -1
- package/dist/typeahead/Typeahead.d.ts +1 -5
- package/dist/typeahead/Typeahead.d.ts.map +1 -1
- package/dist/typeahead/Typeahead.js +2 -9
- package/dist/zone/form/components/GameDurationControl.d.ts.map +1 -1
- package/dist/zone/form/components/GameDurationControl.js +0 -3
- package/dist/zone/form/components/SortControl.d.ts.map +1 -1
- package/dist/zone/form/components/SortControl.js +0 -3
- package/package.json +6 -16
- package/rollup.config.js +0 -1
- package/src/affiliate/card/AffiliateCard.tsx +15 -15
- package/src/affiliate/form/AffiliateControl.tsx +8 -8
- package/src/affiliate/form/AffiliateForm.tsx +5 -6
- package/src/auth/AccessDenied/AccessDenied.tsx +8 -8
- package/src/auth/ChangePassword/ChangePasswordComponent.tsx +4 -4
- package/src/auth/ChangePassword/ChangePasswordFormComponent.tsx +14 -14
- package/src/auth/Layout/AuthNavComponent.tsx +6 -6
- package/src/auth/Layout/UserNavComponent.tsx +2 -2
- package/src/auth/Layout/UserNavDropDown.tsx +1 -1
- package/src/auth/Layout/UserNavDropDownToggle.tsx +3 -3
- package/src/auth/Login/LoginComponent.tsx +9 -9
- package/src/auth/Login/LoginFormComponent.tsx +15 -15
- package/src/auth/Logout/Logout.stories.tsx +2 -2
- package/src/auth/Register/BirthDateFormComponent.tsx +17 -17
- package/src/auth/Register/RegisterComponent.tsx +7 -7
- package/src/auth/Register/RegisterFormComponent.tsx +56 -56
- package/src/auth/ResetPassword/ResetPasswordComponent.tsx +3 -3
- package/src/auth/ResetPassword/ResetPasswordFormComponent.tsx +13 -13
- package/src/auth/Social/SocialCallbackComponent.tsx +3 -3
- package/src/auth/Social/SocialFormComponent.tsx +4 -4
- package/src/availability-indicator/AvailabilityIndicator.tsx +1 -1
- package/src/calendar/Calendar.tsx +2 -2
- package/src/calendar/components/CalendarButtons/CalendarButtons.tsx +37 -38
- package/src/calendar/components/CalendarDates/CalendarDates.tsx +2 -2
- package/src/calendar/components/CalendarSelect/CalendarSelect.tsx +2 -2
- package/src/calendar/components/CalendarWeekdays/CalendarWeekdays.tsx +2 -2
- package/src/collapsible-input-group/CollapsibleInputGroup.tsx +6 -6
- package/src/custom-fields/CustomFields.stories.tsx +1 -1
- package/src/custom-fields/field/FieldItem.tsx +1 -1
- package/src/custom-fields/field/SelectFieldModal.tsx +4 -4
- package/src/custom-fields/field-set/components/CustomFieldSet/CustomFieldSet.tsx +8 -8
- package/src/custom-fields/forms/DropdownForm.tsx +16 -16
- package/src/custom-fields/forms/TextInputForm.tsx +6 -6
- package/src/customers/components/filter/CustomerFilter.tsx +3 -3
- package/src/date-time-button/DateContent.tsx +1 -1
- package/src/date-time-button/DateTimeButton.tsx +2 -2
- package/src/error/ErrorFallback.tsx +1 -1
- package/src/events/edit-event-modal/IntervalInput.tsx +15 -15
- package/src/events/edit-event-modal/component/EditEventForm/EditEventForm.stories.tsx +2 -2
- package/src/events/edit-event-modal/component/EditEventForm/EditEventForm.tsx +24 -24
- package/src/events/edit-event-modal/component/ProductSetShortForm/ProductSetShortForm.tsx +3 -3
- package/src/events/edit-event-modal/component/SaleDeadline/SaleDeadline.tsx +11 -11
- package/src/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.tsx +88 -85
- package/src/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.tsx +5 -5
- package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +1 -2
- package/src/events/edit-recurrent-event-modal/EditRecurrentEventModal.stories.tsx +1 -1
- package/src/events/edit-recurrent-event-modal/EditRecurrentEventModal.tsx +16 -16
- package/src/events/event-card/EventCard.stories.tsx +5 -5
- package/src/events/event-card/EventCard.tsx +30 -30
- package/src/events/event-card/EventCardSkeleton.tsx +10 -10
- package/src/events/event-statistic-modal/EventStatisticModal.stories.tsx +1 -1
- package/src/events/event-statistic-modal/EventStatisticModal.tsx +8 -8
- package/src/events/event-venue-map/components/Dropdown/Dropdown.tsx +1 -1
- package/src/events/event-venue-map/components/Dropdown/components/DropdownWrapper/DropdownWrapper.tsx +3 -3
- package/src/events/event-venue-map/components/Dropdown/components/ProductsControl/ProductsControl.tsx +5 -5
- package/src/events/event-venue-map/components/Dropdown/components/SelectControl/SelectControl.tsx +10 -10
- package/src/events/event-venue-map/components/MapPoint/components/DeleteIcon/DeleteIcon.tsx +1 -1
- package/src/events/event-venue-map/components/MapPoint/components/EditIcon/EditIcon.tsx +1 -1
- package/src/events/event-venue-map/components/MapPoint/components/PointIcon/PointIcon.tsx +2 -2
- package/src/events/event-venue-map/components/MapPoint/components/ProductIcon/ProductIcon.tsx +1 -1
- package/src/events/event-venue-map/components/Scrollbars/Scrollbars.tsx +5 -5
- package/src/events/event-venue-map/components/VenueMap/VenueMap.tsx +3 -3
- package/src/events/event-venue-map/components/ZoomButtons/ZoomButtons.tsx +4 -4
- package/src/file-upload/FilePreview.tsx +8 -8
- package/src/file-upload/FileUpload.tsx +8 -8
- package/src/header/BookeditHeader.tsx +1 -1
- package/src/header/Header.stories.tsx +16 -16
- package/src/header/Header.tsx +11 -11
- package/src/header/LicklistHeader.tsx +1 -1
- package/src/header/elements/CompanySelector.tsx +6 -6
- package/src/help/example/Example.tsx +12 -12
- package/src/help/popover/HelpPopover.tsx +5 -5
- package/src/iframe/activity-card/ActivityCard.tsx +27 -38
- package/src/iframe/back-button/BackButton.tsx +3 -3
- package/src/iframe/custom-fields/components/CustomDateField.stories.tsx +1 -1
- package/src/iframe/custom-fields/components/CustomDateField.tsx +7 -7
- package/src/iframe/event/event-booking-form/EventBookingForm.tsx +14 -14
- package/src/iframe/event/event-booking-products/EventBookingProducts.tsx +3 -3
- package/src/iframe/event/event-booking-products/components/AccordionItem/AccordionItem.tsx +10 -10
- package/src/iframe/event/event-booking-view/EventBookingView.tsx +1 -1
- package/src/iframe/event/event-card/IframeEventCard.stories.tsx +6 -6
- package/src/iframe/event/event-card/IframeEventCardSkeleton.tsx +20 -20
- package/src/iframe/event/event-card/IframeEventCards.stories.tsx +2 -2
- package/src/iframe/event/event-description/EventDescription.stories.tsx +3 -3
- package/src/iframe/event/event-description/EventDescription.tsx +10 -10
- package/src/iframe/event/event-navigation-footer/EventNavigationFooter.tsx +6 -6
- package/src/iframe/event/event-order-short-summary/EventOrderShortSummary.tsx +2 -2
- package/src/iframe/event/event-order-short-summary/components/Summary/Summary.tsx +4 -4
- package/src/iframe/event/event-order-summary/EventOrderSummary.stories.tsx +1 -1
- package/src/iframe/event/event-order-summary/EventOrderSummary.tsx +5 -5
- package/src/iframe/event/event-product-sets/EventProductSets.stories.tsx +1 -1
- package/src/iframe/event/event-product-sets/EventProductSets.tsx +1 -1
- package/src/iframe/event/event-product-sets/components/EventProductSet.tsx +1 -1
- package/src/iframe/event/event-step-venue-map-zones/EventStepVenueMapZones.tsx +1 -1
- package/src/iframe/event/event-step-venue-map-zones/components/EventStepVenueMapZone.tsx +3 -3
- package/src/iframe/event/event-tables/EventTables.stories.tsx +1 -1
- package/src/iframe/event/event-tables/EventTables.tsx +5 -5
- package/src/iframe/event/event-venue-map/IframeEventVenueMap.stories.tsx +4 -4
- package/src/iframe/event/event-venue-map/IframeEventVenueMap.tsx +1 -1
- package/src/iframe/event/ticket-description/TicketDescription.stories.tsx +6 -6
- package/src/iframe/event/ticket-description/TicketDescription.tsx +7 -7
- package/src/iframe/external-modal/ExternalModal.tsx +7 -7
- package/src/iframe/order-process/components/BookingSummary/BookingSummary.stories.tsx +8 -8
- package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +23 -23
- package/src/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/BookingSummaryAccordion.tsx +1 -1
- package/src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx +6 -6
- package/src/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.tsx +3 -3
- package/src/iframe/order-process/components/BookingSummary/components/SummaryTotal/SummaryTotal.tsx +1 -1
- package/src/iframe/order-process/components/BookingSummary/components/SummaryTotal/components/SummaryTotalBlock.tsx +2 -2
- package/src/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.tsx +9 -9
- package/src/iframe/order-process/components/BookingSummaryFooter/BookingSummaryFooter.tsx +3 -3
- package/src/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.stories.tsx +5 -5
- package/src/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.tsx +3 -3
- package/src/iframe/order-process/components/CalendarStepsForm/components/Category.tsx +1 -1
- package/src/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.tsx +3 -3
- package/src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx +7 -7
- package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.stories.tsx +1 -1
- package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +4 -13
- package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +2 -3
- package/src/iframe/order-process/components/ErrorModal/ErrorModal.tsx +8 -8
- package/src/iframe/order-process/components/NavigationFooter/NavigationFooter.tsx +4 -4
- package/src/iframe/order-process/components/NavigationSteps/NavigationSteps.stories.tsx +1 -1
- package/src/iframe/order-process/components/NavigationSteps/NavigationSteps.tsx +6 -6
- package/src/iframe/order-process/components/PaymentCard/PaymentCard.stories.tsx +2 -2
- package/src/iframe/order-process/components/PaymentCard/PaymentCard.tsx +9 -9
- package/src/iframe/order-process/components/Timer/Timer.stories.tsx +2 -2
- package/src/iframe/order-process/components/Timer/Timer.tsx +6 -6
- package/src/iframe/page/Page.stories.tsx +4 -4
- package/src/iframe/page/Page.tsx +1 -1
- package/src/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.tsx +2 -2
- package/src/iframe/page/components/PageBody/components/RightBlock/RightBlock.tsx +2 -2
- package/src/iframe/page/components/PageHeader/PageHeader.tsx +6 -6
- package/src/iframe/payment/order-items-table/OrderItemsTable.stories.tsx +2 -2
- package/src/iframe/payment/order-items-table/OrderItemsTable.tsx +2 -2
- package/src/iframe/payment/order-items-table/hooks/useTableData.tsx +3 -3
- package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +0 -1
- package/src/iframe/payment/payment-form/PaymentForm.stories.tsx +5 -5
- package/src/iframe/payment/payment-form/PaymentForm.tsx +12 -12
- package/src/iframe/payment/payment-page/PaymentPage.tsx +5 -5
- package/src/iframe/payment/payment-status-header/PaymentStatusHeader.stories.tsx +2 -2
- package/src/iframe/payment/payment-status-header/PaymentStatusHeader.tsx +2 -2
- package/src/iframe/payment/payment-status-page/PaymentStatusComponent.stories.tsx +2 -2
- package/src/iframe/payment/payment-status-page/PaymentStatusPage.tsx +2 -2
- package/src/iframe/payment/status-body/StatusBody.tsx +3 -3
- package/src/iframe/powered-by/PoweredBy.tsx +4 -4
- package/src/iframe/ryft/RyftPaymentForm.tsx +12 -12
- package/src/image-radio-input/ImageRadioInput.tsx +5 -5
- package/src/layout/BackgroundVideoContainer.tsx +2 -2
- package/src/layout/Container.tsx +1 -1
- package/src/layout/DropDown.tsx +1 -2
- package/src/layout/DropDownToggle.tsx +1 -1
- package/src/layout/Layout.stories.tsx +5 -5
- package/src/logo/Logo.tsx +2 -2
- package/src/modals/confirmation/ConfirmModal.tsx +16 -32
- package/src/modals/dialog/Dialog.tsx +10 -10
- package/src/modals/fullscreen/FullscreenModal.tsx +10 -10
- package/src/modals/fullscreen/FulscreenModal.stories.tsx +2 -2
- package/src/notification/components/NotificationPlaceholders.tsx +5 -5
- package/src/notification/email-template/card/EmailTemplateCard.tsx +10 -10
- package/src/notification/email-template/control/EmailTemplateControl.tsx +29 -30
- package/src/notification/email-template/form/EmailTemplateForm.tsx +3 -3
- package/src/notification/send-email-template/SendEmailTemplateForm.tsx +11 -11
- package/src/notification/sms-template/card/SmsTemplateCard.tsx +9 -9
- package/src/notification/sms-template/control/SmsTemplateControl.tsx +15 -15
- package/src/notification/sms-template/form/SmsTemplateForm.tsx +1 -1
- package/src/number-of-people-input/components/RenderNumberOfPeopleInputComponent.tsx +6 -6
- package/src/product-set/card/ProductSetCard.tsx +24 -63
- package/src/product-set/control/DateAndRecurrenceInput.tsx +10 -10
- package/src/product-set/control/DateInput.tsx +11 -12
- package/src/product-set/control/ProductSetControl.stories.tsx +2 -2
- package/src/product-set/control/ProductSetControl.tsx +72 -64
- package/src/product-set/control/ProductSetRecurrenceControl.stories.tsx +1 -1
- package/src/product-set/control/ProductSetRecurrenceControl.tsx +10 -10
- package/src/product-set/control/ProductSetRecurrenceOverridesControl.tsx +9 -9
- package/src/product-set/control/TutorialGifCard.tsx +10 -10
- package/src/product-set/deposit-paid/ProductSetDepositPaid.stories.tsx +2 -2
- package/src/product-set/deposit-paid/ProductSetDepositPaidControl.tsx +9 -9
- package/src/product-set/elements/DeleteFieldButton.tsx +3 -3
- package/src/product-set/form/MobileFooter.tsx +4 -3
- package/src/product-set/form/ProductCategoriesControl.tsx +7 -43
- package/src/product-set/form/ProductSetForm.tsx +6 -28
- package/src/product-set/form/ProductSetFormPopover.tsx +4 -4
- package/src/product-set/form/ProductZonesControl.tsx +8 -5
- package/src/product-set/form/ProductsControl.tsx +4 -4
- package/src/product-set/form/SelectCategoryModal.tsx +24 -24
- package/src/product-set/form/StepsControl.tsx +5 -5
- package/src/product-set/form/SubProductsControl.tsx +4 -1
- package/src/product-set/form/VenueMapSetModal.tsx +16 -16
- package/src/product-set/form/VenueMapsControl.tsx +12 -9
- package/src/product-set/form/index.ts +0 -1
- package/src/product-set/item/CreateProductSetItem.tsx +2 -2
- package/src/product-set/popover/ProductSetPopover.stories.tsx +7 -7
- package/src/product-set/popover/ProductSetPopover.tsx +5 -5
- package/src/product-set/product/Product.stories.tsx +4 -4
- package/src/product-set/product/ProductControl.tsx +20 -19
- package/src/product-set/product/advanced-options/AdvancedOptions.tsx +11 -11
- package/src/product-set/product/booking-management/ProductBookingManagement.stories.tsx +1 -1
- package/src/product-set/product/booking-management/ProductBookingManagementControl.tsx +9 -11
- package/src/product-set/product/deposit/ProductDeposit.stories.tsx +1 -1
- package/src/product-set/product/deposit/ProductDepositControl.tsx +4 -5
- package/src/product-set/product/duration/ProductDurationControl.stories.tsx +1 -1
- package/src/product-set/product/duration/ProductDurationControl.tsx +10 -12
- package/src/product-set/product/fixed-duration-fields/FixedDurationOptions.tsx +1 -1
- package/src/product-set/product/price/ProductPrice.stories.tsx +1 -1
- package/src/product-set/product/price/ProductPriceControl.tsx +4 -5
- package/src/product-set/product/quantity/ProductQuantity.stories.tsx +3 -3
- package/src/product-set/product/quantity/ProductQuantityConstantControl.tsx +10 -12
- package/src/product-set/product/quantity/ProductQuantityControl.tsx +8 -10
- package/src/product-set/product/quantity/ProductQuantityRechargingControl.tsx +3 -4
- package/src/product-set/product-category/ProductCategory.stories.tsx +4 -4
- package/src/product-set/product-category/ProductCategoryControl.tsx +27 -31
- package/src/product-set/product-zone/ProductZoneControl.tsx +7 -7
- package/src/product-set/step/Step.stories.tsx +1 -1
- package/src/product-set/step/StepControl.tsx +5 -5
- package/src/product-set/tabs/ProductSetTabs.stories.tsx +3 -3
- package/src/product-set/tabs/ProductSetTabs.tsx +1 -1
- package/src/product-set/utils/index.ts +0 -11
- package/src/provider/categories-input/CategoriesInput.tsx +9 -9
- package/src/provider/categories-input/CategoriesInputDescription.tsx +4 -4
- package/src/provider/company/user-form/UserForm.tsx +9 -9
- package/src/provider/location-input/LocationInput.tsx +11 -11
- package/src/provider/location-input/LocationInputDescription.tsx +1 -1
- package/src/provider/location-input/components/FormGroupControll.tsx +1 -1
- package/src/provider/provider-details-input/ProviderDetailsInput.tsx +18 -18
- package/src/provider/provider-form/ProviderForm.tsx +11 -11
- package/src/provider/provider-links-input/ProviderLinksInput.tsx +4 -4
- package/src/provider/venue-form/VenueForm.tsx +12 -12
- package/src/provider/working-hours-input/WorkingHoursInput.tsx +13 -13
- package/src/provider/working-hours-input/WorkingHoursInputDescription.tsx +1 -1
- package/src/radio-card/RadioCard.tsx +3 -3
- package/src/recurrence-input/RecurrenceEndInput.tsx +12 -13
- package/src/recurrence-input/RecurrenceIntervalAndFrequencyInput.tsx +6 -6
- package/src/recurrence-input/RecurrenceMonthlyRepeatByInput.tsx +4 -4
- package/src/recurrence-input/RecurrenceWeekdaysInput.tsx +4 -4
- package/src/recurring-date-picker-input/DatePickerInput.tsx +3 -3
- package/src/recurring-date-picker-input/RecurrenceAndFrequencyInput.tsx +8 -8
- package/src/recurring-date-picker-input/RecurrenceEndInput.tsx +12 -13
- package/src/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.tsx +10 -10
- package/src/recurring-date-picker-input/RecurrenceMonthlyRepeatByInput.tsx +4 -4
- package/src/recurring-date-picker-input/RecurrenceWeekdaysInput.tsx +6 -6
- package/src/recurring-date-picker-input/RecurringDatePickerInput.tsx +4 -4
- package/src/recurring-date-picker-input/utils.ts +4 -4
- package/src/report/DataFieldsSelector/DataFieldsSelector.tsx +6 -6
- package/src/report/ReportRunnerModal/ReportRunnerModal.tsx +23 -23
- package/src/report/ReportTypeSelect/ReportTypeSelect.tsx +9 -9
- package/src/report/card/ReportCard.tsx +3 -3
- package/src/report/form/ReportForm.tsx +9 -9
- package/src/resource/form/ResourceForm.tsx +4 -4
- package/src/resource/form/components/CapacityControl.tsx +2 -3
- package/src/resource/form/components/NameControl.tsx +1 -1
- package/src/resource/form/components/SortControl.tsx +2 -3
- package/src/resource/form/components/ZoneControl.tsx +3 -3
- package/src/sales/booking/results/BookingResults.tsx +2 -2
- package/src/sales/booking/results/components/ResultCard.tsx +10 -8
- package/src/sales/coupon/control/CouponFormControl.tsx +24 -31
- package/src/sales/coupon/form/CouponFrom.tsx +3 -3
- package/src/sales/filters/SaleFilters.tsx +3 -3
- package/src/sales/guest-profile/previous-bookings/PreviousBookings.tsx +12 -12
- package/src/sales/guest-profile/profile/Profile.tsx +6 -6
- package/src/sales/guest-profile/profile/components/ImageHolder/ImageHolder.tsx +1 -1
- package/src/sales/guest-profile/user-metrics/UserMetrics.tsx +34 -34
- package/src/sales/guest-profile/visited-providers/VisitedProviders.tsx +10 -10
- package/src/sales/life-time-sales/LifeTimeSalesChart.tsx +8 -8
- package/src/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.stories.tsx +1 -1
- package/src/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.tsx +3 -3
- package/src/sales/manual-booking/search-user/SearchUser.tsx +8 -8
- package/src/sales/manual-booking/select-date-type-control/SelectDateTypeControl.tsx +10 -10
- package/src/sales/manual-booking/select-event/SelectEvent.tsx +13 -13
- package/src/sales/manual-booking/select-menu/SelectMenu.tsx +5 -5
- package/src/sales/manual-booking/select-menu/components/MenuButton.tsx +2 -2
- package/src/sales/manual-booking/summary/ManualBookingSummary.tsx +11 -11
- package/src/sales/modals/payment-modal/PaymentModal.tsx +10 -10
- package/src/sales/modals/refund-modal/RefundModal.stories.tsx +1 -1
- package/src/sales/modals/refund-modal/RefundModal.tsx +11 -11
- package/src/sales/notes/NotesTable.tsx +5 -5
- package/src/sales/notes/NotesTableRow.tsx +13 -13
- package/src/sales/notes/note-form/NoteForm.tsx +11 -11
- package/src/sales/payment-form/SalePaymentForm.tsx +5 -5
- package/src/sales/payment-form/components/RyftPayment/RyftPayment.tsx +9 -9
- package/src/sales/sales-and-views/SalesAndViewsChart.tsx +19 -19
- package/src/sales/source-of-sales/SourceOfSalesChart.tsx +9 -9
- package/src/sales/statistics-chart/StatisticsChart.tsx +4 -4
- package/src/setting/admin/AdminSettingForm.tsx +14 -14
- package/src/setting/admin/PaymentFeeForm.tsx +28 -33
- package/src/setting/dashboard/DashboardSettingForm.tsx +16 -17
- package/src/setting/dashboard/EventSettingForm.tsx +3 -3
- package/src/setting/dashboard/FinancialDataForm.tsx +5 -5
- package/src/setting/dashboard/OtherSettingForm.tsx +29 -29
- package/src/setting/dashboard/ProviderSettingForm.tsx +3 -3
- package/src/setting/dashboard/components/IpInput.tsx +10 -10
- package/src/setting/dashboard/payments/payments-form/PaymentsForm.tsx +8 -8
- package/src/setting/dashboard/payments/payments-modal/PaymentsModal.tsx +4 -4
- package/src/setting/dashboard/snippet-templates/card/SnippetTemplateCard.tsx +8 -8
- package/src/setting/dashboard/snippets/card/SnippetCard.tsx +16 -16
- package/src/setting/system/SystemSettingForm.tsx +8 -8
- package/src/sidebar/elements/Elements.stories.tsx +1 -1
- package/src/sidebar/elements/ReturnBack.tsx +3 -3
- package/src/slide-curtain/SlideCurtain.stories.tsx +1 -1
- package/src/slide-curtain/SlideCurtain.tsx +4 -4
- package/src/snippet/snippet-template/SnippetTemplate.tsx +3 -3
- package/src/snippet/snippet-template/context/snippetTemplate.tsx +2 -2
- package/src/snippet/snippet-template/control/PropertyControl.tsx +8 -8
- package/src/snippet/snippet-template/form/SnippetTemplateForm.tsx +7 -7
- package/src/snippet/snippet-template/preview/Preview.tsx +66 -72
- package/src/snippet/snippet-template/settings/SettingButton.tsx +2 -2
- package/src/sortable-fields/SortableFieldItem.tsx +2 -2
- package/src/sortable-list/CreateSortableListItem.tsx +3 -3
- package/src/sortable-tree/SortableTreeItem.stories.tsx +2 -2
- package/src/sortable-tree/SortableTreeItem.tsx +40 -46
- package/src/sorting-select/SortingSelect.tsx +4 -4
- package/src/static/CountryCodeSelect.tsx +4 -4
- package/src/static/CountrySelect.tsx +5 -5
- package/src/static/CurrencyNumberInput.tsx +5 -6
- package/src/static/RestrictedAccess.tsx +6 -6
- package/src/static/SocialButton.tsx +1 -1
- package/src/static/Static.stories.tsx +24 -24
- package/src/static/UserBadge.tsx +7 -7
- package/src/static/WarningMessage.tsx +2 -2
- package/src/static/date-range-input/DateRangeInput.stories.tsx +1 -1
- package/src/static/date-range-input/DateRangeInput.tsx +12 -12
- package/src/static/form-number-input/FormNumberInput.stories.tsx +1 -1
- package/src/static/form-number-input/FormNumberInput.tsx +4 -5
- package/src/static/images/Images.stories.tsx +1 -1
- package/src/static/loader/BlockLoader.tsx +2 -2
- package/src/static/loader/ButtonLoader.tsx +1 -1
- package/src/static/loader/Loader.stories.tsx +2 -2
- package/src/static/loader/PaymentLoader.tsx +4 -4
- package/src/static/loader/SnippetLoader.tsx +2 -2
- package/src/static/manual-date-picker/ManualDatePicker.tsx +9 -9
- package/src/static/number-input/NumberInput.tsx +6 -7
- package/src/static/switch/Switch.stories.tsx +3 -3
- package/src/static/switch/Switch.tsx +4 -4
- package/src/static/tabs/Tabs.tsx +1 -1
- package/src/static/text-expand/TextExpand.tsx +3 -3
- package/src/striped-static-table/StripedStaticTable.tsx +2 -2
- package/{dist/styles/activity-card/ActivitiesCard.scss → src/styles/activity-card/GridActivitiesCard.scss} +5 -19
- package/src/styles/activity-card/ListActivitiesCard.scss +42 -12
- package/src/styles/activity-card/_index.scss +1 -1
- package/src/styles/iframe-events/Calendar.scss +1 -0
- package/src/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
- package/src/styles/product-set/ProductSetForm.scss +0 -22
- package/src/styles/sales/BookingResults.scss +1 -1
- package/src/table/FilterHelperComponent.tsx +10 -10
- package/src/table/MenuButton.tsx +1 -1
- package/src/table/PaginationHelperComponent.tsx +7 -7
- package/src/table/PerPageHelperComponent.tsx +5 -5
- package/src/table/ReactTableHelperComponent.tsx +1 -1
- package/src/table/TableHelperComponent.tsx +1 -1
- package/src/theme/Theme.stories.tsx +36 -36
- package/src/tiptap-editor/TipTapEditor.tsx +1 -1
- package/src/tiptap-editor/TipTapMenu/TipTapMenu.tsx +21 -21
- package/src/tiptap-editor/TipTapMenu/components/TipTapMenuItem.tsx +2 -2
- package/src/tiptap-editor/TipTapMenu/extensions/constants.ts +1 -2
- package/src/tiptap-editor/TipTapMenu/extensions/utils.ts +2 -2
- package/src/typeahead/Typeahead.stories.tsx +3 -3
- package/src/typeahead/Typeahead.tsx +1 -15
- package/src/typeahead-helper/TypeaheadHelperComponent.tsx +4 -4
- package/src/venue-map-sets/card/VenueMapSetCard.tsx +14 -14
- package/src/venue-map-sets/form/VenueMapSetForm.tsx +3 -3
- package/src/venue-map-sets/form/components/NameControl.tsx +1 -1
- package/src/venue-map-sets/form/components/VenueMapControl.tsx +8 -8
- package/src/venue-map-sets/form/components/VenueMapImageControl.tsx +5 -5
- package/src/venue-map-sets/form/components/VenueMapModal.tsx +16 -16
- package/src/venue-map-sets/form/components/VenueMapsControl.tsx +1 -1
- package/src/virtualized/components/VirtualizedGrid.tsx +1 -1
- package/src/zone/card/ZoneCard.tsx +14 -14
- package/src/zone/form/ZoneForm.tsx +3 -3
- package/src/zone/form/components/AvailableTimesControl.tsx +4 -4
- package/src/zone/form/components/DescriptionControl.tsx +2 -2
- package/src/zone/form/components/GameDurationControl.tsx +2 -3
- package/src/zone/form/components/NameControl.tsx +1 -1
- package/src/zone/form/components/SortControl.tsx +2 -3
- package/src/zone/form/components/ZoneControl.tsx +1 -1
- package/src/zone/form/components/ZoneImageControl.tsx +3 -3
- package/src/zone/form/components/ZoneRecurrenceControl.tsx +10 -10
- package/src/zone/form/components/ZoneRecurrencesControl.tsx +10 -10
- package/src/zone/form/components/ZoneTypeControl.tsx +2 -2
- package/yarn.lock +398 -1408
- package/.prettierrc +0 -7
- package/dist/product-set/control/ProductSetImageControl.d.ts +0 -2
- package/dist/product-set/control/ProductSetImageControl.d.ts.map +0 -1
- package/dist/product-set/control/ProductSetImageControl.js +0 -279
- package/dist/product-set/form/ProductSetNameControl.d.ts +0 -6
- package/dist/product-set/form/ProductSetNameControl.d.ts.map +0 -1
- package/dist/product-set/form/ProductSetNameControl.js +0 -35
- package/dist/root.css +0 -77
- package/postcss.config.cjs +0 -17
- package/src/product-set/control/ProductSetImageControl.tsx +0 -97
- package/src/product-set/form/ProductSetNameControl.tsx +0 -27
- package/src/root.css +0 -77
- package/tailwind.config.js +0 -14
|
@@ -217,8 +217,8 @@ export const DateAndRecurrenceInput = ({
|
|
|
217
217
|
<OverlayTrigger
|
|
218
218
|
show={isDatePopoverVisible}
|
|
219
219
|
overlay={
|
|
220
|
-
<Popover id={popoverId} className=
|
|
221
|
-
<Popover.Content className=
|
|
220
|
+
<Popover id={popoverId} className="rounded">
|
|
221
|
+
<Popover.Content className="shadow-lg rounded" ref={popoverRef}>
|
|
222
222
|
<RecurringDatePickerInput
|
|
223
223
|
defaultValues={editState.values}
|
|
224
224
|
onChange={handleRecurringDateChange}
|
|
@@ -247,11 +247,11 @@ export const DateAndRecurrenceInput = ({
|
|
|
247
247
|
</Popover.Content>
|
|
248
248
|
</Popover>
|
|
249
249
|
}
|
|
250
|
-
trigger=
|
|
251
|
-
placement=
|
|
250
|
+
trigger="click"
|
|
251
|
+
placement="bottom"
|
|
252
252
|
popperConfig={{ modifiers: [sameWidthPopperModifier] }}
|
|
253
253
|
>
|
|
254
|
-
<div className=
|
|
254
|
+
<div className="product-set-recurrences">
|
|
255
255
|
<DndContext
|
|
256
256
|
onDragEnd={handleOnDragEnd}
|
|
257
257
|
modifiers={[restrictToVerticalAxis]}
|
|
@@ -279,22 +279,22 @@ export const DateAndRecurrenceInput = ({
|
|
|
279
279
|
|
|
280
280
|
{(!isEventEditProductSet || fields?.length < 1) && (
|
|
281
281
|
<div
|
|
282
|
-
className=
|
|
283
|
-
role=
|
|
282
|
+
className="product-set-recurrence-icon-wrapper"
|
|
283
|
+
role="button"
|
|
284
284
|
tabIndex={0}
|
|
285
285
|
onClick={handleOnAdd}
|
|
286
286
|
onKeyDown={handleOnAdd}
|
|
287
287
|
>
|
|
288
288
|
<FaPlusCircle
|
|
289
289
|
size={16}
|
|
290
|
-
className=
|
|
290
|
+
className="product-set-recurrence-icon-add mr-2"
|
|
291
291
|
/>
|
|
292
292
|
{t('addDates')}
|
|
293
293
|
</div>
|
|
294
294
|
)}
|
|
295
295
|
|
|
296
296
|
<Form.Control
|
|
297
|
-
type=
|
|
297
|
+
type="hidden"
|
|
298
298
|
{...register('menuRecurrences', {
|
|
299
299
|
required: {
|
|
300
300
|
value: true,
|
|
@@ -306,7 +306,7 @@ export const DateAndRecurrenceInput = ({
|
|
|
306
306
|
})}
|
|
307
307
|
/>
|
|
308
308
|
|
|
309
|
-
<div className=
|
|
309
|
+
<div className="manual-form-error">
|
|
310
310
|
{errors.menuRecurrences?.message}
|
|
311
311
|
</div>
|
|
312
312
|
</div>
|
|
@@ -208,8 +208,8 @@ export const DateInput = ({
|
|
|
208
208
|
<OverlayTrigger
|
|
209
209
|
show={isDatePopoverVisible}
|
|
210
210
|
overlay={
|
|
211
|
-
<Popover id={popoverId} className=
|
|
212
|
-
<Popover.Content className=
|
|
211
|
+
<Popover id={popoverId} className="rounded">
|
|
212
|
+
<Popover.Content className="shadow-lg rounded" ref={popoverRef}>
|
|
213
213
|
<DatePickerInput
|
|
214
214
|
defaultValues={editState.values}
|
|
215
215
|
onChange={handleRecurringDateChange}
|
|
@@ -236,33 +236,32 @@ export const DateInput = ({
|
|
|
236
236
|
</Popover.Content>
|
|
237
237
|
</Popover>
|
|
238
238
|
}
|
|
239
|
-
trigger=
|
|
240
|
-
placement=
|
|
239
|
+
trigger="click"
|
|
240
|
+
placement="bottom"
|
|
241
241
|
popperConfig={{ modifiers: [sameWidthPopperModifier] }}
|
|
242
242
|
>
|
|
243
|
-
<div className=
|
|
243
|
+
<div className="product-set-recurrences">
|
|
244
244
|
{fields.map((menuRecurrence, index) => (
|
|
245
245
|
<ProductSetRecurrenceOverridesControl
|
|
246
246
|
key={menuRecurrence._id}
|
|
247
247
|
menuRecurrence={menuRecurrence}
|
|
248
248
|
onEdit={() => handleOnEdit(menuRecurrence, index)}
|
|
249
249
|
errorMessage={
|
|
250
|
-
errors?.menuRecurrences?.[`${index}`]?.availableTimes
|
|
251
|
-
?.message || errors?.menuRecurrences?.[`${index}`]?.message
|
|
250
|
+
errors?.menuRecurrences?.[`${index}`]?.availableTimes?.message
|
|
252
251
|
}
|
|
253
252
|
/>
|
|
254
253
|
))}
|
|
255
254
|
{fields.length < MAX_QUANTITY_RECURRENCE_DATE_IN_OVERRIDE && (
|
|
256
255
|
<div
|
|
257
|
-
className=
|
|
258
|
-
role=
|
|
256
|
+
className="product-set-recurrence-icon-wrapper"
|
|
257
|
+
role="button"
|
|
259
258
|
tabIndex={0}
|
|
260
259
|
onClick={handleOnAdd}
|
|
261
260
|
onKeyDown={handleOnAdd}
|
|
262
261
|
>
|
|
263
262
|
<FaPlusCircle
|
|
264
263
|
size={16}
|
|
265
|
-
className=
|
|
264
|
+
className="product-set-recurrence-icon-add mr-2"
|
|
266
265
|
/>
|
|
267
266
|
|
|
268
267
|
{t('addDates')}
|
|
@@ -270,7 +269,7 @@ export const DateInput = ({
|
|
|
270
269
|
)}
|
|
271
270
|
|
|
272
271
|
<Form.Control
|
|
273
|
-
type=
|
|
272
|
+
type="hidden"
|
|
274
273
|
{...register('menuRecurrences', {
|
|
275
274
|
required: {
|
|
276
275
|
value: true,
|
|
@@ -282,7 +281,7 @@ export const DateInput = ({
|
|
|
282
281
|
})}
|
|
283
282
|
/>
|
|
284
283
|
|
|
285
|
-
<div className=
|
|
284
|
+
<div className="manual-form-error">
|
|
286
285
|
{errors.menuRecurrences?.message}
|
|
287
286
|
</div>
|
|
288
287
|
</div>
|
|
@@ -28,7 +28,7 @@ export const Default: Story<DefaultProductSetControl> = (args) => {
|
|
|
28
28
|
return (
|
|
29
29
|
<FormProvider {...form}>
|
|
30
30
|
<Form
|
|
31
|
-
className=
|
|
31
|
+
className="d-flex flex-column"
|
|
32
32
|
noValidate
|
|
33
33
|
onSubmit={form.handleSubmit(onSubmit)}
|
|
34
34
|
>
|
|
@@ -49,7 +49,7 @@ export const Empty: Story<DefaultProductSetControl> = (args) => {
|
|
|
49
49
|
return (
|
|
50
50
|
<FormProvider {...form}>
|
|
51
51
|
<Form
|
|
52
|
-
className=
|
|
52
|
+
className="d-flex flex-column"
|
|
53
53
|
noValidate
|
|
54
54
|
onSubmit={form.handleSubmit(onSubmit)}
|
|
55
55
|
>
|
|
@@ -22,11 +22,12 @@ import HookFormService from '@licklist/plugins/dist/services/Form/HookFormServic
|
|
|
22
22
|
import { ruleForUrlWithProtocol } from '@licklist/plugins/dist/validation/Rules/urlRule'
|
|
23
23
|
import { WorkHour } from '@licklist/core/dist/DataMapper/Provider/WorkHourDataMapper'
|
|
24
24
|
import { checkIfZoneCategory } from '@licklist/plugins'
|
|
25
|
-
import { Image } from '@licklist/core/dist/DataMapper/Media/ImageDataMapper'
|
|
26
25
|
import { WarningMessage } from '../../static'
|
|
27
26
|
import { SelectItem } from '../../types/generic/SelectItem'
|
|
28
27
|
import {
|
|
29
28
|
DateAndRecurrenceInput,
|
|
29
|
+
// TODO: Show Date Component, when reccurent date bugs are fixed
|
|
30
|
+
// DateAndRecurrenceInput,
|
|
30
31
|
DateAndRecurrenceInputValues,
|
|
31
32
|
} from './DateAndRecurrenceInput'
|
|
32
33
|
import TutorialGifCard from './TutorialGifCard'
|
|
@@ -34,7 +35,6 @@ import { Step } from '../types'
|
|
|
34
35
|
import { StepsControl } from '../form/StepsControl'
|
|
35
36
|
import { Typeahead } from '../../typeahead'
|
|
36
37
|
import { DateInput } from './DateInput'
|
|
37
|
-
import { ProductSetImageControl } from './ProductSetImageControl'
|
|
38
38
|
|
|
39
39
|
const OPERATIONAL_COST_TITLES = {
|
|
40
40
|
[OPERATIONAL_COST_PROVIDER]: 'operationalCostProvider',
|
|
@@ -55,8 +55,6 @@ export interface TemplateItem {
|
|
|
55
55
|
|
|
56
56
|
export interface ProductSetControlValues extends DateAndRecurrenceInputValues {
|
|
57
57
|
name: string
|
|
58
|
-
description?: string
|
|
59
|
-
image?: Image
|
|
60
58
|
type: ProductSetType
|
|
61
59
|
termsAndConditions: string
|
|
62
60
|
thankYouPageUrl: string
|
|
@@ -67,7 +65,6 @@ export interface ProductSetControlValues extends DateAndRecurrenceInputValues {
|
|
|
67
65
|
steps: Step[]
|
|
68
66
|
emailTemplates?: TemplateItem[]
|
|
69
67
|
smsTemplates?: TemplateItem[]
|
|
70
|
-
localImageBlobURL?: string
|
|
71
68
|
}
|
|
72
69
|
|
|
73
70
|
export interface ProductSetControlShared {
|
|
@@ -125,7 +122,6 @@ export function ProductSetControl({
|
|
|
125
122
|
const steps = watch('steps')
|
|
126
123
|
|
|
127
124
|
const nameId = useId()
|
|
128
|
-
const descriptionId = useId()
|
|
129
125
|
const termsAndConditionsId = useId()
|
|
130
126
|
const relyOnPeopleTypeId = useId()
|
|
131
127
|
|
|
@@ -143,7 +139,7 @@ export function ProductSetControl({
|
|
|
143
139
|
isEventEditProductSet && 'event-edit-product-set'
|
|
144
140
|
}`}
|
|
145
141
|
>
|
|
146
|
-
<Col md={6} sm={12} className=
|
|
142
|
+
<Col md={6} sm={12} className="pr-5">
|
|
147
143
|
<Form.Group controlId={nameId}>
|
|
148
144
|
<Form.Label>{t('Design:name')}*</Form.Label>
|
|
149
145
|
<Form.Control
|
|
@@ -173,27 +169,11 @@ export function ProductSetControl({
|
|
|
173
169
|
placeholder={t('Design:placeholderProductSetName')}
|
|
174
170
|
isInvalid={Boolean(errors.name)}
|
|
175
171
|
/>
|
|
176
|
-
<Form.Control.Feedback type=
|
|
172
|
+
<Form.Control.Feedback type="invalid">
|
|
177
173
|
{errors.name?.message}
|
|
178
174
|
</Form.Control.Feedback>
|
|
179
175
|
</Form.Group>
|
|
180
176
|
|
|
181
|
-
<Form.Group controlId={descriptionId}>
|
|
182
|
-
<Form.Label>{t('Design:description')}</Form.Label>
|
|
183
|
-
<Form.Control
|
|
184
|
-
{...register('description', {
|
|
185
|
-
maxLength: 25_000,
|
|
186
|
-
})}
|
|
187
|
-
as='textarea'
|
|
188
|
-
isInvalid={Boolean(errors.description)}
|
|
189
|
-
/>
|
|
190
|
-
<Form.Control.Feedback type='invalid'>
|
|
191
|
-
{errors.description?.message}
|
|
192
|
-
</Form.Control.Feedback>
|
|
193
|
-
</Form.Group>
|
|
194
|
-
|
|
195
|
-
<ProductSetImageControl />
|
|
196
|
-
|
|
197
177
|
{showDateSelector ? (
|
|
198
178
|
<DateInput
|
|
199
179
|
workHours={isZoneAdded ? workHours : undefined}
|
|
@@ -214,7 +194,7 @@ export function ProductSetControl({
|
|
|
214
194
|
</>
|
|
215
195
|
)}
|
|
216
196
|
|
|
217
|
-
<div className=
|
|
197
|
+
<div className="divider" />
|
|
218
198
|
|
|
219
199
|
<TutorialGifCard isOverrides={isOverrides} />
|
|
220
200
|
|
|
@@ -226,13 +206,34 @@ export function ProductSetControl({
|
|
|
226
206
|
/>
|
|
227
207
|
</Col>
|
|
228
208
|
<Col md={6} sm={12}>
|
|
229
|
-
<div className=
|
|
209
|
+
<div className="second-column">
|
|
210
|
+
{/* <Controller
|
|
211
|
+
control={control}
|
|
212
|
+
name="type"
|
|
213
|
+
render={({ field }) => (
|
|
214
|
+
<Form.Group className="d-flex flex-column flex-grow-1 align-items-start">
|
|
215
|
+
<Form.Label>{t("Design:checkoutType")}</Form.Label>
|
|
216
|
+
<Switch
|
|
217
|
+
name={field.name}
|
|
218
|
+
options={PRODUCT_SET_TYPES.map((type) => ({
|
|
219
|
+
key: type,
|
|
220
|
+
id: type,
|
|
221
|
+
value: t(type),
|
|
222
|
+
}))}
|
|
223
|
+
value={field.value}
|
|
224
|
+
onChange={field.onChange}
|
|
225
|
+
disabled={isLoading}
|
|
226
|
+
/>
|
|
227
|
+
</Form.Group>
|
|
228
|
+
)}
|
|
229
|
+
/> */}
|
|
230
|
+
|
|
230
231
|
<Form.Group>
|
|
231
|
-
<Form.Label className=
|
|
232
|
+
<Form.Label className="mb-0">
|
|
232
233
|
{t('Design:operationalCost')}
|
|
233
234
|
</Form.Label>
|
|
234
|
-
<div className=
|
|
235
|
-
<span className=
|
|
235
|
+
<div className="d-flex">
|
|
236
|
+
<span className="booking-fee-text">
|
|
236
237
|
{t('bookingFeePaid', {
|
|
237
238
|
fee,
|
|
238
239
|
})}
|
|
@@ -240,7 +241,7 @@ export function ProductSetControl({
|
|
|
240
241
|
</div>
|
|
241
242
|
<Form.Control
|
|
242
243
|
{...register('operationalCost', { required: true })}
|
|
243
|
-
as=
|
|
244
|
+
as="select"
|
|
244
245
|
defaultValue={OPERATIONAL_COST_PROVIDER}
|
|
245
246
|
disabled={isOverrides}
|
|
246
247
|
isInvalid={HookFormService.isInvalid('operationalCost', errors)}
|
|
@@ -261,7 +262,7 @@ export function ProductSetControl({
|
|
|
261
262
|
</option>
|
|
262
263
|
))}
|
|
263
264
|
</Form.Control>
|
|
264
|
-
<Form.Control.Feedback type=
|
|
265
|
+
<Form.Control.Feedback type="invalid">
|
|
265
266
|
{HookFormService.getErrors('operationalCost', errors)}
|
|
266
267
|
</Form.Control.Feedback>
|
|
267
268
|
</Form.Group>
|
|
@@ -270,12 +271,12 @@ export function ProductSetControl({
|
|
|
270
271
|
<Form.Label>{t('peopleQuantityType')}</Form.Label>
|
|
271
272
|
<Form.Control
|
|
272
273
|
{...register('relyOnPeopleType')}
|
|
273
|
-
as=
|
|
274
|
+
as="select"
|
|
274
275
|
defaultValue={null}
|
|
275
276
|
disabled={isOverrides}
|
|
276
277
|
isInvalid={HookFormService.isInvalid('relyOnPeopleType', errors)}
|
|
277
278
|
>
|
|
278
|
-
<option value=
|
|
279
|
+
<option value="">{t('notRequired')} </option>
|
|
279
280
|
{Object.keys(RELY_ON_PEOPLE_TYPES).map((relyOnPeopleType) => (
|
|
280
281
|
<option
|
|
281
282
|
value={RELY_ON_PEOPLE_TYPES[relyOnPeopleType]}
|
|
@@ -289,7 +290,7 @@ export function ProductSetControl({
|
|
|
289
290
|
</option>
|
|
290
291
|
))}
|
|
291
292
|
</Form.Control>
|
|
292
|
-
<Form.Control.Feedback type=
|
|
293
|
+
<Form.Control.Feedback type="invalid">
|
|
293
294
|
{HookFormService.getErrors('relyOnPeopleType', errors)}
|
|
294
295
|
</Form.Control.Feedback>
|
|
295
296
|
</Form.Group>
|
|
@@ -298,7 +299,7 @@ export function ProductSetControl({
|
|
|
298
299
|
<Form.Label>{t('Design:termsAndConditions')}</Form.Label>
|
|
299
300
|
<Form.Control
|
|
300
301
|
{...register('termsAndConditions')}
|
|
301
|
-
as=
|
|
302
|
+
as="textarea"
|
|
302
303
|
rows={2}
|
|
303
304
|
disabled={isLoading || isOverrides}
|
|
304
305
|
isInvalid={HookFormService.isInvalid(
|
|
@@ -306,19 +307,19 @@ export function ProductSetControl({
|
|
|
306
307
|
errors,
|
|
307
308
|
)}
|
|
308
309
|
/>
|
|
309
|
-
<Form.Control.Feedback type=
|
|
310
|
+
<Form.Control.Feedback type="invalid">
|
|
310
311
|
{HookFormService.getErrors('termsAndConditions', errors)}
|
|
311
312
|
</Form.Control.Feedback>
|
|
312
313
|
</Form.Group>
|
|
313
314
|
|
|
314
315
|
<Form.Group>
|
|
315
|
-
<Form.Label className=
|
|
316
|
+
<Form.Label className="mt-4">
|
|
316
317
|
{t('Design:emailTemplate')}
|
|
317
318
|
</Form.Label>
|
|
318
319
|
<>
|
|
319
320
|
{showEmailTemplateSelector ? (
|
|
320
321
|
<Typeahead
|
|
321
|
-
name=
|
|
322
|
+
name="emailTemplates"
|
|
322
323
|
options={emailTemplates}
|
|
323
324
|
isMultipleChoise
|
|
324
325
|
placeholder={t('Design:choose')}
|
|
@@ -342,7 +343,7 @@ export function ProductSetControl({
|
|
|
342
343
|
</Form.Label>
|
|
343
344
|
{showSmsTemplateSelector ? (
|
|
344
345
|
<Typeahead
|
|
345
|
-
name=
|
|
346
|
+
name="smsTemplates"
|
|
346
347
|
options={smsTemplates}
|
|
347
348
|
isMultipleChoise
|
|
348
349
|
placeholder={t('Design:choose')}
|
|
@@ -362,33 +363,40 @@ export function ProductSetControl({
|
|
|
362
363
|
<Form.Group>
|
|
363
364
|
<Controller
|
|
364
365
|
control={control}
|
|
365
|
-
name=
|
|
366
|
-
render={({ field }) =>
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
366
|
+
name="fieldSetId"
|
|
367
|
+
render={({ field }) => {
|
|
368
|
+
const fieldValue = Number(field.value)
|
|
369
|
+
|
|
370
|
+
return (
|
|
371
|
+
<>
|
|
372
|
+
<Form.Label>{t('Design:customFields')}</Form.Label>
|
|
373
|
+
<Form.Control
|
|
374
|
+
onChange={field.onChange}
|
|
375
|
+
value={fieldValue}
|
|
376
|
+
as="select"
|
|
377
|
+
disabled={isOverrides}
|
|
378
|
+
isInvalid={HookFormService.isInvalid(
|
|
379
|
+
'fieldSetId',
|
|
380
|
+
errors,
|
|
381
|
+
)}
|
|
382
|
+
>
|
|
383
|
+
<option value="">{t('Design:choose')}</option>
|
|
384
|
+
{fieldSets?.map((fieldSet) => (
|
|
385
|
+
<option value={fieldSet.id} key={fieldSet.id}>
|
|
386
|
+
{fieldSet.name}
|
|
387
|
+
</option>
|
|
388
|
+
))}
|
|
389
|
+
</Form.Control>
|
|
390
|
+
<Form.Control.Feedback type="invalid">
|
|
391
|
+
{HookFormService.getErrors('fieldSetId', errors)}
|
|
392
|
+
</Form.Control.Feedback>
|
|
393
|
+
</>
|
|
394
|
+
)
|
|
395
|
+
}}
|
|
388
396
|
/>
|
|
389
397
|
</Form.Group>
|
|
390
398
|
|
|
391
|
-
<Form.Group controlId=
|
|
399
|
+
<Form.Group controlId="thankYouPageUrlId">
|
|
392
400
|
<Form.Label>{t('thankYouPageUrl')}</Form.Label>
|
|
393
401
|
|
|
394
402
|
<Form.Control
|
|
@@ -405,7 +413,7 @@ export function ProductSetControl({
|
|
|
405
413
|
isInvalid={HookFormService.isInvalid('thankYouPageUrl', errors)}
|
|
406
414
|
/>
|
|
407
415
|
|
|
408
|
-
<Form.Control.Feedback type=
|
|
416
|
+
<Form.Control.Feedback type="invalid">
|
|
409
417
|
{HookFormService.getErrors('thankYouPageUrl', errors)}
|
|
410
418
|
</Form.Control.Feedback>
|
|
411
419
|
</Form.Group>
|
|
@@ -38,7 +38,7 @@ export const Default: Story<ProductSetRecurrences> = (args) => {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
return (
|
|
41
|
-
<div className=
|
|
41
|
+
<div className="product-set-recurrences">
|
|
42
42
|
<DndContext onDragEnd={onDragEnd}>
|
|
43
43
|
<SortableContext
|
|
44
44
|
items={items.map((menuRecurrence) => ({
|
|
@@ -30,7 +30,7 @@ export const ProductSetRecurrenceControl = ({
|
|
|
30
30
|
|
|
31
31
|
return (
|
|
32
32
|
<div
|
|
33
|
-
className=
|
|
33
|
+
className="sortable-tree-root flex-column"
|
|
34
34
|
style={{
|
|
35
35
|
transform: CSS.Translate.toString(transform),
|
|
36
36
|
transition,
|
|
@@ -38,20 +38,20 @@ export const ProductSetRecurrenceControl = ({
|
|
|
38
38
|
{...attributes}
|
|
39
39
|
{...listeners}
|
|
40
40
|
ref={setNodeRef}
|
|
41
|
-
role=
|
|
41
|
+
role="button"
|
|
42
42
|
tabIndex={0}
|
|
43
43
|
>
|
|
44
44
|
<div
|
|
45
45
|
key={menuRecurrence.rrule}
|
|
46
|
-
className=
|
|
46
|
+
className="product-set-recurrence d-flex flex-column mr-0 mb-3 p-3 px-4 flex-grow-1"
|
|
47
47
|
>
|
|
48
|
-
<span className=
|
|
48
|
+
<span className="d-flex flex-row align-items-center">
|
|
49
49
|
<FaCalendar
|
|
50
50
|
size={16}
|
|
51
|
-
className=
|
|
51
|
+
className="product-set-recurrence-icon-calendar"
|
|
52
52
|
/>
|
|
53
53
|
|
|
54
|
-
<span className=
|
|
54
|
+
<span className="product-set-recurrence-title d-flex flex-grow-1">
|
|
55
55
|
{t('from')}{' '}
|
|
56
56
|
{formatDate(menuRecurrence.startDate, {
|
|
57
57
|
dateStyle: 'medium',
|
|
@@ -67,19 +67,19 @@ export const ProductSetRecurrenceControl = ({
|
|
|
67
67
|
</span>
|
|
68
68
|
|
|
69
69
|
<div
|
|
70
|
-
className=
|
|
71
|
-
role=
|
|
70
|
+
className="d-inline-flex"
|
|
71
|
+
role="button"
|
|
72
72
|
tabIndex={0}
|
|
73
73
|
onClick={() => onEdit(menuRecurrence)}
|
|
74
74
|
onKeyDown={() => onEdit(menuRecurrence)}
|
|
75
75
|
>
|
|
76
76
|
<FaEllipsisH
|
|
77
77
|
size={16}
|
|
78
|
-
className=
|
|
78
|
+
className="product-set-recurrence-icon-more"
|
|
79
79
|
/>
|
|
80
80
|
</div>
|
|
81
81
|
</span>
|
|
82
|
-
<span className=
|
|
82
|
+
<span className="product-set-recurrence-description">
|
|
83
83
|
{getHumanReadableDate(menuRecurrence)}
|
|
84
84
|
</span>
|
|
85
85
|
</div>
|
|
@@ -16,36 +16,36 @@ export const ProductSetRecurrenceOverridesControl = ({
|
|
|
16
16
|
const { formatDate } = useIntl()
|
|
17
17
|
|
|
18
18
|
return (
|
|
19
|
-
<div className=
|
|
19
|
+
<div className="sortable-tree-root flex-column" role="button" tabIndex={0}>
|
|
20
20
|
<div
|
|
21
21
|
key={menuRecurrence.rrule}
|
|
22
|
-
className=
|
|
22
|
+
className="product-set-recurrence d-flex flex-column mr-0 mb-3 p-3 px-4 flex-grow-1"
|
|
23
23
|
>
|
|
24
|
-
<span className=
|
|
24
|
+
<span className="d-flex flex-row align-items-center">
|
|
25
25
|
<FaCalendar
|
|
26
26
|
size={16}
|
|
27
|
-
className=
|
|
27
|
+
className="product-set-recurrence-icon-calendar"
|
|
28
28
|
/>
|
|
29
|
-
<span className=
|
|
29
|
+
<span className="product-set-recurrence-title d-flex flex-grow-1">
|
|
30
30
|
{formatDate(menuRecurrence.startDate, {
|
|
31
31
|
dateStyle: 'medium',
|
|
32
32
|
})}{' '}
|
|
33
33
|
</span>
|
|
34
34
|
|
|
35
35
|
<div
|
|
36
|
-
className=
|
|
37
|
-
role=
|
|
36
|
+
className="d-inline-flex"
|
|
37
|
+
role="button"
|
|
38
38
|
tabIndex={0}
|
|
39
39
|
onClick={() => onEdit(menuRecurrence)}
|
|
40
40
|
onKeyDown={() => onEdit(menuRecurrence)}
|
|
41
41
|
>
|
|
42
42
|
<FaEllipsisH
|
|
43
43
|
size={16}
|
|
44
|
-
className=
|
|
44
|
+
className="product-set-recurrence-icon-more"
|
|
45
45
|
/>
|
|
46
46
|
</div>
|
|
47
47
|
</span>
|
|
48
|
-
<span className=
|
|
48
|
+
<span className="product-set-recurrence-description">
|
|
49
49
|
{formatDate(menuRecurrence.startDate, {
|
|
50
50
|
dateStyle: 'medium',
|
|
51
51
|
})}{' '}
|
|
@@ -24,38 +24,38 @@ const TutorialGifCard = ({
|
|
|
24
24
|
return (
|
|
25
25
|
<>
|
|
26
26
|
<Card className={`tutorial-card ${!isVisible && 'hidden'}`}>
|
|
27
|
-
<Card.Header className=
|
|
27
|
+
<Card.Header className="tutorial-card-header">
|
|
28
28
|
<div>
|
|
29
29
|
<FaCheck
|
|
30
|
-
color=
|
|
31
|
-
className=
|
|
30
|
+
color="white"
|
|
31
|
+
className="rounded product-set-item-icon"
|
|
32
32
|
size={14}
|
|
33
33
|
/>
|
|
34
34
|
<span>{t('bookedTopTip')}</span>
|
|
35
35
|
</div>
|
|
36
36
|
<button
|
|
37
|
-
className=
|
|
37
|
+
className="border-0"
|
|
38
38
|
onClick={() => setIsVisible(false)}
|
|
39
|
-
type=
|
|
39
|
+
type="button"
|
|
40
40
|
>
|
|
41
41
|
<span>{t('gotIt')}</span>
|
|
42
|
-
<FaTimes size={18} className=
|
|
42
|
+
<FaTimes size={18} className="rounded tutorial-close-icon p-1" />
|
|
43
43
|
</button>
|
|
44
44
|
</Card.Header>
|
|
45
|
-
<Card.Body className=
|
|
45
|
+
<Card.Body className="tutorial-card-body">
|
|
46
46
|
<p>
|
|
47
47
|
{t(isOverrides ? 'buildOverrideProductSet' : 'buildProductSet')}
|
|
48
48
|
</p>
|
|
49
49
|
<span>
|
|
50
50
|
{t(isOverrides ? 'buildOverrideRules' : 'buildProductSetDesc')}
|
|
51
51
|
</span>
|
|
52
|
-
{tutorialAsset && <Image src={tutorialAsset} alt=
|
|
52
|
+
{tutorialAsset && <Image src={tutorialAsset} alt="Tutorial Gif" />}
|
|
53
53
|
</Card.Body>
|
|
54
54
|
</Card>
|
|
55
55
|
<Button
|
|
56
|
-
type=
|
|
56
|
+
type="button"
|
|
57
57
|
onClick={() => setIsVisible(true)}
|
|
58
|
-
className=
|
|
58
|
+
className="mb-4"
|
|
59
59
|
style={{ display: !isVisible ? 'block' : 'none' }}
|
|
60
60
|
>
|
|
61
61
|
<span>{t('hint')}</span>
|
|
@@ -26,7 +26,7 @@ export const Default: Story<ProductSetDepositPaidControlProps> = (args) => {
|
|
|
26
26
|
return (
|
|
27
27
|
<FormProvider {...form}>
|
|
28
28
|
<Form
|
|
29
|
-
className=
|
|
29
|
+
className="d-flex flex-column"
|
|
30
30
|
noValidate
|
|
31
31
|
onSubmit={form.handleSubmit(onSubmit)}
|
|
32
32
|
>
|
|
@@ -47,7 +47,7 @@ export const WithData: Story<ProductSetDepositPaidControlProps> = (args) => {
|
|
|
47
47
|
return (
|
|
48
48
|
<FormProvider {...form}>
|
|
49
49
|
<Form
|
|
50
|
-
className=
|
|
50
|
+
className="d-flex flex-column"
|
|
51
51
|
noValidate
|
|
52
52
|
onSubmit={form.handleSubmit(onSubmit)}
|
|
53
53
|
>
|