@licklist/design 0.67.5-dev.1 → 0.67.6
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/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/WorkingHoursInput.d.ts.map +1 -1
- package/dist/provider/working-hours-input/WorkingHoursInput.js +2 -2
- package/dist/provider/working-hours-input/WorkingHoursInputDescription.d.ts.map +1 -1
- package/dist/provider/working-hours-input/WorkingHoursInputDescription.js +14 -7
- 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 -83
- 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 +11 -11
- 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-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/WorkingHoursInput.tsx +6 -15
- package/src/provider/working-hours-input/WorkingHoursInputDescription.tsx +30 -11
- 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 -97
- 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 +53 -40
- 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
|
@@ -2398,6 +2398,18 @@ __metadata:
|
|
|
2398
2398
|
languageName: node
|
|
2399
2399
|
linkType: hard
|
|
2400
2400
|
|
|
2401
|
+
"@fortawesome/react-fontawesome@npm:0.1.9":
|
|
2402
|
+
version: 0.1.9
|
|
2403
|
+
resolution: "@fortawesome/react-fontawesome@npm:0.1.9"
|
|
2404
|
+
dependencies:
|
|
2405
|
+
prop-types: "npm:^15.7.2"
|
|
2406
|
+
peerDependencies:
|
|
2407
|
+
"@fortawesome/fontawesome-svg-core": ^1.2.20
|
|
2408
|
+
react: 16.x
|
|
2409
|
+
checksum: 10c0/063d93c40704a3f4dc7818c3bfbd07b2a55c2c68f1cd50e6ea2c54a90ce259ce58d45deb9b000ca6e5bbf64d7d026f4a57766b404cbb0aa36c7dcfc167f02233
|
|
2410
|
+
languageName: node
|
|
2411
|
+
linkType: hard
|
|
2412
|
+
|
|
2401
2413
|
"@gar/promisify@npm:^1.0.1":
|
|
2402
2414
|
version: 1.1.3
|
|
2403
2415
|
resolution: "@gar/promisify@npm:1.1.3"
|
|
@@ -2554,14 +2566,14 @@ __metadata:
|
|
|
2554
2566
|
languageName: node
|
|
2555
2567
|
linkType: hard
|
|
2556
2568
|
|
|
2557
|
-
"@licklist/core@npm:0.29.
|
|
2558
|
-
version: 0.29.
|
|
2559
|
-
resolution: "@licklist/core@npm:0.29.
|
|
2569
|
+
"@licklist/core@npm:0.29.0":
|
|
2570
|
+
version: 0.29.0
|
|
2571
|
+
resolution: "@licklist/core@npm:0.29.0"
|
|
2560
2572
|
dependencies:
|
|
2561
2573
|
"@sentry/browser": "npm:6.2.0"
|
|
2562
2574
|
axios: "npm:0.26.0"
|
|
2563
2575
|
i18next: "npm:19.4.5"
|
|
2564
|
-
luxon: "npm:
|
|
2576
|
+
luxon: "npm:1.26.0"
|
|
2565
2577
|
react: "npm:17.0.2"
|
|
2566
2578
|
react-dom: "npm:17.0.2"
|
|
2567
2579
|
react-i18next: "npm:11.8.8"
|
|
@@ -2571,23 +2583,23 @@ __metadata:
|
|
|
2571
2583
|
peerDependencies:
|
|
2572
2584
|
"@licklist/eslint-config": 0.5.5
|
|
2573
2585
|
axios: 0.26.0
|
|
2574
|
-
luxon:
|
|
2586
|
+
luxon: 1.26.0
|
|
2575
2587
|
react: 17.0.2
|
|
2576
2588
|
react-dom: 17.0.2
|
|
2577
2589
|
react-i18next: 11.8.8
|
|
2578
2590
|
react-intl: 6.6.8
|
|
2579
|
-
checksum: 10c0/
|
|
2591
|
+
checksum: 10c0/bf197dd2f2c63f720fd7d8329c1dc02be894d356b749e0e05522bb4b9cb6ff76eeebb37c95ccea395e2f7d34b36f3eab14ecaba9d5c4c005abe1057901f0bedb
|
|
2580
2592
|
languageName: node
|
|
2581
2593
|
linkType: hard
|
|
2582
2594
|
|
|
2583
|
-
"@licklist/core@npm:0.29.
|
|
2584
|
-
version: 0.29.
|
|
2585
|
-
resolution: "@licklist/core@npm:0.29.
|
|
2595
|
+
"@licklist/core@npm:0.29.3":
|
|
2596
|
+
version: 0.29.3
|
|
2597
|
+
resolution: "@licklist/core@npm:0.29.3"
|
|
2586
2598
|
dependencies:
|
|
2587
2599
|
"@sentry/browser": "npm:6.2.0"
|
|
2588
2600
|
axios: "npm:0.26.0"
|
|
2589
2601
|
i18next: "npm:19.4.5"
|
|
2590
|
-
luxon: "npm:
|
|
2602
|
+
luxon: "npm:1.26.0"
|
|
2591
2603
|
react: "npm:17.0.2"
|
|
2592
2604
|
react-dom: "npm:17.0.2"
|
|
2593
2605
|
react-i18next: "npm:11.8.8"
|
|
@@ -2597,12 +2609,12 @@ __metadata:
|
|
|
2597
2609
|
peerDependencies:
|
|
2598
2610
|
"@licklist/eslint-config": 0.5.5
|
|
2599
2611
|
axios: 0.26.0
|
|
2600
|
-
luxon:
|
|
2612
|
+
luxon: 1.26.0
|
|
2601
2613
|
react: 17.0.2
|
|
2602
2614
|
react-dom: 17.0.2
|
|
2603
2615
|
react-i18next: 11.8.8
|
|
2604
2616
|
react-intl: 6.6.8
|
|
2605
|
-
checksum: 10c0/
|
|
2617
|
+
checksum: 10c0/203fcc6bb4752d0df83f6e3c96255abb3636543717e51e7b70d50e179b0526b70269b82db5dd89283e907900bdbc7f2ee39f2828af2ebdb54f8fc0e7734df53d
|
|
2606
2618
|
languageName: node
|
|
2607
2619
|
linkType: hard
|
|
2608
2620
|
|
|
@@ -2617,9 +2629,10 @@ __metadata:
|
|
|
2617
2629
|
"@dnd-kit/utilities": "npm:2.0.0"
|
|
2618
2630
|
"@fortawesome/fontawesome-svg-core": "npm:1.2.34"
|
|
2619
2631
|
"@fortawesome/free-solid-svg-icons": "npm:5.15.2"
|
|
2620
|
-
"@
|
|
2632
|
+
"@fortawesome/react-fontawesome": "npm:0.1.9"
|
|
2633
|
+
"@licklist/core": "npm:0.29.3"
|
|
2621
2634
|
"@licklist/eslint-config": "npm:0.5.5"
|
|
2622
|
-
"@licklist/plugins": "npm:0.32.0
|
|
2635
|
+
"@licklist/plugins": "npm:0.32.0"
|
|
2623
2636
|
"@mdx-js/react": "npm:1.6.22"
|
|
2624
2637
|
"@popperjs/core": "npm:2.11.8"
|
|
2625
2638
|
"@react-aria/utils": "npm:3.9.0"
|
|
@@ -2658,7 +2671,7 @@ __metadata:
|
|
|
2658
2671
|
"@tiptap/react": "npm:2.0.0-beta.109"
|
|
2659
2672
|
"@tiptap/suggestion": "npm:2.0.0-beta.92"
|
|
2660
2673
|
"@types/lodash": "npm:4.17.5"
|
|
2661
|
-
"@types/luxon": "npm:
|
|
2674
|
+
"@types/luxon": "npm:1.26.2"
|
|
2662
2675
|
"@types/mdx-js__react": "npm:1.5.3"
|
|
2663
2676
|
"@types/node": "npm:20.9.0"
|
|
2664
2677
|
"@types/react": "npm:17.0.80"
|
|
@@ -2695,7 +2708,7 @@ __metadata:
|
|
|
2695
2708
|
konva: "npm:6.0.0"
|
|
2696
2709
|
lint-staged: "npm:12.3.2"
|
|
2697
2710
|
lodash: "npm:4.17.21"
|
|
2698
|
-
luxon: "npm:
|
|
2711
|
+
luxon: "npm:1.26.0"
|
|
2699
2712
|
moment: "npm:2.29.1"
|
|
2700
2713
|
prettier: "npm:3.3.3"
|
|
2701
2714
|
react: "npm:17.0.2"
|
|
@@ -2741,11 +2754,11 @@ __metadata:
|
|
|
2741
2754
|
vite-plugin-svgr: "npm:4.2.0"
|
|
2742
2755
|
vite-tsconfig-paths: "npm:5.0.1"
|
|
2743
2756
|
peerDependencies:
|
|
2744
|
-
"@licklist/core": 0.29.
|
|
2757
|
+
"@licklist/core": 0.29.3
|
|
2745
2758
|
"@licklist/eslint-config": 0.5.5
|
|
2746
|
-
"@licklist/plugins": 0.32.0
|
|
2759
|
+
"@licklist/plugins": 0.32.0
|
|
2747
2760
|
lodash: 4.17.21
|
|
2748
|
-
luxon:
|
|
2761
|
+
luxon: 1.26.0
|
|
2749
2762
|
react: 17.0.2
|
|
2750
2763
|
react-dom: 17.0.2
|
|
2751
2764
|
react-hook-form: 7.52.2
|
|
@@ -2774,17 +2787,17 @@ __metadata:
|
|
|
2774
2787
|
languageName: node
|
|
2775
2788
|
linkType: hard
|
|
2776
2789
|
|
|
2777
|
-
"@licklist/plugins@npm:0.32.0
|
|
2778
|
-
version: 0.32.0
|
|
2779
|
-
resolution: "@licklist/plugins@npm:0.32.0
|
|
2790
|
+
"@licklist/plugins@npm:0.32.0":
|
|
2791
|
+
version: 0.32.0
|
|
2792
|
+
resolution: "@licklist/plugins@npm:0.32.0"
|
|
2780
2793
|
dependencies:
|
|
2781
|
-
"@licklist/core": "npm:0.29.
|
|
2794
|
+
"@licklist/core": "npm:0.29.0"
|
|
2782
2795
|
"@ungap/url-search-params": "npm:0.2.2"
|
|
2783
2796
|
axios: "npm:0.26.0"
|
|
2784
2797
|
history: "npm:4.10.1"
|
|
2785
2798
|
laravel-echo: "npm:1.15.1"
|
|
2786
2799
|
lodash: "npm:4.17.21"
|
|
2787
|
-
luxon: "npm:
|
|
2800
|
+
luxon: "npm:1.26.0"
|
|
2788
2801
|
moment: "npm:2.27.0"
|
|
2789
2802
|
pusher-js: "npm:8.2.0"
|
|
2790
2803
|
react: "npm:17.0.2"
|
|
@@ -2799,11 +2812,11 @@ __metadata:
|
|
|
2799
2812
|
rrule: "npm:2.6.8"
|
|
2800
2813
|
use-debounce: "npm:7.0.1"
|
|
2801
2814
|
peerDependencies:
|
|
2802
|
-
"@licklist/core": 0.29.
|
|
2815
|
+
"@licklist/core": 0.29.0
|
|
2803
2816
|
"@licklist/eslint-config": 0.5.5
|
|
2804
2817
|
axios: 0.26.0
|
|
2805
2818
|
lodash: 4.17.21
|
|
2806
|
-
luxon:
|
|
2819
|
+
luxon: 1.26.0
|
|
2807
2820
|
react: 17.0.2
|
|
2808
2821
|
react-dom: 17.0.2
|
|
2809
2822
|
react-hook-form: 7.52.2
|
|
@@ -2811,7 +2824,7 @@ __metadata:
|
|
|
2811
2824
|
react-loader: 2.4.7
|
|
2812
2825
|
react-query: 3.34.12
|
|
2813
2826
|
react-router-dom: 5.2.0
|
|
2814
|
-
checksum: 10c0/
|
|
2827
|
+
checksum: 10c0/b5fc01110148f64bcb819b7eb71cd716464342e9b81efe8668c7cd7ab6025590f9abcd8d007ec32be2512a7c09f4ca10d7db8ba56b374e0d12fc70199cf21d77
|
|
2815
2828
|
languageName: node
|
|
2816
2829
|
linkType: hard
|
|
2817
2830
|
|
|
@@ -5509,10 +5522,10 @@ __metadata:
|
|
|
5509
5522
|
languageName: node
|
|
5510
5523
|
linkType: hard
|
|
5511
5524
|
|
|
5512
|
-
"@types/luxon@npm:
|
|
5513
|
-
version:
|
|
5514
|
-
resolution: "@types/luxon@npm:
|
|
5515
|
-
checksum: 10c0/
|
|
5525
|
+
"@types/luxon@npm:1.26.2":
|
|
5526
|
+
version: 1.26.2
|
|
5527
|
+
resolution: "@types/luxon@npm:1.26.2"
|
|
5528
|
+
checksum: 10c0/7526b265d0b93ab8e1a01ec8e1e9940addac2ef75ebc14fb9c17fa0c6150bed9f3715fc05198b500d6c80a8cb2dece882b30ea9173fa229c5df8b2dc44a8398f
|
|
5516
5529
|
languageName: node
|
|
5517
5530
|
linkType: hard
|
|
5518
5531
|
|
|
@@ -13743,10 +13756,10 @@ __metadata:
|
|
|
13743
13756
|
languageName: node
|
|
13744
13757
|
linkType: hard
|
|
13745
13758
|
|
|
13746
|
-
"luxon@npm:
|
|
13747
|
-
version:
|
|
13748
|
-
resolution: "luxon@npm:
|
|
13749
|
-
checksum: 10c0/
|
|
13759
|
+
"luxon@npm:1.26.0":
|
|
13760
|
+
version: 1.26.0
|
|
13761
|
+
resolution: "luxon@npm:1.26.0"
|
|
13762
|
+
checksum: 10c0/06e7db9ab9e39069554ce12f84be7246e2e0948d3790ad991e7be676a263be137547ccd9911239b66cee6d8ef2bee6030a5400e0214494a7ea33a7fa4305dc62
|
|
13750
13763
|
languageName: node
|
|
13751
13764
|
linkType: hard
|
|
13752
13765
|
|
|
@@ -17429,14 +17442,14 @@ __metadata:
|
|
|
17429
17442
|
linkType: hard
|
|
17430
17443
|
|
|
17431
17444
|
"regexp.prototype.flags@npm:^1.5.2":
|
|
17432
|
-
version: 1.5.
|
|
17433
|
-
resolution: "regexp.prototype.flags@npm:1.5.
|
|
17445
|
+
version: 1.5.3
|
|
17446
|
+
resolution: "regexp.prototype.flags@npm:1.5.3"
|
|
17434
17447
|
dependencies:
|
|
17435
|
-
call-bind: "npm:^1.0.
|
|
17448
|
+
call-bind: "npm:^1.0.7"
|
|
17436
17449
|
define-properties: "npm:^1.2.1"
|
|
17437
17450
|
es-errors: "npm:^1.3.0"
|
|
17438
|
-
set-function-name: "npm:^2.0.
|
|
17439
|
-
checksum: 10c0/
|
|
17451
|
+
set-function-name: "npm:^2.0.2"
|
|
17452
|
+
checksum: 10c0/e1a7c7dc42cc91abf73e47a269c4b3a8f225321b7f617baa25821f6a123a91d23a73b5152f21872c566e699207e1135d075d2251cd3e84cc96d82a910adf6020
|
|
17440
17453
|
languageName: node
|
|
17441
17454
|
linkType: hard
|
|
17442
17455
|
|
|
@@ -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
|
-
};
|