@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
|
@@ -69,7 +69,7 @@ export const UserForm = ({
|
|
|
69
69
|
|
|
70
70
|
return (
|
|
71
71
|
/* @ts-expect-error 2345 */
|
|
72
|
-
<Form className=
|
|
72
|
+
<Form className='company-user-form' onSubmit={handleSubmit(onSubmit)}>
|
|
73
73
|
<Row>
|
|
74
74
|
<Col xl={6} lg={6} sm={12}>
|
|
75
75
|
<Form.Group>
|
|
@@ -83,7 +83,7 @@ export const UserForm = ({
|
|
|
83
83
|
disabled={isLoading || Boolean(defaultValues.email)}
|
|
84
84
|
/>
|
|
85
85
|
|
|
86
|
-
<Form.Control.Feedback type=
|
|
86
|
+
<Form.Control.Feedback type='invalid'>
|
|
87
87
|
{HookFormService.hasError(errors.email, 'required') &&
|
|
88
88
|
t('Validation:fieldRequired', {
|
|
89
89
|
attribute: t('User:email'),
|
|
@@ -108,7 +108,7 @@ export const UserForm = ({
|
|
|
108
108
|
className={clsx('roles-form-group', !!error && 'is-invalid')}
|
|
109
109
|
>
|
|
110
110
|
<Form.Label>{t('User:role')}*</Form.Label>
|
|
111
|
-
<div className=
|
|
111
|
+
<div className='roles-wrapper'>
|
|
112
112
|
{rolesOptions.map(
|
|
113
113
|
({ value, label, description, component }) => (
|
|
114
114
|
<button
|
|
@@ -117,22 +117,22 @@ export const UserForm = ({
|
|
|
117
117
|
className={clsx('role', {
|
|
118
118
|
active: fieldValue === value,
|
|
119
119
|
})}
|
|
120
|
-
type=
|
|
120
|
+
type='button'
|
|
121
121
|
>
|
|
122
122
|
<Logo logo={component} />
|
|
123
|
-
<p className=
|
|
124
|
-
<p className=
|
|
123
|
+
<p className='label'>{label}</p>
|
|
124
|
+
<p className='description'>{description}</p>
|
|
125
125
|
</button>
|
|
126
126
|
),
|
|
127
127
|
)}
|
|
128
128
|
</div>
|
|
129
|
-
<Form.Control.Feedback type=
|
|
129
|
+
<Form.Control.Feedback type='invalid'>
|
|
130
130
|
{error?.message}
|
|
131
131
|
</Form.Control.Feedback>
|
|
132
132
|
</Form.Group>
|
|
133
133
|
)}
|
|
134
134
|
control={control}
|
|
135
|
-
name=
|
|
135
|
+
name='role'
|
|
136
136
|
rules={{
|
|
137
137
|
required: t('Validation:fieldRequired', {
|
|
138
138
|
fieldName: t('User:role'),
|
|
@@ -142,7 +142,7 @@ export const UserForm = ({
|
|
|
142
142
|
</Col>
|
|
143
143
|
</Row>
|
|
144
144
|
{hasPermission && (
|
|
145
|
-
<Button type=
|
|
145
|
+
<Button type='submit' size='lg' disabled={isLoading}>
|
|
146
146
|
{defaultValues.email ? t('User:submit') : t('Design:addUser')}
|
|
147
147
|
</Button>
|
|
148
148
|
)}
|
|
@@ -21,33 +21,33 @@ export function LocationInput({ path }: { path: TimeZonePath }) {
|
|
|
21
21
|
|
|
22
22
|
return (
|
|
23
23
|
<>
|
|
24
|
-
<input {...register('location.latitude')} type=
|
|
25
|
-
<input {...register('location.longitude')} type=
|
|
24
|
+
<input {...register('location.latitude')} type='hidden' />
|
|
25
|
+
<input {...register('location.longitude')} type='hidden' />
|
|
26
26
|
<FormGroupControll
|
|
27
27
|
error={errors?.location?.street}
|
|
28
|
-
name=
|
|
28
|
+
name='location.street'
|
|
29
29
|
label={t('locationStreet')}
|
|
30
30
|
/>
|
|
31
31
|
<FormGroupControll
|
|
32
32
|
error={errors?.location?.city}
|
|
33
|
-
name=
|
|
33
|
+
name='location.city'
|
|
34
34
|
label={t('locationCity')}
|
|
35
35
|
/>
|
|
36
36
|
<FormGroupControll
|
|
37
37
|
error={errors?.location?.state}
|
|
38
|
-
name=
|
|
38
|
+
name='location.state'
|
|
39
39
|
label={t('locationState')}
|
|
40
40
|
/>
|
|
41
41
|
<FormGroupControll
|
|
42
42
|
error={errors?.location?.postcode}
|
|
43
|
-
name=
|
|
43
|
+
name='location.postcode'
|
|
44
44
|
label={t('locationPostcode')}
|
|
45
45
|
/>
|
|
46
46
|
|
|
47
47
|
<Form.Group controlId={countryId}>
|
|
48
48
|
<Form.Label>{t('locationCountry')}</Form.Label>
|
|
49
49
|
<CountryCodeSelect
|
|
50
|
-
fieldName=
|
|
50
|
+
fieldName='location.country'
|
|
51
51
|
errorLabel={t('locationCountry')}
|
|
52
52
|
error={errors?.location?.country?.message}
|
|
53
53
|
/>
|
|
@@ -56,7 +56,7 @@ export function LocationInput({ path }: { path: TimeZonePath }) {
|
|
|
56
56
|
{isLoading ? (
|
|
57
57
|
<BlockLoader />
|
|
58
58
|
) : (
|
|
59
|
-
<Form.Group controlId=
|
|
59
|
+
<Form.Group controlId='timeZoneId'>
|
|
60
60
|
<Form.Label>{t('locationTimeZone')}</Form.Label>
|
|
61
61
|
<Form.Control
|
|
62
62
|
{...register('timeZoneId', {
|
|
@@ -64,11 +64,11 @@ export function LocationInput({ path }: { path: TimeZonePath }) {
|
|
|
64
64
|
attribute: t('locationTimeZone'),
|
|
65
65
|
}) as string,
|
|
66
66
|
})}
|
|
67
|
-
as=
|
|
67
|
+
as='select'
|
|
68
68
|
custom
|
|
69
69
|
isInvalid={Boolean(errors?.timeZoneId?.message)}
|
|
70
70
|
>
|
|
71
|
-
<option key=
|
|
71
|
+
<option key='' value='' disabled>
|
|
72
72
|
{t('chooseTimeZone')}
|
|
73
73
|
</option>
|
|
74
74
|
{data.map((zone) => (
|
|
@@ -77,7 +77,7 @@ export function LocationInput({ path }: { path: TimeZonePath }) {
|
|
|
77
77
|
</option>
|
|
78
78
|
))}
|
|
79
79
|
</Form.Control>
|
|
80
|
-
<Form.Control.Feedback type=
|
|
80
|
+
<Form.Control.Feedback type='invalid'>
|
|
81
81
|
{errors?.timeZoneId?.message}
|
|
82
82
|
</Form.Control.Feedback>
|
|
83
83
|
</Form.Group>
|
|
@@ -7,7 +7,7 @@ export const FormGroupControll = ({ name, label, error }) => {
|
|
|
7
7
|
<Form.Group>
|
|
8
8
|
<Form.Label>{label}</Form.Label>
|
|
9
9
|
<Form.Control {...register(name)} isInvalid={!!error} />
|
|
10
|
-
<Form.Control.Feedback type=
|
|
10
|
+
<Form.Control.Feedback type='invalid'>
|
|
11
11
|
{error?.message}
|
|
12
12
|
</Form.Control.Feedback>
|
|
13
13
|
</Form.Group>
|
|
@@ -64,11 +64,11 @@ export function ProviderDetailsInput({
|
|
|
64
64
|
attribute: t('Design:name'),
|
|
65
65
|
}) as string,
|
|
66
66
|
})}
|
|
67
|
-
name=
|
|
67
|
+
name='name'
|
|
68
68
|
required
|
|
69
69
|
isInvalid={Boolean(errors.name)}
|
|
70
70
|
/>
|
|
71
|
-
<Form.Control.Feedback type=
|
|
71
|
+
<Form.Control.Feedback type='invalid'>
|
|
72
72
|
{errors.name?.message}
|
|
73
73
|
</Form.Control.Feedback>
|
|
74
74
|
</Form.Group>
|
|
@@ -87,12 +87,12 @@ export function ProviderDetailsInput({
|
|
|
87
87
|
return true
|
|
88
88
|
},
|
|
89
89
|
})}
|
|
90
|
-
as=
|
|
91
|
-
name=
|
|
90
|
+
as='textarea'
|
|
91
|
+
name='description'
|
|
92
92
|
rows={6}
|
|
93
93
|
isInvalid={Boolean(errors.description)}
|
|
94
94
|
/>
|
|
95
|
-
<Form.Control.Feedback type=
|
|
95
|
+
<Form.Control.Feedback type='invalid'>
|
|
96
96
|
{errors.description?.message}
|
|
97
97
|
</Form.Control.Feedback>
|
|
98
98
|
</Form.Group>
|
|
@@ -111,12 +111,12 @@ export function ProviderDetailsInput({
|
|
|
111
111
|
}),
|
|
112
112
|
},
|
|
113
113
|
})}
|
|
114
|
-
name=
|
|
115
|
-
type=
|
|
116
|
-
inputMode=
|
|
114
|
+
name='email'
|
|
115
|
+
type='email'
|
|
116
|
+
inputMode='email'
|
|
117
117
|
isInvalid={Boolean(errors.email)}
|
|
118
118
|
/>
|
|
119
|
-
<Form.Control.Feedback type=
|
|
119
|
+
<Form.Control.Feedback type='invalid'>
|
|
120
120
|
{errors.email?.message}
|
|
121
121
|
</Form.Control.Feedback>
|
|
122
122
|
</Form.Group>
|
|
@@ -129,12 +129,12 @@ export function ProviderDetailsInput({
|
|
|
129
129
|
attribute: t('Design:phone'),
|
|
130
130
|
}) as string,
|
|
131
131
|
})}
|
|
132
|
-
name=
|
|
133
|
-
type=
|
|
134
|
-
inputMode=
|
|
132
|
+
name='phone'
|
|
133
|
+
type='tel'
|
|
134
|
+
inputMode='tel'
|
|
135
135
|
isInvalid={Boolean(errors.phone)}
|
|
136
136
|
/>
|
|
137
|
-
<Form.Control.Feedback type=
|
|
137
|
+
<Form.Control.Feedback type='invalid'>
|
|
138
138
|
{errors.phone?.message}
|
|
139
139
|
</Form.Control.Feedback>
|
|
140
140
|
</Form.Group>
|
|
@@ -150,12 +150,12 @@ export function ProviderDetailsInput({
|
|
|
150
150
|
}),
|
|
151
151
|
},
|
|
152
152
|
})}
|
|
153
|
-
name=
|
|
154
|
-
type=
|
|
155
|
-
inputMode=
|
|
153
|
+
name='website'
|
|
154
|
+
type='url'
|
|
155
|
+
inputMode='url'
|
|
156
156
|
isInvalid={Boolean(errors.website)}
|
|
157
157
|
/>
|
|
158
|
-
<Form.Control.Feedback type=
|
|
158
|
+
<Form.Control.Feedback type='invalid'>
|
|
159
159
|
{errors.website?.message}
|
|
160
160
|
</Form.Control.Feedback>
|
|
161
161
|
</Form.Group>
|
|
@@ -164,7 +164,7 @@ export function ProviderDetailsInput({
|
|
|
164
164
|
<Form.Group controlId={companyId}>
|
|
165
165
|
<Form.Label>{t('Design:company')}</Form.Label>
|
|
166
166
|
<Typeahead
|
|
167
|
-
name=
|
|
167
|
+
name='company'
|
|
168
168
|
options={companiesOptions}
|
|
169
169
|
placeholder={t('App:select')}
|
|
170
170
|
noOptionsMessage={t('App:noMatchesFound')}
|
|
@@ -94,7 +94,7 @@ export function ProviderForm({
|
|
|
94
94
|
return (
|
|
95
95
|
<FormProvider {...form}>
|
|
96
96
|
<Form
|
|
97
|
-
className=
|
|
97
|
+
className='d-flex flex-column'
|
|
98
98
|
noValidate
|
|
99
99
|
onSubmit={handleSubmit(onSubmit)}
|
|
100
100
|
>
|
|
@@ -102,9 +102,9 @@ export function ProviderForm({
|
|
|
102
102
|
linkTypes={linkTypes}
|
|
103
103
|
companiesOptions={companiesOptions}
|
|
104
104
|
/>
|
|
105
|
-
<Accordion className=
|
|
105
|
+
<Accordion className='my-4'>
|
|
106
106
|
<CollapsibleInputGroup
|
|
107
|
-
eventKey=
|
|
107
|
+
eventKey='location'
|
|
108
108
|
label={t('location')}
|
|
109
109
|
description={<LocationInputDescription path={path} />}
|
|
110
110
|
error={errors?.location?.country?.message}
|
|
@@ -113,7 +113,7 @@ export function ProviderForm({
|
|
|
113
113
|
</CollapsibleInputGroup>
|
|
114
114
|
{categories && categories.length > 0 && (
|
|
115
115
|
<CollapsibleInputGroup
|
|
116
|
-
eventKey=
|
|
116
|
+
eventKey='categories'
|
|
117
117
|
label={t('categories')}
|
|
118
118
|
description={
|
|
119
119
|
<CategoriesInputDescription categories={categories} />
|
|
@@ -151,17 +151,17 @@ export function ProviderForm({
|
|
|
151
151
|
})}
|
|
152
152
|
{hasPermission && (
|
|
153
153
|
<Button
|
|
154
|
-
type=
|
|
154
|
+
type='submit'
|
|
155
155
|
disabled={isSubmitting || isImagesLoading || isCoverImagesLoading}
|
|
156
|
-
className=
|
|
156
|
+
className='d-flex align-items-center align-self-end'
|
|
157
157
|
>
|
|
158
158
|
{isSubmitting && (
|
|
159
159
|
<Spinner
|
|
160
|
-
animation=
|
|
161
|
-
size=
|
|
162
|
-
role=
|
|
163
|
-
aria-hidden=
|
|
164
|
-
className=
|
|
160
|
+
animation='border'
|
|
161
|
+
size='sm'
|
|
162
|
+
role='status'
|
|
163
|
+
aria-hidden='true'
|
|
164
|
+
className='mr-2'
|
|
165
165
|
/>
|
|
166
166
|
)}
|
|
167
167
|
{t(intent)}
|
|
@@ -34,13 +34,13 @@ export function ProviderLinksInput({ linkTypes }: ProviderLinksInputProps) {
|
|
|
34
34
|
<input
|
|
35
35
|
{...register(`links.${index}.id` as const)}
|
|
36
36
|
defaultValue={field.id}
|
|
37
|
-
type=
|
|
37
|
+
type='hidden'
|
|
38
38
|
/>
|
|
39
39
|
<Form.Control
|
|
40
40
|
{...register(`links.${index}.url` as const)}
|
|
41
41
|
defaultValue={field.url}
|
|
42
|
-
type=
|
|
43
|
-
inputMode=
|
|
42
|
+
type='url'
|
|
43
|
+
inputMode='url'
|
|
44
44
|
/>
|
|
45
45
|
</Form.Group>
|
|
46
46
|
)
|
|
@@ -48,7 +48,7 @@ export function ProviderLinksInput({ linkTypes }: ProviderLinksInputProps) {
|
|
|
48
48
|
{linkTypes.length > 0 && (
|
|
49
49
|
<div>
|
|
50
50
|
<DropdownButton
|
|
51
|
-
variant=
|
|
51
|
+
variant='outline-primary'
|
|
52
52
|
title={t('addSocialMediaPage')}
|
|
53
53
|
>
|
|
54
54
|
{linkTypes.map((linkType) => (
|
|
@@ -125,7 +125,7 @@ export function VenueForm({
|
|
|
125
125
|
return (
|
|
126
126
|
<FormProvider {...form}>
|
|
127
127
|
<Form
|
|
128
|
-
className=
|
|
128
|
+
className='d-flex flex-column'
|
|
129
129
|
noValidate
|
|
130
130
|
onSubmit={handleSubmit(onSubmit)}
|
|
131
131
|
>
|
|
@@ -133,9 +133,9 @@ export function VenueForm({
|
|
|
133
133
|
linkTypes={linkTypes}
|
|
134
134
|
companiesOptions={companiesOptions}
|
|
135
135
|
/>
|
|
136
|
-
<Accordion className=
|
|
136
|
+
<Accordion className='my-4'>
|
|
137
137
|
<CollapsibleInputGroup
|
|
138
|
-
eventKey=
|
|
138
|
+
eventKey='location'
|
|
139
139
|
label={t('location')}
|
|
140
140
|
description={<LocationInputDescription path={path} />}
|
|
141
141
|
error={
|
|
@@ -149,7 +149,7 @@ export function VenueForm({
|
|
|
149
149
|
<LocationInput path={path} />
|
|
150
150
|
</CollapsibleInputGroup>
|
|
151
151
|
<CollapsibleInputGroup
|
|
152
|
-
eventKey=
|
|
152
|
+
eventKey='workingHours'
|
|
153
153
|
label={t('workingHours')}
|
|
154
154
|
description={<WorkingHoursInputDescription />}
|
|
155
155
|
error={
|
|
@@ -164,7 +164,7 @@ export function VenueForm({
|
|
|
164
164
|
</CollapsibleInputGroup>
|
|
165
165
|
{categories && categories.length > 0 && (
|
|
166
166
|
<CollapsibleInputGroup
|
|
167
|
-
eventKey=
|
|
167
|
+
eventKey='categories'
|
|
168
168
|
label={t('categories')}
|
|
169
169
|
error={
|
|
170
170
|
errors?.categories?.message ||
|
|
@@ -209,22 +209,22 @@ export function VenueForm({
|
|
|
209
209
|
})}
|
|
210
210
|
{hasPermission && (
|
|
211
211
|
<Button
|
|
212
|
-
type=
|
|
212
|
+
type='submit'
|
|
213
213
|
disabled={
|
|
214
214
|
isLoading ||
|
|
215
215
|
isSubmitting ||
|
|
216
216
|
isImagesLoading ||
|
|
217
217
|
isCoverImagesLoading
|
|
218
218
|
}
|
|
219
|
-
className=
|
|
219
|
+
className='d-flex align-items-center align-self-end'
|
|
220
220
|
>
|
|
221
221
|
{(isSubmitting || isLoading) && (
|
|
222
222
|
<Spinner
|
|
223
|
-
animation=
|
|
224
|
-
size=
|
|
225
|
-
role=
|
|
226
|
-
aria-hidden=
|
|
227
|
-
className=
|
|
223
|
+
animation='border'
|
|
224
|
+
size='sm'
|
|
225
|
+
role='status'
|
|
226
|
+
aria-hidden='true'
|
|
227
|
+
className='mr-2'
|
|
228
228
|
/>
|
|
229
229
|
)}
|
|
230
230
|
{t(intent)}
|
|
@@ -16,8 +16,8 @@ export function WorkingHoursInput() {
|
|
|
16
16
|
|
|
17
17
|
return (
|
|
18
18
|
<div>
|
|
19
|
-
<Form.Row className=
|
|
20
|
-
<Col className=
|
|
19
|
+
<Form.Row className='d-none d-lg-flex mb-4'>
|
|
20
|
+
<Col className='text-right' xs='2'>
|
|
21
21
|
{t('Design:day')}
|
|
22
22
|
</Col>
|
|
23
23
|
<Col>{t('Design:from')}</Col>
|
|
@@ -41,7 +41,7 @@ export function WorkingHoursInput() {
|
|
|
41
41
|
return undefined
|
|
42
42
|
},
|
|
43
43
|
})}
|
|
44
|
-
type=
|
|
44
|
+
type='hidden'
|
|
45
45
|
/>
|
|
46
46
|
|
|
47
47
|
{weekdays.map((name, i) => (
|
|
@@ -51,17 +51,17 @@ export function WorkingHoursInput() {
|
|
|
51
51
|
* which miscalculates alignment for empty inputs.
|
|
52
52
|
* Otherwise placeholders should not be used.
|
|
53
53
|
*/
|
|
54
|
-
<Form.Row key={name} className=
|
|
54
|
+
<Form.Row key={name} className='align-items-baseline'>
|
|
55
55
|
<Col
|
|
56
|
-
className=
|
|
57
|
-
xs=
|
|
58
|
-
lg=
|
|
56
|
+
className='h5 text-lg-right text-nowrap mb-4 mb-lg-0'
|
|
57
|
+
xs='12'
|
|
58
|
+
lg='2'
|
|
59
59
|
>
|
|
60
60
|
{name}
|
|
61
61
|
</Col>
|
|
62
62
|
|
|
63
63
|
<Form.Group as={Col}>
|
|
64
|
-
<Form.Label className=
|
|
64
|
+
<Form.Label className='d-lg-none'>{t('Design:from')}</Form.Label>
|
|
65
65
|
<Form.Control
|
|
66
66
|
{...register(`workingHours.${i}.start`, {
|
|
67
67
|
validate: (nextStartValue) => {
|
|
@@ -72,22 +72,22 @@ export function WorkingHoursInput() {
|
|
|
72
72
|
return undefined
|
|
73
73
|
},
|
|
74
74
|
})}
|
|
75
|
-
type=
|
|
75
|
+
type='time'
|
|
76
76
|
placeholder={t('Design:from')}
|
|
77
77
|
/>
|
|
78
78
|
</Form.Group>
|
|
79
79
|
|
|
80
80
|
<Form.Group as={Col}>
|
|
81
|
-
<Form.Label className=
|
|
81
|
+
<Form.Label className='d-lg-none'>{t('Design:until')}</Form.Label>
|
|
82
82
|
<Form.Control
|
|
83
83
|
{...register(`workingHours.${i}.end`)}
|
|
84
|
-
type=
|
|
84
|
+
type='time'
|
|
85
85
|
placeholder={t('Design:until')}
|
|
86
86
|
/>
|
|
87
87
|
</Form.Group>
|
|
88
88
|
|
|
89
|
-
<Form.Group as={Col} xs=
|
|
90
|
-
<Form.Label className=
|
|
89
|
+
<Form.Group as={Col} xs='12' lg>
|
|
90
|
+
<Form.Label className='d-lg-none'>
|
|
91
91
|
{t('Design:description')}
|
|
92
92
|
</Form.Label>
|
|
93
93
|
<Form.Control
|
|
@@ -16,7 +16,7 @@ export function WorkingHoursInputDescription() {
|
|
|
16
16
|
<>
|
|
17
17
|
{Array.from({ length: weekdays.length }, (_, i) => i).map((i) => (
|
|
18
18
|
<Row key={i}>
|
|
19
|
-
<Col xs=
|
|
19
|
+
<Col xs='auto'>{weekdays[i]}:</Col>
|
|
20
20
|
<Col>
|
|
21
21
|
{t('timeInterval', {
|
|
22
22
|
start: values?.[i]?.start ?? '00:00',
|
|
@@ -31,9 +31,9 @@ export const RadioCard = <FormModel,>({
|
|
|
31
31
|
return (
|
|
32
32
|
<Form.Check className={clsx('radio-card', isInvalid && 'invalid')}>
|
|
33
33
|
<Form.Check.Label>
|
|
34
|
-
<div className=
|
|
34
|
+
<div className='radio-card-controls'>
|
|
35
35
|
<Form.Check.Input
|
|
36
|
-
type=
|
|
36
|
+
type='radio'
|
|
37
37
|
isInvalid={isInvalid}
|
|
38
38
|
value={value}
|
|
39
39
|
{...register(name, rules)}
|
|
@@ -42,7 +42,7 @@ export const RadioCard = <FormModel,>({
|
|
|
42
42
|
<span>{label}</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
|
-
<p className=
|
|
45
|
+
<p className='radio-card-description'>{description}</p>
|
|
46
46
|
</Form.Check.Label>
|
|
47
47
|
</Form.Check>
|
|
48
48
|
)
|
|
@@ -51,9 +51,9 @@ function RecurrenceEndInput({
|
|
|
51
51
|
<Form.Group>
|
|
52
52
|
<Form.Label>{t('ends')}</Form.Label>
|
|
53
53
|
|
|
54
|
-
<Form.Check type=
|
|
54
|
+
<Form.Check type='radio' id={neverId} custom className='mt-3'>
|
|
55
55
|
<Form.Check.Input
|
|
56
|
-
type=
|
|
56
|
+
type='radio'
|
|
57
57
|
checked={!until && count === 500}
|
|
58
58
|
onChange={() => onChange({ count: 500 })}
|
|
59
59
|
disabled={disabled}
|
|
@@ -61,11 +61,11 @@ function RecurrenceEndInput({
|
|
|
61
61
|
<Form.Check.Label>{t('never')}</Form.Check.Label>
|
|
62
62
|
</Form.Check>
|
|
63
63
|
|
|
64
|
-
<Form.Check type=
|
|
65
|
-
<Row className=
|
|
64
|
+
<Form.Check type='radio' id={onId} custom className='mt-3'>
|
|
65
|
+
<Row className='align-items-center'>
|
|
66
66
|
<Col xs={2}>
|
|
67
67
|
<Form.Check.Input
|
|
68
|
-
type=
|
|
68
|
+
type='radio'
|
|
69
69
|
checked={Boolean(until) && !count}
|
|
70
70
|
onChange={() =>
|
|
71
71
|
onChange({ until: getUntil({ date, frequency }) })
|
|
@@ -76,10 +76,10 @@ function RecurrenceEndInput({
|
|
|
76
76
|
</Col>
|
|
77
77
|
<Col>
|
|
78
78
|
<Form.Control
|
|
79
|
-
type=
|
|
79
|
+
type='date'
|
|
80
80
|
min={minDate}
|
|
81
81
|
disabled={disabled || !until}
|
|
82
|
-
aria-label=
|
|
82
|
+
aria-label='Date on which the recurrence ends'
|
|
83
83
|
value={until ?? getUntil({ date, frequency })}
|
|
84
84
|
className={until && 'date-input-with-value'}
|
|
85
85
|
ref={dateInput}
|
|
@@ -90,11 +90,11 @@ function RecurrenceEndInput({
|
|
|
90
90
|
</Row>
|
|
91
91
|
</Form.Check>
|
|
92
92
|
|
|
93
|
-
<Form.Check type=
|
|
94
|
-
<Row className=
|
|
93
|
+
<Form.Check type='radio' id={afterId} custom className='mt-3'>
|
|
94
|
+
<Row className='align-items-center'>
|
|
95
95
|
<Col xs={2}>
|
|
96
96
|
<Form.Check.Input
|
|
97
|
-
type=
|
|
97
|
+
type='radio'
|
|
98
98
|
checked={count < 500 && !until}
|
|
99
99
|
onChange={() =>
|
|
100
100
|
onChange({ count: defaultOccurrences[frequency] })
|
|
@@ -106,11 +106,11 @@ function RecurrenceEndInput({
|
|
|
106
106
|
<Col>
|
|
107
107
|
<InputGroup>
|
|
108
108
|
<Form.Control
|
|
109
|
-
type=
|
|
109
|
+
type='number'
|
|
110
110
|
min={1}
|
|
111
111
|
max={500}
|
|
112
112
|
disabled={disabled || !count || count === 500}
|
|
113
|
-
aria-label=
|
|
113
|
+
aria-label='Occurrence count'
|
|
114
114
|
value={count ?? defaultOccurrences[frequency]}
|
|
115
115
|
onChange={({ target: { value } }) =>
|
|
116
116
|
onChange({ count: Number(value) })
|
|
@@ -25,13 +25,13 @@ function RecurrenceIntervalAndFrequencyInput({
|
|
|
25
25
|
const { t } = useTranslation(['Design', 'Notification', 'App'])
|
|
26
26
|
|
|
27
27
|
return (
|
|
28
|
-
<Form.Group as={Col} className=
|
|
29
|
-
<Form.Label xs=
|
|
28
|
+
<Form.Group as={Col} className='align-items-center p-0'>
|
|
29
|
+
<Form.Label xs='auto' className='mt-4'>
|
|
30
30
|
{t('Design:repeatsEvery')}
|
|
31
31
|
</Form.Label>
|
|
32
32
|
<InputGroup hasValidation>
|
|
33
33
|
<Form.Control
|
|
34
|
-
type=
|
|
34
|
+
type='number'
|
|
35
35
|
aria-label={`${
|
|
36
36
|
{
|
|
37
37
|
[RRule.DAILY]: 'Days',
|
|
@@ -50,8 +50,8 @@ function RecurrenceIntervalAndFrequencyInput({
|
|
|
50
50
|
disabled={disabled}
|
|
51
51
|
/>
|
|
52
52
|
<Form.Control
|
|
53
|
-
as=
|
|
54
|
-
aria-label=
|
|
53
|
+
as='select'
|
|
54
|
+
aria-label='Frequency'
|
|
55
55
|
custom
|
|
56
56
|
value={frequency}
|
|
57
57
|
onChange={({ target: { value } }) =>
|
|
@@ -66,7 +66,7 @@ function RecurrenceIntervalAndFrequencyInput({
|
|
|
66
66
|
</option>
|
|
67
67
|
<option value={RRule.YEARLY}>{t('Design:year').toLowerCase()}</option>
|
|
68
68
|
</Form.Control>
|
|
69
|
-
<Form.Control.Feedback type=
|
|
69
|
+
<Form.Control.Feedback type='invalid'>
|
|
70
70
|
{interval > MAX_REPEATS_VALUE &&
|
|
71
71
|
t('Validation:fieldMaxNumber', {
|
|
72
72
|
attribute: t('Design:repeatsEvery'),
|
|
@@ -23,8 +23,8 @@ function RecurrenceMonthlyRepeatByInput({
|
|
|
23
23
|
return (
|
|
24
24
|
<Form.Group>
|
|
25
25
|
<Form.Control
|
|
26
|
-
as=
|
|
27
|
-
aria-label=
|
|
26
|
+
as='select'
|
|
27
|
+
aria-label='Repeat by'
|
|
28
28
|
custom
|
|
29
29
|
value={value ? 'weekday' : 'day'}
|
|
30
30
|
onChange={({ target: { value } }) =>
|
|
@@ -32,8 +32,8 @@ function RecurrenceMonthlyRepeatByInput({
|
|
|
32
32
|
}
|
|
33
33
|
disabled={disabled}
|
|
34
34
|
>
|
|
35
|
-
<option value=
|
|
36
|
-
<option value=
|
|
35
|
+
<option value='day'>Monthly on day {weekday.weekday + 1}</option>
|
|
36
|
+
<option value='weekday'>
|
|
37
37
|
Monthly on the{' '}
|
|
38
38
|
{
|
|
39
39
|
{ '-1': 'last', 1: 'first', 2: 'second', 3: 'third', 4: 'fourth' }[
|
|
@@ -18,10 +18,10 @@ function RecurrenceWeekdaysInput({
|
|
|
18
18
|
onChange,
|
|
19
19
|
}: Props) {
|
|
20
20
|
return (
|
|
21
|
-
<Form.Group className=
|
|
21
|
+
<Form.Group className='d-flex flex-column'>
|
|
22
22
|
<Form.Label>Repeats on</Form.Label>
|
|
23
23
|
<ToggleButtonGroup
|
|
24
|
-
type=
|
|
24
|
+
type='checkbox'
|
|
25
25
|
value={value.map(({ weekday }) => weekday)}
|
|
26
26
|
onChange={(value) =>
|
|
27
27
|
onChange(
|
|
@@ -37,8 +37,8 @@ function RecurrenceWeekdaysInput({
|
|
|
37
37
|
<ToggleButton
|
|
38
38
|
key={i}
|
|
39
39
|
value={i}
|
|
40
|
-
variant=
|
|
41
|
-
size=
|
|
40
|
+
variant='outline-primary'
|
|
41
|
+
size='sm'
|
|
42
42
|
disabled={disabled}
|
|
43
43
|
>
|
|
44
44
|
{weekday}
|