@licklist/design 0.69.1 → 0.69.2
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/.prettierrc +5 -1
- package/dist/events/edit-event-modal/IntervalInput.js +1 -1
- package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.js +2 -2
- package/dist/iframe/order-process/components/Timer/Timer.js +1 -1
- package/dist/modals/dialog/Dialog.js +2 -2
- package/dist/product-set/form/MobileFooter.d.ts.map +1 -1
- package/dist/recurring-date-picker-input/utils.js +6 -4
- package/dist/root.css +51 -51
- package/dist/sales/manual-booking/search-user/SearchUser.js +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/package.json +2 -2
- package/postcss.config.cjs +2 -2
- 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/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/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 +16 -16
- package/src/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.tsx +5 -5
- 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 +6 -6
- 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/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 +18 -18
- 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 +23 -23
- 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 +3 -4
- package/src/product-set/form/ProductCategoriesControl.tsx +6 -6
- package/src/product-set/form/ProductSetForm.tsx +4 -4
- package/src/product-set/form/ProductSetFormPopover.tsx +4 -4
- 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/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 -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/root.css +51 -51
- 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 +40 -40
- 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/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 +2 -1
- package/src/tiptap-editor/TipTapMenu/extensions/utils.ts +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
- package/tailwind.config.js +3 -6
- package/yarn.lock +40 -40
|
@@ -31,16 +31,16 @@ export function CollapsibleInputGroup({
|
|
|
31
31
|
const isInvalid = Boolean(error)
|
|
32
32
|
|
|
33
33
|
return (
|
|
34
|
-
<Card className=
|
|
34
|
+
<Card className='rounded-0'>
|
|
35
35
|
<Accordion.Toggle
|
|
36
36
|
as={Card.Header}
|
|
37
37
|
eventKey={eventKey}
|
|
38
38
|
alwaysopen={alwaysOpen}
|
|
39
|
-
role=
|
|
39
|
+
role='button'
|
|
40
40
|
className={clsx('accordion-form-control', isInvalid && 'is-invalid')}
|
|
41
41
|
>
|
|
42
|
-
<div className=
|
|
43
|
-
<h5 className=
|
|
42
|
+
<div className='accordion-form-control-header'>
|
|
43
|
+
<h5 className='mb-0 pl-3'>{label}</h5>
|
|
44
44
|
{currentEventKey === eventKey ? (
|
|
45
45
|
<FaChevronUp size={20} />
|
|
46
46
|
) : (
|
|
@@ -48,10 +48,10 @@ export function CollapsibleInputGroup({
|
|
|
48
48
|
)}
|
|
49
49
|
</div>
|
|
50
50
|
<Collapse in={currentEventKey !== eventKey}>
|
|
51
|
-
<div className=
|
|
51
|
+
<div className='pl-3'>{description}</div>
|
|
52
52
|
</Collapse>
|
|
53
53
|
{isInvalid && (
|
|
54
|
-
<Form.Control.Feedback type=
|
|
54
|
+
<Form.Control.Feedback type='invalid' className='pl-3'>
|
|
55
55
|
{error}
|
|
56
56
|
</Form.Control.Feedback>
|
|
57
57
|
)}
|
|
@@ -11,7 +11,7 @@ interface FieldItemProps {
|
|
|
11
11
|
|
|
12
12
|
export function FieldItem({ label, icon, onClick }: FieldItemProps) {
|
|
13
13
|
return (
|
|
14
|
-
<div className=
|
|
14
|
+
<div className='custom-field-item' onClick={onClick}>
|
|
15
15
|
{icon}
|
|
16
16
|
<h6>{label}</h6>
|
|
17
17
|
</div>
|
|
@@ -18,14 +18,14 @@ export function SelectFieldModal({
|
|
|
18
18
|
|
|
19
19
|
return (
|
|
20
20
|
<Modal
|
|
21
|
-
size=
|
|
21
|
+
size='lg'
|
|
22
22
|
centered
|
|
23
23
|
show={isVisible}
|
|
24
24
|
onHide={onHide}
|
|
25
|
-
className=
|
|
25
|
+
className='p-3 border-0'
|
|
26
26
|
>
|
|
27
|
-
<h5 className=
|
|
28
|
-
<div className=
|
|
27
|
+
<h5 className='mt-5 p-2 ml-3'>Select Field</h5>
|
|
28
|
+
<div className='d-flex flex-row flex-wrap p-3 my-3'>
|
|
29
29
|
{allFieldTypes.map((fieldKey) => {
|
|
30
30
|
const { label, icon } = FIELD_TYPES[fieldKey]
|
|
31
31
|
const id = uniqueId(fieldKey)
|
|
@@ -152,11 +152,11 @@ export const CustomFieldSet = ({
|
|
|
152
152
|
return (
|
|
153
153
|
<FormProvider {...form}>
|
|
154
154
|
<Form onSubmit={handleSubmit(onSubmit)}>
|
|
155
|
-
<Form.Control type=
|
|
155
|
+
<Form.Control type='hidden' {...register('id')} />
|
|
156
156
|
<Form.Group>
|
|
157
157
|
<Form.Label>{t('fieldSetName')}</Form.Label>
|
|
158
158
|
<Form.Control
|
|
159
|
-
type=
|
|
159
|
+
type='fieldSetName'
|
|
160
160
|
placeholder={t('fieldSetName')}
|
|
161
161
|
isInvalid={!!errors.name}
|
|
162
162
|
{...register('name', {
|
|
@@ -178,7 +178,7 @@ export const CustomFieldSet = ({
|
|
|
178
178
|
})}
|
|
179
179
|
/>
|
|
180
180
|
|
|
181
|
-
<Form.Control.Feedback type=
|
|
181
|
+
<Form.Control.Feedback type='invalid'>
|
|
182
182
|
{HookFormService.hasError(errors.name, 'required') &&
|
|
183
183
|
t('Validation:fieldRequired', {
|
|
184
184
|
attribute: t('fieldSetName'),
|
|
@@ -223,18 +223,18 @@ export const CustomFieldSet = ({
|
|
|
223
223
|
title={t('addField')}
|
|
224
224
|
onClick={() => setVisibleModal(true)}
|
|
225
225
|
/>
|
|
226
|
-
<div className=
|
|
226
|
+
<div className='manual-form-error'>
|
|
227
227
|
{errors[CUSTOM_FIELDS] && errors[CUSTOM_FIELDS].message}
|
|
228
228
|
</div>
|
|
229
|
-
<div className=
|
|
229
|
+
<div className='d-flex justify-content-between'>
|
|
230
230
|
<Button
|
|
231
|
-
variant=
|
|
231
|
+
variant='primary'
|
|
232
232
|
disabled={Object.keys(errors).length > 0}
|
|
233
|
-
type=
|
|
233
|
+
type='submit'
|
|
234
234
|
>
|
|
235
235
|
{t('save')}
|
|
236
236
|
</Button>
|
|
237
|
-
<Button variant=
|
|
237
|
+
<Button variant='danger' onClick={removeFieldSet}>
|
|
238
238
|
{t('delete')}
|
|
239
239
|
</Button>
|
|
240
240
|
</div>
|
|
@@ -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}
|
|
@@ -90,22 +90,22 @@ export function IntervalInput({
|
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
const onChangeRecurrent = (checked: boolean) => {
|
|
93
|
-
setRecurrent(checked)
|
|
93
|
+
setRecurrent(checked)
|
|
94
94
|
if (!checked) {
|
|
95
|
-
setValue(
|
|
95
|
+
setValue('rrule', null)
|
|
96
96
|
}
|
|
97
|
-
}
|
|
97
|
+
}
|
|
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,11 +147,11 @@ 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 } }) => {
|
|
154
|
-
onChangeRecurrent(checked)
|
|
154
|
+
onChangeRecurrent(checked)
|
|
155
155
|
}}
|
|
156
156
|
disabled={disabled || Boolean(editedProductSet)}
|
|
157
157
|
/>
|
|
@@ -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
|
)}
|