@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
|
@@ -99,7 +99,7 @@ export function ProductQuantityConstantControl<T extends FormValues>(
|
|
|
99
99
|
|
|
100
100
|
<InputGroup hasValidation>
|
|
101
101
|
<InputGroup.Prepend>
|
|
102
|
-
<InputGroup.Text className=
|
|
102
|
+
<InputGroup.Text className='py-0 px-3'>
|
|
103
103
|
<IncrementIcon />
|
|
104
104
|
</InputGroup.Text>
|
|
105
105
|
</InputGroup.Prepend>
|
|
@@ -108,7 +108,7 @@ export function ProductQuantityConstantControl<T extends FormValues>(
|
|
|
108
108
|
render={({ field: { value, ref } }) => (
|
|
109
109
|
<Form.Control
|
|
110
110
|
ref={ref}
|
|
111
|
-
type=
|
|
111
|
+
type='number'
|
|
112
112
|
min={0}
|
|
113
113
|
step={1}
|
|
114
114
|
value={value as string}
|
|
@@ -126,7 +126,7 @@ export function ProductQuantityConstantControl<T extends FormValues>(
|
|
|
126
126
|
}}
|
|
127
127
|
/>
|
|
128
128
|
|
|
129
|
-
<Form.Control.Feedback type=
|
|
129
|
+
<Form.Control.Feedback type='invalid'>
|
|
130
130
|
{HookFormService.getErrors<T>(
|
|
131
131
|
`${fieldNamePrefix}.totalQuantity` as Path<T>,
|
|
132
132
|
errors,
|
|
@@ -142,7 +142,7 @@ export function ProductQuantityConstantControl<T extends FormValues>(
|
|
|
142
142
|
|
|
143
143
|
<InputGroup hasValidation>
|
|
144
144
|
<InputGroup.Prepend
|
|
145
|
-
className=
|
|
145
|
+
className='arrow-up-btn'
|
|
146
146
|
onClick={() => {
|
|
147
147
|
const currentNextQuantity = getValues(
|
|
148
148
|
`${fieldNamePrefix}.nextQuantity` as Path<T>,
|
|
@@ -153,7 +153,7 @@ export function ProductQuantityConstantControl<T extends FormValues>(
|
|
|
153
153
|
)
|
|
154
154
|
}}
|
|
155
155
|
>
|
|
156
|
-
<InputGroup.Text className=
|
|
156
|
+
<InputGroup.Text className='py-0 px-3'>
|
|
157
157
|
<IncrementIcon />
|
|
158
158
|
</InputGroup.Text>
|
|
159
159
|
</InputGroup.Prepend>
|
|
@@ -162,7 +162,7 @@ export function ProductQuantityConstantControl<T extends FormValues>(
|
|
|
162
162
|
render={({ field: { value, onChange, ref } }) => (
|
|
163
163
|
<Form.Control
|
|
164
164
|
ref={ref}
|
|
165
|
-
type=
|
|
165
|
+
type='number'
|
|
166
166
|
min={0}
|
|
167
167
|
step={1}
|
|
168
168
|
value={value as string}
|
|
@@ -187,8 +187,8 @@ export function ProductQuantityConstantControl<T extends FormValues>(
|
|
|
187
187
|
|
|
188
188
|
<InputGroup.Append>
|
|
189
189
|
<Button
|
|
190
|
-
className=
|
|
191
|
-
variant=
|
|
190
|
+
className='px-2 py-0'
|
|
191
|
+
variant='outline-info'
|
|
192
192
|
onClick={handleClick}
|
|
193
193
|
disabled={isLoading || disabled}
|
|
194
194
|
>
|
|
@@ -196,7 +196,7 @@ export function ProductQuantityConstantControl<T extends FormValues>(
|
|
|
196
196
|
</Button>
|
|
197
197
|
</InputGroup.Append>
|
|
198
198
|
|
|
199
|
-
<Form.Control.Feedback type=
|
|
199
|
+
<Form.Control.Feedback type='invalid'>
|
|
200
200
|
{HookFormService.getErrors<T>(
|
|
201
201
|
`${fieldNamePrefix}.nextQuantity` as Path<T>,
|
|
202
202
|
errors,
|
|
@@ -204,7 +204,7 @@ export function ProductQuantityConstantControl<T extends FormValues>(
|
|
|
204
204
|
</Form.Control.Feedback>
|
|
205
205
|
</InputGroup>
|
|
206
206
|
|
|
207
|
-
<Form.Text className=
|
|
207
|
+
<Form.Text className='text-muted'>
|
|
208
208
|
{t('youCanUsePositiveAndNegativeNumbersHere')}
|
|
209
209
|
</Form.Text>
|
|
210
210
|
</Form.Group>
|
|
@@ -65,7 +65,7 @@ export function ProductQuantityControl<T extends FormValues>(
|
|
|
65
65
|
|
|
66
66
|
<InputGroup hasValidation>
|
|
67
67
|
<InputGroup.Prepend
|
|
68
|
-
className=
|
|
68
|
+
className='arrow-up-btn'
|
|
69
69
|
onClick={() => {
|
|
70
70
|
setValue(
|
|
71
71
|
`${fieldNamePrefix}.minQuantity` as Path<T>,
|
|
@@ -73,7 +73,7 @@ export function ProductQuantityControl<T extends FormValues>(
|
|
|
73
73
|
)
|
|
74
74
|
}}
|
|
75
75
|
>
|
|
76
|
-
<InputGroup.Text className=
|
|
76
|
+
<InputGroup.Text className='py-0 px-3'>
|
|
77
77
|
<IncrementIcon />
|
|
78
78
|
</InputGroup.Text>
|
|
79
79
|
</InputGroup.Prepend>
|
|
@@ -82,7 +82,7 @@ export function ProductQuantityControl<T extends FormValues>(
|
|
|
82
82
|
render={({ field: { value, onChange, ref } }) => (
|
|
83
83
|
<Form.Control
|
|
84
84
|
ref={ref}
|
|
85
|
-
type=
|
|
85
|
+
type='number'
|
|
86
86
|
min={0}
|
|
87
87
|
step={1}
|
|
88
88
|
value={value as string}
|
|
@@ -107,7 +107,7 @@ export function ProductQuantityControl<T extends FormValues>(
|
|
|
107
107
|
}}
|
|
108
108
|
/>
|
|
109
109
|
|
|
110
|
-
<Form.Control.Feedback type=
|
|
110
|
+
<Form.Control.Feedback type='invalid'>
|
|
111
111
|
{HookFormService.getErrors<T>(
|
|
112
112
|
`${fieldNamePrefix}.minQuantity` as Path<T>,
|
|
113
113
|
errors,
|
|
@@ -123,7 +123,7 @@ export function ProductQuantityControl<T extends FormValues>(
|
|
|
123
123
|
|
|
124
124
|
<InputGroup hasValidation>
|
|
125
125
|
<InputGroup.Prepend
|
|
126
|
-
className=
|
|
126
|
+
className='arrow-up-btn'
|
|
127
127
|
onClick={() => {
|
|
128
128
|
setValue(
|
|
129
129
|
`${fieldNamePrefix}.maxQuantity` as Path<T>,
|
|
@@ -131,7 +131,7 @@ export function ProductQuantityControl<T extends FormValues>(
|
|
|
131
131
|
)
|
|
132
132
|
}}
|
|
133
133
|
>
|
|
134
|
-
<InputGroup.Text className=
|
|
134
|
+
<InputGroup.Text className='py-0 px-3'>
|
|
135
135
|
<IncrementIcon />
|
|
136
136
|
</InputGroup.Text>
|
|
137
137
|
</InputGroup.Prepend>
|
|
@@ -140,7 +140,7 @@ export function ProductQuantityControl<T extends FormValues>(
|
|
|
140
140
|
render={({ field: { value, onChange, ref } }) => (
|
|
141
141
|
<Form.Control
|
|
142
142
|
ref={ref}
|
|
143
|
-
type=
|
|
143
|
+
type='number'
|
|
144
144
|
min={0}
|
|
145
145
|
step={1}
|
|
146
146
|
value={value && (value as string)}
|
|
@@ -165,7 +165,7 @@ export function ProductQuantityControl<T extends FormValues>(
|
|
|
165
165
|
}}
|
|
166
166
|
/>
|
|
167
167
|
|
|
168
|
-
<Form.Control.Feedback type=
|
|
168
|
+
<Form.Control.Feedback type='invalid'>
|
|
169
169
|
{HookFormService.getErrors<T>(
|
|
170
170
|
`${fieldNamePrefix}.maxQuantity` as Path<T>,
|
|
171
171
|
errors,
|
|
@@ -57,7 +57,7 @@ export function ProductQuantityRechargingControl<T extends FormValues>(
|
|
|
57
57
|
|
|
58
58
|
<InputGroup hasValidation>
|
|
59
59
|
<InputGroup.Prepend>
|
|
60
|
-
<InputGroup.Text className=
|
|
60
|
+
<InputGroup.Text className='py-0 px-3'>
|
|
61
61
|
<IncrementIcon />
|
|
62
62
|
</InputGroup.Text>
|
|
63
63
|
</InputGroup.Prepend>
|
|
@@ -66,7 +66,7 @@ export function ProductQuantityRechargingControl<T extends FormValues>(
|
|
|
66
66
|
render={({ field: { value, onChange, ref } }) => (
|
|
67
67
|
<Form.Control
|
|
68
68
|
ref={ref}
|
|
69
|
-
type=
|
|
69
|
+
type='number'
|
|
70
70
|
min={0}
|
|
71
71
|
step={1}
|
|
72
72
|
{...register(`${fieldNamePrefix}.totalQuantity` as Path<T>, {
|
|
@@ -112,7 +112,7 @@ export function ProductQuantityRechargingControl<T extends FormValues>(
|
|
|
112
112
|
}
|
|
113
113
|
/>
|
|
114
114
|
|
|
115
|
-
<Form.Control.Feedback type=
|
|
115
|
+
<Form.Control.Feedback type='invalid'>
|
|
116
116
|
{HookFormService.getErrors<T>(
|
|
117
117
|
`${fieldNamePrefix}.totalQuantity` as Path<T>,
|
|
118
118
|
errors,
|
|
@@ -59,7 +59,7 @@ export const Default: Story<ProductCategoryControlProps> = (args) => {
|
|
|
59
59
|
<ProductSetLoadingContext.Provider value={contextValue}>
|
|
60
60
|
<FormProvider {...form}>
|
|
61
61
|
<Form
|
|
62
|
-
className=
|
|
62
|
+
className='d-flex flex-column'
|
|
63
63
|
noValidate
|
|
64
64
|
onSubmit={form.handleSubmit(onSubmit)}
|
|
65
65
|
>
|
|
@@ -88,7 +88,7 @@ export const WithData: Story<ProductCategoryControlProps> = (args) => {
|
|
|
88
88
|
<ProductSetLoadingContext.Provider value={contextValue}>
|
|
89
89
|
<FormProvider {...form}>
|
|
90
90
|
<Form
|
|
91
|
-
className=
|
|
91
|
+
className='d-flex flex-column'
|
|
92
92
|
noValidate
|
|
93
93
|
onSubmit={form.handleSubmit(onSubmit)}
|
|
94
94
|
>
|
|
@@ -120,7 +120,7 @@ export const WithSortable: Story<ProductCategoryControlProps> = (args) => {
|
|
|
120
120
|
<ProductSetLoadingContext.Provider value={contextValue}>
|
|
121
121
|
<FormProvider {...form}>
|
|
122
122
|
<Form
|
|
123
|
-
className=
|
|
123
|
+
className='d-flex flex-column'
|
|
124
124
|
noValidate
|
|
125
125
|
onSubmit={form.handleSubmit(onSubmit)}
|
|
126
126
|
>
|
|
@@ -130,7 +130,7 @@ export const WithSortable: Story<ProductCategoryControlProps> = (args) => {
|
|
|
130
130
|
>
|
|
131
131
|
<SortableTree.Item
|
|
132
132
|
id={id}
|
|
133
|
-
title=
|
|
133
|
+
title='Product category #1'
|
|
134
134
|
body={<ProductCategoryControl {...args} />}
|
|
135
135
|
/>
|
|
136
136
|
</SortableContext>
|
|
@@ -124,7 +124,7 @@ export function ProductCategoryControl({
|
|
|
124
124
|
|
|
125
125
|
return (
|
|
126
126
|
<>
|
|
127
|
-
<Col md={12} xl className=
|
|
127
|
+
<Col md={12} xl className='p-0'>
|
|
128
128
|
<Form.Group controlId={nameId}>
|
|
129
129
|
<Form.Label>{t('nameOfTheCategory')}</Form.Label>
|
|
130
130
|
<Form.Control
|
|
@@ -152,7 +152,7 @@ export function ProductCategoryControl({
|
|
|
152
152
|
placeholder={t('name')}
|
|
153
153
|
disabled={isLoading || isOverride}
|
|
154
154
|
/>
|
|
155
|
-
<Form.Control.Feedback type=
|
|
155
|
+
<Form.Control.Feedback type='invalid'>
|
|
156
156
|
{HookFormService.getErrors<ProductSetFormValues>(
|
|
157
157
|
`${fieldNamePrefix}.name` as const,
|
|
158
158
|
errors,
|
|
@@ -165,7 +165,7 @@ export function ProductCategoryControl({
|
|
|
165
165
|
control={control}
|
|
166
166
|
name={`${fieldNamePrefix}.quantityType` as const}
|
|
167
167
|
render={({ field }) => (
|
|
168
|
-
<Form.Group className=
|
|
168
|
+
<Form.Group className='d-flex flex-column flex-grow-1 align-items-start'>
|
|
169
169
|
<Form.Label>{t('quantityType')}</Form.Label>
|
|
170
170
|
<Switch
|
|
171
171
|
name={field.name}
|
|
@@ -190,7 +190,7 @@ export function ProductCategoryControl({
|
|
|
190
190
|
|
|
191
191
|
<InputGroup hasValidation>
|
|
192
192
|
<InputGroup.Prepend
|
|
193
|
-
className=
|
|
193
|
+
className='arrow-up-btn'
|
|
194
194
|
onClick={() => {
|
|
195
195
|
const currentMinSubItems = Number(
|
|
196
196
|
getValues(`${fieldNamePrefix}.minSubItems`) || 0,
|
|
@@ -202,7 +202,7 @@ export function ProductCategoryControl({
|
|
|
202
202
|
)
|
|
203
203
|
}}
|
|
204
204
|
>
|
|
205
|
-
<InputGroup.Text className=
|
|
205
|
+
<InputGroup.Text className='py-0 px-3'>
|
|
206
206
|
<IncrementIcon />
|
|
207
207
|
</InputGroup.Text>
|
|
208
208
|
</InputGroup.Prepend>
|
|
@@ -211,7 +211,7 @@ export function ProductCategoryControl({
|
|
|
211
211
|
render={({ field: { value, onChange, name, ref } }) => (
|
|
212
212
|
<Form.Control
|
|
213
213
|
ref={ref}
|
|
214
|
-
type=
|
|
214
|
+
type='number'
|
|
215
215
|
min={0}
|
|
216
216
|
step={1}
|
|
217
217
|
value={value === null ? '' : value}
|
|
@@ -246,7 +246,7 @@ export function ProductCategoryControl({
|
|
|
246
246
|
}}
|
|
247
247
|
/>
|
|
248
248
|
|
|
249
|
-
<Form.Control.Feedback type=
|
|
249
|
+
<Form.Control.Feedback type='invalid'>
|
|
250
250
|
{HookFormService.getErrors<ProductSetFormValues>(
|
|
251
251
|
`${fieldNamePrefix}.minSubItems` as const,
|
|
252
252
|
errors,
|
|
@@ -262,7 +262,7 @@ export function ProductCategoryControl({
|
|
|
262
262
|
|
|
263
263
|
<InputGroup hasValidation>
|
|
264
264
|
<InputGroup.Prepend
|
|
265
|
-
className=
|
|
265
|
+
className='arrow-up-btn'
|
|
266
266
|
onClick={() => {
|
|
267
267
|
const currentMaxSubItems = Number(
|
|
268
268
|
getValues(`${fieldNamePrefix}.maxSubItems`) || 0,
|
|
@@ -274,7 +274,7 @@ export function ProductCategoryControl({
|
|
|
274
274
|
)
|
|
275
275
|
}}
|
|
276
276
|
>
|
|
277
|
-
<InputGroup.Text className=
|
|
277
|
+
<InputGroup.Text className='py-0 px-3'>
|
|
278
278
|
<IncrementIcon />
|
|
279
279
|
</InputGroup.Text>
|
|
280
280
|
</InputGroup.Prepend>
|
|
@@ -283,7 +283,7 @@ export function ProductCategoryControl({
|
|
|
283
283
|
render={({ field: { value, onChange, name, ref } }) => (
|
|
284
284
|
<Form.Control
|
|
285
285
|
ref={ref}
|
|
286
|
-
type=
|
|
286
|
+
type='number'
|
|
287
287
|
step={1}
|
|
288
288
|
name={name}
|
|
289
289
|
value={value === null ? '' : value}
|
|
@@ -308,7 +308,7 @@ export function ProductCategoryControl({
|
|
|
308
308
|
}}
|
|
309
309
|
/>
|
|
310
310
|
|
|
311
|
-
<Form.Control.Feedback type=
|
|
311
|
+
<Form.Control.Feedback type='invalid'>
|
|
312
312
|
{HookFormService.getErrors<ProductSetFormValues>(
|
|
313
313
|
`${fieldNamePrefix}.maxSubItems` as const,
|
|
314
314
|
errors,
|
|
@@ -324,7 +324,7 @@ export function ProductCategoryControl({
|
|
|
324
324
|
<Form.Label>{t('Design:overallQuantity')}</Form.Label>
|
|
325
325
|
<InputGroup hasValidation>
|
|
326
326
|
<InputGroup.Prepend
|
|
327
|
-
className=
|
|
327
|
+
className='arrow-up-btn'
|
|
328
328
|
onClick={() => {
|
|
329
329
|
const currentOverallCapacity = Number(
|
|
330
330
|
getValues(`${fieldNamePrefix}.overallQuantity`) || 0,
|
|
@@ -336,7 +336,7 @@ export function ProductCategoryControl({
|
|
|
336
336
|
)
|
|
337
337
|
}}
|
|
338
338
|
>
|
|
339
|
-
<InputGroup.Text className=
|
|
339
|
+
<InputGroup.Text className='py-0 px-3'>
|
|
340
340
|
<IncrementIcon />
|
|
341
341
|
</InputGroup.Text>
|
|
342
342
|
</InputGroup.Prepend>
|
|
@@ -347,7 +347,7 @@ export function ProductCategoryControl({
|
|
|
347
347
|
<Form.Control
|
|
348
348
|
min={0}
|
|
349
349
|
step={1}
|
|
350
|
-
type=
|
|
350
|
+
type='number'
|
|
351
351
|
disabled={isOverride}
|
|
352
352
|
isInvalid={HookFormService.isInvalid<ProductSetFormValues>(
|
|
353
353
|
`${fieldNamePrefix}.overallQuantity`,
|
|
@@ -366,7 +366,7 @@ export function ProductCategoryControl({
|
|
|
366
366
|
},
|
|
367
367
|
}}
|
|
368
368
|
/>
|
|
369
|
-
<Form.Control.Feedback type=
|
|
369
|
+
<Form.Control.Feedback type='invalid'>
|
|
370
370
|
{HookFormService.getErrors<ProductSetFormValues>(
|
|
371
371
|
`${fieldNamePrefix}.overallQuantity`,
|
|
372
372
|
errors,
|
|
@@ -378,20 +378,20 @@ export function ProductCategoryControl({
|
|
|
378
378
|
</Row>
|
|
379
379
|
</Col>
|
|
380
380
|
|
|
381
|
-
<Col md={12} xl className=
|
|
382
|
-
<Form.Group controlId={advancedId} className=
|
|
381
|
+
<Col md={12} xl className='p-0'>
|
|
382
|
+
<Form.Group controlId={advancedId} className='custom-checkbox'>
|
|
383
383
|
<Form.Check
|
|
384
384
|
custom
|
|
385
|
-
type=
|
|
385
|
+
type='checkbox'
|
|
386
386
|
name={advancedId}
|
|
387
387
|
disabled={isLoading}
|
|
388
|
-
id=
|
|
388
|
+
id='check-api'
|
|
389
389
|
>
|
|
390
390
|
<Form.Check.Input
|
|
391
391
|
checked={expanded}
|
|
392
392
|
onChange={handleExpand}
|
|
393
393
|
disabled={isOverride}
|
|
394
|
-
type=
|
|
394
|
+
type='checkbox'
|
|
395
395
|
/>
|
|
396
396
|
<Form.Check.Label>{t('showAdvancedOptions')}</Form.Check.Label>
|
|
397
397
|
</Form.Check>
|
|
@@ -401,7 +401,7 @@ export function ProductCategoryControl({
|
|
|
401
401
|
{categoryHasTickets && (
|
|
402
402
|
<Form.Group
|
|
403
403
|
controlId={hasTicketId}
|
|
404
|
-
className=
|
|
404
|
+
className='advanced-switch-container'
|
|
405
405
|
>
|
|
406
406
|
<Form.Label>{t('hasTicket')}</Form.Label>
|
|
407
407
|
<div>
|
|
@@ -448,7 +448,7 @@ export function ProductCategoryControl({
|
|
|
448
448
|
{category.hasTicket && (
|
|
449
449
|
<Form.Group
|
|
450
450
|
controlId={collectUserInfoId}
|
|
451
|
-
className=
|
|
451
|
+
className='advanced-switch-container'
|
|
452
452
|
>
|
|
453
453
|
<Form.Label>{t('collectUserInfo')}</Form.Label>
|
|
454
454
|
|
|
@@ -472,7 +472,7 @@ export function ProductCategoryControl({
|
|
|
472
472
|
{!category.hasTicket && (
|
|
473
473
|
<Form.Group
|
|
474
474
|
controlId={isTimeRelatedId}
|
|
475
|
-
className=
|
|
475
|
+
className='advanced-switch-container'
|
|
476
476
|
>
|
|
477
477
|
<>
|
|
478
478
|
<Form.Label>{t('isTimeRelated')}</Form.Label>
|
|
@@ -496,7 +496,7 @@ export function ProductCategoryControl({
|
|
|
496
496
|
{/* // @TODO This feature is hidden until we fix all critical bugs. */}
|
|
497
497
|
<Form.Group
|
|
498
498
|
controlId={allowDepositsId}
|
|
499
|
-
className=
|
|
499
|
+
className='advanced-switch-container'
|
|
500
500
|
>
|
|
501
501
|
<Form.Label>{t('allowDeposits')}</Form.Label>
|
|
502
502
|
<div>
|
|
@@ -518,14 +518,14 @@ export function ProductCategoryControl({
|
|
|
518
518
|
{allowDeposits && (
|
|
519
519
|
<Form.Group
|
|
520
520
|
controlId={remainderExpireAfterId}
|
|
521
|
-
className=
|
|
521
|
+
className='deposit-days'
|
|
522
522
|
>
|
|
523
523
|
<Form.Label>{t('depositDays')}</Form.Label>
|
|
524
524
|
<Controller
|
|
525
525
|
render={({ field: { value, onChange, name, ref } }) => (
|
|
526
526
|
<Form.Control
|
|
527
527
|
ref={ref}
|
|
528
|
-
type=
|
|
528
|
+
type='number'
|
|
529
529
|
min={0}
|
|
530
530
|
step={1}
|
|
531
531
|
value={value}
|
|
@@ -542,7 +542,7 @@ export function ProductCategoryControl({
|
|
|
542
542
|
name={`${fieldNamePrefix}.remainderExpireAfter` as const}
|
|
543
543
|
/>
|
|
544
544
|
|
|
545
|
-
<Form.Control.Feedback type=
|
|
545
|
+
<Form.Control.Feedback type='invalid'>
|
|
546
546
|
{HookFormService.getErrors<ProductSetFormValues>(
|
|
547
547
|
`${fieldNamePrefix}.remainderExpireAfter` as const,
|
|
548
548
|
errors,
|
|
@@ -119,7 +119,7 @@ export const ProductZoneControl = <T extends FormValues>({
|
|
|
119
119
|
name={`${fieldNamePrefix}.zoneId`}
|
|
120
120
|
render={({ field }) => (
|
|
121
121
|
<Form.Control
|
|
122
|
-
as=
|
|
122
|
+
as='select'
|
|
123
123
|
disabled={isOverrides}
|
|
124
124
|
isInvalid={HookFormService.isInvalid(
|
|
125
125
|
`${fieldNamePrefix}.zoneId`,
|
|
@@ -144,7 +144,7 @@ export const ProductZoneControl = <T extends FormValues>({
|
|
|
144
144
|
},
|
|
145
145
|
}}
|
|
146
146
|
/>
|
|
147
|
-
<Form.Control.Feedback type=
|
|
147
|
+
<Form.Control.Feedback type='invalid'>
|
|
148
148
|
{HookFormService.getErrors(
|
|
149
149
|
`${fieldNamePrefix}.zoneId` as Path<T>,
|
|
150
150
|
errors,
|
|
@@ -155,7 +155,7 @@ export const ProductZoneControl = <T extends FormValues>({
|
|
|
155
155
|
</Row>
|
|
156
156
|
</>
|
|
157
157
|
{categoryType === CATEGORY_TYPE_FIXED_DURATION && (
|
|
158
|
-
<Row className=
|
|
158
|
+
<Row className='align-items-start duration-capacity-container'>
|
|
159
159
|
<ProductDurationControl
|
|
160
160
|
fieldNamePrefix={fieldNamePrefix}
|
|
161
161
|
disabled={disabledDuration || isOverrides}
|
|
@@ -178,7 +178,7 @@ export const ProductZoneControl = <T extends FormValues>({
|
|
|
178
178
|
/>
|
|
179
179
|
</Col>
|
|
180
180
|
{disabledDuration && (
|
|
181
|
-
<div className=
|
|
181
|
+
<div className='duration-hint duration-capacity-container'>
|
|
182
182
|
{t('Design:forDurationEditing')}
|
|
183
183
|
</div>
|
|
184
184
|
)}
|
|
@@ -187,7 +187,7 @@ export const ProductZoneControl = <T extends FormValues>({
|
|
|
187
187
|
|
|
188
188
|
{categoryType === CATEGORY_TYPE_GAME && (
|
|
189
189
|
<>
|
|
190
|
-
<Row className=
|
|
190
|
+
<Row className='align-items-start duration-capacity-container'>
|
|
191
191
|
<Col lg={4} md={4}>
|
|
192
192
|
<FormNumberInput
|
|
193
193
|
fieldName={`${fieldNamePrefix}.capacity`}
|
|
@@ -231,7 +231,7 @@ export const ProductZoneControl = <T extends FormValues>({
|
|
|
231
231
|
</Col>
|
|
232
232
|
</Row>
|
|
233
233
|
{disabledDuration && (
|
|
234
|
-
<div className=
|
|
234
|
+
<div className='duration-hint pl-0'>
|
|
235
235
|
{t('Design:forDurationEditing')}
|
|
236
236
|
</div>
|
|
237
237
|
)}
|
|
@@ -63,7 +63,7 @@ export const WithSortable: Story<StepControlProps> = (args) => {
|
|
|
63
63
|
key={id}
|
|
64
64
|
id={id}
|
|
65
65
|
title={`Step #${id}`}
|
|
66
|
-
badge={<Badge variant=
|
|
66
|
+
badge={<Badge variant='secondary'>step</Badge>}
|
|
67
67
|
body={<StepControl {...args} />}
|
|
68
68
|
/>
|
|
69
69
|
))}
|
|
@@ -93,20 +93,20 @@ export function StepControl({
|
|
|
93
93
|
},
|
|
94
94
|
}}
|
|
95
95
|
/>
|
|
96
|
-
<Form.Control.Feedback type=
|
|
96
|
+
<Form.Control.Feedback type='invalid'>
|
|
97
97
|
{HookFormService.getErrors<ProductSetFormValues>(
|
|
98
98
|
fieldName,
|
|
99
99
|
errors,
|
|
100
100
|
)}
|
|
101
101
|
</Form.Control.Feedback>
|
|
102
102
|
{providerHasMap && (
|
|
103
|
-
<div className=
|
|
103
|
+
<div className='mt-5 pt-5'>
|
|
104
104
|
<hr />
|
|
105
105
|
<Form.Group
|
|
106
106
|
controlId={hasMapId}
|
|
107
|
-
className=
|
|
107
|
+
className='d-flex mb-3 align-items-center'
|
|
108
108
|
>
|
|
109
|
-
<Form.Label className=
|
|
109
|
+
<Form.Label className='mr-5 m-0'>{t('hasAMap')}</Form.Label>
|
|
110
110
|
|
|
111
111
|
<div>
|
|
112
112
|
<Controller
|
|
@@ -124,7 +124,7 @@ export function StepControl({
|
|
|
124
124
|
</div>
|
|
125
125
|
</Form.Group>
|
|
126
126
|
{hasMap && (
|
|
127
|
-
<p className=
|
|
127
|
+
<p className='mt-5 info'>
|
|
128
128
|
{t('toUseAMapPleaseAddProductsFirst')}
|
|
129
129
|
</p>
|
|
130
130
|
)}
|
|
@@ -18,13 +18,13 @@ const mockChildren = (
|
|
|
18
18
|
export function Default(args) {
|
|
19
19
|
return (
|
|
20
20
|
<ProductSetTabs {...args}>
|
|
21
|
-
<ProductSetTabs.Tab eventKey=
|
|
21
|
+
<ProductSetTabs.Tab eventKey='first' title='Tab #1'>
|
|
22
22
|
{mockChildren}
|
|
23
23
|
</ProductSetTabs.Tab>
|
|
24
|
-
<ProductSetTabs.Tab eventKey=
|
|
24
|
+
<ProductSetTabs.Tab eventKey='second' title='Tab #2'>
|
|
25
25
|
{mockChildren}
|
|
26
26
|
</ProductSetTabs.Tab>
|
|
27
|
-
<ProductSetTabs.Tab eventKey=
|
|
27
|
+
<ProductSetTabs.Tab eventKey='third' title='Tab #3'>
|
|
28
28
|
{mockChildren}
|
|
29
29
|
</ProductSetTabs.Tab>
|
|
30
30
|
</ProductSetTabs>
|
|
@@ -16,7 +16,7 @@ function CategoryView(category: Category) {
|
|
|
16
16
|
<Form.Check
|
|
17
17
|
{...register('categories')}
|
|
18
18
|
id={id}
|
|
19
|
-
name=
|
|
19
|
+
name='categories'
|
|
20
20
|
value={category.id}
|
|
21
21
|
label={category.name}
|
|
22
22
|
custom
|
|
@@ -26,20 +26,20 @@ function CategoryView(category: Category) {
|
|
|
26
26
|
|
|
27
27
|
export function CategoriesInput({ categories: groups }: CategoriesInputProps) {
|
|
28
28
|
return (
|
|
29
|
-
<div className=
|
|
29
|
+
<div className='my-n4'>
|
|
30
30
|
{groups.map((group) => (
|
|
31
|
-
<Row key={group.id} className=
|
|
32
|
-
<Col xs=
|
|
31
|
+
<Row key={group.id} className='my-4'>
|
|
32
|
+
<Col xs='12' className='h6'>
|
|
33
33
|
{group.name}
|
|
34
34
|
</Col>
|
|
35
35
|
{group.categories.map((category) => (
|
|
36
36
|
<Col
|
|
37
37
|
key={category.id}
|
|
38
|
-
xs=
|
|
39
|
-
sm=
|
|
40
|
-
md=
|
|
41
|
-
lg=
|
|
42
|
-
className=
|
|
38
|
+
xs='12'
|
|
39
|
+
sm='6'
|
|
40
|
+
md='4'
|
|
41
|
+
lg='3'
|
|
42
|
+
className='py-1'
|
|
43
43
|
>
|
|
44
44
|
<CategoryView {...category} />
|
|
45
45
|
</Col>
|
|
@@ -23,16 +23,16 @@ export function CategoriesInputDescription({
|
|
|
23
23
|
)
|
|
24
24
|
if (selectedCategories?.length) return <></>
|
|
25
25
|
return (
|
|
26
|
-
<Row key={group?.id} noGutters className=
|
|
27
|
-
<Col xs=
|
|
26
|
+
<Row key={group?.id} noGutters className='mx-n1 align-items-center'>
|
|
27
|
+
<Col xs='auto' className='m-1'>
|
|
28
28
|
{group?.name}:
|
|
29
29
|
</Col>
|
|
30
30
|
{selectedCategories?.map((category) => (
|
|
31
31
|
<Badge
|
|
32
32
|
pill
|
|
33
|
-
variant=
|
|
33
|
+
variant='secondary'
|
|
34
34
|
key={category?.id}
|
|
35
|
-
className=
|
|
35
|
+
className='m-1'
|
|
36
36
|
>
|
|
37
37
|
{category?.name}
|
|
38
38
|
</Badge>
|