@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
|
@@ -46,14 +46,14 @@ export const NotesTable = ({
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
return (
|
|
49
|
-
<div className=
|
|
50
|
-
<div className=
|
|
49
|
+
<div className='notes pb-4 pt-4'>
|
|
50
|
+
<div className='d-flex mb-3 align-items-center justify-content-between'>
|
|
51
51
|
<h2>{heading}</h2>
|
|
52
52
|
{!isFormView && <AddNoteButton onClick={() => setIsFormView(true)} />}
|
|
53
53
|
</div>
|
|
54
54
|
|
|
55
55
|
{!isFormView && (
|
|
56
|
-
<Table bordered size=
|
|
56
|
+
<Table bordered size='sm'>
|
|
57
57
|
<thead>
|
|
58
58
|
<tr>
|
|
59
59
|
<th>{t('notes')}</th>
|
|
@@ -101,8 +101,8 @@ const AddNoteButton = ({ onClick }: { onClick: () => void }) => {
|
|
|
101
101
|
const { t } = useTranslation('Design')
|
|
102
102
|
|
|
103
103
|
return (
|
|
104
|
-
<Button onClick={onClick} className=
|
|
105
|
-
{t('addNew')} <FaPlusCircle size={16} className=
|
|
104
|
+
<Button onClick={onClick} className='show-form-button'>
|
|
105
|
+
{t('addNew')} <FaPlusCircle size={16} className='ml-2' />
|
|
106
106
|
</Button>
|
|
107
107
|
)
|
|
108
108
|
}
|
|
@@ -34,19 +34,19 @@ export const TableRow = ({ note, onClick, onDeleteNote }: TableRowProps) => {
|
|
|
34
34
|
|
|
35
35
|
return (
|
|
36
36
|
<tr onClick={onClick}>
|
|
37
|
-
<td className=
|
|
38
|
-
<td className=
|
|
37
|
+
<td className='note-content'>{note.note}</td>
|
|
38
|
+
<td className='note-author'>
|
|
39
39
|
{capitalize(note.user.firstName)} {capitalize(note.user.lastName)}
|
|
40
40
|
</td>
|
|
41
|
-
<td className=
|
|
41
|
+
<td className='text-nowrap'>{date}</td>
|
|
42
42
|
<td>
|
|
43
|
-
<div className=
|
|
44
|
-
<span className=
|
|
43
|
+
<div className='controls'>
|
|
44
|
+
<span className='btn btn-sm eye'>
|
|
45
45
|
<FaEye size={20} />
|
|
46
46
|
</span>
|
|
47
47
|
<OverlayTrigger
|
|
48
|
-
trigger=
|
|
49
|
-
placement=
|
|
48
|
+
trigger='click'
|
|
49
|
+
placement='bottom'
|
|
50
50
|
rootClose
|
|
51
51
|
overlay={
|
|
52
52
|
<Popover
|
|
@@ -58,10 +58,10 @@ export const TableRow = ({ note, onClick, onDeleteNote }: TableRowProps) => {
|
|
|
58
58
|
>
|
|
59
59
|
<Popover.Content
|
|
60
60
|
as={ListGroup}
|
|
61
|
-
className=
|
|
62
|
-
variant=
|
|
61
|
+
className='product-set-card-menu'
|
|
62
|
+
variant='flush'
|
|
63
63
|
>
|
|
64
|
-
<ListGroup.Item action className=
|
|
64
|
+
<ListGroup.Item action className='text-danger' as='div'>
|
|
65
65
|
<ConfirmModal>
|
|
66
66
|
{(confirm) => (
|
|
67
67
|
<MenuButton
|
|
@@ -71,7 +71,7 @@ export const TableRow = ({ note, onClick, onDeleteNote }: TableRowProps) => {
|
|
|
71
71
|
}}
|
|
72
72
|
name={t('remove')}
|
|
73
73
|
icon={<FaTrashAlt size={12} />}
|
|
74
|
-
className=
|
|
74
|
+
className='product-set-card-menu-item-text d-flex w-100 align-items-center'
|
|
75
75
|
rightIcon
|
|
76
76
|
/>
|
|
77
77
|
)}
|
|
@@ -82,8 +82,8 @@ export const TableRow = ({ note, onClick, onDeleteNote }: TableRowProps) => {
|
|
|
82
82
|
}
|
|
83
83
|
>
|
|
84
84
|
<button
|
|
85
|
-
type=
|
|
86
|
-
className=
|
|
85
|
+
type='button'
|
|
86
|
+
className='product-set-card-menu-button'
|
|
87
87
|
onClick={(e) => {
|
|
88
88
|
e.stopPropagation()
|
|
89
89
|
setIsOverlayVisible(true)
|
|
@@ -31,15 +31,15 @@ export const NoteForm = ({
|
|
|
31
31
|
|
|
32
32
|
return (
|
|
33
33
|
<form
|
|
34
|
-
className=
|
|
34
|
+
className='mt-1 notes-form'
|
|
35
35
|
onSubmit={handleSubmit(({ note }) => onSubmit(note))}
|
|
36
36
|
>
|
|
37
|
-
<Form.Group controlId=
|
|
37
|
+
<Form.Group controlId='exampleForm.ControlTextarea1'>
|
|
38
38
|
<Form.Label>
|
|
39
39
|
{t(defaultValues.note ? 'editNote' : 'addANote')}
|
|
40
40
|
</Form.Label>
|
|
41
41
|
<Form.Control
|
|
42
|
-
as=
|
|
42
|
+
as='textarea'
|
|
43
43
|
rows={5}
|
|
44
44
|
isInvalid={!!errors.note}
|
|
45
45
|
placeholder={t('writeYourNoteHere')}
|
|
@@ -50,24 +50,24 @@ export const NoteForm = ({
|
|
|
50
50
|
},
|
|
51
51
|
})}
|
|
52
52
|
/>
|
|
53
|
-
<Form.Control.Feedback type=
|
|
53
|
+
<Form.Control.Feedback type='invalid'>
|
|
54
54
|
{errors.note?.message}
|
|
55
55
|
</Form.Control.Feedback>
|
|
56
56
|
</Form.Group>
|
|
57
57
|
|
|
58
|
-
<footer className=
|
|
59
|
-
<Button type=
|
|
58
|
+
<footer className='d-flex'>
|
|
59
|
+
<Button type='submit'>{t('save')}</Button>
|
|
60
60
|
<Button
|
|
61
|
-
type=
|
|
62
|
-
variant=
|
|
63
|
-
className=
|
|
61
|
+
type='submit'
|
|
62
|
+
variant='outline-secondary'
|
|
63
|
+
className='ml-auto'
|
|
64
64
|
onClick={onClose}
|
|
65
65
|
>
|
|
66
66
|
{t('close')}
|
|
67
67
|
</Button>
|
|
68
68
|
<Button
|
|
69
|
-
variant=
|
|
70
|
-
className=
|
|
69
|
+
variant='danger'
|
|
70
|
+
className='ml-2'
|
|
71
71
|
onClick={() => setValue('note', '')}
|
|
72
72
|
>
|
|
73
73
|
{t('delete')}
|
|
@@ -124,8 +124,8 @@ export const SalePaymentForm = forwardRef<
|
|
|
124
124
|
<Form.Group>
|
|
125
125
|
<Form.Label>{t('paymentType')}</Form.Label>
|
|
126
126
|
<Form.Control
|
|
127
|
-
className=
|
|
128
|
-
as=
|
|
127
|
+
className='payment-type'
|
|
128
|
+
as='select'
|
|
129
129
|
{...register('orderPaymentType')}
|
|
130
130
|
isInvalid={!!errors?.orderPaymentType}
|
|
131
131
|
>
|
|
@@ -159,7 +159,7 @@ export const SalePaymentForm = forwardRef<
|
|
|
159
159
|
)}
|
|
160
160
|
</Form.Control>
|
|
161
161
|
{orderPaymentTypeError && (
|
|
162
|
-
<div className=
|
|
162
|
+
<div className='error-message'>{orderPaymentTypeError}</div>
|
|
163
163
|
)}
|
|
164
164
|
</Form.Group>
|
|
165
165
|
</Col>
|
|
@@ -198,7 +198,7 @@ export const SalePaymentForm = forwardRef<
|
|
|
198
198
|
<Form.Group>
|
|
199
199
|
<Form.Label>{t('Design:expirationDate')}</Form.Label>
|
|
200
200
|
<Form.Control
|
|
201
|
-
type=
|
|
201
|
+
type='datetime-local'
|
|
202
202
|
placeholder={t('Design:date')}
|
|
203
203
|
value={currentFormValues.paymentLinkExpireDate}
|
|
204
204
|
{...register('paymentLinkExpireDate', {
|
|
@@ -228,7 +228,7 @@ export const SalePaymentForm = forwardRef<
|
|
|
228
228
|
DateTime.now().minus({ minutes: 1 }),
|
|
229
229
|
)}
|
|
230
230
|
/>
|
|
231
|
-
<Form.Control.Feedback type=
|
|
231
|
+
<Form.Control.Feedback type='invalid'>
|
|
232
232
|
{errors?.paymentLinkExpireDate?.message}
|
|
233
233
|
</Form.Control.Feedback>
|
|
234
234
|
</Form.Group>
|
|
@@ -20,31 +20,31 @@ export const RyftPayment = ({
|
|
|
20
20
|
return (
|
|
21
21
|
<>
|
|
22
22
|
{!isLoading && !isError && !ryftInitFailure && (
|
|
23
|
-
<div className=
|
|
23
|
+
<div className='input-label margin-top-2-rem mb-3'>
|
|
24
24
|
{t('Design:paymentDetails')}
|
|
25
25
|
</div>
|
|
26
26
|
)}
|
|
27
27
|
{isLoading && (
|
|
28
|
-
<div className=
|
|
28
|
+
<div className='mt-5 pt-5'>
|
|
29
29
|
<BlockLoader />
|
|
30
30
|
</div>
|
|
31
31
|
)}
|
|
32
32
|
{isError && (
|
|
33
|
-
<div className=
|
|
34
|
-
<Alert key=
|
|
33
|
+
<div className='mt-5 ryft-init-failure'>
|
|
34
|
+
<Alert key='danger' variant='danger'>
|
|
35
35
|
<h5>{t('App:errorMessage')}</h5>
|
|
36
36
|
{t('noPaymentProviderFound')}
|
|
37
37
|
</Alert>
|
|
38
38
|
</div>
|
|
39
39
|
)}
|
|
40
40
|
{ryftInitFailure && (
|
|
41
|
-
<div className=
|
|
42
|
-
<Alert key=
|
|
41
|
+
<div className='mt-5 ryft-init-failure'>
|
|
42
|
+
<Alert key='danger' variant='danger'>
|
|
43
43
|
<h5>{t('App:errorMessage')}</h5>
|
|
44
44
|
{t('initFailureMessage')}
|
|
45
|
-
<div className=
|
|
45
|
+
<div className='flex flex-column align-items-center mt-4'>
|
|
46
46
|
<Button
|
|
47
|
-
variant=
|
|
47
|
+
variant='primary'
|
|
48
48
|
onClick={() => {
|
|
49
49
|
history.go(0)
|
|
50
50
|
}}
|
|
@@ -55,7 +55,7 @@ export const RyftPayment = ({
|
|
|
55
55
|
</Alert>
|
|
56
56
|
</div>
|
|
57
57
|
)}
|
|
58
|
-
<form id=
|
|
58
|
+
<form id='ryft-pay-form' noValidate className='ryft-payment-form' />
|
|
59
59
|
</>
|
|
60
60
|
)
|
|
61
61
|
}
|
|
@@ -61,18 +61,18 @@ function SalesAndViewsChart({
|
|
|
61
61
|
}: TooltipProps<ValueType, NameType>) => {
|
|
62
62
|
if (active && payload && payload.length) {
|
|
63
63
|
return (
|
|
64
|
-
<div className=
|
|
64
|
+
<div className='tooltip-container'>
|
|
65
65
|
<p
|
|
66
|
-
className=
|
|
66
|
+
className='tooltip-item'
|
|
67
67
|
style={{
|
|
68
68
|
display: activePeriod === 'pastDay' ? 'none' : 'inline',
|
|
69
69
|
}}
|
|
70
70
|
>
|
|
71
71
|
{labelFormatter(label)}
|
|
72
72
|
</p>
|
|
73
|
-
<p className=
|
|
73
|
+
<p className='tooltip-item'>sales: {payload[0]?.payload.sales}</p>
|
|
74
74
|
{payload[0]?.payload?.amount && (
|
|
75
|
-
<p className=
|
|
75
|
+
<p className='tooltip-item'>
|
|
76
76
|
{formatNumber(payload[0]?.payload?.amount, {
|
|
77
77
|
style: 'currency',
|
|
78
78
|
currency: 'GBP',
|
|
@@ -87,9 +87,9 @@ function SalesAndViewsChart({
|
|
|
87
87
|
const legendRenderer = () => (
|
|
88
88
|
<>
|
|
89
89
|
<div
|
|
90
|
-
className=
|
|
90
|
+
className='legend'
|
|
91
91
|
onClick={() => setChartType('sales')}
|
|
92
|
-
role=
|
|
92
|
+
role='button'
|
|
93
93
|
tabIndex={0}
|
|
94
94
|
>
|
|
95
95
|
<div
|
|
@@ -101,9 +101,9 @@ function SalesAndViewsChart({
|
|
|
101
101
|
{t('sales')}
|
|
102
102
|
</div>
|
|
103
103
|
<div
|
|
104
|
-
className=
|
|
104
|
+
className='legend'
|
|
105
105
|
onClick={() => setChartType('views')}
|
|
106
|
-
role=
|
|
106
|
+
role='button'
|
|
107
107
|
tabIndex={0}
|
|
108
108
|
>
|
|
109
109
|
<div
|
|
@@ -118,10 +118,10 @@ function SalesAndViewsChart({
|
|
|
118
118
|
)
|
|
119
119
|
|
|
120
120
|
return (
|
|
121
|
-
<div className=
|
|
122
|
-
<div className=
|
|
123
|
-
<div className=
|
|
124
|
-
<ResponsiveContainer width=
|
|
121
|
+
<div className='sales-and-views'>
|
|
122
|
+
<div className='sales-and-views__header'>{t('salesAndViews')}</div>
|
|
123
|
+
<div className='sales-and-views__charts'>
|
|
124
|
+
<ResponsiveContainer width='100%' height='100%'>
|
|
125
125
|
<ComposedChart
|
|
126
126
|
data={data}
|
|
127
127
|
margin={{
|
|
@@ -154,20 +154,20 @@ function SalesAndViewsChart({
|
|
|
154
154
|
}}
|
|
155
155
|
axisLine={false}
|
|
156
156
|
tickLine={false}
|
|
157
|
-
dataKey=
|
|
157
|
+
dataKey='date'
|
|
158
158
|
tickFormatter={(tick) => moment(tick).format('DD/MM')}
|
|
159
159
|
/>
|
|
160
160
|
)}
|
|
161
161
|
<Legend
|
|
162
|
-
iconType=
|
|
162
|
+
iconType='circle'
|
|
163
163
|
wrapperStyle={{ top: -20, left: 39 }}
|
|
164
|
-
layout=
|
|
165
|
-
verticalAlign=
|
|
164
|
+
layout='vertical'
|
|
165
|
+
verticalAlign='top'
|
|
166
166
|
content={legendRenderer}
|
|
167
167
|
/>
|
|
168
168
|
<Bar
|
|
169
169
|
radius={[5, 5, 5, 5]}
|
|
170
|
-
dataKey=
|
|
170
|
+
dataKey='sales'
|
|
171
171
|
barSize={32}
|
|
172
172
|
style={{ zIndex: 1 }}
|
|
173
173
|
>
|
|
@@ -183,7 +183,7 @@ function SalesAndViewsChart({
|
|
|
183
183
|
{chartType === 'views' && (
|
|
184
184
|
<Line
|
|
185
185
|
strokeWidth={3}
|
|
186
|
-
type=
|
|
186
|
+
type='monotone'
|
|
187
187
|
dataKey={chartType}
|
|
188
188
|
activeDot
|
|
189
189
|
dot={false}
|
|
@@ -192,7 +192,7 @@ function SalesAndViewsChart({
|
|
|
192
192
|
</ComposedChart>
|
|
193
193
|
</ResponsiveContainer>
|
|
194
194
|
</div>
|
|
195
|
-
<ul className=
|
|
195
|
+
<ul className='sales-and-views__filter-menu'>
|
|
196
196
|
{filterValues.map(({ period, id }) => (
|
|
197
197
|
<li
|
|
198
198
|
key={id}
|
|
@@ -59,7 +59,7 @@ function SourceOfSalesChart({ data }: SourceOfSalesProps) {
|
|
|
59
59
|
entry.payload.name === IFRAME ? WEBSITE : entry.payload.name
|
|
60
60
|
|
|
61
61
|
return (
|
|
62
|
-
<div className=
|
|
62
|
+
<div className='legend' key={`item-${entry.payload.source}`}>
|
|
63
63
|
<div
|
|
64
64
|
className={`bullet-point colors-${
|
|
65
65
|
entry.payload?.name === AFFILIATES ? 'pink' : index % 4
|
|
@@ -83,17 +83,17 @@ function SourceOfSalesChart({ data }: SourceOfSalesProps) {
|
|
|
83
83
|
}, [extendedData])
|
|
84
84
|
|
|
85
85
|
return (
|
|
86
|
-
<div className=
|
|
87
|
-
<div className=
|
|
88
|
-
<div className=
|
|
86
|
+
<div className='source-of-sales'>
|
|
87
|
+
<div className='source-of-sales__header'>{t('sourceOfSales')}</div>
|
|
88
|
+
<div className='source-of-sales__pie-chart'>
|
|
89
89
|
{!!data.length && (
|
|
90
|
-
<ResponsiveContainer debounce={100} width=
|
|
90
|
+
<ResponsiveContainer debounce={100} width='100%' height='100%'>
|
|
91
91
|
<PieChart>
|
|
92
92
|
<Legend
|
|
93
|
-
iconType=
|
|
93
|
+
iconType='circle'
|
|
94
94
|
wrapperStyle={{ left: 170, top: 20 }}
|
|
95
|
-
layout=
|
|
96
|
-
verticalAlign=
|
|
95
|
+
layout='vertical'
|
|
96
|
+
verticalAlign='top'
|
|
97
97
|
content={legendRenderer}
|
|
98
98
|
/>
|
|
99
99
|
<Pie
|
|
@@ -102,7 +102,7 @@ function SourceOfSalesChart({ data }: SourceOfSalesProps) {
|
|
|
102
102
|
cy={defaultCYPosition}
|
|
103
103
|
innerRadius={40}
|
|
104
104
|
outerRadius={48}
|
|
105
|
-
dataKey=
|
|
105
|
+
dataKey='percentage'
|
|
106
106
|
>
|
|
107
107
|
{data.map(({ source }: PieChartData, index) => (
|
|
108
108
|
<Cell
|
|
@@ -20,15 +20,15 @@ function StatisticsChart({
|
|
|
20
20
|
]
|
|
21
21
|
|
|
22
22
|
return (
|
|
23
|
-
<div className=
|
|
24
|
-
<ResponsiveContainer width=
|
|
23
|
+
<div className='statistics'>
|
|
24
|
+
<ResponsiveContainer width='100%' height='100%'>
|
|
25
25
|
<PieChart>
|
|
26
26
|
<Pie
|
|
27
27
|
data={chartData}
|
|
28
28
|
startAngle={-270}
|
|
29
29
|
innerRadius={20}
|
|
30
30
|
outerRadius={28}
|
|
31
|
-
dataKey=
|
|
31
|
+
dataKey='value'
|
|
32
32
|
{...chartStyles}
|
|
33
33
|
>
|
|
34
34
|
{chartData.map(({ id, name }) => (
|
|
@@ -37,7 +37,7 @@ function StatisticsChart({
|
|
|
37
37
|
</Pie>
|
|
38
38
|
</PieChart>
|
|
39
39
|
</ResponsiveContainer>
|
|
40
|
-
{children && <div className=
|
|
40
|
+
{children && <div className='statistics__label'>{children}</div>}
|
|
41
41
|
</div>
|
|
42
42
|
)
|
|
43
43
|
}
|
|
@@ -63,7 +63,7 @@ export const AdminSettingForm = ({
|
|
|
63
63
|
|
|
64
64
|
return (
|
|
65
65
|
<Form
|
|
66
|
-
className=
|
|
66
|
+
className='d-flex flex-column'
|
|
67
67
|
noValidate
|
|
68
68
|
onSubmit={handleSubmit(onSubmit)}
|
|
69
69
|
>
|
|
@@ -87,10 +87,10 @@ export const AdminSettingForm = ({
|
|
|
87
87
|
|
|
88
88
|
<PaymentFeeForm isLoading={isLoading} />
|
|
89
89
|
|
|
90
|
-
<Form.Label className=
|
|
90
|
+
<Form.Label className='mt-5'>{t('defaultVenueCurrency')}</Form.Label>
|
|
91
91
|
<Form.Control
|
|
92
92
|
{...register('currency_id')}
|
|
93
|
-
as=
|
|
93
|
+
as='select'
|
|
94
94
|
disabled={isLoading}
|
|
95
95
|
>
|
|
96
96
|
{currencies?.map((currency) => (
|
|
@@ -102,11 +102,11 @@ export const AdminSettingForm = ({
|
|
|
102
102
|
|
|
103
103
|
<Row>
|
|
104
104
|
<Col xs={12}>
|
|
105
|
-
<h5 className=
|
|
105
|
+
<h5 className='mt-5'>{t('advanced')}</h5>
|
|
106
106
|
</Col>
|
|
107
107
|
</Row>
|
|
108
108
|
|
|
109
|
-
<Card className=
|
|
109
|
+
<Card className='mb-3'>
|
|
110
110
|
<Card.Body>
|
|
111
111
|
<Row>
|
|
112
112
|
<Col xs={12}>
|
|
@@ -138,7 +138,7 @@ export const AdminSettingForm = ({
|
|
|
138
138
|
<Form.Check.Label>
|
|
139
139
|
{t('additionalPaymentMethodsEnabled')}
|
|
140
140
|
</Form.Check.Label>
|
|
141
|
-
<Form.Control.Feedback type=
|
|
141
|
+
<Form.Control.Feedback type='invalid'>
|
|
142
142
|
{HookFormService.hasError(
|
|
143
143
|
errors.additionalPaymentMethodsEnabled,
|
|
144
144
|
'validate',
|
|
@@ -146,7 +146,7 @@ export const AdminSettingForm = ({
|
|
|
146
146
|
<>
|
|
147
147
|
{t('noCountryIsProvided')}
|
|
148
148
|
<Link
|
|
149
|
-
role=
|
|
149
|
+
role='button'
|
|
150
150
|
to={`/provider/${providerMetadata?.providerType}/${providerMetadata?.providableId}/update`}
|
|
151
151
|
>
|
|
152
152
|
{t('here')}
|
|
@@ -171,17 +171,17 @@ export const AdminSettingForm = ({
|
|
|
171
171
|
</FormProvider>
|
|
172
172
|
{hasPermission && (
|
|
173
173
|
<Button
|
|
174
|
-
type=
|
|
174
|
+
type='submit'
|
|
175
175
|
disabled={isLoading || !isValid}
|
|
176
|
-
className=
|
|
176
|
+
className='d-flex align-items-center align-self-end mt-5'
|
|
177
177
|
>
|
|
178
178
|
{isLoading && (
|
|
179
179
|
<Spinner
|
|
180
|
-
animation=
|
|
181
|
-
size=
|
|
182
|
-
role=
|
|
183
|
-
aria-hidden=
|
|
184
|
-
className=
|
|
180
|
+
animation='border'
|
|
181
|
+
size='sm'
|
|
182
|
+
role='status'
|
|
183
|
+
aria-hidden='true'
|
|
184
|
+
className='mr-2'
|
|
185
185
|
/>
|
|
186
186
|
)}
|
|
187
187
|
{t('update')}
|
|
@@ -44,15 +44,15 @@ export function PaymentFeeForm({ isLoading = false }: PaymentFeeFormProps) {
|
|
|
44
44
|
<>
|
|
45
45
|
<Row>
|
|
46
46
|
<Col xs={12}>
|
|
47
|
-
<h5 className=
|
|
47
|
+
<h5 className='mt-5'>{t('paymentFee')}</h5>
|
|
48
48
|
</Col>
|
|
49
49
|
</Row>
|
|
50
50
|
|
|
51
|
-
<Card className=
|
|
51
|
+
<Card className='mb-3'>
|
|
52
52
|
<Card.Body>
|
|
53
53
|
<Row>
|
|
54
54
|
<Col xs={12}>
|
|
55
|
-
<div className=
|
|
55
|
+
<div className='mb-4'>{t('paymentFeeDescription')}</div>
|
|
56
56
|
</Col>
|
|
57
57
|
</Row>
|
|
58
58
|
|
|
@@ -69,23 +69,23 @@ export function PaymentFeeForm({ isLoading = false }: PaymentFeeFormProps) {
|
|
|
69
69
|
</InputGroup.Prepend>
|
|
70
70
|
|
|
71
71
|
<Form.Control
|
|
72
|
-
type=
|
|
72
|
+
type='number'
|
|
73
73
|
min={0}
|
|
74
74
|
max={100}
|
|
75
|
-
step=
|
|
76
|
-
placeholder=
|
|
75
|
+
step='1'
|
|
76
|
+
placeholder='0'
|
|
77
77
|
{...register('feeInPercent', {
|
|
78
78
|
validate: {
|
|
79
79
|
moreThan: (v) => (v ? v >= 0 : true),
|
|
80
80
|
lessThan: (v) => (v ? v <= 100 : true),
|
|
81
81
|
},
|
|
82
82
|
})}
|
|
83
|
-
name=
|
|
83
|
+
name='feeInPercent'
|
|
84
84
|
isInvalid={Boolean(errors.feeInPercent)}
|
|
85
85
|
disabled={isLoading}
|
|
86
86
|
/>
|
|
87
87
|
|
|
88
|
-
<Form.Control.Feedback type=
|
|
88
|
+
<Form.Control.Feedback type='invalid'>
|
|
89
89
|
{errors.feeInPercent?.message}
|
|
90
90
|
{errors.feeInPercent?.type === 'moreThan' &&
|
|
91
91
|
t('Validation:fieldMinNumber', {
|
|
@@ -123,17 +123,17 @@ export function PaymentFeeForm({ isLoading = false }: PaymentFeeFormProps) {
|
|
|
123
123
|
lessThan: (v) => (v ? v <= 999999.99 : true),
|
|
124
124
|
},
|
|
125
125
|
})}
|
|
126
|
-
name=
|
|
127
|
-
type=
|
|
126
|
+
name='minFeeInPounds'
|
|
127
|
+
type='number'
|
|
128
128
|
min={0}
|
|
129
129
|
max={999999.99}
|
|
130
|
-
step=
|
|
131
|
-
placeholder=
|
|
130
|
+
step='0.01'
|
|
131
|
+
placeholder='0,00'
|
|
132
132
|
isInvalid={Boolean(errors.minFeeInPounds)}
|
|
133
133
|
disabled={isLoading}
|
|
134
134
|
/>
|
|
135
135
|
|
|
136
|
-
<Form.Control.Feedback type=
|
|
136
|
+
<Form.Control.Feedback type='invalid'>
|
|
137
137
|
{errors.minFeeInPounds?.message}
|
|
138
138
|
{errors.minFeeInPounds?.type === 'moreThan' &&
|
|
139
139
|
t('Validation:fieldMinNumber', {
|
|
@@ -168,17 +168,17 @@ export function PaymentFeeForm({ isLoading = false }: PaymentFeeFormProps) {
|
|
|
168
168
|
lessThan: (v) => (v ? v <= 999999.99 : true),
|
|
169
169
|
},
|
|
170
170
|
})}
|
|
171
|
-
name=
|
|
172
|
-
type=
|
|
171
|
+
name='maxFeeInPounds'
|
|
172
|
+
type='number'
|
|
173
173
|
min={0}
|
|
174
174
|
max={999999.99}
|
|
175
|
-
step=
|
|
176
|
-
placeholder=
|
|
175
|
+
step='0.01'
|
|
176
|
+
placeholder='0,00'
|
|
177
177
|
isInvalid={Boolean(errors.maxFeeInPounds)}
|
|
178
178
|
disabled={isLoading}
|
|
179
179
|
/>
|
|
180
180
|
|
|
181
|
-
<Form.Control.Feedback type=
|
|
181
|
+
<Form.Control.Feedback type='invalid'>
|
|
182
182
|
{errors.maxFeeInPounds?.message}
|
|
183
183
|
{errors.maxFeeInPounds?.type === 'moreThan' &&
|
|
184
184
|
t('Validation:fieldMinNumber', {
|
|
@@ -225,17 +225,17 @@ export function PaymentFeeForm({ isLoading = false }: PaymentFeeFormProps) {
|
|
|
225
225
|
lessThan: (v) => (v ? v <= 100 : true),
|
|
226
226
|
},
|
|
227
227
|
})}
|
|
228
|
-
name=
|
|
229
|
-
type=
|
|
228
|
+
name='vatInPercent'
|
|
229
|
+
type='number'
|
|
230
230
|
min={0}
|
|
231
231
|
max={100}
|
|
232
|
-
step=
|
|
233
|
-
placeholder=
|
|
232
|
+
step='1'
|
|
233
|
+
placeholder='0'
|
|
234
234
|
isInvalid={Boolean(errors.vatInPercent)}
|
|
235
235
|
disabled={isLoading}
|
|
236
236
|
/>
|
|
237
237
|
|
|
238
|
-
<Form.Control.Feedback type=
|
|
238
|
+
<Form.Control.Feedback type='invalid'>
|
|
239
239
|
{errors.vatInPercent?.message}
|
|
240
240
|
{errors.vatInPercent?.type === 'moreThan' &&
|
|
241
241
|
t('Validation:fieldMinNumber', {
|
|
@@ -270,17 +270,17 @@ export function PaymentFeeForm({ isLoading = false }: PaymentFeeFormProps) {
|
|
|
270
270
|
lessThan: (v) => (v ? v <= 999999.99 : true),
|
|
271
271
|
},
|
|
272
272
|
})}
|
|
273
|
-
name=
|
|
274
|
-
type=
|
|
273
|
+
name='fixedFee'
|
|
274
|
+
type='number'
|
|
275
275
|
min={0}
|
|
276
276
|
max={999999.99}
|
|
277
|
-
step=
|
|
278
|
-
placeholder=
|
|
277
|
+
step='0.01'
|
|
278
|
+
placeholder='0,00'
|
|
279
279
|
isInvalid={Boolean(errors.fixedFee)}
|
|
280
280
|
disabled={isLoading}
|
|
281
281
|
/>
|
|
282
282
|
|
|
283
|
-
<Form.Control.Feedback type=
|
|
283
|
+
<Form.Control.Feedback type='invalid'>
|
|
284
284
|
{errors.fixedFee?.message}
|
|
285
285
|
{errors.fixedFee?.type === 'moreThan' &&
|
|
286
286
|
t('Validation:fieldMinNumber', {
|