@licklist/design 0.44.485-dev.4 → 0.44.485-dev.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/affiliate/types/index.d.ts +1 -1
- package/dist/affiliate/types/index.d.ts.map +1 -1
- package/dist/auth/Login/LoginComponent.d.ts +1 -1
- package/dist/auth/Login/LoginComponent.d.ts.map +1 -1
- package/dist/auth/Login/LoginFormComponent.d.ts +1 -1
- package/dist/auth/Login/LoginFormComponent.d.ts.map +1 -1
- package/dist/auth/Register/RegisterComponent.d.ts +1 -1
- package/dist/auth/Register/RegisterComponent.d.ts.map +1 -1
- package/dist/auth/Register/RegisterFormComponent.d.ts +1 -1
- package/dist/auth/Register/RegisterFormComponent.d.ts.map +1 -1
- package/dist/auth/ResetPassword/ResetPasswordFormComponent.d.ts +1 -1
- package/dist/auth/ResetPassword/ResetPasswordFormComponent.d.ts.map +1 -1
- package/dist/collapsible-input-group/CollapsibleInputGroup.d.ts +1 -1
- package/dist/collapsible-input-group/CollapsibleInputGroup.d.ts.map +1 -1
- package/dist/custom-fields/field-set/CustomFieldSets.d.ts +3 -3
- package/dist/custom-fields/field-set/CustomFieldSets.d.ts.map +1 -1
- package/dist/custom-fields/field-set/components/CustomFieldSet/CustomFieldSet.d.ts +1 -1
- package/dist/custom-fields/field-set/components/CustomFieldSet/CustomFieldSet.d.ts.map +1 -1
- package/dist/custom-fields/field-set/contexts/useCustomFieldSets.d.ts +2 -2
- package/dist/custom-fields/field-set/contexts/useCustomFieldSets.d.ts.map +1 -1
- package/dist/customers/components/filter/CustomerFilter.d.ts +2 -3
- package/dist/customers/components/filter/CustomerFilter.d.ts.map +1 -1
- package/dist/customers/components/filter/CustomerFilter.js +1 -1
- package/dist/events/edit-event-modal/IntervalInput.d.ts +4 -1
- package/dist/events/edit-event-modal/IntervalInput.d.ts.map +1 -1
- package/dist/events/edit-event-modal/IntervalInput.js +1 -1
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts.map +1 -1
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.js +1 -1
- package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.d.ts.map +1 -1
- package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +1 -1
- package/dist/events/edit-event-modal/utils/getDefaultProductSet.d.ts.map +1 -1
- package/dist/events/edit-event-modal/utils/getDefaultProductSet.js +1 -1
- package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.d.ts +3 -3
- package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.d.ts.map +1 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.d.ts +1 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.d.ts.map +1 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.js +1 -1
- package/dist/events/event-venue-map/EventVenueMap.d.ts +5 -2
- package/dist/events/event-venue-map/EventVenueMap.d.ts.map +1 -1
- package/dist/events/event-venue-map/EventVenueMap.js +1 -1
- package/dist/events/event-venue-map/components/Dropdown/Dropdown.d.ts +1 -1
- package/dist/events/event-venue-map/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/Dropdown/components/ProductsControl/ProductsControl.d.ts +1 -1
- package/dist/events/event-venue-map/components/Dropdown/components/ProductsControl/ProductsControl.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/Dropdown/components/SelectControl/SelectControl.d.ts +1 -1
- package/dist/events/event-venue-map/components/Dropdown/components/SelectControl/SelectControl.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/MapPoint/MapPoint.d.ts +1 -1
- package/dist/events/event-venue-map/components/MapPoint/MapPoint.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/MapPoint/MapPoint.js +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/DeleteIcon/DeleteIcon.d.ts +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/DeleteIcon/DeleteIcon.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/EditIcon/EditIcon.d.ts +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/EditIcon/EditIcon.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/PointIcon/PointIcon.d.ts +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/PointIcon/PointIcon.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/ProductIcon/ProductIcon.d.ts +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/ProductIcon/ProductIcon.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/ProductIcon/ProductIcon.js +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/ProductTooltip/ProductTooltip.d.ts +9 -0
- package/dist/events/event-venue-map/components/MapPoint/components/ProductTooltip/ProductTooltip.d.ts.map +1 -0
- package/dist/events/event-venue-map/components/MapPoint/components/ProductTooltip/ProductTooltip.js +1 -0
- package/dist/events/event-venue-map/components/MapPoint/components/ProductTooltip/index.d.ts +2 -0
- package/dist/events/event-venue-map/components/MapPoint/components/ProductTooltip/index.d.ts.map +1 -0
- package/dist/events/event-venue-map/components/VenueMap/VenueMap.d.ts +4 -2
- package/dist/events/event-venue-map/components/VenueMap/VenueMap.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/VenueMap/VenueMap.js +1 -1
- package/dist/events/event-venue-map/hooks/useCanvasSize.d.ts +1 -1
- package/dist/events/event-venue-map/hooks/useCanvasSize.d.ts.map +1 -1
- package/dist/events/event-venue-map/hooks/useStageActions.d.ts +1 -1
- package/dist/events/event-venue-map/hooks/useStageActions.d.ts.map +1 -1
- package/dist/events/event-venue-map/types/index.d.ts +5 -5
- package/dist/events/event-venue-map/types/index.d.ts.map +1 -1
- package/dist/events/event-venue-map/utils/index.d.ts +3 -3
- package/dist/events/event-venue-map/utils/index.d.ts.map +1 -1
- package/dist/file-upload/FilePreview.d.ts +2 -2
- package/dist/file-upload/FilePreview.d.ts.map +1 -1
- package/dist/file-upload/FileUpload.d.ts +1 -1
- package/dist/file-upload/FileUpload.d.ts.map +1 -1
- package/dist/header/Header.d.ts +1 -1
- package/dist/header/Header.d.ts.map +1 -1
- package/dist/help/example/Example.d.ts +4 -4
- package/dist/help/example/Example.d.ts.map +1 -1
- package/dist/help/popover/HelpPopover.d.ts +1 -1
- package/dist/help/popover/HelpPopover.d.ts.map +1 -1
- package/dist/iframe/custom-fields/components/CustomDateField.d.ts +1 -1
- package/dist/iframe/custom-fields/components/CustomDateField.d.ts.map +1 -1
- package/dist/iframe/event/event-calendar/EventCalendar.d.ts +1 -1
- package/dist/iframe/event/event-calendar/EventCalendar.d.ts.map +1 -1
- package/dist/iframe/event/event-calendar/components/CalendarButtons/CalendarButtons.d.ts +1 -1
- package/dist/iframe/event/event-calendar/components/CalendarButtons/CalendarButtons.d.ts.map +1 -1
- package/dist/iframe/event/event-calendar/components/CalendarDate/CalendarDate.d.ts +1 -1
- package/dist/iframe/event/event-calendar/components/CalendarDate/CalendarDate.d.ts.map +1 -1
- package/dist/iframe/event/event-calendar/components/CalendarDates/CalendarDates.d.ts +1 -1
- package/dist/iframe/event/event-calendar/components/CalendarDates/CalendarDates.d.ts.map +1 -1
- package/dist/iframe/event/event-calendar/components/CalendarSelect/CalendarSelect.d.ts +2 -2
- package/dist/iframe/event/event-calendar/components/CalendarSelect/CalendarSelect.d.ts.map +1 -1
- package/dist/iframe/event/event-calendar/types/index.d.ts +1 -1
- package/dist/iframe/event/event-calendar/types/index.d.ts.map +1 -1
- package/dist/iframe/event/event-details/EventDetails.d.ts +1 -1
- package/dist/iframe/event/event-details/EventDetails.d.ts.map +1 -1
- package/dist/iframe/event/event-order-short-summary/components/Summary/Summary.d.ts +5 -6
- package/dist/iframe/event/event-order-short-summary/components/Summary/Summary.d.ts.map +1 -1
- package/dist/iframe/event/event-order-short-summary/components/Summary/Summary.js +1 -1
- package/dist/iframe/event/event-product-sets/EventProductSets.d.ts +1 -1
- package/dist/iframe/event/event-product-sets/EventProductSets.d.ts.map +1 -1
- package/dist/iframe/event/event-product-sets/components/EventProductSet.d.ts +1 -1
- package/dist/iframe/event/event-product-sets/components/EventProductSet.d.ts.map +1 -1
- package/dist/iframe/event/event-step-venue-map-zones/EventStepVenueMapZones.d.ts +1 -1
- package/dist/iframe/event/event-step-venue-map-zones/EventStepVenueMapZones.d.ts.map +1 -1
- package/dist/iframe/event/event-step-venue-map-zones/components/EventStepVenueMapZone.d.ts +1 -1
- package/dist/iframe/event/event-step-venue-map-zones/components/EventStepVenueMapZone.d.ts.map +1 -1
- package/dist/iframe/event/event-venue-map/IframeEventVenueMap.d.ts +5 -1
- package/dist/iframe/event/event-venue-map/IframeEventVenueMap.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/BookingSummary.js +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/BookingSummaryAccordion.d.ts +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/BookingSummaryAccordion.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.d.ts +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/components/SummaryTotalBlock.d.ts +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/components/SummaryTotalBlock.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.d.ts +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts +4 -4
- package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts +1 -1
- package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/utils/index.js +1 -1
- package/dist/iframe/order-process/components/BookingSummaryFooter/BookingSummaryFooter.d.ts +4 -4
- package/dist/iframe/order-process/components/BookingSummaryFooter/BookingSummaryFooter.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.d.ts +3 -1
- package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.js +1 -1
- package/dist/iframe/order-process/components/CalendarStepsForm/components/Category.d.ts +4 -2
- package/dist/iframe/order-process/components/CalendarStepsForm/components/Category.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CalendarStepsForm/components/Category.js +1 -1
- package/dist/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.d.ts +4 -2
- package/dist/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.js +1 -1
- package/dist/iframe/order-process/components/Category/Category.d.ts +2 -1
- package/dist/iframe/order-process/components/Category/Category.d.ts.map +1 -1
- package/dist/iframe/order-process/components/Category/Category.js +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts +2 -1
- package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.js +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.d.ts +1 -0
- package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.js +1 -1
- package/dist/iframe/order-process/components/NavigationSteps/NavigationSteps.d.ts +1 -1
- package/dist/iframe/order-process/components/NavigationSteps/NavigationSteps.d.ts.map +1 -1
- package/dist/iframe/order-process/components/PaymentCard/PaymentCard.d.ts +1 -1
- package/dist/iframe/order-process/components/PaymentCard/PaymentCard.d.ts.map +1 -1
- package/dist/iframe/order-process/components/StepsForm/StepsForm.d.ts +2 -1
- package/dist/iframe/order-process/components/StepsForm/StepsForm.d.ts.map +1 -1
- package/dist/iframe/order-process/components/StepsForm/StepsForm.js +1 -1
- package/dist/iframe/order-process/components/Timer/Timer.d.ts +1 -1
- package/dist/iframe/order-process/components/Timer/Timer.d.ts.map +1 -1
- package/dist/iframe/order-process/components/Timer/utils/index.d.ts +1 -1
- package/dist/iframe/order-process/components/Timer/utils/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/Timer/utils/index.js +1 -1
- package/dist/iframe/page/Page.d.ts +1 -1
- package/dist/iframe/page/Page.d.ts.map +1 -1
- package/dist/iframe/page/components/PageBody/PageBody.d.ts +1 -1
- package/dist/iframe/page/components/PageBody/PageBody.d.ts.map +1 -1
- package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.d.ts +1 -1
- package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.d.ts.map +1 -1
- package/dist/iframe/page/components/PageBody/components/RightBlock/RightBlock.d.ts +1 -1
- package/dist/iframe/page/components/PageBody/components/RightBlock/RightBlock.d.ts.map +1 -1
- package/dist/iframe/page/components/PageBody/types.d.ts +1 -1
- package/dist/iframe/page/components/PageBody/types.d.ts.map +1 -1
- package/dist/iframe/page/components/PageHeader/PageHeader.d.ts +1 -1
- package/dist/iframe/page/components/PageHeader/PageHeader.d.ts.map +1 -1
- package/dist/iframe/payment/order-items-table/hooks/useTableData.d.ts +5 -0
- package/dist/iframe/payment/order-items-table/hooks/useTableData.d.ts.map +1 -1
- package/dist/iframe/payment/order-items-table/hooks/useTableData.js +1 -1
- package/dist/iframe/payment/order-items-table/types/index.d.ts +2 -2
- package/dist/iframe/payment/order-items-table/types/index.d.ts.map +1 -1
- package/dist/iframe/payment/order-items-table/utils/index.d.ts +6 -1
- package/dist/iframe/payment/order-items-table/utils/index.d.ts.map +1 -1
- package/dist/iframe/payment/order-items-table/utils/index.js +1 -1
- package/dist/iframe/payment/payment-page/PaymentPage.d.ts.map +1 -1
- package/dist/iframe/payment/payment-page/PaymentPage.js +1 -1
- package/dist/iframe/payment/payment-page/PaymentTimer.d.ts +1 -0
- package/dist/iframe/payment/payment-page/PaymentTimer.d.ts.map +1 -1
- package/dist/iframe/payment/payment-page/PaymentTimer.js +1 -1
- package/dist/iframe/payment/payment-status-header/PaymentStatusHeader.d.ts +1 -1
- package/dist/iframe/payment/payment-status-header/PaymentStatusHeader.d.ts.map +1 -1
- package/dist/iframe/payment/payment-status-page/PaymentStatusPage.d.ts +5 -3
- package/dist/iframe/payment/payment-status-page/PaymentStatusPage.d.ts.map +1 -1
- package/dist/iframe/payment/payment-status-page/PaymentStatusPage.js +1 -1
- package/dist/iframe/powered-by/PoweredBy.d.ts +1 -1
- package/dist/iframe/powered-by/PoweredBy.d.ts.map +1 -1
- package/dist/iframe/ryft/RyftPaymentForm.d.ts +1 -1
- package/dist/iframe/ryft/RyftPaymentForm.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/modals/confirmation/ConfirmModal.d.ts +2 -2
- package/dist/modals/confirmation/ConfirmModal.d.ts.map +1 -1
- package/dist/notification/email-template/card/EmailTemplateCard.d.ts +4 -1
- package/dist/notification/email-template/card/EmailTemplateCard.d.ts.map +1 -1
- package/dist/notification/email-template/card/EmailTemplateCard.js +1 -1
- package/dist/notification/email-template/control/EmailTemplateControl.d.ts +3 -0
- package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
- package/dist/notification/email-template/control/EmailTemplateControl.js +1 -1
- package/dist/notification/email-template/form/EmailTemplateForm.d.ts +7 -1
- package/dist/notification/email-template/form/EmailTemplateForm.d.ts.map +1 -1
- package/dist/notification/email-template/form/EmailTemplateForm.js +1 -1
- package/dist/notification/hooks/useTranslatedParameters.d.ts +7 -0
- package/dist/notification/hooks/useTranslatedParameters.d.ts.map +1 -0
- package/dist/notification/hooks/useTranslatedParameters.js +1 -0
- package/dist/notification/sms-template/card/SmsTemplateCard.d.ts +4 -1
- package/dist/notification/sms-template/card/SmsTemplateCard.d.ts.map +1 -1
- package/dist/notification/sms-template/card/SmsTemplateCard.js +1 -1
- package/dist/notification/sms-template/control/SmsTemplateControl.d.ts +6 -1
- package/dist/notification/sms-template/control/SmsTemplateControl.d.ts.map +1 -1
- package/dist/notification/sms-template/control/SmsTemplateControl.js +1 -1
- package/dist/notification/sms-template/form/SmsTemplateForm.d.ts +5 -1
- package/dist/notification/sms-template/form/SmsTemplateForm.d.ts.map +1 -1
- package/dist/notification/sms-template/form/SmsTemplateForm.js +1 -1
- package/dist/product-set/control/ProductSetControl.d.ts +16 -4
- package/dist/product-set/control/ProductSetControl.d.ts.map +1 -1
- package/dist/product-set/control/ProductSetControl.js +1 -1
- package/dist/product-set/deposit-paid/ProductSetDepositPaidControl.d.ts +3 -3
- package/dist/product-set/deposit-paid/ProductSetDepositPaidControl.d.ts.map +1 -1
- package/dist/product-set/elements/DeleteFieldButton.d.ts +1 -1
- package/dist/product-set/elements/DeleteFieldButton.d.ts.map +1 -1
- package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
- package/dist/product-set/form/ProductSetForm.js +1 -1
- package/dist/product-set/form/ProductsControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductsControl.js +1 -1
- package/dist/product-set/form/StepsControl.d.ts.map +1 -1
- package/dist/product-set/form/StepsControl.js +1 -1
- package/dist/product-set/form/VenueMapSetModal.d.ts +1 -1
- package/dist/product-set/form/VenueMapSetModal.d.ts.map +1 -1
- package/dist/product-set/form/VenueMapsControl.d.ts +1 -1
- package/dist/product-set/form/VenueMapsControl.d.ts.map +1 -1
- package/dist/product-set/form/context.d.ts +1 -1
- package/dist/product-set/form/context.d.ts.map +1 -1
- package/dist/product-set/popover/ProductSetPopover.d.ts +1 -1
- package/dist/product-set/popover/ProductSetPopover.d.ts.map +1 -1
- package/dist/product-set/product/ProductControl.d.ts +1 -0
- package/dist/product-set/product/ProductControl.d.ts.map +1 -1
- package/dist/product-set/product/ProductControl.js +1 -1
- package/dist/product-set/product/fixed-duration-fields/FixedDurationOptions.d.ts +1 -1
- package/dist/product-set/product/fixed-duration-fields/FixedDurationOptions.d.ts.map +1 -1
- package/dist/product-set/product/price/ProductPriceControl.d.ts +7 -3
- package/dist/product-set/product/price/ProductPriceControl.d.ts.map +1 -1
- package/dist/product-set/product/price/ProductPriceControl.js +1 -1
- package/dist/product-set/tabs/ProductSetTab.d.ts +1 -1
- package/dist/product-set/tabs/ProductSetTab.d.ts.map +1 -1
- package/dist/product-set/tabs/ProductSetTabs.d.ts +1 -1
- package/dist/product-set/tabs/ProductSetTabs.d.ts.map +1 -1
- package/dist/product-set/types/index.d.ts +5 -5
- package/dist/product-set/types/index.d.ts.map +1 -1
- package/dist/product-set/utils/index.d.ts +4 -0
- package/dist/product-set/utils/index.d.ts.map +1 -1
- package/dist/product-set/utils/index.js +1 -1
- package/dist/provider/categories-input/CategoriesInput.d.ts +1 -1
- package/dist/provider/categories-input/CategoriesInput.d.ts.map +1 -1
- package/dist/provider/categories-input/CategoriesInputDescription.d.ts +1 -1
- package/dist/provider/categories-input/CategoriesInputDescription.d.ts.map +1 -1
- package/dist/provider/categories-input/index.d.ts +1 -1
- package/dist/provider/categories-input/index.d.ts.map +1 -1
- package/dist/provider/company/user-form/UserForm.d.ts +2 -2
- package/dist/provider/company/user-form/UserForm.d.ts.map +1 -1
- package/dist/provider/location-input/index.d.ts +1 -1
- package/dist/provider/location-input/index.d.ts.map +1 -1
- package/dist/provider/provider-details-input/ProviderDetailsInput.d.ts +2 -2
- package/dist/provider/provider-details-input/ProviderDetailsInput.d.ts.map +1 -1
- package/dist/provider/provider-details-input/ProviderDetailsInput.js +1 -1
- package/dist/provider/provider-form/ProviderForm.d.ts +1 -1
- package/dist/provider/provider-form/ProviderForm.d.ts.map +1 -1
- package/dist/provider/provider-links-input/ProviderLinksInput.d.ts +2 -2
- package/dist/provider/provider-links-input/ProviderLinksInput.d.ts.map +1 -1
- package/dist/provider/resources-blocking-modal/ResourcesBlockingModal.d.ts +1 -1
- package/dist/provider/resources-blocking-modal/ResourcesBlockingModal.d.ts.map +1 -1
- package/dist/provider/venue-form/VenueForm.d.ts +1 -1
- package/dist/provider/venue-form/VenueForm.d.ts.map +1 -1
- package/dist/provider/working-hours-input/index.d.ts +1 -1
- package/dist/provider/working-hours-input/index.d.ts.map +1 -1
- package/dist/recurrence-input/utils.d.ts +2 -2
- package/dist/recurrence-input/utils.d.ts.map +1 -1
- package/dist/recurring-date-picker-input/RecurringDatePickerInput.js +1 -1
- package/dist/recurring-date-picker-input/utils.d.ts +2 -2
- package/dist/recurring-date-picker-input/utils.d.ts.map +1 -1
- package/dist/resource/form/ResourceForm.d.ts +2 -2
- package/dist/resource/form/ResourceForm.d.ts.map +1 -1
- package/dist/resource/form/components/CapacityControl.d.ts +1 -1
- package/dist/resource/form/components/CapacityControl.d.ts.map +1 -1
- package/dist/resource/form/components/NameControl.d.ts +1 -1
- package/dist/resource/form/components/NameControl.d.ts.map +1 -1
- package/dist/resource/form/components/SortControl.d.ts +1 -1
- package/dist/resource/form/components/SortControl.d.ts.map +1 -1
- package/dist/resource/form/components/ZoneControl.d.ts +1 -1
- package/dist/resource/form/components/ZoneControl.d.ts.map +1 -1
- package/dist/sales/booking/filter/BookingFilter.d.ts +1 -1
- package/dist/sales/booking/filter/BookingFilter.d.ts.map +1 -1
- package/dist/sales/booking/filter/components/AdditionalFIlterSection.d.ts +1 -1
- package/dist/sales/booking/filter/components/AdditionalFIlterSection.d.ts.map +1 -1
- package/dist/sales/booking/filter/components/AdditionalFIlterSection.js +1 -1
- package/dist/sales/booking/filter/components/MainFilterSection.d.ts +1 -1
- package/dist/sales/booking/filter/components/MainFilterSection.d.ts.map +1 -1
- package/dist/sales/booking/filter/components/ResultTagButton.d.ts +1 -1
- package/dist/sales/booking/filter/components/ResultTagButton.d.ts.map +1 -1
- package/dist/sales/booking/results/BookingResults.d.ts +1 -1
- package/dist/sales/booking/results/BookingResults.d.ts.map +1 -1
- package/dist/sales/booking/results/components/ResultCard.d.ts +1 -1
- package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
- package/dist/sales/booking/tabs/BookingTabs.d.ts +1 -1
- package/dist/sales/booking/tabs/BookingTabs.d.ts.map +1 -1
- package/dist/sales/filters/SaleFilters.d.ts +1 -2
- package/dist/sales/filters/SaleFilters.d.ts.map +1 -1
- package/dist/sales/guest-profile/previous-bookings/PreviousBookings.d.ts +4 -3
- package/dist/sales/guest-profile/previous-bookings/PreviousBookings.d.ts.map +1 -1
- package/dist/sales/guest-profile/previous-bookings/PreviousBookings.js +1 -1
- package/dist/sales/guest-profile/profile/Profile.d.ts +1 -1
- package/dist/sales/guest-profile/profile/Profile.d.ts.map +1 -1
- package/dist/sales/guest-profile/profile/components/ImageHolder/ImageHolder.d.ts +1 -1
- package/dist/sales/guest-profile/profile/components/ImageHolder/ImageHolder.d.ts.map +1 -1
- package/dist/sales/guest-profile/user-metrics/UserMetrics.d.ts +1 -1
- package/dist/sales/guest-profile/user-metrics/UserMetrics.d.ts.map +1 -1
- package/dist/sales/guest-profile/visited-providers/VisitedProviders.d.ts +1 -1
- package/dist/sales/guest-profile/visited-providers/VisitedProviders.d.ts.map +1 -1
- package/dist/sales/life-time-sales/LifeTimeSalesChart.d.ts +1 -1
- package/dist/sales/life-time-sales/LifeTimeSalesChart.d.ts.map +1 -1
- package/dist/sales/manual-booking/create-user/CreateUser.js +1 -1
- package/dist/sales/manual-booking/customer-info/CustomerInfo.d.ts +1 -1
- package/dist/sales/manual-booking/customer-info/CustomerInfo.d.ts.map +1 -1
- package/dist/sales/manual-booking/final-step/FinalStep.d.ts +1 -1
- package/dist/sales/manual-booking/final-step/FinalStep.d.ts.map +1 -1
- package/dist/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.d.ts +1 -1
- package/dist/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.d.ts.map +1 -1
- package/dist/sales/manual-booking/select-date-type-control/SelectDateTypeControl.d.ts +1 -1
- package/dist/sales/manual-booking/select-date-type-control/SelectDateTypeControl.d.ts.map +1 -1
- package/dist/sales/manual-booking/select-menu/SelectMenu.d.ts +1 -1
- package/dist/sales/manual-booking/select-menu/SelectMenu.d.ts.map +1 -1
- package/dist/sales/manual-booking/select-menu/SelectMenu.js +1 -1
- package/dist/sales/manual-booking/select-menu/components/MenuButton.d.ts +1 -1
- package/dist/sales/manual-booking/select-menu/components/MenuButton.d.ts.map +1 -1
- package/dist/sales/notes/NotesTable.d.ts +1 -1
- package/dist/sales/notes/NotesTable.d.ts.map +1 -1
- package/dist/sales/notes/NotesTableRow.d.ts +1 -1
- package/dist/sales/notes/NotesTableRow.d.ts.map +1 -1
- package/dist/sales/notes/note-form/NoteForm.d.ts +1 -1
- package/dist/sales/notes/note-form/NoteForm.d.ts.map +1 -1
- package/dist/sales/payment-form/SalePaymentForm.d.ts +2 -2
- package/dist/sales/payment-form/SalePaymentForm.d.ts.map +1 -1
- package/dist/sales/payment-form/components/RyftPayment/RyftPayment.d.ts +1 -1
- package/dist/sales/payment-form/components/RyftPayment/RyftPayment.d.ts.map +1 -1
- package/dist/sales/payment-form/types.d.ts +2 -2
- package/dist/sales/payment-form/types.d.ts.map +1 -1
- package/dist/sales/sales-and-views/SalesAndViewsChart.d.ts +1 -1
- package/dist/sales/sales-and-views/SalesAndViewsChart.d.ts.map +1 -1
- package/dist/setting/admin/AdminSettingForm.d.ts +1 -1
- package/dist/setting/admin/AdminSettingForm.d.ts.map +1 -1
- package/dist/setting/admin/PaymentFeeForm.d.ts +2 -2
- package/dist/setting/admin/PaymentFeeForm.d.ts.map +1 -1
- package/dist/setting/dashboard/DashboardSettingForm.d.ts +1 -1
- package/dist/setting/dashboard/DashboardSettingForm.d.ts.map +1 -1
- package/dist/setting/dashboard/EventSettingForm.d.ts +2 -2
- package/dist/setting/dashboard/EventSettingForm.d.ts.map +1 -1
- package/dist/setting/dashboard/FinancialDataForm.d.ts +2 -2
- package/dist/setting/dashboard/FinancialDataForm.d.ts.map +1 -1
- package/dist/setting/dashboard/OtherSettingForm.d.ts +2 -2
- package/dist/setting/dashboard/OtherSettingForm.d.ts.map +1 -1
- package/dist/setting/dashboard/ProviderSettingForm.d.ts +2 -2
- package/dist/setting/dashboard/ProviderSettingForm.d.ts.map +1 -1
- package/dist/setting/system/SystemSettingForm.d.ts +1 -1
- package/dist/setting/system/SystemSettingForm.d.ts.map +1 -1
- package/dist/snippet/snippet-template/context/snippetTemplate.d.ts +1 -1
- package/dist/snippet/snippet-template/context/snippetTemplate.d.ts.map +1 -1
- package/dist/sortable-list/SortableList.d.ts +4 -4
- package/dist/sortable-list/SortableList.d.ts.map +1 -1
- package/dist/sortable-tree/SortableTreeItem.d.ts +1 -1
- package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
- package/dist/static/Icon.d.ts +1 -1
- package/dist/static/Icon.d.ts.map +1 -1
- package/dist/static/date-range-input/DateRangeInput.d.ts +1 -1
- package/dist/static/date-range-input/DateRangeInput.d.ts.map +1 -1
- package/dist/static/images/DefaultUserImage.d.ts +1 -1
- package/dist/static/images/DefaultUserImage.d.ts.map +1 -1
- package/dist/static/loader/ButtonLoader.d.ts +1 -1
- package/dist/static/loader/ButtonLoader.d.ts.map +1 -1
- package/dist/static/loader/PaymentLoader.d.ts +1 -1
- package/dist/static/loader/PaymentLoader.d.ts.map +1 -1
- package/dist/static/manual-date-picker/ManualDatePicker.d.ts +1 -1
- package/dist/static/manual-date-picker/ManualDatePicker.d.ts.map +1 -1
- package/dist/static/manual-date-picker/hooks/useManualDatePicker.d.ts +2 -2
- package/dist/static/manual-date-picker/hooks/useManualDatePicker.d.ts.map +1 -1
- package/dist/static/tabs/Tab.d.ts +1 -1
- package/dist/static/tabs/Tab.d.ts.map +1 -1
- package/dist/static/tabs/Tabs.d.ts +1 -1
- package/dist/static/tabs/Tabs.d.ts.map +1 -1
- package/dist/striped-static-table/StripedStaticTable.d.ts +7 -0
- package/dist/striped-static-table/StripedStaticTable.d.ts.map +1 -0
- package/dist/striped-static-table/StripedStaticTable.js +1 -0
- package/dist/striped-static-table/index.d.ts +2 -0
- package/dist/striped-static-table/index.d.ts.map +1 -0
- package/dist/styles/customers/Filter.scss +23 -4
- package/dist/styles/events/EventStatisticModal.scss +0 -37
- package/dist/styles/packages.scss +1 -0
- package/dist/styles/snippet-templates/SnippetTemplateCard.scss +16 -0
- package/dist/styles/striped-static-table/_index.scss +33 -0
- package/dist/table/MenuButton.d.ts +1 -1
- package/dist/table/MenuButton.d.ts.map +1 -1
- package/dist/table/ReactTableHelperComponent.d.ts +2 -2
- package/dist/table/ReactTableHelperComponent.d.ts.map +1 -1
- package/dist/table/StaticTable.d.ts +3 -3
- package/dist/table/StaticTable.d.ts.map +1 -1
- package/dist/table/StaticTable.js +1 -1
- package/dist/table/types.d.ts +5 -5
- package/dist/table/types.d.ts.map +1 -1
- package/dist/tiptap-editor/TipTapMenu/extensions/EMOJIS.d.ts +1 -1
- package/dist/tiptap-editor/TipTapMenu/extensions/EMOJIS.d.ts.map +1 -1
- package/dist/typeahead/Typeahead.d.ts +6 -12
- package/dist/typeahead/Typeahead.d.ts.map +1 -1
- package/dist/typeahead/Typeahead.js +1 -1
- package/dist/typeahead-helper/TypeaheadHelperComponent.d.ts +1 -1
- package/dist/typeahead-helper/TypeaheadHelperComponent.d.ts.map +1 -1
- package/dist/types/categories.d.ts +2 -2
- package/dist/types/categories.d.ts.map +1 -1
- package/dist/types/currency.d.ts +1 -1
- package/dist/types/currency.d.ts.map +1 -1
- package/dist/types/generic/SelectItem.d.ts +1 -1
- package/dist/types/generic/SelectItem.d.ts.map +1 -1
- package/dist/types/iframe.d.ts +4 -2
- package/dist/types/iframe.d.ts.map +1 -1
- package/dist/types/provider-links.d.ts +2 -2
- package/dist/types/provider-links.d.ts.map +1 -1
- package/dist/venue-map-sets/form/components/NameControl.d.ts +1 -1
- package/dist/venue-map-sets/form/components/NameControl.d.ts.map +1 -1
- package/dist/venue-map-sets/form/components/VenueMapControl.d.ts +4 -4
- package/dist/venue-map-sets/form/components/VenueMapControl.d.ts.map +1 -1
- package/dist/venue-map-sets/form/components/VenueMapImageControl.d.ts +1 -1
- package/dist/venue-map-sets/form/components/VenueMapImageControl.d.ts.map +1 -1
- package/dist/venue-map-sets/form/components/VenueMapModal.d.ts +1 -1
- package/dist/venue-map-sets/form/components/VenueMapModal.d.ts.map +1 -1
- package/dist/venue-map-sets/form/components/VenueMapsControl.d.ts +1 -1
- package/dist/venue-map-sets/form/components/VenueMapsControl.d.ts.map +1 -1
- package/dist/venue-map-sets/form/types/index.d.ts +4 -4
- package/dist/venue-map-sets/form/types/index.d.ts.map +1 -1
- package/dist/virtualized/components/VirtualizedGrid.d.ts +1 -1
- package/dist/virtualized/components/VirtualizedGrid.d.ts.map +1 -1
- package/dist/virtualized/components/VirtualizedWindowScroller.d.ts +3 -3
- package/dist/virtualized/components/VirtualizedWindowScroller.d.ts.map +1 -1
- package/dist/virtualized/context/VirtualizedContext.d.ts +2 -2
- package/dist/virtualized/context/VirtualizedContext.d.ts.map +1 -1
- package/dist/widgets/CheckboxGroup/CheckboxGroup.d.ts +1 -1
- package/dist/widgets/CheckboxGroup/CheckboxGroup.d.ts.map +1 -1
- package/dist/widgets/ImageRadioInput/ImageRadioInput.d.ts +1 -1
- package/dist/widgets/ImageRadioInput/ImageRadioInput.d.ts.map +1 -1
- package/dist/widgets/SnippetCode/SnippetCode.d.ts +1 -1
- package/dist/widgets/SnippetCode/SnippetCode.d.ts.map +1 -1
- package/dist/widgets/WidgetBuilderForm/WidgetBuilderForm.d.ts +1 -1
- package/dist/widgets/WidgetBuilderForm/WidgetBuilderForm.d.ts.map +1 -1
- package/dist/widgets/WidgetTypeRadio/WidgetTypeRadio.d.ts +1 -1
- package/dist/widgets/WidgetTypeRadio/WidgetTypeRadio.d.ts.map +1 -1
- package/dist/zone/form/ZoneForm.d.ts +2 -2
- package/dist/zone/form/ZoneForm.d.ts.map +1 -1
- package/dist/zone/form/components/AvailableTimesControl.d.ts +2 -2
- package/dist/zone/form/components/AvailableTimesControl.d.ts.map +1 -1
- package/dist/zone/form/components/DescriptionControl.d.ts +1 -1
- package/dist/zone/form/components/DescriptionControl.d.ts.map +1 -1
- package/dist/zone/form/components/NameControl.d.ts +1 -1
- package/dist/zone/form/components/NameControl.d.ts.map +1 -1
- package/dist/zone/form/components/SortControl.d.ts +1 -1
- package/dist/zone/form/components/SortControl.d.ts.map +1 -1
- package/dist/zone/form/components/ZoneControl.d.ts +1 -1
- package/dist/zone/form/components/ZoneControl.d.ts.map +1 -1
- package/dist/zone/form/components/ZoneImageControl.d.ts +1 -1
- package/dist/zone/form/components/ZoneImageControl.d.ts.map +1 -1
- package/dist/zone/form/components/ZoneRecurrencesControl.d.ts +1 -1
- package/dist/zone/form/components/ZoneRecurrencesControl.d.ts.map +1 -1
- package/dist/zone/form/components/ZoneTypeControl.d.ts +1 -1
- package/dist/zone/form/components/ZoneTypeControl.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/customers/components/filter/CustomerFilter.stories.tsx +1 -2
- package/src/customers/components/filter/CustomerFilter.tsx +3 -5
- package/src/events/edit-event-modal/IntervalInput.tsx +21 -1
- package/src/events/edit-event-modal/component/EditEventForm/EditEventForm.tsx +3 -0
- package/src/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.tsx +11 -2
- package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +6 -4
- package/src/events/event-statistic-modal/EventStatisticModal.tsx +1 -1
- package/src/events/event-venue-map/EventVenueMap.tsx +4 -0
- package/src/events/event-venue-map/components/MapPoint/MapPoint.tsx +3 -1
- package/src/events/event-venue-map/components/MapPoint/components/ProductIcon/ProductIcon.tsx +13 -2
- package/src/events/event-venue-map/components/MapPoint/components/ProductTooltip/ProductTooltip.tsx +68 -0
- package/src/events/event-venue-map/components/MapPoint/components/ProductTooltip/index.ts +1 -0
- package/src/events/event-venue-map/components/VenueMap/VenueMap.tsx +12 -4
- package/src/iframe/event/event-order-short-summary/components/Summary/Summary.tsx +20 -20
- package/src/iframe/event/event-venue-map/IframeEventVenueMap.stories.tsx +5 -0
- package/src/iframe/order-process/OrderProcess.stories.tsx +3 -2
- package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +4 -1
- package/src/iframe/order-process/components/BookingSummary/types/index.ts +3 -3
- package/src/iframe/order-process/components/BookingSummary/utils/index.ts +6 -2
- package/src/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.stories.tsx +1 -0
- package/src/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.tsx +5 -0
- package/src/iframe/order-process/components/CalendarStepsForm/components/Category.tsx +4 -0
- package/src/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.tsx +4 -0
- package/src/iframe/order-process/components/Category/Category.tsx +3 -0
- package/src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx +42 -8
- package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +3 -0
- package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +3 -2
- package/src/iframe/order-process/components/StepsForm/StepsForm.tsx +3 -0
- package/src/iframe/order-process/components/Timer/Timer.stories.tsx +1 -1
- package/src/iframe/order-process/components/Timer/utils/index.ts +4 -4
- package/src/iframe/payment/order-items-table/OrderItemsTable.stories.tsx +2 -0
- package/src/iframe/payment/order-items-table/hooks/useTableData.tsx +21 -14
- package/src/iframe/payment/order-items-table/utils/index.ts +55 -15
- package/src/iframe/payment/payment-page/PaymentPage.tsx +45 -5
- package/src/iframe/payment/payment-page/PaymentTimer.tsx +31 -6
- package/src/iframe/payment/payment-status-page/PaymentStatusPage.tsx +66 -12
- package/src/index.ts +1 -0
- package/src/notification/email-template/card/EmailTemplateCard.stories.tsx +4 -2
- package/src/notification/email-template/card/EmailTemplateCard.tsx +15 -3
- package/src/notification/email-template/control/EmailTemplateControl.tsx +90 -6
- package/src/notification/email-template/form/EmailTemplateForm.stories.tsx +34 -0
- package/src/notification/email-template/form/EmailTemplateForm.tsx +23 -5
- package/src/notification/hooks/useTranslatedParameters.ts +27 -0
- package/src/notification/sms-template/card/SmsTemplateCard.stories.tsx +3 -1
- package/src/notification/sms-template/card/SmsTemplateCard.tsx +13 -3
- package/src/notification/sms-template/control/SmsTemplateControl.tsx +40 -2
- package/src/notification/sms-template/form/SmsTemplateForm.stories.tsx +28 -0
- package/src/notification/sms-template/form/SmsTemplateForm.tsx +6 -1
- package/src/product-set/control/ProductSetControl.tsx +61 -33
- package/src/product-set/form/ProductSetForm.stories.tsx +41 -2
- package/src/product-set/form/ProductSetForm.tsx +11 -0
- package/src/product-set/form/ProductsControl.tsx +20 -1
- package/src/product-set/form/StepsControl.tsx +20 -2
- package/src/product-set/product/ProductControl.tsx +25 -10
- package/src/product-set/product/price/ProductPriceControl.tsx +43 -21
- package/src/product-set/utils/index.ts +28 -0
- package/src/provider/provider-details-input/ProviderDetailsInput.tsx +0 -2
- package/src/sales/filters/SaleFilters.tsx +1 -1
- package/src/sales/guest-profile/previous-bookings/PreviousBookings.stories.tsx +35 -5
- package/src/sales/guest-profile/previous-bookings/PreviousBookings.tsx +11 -3
- package/src/sales/manual-booking/select-menu/SelectMenu.tsx +3 -1
- package/src/striped-static-table/StripedStaticTable.stories.tsx +71 -0
- package/src/striped-static-table/StripedStaticTable.tsx +63 -0
- package/src/striped-static-table/index.ts +1 -0
- package/src/styles/customers/Filter.scss +23 -4
- package/src/styles/events/EventStatisticModal.scss +0 -37
- package/src/styles/packages.scss +1 -0
- package/src/styles/snippet-templates/SnippetTemplateCard.scss +16 -0
- package/src/styles/striped-static-table/_index.scss +33 -0
- package/src/table/StaticTable.tsx +4 -2
- package/src/typeahead/Typeahead.stories.tsx +9 -6
- package/src/typeahead/Typeahead.tsx +19 -12
- package/src/types/iframe.ts +2 -0
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { EmailTemplate } from "@licklist/core/dist/DataMapper/Notification/EmailTemplateDataMapper";
|
|
2
|
+
import { SmsTemplate } from "@licklist/core/dist/DataMapper/Notification/SmsTemplateDataMapper";
|
|
3
|
+
import { TemplateItem } from "../control/ProductSetControl";
|
|
4
|
+
|
|
1
5
|
export const moveArrayElements = <T>(
|
|
2
6
|
array: T[],
|
|
3
7
|
prevIndex: number,
|
|
@@ -14,3 +18,27 @@ export const moveArrayElements = <T>(
|
|
|
14
18
|
export const sortArrayByIndex = <T>(array: T[]) => {
|
|
15
19
|
return array.map((element: T, index) => ({ ...element, sort: index }));
|
|
16
20
|
};
|
|
21
|
+
|
|
22
|
+
export const getFilteredTemplates = (
|
|
23
|
+
templates?: EmailTemplate[] | SmsTemplate[],
|
|
24
|
+
formTemplates?: TemplateItem[]
|
|
25
|
+
): TemplateItem[] | undefined => {
|
|
26
|
+
if (!templates) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return templates
|
|
31
|
+
?.filter(
|
|
32
|
+
(template) =>
|
|
33
|
+
template.notification.isActive &&
|
|
34
|
+
!formTemplates?.find(
|
|
35
|
+
(formTemplate) =>
|
|
36
|
+
formTemplate.value.notification.type === template.notification.type
|
|
37
|
+
)
|
|
38
|
+
)
|
|
39
|
+
?.map((template) => ({
|
|
40
|
+
id: template?.id,
|
|
41
|
+
value: template,
|
|
42
|
+
label: template?.notification?.name,
|
|
43
|
+
}));
|
|
44
|
+
};
|
|
@@ -34,7 +34,6 @@ export function ProviderDetailsInput({
|
|
|
34
34
|
const {
|
|
35
35
|
register,
|
|
36
36
|
formState: { errors },
|
|
37
|
-
setValue,
|
|
38
37
|
} = useFormContext<ProviderDetailsInputValues>();
|
|
39
38
|
const { t } = useTranslation(["App", "Design", "Validation"]);
|
|
40
39
|
|
|
@@ -149,7 +148,6 @@ export function ProviderDetailsInput({
|
|
|
149
148
|
<Typeahead
|
|
150
149
|
name="company"
|
|
151
150
|
options={companiesOptions}
|
|
152
|
-
setValue={setValue}
|
|
153
151
|
placeholder={t("App:select")}
|
|
154
152
|
noOptionsMessage={t("App:noMatchesFound")}
|
|
155
153
|
/>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Meta } from "@storybook/react";
|
|
3
|
+
import { boolean } from "@storybook/addon-knobs";
|
|
3
4
|
import { Event } from "@licklist/core/dist/DataMapper/Provider/EventDataMapper";
|
|
4
5
|
import { User } from "@licklist/core/dist/DataMapper/User/UserDataMapper";
|
|
5
6
|
import { Product } from "@licklist/core/dist/DataMapper/Product/ProductDataMapper";
|
|
@@ -10,11 +11,26 @@ export default {
|
|
|
10
11
|
title: "Sales/Guest Profile/Previous Bookings",
|
|
11
12
|
} as Meta;
|
|
12
13
|
|
|
13
|
-
export const Default = (args) =>
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
export const Default = (args) => {
|
|
15
|
+
const useProviderLink = boolean("useProviderLink", true);
|
|
16
|
+
|
|
17
|
+
const renderOrderTitleLinkByProvider = (order: Order) => {
|
|
18
|
+
return (
|
|
19
|
+
<a href={`/some_href/${order.id}`}>{order[order.orderableType]?.name}</a>
|
|
20
|
+
);
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
return (
|
|
24
|
+
<div>
|
|
25
|
+
<PreviousBookings
|
|
26
|
+
{...args}
|
|
27
|
+
renderOrderTitleLinkByProvider={
|
|
28
|
+
useProviderLink ? renderOrderTitleLinkByProvider : undefined
|
|
29
|
+
}
|
|
30
|
+
/>
|
|
31
|
+
</div>
|
|
32
|
+
);
|
|
33
|
+
};
|
|
18
34
|
|
|
19
35
|
Default.args = {
|
|
20
36
|
orders: [
|
|
@@ -43,6 +59,8 @@ Default.args = {
|
|
|
43
59
|
updatedAt: "2022-05-20 18:28:56",
|
|
44
60
|
status: "cart",
|
|
45
61
|
tickets: [],
|
|
62
|
+
orderableType: "event",
|
|
63
|
+
orderableId: 1,
|
|
46
64
|
event: {
|
|
47
65
|
id: 1,
|
|
48
66
|
name: "testEvent1",
|
|
@@ -79,6 +97,8 @@ Default.args = {
|
|
|
79
97
|
updatedAt: "2022-05-20 18:28:56",
|
|
80
98
|
status: "cart",
|
|
81
99
|
tickets: [],
|
|
100
|
+
orderableType: "event",
|
|
101
|
+
orderableId: 2,
|
|
82
102
|
event: {
|
|
83
103
|
id: 2,
|
|
84
104
|
name: "testEvent2",
|
|
@@ -128,6 +148,8 @@ Default.args = {
|
|
|
128
148
|
updatedAt: "2022-05-20 18:28:56",
|
|
129
149
|
status: "cart",
|
|
130
150
|
tickets: [],
|
|
151
|
+
orderableType: "event",
|
|
152
|
+
orderableId: 3,
|
|
131
153
|
event: {
|
|
132
154
|
id: 3,
|
|
133
155
|
name: "testEvent3",
|
|
@@ -156,6 +178,8 @@ Default.args = {
|
|
|
156
178
|
updatedAt: "2022-05-20 18:28:56",
|
|
157
179
|
status: "cart",
|
|
158
180
|
tickets: [],
|
|
181
|
+
orderableType: "event",
|
|
182
|
+
orderableId: 3,
|
|
159
183
|
event: {
|
|
160
184
|
id: 3,
|
|
161
185
|
name: "testEvent3",
|
|
@@ -184,6 +208,8 @@ Default.args = {
|
|
|
184
208
|
updatedAt: "2022-05-20 18:28:56",
|
|
185
209
|
status: "cart",
|
|
186
210
|
tickets: [],
|
|
211
|
+
orderableType: "event",
|
|
212
|
+
orderableId: 3,
|
|
187
213
|
event: {
|
|
188
214
|
id: 3,
|
|
189
215
|
name: "testEvent3",
|
|
@@ -212,6 +238,8 @@ Default.args = {
|
|
|
212
238
|
updatedAt: "2022-05-20 18:28:56",
|
|
213
239
|
status: "cart",
|
|
214
240
|
tickets: [],
|
|
241
|
+
orderableType: "event",
|
|
242
|
+
orderableId: 3,
|
|
215
243
|
event: {
|
|
216
244
|
id: 3,
|
|
217
245
|
name: "testEvent3",
|
|
@@ -239,6 +267,8 @@ Default.args = {
|
|
|
239
267
|
updatedAt: "2022-05-20 18:28:56",
|
|
240
268
|
status: "cart",
|
|
241
269
|
tickets: [],
|
|
270
|
+
orderableType: "event",
|
|
271
|
+
orderableId: 3,
|
|
242
272
|
event: {
|
|
243
273
|
id: 3,
|
|
244
274
|
name: "testEvent3",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useState } from "react";
|
|
1
|
+
import React, { useState, ReactNode } from "react";
|
|
2
2
|
import { useTranslation } from "react-i18next";
|
|
3
3
|
import { DateTime } from "luxon";
|
|
4
4
|
import { Button } from "react-bootstrap";
|
|
@@ -8,9 +8,13 @@ const MAX_ORDERS_COUNT = 6;
|
|
|
8
8
|
|
|
9
9
|
export type PreviousBookingsProps = {
|
|
10
10
|
orders: Order[];
|
|
11
|
+
renderOrderTitleLinkByProvider?: (order: Order) => ReactNode;
|
|
11
12
|
};
|
|
12
13
|
|
|
13
|
-
export const PreviousBookings = ({
|
|
14
|
+
export const PreviousBookings = ({
|
|
15
|
+
orders,
|
|
16
|
+
renderOrderTitleLinkByProvider,
|
|
17
|
+
}: PreviousBookingsProps) => {
|
|
14
18
|
const { t } = useTranslation("Design");
|
|
15
19
|
const [showOlderBookings, setShowOlderBookings] = useState(false);
|
|
16
20
|
|
|
@@ -36,13 +40,17 @@ export const PreviousBookings = ({ orders }: PreviousBookingsProps) => {
|
|
|
36
40
|
{orders.length > 0 ? (
|
|
37
41
|
<div className="events-wrapper">
|
|
38
42
|
{orders.slice(0, endSlicedOrdersNumber).map((order) => {
|
|
43
|
+
const eventName = renderOrderTitleLinkByProvider
|
|
44
|
+
? renderOrderTitleLinkByProvider(order)
|
|
45
|
+
: order[order.orderableType]?.name;
|
|
46
|
+
|
|
39
47
|
return (
|
|
40
48
|
<div
|
|
41
49
|
className="event-info col-12 col-sm-6 col-md-6 col-lg-6 col-xl-6"
|
|
42
50
|
key={order.id}
|
|
43
51
|
>
|
|
44
52
|
<div className="info-wrapper">
|
|
45
|
-
<p className="label">{
|
|
53
|
+
<p className="label">{eventName}</p>
|
|
46
54
|
{order.createdAt && (
|
|
47
55
|
<p className="event-date">{formatDate(order.createdAt)}</p>
|
|
48
56
|
)}
|
|
@@ -39,7 +39,9 @@ export const SelectMenu = ({
|
|
|
39
39
|
) : (
|
|
40
40
|
<>
|
|
41
41
|
{!isLoading && (
|
|
42
|
-
<Form.Label className="bold-text">
|
|
42
|
+
<Form.Label className="bold-text">
|
|
43
|
+
{t("Design:productSets")}
|
|
44
|
+
</Form.Label>
|
|
43
45
|
)}
|
|
44
46
|
|
|
45
47
|
<div className="menu-list-manual-booking">
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Meta, Story } from "@storybook/react";
|
|
3
|
+
import {
|
|
4
|
+
StripedStaticTable,
|
|
5
|
+
StripedStaticTableProps,
|
|
6
|
+
} from "./StripedStaticTable";
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
title: "StripedStaticTable",
|
|
10
|
+
component: StripedStaticTable,
|
|
11
|
+
} as Meta;
|
|
12
|
+
|
|
13
|
+
export const Default: Story<StripedStaticTableProps> = (args) => {
|
|
14
|
+
return <StripedStaticTable {...args} />;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
Default.args = {
|
|
18
|
+
columns: [
|
|
19
|
+
{ key: "name", label: "" },
|
|
20
|
+
{ key: "quantity", label: "" },
|
|
21
|
+
{ key: "total", label: "" },
|
|
22
|
+
],
|
|
23
|
+
data: [
|
|
24
|
+
[
|
|
25
|
+
{
|
|
26
|
+
key: 1,
|
|
27
|
+
name: "test category",
|
|
28
|
+
quantity: "Qty",
|
|
29
|
+
total: "Total",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
key: 2,
|
|
33
|
+
name: "product",
|
|
34
|
+
quantity: "2/16",
|
|
35
|
+
total: "160",
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
key: 4,
|
|
39
|
+
name: "total per category",
|
|
40
|
+
quantity: "2/16",
|
|
41
|
+
total: "160",
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
[
|
|
45
|
+
{
|
|
46
|
+
key: 1,
|
|
47
|
+
name: "test category",
|
|
48
|
+
quantity: "Qty",
|
|
49
|
+
total: "Total",
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
key: 2,
|
|
53
|
+
name: "product",
|
|
54
|
+
quantity: "2/16",
|
|
55
|
+
total: "160",
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
key: 5,
|
|
59
|
+
name: "product",
|
|
60
|
+
quantity: "2/16",
|
|
61
|
+
total: "160",
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
key: 4,
|
|
65
|
+
name: "total per category",
|
|
66
|
+
quantity: "2/16",
|
|
67
|
+
total: "160",
|
|
68
|
+
},
|
|
69
|
+
],
|
|
70
|
+
],
|
|
71
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
import { StaticTableProps, StaticTable, StaticTableData } from "../table";
|
|
4
|
+
|
|
5
|
+
export type StripedStaticTableProps = Omit<StaticTableProps, "data"> & {
|
|
6
|
+
data: StaticTableData[][];
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export const StripedStaticTable = ({
|
|
10
|
+
columns,
|
|
11
|
+
className = "",
|
|
12
|
+
data,
|
|
13
|
+
...props
|
|
14
|
+
}: StripedStaticTableProps) => {
|
|
15
|
+
const styledData = data
|
|
16
|
+
.map(
|
|
17
|
+
(section) =>
|
|
18
|
+
section.map((row, rowIndex, array) => {
|
|
19
|
+
const { length } = array;
|
|
20
|
+
|
|
21
|
+
return Object.fromEntries(
|
|
22
|
+
Object.entries(row).map(([key, value]) => {
|
|
23
|
+
if (key === "key") {
|
|
24
|
+
return [key, value];
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// make first row blue and bold
|
|
28
|
+
if (rowIndex === 0) {
|
|
29
|
+
return [
|
|
30
|
+
key,
|
|
31
|
+
<div key={key} className="bold header-row">
|
|
32
|
+
{value}
|
|
33
|
+
</div>,
|
|
34
|
+
];
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// make last row bold
|
|
38
|
+
if (rowIndex === length - 1) {
|
|
39
|
+
return [
|
|
40
|
+
key,
|
|
41
|
+
<div key={key} className="bold">
|
|
42
|
+
{value}
|
|
43
|
+
</div>,
|
|
44
|
+
];
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
return [key, value];
|
|
48
|
+
})
|
|
49
|
+
);
|
|
50
|
+
}) as StaticTableData[]
|
|
51
|
+
)
|
|
52
|
+
.flat();
|
|
53
|
+
|
|
54
|
+
return (
|
|
55
|
+
<StaticTable
|
|
56
|
+
columns={columns}
|
|
57
|
+
data={styledData}
|
|
58
|
+
className={`striped-static-table ${className}`}
|
|
59
|
+
displayHeader={false}
|
|
60
|
+
{...props}
|
|
61
|
+
/>
|
|
62
|
+
);
|
|
63
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./StripedStaticTable";
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
.customers-filter {
|
|
2
|
-
gap: 0.5rem;
|
|
3
|
-
|
|
4
2
|
@include media-breakpoint-down(sm) {
|
|
5
3
|
label {
|
|
6
4
|
font-size: 0.8rem;
|
|
@@ -24,11 +22,32 @@
|
|
|
24
22
|
}
|
|
25
23
|
|
|
26
24
|
.customers-filter-items {
|
|
27
|
-
|
|
25
|
+
width: 100%;
|
|
26
|
+
|
|
27
|
+
.customer-filter {
|
|
28
|
+
flex: 0 0 33.33%;
|
|
29
|
+
max-width: 33.33%;
|
|
30
|
+
}
|
|
28
31
|
|
|
29
32
|
@include media-breakpoint-down(xs) {
|
|
30
33
|
flex-direction: column;
|
|
31
|
-
|
|
34
|
+
|
|
35
|
+
.customer-filter {
|
|
36
|
+
flex: 1;
|
|
37
|
+
max-width: 100%;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@include media-breakpoint-up(sm) {
|
|
42
|
+
.customer-filter {
|
|
43
|
+
&:first-child {
|
|
44
|
+
padding-left: 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&:last-child {
|
|
48
|
+
padding-right: 0;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
32
51
|
}
|
|
33
52
|
}
|
|
34
53
|
}
|
|
@@ -6,43 +6,6 @@
|
|
|
6
6
|
.modal-body {
|
|
7
7
|
height: 75vh;
|
|
8
8
|
overflow: scroll;
|
|
9
|
-
|
|
10
|
-
table.event-statistic-table {
|
|
11
|
-
thead {
|
|
12
|
-
display: none;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
tbody {
|
|
16
|
-
tr {
|
|
17
|
-
border-bottom: 1px solid $gray-500;
|
|
18
|
-
td {
|
|
19
|
-
text-transform: capitalize;
|
|
20
|
-
|
|
21
|
-
&:nth-child(2), &:nth-child(3) {
|
|
22
|
-
text-align: right;
|
|
23
|
-
}
|
|
24
|
-
&:nth-child(2) {
|
|
25
|
-
width: 20%;
|
|
26
|
-
}
|
|
27
|
-
&:nth-child(3) {
|
|
28
|
-
width: 35%;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
td:has(div.header-row){
|
|
33
|
-
background-color: #d8ecf7;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&:first-child {
|
|
37
|
-
border-top: 1px solid $gray-500;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.bold {
|
|
43
|
-
font-weight: 600;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
9
|
}
|
|
47
10
|
}
|
|
48
11
|
|
package/src/styles/packages.scss
CHANGED
|
@@ -45,6 +45,22 @@ $snippet-template-card-button-transition: $product-set-card-transition !default;
|
|
|
45
45
|
display: flex;
|
|
46
46
|
justify-content: space-between;
|
|
47
47
|
align-items: center;
|
|
48
|
+
|
|
49
|
+
a {
|
|
50
|
+
white-space: nowrap;
|
|
51
|
+
display: inline-block;
|
|
52
|
+
text-overflow: ellipsis;
|
|
53
|
+
width: 85%;
|
|
54
|
+
overflow: hidden;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.snippet-template-card-subject {
|
|
59
|
+
white-space: nowrap;
|
|
60
|
+
display: inline-block;
|
|
61
|
+
text-overflow: ellipsis;
|
|
62
|
+
width: 100%;
|
|
63
|
+
overflow: hidden;
|
|
48
64
|
}
|
|
49
65
|
|
|
50
66
|
.snippet-template-card-button {
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
table.striped-static-table {
|
|
2
|
+
tbody {
|
|
3
|
+
tr {
|
|
4
|
+
border-bottom: 1px solid $gray-500;
|
|
5
|
+
td {
|
|
6
|
+
text-transform: capitalize;
|
|
7
|
+
|
|
8
|
+
&:nth-child(2),
|
|
9
|
+
&:nth-child(3) {
|
|
10
|
+
text-align: right;
|
|
11
|
+
}
|
|
12
|
+
&:nth-child(2) {
|
|
13
|
+
width: 20%;
|
|
14
|
+
}
|
|
15
|
+
&:nth-child(3) {
|
|
16
|
+
width: 35%;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
td:has(div.header-row) {
|
|
21
|
+
background-color: #d8ecf7;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:first-child {
|
|
25
|
+
border-top: 1px solid $gray-500;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.bold {
|
|
31
|
+
font-weight: 600;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -11,7 +11,7 @@ export interface StaticTableData {
|
|
|
11
11
|
[key: string]: ReactNode;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
interface StaticTableProps {
|
|
14
|
+
export interface StaticTableProps {
|
|
15
15
|
className?: string;
|
|
16
16
|
columns: StaticTableColumn[];
|
|
17
17
|
data: StaticTableData[];
|
|
@@ -19,6 +19,7 @@ interface StaticTableProps {
|
|
|
19
19
|
bordered?: boolean;
|
|
20
20
|
hover?: boolean;
|
|
21
21
|
size?: string;
|
|
22
|
+
displayHeader?: boolean;
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
export function StaticTable({
|
|
@@ -29,6 +30,7 @@ export function StaticTable({
|
|
|
29
30
|
bordered = false,
|
|
30
31
|
hover = false,
|
|
31
32
|
size,
|
|
33
|
+
displayHeader = true,
|
|
32
34
|
}: StaticTableProps) {
|
|
33
35
|
return (
|
|
34
36
|
<Table
|
|
@@ -38,7 +40,7 @@ export function StaticTable({
|
|
|
38
40
|
hover={hover}
|
|
39
41
|
size={size}
|
|
40
42
|
>
|
|
41
|
-
<TableHead columns={columns} />
|
|
43
|
+
{displayHeader && <TableHead columns={columns} />}
|
|
42
44
|
<tbody>
|
|
43
45
|
{data.map((row) => (
|
|
44
46
|
<tr key={row.key}>
|
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { storiesOf } from "@storybook/react";
|
|
3
|
+
import { FormProvider, useForm } from "react-hook-form";
|
|
3
4
|
import { Typeahead } from "./Typeahead";
|
|
4
5
|
|
|
5
|
-
storiesOf("Typeahead", module)
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
storiesOf("Typeahead", module).add("Typeahead", () => {
|
|
7
|
+
const form = useForm();
|
|
8
|
+
return (
|
|
9
|
+
<FormProvider {...form}>
|
|
8
10
|
<Typeahead
|
|
9
11
|
name="user"
|
|
12
|
+
isMultipleChoise
|
|
10
13
|
options={[
|
|
11
14
|
{ id: 1, value: "user1", label: "User1" },
|
|
12
15
|
{ id: 2, value: "user2", label: "User2" },
|
|
13
16
|
{ id: 3, value: "user3", label: "User3" },
|
|
14
17
|
]}
|
|
15
|
-
setValue={() => {}}
|
|
16
18
|
placeholder="Select"
|
|
17
19
|
noOptionsMessage="No Options Found"
|
|
18
20
|
/>
|
|
19
|
-
|
|
20
|
-
)
|
|
21
|
+
</FormProvider>
|
|
22
|
+
);
|
|
23
|
+
});
|
|
@@ -1,47 +1,54 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import Select from "react-select";
|
|
3
|
-
import {
|
|
3
|
+
import { Controller, useFormContext } from "react-hook-form";
|
|
4
4
|
|
|
5
5
|
export type TypeaheadOptions = {
|
|
6
|
-
id: number;
|
|
7
|
-
value:
|
|
6
|
+
id: number | string;
|
|
7
|
+
value: any;
|
|
8
8
|
label: string;
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export interface TypeaheadProps {
|
|
12
12
|
options: TypeaheadOptions[];
|
|
13
|
-
setValue: (value: string | any) => void;
|
|
14
13
|
placeholder: string;
|
|
15
14
|
isRequired?: boolean;
|
|
16
15
|
name: string;
|
|
16
|
+
isMultipleChoise?: boolean;
|
|
17
17
|
noOptionsMessage: string;
|
|
18
|
+
isInvalid?: boolean;
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
function Typeahead({
|
|
21
22
|
options,
|
|
22
|
-
setValue,
|
|
23
23
|
placeholder,
|
|
24
24
|
isRequired = false,
|
|
25
|
+
isMultipleChoise,
|
|
25
26
|
name = "",
|
|
26
27
|
noOptionsMessage = "",
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
const
|
|
28
|
+
isInvalid,
|
|
29
|
+
}: TypeaheadProps) {
|
|
30
|
+
const { control } = useFormContext();
|
|
31
|
+
|
|
32
|
+
const getErrorStyle = () => (isInvalid ? { borderColor: "red" } : {});
|
|
32
33
|
|
|
33
34
|
return (
|
|
34
35
|
<>
|
|
35
36
|
<Controller
|
|
36
|
-
name={
|
|
37
|
+
name={name}
|
|
37
38
|
control={control}
|
|
38
39
|
rules={{ required: isRequired }}
|
|
39
40
|
render={({ field }) => (
|
|
40
41
|
<Select
|
|
41
42
|
placeholder={placeholder}
|
|
42
43
|
value={field.value}
|
|
44
|
+
isMulti={isMultipleChoise}
|
|
45
|
+
styles={{
|
|
46
|
+
control: (base) => ({
|
|
47
|
+
...base,
|
|
48
|
+
...getErrorStyle(),
|
|
49
|
+
}),
|
|
50
|
+
}}
|
|
43
51
|
onChange={(value) => {
|
|
44
|
-
setValue(`${name}.${prefix}`, value.id);
|
|
45
52
|
field.onChange(value);
|
|
46
53
|
}}
|
|
47
54
|
options={options}
|
package/src/types/iframe.ts
CHANGED