@licklist/design 0.67.4-dev.0 → 0.67.4
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/.storybook/main.cjs +12 -15
- package/dist/assets/iframe/selectArrow.svg.js +17 -0
- package/dist/auth/Login/LoginComponent.js +1 -2
- package/dist/calendar/Calendar.d.ts +1 -1
- package/dist/calendar/Calendar.d.ts.map +1 -1
- package/dist/calendar/components/CalendarButtons/CalendarButtons.d.ts.map +1 -1
- package/dist/calendar/components/CalendarButtons/CalendarButtons.js +40 -35
- package/dist/calendar/utils/index.d.ts +2 -2
- package/dist/calendar/utils/index.d.ts.map +1 -1
- package/dist/calendar/utils/index.js +4 -20
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts +1 -2
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts.map +1 -1
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.js +4 -4
- package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.d.ts +2 -2
- package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.d.ts.map +1 -1
- package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.js +26 -27
- package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.d.ts +2 -2
- 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 +3 -3
- package/dist/events/edit-event-modal/utils/getDefaultProductSet.d.ts.map +1 -1
- package/dist/events/edit-event-modal/utils/getDefaultProductSet.js +1 -0
- package/dist/iframe/event/event-card/IframeEventCard.d.ts +1 -1
- package/dist/iframe/event/event-card/IframeEventCard.d.ts.map +1 -1
- package/dist/iframe/event/event-card/IframeEventCard.js +3 -9
- 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 +0 -2
- package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/layout/DropDown.d.ts +1 -2
- package/dist/layout/DropDown.d.ts.map +1 -1
- package/dist/modals/confirmation/ConfirmModal.d.ts +1 -3
- package/dist/modals/confirmation/ConfirmModal.d.ts.map +1 -1
- package/dist/modals/confirmation/ConfirmModal.js +8 -172
- package/dist/product-set/card/ProductSetCard.d.ts +2 -6
- package/dist/product-set/card/ProductSetCard.d.ts.map +1 -1
- package/dist/product-set/card/ProductSetCard.js +11 -30
- package/dist/product-set/control/DateAndRecurrenceInput.d.ts +2 -3
- package/dist/product-set/control/DateAndRecurrenceInput.d.ts.map +1 -1
- package/dist/product-set/control/DateAndRecurrenceInput.js +1 -3
- package/dist/product-set/control/DateInput.d.ts.map +1 -1
- package/dist/product-set/control/DateInput.js +2 -2
- package/dist/product-set/control/ProductSetControl.d.ts +3 -3
- package/dist/product-set/control/ProductSetControl.d.ts.map +1 -1
- package/dist/product-set/control/ProductSetControl.js +16 -4
- package/dist/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductCategoriesControl.js +2 -48
- package/dist/product-set/form/ProductSetForm.d.ts +2 -6
- package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
- package/dist/product-set/form/ProductSetForm.js +5 -65
- package/dist/product-set/form/ProductZonesControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductZonesControl.js +2 -0
- package/dist/product-set/form/SelectCategoryModal.d.ts +0 -12
- package/dist/product-set/form/SelectCategoryModal.d.ts.map +1 -1
- package/dist/product-set/form/SelectCategoryModal.js +1 -1
- package/dist/product-set/form/SubProductsControl.d.ts.map +1 -1
- package/dist/product-set/form/SubProductsControl.js +3 -0
- package/dist/product-set/form/VenueMapsControl.d.ts.map +1 -1
- package/dist/product-set/form/VenueMapsControl.js +3 -0
- package/dist/product-set/form/index.d.ts +0 -1
- package/dist/product-set/form/index.d.ts.map +1 -1
- package/dist/product-set/utils/index.d.ts +0 -7
- package/dist/product-set/utils/index.d.ts.map +1 -1
- package/dist/product-set/utils/index.js +1 -10
- package/dist/provider/location-input/LocationInput.d.ts +1 -4
- package/dist/provider/location-input/LocationInput.d.ts.map +1 -1
- package/dist/provider/location-input/LocationInput.js +2 -41
- package/dist/provider/location-input/LocationInputDescription.d.ts +1 -4
- package/dist/provider/location-input/LocationInputDescription.d.ts.map +1 -1
- package/dist/provider/location-input/LocationInputDescription.js +12 -27
- package/dist/provider/location-input/index.d.ts +0 -1
- package/dist/provider/location-input/index.d.ts.map +1 -1
- package/dist/provider/provider-form/ProviderForm.d.ts +1 -3
- package/dist/provider/provider-form/ProviderForm.d.ts.map +1 -1
- package/dist/provider/provider-form/ProviderForm.js +3 -7
- package/dist/provider/venue-form/VenueForm.d.ts +1 -3
- package/dist/provider/venue-form/VenueForm.d.ts.map +1 -1
- package/dist/provider/venue-form/VenueForm.js +3 -7
- package/dist/provider/working-hours-input/WorkingHoursInputDescription.d.ts.map +1 -1
- package/dist/provider/working-hours-input/WorkingHoursInputDescription.js +8 -4
- package/dist/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.d.ts +1 -2
- package/dist/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.d.ts.map +1 -1
- package/dist/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.js +13 -7
- package/dist/recurring-date-picker-input/RecurringDatePickerInput.d.ts +1 -4
- package/dist/recurring-date-picker-input/RecurringDatePickerInput.d.ts.map +1 -1
- package/dist/recurring-date-picker-input/RecurringDatePickerInput.js +3 -7
- package/dist/recurring-date-picker-input/utils.d.ts +0 -5
- package/dist/recurring-date-picker-input/utils.d.ts.map +1 -1
- package/dist/recurring-date-picker-input/utils.js +3 -72
- package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
- package/dist/sales/booking/results/components/ResultCard.js +7 -4
- package/dist/sales/guest-profile/previous-bookings/PreviousBookings.js +1 -1
- package/dist/sales/manual-booking/formatDays.js +3 -3
- package/dist/sales/manual-booking/select-event/SelectEvent.d.ts.map +1 -1
- package/dist/sales/manual-booking/select-event/SelectEvent.js +3 -3
- package/dist/sales/manual-booking/summary/ManualBookingSummary.d.ts.map +1 -1
- package/dist/sales/manual-booking/summary/ManualBookingSummary.js +2 -2
- package/dist/sales/notes/NotesTableRow.js +4 -3
- package/dist/setting/admin/AdminSettingForm.d.ts +2 -2
- package/dist/setting/admin/AdminSettingForm.d.ts.map +1 -1
- package/dist/snippet/snippet-template/preview/Preview.d.ts.map +1 -1
- package/dist/snippet/snippet-template/preview/Preview.js +0 -6
- package/dist/sortable-tree/SortableTreeItem.d.ts +1 -2
- package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
- package/dist/sortable-tree/SortableTreeItem.js +4 -10
- package/dist/styles/auth/AccessDenied.scss +1 -1
- package/dist/styles/back-button/BackButton.scss +24 -25
- package/dist/styles/back-button/_index.scss +1 -1
- package/dist/styles/company-user-form/UserForm.scss +7 -4
- package/dist/styles/company-user-form/_index.scss +1 -1
- package/dist/styles/custom-fields/CreateSortableListItem.scss +1 -2
- package/dist/styles/custom-fields/_index.scss +1 -1
- package/dist/styles/customers/Filter.scss +5 -5
- package/dist/styles/events/EditEventModal.scss +3 -1
- package/dist/styles/events/EventVenueMap.scss +7 -7
- package/dist/styles/form/Input.scss +1 -1
- package/dist/styles/header/Header.scss +1 -1
- package/dist/styles/header/elements/CompanySelector.scss +2 -2
- package/dist/styles/iframe-events/Calendar.scss +1 -0
- package/dist/styles/iframe-events/CalendarSelect.scss +1 -1
- package/dist/styles/iframe-events/CategoryStepsForm.scss +7 -6
- package/dist/styles/iframe-events/Event.scss +4 -2
- package/dist/styles/iframe-events/EventForm.scss +54 -54
- package/dist/styles/iframe-events/EventNavigationFooter.scss +0 -1
- package/dist/styles/iframe-events/TicketDescription.scss +1 -1
- package/dist/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
- package/dist/styles/iframe-payments/PaymentForm.scss +1 -1
- package/dist/styles/layout/BackgroundVideoContainer.scss +2 -2
- package/dist/styles/notification/Notification.scss +1 -1
- package/dist/styles/order-items-table/OrderItemsTable.scss +2 -1
- package/dist/styles/product-set/CreateProductSetItem.scss +13 -15
- package/dist/styles/product-set/DateAndRecurrenceInput.scss +8 -6
- package/dist/styles/product-set/EditCategoryModal.scss +4 -4
- package/dist/styles/product-set/EditProductModal.scss +3 -3
- package/dist/styles/product-set/EditStepModal.scss +4 -4
- package/dist/styles/product-set/EditVenueMapSetModal.scss +6 -6
- package/dist/styles/product-set/ProductSetForm.scss +2 -25
- package/dist/styles/product-set/TutorialGifCard.scss +1 -1
- package/dist/styles/product-set/_index.scss +2 -2
- package/dist/styles/report/ReportCard.scss +0 -1
- package/dist/styles/report/_index.scss +1 -1
- package/dist/styles/resources-blocking/_index.scss +0 -4
- package/dist/styles/sales/BookingFilter.scss +2 -2
- package/dist/styles/sales/BookingResults.scss +1 -1
- package/dist/styles/sales/BookingTabs.scss +5 -7
- package/dist/styles/sales/Filters.scss +4 -5
- package/dist/styles/sales/GuestProfile.scss +175 -170
- package/dist/styles/sales/LifeTimeSales.scss +1 -1
- package/dist/styles/sales/ManualBooking.scss +2 -4
- package/dist/styles/snippet-templates/_snippetVariables.scss +244 -63
- package/dist/styles/sortable-field/SortableField.scss +16 -16
- package/dist/styles/sortable-field/_index.scss +1 -1
- package/dist/styles/sortable-tree/Item.scss +4 -4
- package/dist/styles/table/Table.scss +1 -1
- package/dist/styles/themes/bookedit/_variables.scss +32 -10
- package/dist/styles/themes/licklist/_variables.scss +1 -1
- package/dist/styles/tiptap-editor/TiptapEditor.scss +10 -9
- package/dist/styles/tiptap-editor/_index.scss +1 -1
- package/dist/styles/venue-map-sets/VenueMapSetForm.scss +4 -5
- package/dist/styles/virtualized/_index.scss +1 -1
- package/dist/styles/zones/ZoneForm.scss +0 -1
- package/dist/styles/zones/ZoneRecurrencesControl.scss +8 -6
- package/dist/typeahead/Typeahead.d.ts +1 -5
- package/dist/typeahead/Typeahead.d.ts.map +1 -1
- package/dist/typeahead/Typeahead.js +2 -9
- package/dist/zone/form/ZoneForm.d.ts +2 -3
- package/dist/zone/form/ZoneForm.d.ts.map +1 -1
- package/dist/zone/form/ZoneForm.js +2 -4
- package/dist/zone/form/components/ZoneControl.d.ts +2 -3
- package/dist/zone/form/components/ZoneControl.d.ts.map +1 -1
- package/dist/zone/form/components/ZoneControl.js +2 -5
- package/dist/zone/form/components/ZoneRecurrencesControl.d.ts +4 -5
- package/dist/zone/form/components/ZoneRecurrencesControl.d.ts.map +1 -1
- package/dist/zone/form/components/ZoneRecurrencesControl.js +2 -5
- package/dist/zone/form/utils/dates.d.ts.map +1 -1
- package/package.json +10 -10
- package/src/auth/ChangePassword/ChangePassword.stories.tsx +1 -1
- package/src/auth/Login/LoginComponent.tsx +1 -1
- package/src/auth/ResetPassword/ResetPassword.stories.tsx +1 -1
- package/src/calendar/components/CalendarButtons/CalendarButtons.tsx +28 -31
- package/src/calendar/utils/index.ts +4 -26
- package/src/events/edit-event-modal/component/EditEventForm/EditEventForm.tsx +2 -3
- package/src/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.tsx +37 -35
- package/src/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.tsx +3 -3
- package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +1 -0
- package/src/header/elements/Elements.stories.tsx +1 -1
- package/src/help/popover/Popover.stories.tsx +1 -1
- package/src/iframe/event/event-card/IframeEventCard.tsx +2 -16
- package/src/iframe/event/event-venue-map/IframeEventVenueMap.stories.tsx +3 -3
- package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +0 -1
- package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +0 -1
- package/src/layout/DropDown.tsx +1 -2
- package/src/modals/confirmation/ConfirmModal.tsx +3 -19
- package/src/product-set/card/ProductSetCard.stories.tsx +1 -3
- package/src/product-set/card/ProductSetCard.tsx +8 -47
- package/src/product-set/control/DateAndRecurrenceInput.tsx +4 -6
- package/src/product-set/control/DateInput.tsx +1 -2
- package/src/product-set/control/ProductSetControl.tsx +15 -4
- package/src/product-set/control/ProductSetRecurrenceControl.stories.tsx +2 -2
- package/src/product-set/form/ProductCategoriesControl.tsx +1 -37
- package/src/product-set/form/ProductSetForm.tsx +3 -25
- package/src/product-set/form/ProductZonesControl.tsx +7 -4
- package/src/product-set/form/SelectCategoryModal.stories.tsx +1 -1
- package/src/product-set/form/SelectCategoryModal.tsx +2 -2
- package/src/product-set/form/SubProductsControl.tsx +3 -0
- package/src/product-set/form/VenueMapsControl.tsx +3 -0
- package/src/product-set/form/index.ts +0 -1
- package/src/product-set/product/advanced-options/AdvancedOptions.tsx +5 -5
- package/src/product-set/product/booking-management/ProductBookingManagement.stories.tsx +1 -1
- package/src/product-set/product/quantity/ProductQuantity.stories.tsx +1 -1
- package/src/product-set/product-zone/ProductZoneControl.tsx +9 -9
- package/src/product-set/utils/index.ts +0 -11
- package/src/provider/location-input/LocationInput.tsx +1 -36
- package/src/provider/location-input/LocationInputDescription.tsx +11 -23
- package/src/provider/location-input/index.ts +0 -1
- package/src/provider/provider-form/ProviderForm.tsx +2 -7
- package/src/provider/venue-form/VenueForm.tsx +2 -5
- package/src/provider/working-hours-input/WorkingHoursInputDescription.tsx +18 -4
- package/src/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.tsx +22 -8
- package/src/recurring-date-picker-input/RecurringDatePickerInput.stories.tsx +4 -11
- package/src/recurring-date-picker-input/RecurringDatePickerInput.tsx +3 -17
- package/src/recurring-date-picker-input/utils.ts +1 -86
- package/src/sales/booking/results/components/ResultCard.tsx +10 -4
- package/src/sales/guest-profile/previous-bookings/PreviousBookings.tsx +1 -1
- package/src/sales/manual-booking/formatDays.ts +3 -3
- package/src/sales/manual-booking/select-event/SelectEvent.tsx +2 -2
- package/src/sales/manual-booking/summary/ManualBookingSummary.tsx +2 -2
- package/src/sales/notes/NotesTableRow.tsx +3 -3
- package/src/setting/admin/AdminSetting.stories.tsx +0 -1
- package/src/setting/admin/AdminSettingForm.tsx +2 -2
- package/src/setting/system/SystemSetting.stories.tsx +1 -1
- package/src/snippet/snippet-template/preview/Preview.tsx +0 -6
- package/src/sortable-tree/SortableTreeItem.tsx +0 -6
- package/src/styles/auth/AccessDenied.scss +1 -1
- package/src/styles/back-button/BackButton.scss +24 -25
- package/src/styles/back-button/_index.scss +1 -1
- package/src/styles/company-user-form/UserForm.scss +7 -4
- package/src/styles/company-user-form/_index.scss +1 -1
- package/src/styles/custom-fields/CreateSortableListItem.scss +1 -2
- package/src/styles/custom-fields/_index.scss +1 -1
- package/src/styles/customers/Filter.scss +5 -5
- package/src/styles/events/EditEventModal.scss +3 -1
- package/src/styles/events/EventVenueMap.scss +7 -7
- package/src/styles/form/Input.scss +1 -1
- package/src/styles/header/Header.scss +1 -1
- package/src/styles/header/elements/CompanySelector.scss +2 -2
- package/src/styles/iframe-events/Calendar.scss +1 -0
- package/src/styles/iframe-events/CalendarSelect.scss +1 -1
- package/src/styles/iframe-events/CategoryStepsForm.scss +7 -6
- package/src/styles/iframe-events/Event.scss +4 -2
- package/src/styles/iframe-events/EventForm.scss +54 -54
- package/src/styles/iframe-events/EventNavigationFooter.scss +0 -1
- package/src/styles/iframe-events/TicketDescription.scss +1 -1
- package/src/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
- package/src/styles/iframe-payments/PaymentForm.scss +1 -1
- package/src/styles/layout/BackgroundVideoContainer.scss +2 -2
- package/src/styles/notification/Notification.scss +1 -1
- package/src/styles/order-items-table/OrderItemsTable.scss +2 -1
- package/src/styles/product-set/CreateProductSetItem.scss +13 -15
- package/src/styles/product-set/DateAndRecurrenceInput.scss +8 -6
- package/src/styles/product-set/EditCategoryModal.scss +4 -4
- package/src/styles/product-set/EditProductModal.scss +3 -3
- package/src/styles/product-set/EditStepModal.scss +4 -4
- package/src/styles/product-set/EditVenueMapSetModal.scss +6 -6
- package/src/styles/product-set/ProductSetForm.scss +2 -25
- package/src/styles/product-set/TutorialGifCard.scss +1 -1
- package/src/styles/product-set/_index.scss +2 -2
- package/src/styles/report/ReportCard.scss +0 -1
- package/src/styles/report/_index.scss +1 -1
- package/src/styles/resources-blocking/_index.scss +0 -4
- package/src/styles/sales/BookingFilter.scss +2 -2
- package/src/styles/sales/BookingResults.scss +1 -1
- package/src/styles/sales/BookingTabs.scss +5 -7
- package/src/styles/sales/Filters.scss +4 -5
- package/src/styles/sales/GuestProfile.scss +175 -170
- package/src/styles/sales/LifeTimeSales.scss +1 -1
- package/src/styles/sales/ManualBooking.scss +2 -4
- package/src/styles/snippet-templates/_snippetVariables.scss +244 -63
- package/src/styles/sortable-field/SortableField.scss +16 -16
- package/src/styles/sortable-field/_index.scss +1 -1
- package/src/styles/sortable-tree/Item.scss +4 -4
- package/src/styles/table/Table.scss +1 -1
- package/src/styles/themes/bookedit/_variables.scss +32 -10
- package/src/styles/themes/licklist/_variables.scss +1 -1
- package/src/styles/tiptap-editor/TiptapEditor.scss +10 -9
- package/src/styles/tiptap-editor/_index.scss +1 -1
- package/src/styles/venue-map-sets/VenueMapSetForm.scss +4 -5
- package/src/styles/virtualized/_index.scss +1 -1
- package/src/styles/zones/ZoneForm.scss +0 -1
- package/src/styles/zones/ZoneRecurrencesControl.scss +8 -6
- package/src/tiptap-editor/TipTapEditor.stories.tsx +4 -6
- package/src/tiptap-editor/TipTapMenu/TipTapMenu.stories.tsx +2 -5
- package/src/typeahead/Typeahead.tsx +1 -15
- package/src/zone/form/ZoneForm.tsx +2 -9
- package/src/zone/form/components/ZoneControl.tsx +3 -8
- package/src/zone/form/components/ZoneRecurrencesControl.tsx +5 -10
- package/src/zone/form/utils/dates.ts +10 -9
- package/yarn.lock +48 -35
- package/dist/product-set/form/ProductSetNameControl.d.ts +0 -6
- package/dist/product-set/form/ProductSetNameControl.d.ts.map +0 -1
- package/dist/product-set/form/ProductSetNameControl.js +0 -35
- package/src/product-set/form/ProductSetNameControl.tsx +0 -27
|
@@ -21,7 +21,6 @@ export const Disabled: Story<TipTapEditorProps> = (args) => (
|
|
|
21
21
|
<TipTapEditor {...args} />
|
|
22
22
|
);
|
|
23
23
|
|
|
24
|
-
|
|
25
24
|
const content = `
|
|
26
25
|
<h2>
|
|
27
26
|
Hi there,
|
|
@@ -54,24 +53,23 @@ Default.args = {
|
|
|
54
53
|
viewMode: false,
|
|
55
54
|
content,
|
|
56
55
|
withEmoji: false,
|
|
57
|
-
}
|
|
56
|
+
};
|
|
58
57
|
|
|
59
58
|
WithEmoji.args = {
|
|
60
59
|
viewMode: false,
|
|
61
60
|
content,
|
|
62
61
|
withEmoji: true,
|
|
63
|
-
}
|
|
62
|
+
};
|
|
64
63
|
|
|
65
64
|
ViewMode.args = {
|
|
66
65
|
viewMode: true,
|
|
67
66
|
content,
|
|
68
67
|
withEmoji: true,
|
|
69
|
-
}
|
|
68
|
+
};
|
|
70
69
|
|
|
71
70
|
Disabled.args = {
|
|
72
71
|
viewMode: false,
|
|
73
72
|
content,
|
|
74
73
|
withEmoji: true,
|
|
75
74
|
disabled: true,
|
|
76
|
-
}
|
|
77
|
-
|
|
75
|
+
};
|
|
@@ -13,7 +13,6 @@ export default {
|
|
|
13
13
|
component: TipTapMenu,
|
|
14
14
|
} as Meta;
|
|
15
15
|
|
|
16
|
-
|
|
17
16
|
export const Default = () => {
|
|
18
17
|
const editor = useEditor({
|
|
19
18
|
extensions: [
|
|
@@ -26,9 +25,7 @@ export const Default = () => {
|
|
|
26
25
|
EmojiReplacer,
|
|
27
26
|
],
|
|
28
27
|
content: "",
|
|
29
|
-
})
|
|
28
|
+
});
|
|
30
29
|
|
|
31
|
-
return
|
|
32
|
-
<TipTapMenu withEmoji editor={editor} />
|
|
33
|
-
);
|
|
30
|
+
return <TipTapMenu withEmoji editor={editor} />;
|
|
34
31
|
};
|
|
@@ -12,13 +12,10 @@ export interface TypeaheadProps {
|
|
|
12
12
|
placeholder: string;
|
|
13
13
|
isRequired?: boolean;
|
|
14
14
|
name: string;
|
|
15
|
-
value?: TypeaheadOptions;
|
|
16
15
|
isMultipleChoise?: boolean;
|
|
17
16
|
noOptionsMessage: string;
|
|
18
17
|
isInvalid?: boolean;
|
|
19
18
|
isCouponForm?: boolean;
|
|
20
|
-
containerStyles?: CSSObjectWithLabel;
|
|
21
|
-
onChangeValue?: (value: TypeaheadOptions) => void;
|
|
22
19
|
}
|
|
23
20
|
|
|
24
21
|
function Typeahead({
|
|
@@ -27,9 +24,6 @@ function Typeahead({
|
|
|
27
24
|
isRequired = false,
|
|
28
25
|
isMultipleChoise,
|
|
29
26
|
name = "",
|
|
30
|
-
value,
|
|
31
|
-
onChangeValue,
|
|
32
|
-
containerStyles,
|
|
33
27
|
isCouponForm = false,
|
|
34
28
|
noOptionsMessage = "",
|
|
35
29
|
isInvalid,
|
|
@@ -59,23 +53,15 @@ function Typeahead({
|
|
|
59
53
|
render={({ field }) => (
|
|
60
54
|
<Select
|
|
61
55
|
placeholder={placeholder}
|
|
62
|
-
value={
|
|
56
|
+
value={field.value}
|
|
63
57
|
isMulti={isMultipleChoise}
|
|
64
58
|
styles={{
|
|
65
|
-
container: (base) => ({
|
|
66
|
-
...base,
|
|
67
|
-
...containerStyles,
|
|
68
|
-
}),
|
|
69
59
|
control: (base) => ({
|
|
70
60
|
...base,
|
|
71
61
|
...getStyle(),
|
|
72
62
|
}),
|
|
73
63
|
}}
|
|
74
64
|
onChange={(value) => {
|
|
75
|
-
if (onChangeValue) {
|
|
76
|
-
onChangeValue(value);
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
65
|
field.onChange(value);
|
|
80
66
|
}}
|
|
81
67
|
options={options}
|
|
@@ -13,8 +13,7 @@ export type ZoneFormProps = {
|
|
|
13
13
|
onSubmit: (values: Partial<Zone>) => void;
|
|
14
14
|
serverErrors?: ServerError;
|
|
15
15
|
isLoading?: boolean;
|
|
16
|
-
workHours
|
|
17
|
-
timeZone: string;
|
|
16
|
+
workHours?: WorkHour[];
|
|
18
17
|
};
|
|
19
18
|
|
|
20
19
|
export type ZoneFormValues = Partial<Zone> & {
|
|
@@ -26,8 +25,6 @@ export const ZoneForm = ({
|
|
|
26
25
|
onSubmit,
|
|
27
26
|
serverErrors,
|
|
28
27
|
isLoading = false,
|
|
29
|
-
workHours,
|
|
30
|
-
timeZone,
|
|
31
28
|
}: ZoneFormProps) => {
|
|
32
29
|
const { t } = useTranslation("Design");
|
|
33
30
|
const form = useForm<ZoneFormValues>({
|
|
@@ -57,11 +54,7 @@ export const ZoneForm = ({
|
|
|
57
54
|
return (
|
|
58
55
|
<FormProvider {...form}>
|
|
59
56
|
<Form onSubmit={handleSubmit(onFormSubmit)}>
|
|
60
|
-
<ZoneControl
|
|
61
|
-
isLoading={isLoading}
|
|
62
|
-
workHours={workHours}
|
|
63
|
-
timeZone={timeZone}
|
|
64
|
-
/>
|
|
57
|
+
<ZoneControl isLoading={isLoading} />
|
|
65
58
|
<Row>
|
|
66
59
|
<Col md={6} sm={12} />
|
|
67
60
|
<Col
|
|
@@ -10,20 +10,15 @@ import { GameDurationControl } from "./GameDurationControl";
|
|
|
10
10
|
|
|
11
11
|
export type ZoneControlProps = {
|
|
12
12
|
isLoading: boolean;
|
|
13
|
-
workHours
|
|
14
|
-
timeZone: string;
|
|
13
|
+
workHours?: WorkHour[];
|
|
15
14
|
};
|
|
16
15
|
|
|
17
|
-
export const ZoneControl = ({
|
|
18
|
-
isLoading,
|
|
19
|
-
workHours,
|
|
20
|
-
timeZone,
|
|
21
|
-
}: ZoneControlProps) => {
|
|
16
|
+
export const ZoneControl = ({ isLoading }: ZoneControlProps) => {
|
|
22
17
|
return (
|
|
23
18
|
<Row>
|
|
24
19
|
<Col md={6} sm={12} className="pr-5">
|
|
25
20
|
<NameControl isLoading={isLoading} />
|
|
26
|
-
<ZoneRecurrencesControl
|
|
21
|
+
<ZoneRecurrencesControl />
|
|
27
22
|
<hr />
|
|
28
23
|
<Row>
|
|
29
24
|
<Col md={6} sm={6}>
|
|
@@ -25,15 +25,12 @@ export interface DateAndRecurrenceInputValues {
|
|
|
25
25
|
zoneRecurrences?: Partial<ZoneRecurrence>[];
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
type ZoneRecurrenceControlProps = {
|
|
29
|
-
workHours
|
|
30
|
-
|
|
28
|
+
export type ZoneRecurrenceControlProps = {
|
|
29
|
+
workHours?: WorkHour[];
|
|
30
|
+
isLoading?: boolean;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
export const ZoneRecurrencesControl = ({
|
|
34
|
-
workHours,
|
|
35
|
-
timeZone,
|
|
36
|
-
}: ZoneRecurrenceControlProps) => {
|
|
33
|
+
export const ZoneRecurrencesControl = () => {
|
|
37
34
|
const {
|
|
38
35
|
control,
|
|
39
36
|
register,
|
|
@@ -72,7 +69,7 @@ export const ZoneRecurrencesControl = ({
|
|
|
72
69
|
clearEditState();
|
|
73
70
|
});
|
|
74
71
|
|
|
75
|
-
const popoverId = useId()
|
|
72
|
+
const popoverId = useId()!;
|
|
76
73
|
|
|
77
74
|
const { t } = useTranslation(["Design", "Validation"]);
|
|
78
75
|
|
|
@@ -169,8 +166,6 @@ export const ZoneRecurrencesControl = ({
|
|
|
169
166
|
onChange={handleRecurringDateChange}
|
|
170
167
|
onDelete={handleDelete}
|
|
171
168
|
setInitialStartDateAfterSelect
|
|
172
|
-
workHours={workHours}
|
|
173
|
-
timeZone={timeZone}
|
|
174
169
|
/>
|
|
175
170
|
</Popover.Content>
|
|
176
171
|
</Popover>
|
|
@@ -53,17 +53,18 @@ export const getCheckboxesByWorkHours = (workHours?: WorkHour[]) => {
|
|
|
53
53
|
if (!workHours || !workHours.length)
|
|
54
54
|
return getTimeCheckboxRanges(DEFAULT_START_DAY_TIME, DEFAULT_END_DAY_TIME);
|
|
55
55
|
|
|
56
|
-
const providerWorkHoursByWeek = workHours.reduce
|
|
57
|
-
{ start: string; end: string }[]
|
|
58
|
-
|
|
59
|
-
const { start, end } = currentWorkHour;
|
|
56
|
+
const providerWorkHoursByWeek = workHours.reduce(
|
|
57
|
+
(workHoursNextArray: { start: string; end: string }[], currentWorkHour) => {
|
|
58
|
+
const { start, end } = currentWorkHour;
|
|
60
59
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
if (start && end) {
|
|
61
|
+
return [...workHoursNextArray, { start, end }];
|
|
62
|
+
}
|
|
64
63
|
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
return workHoursNextArray;
|
|
65
|
+
},
|
|
66
|
+
[],
|
|
67
|
+
);
|
|
67
68
|
|
|
68
69
|
// If venue has filled only 1 work day from wee
|
|
69
70
|
// For another days we use default 00:00 and 23:59
|
package/yarn.lock
CHANGED
|
@@ -2405,6 +2405,18 @@ __metadata:
|
|
|
2405
2405
|
languageName: node
|
|
2406
2406
|
linkType: hard
|
|
2407
2407
|
|
|
2408
|
+
"@fortawesome/react-fontawesome@npm:0.1.9":
|
|
2409
|
+
version: 0.1.9
|
|
2410
|
+
resolution: "@fortawesome/react-fontawesome@npm:0.1.9"
|
|
2411
|
+
dependencies:
|
|
2412
|
+
prop-types: "npm:^15.7.2"
|
|
2413
|
+
peerDependencies:
|
|
2414
|
+
"@fortawesome/fontawesome-svg-core": ^1.2.20
|
|
2415
|
+
react: 16.x
|
|
2416
|
+
checksum: 10c0/063d93c40704a3f4dc7818c3bfbd07b2a55c2c68f1cd50e6ea2c54a90ce259ce58d45deb9b000ca6e5bbf64d7d026f4a57766b404cbb0aa36c7dcfc167f02233
|
|
2417
|
+
languageName: node
|
|
2418
|
+
linkType: hard
|
|
2419
|
+
|
|
2408
2420
|
"@gar/promisify@npm:^1.0.1":
|
|
2409
2421
|
version: 1.1.3
|
|
2410
2422
|
resolution: "@gar/promisify@npm:1.1.3"
|
|
@@ -2561,14 +2573,14 @@ __metadata:
|
|
|
2561
2573
|
languageName: node
|
|
2562
2574
|
linkType: hard
|
|
2563
2575
|
|
|
2564
|
-
"@licklist/core@npm:0.29.
|
|
2565
|
-
version: 0.29.
|
|
2566
|
-
resolution: "@licklist/core@npm:0.29.
|
|
2576
|
+
"@licklist/core@npm:0.29.0":
|
|
2577
|
+
version: 0.29.0
|
|
2578
|
+
resolution: "@licklist/core@npm:0.29.0"
|
|
2567
2579
|
dependencies:
|
|
2568
2580
|
"@sentry/browser": "npm:6.2.0"
|
|
2569
2581
|
axios: "npm:0.26.0"
|
|
2570
2582
|
i18next: "npm:19.4.5"
|
|
2571
|
-
luxon: "npm:
|
|
2583
|
+
luxon: "npm:1.26.0"
|
|
2572
2584
|
react: "npm:17.0.2"
|
|
2573
2585
|
react-dom: "npm:17.0.2"
|
|
2574
2586
|
react-i18next: "npm:11.8.8"
|
|
@@ -2578,23 +2590,23 @@ __metadata:
|
|
|
2578
2590
|
peerDependencies:
|
|
2579
2591
|
"@licklist/eslint-config": 0.5.5
|
|
2580
2592
|
axios: 0.26.0
|
|
2581
|
-
luxon:
|
|
2593
|
+
luxon: 1.26.0
|
|
2582
2594
|
react: 17.0.2
|
|
2583
2595
|
react-dom: 17.0.2
|
|
2584
2596
|
react-i18next: 11.8.8
|
|
2585
2597
|
react-intl: 6.6.8
|
|
2586
|
-
checksum: 10c0/
|
|
2598
|
+
checksum: 10c0/bf197dd2f2c63f720fd7d8329c1dc02be894d356b749e0e05522bb4b9cb6ff76eeebb37c95ccea395e2f7d34b36f3eab14ecaba9d5c4c005abe1057901f0bedb
|
|
2587
2599
|
languageName: node
|
|
2588
2600
|
linkType: hard
|
|
2589
2601
|
|
|
2590
|
-
"@licklist/core@npm:0.29.1
|
|
2591
|
-
version: 0.29.1
|
|
2592
|
-
resolution: "@licklist/core@npm:0.29.1
|
|
2602
|
+
"@licklist/core@npm:0.29.1":
|
|
2603
|
+
version: 0.29.1
|
|
2604
|
+
resolution: "@licklist/core@npm:0.29.1"
|
|
2593
2605
|
dependencies:
|
|
2594
2606
|
"@sentry/browser": "npm:6.2.0"
|
|
2595
2607
|
axios: "npm:0.26.0"
|
|
2596
2608
|
i18next: "npm:19.4.5"
|
|
2597
|
-
luxon: "npm:
|
|
2609
|
+
luxon: "npm:1.26.0"
|
|
2598
2610
|
react: "npm:17.0.2"
|
|
2599
2611
|
react-dom: "npm:17.0.2"
|
|
2600
2612
|
react-i18next: "npm:11.8.8"
|
|
@@ -2604,12 +2616,12 @@ __metadata:
|
|
|
2604
2616
|
peerDependencies:
|
|
2605
2617
|
"@licklist/eslint-config": 0.5.5
|
|
2606
2618
|
axios: 0.26.0
|
|
2607
|
-
luxon:
|
|
2619
|
+
luxon: 1.26.0
|
|
2608
2620
|
react: 17.0.2
|
|
2609
2621
|
react-dom: 17.0.2
|
|
2610
2622
|
react-i18next: 11.8.8
|
|
2611
2623
|
react-intl: 6.6.8
|
|
2612
|
-
checksum: 10c0/
|
|
2624
|
+
checksum: 10c0/90bfe0a2c1c6b57e4900b59827252bc7e1745d67f659ae7b2ccb4a323f142f2296864bc8025f864c9106cabc3a1893c9b88753706558997bb7305e57fa886868
|
|
2613
2625
|
languageName: node
|
|
2614
2626
|
linkType: hard
|
|
2615
2627
|
|
|
@@ -2624,9 +2636,10 @@ __metadata:
|
|
|
2624
2636
|
"@dnd-kit/utilities": "npm:2.0.0"
|
|
2625
2637
|
"@fortawesome/fontawesome-svg-core": "npm:1.2.34"
|
|
2626
2638
|
"@fortawesome/free-solid-svg-icons": "npm:5.15.2"
|
|
2627
|
-
"@
|
|
2639
|
+
"@fortawesome/react-fontawesome": "npm:0.1.9"
|
|
2640
|
+
"@licklist/core": "npm:0.29.1"
|
|
2628
2641
|
"@licklist/eslint-config": "npm:0.5.5"
|
|
2629
|
-
"@licklist/plugins": "npm:0.32.0
|
|
2642
|
+
"@licklist/plugins": "npm:0.32.0"
|
|
2630
2643
|
"@mdx-js/react": "npm:1.6.22"
|
|
2631
2644
|
"@popperjs/core": "npm:2.11.8"
|
|
2632
2645
|
"@react-aria/utils": "npm:3.9.0"
|
|
@@ -2665,7 +2678,7 @@ __metadata:
|
|
|
2665
2678
|
"@tiptap/react": "npm:2.0.0-beta.109"
|
|
2666
2679
|
"@tiptap/suggestion": "npm:2.0.0-beta.92"
|
|
2667
2680
|
"@types/lodash": "npm:4.17.5"
|
|
2668
|
-
"@types/luxon": "npm:
|
|
2681
|
+
"@types/luxon": "npm:1.26.2"
|
|
2669
2682
|
"@types/mdx-js__react": "npm:1.5.3"
|
|
2670
2683
|
"@types/node": "npm:20.9.0"
|
|
2671
2684
|
"@types/react": "npm:17.0.80"
|
|
@@ -2702,7 +2715,7 @@ __metadata:
|
|
|
2702
2715
|
konva: "npm:6.0.0"
|
|
2703
2716
|
lint-staged: "npm:12.3.2"
|
|
2704
2717
|
lodash: "npm:4.17.21"
|
|
2705
|
-
luxon: "npm:
|
|
2718
|
+
luxon: "npm:1.26.0"
|
|
2706
2719
|
moment: "npm:2.29.1"
|
|
2707
2720
|
prettier: "npm:3.3.3"
|
|
2708
2721
|
react: "npm:17.0.2"
|
|
@@ -2748,11 +2761,11 @@ __metadata:
|
|
|
2748
2761
|
vite-plugin-svgr: "npm:4.2.0"
|
|
2749
2762
|
vite-tsconfig-paths: "npm:5.0.1"
|
|
2750
2763
|
peerDependencies:
|
|
2751
|
-
"@licklist/core": 0.29.1
|
|
2764
|
+
"@licklist/core": 0.29.1
|
|
2752
2765
|
"@licklist/eslint-config": 0.5.5
|
|
2753
|
-
"@licklist/plugins": 0.32.0
|
|
2766
|
+
"@licklist/plugins": 0.32.0
|
|
2754
2767
|
lodash: 4.17.21
|
|
2755
|
-
luxon:
|
|
2768
|
+
luxon: 1.26.0
|
|
2756
2769
|
react: 17.0.2
|
|
2757
2770
|
react-dom: 17.0.2
|
|
2758
2771
|
react-hook-form: 7.52.2
|
|
@@ -2781,17 +2794,17 @@ __metadata:
|
|
|
2781
2794
|
languageName: node
|
|
2782
2795
|
linkType: hard
|
|
2783
2796
|
|
|
2784
|
-
"@licklist/plugins@npm:0.32.0
|
|
2785
|
-
version: 0.32.0
|
|
2786
|
-
resolution: "@licklist/plugins@npm:0.32.0
|
|
2797
|
+
"@licklist/plugins@npm:0.32.0":
|
|
2798
|
+
version: 0.32.0
|
|
2799
|
+
resolution: "@licklist/plugins@npm:0.32.0"
|
|
2787
2800
|
dependencies:
|
|
2788
|
-
"@licklist/core": "npm:0.29.
|
|
2801
|
+
"@licklist/core": "npm:0.29.0"
|
|
2789
2802
|
"@ungap/url-search-params": "npm:0.2.2"
|
|
2790
2803
|
axios: "npm:0.26.0"
|
|
2791
2804
|
history: "npm:4.10.1"
|
|
2792
2805
|
laravel-echo: "npm:1.15.1"
|
|
2793
2806
|
lodash: "npm:4.17.21"
|
|
2794
|
-
luxon: "npm:
|
|
2807
|
+
luxon: "npm:1.26.0"
|
|
2795
2808
|
moment: "npm:2.27.0"
|
|
2796
2809
|
pusher-js: "npm:8.2.0"
|
|
2797
2810
|
react: "npm:17.0.2"
|
|
@@ -2806,11 +2819,11 @@ __metadata:
|
|
|
2806
2819
|
rrule: "npm:2.6.8"
|
|
2807
2820
|
use-debounce: "npm:7.0.1"
|
|
2808
2821
|
peerDependencies:
|
|
2809
|
-
"@licklist/core": 0.29.
|
|
2822
|
+
"@licklist/core": 0.29.0
|
|
2810
2823
|
"@licklist/eslint-config": 0.5.5
|
|
2811
2824
|
axios: 0.26.0
|
|
2812
2825
|
lodash: 4.17.21
|
|
2813
|
-
luxon:
|
|
2826
|
+
luxon: 1.26.0
|
|
2814
2827
|
react: 17.0.2
|
|
2815
2828
|
react-dom: 17.0.2
|
|
2816
2829
|
react-hook-form: 7.52.2
|
|
@@ -2818,7 +2831,7 @@ __metadata:
|
|
|
2818
2831
|
react-loader: 2.4.7
|
|
2819
2832
|
react-query: 3.34.12
|
|
2820
2833
|
react-router-dom: 5.2.0
|
|
2821
|
-
checksum: 10c0/
|
|
2834
|
+
checksum: 10c0/b5fc01110148f64bcb819b7eb71cd716464342e9b81efe8668c7cd7ab6025590f9abcd8d007ec32be2512a7c09f4ca10d7db8ba56b374e0d12fc70199cf21d77
|
|
2822
2835
|
languageName: node
|
|
2823
2836
|
linkType: hard
|
|
2824
2837
|
|
|
@@ -5516,10 +5529,10 @@ __metadata:
|
|
|
5516
5529
|
languageName: node
|
|
5517
5530
|
linkType: hard
|
|
5518
5531
|
|
|
5519
|
-
"@types/luxon@npm:
|
|
5520
|
-
version:
|
|
5521
|
-
resolution: "@types/luxon@npm:
|
|
5522
|
-
checksum: 10c0/
|
|
5532
|
+
"@types/luxon@npm:1.26.2":
|
|
5533
|
+
version: 1.26.2
|
|
5534
|
+
resolution: "@types/luxon@npm:1.26.2"
|
|
5535
|
+
checksum: 10c0/7526b265d0b93ab8e1a01ec8e1e9940addac2ef75ebc14fb9c17fa0c6150bed9f3715fc05198b500d6c80a8cb2dece882b30ea9173fa229c5df8b2dc44a8398f
|
|
5523
5536
|
languageName: node
|
|
5524
5537
|
linkType: hard
|
|
5525
5538
|
|
|
@@ -13759,10 +13772,10 @@ __metadata:
|
|
|
13759
13772
|
languageName: node
|
|
13760
13773
|
linkType: hard
|
|
13761
13774
|
|
|
13762
|
-
"luxon@npm:
|
|
13763
|
-
version:
|
|
13764
|
-
resolution: "luxon@npm:
|
|
13765
|
-
checksum: 10c0/
|
|
13775
|
+
"luxon@npm:1.26.0":
|
|
13776
|
+
version: 1.26.0
|
|
13777
|
+
resolution: "luxon@npm:1.26.0"
|
|
13778
|
+
checksum: 10c0/06e7db9ab9e39069554ce12f84be7246e2e0948d3790ad991e7be676a263be137547ccd9911239b66cee6d8ef2bee6030a5400e0214494a7ea33a7fa4305dc62
|
|
13766
13779
|
languageName: node
|
|
13767
13780
|
linkType: hard
|
|
13768
13781
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProductSetNameControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/ProductSetNameControl.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,qBAAqB,gCAI/B;IACD,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,4CAeA,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { Form } from 'react-bootstrap';
|
|
3
|
-
import { useTranslation } from 'react-i18next';
|
|
4
|
-
|
|
5
|
-
var ProductSetNameControl = function(param) {
|
|
6
|
-
var value = param.value, onChange = param.onChange, error = param.error;
|
|
7
|
-
var t = useTranslation([
|
|
8
|
-
"Design"
|
|
9
|
-
]).t;
|
|
10
|
-
return /*#__PURE__*/ jsxs(Form.Group, {
|
|
11
|
-
children: [
|
|
12
|
-
/*#__PURE__*/ jsxs(Form.Label, {
|
|
13
|
-
children: [
|
|
14
|
-
t("Design:ProductSetName"),
|
|
15
|
-
"*"
|
|
16
|
-
]
|
|
17
|
-
}),
|
|
18
|
-
/*#__PURE__*/ jsx(Form.Control, {
|
|
19
|
-
value: value,
|
|
20
|
-
maxLength: 255,
|
|
21
|
-
onChange: function(e) {
|
|
22
|
-
return onChange(e.target.value);
|
|
23
|
-
},
|
|
24
|
-
placeholder: t("Design:placeholderProductSetName"),
|
|
25
|
-
isInvalid: Boolean(error)
|
|
26
|
-
}),
|
|
27
|
-
/*#__PURE__*/ jsx(Form.Control.Feedback, {
|
|
28
|
-
type: "invalid",
|
|
29
|
-
children: error
|
|
30
|
-
})
|
|
31
|
-
]
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export { ProductSetNameControl };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Form } from "react-bootstrap";
|
|
2
|
-
import { useTranslation } from "react-i18next";
|
|
3
|
-
|
|
4
|
-
export const ProductSetNameControl = ({
|
|
5
|
-
value,
|
|
6
|
-
onChange,
|
|
7
|
-
error,
|
|
8
|
-
}: {
|
|
9
|
-
value: string;
|
|
10
|
-
onChange: (value: string) => void;
|
|
11
|
-
error?: string;
|
|
12
|
-
}) => {
|
|
13
|
-
const { t } = useTranslation(["Design"]);
|
|
14
|
-
return (
|
|
15
|
-
<Form.Group>
|
|
16
|
-
<Form.Label>{t("Design:ProductSetName")}*</Form.Label>
|
|
17
|
-
<Form.Control
|
|
18
|
-
value={value}
|
|
19
|
-
maxLength={255}
|
|
20
|
-
onChange={(e) => onChange(e.target.value)}
|
|
21
|
-
placeholder={t("Design:placeholderProductSetName")}
|
|
22
|
-
isInvalid={Boolean(error)}
|
|
23
|
-
/>
|
|
24
|
-
<Form.Control.Feedback type="invalid">{error}</Form.Control.Feedback>
|
|
25
|
-
</Form.Group>
|
|
26
|
-
);
|
|
27
|
-
};
|