@licklist/design 0.68.5-dev.0 → 0.68.6-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/events/edit-event-modal/utils/getDefaultProductSet.d.ts.map +1 -1
- package/dist/events/edit-event-modal/utils/getDefaultProductSet.js +3 -1
- package/dist/iframe/activity-card/ActivityCard.d.ts +5 -4
- package/dist/iframe/activity-card/ActivityCard.d.ts.map +1 -1
- package/dist/iframe/activity-card/ActivityCard.js +52 -40
- package/dist/product-set/control/ProductSetControl.d.ts +4 -0
- package/dist/product-set/control/ProductSetControl.d.ts.map +1 -1
- package/dist/product-set/control/ProductSetControl.js +23 -3
- package/dist/product-set/control/ProductSetImageControl.d.ts +2 -0
- package/dist/product-set/control/ProductSetImageControl.d.ts.map +1 -0
- package/dist/product-set/control/ProductSetImageControl.js +279 -0
- package/dist/styles/activity-card/{GridActivitiesCard.scss → ActivitiesCard.scss} +19 -5
- package/dist/styles/activity-card/ListActivitiesCard.scss +12 -42
- package/dist/styles/activity-card/_index.scss +1 -1
- package/package.json +1 -1
- package/src/affiliate/card/AffiliateCard.tsx +15 -15
- package/src/affiliate/form/AffiliateControl.tsx +8 -8
- package/src/affiliate/form/AffiliateForm.tsx +5 -5
- 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 +8 -8
- 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 +9 -9
- 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 +11 -11
- 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 +15 -15
- package/src/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.tsx +5 -5
- package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +2 -0
- 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 +38 -27
- 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 -4
- package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +2 -2
- 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/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/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 +13 -13
- 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 -29
- 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 +21 -21
- package/src/product-set/control/DateAndRecurrenceInput.tsx +10 -10
- package/src/product-set/control/DateInput.tsx +10 -10
- package/src/product-set/control/ProductSetControl.stories.tsx +2 -2
- package/src/product-set/control/ProductSetControl.tsx +64 -72
- package/src/product-set/control/ProductSetImageControl.tsx +97 -0
- 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 +2 -2
- package/src/product-set/form/ProductCategoriesControl.tsx +13 -13
- package/src/product-set/form/ProductSetForm.tsx +4 -4
- package/src/product-set/form/ProductSetFormPopover.tsx +4 -4
- package/src/product-set/form/ProductSetNameControl.tsx +1 -1
- package/src/product-set/form/ProductZonesControl.tsx +4 -4
- package/src/product-set/form/ProductsControl.tsx +4 -4
- package/src/product-set/form/SelectCategoryModal.tsx +22 -22
- package/src/product-set/form/StepsControl.tsx +5 -5
- package/src/product-set/form/SubProductsControl.tsx +1 -1
- package/src/product-set/form/VenueMapSetModal.tsx +16 -16
- package/src/product-set/form/VenueMapsControl.tsx +9 -9
- 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 +19 -19
- package/src/product-set/product/advanced-options/AdvancedOptions.tsx +10 -10
- package/src/product-set/product/booking-management/ProductBookingManagement.stories.tsx +1 -1
- package/src/product-set/product/booking-management/ProductBookingManagementControl.tsx +9 -9
- package/src/product-set/product/deposit/ProductDeposit.stories.tsx +1 -1
- package/src/product-set/product/deposit/ProductDepositControl.tsx +4 -4
- package/src/product-set/product/duration/ProductDurationControl.stories.tsx +1 -1
- package/src/product-set/product/duration/ProductDurationControl.tsx +10 -10
- 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 -4
- package/src/product-set/product/quantity/ProductQuantity.stories.tsx +3 -3
- package/src/product-set/product/quantity/ProductQuantityConstantControl.tsx +10 -10
- package/src/product-set/product/quantity/ProductQuantityControl.tsx +8 -8
- package/src/product-set/product/quantity/ProductQuantityRechargingControl.tsx +3 -3
- package/src/product-set/product-category/ProductCategory.stories.tsx +4 -4
- package/src/product-set/product-category/ProductCategoryControl.tsx +27 -27
- package/src/product-set/product-zone/ProductZoneControl.tsx +6 -6
- 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/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 -12
- 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 -12
- 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/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 -2
- package/src/resource/form/components/NameControl.tsx +1 -1
- package/src/resource/form/components/SortControl.tsx +2 -2
- 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 +8 -8
- package/src/sales/coupon/control/CouponFormControl.tsx +24 -24
- 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 -28
- package/src/setting/dashboard/DashboardSettingForm.tsx +16 -16
- 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 -66
- 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 +41 -41
- 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 -5
- 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 -4
- 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 -6
- 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/src/styles/activity-card/{GridActivitiesCard.scss → ActivitiesCard.scss} +19 -5
- package/src/styles/activity-card/ListActivitiesCard.scss +12 -42
- package/src/styles/activity-card/_index.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/typeahead/Typeahead.stories.tsx +3 -3
- 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 -2
- package/src/zone/form/components/NameControl.tsx +1 -1
- package/src/zone/form/components/SortControl.tsx +2 -2
- 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
|
@@ -67,7 +67,7 @@ export function DropdownForm<T>({
|
|
|
67
67
|
return (
|
|
68
68
|
<>
|
|
69
69
|
<Form.Control
|
|
70
|
-
type=
|
|
70
|
+
type='hidden'
|
|
71
71
|
defaultValue={id}
|
|
72
72
|
{...register(`${fieldSetId}.${fieldIndex}.id` as Path<T>)}
|
|
73
73
|
/>
|
|
@@ -75,7 +75,7 @@ export function DropdownForm<T>({
|
|
|
75
75
|
<Form.Group>
|
|
76
76
|
<Form.Label>{t('Design:fieldName')}</Form.Label>
|
|
77
77
|
<Form.Control
|
|
78
|
-
type=
|
|
78
|
+
type='text'
|
|
79
79
|
defaultValue={name}
|
|
80
80
|
placeholder={t('Design:fieldName')}
|
|
81
81
|
isInvalid={errors?.[fieldSetId]?.[fieldIndex]?.name}
|
|
@@ -98,7 +98,7 @@ export function DropdownForm<T>({
|
|
|
98
98
|
},
|
|
99
99
|
})}
|
|
100
100
|
/>
|
|
101
|
-
<Form.Control.Feedback type=
|
|
101
|
+
<Form.Control.Feedback type='invalid'>
|
|
102
102
|
{HookFormService.hasError(
|
|
103
103
|
errors?.[fieldSetId]?.[fieldIndex]?.name,
|
|
104
104
|
'required',
|
|
@@ -110,8 +110,8 @@ export function DropdownForm<T>({
|
|
|
110
110
|
</Form.Group>
|
|
111
111
|
<Form.Group>
|
|
112
112
|
<Form.Check
|
|
113
|
-
type=
|
|
114
|
-
label=
|
|
113
|
+
type='checkbox'
|
|
114
|
+
label='Required'
|
|
115
115
|
defaultChecked={isRequired}
|
|
116
116
|
{...register(`${fieldSetId}.${fieldIndex}.isRequired` as Path<T>)}
|
|
117
117
|
/>
|
|
@@ -122,12 +122,12 @@ export function DropdownForm<T>({
|
|
|
122
122
|
/>
|
|
123
123
|
</Form.Group>
|
|
124
124
|
<FormLabel>{t('Design:dropdownOptions')}</FormLabel>
|
|
125
|
-
<div className=
|
|
125
|
+
<div className='w-100'>
|
|
126
126
|
{fields?.map((field: FieldValues, i) => (
|
|
127
|
-
<div key={field.id} className=
|
|
128
|
-
<Form.Group className=
|
|
127
|
+
<div key={field.id} className='dropdown-option'>
|
|
128
|
+
<Form.Group className='input'>
|
|
129
129
|
<Form.Control
|
|
130
|
-
type=
|
|
130
|
+
type='text'
|
|
131
131
|
placeholder={t('Design:title')}
|
|
132
132
|
isInvalid={optionErrors?.[i]?.title}
|
|
133
133
|
{...register(
|
|
@@ -158,7 +158,7 @@ export function DropdownForm<T>({
|
|
|
158
158
|
)
|
|
159
159
|
}}
|
|
160
160
|
/>
|
|
161
|
-
<Form.Control.Feedback type=
|
|
161
|
+
<Form.Control.Feedback type='invalid'>
|
|
162
162
|
{HookFormService.hasError(
|
|
163
163
|
errors?.[fieldSetId]?.[fieldIndex]?.options?.[i]?.title,
|
|
164
164
|
'validate',
|
|
@@ -170,8 +170,8 @@ export function DropdownForm<T>({
|
|
|
170
170
|
</Form.Group>
|
|
171
171
|
<Form.Group>
|
|
172
172
|
<button
|
|
173
|
-
type=
|
|
174
|
-
className=
|
|
173
|
+
type='button'
|
|
174
|
+
className='btn'
|
|
175
175
|
onClick={() => {
|
|
176
176
|
remove(i)
|
|
177
177
|
trigger()
|
|
@@ -183,8 +183,8 @@ export function DropdownForm<T>({
|
|
|
183
183
|
</div>
|
|
184
184
|
))}
|
|
185
185
|
<Button
|
|
186
|
-
className=
|
|
187
|
-
size=
|
|
186
|
+
className='rounded-circle mb-5 d-flex'
|
|
187
|
+
size='sm'
|
|
188
188
|
onClick={() => {
|
|
189
189
|
append({ title: '', value: '' } as FieldArray<FieldValues, Path<T>>)
|
|
190
190
|
|
|
@@ -194,11 +194,11 @@ export function DropdownForm<T>({
|
|
|
194
194
|
<FaPlus size={18} />
|
|
195
195
|
</Button>
|
|
196
196
|
</div>
|
|
197
|
-
<div className=
|
|
197
|
+
<div className='manual-form-error'>
|
|
198
198
|
{optionErrors && optionErrors.message}
|
|
199
199
|
</div>
|
|
200
200
|
{hasPermission && (
|
|
201
|
-
<Button variant=
|
|
201
|
+
<Button variant='danger' onClick={onRemove}>
|
|
202
202
|
{t('Design:delete')}
|
|
203
203
|
</Button>
|
|
204
204
|
)}
|
|
@@ -33,7 +33,7 @@ export function TextInputForm<T>({
|
|
|
33
33
|
return (
|
|
34
34
|
<>
|
|
35
35
|
<Form.Control
|
|
36
|
-
type=
|
|
36
|
+
type='hidden'
|
|
37
37
|
defaultValue={id}
|
|
38
38
|
{...register(`${fieldSetId}.${fieldIndex}.id` as Path<T>)}
|
|
39
39
|
/>
|
|
@@ -41,7 +41,7 @@ export function TextInputForm<T>({
|
|
|
41
41
|
<Form.Group>
|
|
42
42
|
<Form.Label>{t('Design:fieldName')}</Form.Label>
|
|
43
43
|
<Form.Control
|
|
44
|
-
type=
|
|
44
|
+
type='text'
|
|
45
45
|
defaultValue={name}
|
|
46
46
|
placeholder={t('Design:fieldName')}
|
|
47
47
|
isInvalid={!!formState.errors?.[fieldSetId]?.[fieldIndex]?.name}
|
|
@@ -49,7 +49,7 @@ export function TextInputForm<T>({
|
|
|
49
49
|
required: true,
|
|
50
50
|
})}
|
|
51
51
|
/>
|
|
52
|
-
<Form.Control.Feedback type=
|
|
52
|
+
<Form.Control.Feedback type='invalid'>
|
|
53
53
|
{HookFormService.hasError(
|
|
54
54
|
formState.errors?.[fieldSetId]?.[fieldIndex]?.name,
|
|
55
55
|
'required',
|
|
@@ -61,8 +61,8 @@ export function TextInputForm<T>({
|
|
|
61
61
|
</Form.Group>
|
|
62
62
|
<Form.Group>
|
|
63
63
|
<Form.Check
|
|
64
|
-
type=
|
|
65
|
-
label=
|
|
64
|
+
type='checkbox'
|
|
65
|
+
label='Required'
|
|
66
66
|
defaultChecked={isRequired}
|
|
67
67
|
{...register(`${fieldSetId}.${fieldIndex}.isRequired` as Path<T>)}
|
|
68
68
|
/>
|
|
@@ -73,7 +73,7 @@ export function TextInputForm<T>({
|
|
|
73
73
|
/>
|
|
74
74
|
</Form.Group>
|
|
75
75
|
{hasPermission && (
|
|
76
|
-
<Button variant=
|
|
76
|
+
<Button variant='danger' onClick={onRemove}>
|
|
77
77
|
{t('Design:delete')}
|
|
78
78
|
</Button>
|
|
79
79
|
)}
|
|
@@ -23,8 +23,8 @@ export const CustomerFilter = ({ values, onChange }: CustomerFilterProps) => {
|
|
|
23
23
|
const { t } = useTranslation(['Design'])
|
|
24
24
|
|
|
25
25
|
return (
|
|
26
|
-
<div className=
|
|
27
|
-
<div className=
|
|
26
|
+
<div className='customers-filter d-flex'>
|
|
27
|
+
<div className='d-flex customers-filter-items'>
|
|
28
28
|
{Object.keys(FILTER_FIELDS).map((filterKeyName) => {
|
|
29
29
|
const label = t(FILTER_FIELDS[filterKeyName])
|
|
30
30
|
|
|
@@ -32,7 +32,7 @@ export const CustomerFilter = ({ values, onChange }: CustomerFilterProps) => {
|
|
|
32
32
|
<TextField
|
|
33
33
|
key={filterKeyName}
|
|
34
34
|
className={clsx('mb-0', 'col-4', 'customer-filter')}
|
|
35
|
-
type=
|
|
35
|
+
type='text'
|
|
36
36
|
label={label}
|
|
37
37
|
value={values[filterKeyName]}
|
|
38
38
|
onChange={(event) =>
|
|
@@ -46,7 +46,7 @@ export const DateTimeButton = ({
|
|
|
46
46
|
|
|
47
47
|
return (
|
|
48
48
|
<button
|
|
49
|
-
type=
|
|
49
|
+
type='button'
|
|
50
50
|
onClick={() => onSelect(date)}
|
|
51
51
|
disabled={isDisabled}
|
|
52
52
|
className={clsx(
|
|
@@ -66,7 +66,7 @@ export const DateTimeButton = ({
|
|
|
66
66
|
isSelected={isSelected}
|
|
67
67
|
variant={variant}
|
|
68
68
|
/>
|
|
69
|
-
{price && !isDisabled && <div className=
|
|
69
|
+
{price && !isDisabled && <div className='price'>{price}</div>}
|
|
70
70
|
{showResources && resources && (
|
|
71
71
|
<AvailabilityIndicator
|
|
72
72
|
resources={resources}
|
|
@@ -98,14 +98,14 @@ export function IntervalInput({
|
|
|
98
98
|
|
|
99
99
|
return (
|
|
100
100
|
<>
|
|
101
|
-
<Form.Row className=
|
|
102
|
-
<Form.Group as={Col} controlId=
|
|
101
|
+
<Form.Row className='interval-container'>
|
|
102
|
+
<Form.Group as={Col} controlId='start'>
|
|
103
103
|
<Form.Label>{t('start')}</Form.Label>
|
|
104
104
|
<Form.Control
|
|
105
|
-
type=
|
|
105
|
+
type='datetime-local'
|
|
106
106
|
{...register('start', validationOptions.start)}
|
|
107
107
|
value={start}
|
|
108
|
-
name=
|
|
108
|
+
name='start'
|
|
109
109
|
required
|
|
110
110
|
isInvalid={Boolean(errors.start)}
|
|
111
111
|
onChange={updateEndDate}
|
|
@@ -113,18 +113,18 @@ export function IntervalInput({
|
|
|
113
113
|
ref={startDateInput}
|
|
114
114
|
disabled={disabled}
|
|
115
115
|
/>
|
|
116
|
-
<Form.Control.Feedback type=
|
|
116
|
+
<Form.Control.Feedback type='invalid'>
|
|
117
117
|
{errors.start?.message}
|
|
118
118
|
</Form.Control.Feedback>
|
|
119
119
|
</Form.Group>
|
|
120
120
|
|
|
121
|
-
<Form.Group as={Col} controlId=
|
|
121
|
+
<Form.Group as={Col} controlId='end'>
|
|
122
122
|
<Form.Label>{t('end')}</Form.Label>
|
|
123
123
|
<Form.Control
|
|
124
|
-
type=
|
|
124
|
+
type='datetime-local'
|
|
125
125
|
{...register('end', validationOptions.end)}
|
|
126
126
|
value={end}
|
|
127
|
-
name=
|
|
127
|
+
name='end'
|
|
128
128
|
onChange={({ target: { value: nextEndtDate } }) =>
|
|
129
129
|
onChangeEndDate(nextEndtDate)
|
|
130
130
|
}
|
|
@@ -136,7 +136,7 @@ export function IntervalInput({
|
|
|
136
136
|
disabled={disabled}
|
|
137
137
|
/>
|
|
138
138
|
|
|
139
|
-
<Form.Control.Feedback type=
|
|
139
|
+
<Form.Control.Feedback type='invalid'>
|
|
140
140
|
{errors.end?.message}
|
|
141
141
|
</Form.Control.Feedback>
|
|
142
142
|
<Form.Text muted>
|
|
@@ -147,7 +147,7 @@ export function IntervalInput({
|
|
|
147
147
|
{start && (
|
|
148
148
|
<Form.Group controlId={recurrentId}>
|
|
149
149
|
<Form.Check
|
|
150
|
-
label=
|
|
150
|
+
label='Recurrent'
|
|
151
151
|
custom
|
|
152
152
|
checked={recurrent}
|
|
153
153
|
onChange={({ target: { checked } }) => {
|
|
@@ -169,7 +169,7 @@ export function IntervalInput({
|
|
|
169
169
|
<Form.Group>
|
|
170
170
|
<Controller
|
|
171
171
|
control={control}
|
|
172
|
-
name=
|
|
172
|
+
name='rrule'
|
|
173
173
|
render={({ field: { value, onChange } }) => (
|
|
174
174
|
<RecurrenceInput
|
|
175
175
|
value={value}
|
|
@@ -1066,12 +1066,12 @@ export const Default: Story<EditEventFormProps> = (args) => {
|
|
|
1066
1066
|
const hasPermission = boolean('hasPermission', true)
|
|
1067
1067
|
const [editProductSetId, setEditProductSetId] = useState<string>()
|
|
1068
1068
|
return (
|
|
1069
|
-
<div className=
|
|
1069
|
+
<div className='edit-event-dialog'>
|
|
1070
1070
|
<EventEditProductSetContext.Provider value={contextValue}>
|
|
1071
1071
|
<EditEventForm
|
|
1072
1072
|
{...args}
|
|
1073
1073
|
isExternalPaymentLinkEnabled
|
|
1074
|
-
title=
|
|
1074
|
+
title='Create new event'
|
|
1075
1075
|
categories={categories}
|
|
1076
1076
|
setEditProductSetId={setEditProductSetId}
|
|
1077
1077
|
editProductSetId={editProductSetId}
|
|
@@ -186,16 +186,16 @@ export const EditEventForm = ({
|
|
|
186
186
|
onApprove={onApproveDialog}
|
|
187
187
|
onDecline={onDeclineDialog}
|
|
188
188
|
/>
|
|
189
|
-
<h5 className=
|
|
189
|
+
<h5 className='edit-event-modal-title highlited-primary-title'>
|
|
190
190
|
{title}
|
|
191
191
|
</h5>
|
|
192
192
|
<FormProvider {...form}>
|
|
193
193
|
<Modal.Body
|
|
194
|
-
as=
|
|
194
|
+
as='form'
|
|
195
195
|
noValidate
|
|
196
196
|
onSubmit={handleSubmit(onSaveEvent, onErrorSubmit)}
|
|
197
197
|
>
|
|
198
|
-
<Form.Group controlId=
|
|
198
|
+
<Form.Group controlId='name'>
|
|
199
199
|
<Form.Label>{t('nameOfEvent')}</Form.Label>
|
|
200
200
|
<Form.Control
|
|
201
201
|
{...register('name', {
|
|
@@ -210,12 +210,12 @@ export const EditEventForm = ({
|
|
|
210
210
|
}),
|
|
211
211
|
},
|
|
212
212
|
})}
|
|
213
|
-
name=
|
|
213
|
+
name='name'
|
|
214
214
|
required
|
|
215
215
|
isInvalid={Boolean(errors.name)}
|
|
216
216
|
disabled={disabled}
|
|
217
217
|
/>
|
|
218
|
-
<Form.Control.Feedback type=
|
|
218
|
+
<Form.Control.Feedback type='invalid'>
|
|
219
219
|
{errors.name?.message}
|
|
220
220
|
</Form.Control.Feedback>
|
|
221
221
|
</Form.Group>
|
|
@@ -262,7 +262,7 @@ export const EditEventForm = ({
|
|
|
262
262
|
disabled={disabled}
|
|
263
263
|
/>
|
|
264
264
|
)}
|
|
265
|
-
name=
|
|
265
|
+
name='description'
|
|
266
266
|
/>
|
|
267
267
|
</Form.Group>
|
|
268
268
|
{/* key is used as a hack to make sure rrule is rendered correctly */}
|
|
@@ -277,7 +277,7 @@ export const EditEventForm = ({
|
|
|
277
277
|
<Form.Group>
|
|
278
278
|
<Accordion>
|
|
279
279
|
<CollapsibleInputGroup
|
|
280
|
-
eventKey=
|
|
280
|
+
eventKey='categories'
|
|
281
281
|
label={t('categories')}
|
|
282
282
|
description={
|
|
283
283
|
<CategoriesInputDescription categories={categories} />
|
|
@@ -303,7 +303,7 @@ export const EditEventForm = ({
|
|
|
303
303
|
disabled={disabled}
|
|
304
304
|
/>
|
|
305
305
|
)}
|
|
306
|
-
name=
|
|
306
|
+
name='termsAndConditions'
|
|
307
307
|
/>
|
|
308
308
|
</Form.Group>
|
|
309
309
|
|
|
@@ -319,25 +319,25 @@ export const EditEventForm = ({
|
|
|
319
319
|
return validateURL(url, t('Design:externalPaymentLink'))
|
|
320
320
|
},
|
|
321
321
|
})}
|
|
322
|
-
name=
|
|
323
|
-
type=
|
|
324
|
-
inputMode=
|
|
322
|
+
name='externalPaymentLink'
|
|
323
|
+
type='url'
|
|
324
|
+
inputMode='url'
|
|
325
325
|
disabled={disabled}
|
|
326
326
|
isInvalid={Boolean(errors.externalPaymentLink)}
|
|
327
327
|
/>
|
|
328
|
-
<Form.Control.Feedback type=
|
|
328
|
+
<Form.Control.Feedback type='invalid'>
|
|
329
329
|
{errors.externalPaymentLink?.message}
|
|
330
330
|
</Form.Control.Feedback>
|
|
331
331
|
</Form.Group>
|
|
332
332
|
)}
|
|
333
333
|
|
|
334
|
-
<Form.Group controlId={visibilityId} className=
|
|
334
|
+
<Form.Group controlId={visibilityId} className='mt-5'>
|
|
335
335
|
<Form.Label>
|
|
336
336
|
{t('public')} / {t('private')}
|
|
337
337
|
</Form.Label>
|
|
338
338
|
<Controller
|
|
339
339
|
control={control}
|
|
340
|
-
name=
|
|
340
|
+
name='visible'
|
|
341
341
|
rules={{
|
|
342
342
|
validate: (value) => {
|
|
343
343
|
if (typeof value !== 'boolean') {
|
|
@@ -355,20 +355,20 @@ export const EditEventForm = ({
|
|
|
355
355
|
return (
|
|
356
356
|
<>
|
|
357
357
|
<Form.Control
|
|
358
|
-
as=
|
|
358
|
+
as='select'
|
|
359
359
|
onChange={({ target: { value } }) => {
|
|
360
360
|
field.onChange(!value ? value : value === 'true')
|
|
361
361
|
}}
|
|
362
362
|
isInvalid={invalid}
|
|
363
|
-
defaultValue=
|
|
363
|
+
defaultValue=''
|
|
364
364
|
value={fieldValue}
|
|
365
365
|
disabled={disabled}
|
|
366
366
|
>
|
|
367
|
-
<option value=
|
|
368
|
-
<option value=
|
|
369
|
-
<option value=
|
|
367
|
+
<option value=''>{t('Design:pleaseChooseOne')}</option>
|
|
368
|
+
<option value='false'>{t('Design:private')}</option>
|
|
369
|
+
<option value='true'>{t('Design:public')}</option>
|
|
370
370
|
</Form.Control>
|
|
371
|
-
<Form.Control.Feedback type=
|
|
371
|
+
<Form.Control.Feedback type='invalid'>
|
|
372
372
|
{error?.message}
|
|
373
373
|
</Form.Control.Feedback>
|
|
374
374
|
</>
|
|
@@ -387,12 +387,12 @@ export const EditEventForm = ({
|
|
|
387
387
|
validate: (url) =>
|
|
388
388
|
validateURL(url, t('Design:integrationUrl')),
|
|
389
389
|
})}
|
|
390
|
-
name=
|
|
390
|
+
name='integrationUrl'
|
|
391
391
|
isInvalid={Boolean(errors.integrationUrl)}
|
|
392
392
|
placeholder={t('Design:integrationUrl')}
|
|
393
393
|
disabled={disabled}
|
|
394
394
|
/>
|
|
395
|
-
<Form.Control.Feedback type=
|
|
395
|
+
<Form.Control.Feedback type='invalid'>
|
|
396
396
|
{errors.integrationUrl?.message}
|
|
397
397
|
</Form.Control.Feedback>
|
|
398
398
|
</Form.Group>
|
|
@@ -415,8 +415,8 @@ export const EditEventForm = ({
|
|
|
415
415
|
isImagesLoading ||
|
|
416
416
|
isCoverImagesLoading
|
|
417
417
|
}
|
|
418
|
-
className=
|
|
419
|
-
type=
|
|
418
|
+
className='save-event'
|
|
419
|
+
type='submit'
|
|
420
420
|
>
|
|
421
421
|
{formState.isSubmitting
|
|
422
422
|
? `${t('saveAndAdd')}...`
|
|
@@ -37,7 +37,7 @@ export const ProductSetShortForm = ({
|
|
|
37
37
|
const nameId = useId()
|
|
38
38
|
|
|
39
39
|
return (
|
|
40
|
-
<Col md={12} sm={12} className=
|
|
40
|
+
<Col md={12} sm={12} className='p-0 mt-5'>
|
|
41
41
|
<FormProvider {...form}>
|
|
42
42
|
<Form onSubmit={form.handleSubmit(onSubmit)}>
|
|
43
43
|
<Form.Group controlId={nameId}>
|
|
@@ -49,7 +49,7 @@ export const ProductSetShortForm = ({
|
|
|
49
49
|
placeholder={t('Design:placeholderProductSetName')}
|
|
50
50
|
isInvalid={!!errors.name}
|
|
51
51
|
/>
|
|
52
|
-
<Form.Control.Feedback type=
|
|
52
|
+
<Form.Control.Feedback type='invalid'>
|
|
53
53
|
{HookFormService.hasError(errors.name, 'required') &&
|
|
54
54
|
t('Validation:fieldRequired', {
|
|
55
55
|
attribute: t('Design:name'),
|
|
@@ -61,7 +61,7 @@ export const ProductSetShortForm = ({
|
|
|
61
61
|
{/* <DateAndRecurrenceInput /> */}
|
|
62
62
|
|
|
63
63
|
{hasPermission && (
|
|
64
|
-
<Button disabled={formState.isSubmitting} type=
|
|
64
|
+
<Button disabled={formState.isSubmitting} type='submit'>
|
|
65
65
|
{formState.isSubmitting ? `${t('save')}...` : t('save')}
|
|
66
66
|
</Button>
|
|
67
67
|
)}
|
|
@@ -42,14 +42,14 @@ export const SaleDeadline = ({ disabled = false }: { disabled?: boolean }) => {
|
|
|
42
42
|
}, [saleDeadline])
|
|
43
43
|
|
|
44
44
|
return (
|
|
45
|
-
<Form.Group className=
|
|
45
|
+
<Form.Group className='sales-deadline'>
|
|
46
46
|
<Form.Label>{t('Design:salesDeadline')}</Form.Label>
|
|
47
|
-
<Form.Control.Feedback type=
|
|
47
|
+
<Form.Control.Feedback type='invalid'>
|
|
48
48
|
{errors.saleDeadline?.message}
|
|
49
49
|
</Form.Control.Feedback>
|
|
50
50
|
<Controller
|
|
51
51
|
control={control}
|
|
52
|
-
name=
|
|
52
|
+
name='saleDeadline'
|
|
53
53
|
render={({
|
|
54
54
|
field: { value, onChange },
|
|
55
55
|
fieldState: { invalid, error },
|
|
@@ -111,9 +111,9 @@ export const SaleDeadline = ({ disabled = false }: { disabled?: boolean }) => {
|
|
|
111
111
|
|
|
112
112
|
return (
|
|
113
113
|
<>
|
|
114
|
-
<Form.Group className=
|
|
114
|
+
<Form.Group className='d-flex flex-column flex-grow-1 align-items-start'>
|
|
115
115
|
<Switch
|
|
116
|
-
name=
|
|
116
|
+
name='sale-deadline'
|
|
117
117
|
options={SALE_DEADLINES_EVENT_START_TYPES.map(({ type }) => ({
|
|
118
118
|
id: type,
|
|
119
119
|
value: t(`Design:${type}`),
|
|
@@ -123,8 +123,8 @@ export const SaleDeadline = ({ disabled = false }: { disabled?: boolean }) => {
|
|
|
123
123
|
disabled={disabled}
|
|
124
124
|
/>
|
|
125
125
|
</Form.Group>
|
|
126
|
-
<div className=
|
|
127
|
-
<Form.Group className=
|
|
126
|
+
<div className='d-flex'>
|
|
127
|
+
<Form.Group className='d-flex flex-column col-4 pl-0'>
|
|
128
128
|
<Form.Label>{t('Design:saleDays')}</Form.Label>
|
|
129
129
|
<NumberInput
|
|
130
130
|
value={days}
|
|
@@ -135,7 +135,7 @@ export const SaleDeadline = ({ disabled = false }: { disabled?: boolean }) => {
|
|
|
135
135
|
disabled={disabled}
|
|
136
136
|
/>
|
|
137
137
|
</Form.Group>
|
|
138
|
-
<Form.Group className=
|
|
138
|
+
<Form.Group className='d-flex flex-column col-4 pl-0'>
|
|
139
139
|
<Form.Label>{t('Design:saleHours')}</Form.Label>
|
|
140
140
|
<NumberInput
|
|
141
141
|
value={hours}
|
|
@@ -147,7 +147,7 @@ export const SaleDeadline = ({ disabled = false }: { disabled?: boolean }) => {
|
|
|
147
147
|
disabled={disabled}
|
|
148
148
|
/>
|
|
149
149
|
</Form.Group>
|
|
150
|
-
<Form.Group className=
|
|
150
|
+
<Form.Group className='d-flex flex-column col-4 pl-0'>
|
|
151
151
|
<Form.Label>{t('Design:saleMinutes')}</Form.Label>
|
|
152
152
|
<NumberInput
|
|
153
153
|
value={minutes}
|
|
@@ -161,8 +161,8 @@ export const SaleDeadline = ({ disabled = false }: { disabled?: boolean }) => {
|
|
|
161
161
|
</Form.Group>
|
|
162
162
|
</div>
|
|
163
163
|
{invalid && (
|
|
164
|
-
<div className=
|
|
165
|
-
<span className=
|
|
164
|
+
<div className='d-flex w-100'>
|
|
165
|
+
<span className='invalid-feedback-message'>
|
|
166
166
|
{error?.message}
|
|
167
167
|
</span>
|
|
168
168
|
</div>
|
package/src/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.tsx
CHANGED
|
@@ -118,23 +118,23 @@ export const SelectEventProductSet = ({
|
|
|
118
118
|
|
|
119
119
|
return (
|
|
120
120
|
<>
|
|
121
|
-
<div className=
|
|
121
|
+
<div className='d-flex mt-5 mb-5 align-items-end'>
|
|
122
122
|
<Form.Group
|
|
123
123
|
controlId={productSetsId}
|
|
124
|
-
className=
|
|
124
|
+
className='d-flex flex-column w-100 choose-product-set-container '
|
|
125
125
|
>
|
|
126
126
|
<Form.Label>{t('Design:selectProductSet')}</Form.Label>
|
|
127
127
|
|
|
128
128
|
<Controller
|
|
129
129
|
control={control}
|
|
130
|
-
name=
|
|
130
|
+
name='productSetId'
|
|
131
131
|
render={() => (
|
|
132
132
|
<>
|
|
133
|
-
<div className=
|
|
133
|
+
<div className='d-flex align-items-center flex-row w-100'>
|
|
134
134
|
<ConfirmModal>
|
|
135
135
|
{(confirm) => (
|
|
136
136
|
<Typeahead
|
|
137
|
-
name=
|
|
137
|
+
name='productSetId'
|
|
138
138
|
value={selectedProductSetTypeheadValue}
|
|
139
139
|
containerStyles={{ width: '100%' }}
|
|
140
140
|
onChangeValue={(typeheadValue) => {
|
|
@@ -147,11 +147,11 @@ export const SelectEventProductSet = ({
|
|
|
147
147
|
)}
|
|
148
148
|
</ConfirmModal>
|
|
149
149
|
|
|
150
|
-
<div className=
|
|
150
|
+
<div className='buttons-container'>
|
|
151
151
|
{!showEditProductSet && !editedProductSet && (
|
|
152
152
|
<Button
|
|
153
|
-
variant=
|
|
154
|
-
className=
|
|
153
|
+
variant=''
|
|
154
|
+
className='btn product-set-button mr-4'
|
|
155
155
|
onClick={handleCreateProductSet}
|
|
156
156
|
>
|
|
157
157
|
{t('addNewProductSet')}
|
|
@@ -159,8 +159,8 @@ export const SelectEventProductSet = ({
|
|
|
159
159
|
)}
|
|
160
160
|
{showOverrideProductSet && (
|
|
161
161
|
<Button
|
|
162
|
-
variant=
|
|
163
|
-
className=
|
|
162
|
+
variant=''
|
|
163
|
+
className='btn product-set-button '
|
|
164
164
|
onClick={onEditProductSet}
|
|
165
165
|
>
|
|
166
166
|
{isOverrideProductSet
|
|
@@ -170,8 +170,8 @@ export const SelectEventProductSet = ({
|
|
|
170
170
|
)}
|
|
171
171
|
{showEditProductSet && (
|
|
172
172
|
<Button
|
|
173
|
-
variant=
|
|
174
|
-
className=
|
|
173
|
+
variant=''
|
|
174
|
+
className='btn product-set-button'
|
|
175
175
|
onClick={revertEditProductSet}
|
|
176
176
|
>
|
|
177
177
|
{t('cancelAndRevert')}
|
|
@@ -179,8 +179,8 @@ export const SelectEventProductSet = ({
|
|
|
179
179
|
)}
|
|
180
180
|
{!showEditProductSet && editedProductSet && (
|
|
181
181
|
<Button
|
|
182
|
-
variant=
|
|
183
|
-
className=
|
|
182
|
+
variant=''
|
|
183
|
+
className='btn product-set-button ml-4 text-danger'
|
|
184
184
|
onClick={revertEditProductSet}
|
|
185
185
|
>
|
|
186
186
|
{t('undoChanges')}
|
|
@@ -189,7 +189,7 @@ export const SelectEventProductSet = ({
|
|
|
189
189
|
</div>
|
|
190
190
|
</div>
|
|
191
191
|
|
|
192
|
-
<Form.Control.Feedback type=
|
|
192
|
+
<Form.Control.Feedback type='invalid'>
|
|
193
193
|
{errors?.productSetId?.message}
|
|
194
194
|
</Form.Control.Feedback>
|
|
195
195
|
</>
|
|
@@ -102,14 +102,14 @@ export const EditEventProductSet = ({
|
|
|
102
102
|
providerHasMap={settings?.providerHasMap}
|
|
103
103
|
venueMapSets={venueMapSets}
|
|
104
104
|
>
|
|
105
|
-
<div className=
|
|
105
|
+
<div className='edit-product-set-warning'>
|
|
106
106
|
{t('editProductSetWarning', {
|
|
107
107
|
attribute: productSetData?.name,
|
|
108
108
|
})}
|
|
109
109
|
</div>
|
|
110
|
-
<div className=
|
|
110
|
+
<div className='product-set-border' />
|
|
111
111
|
<FormProvider {...form}>
|
|
112
|
-
<Form className=
|
|
112
|
+
<Form className='mt-6'>
|
|
113
113
|
<ProductSetControl
|
|
114
114
|
smsTemplates={getFilteredTemplates(
|
|
115
115
|
smsTemplates,
|
|
@@ -132,12 +132,12 @@ export const EditEventProductSet = ({
|
|
|
132
132
|
/>
|
|
133
133
|
<Button
|
|
134
134
|
disabled={isLoading}
|
|
135
|
-
className=
|
|
135
|
+
className='save-event mt-4'
|
|
136
136
|
onClick={handleSubmit(onSubmit)}
|
|
137
137
|
>
|
|
138
138
|
{t('update')}
|
|
139
139
|
</Button>
|
|
140
|
-
<div className=
|
|
140
|
+
<div className='edit-product-set-warning mt-4'>
|
|
141
141
|
{t('recurrentOverridesWarining')}
|
|
142
142
|
</div>
|
|
143
143
|
</Form>
|